templates

package module
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2024 License: Unlicense Imports: 8 Imported by: 26

README

Core Contracts Transaction Templates

This module contains transaction and script templates for the Flow core contracts, primarly templates for staking and delegating FLOW.

Generated manifest files

The manifest.mainnet.json and testnet.mainnet.json files declare all transaction templates in a portable format for mainnet and testnet respectively.

To update the manifest files:

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAddAccountCreator added in v0.7.3

func GenerateAddAccountCreator(env Environment) []byte

func GenerateAddApprovedAndLimitsScript added in v0.12.1

func GenerateAddApprovedAndLimitsScript(env Environment) []byte

func GenerateAddApprovedNodesScript added in v0.8.0

func GenerateAddApprovedNodesScript(env Environment) []byte

func GenerateAddKeyScript added in v1.0.0

func GenerateAddKeyScript(env Environment) []byte

func GenerateAddNodeInfoScript

func GenerateAddNodeInfoScript(env Environment) []byte

GenerateAddNodeInfoScript generates a script that adds the node operators node info to their account

func GenerateAdvanceViewScript added in v0.7.4

func GenerateAdvanceViewScript(env Environment) []byte

func GenerateCapabilityEndEpochScript added in v0.7.3

func GenerateCapabilityEndEpochScript(env Environment) []byte

func GenerateChangeCutScript

func GenerateChangeCutScript(env Environment) []byte

GenerateChangeCutScript creates a script that changes the cut percentage

func GenerateChangeDelegatorMinimumsScript added in v0.13.0

func GenerateChangeDelegatorMinimumsScript(env Environment) []byte

func GenerateChangeMinimumsScript

func GenerateChangeMinimumsScript(env Environment) []byte

GenerateChangeMinimumsScript creates a script that changes the staking minimums

func GenerateChangePayoutScript

func GenerateChangePayoutScript(env Environment) []byte

GenerateChangePayoutScript creates a script that changes the weekly payout

func GenerateChangeStorageFeeParametersScript added in v0.7.1

func GenerateChangeStorageFeeParametersScript(env Environment) []byte

func GenerateChangeVersionFreezePeriodScript added in v0.13.0

func GenerateChangeVersionFreezePeriodScript(env Environment) []byte

func GenerateCheckMainRegistrationScript

func GenerateCheckMainRegistrationScript(env Environment) []byte

func GenerateCheckSharedRegistrationScript

func GenerateCheckSharedRegistrationScript(env Environment) []byte

func GenerateCollectionAddDelegator added in v0.7.3

func GenerateCollectionAddDelegator(env Environment) []byte

func GenerateCollectionAddNode added in v0.7.3

func GenerateCollectionAddNode(env Environment) []byte

func GenerateCollectionCloseStake added in v0.7.3

func GenerateCollectionCloseStake(env Environment) []byte

func GenerateCollectionCreateMachineAccountForNodeScript added in v0.7.4

func GenerateCollectionCreateMachineAccountForNodeScript(env Environment) []byte

func GenerateCollectionCreateNewTokenHolderAccountScript added in v0.8.0

func GenerateCollectionCreateNewTokenHolderAccountScript(env Environment) []byte

func GenerateCollectionDepositTokensScript added in v0.7.3

func GenerateCollectionDepositTokensScript(env Environment) []byte

func GenerateCollectionDoesAccountHaveStakingCollection added in v0.7.3

func GenerateCollectionDoesAccountHaveStakingCollection(env Environment) []byte

func GenerateCollectionGetAllDelegatorInfoScript added in v0.7.3

func GenerateCollectionGetAllDelegatorInfoScript(env Environment) []byte

func GenerateCollectionGetAllNodeInfoScript added in v0.7.3

func GenerateCollectionGetAllNodeInfoScript(env Environment) []byte

func GenerateCollectionGetDelegatorIDsScript added in v0.7.3

func GenerateCollectionGetDelegatorIDsScript(env Environment) []byte

func GenerateCollectionGetDoesStakeExistScript added in v0.7.3

func GenerateCollectionGetDoesStakeExistScript(env Environment) []byte

func GenerateCollectionGetLockedTokensUsedScript added in v0.7.3

func GenerateCollectionGetLockedTokensUsedScript(env Environment) []byte

func GenerateCollectionGetMachineAccountAddressScript added in v0.7.8

func GenerateCollectionGetMachineAccountAddressScript(env Environment) []byte

func GenerateCollectionGetMachineAccountsScript added in v0.7.4

func GenerateCollectionGetMachineAccountsScript(env Environment) []byte

func GenerateCollectionGetNodeIDsScript added in v0.7.3

func GenerateCollectionGetNodeIDsScript(env Environment) []byte

func GenerateCollectionGetTokensScript added in v0.7.3

func GenerateCollectionGetTokensScript(env Environment) []byte

func GenerateCollectionGetUnlockedTokensUsedScript added in v0.7.3

func GenerateCollectionGetUnlockedTokensUsedScript(env Environment) []byte

func GenerateCollectionRegisterDelegator added in v0.7.3

func GenerateCollectionRegisterDelegator(env Environment) []byte

func GenerateCollectionRegisterMultipleDelegatorsScript added in v0.8.0

func GenerateCollectionRegisterMultipleDelegatorsScript(env Environment) []byte

func GenerateCollectionRegisterMultipleNodesScript added in v0.8.0

func GenerateCollectionRegisterMultipleNodesScript(env Environment) []byte

func GenerateCollectionRegisterNode added in v0.7.3

func GenerateCollectionRegisterNode(env Environment) []byte

func GenerateCollectionRequestUnstaking added in v0.7.3

func GenerateCollectionRequestUnstaking(env Environment) []byte

func GenerateCollectionRestakeAllStakersTokens added in v0.9.0

func GenerateCollectionRestakeAllStakersTokens(env Environment) []byte

func GenerateCollectionSetup added in v0.7.3

func GenerateCollectionSetup(env Environment) []byte

func GenerateCollectionStakeNewTokens added in v0.7.3

func GenerateCollectionStakeNewTokens(env Environment) []byte

func GenerateCollectionStakeRewardedTokens added in v0.7.3

func GenerateCollectionStakeRewardedTokens(env Environment) []byte

func GenerateCollectionStakeUnstakedTokens added in v0.7.3

func GenerateCollectionStakeUnstakedTokens(env Environment) []byte

func GenerateCollectionTransferDelegator added in v0.7.3

func GenerateCollectionTransferDelegator(env Environment) []byte

func GenerateCollectionTransferNode added in v0.7.3

func GenerateCollectionTransferNode(env Environment) []byte

func GenerateCollectionUnstakeAll added in v0.7.3

func GenerateCollectionUnstakeAll(env Environment) []byte

func GenerateCollectionUpdateNetworkingAddressScript added in v0.7.8

func GenerateCollectionUpdateNetworkingAddressScript(env Environment) []byte

func GenerateCollectionWithdrawFromMachineAccountScript added in v0.7.4

func GenerateCollectionWithdrawFromMachineAccountScript(env Environment) []byte

func GenerateCollectionWithdrawRewardedTokens added in v0.7.3

func GenerateCollectionWithdrawRewardedTokens(env Environment) []byte

func GenerateCollectionWithdrawUnstakedTokens added in v0.7.3

func GenerateCollectionWithdrawUnstakedTokens(env Environment) []byte

func GenerateCreateAccountScript added in v1.0.0

func GenerateCreateAccountScript(env Environment) []byte

account templates

func GenerateCreateDKGParticipantScript added in v0.7.4

func GenerateCreateDKGParticipantScript(env Environment) []byte

GenerateCreateDKGParticipantScript generates a script that creates a dkg node object

func GenerateCreateDelegationScript

func GenerateCreateDelegationScript(env Environment) []byte

func GenerateCreateLockedDelegatorScript

func GenerateCreateLockedDelegatorScript(env Environment) []byte

CreateLockedDelegatorScript creates a script that creates a new node request with locked tokens.

func GenerateCreateSharedAccountScript

func GenerateCreateSharedAccountScript(env Environment) []byte

func GenerateCreateVoterScript added in v0.7.4

func GenerateCreateVoterScript(env Environment) []byte

GenerateCreateVoterScript generates a script that creates a qc node object

func GenerateCustodyCreateAccountWithLeaseAccountScript

func GenerateCustodyCreateAccountWithLeaseAccountScript(env Environment) []byte

func GenerateCustodyCreateAccountsScript

func GenerateCustodyCreateAccountsScript(env Environment) []byte

func GenerateCustodyCreateOnlyLeaseAccountScript

func GenerateCustodyCreateOnlyLeaseAccountScript(env Environment) []byte

func GenerateCustodyCreateOnlySharedAccountScript

func GenerateCustodyCreateOnlySharedAccountScript(env Environment) []byte

func GenerateDelegateLockedRewardedTokensScript

func GenerateDelegateLockedRewardedTokensScript(env Environment) []byte

DelegateLockedRewardedTokensScript creates a script that stakes unstaked tokens. The unusual name is to avoid a clash with idtables_staking_templates.go .

func GenerateDelegateLockedUnstakedTokensScript

func GenerateDelegateLockedUnstakedTokensScript(env Environment) []byte

DelegateLockedUnstakedTokensScript creates a script that stakes unstaked tokens. The unusual name is to avoid a clash with idtables_staking_templates.go .

func GenerateDelegateNewLockedTokensScript

func GenerateDelegateNewLockedTokensScript(env Environment) []byte

DelegateNewLockedTokensScript creates a script that stakes new locked tokens.

func GenerateDelegatorRequestUnstakeScript

func GenerateDelegatorRequestUnstakeScript(env Environment) []byte

func GenerateDelegatorStakeNewScript

func GenerateDelegatorStakeNewScript(env Environment) []byte

func GenerateDelegatorStakeRewardedScript

func GenerateDelegatorStakeRewardedScript(env Environment) []byte

func GenerateDelegatorStakeUnstakedScript

func GenerateDelegatorStakeUnstakedScript(env Environment) []byte

func GenerateDelegatorWithdrawRewardsScript

func GenerateDelegatorWithdrawRewardsScript(env Environment) []byte

func GenerateDelegatorWithdrawUnstakedScript

func GenerateDelegatorWithdrawUnstakedScript(env Environment) []byte

func GenerateDeleteVersionBoundaryScript added in v0.13.0

func GenerateDeleteVersionBoundaryScript(env Environment) []byte

func GenerateDeployEpochScript added in v0.7.4

func GenerateDeployEpochScript(env Environment) []byte

GenerateDeployEpochScript

func GenerateDeployLockedTokens

func GenerateDeployLockedTokens() []byte

func GenerateDeployQCDKGScript added in v0.7.4

func GenerateDeployQCDKGScript(env Environment) []byte

GenerateDeployQCDKGScript

func GenerateDeployStakingCollectionScript added in v0.7.3

func GenerateDeployStakingCollectionScript() []byte

func GenerateDepositAccountCreatorScript

func GenerateDepositAccountCreatorScript(env Environment) []byte

func GenerateDepositFeesScript added in v0.7.9

func GenerateDepositFeesScript(env Environment) []byte

func GenerateDepositLockedTokensScript

func GenerateDepositLockedTokensScript(env Environment) []byte

func GenerateDepositTokensScript

func GenerateDepositTokensScript(env Environment) []byte

func GenerateEndEpochChangePayoutScript

func GenerateEndEpochChangePayoutScript(env Environment) []byte

GenerateEndEpochChangePayoutScript creates a script that changes the weekly payout and then ends the epoch

func GenerateEndEpochScript

func GenerateEndEpochScript(env Environment) []byte

func GenerateEndStakingScript

func GenerateEndStakingScript(env Environment) []byte

GenerateEndStakingScript creates a script that ends the staking auction

func GenerateEndStakingTestScript added in v1.3.2

func GenerateEndStakingTestScript(env Environment) []byte

func GenerateEpochCalculateSetRewardsScript added in v0.7.4

func GenerateEpochCalculateSetRewardsScript(env Environment) []byte

func GenerateEpochPayRewardsScript added in v0.7.4

func GenerateEpochPayRewardsScript(env Environment) []byte

func GenerateEpochRegisterDKGParticipantScript added in v0.7.4

func GenerateEpochRegisterDKGParticipantScript(env Environment) []byte

func GenerateEpochRegisterNodeScript added in v0.7.4

func GenerateEpochRegisterNodeScript(env Environment) []byte

func GenerateEpochRegisterQCVoterScript added in v0.7.4

func GenerateEpochRegisterQCVoterScript(env Environment) []byte

func GenerateEpochSetAutomaticRewardsScript added in v0.9.0

func GenerateEpochSetAutomaticRewardsScript(env Environment) []byte

func GenerateEpochSetBonusTokensScript added in v0.13.0

func GenerateEpochSetBonusTokensScript(env Environment) []byte

func GenerateForceStopDKGScript added in v0.8.0

func GenerateForceStopDKGScript(env Environment) []byte

func GenerateGenerateQuorumCertificateScript added in v0.7.9

func GenerateGenerateQuorumCertificateScript(env Environment) []byte

func GenerateGetAccountAvailableBalanceFilenameScript added in v0.7.2

func GenerateGetAccountAvailableBalanceFilenameScript(env Environment) []byte

func GenerateGetAccountCreators added in v0.7.3

func GenerateGetAccountCreators(env Environment) []byte

func GenerateGetAccountsCapacityForTransactionStorageCheckScript added in v0.12.1

func GenerateGetAccountsCapacityForTransactionStorageCheckScript(env Environment) []byte

func GenerateGetApprovedNodesScript added in v0.8.0

func GenerateGetApprovedNodesScript(env Environment) []byte

func GenerateGetBadAccountsScript added in v0.8.0

func GenerateGetBadAccountsScript(env Environment) []byte

func GenerateGetBonusTokensScript added in v0.13.0

func GenerateGetBonusTokensScript(env Environment) []byte

func GenerateGetCandidateLimitsScript added in v0.12.1

func GenerateGetCandidateLimitsScript(env Environment) []byte

func GenerateGetCandidateNodesScript added in v0.12.1

func GenerateGetCandidateNodesScript(env Environment) []byte

func GenerateGetClusterCompleteScript added in v0.7.4

func GenerateGetClusterCompleteScript(env Environment) []byte

func GenerateGetClusterNodeWeightsScript added in v0.7.4

func GenerateGetClusterNodeWeightsScript(env Environment) []byte

func GenerateGetClusterScript added in v0.7.4

func GenerateGetClusterScript(env Environment) []byte

func GenerateGetClusterVoteThresholdScript added in v0.7.4

func GenerateGetClusterVoteThresholdScript(env Environment) []byte

func GenerateGetClusterVotesScript added in v0.7.4

func GenerateGetClusterVotesScript(env Environment) []byte

func GenerateGetClusterWeightScript added in v0.7.4

func GenerateGetClusterWeightScript(env Environment) []byte

func GenerateGetClustersScript added in v0.7.4

func GenerateGetClustersScript(env Environment) []byte

func GenerateGetCommittedBalanceScript

func GenerateGetCommittedBalanceScript(env Environment) []byte

GenerateGetCommittedBalanceScript creates a script that returns the balance of the committed tokens of a node

func GenerateGetConsensusNodesScript added in v0.7.4

func GenerateGetConsensusNodesScript(env Environment) []byte

func GenerateGetCreateClustersScript added in v0.7.4

func GenerateGetCreateClustersScript(env Environment) []byte

func GenerateGetCurrentEpochCounterScript added in v0.7.4

func GenerateGetCurrentEpochCounterScript(env Environment) []byte

func GenerateGetCurrentNodeVersionAsStringScript added in v0.13.0

func GenerateGetCurrentNodeVersionAsStringScript(env Environment) []byte

func GenerateGetCurrentNodeVersionScript added in v0.13.0

func GenerateGetCurrentNodeVersionScript(env Environment) []byte

func GenerateGetCurrentViewScript added in v0.7.4

func GenerateGetCurrentViewScript(env Environment) []byte

func GenerateGetCutPercentageScript

func GenerateGetCutPercentageScript(env Environment) []byte

GenerateGetCutPercentageScript gets the delegator cut percentage

func GenerateGetDKGCanonicalFinalSubmissionScript added in v0.7.4

func GenerateGetDKGCanonicalFinalSubmissionScript(env Environment) []byte

func GenerateGetDKGCompletedScript added in v0.7.4

func GenerateGetDKGCompletedScript(env Environment) []byte

func GenerateGetDKGEnabledScript added in v0.7.4

func GenerateGetDKGEnabledScript(env Environment) []byte

func GenerateGetDKGFinalSubmissionsScript added in v0.7.4

func GenerateGetDKGFinalSubmissionsScript(env Environment) []byte

func GenerateGetDKGLatestWhiteBoardMessagesScript added in v0.7.4

func GenerateGetDKGLatestWhiteBoardMessagesScript(env Environment) []byte

func GenerateGetDKGNodeFinalSubmissionScript added in v0.7.4

func GenerateGetDKGNodeFinalSubmissionScript(env Environment) []byte

func GenerateGetDKGNodeHasFinalSubmittedScript added in v0.7.4

func GenerateGetDKGNodeHasFinalSubmittedScript(env Environment) []byte

func GenerateGetDKGNodeIsClaimedScript added in v0.7.4

func GenerateGetDKGNodeIsClaimedScript(env Environment) []byte

func GenerateGetDKGNodeIsRegisteredScript added in v0.7.4

func GenerateGetDKGNodeIsRegisteredScript(env Environment) []byte

func GenerateGetDKGThresholdsScript added in v0.8.0

func GenerateGetDKGThresholdsScript(env Environment) []byte

func GenerateGetDKGWhiteBoardMessagesScript added in v0.7.4

func GenerateGetDKGWhiteBoardMessagesScript(env Environment) []byte

func GenerateGetDelegatorCommittedScript

func GenerateGetDelegatorCommittedScript(env Environment) []byte

func GenerateGetDelegatorIDScript

func GenerateGetDelegatorIDScript(env Environment) []byte

func GenerateGetDelegatorInfoFromAddressScript

func GenerateGetDelegatorInfoFromAddressScript(env Environment) []byte

func GenerateGetDelegatorInfoScript

func GenerateGetDelegatorInfoScript(env Environment) []byte

func GenerateGetDelegatorNodeIDScript

func GenerateGetDelegatorNodeIDScript(env Environment) []byte

func GenerateGetDelegatorRequestScript

func GenerateGetDelegatorRequestScript(env Environment) []byte

func GenerateGetDelegatorRewardsScript

func GenerateGetDelegatorRewardsScript(env Environment) []byte

func GenerateGetDelegatorStakeRequirementScript added in v0.13.0

func GenerateGetDelegatorStakeRequirementScript(env Environment) []byte

GenerateGetDelegatorStakeRequirementScript returns the stake requirement for delegators

func GenerateGetDelegatorStakedScript

func GenerateGetDelegatorStakedScript(env Environment) []byte

func GenerateGetDelegatorUnstakedScript

func GenerateGetDelegatorUnstakedScript(env Environment) []byte

func GenerateGetDelegatorUnstakingRequestScript

func GenerateGetDelegatorUnstakingRequestScript(env Environment) []byte

func GenerateGetDelegatorUnstakingScript

func GenerateGetDelegatorUnstakingScript(env Environment) []byte

func GenerateGetEpochConfigMetadataScript added in v0.7.4

func GenerateGetEpochConfigMetadataScript(env Environment) []byte

func GenerateGetEpochMetadataScript added in v0.7.4

func GenerateGetEpochMetadataScript(env Environment) []byte

func GenerateGetEpochPhaseScript added in v0.7.4

func GenerateGetEpochPhaseScript(env Environment) []byte

func GenerateGetEpochTimingConfigScript added in v0.15.0

func GenerateGetEpochTimingConfigScript(env Environment) []byte

func GenerateGetExecutionEffortWeights added in v0.11.1

func GenerateGetExecutionEffortWeights(env Environment) []byte

func GenerateGetExecutionMemoryLimit added in v0.12.1

func GenerateGetExecutionMemoryLimit(env Environment) []byte

func GenerateGetExecutionMemoryWeights added in v0.12.1

func GenerateGetExecutionMemoryWeights(env Environment) []byte

func GenerateGetFeeParametersScript added in v0.11.0

func GenerateGetFeeParametersScript(env Environment) []byte

func GenerateGetFeesBalanceScript added in v0.7.9

func GenerateGetFeesBalanceScript(env Environment) []byte

func GenerateGetFlowBalanceScript added in v0.13.0

func GenerateGetFlowBalanceScript(env Environment) []byte

func GenerateGetFlowTotalSupplyScript added in v0.9.0

func GenerateGetFlowTotalSupplyScript(env Environment) []byte

func GenerateGetInitialWeightScript

func GenerateGetInitialWeightScript(env Environment) []byte

GenerateGetInitialWeightScript creates a script that returns the initial weight of a node

func GenerateGetIsAccountCreationRestricted added in v0.7.3

func GenerateGetIsAccountCreationRestricted(env Environment) []byte

func GenerateGetIsAccountCreator added in v0.7.3

func GenerateGetIsAccountCreator(env Environment) []byte

func GenerateGetLockedAccountAddressScript

func GenerateGetLockedAccountAddressScript(env Environment) []byte

func GenerateGetLockedAccountBalanceScript

func GenerateGetLockedAccountBalanceScript(env Environment) []byte

func GenerateGetLockedDelegatorInfoScript

func GenerateGetLockedDelegatorInfoScript(env Environment) []byte

GenerateGetDelegatorInfoScript creates a script that returns an optional FlowIDTableStaking.DelegatorInfo object that is associated with an account that is delegating locked tokens

func GenerateGetLockedStakerInfoScript

func GenerateGetLockedStakerInfoScript(env Environment) []byte

GenerateGetStakerInfoScript creats a script that returns an optional FlowIDTableStaking.NodeInfo? object that is associated with an account that is staking locked tokens

func GenerateGetNetworkingAddressScript

func GenerateGetNetworkingAddressScript(env Environment) []byte

GenerateGetNetworkingAddressScript creates a script that returns the networking address of a node

func GenerateGetNetworkingKeyScript

func GenerateGetNetworkingKeyScript(env Environment) []byte

GenerateGetNetworkingKeyScript creates a script that returns the networking key of a node

func GenerateGetNextTableUpdatedSequenceScript added in v0.13.0

func GenerateGetNextTableUpdatedSequenceScript(env Environment) []byte

func GenerateGetNextVersionBoundaryScript added in v0.13.0

func GenerateGetNextVersionBoundaryScript(env Environment) []byte

func GenerateGetNodeHasVotedScript added in v0.7.4

func GenerateGetNodeHasVotedScript(env Environment) []byte

func GenerateGetNodeIDScript

func GenerateGetNodeIDScript(env Environment) []byte

func GenerateGetNodeInfoFromAddressScript

func GenerateGetNodeInfoFromAddressScript(env Environment) []byte

func GenerateGetNodeInfoScript

func GenerateGetNodeInfoScript(env Environment) []byte

func GenerateGetNodeWeightScript added in v0.7.4

func GenerateGetNodeWeightScript(env Environment) []byte

func GenerateGetNonOperationalListScript added in v0.8.0

func GenerateGetNonOperationalListScript(env Environment) []byte

func GenerateGetProposedEpochCounterScript added in v0.7.4

func GenerateGetProposedEpochCounterScript(env Environment) []byte

func GenerateGetQCEnabledScript added in v0.7.4

func GenerateGetQCEnabledScript(env Environment) []byte

func GenerateGetRandomizeScript added in v0.7.4

func GenerateGetRandomizeScript(env Environment) []byte

func GenerateGetRemoteNodeInfoScript

func GenerateGetRemoteNodeInfoScript(env Environment) []byte

func GenerateGetRewardBalanceScript

func GenerateGetRewardBalanceScript(env Environment) []byte

GenerateGetRewardBalanceScript creates a script that returns the balance of the rewarded tokens of a node

func GenerateGetRewardRatioScript

func GenerateGetRewardRatioScript(env Environment) []byte

GenerateGetRewardRatioScript gets the reward ratio for a node type

func GenerateGetRoleCountsScript added in v0.12.1

func GenerateGetRoleCountsScript(env Environment) []byte

func GenerateGetRoleScript

func GenerateGetRoleScript(env Environment) []byte

GenerateGetRoleScript creates a script that returns the role of a node

func GenerateGetSlotLimitsScript added in v0.12.1

func GenerateGetSlotLimitsScript(env Environment) []byte

func GenerateGetStakeRequirementsScript

func GenerateGetStakeRequirementsScript(env Environment) []byte

GenerateGetStakeRequirementsScript returns the stake requirement for a node type

func GenerateGetStakedBalanceScript

func GenerateGetStakedBalanceScript(env Environment) []byte

GenerateGetStakedBalanceScript creates a script that returns the balance of the staked tokens of a node

func GenerateGetStakingKeyScript

func GenerateGetStakingKeyScript(env Environment) []byte

GenerateGetStakingKeyScript creates a script that returns the staking key of a node

func GenerateGetStorageCapacityScript added in v0.7.1

func GenerateGetStorageCapacityScript(env Environment) []byte

func GenerateGetStorageFeeConversionScript added in v0.7.1

func GenerateGetStorageFeeConversionScript(env Environment) []byte

func GenerateGetStorageFeeMinimumScript added in v0.7.1

func GenerateGetStorageFeeMinimumScript(env Environment) []byte

func GenerateGetTargetEndTimeForEpochScript added in v0.15.0

func GenerateGetTargetEndTimeForEpochScript(env Environment) []byte

func GenerateGetTotalBalanceScript added in v0.7.2

func GenerateGetTotalBalanceScript(env Environment) []byte

func GenerateGetTotalCommitmentBalanceScript

func GenerateGetTotalCommitmentBalanceScript(env Environment) []byte

GenerateGetTotalCommitmentBalanceScript creates a script that returns the balance of the total committed tokens of a node plus delegators

func GenerateGetTotalCommitmentBalanceWithoutDelegatorsScript

func GenerateGetTotalCommitmentBalanceWithoutDelegatorsScript(env Environment) []byte

GenerateGetTotalCommitmentBalanceWithoutDelegatorsScript creates a script that returns the balance of the total committed tokens of a node without delegators

func GenerateGetTotalTokensStakedByTypeScript

func GenerateGetTotalTokensStakedByTypeScript(env Environment) []byte

GenerateGetTotalTokensStakedByTypeScript returns the total tokens staked for a node type

func GenerateGetTotalTokensStakedScript

func GenerateGetTotalTokensStakedScript(env Environment) []byte

GenerateGetTotalTokensStakedScript returns the total tokens staked

func GenerateGetUnlockLimitScript

func GenerateGetUnlockLimitScript(env Environment) []byte

func GenerateGetUnstakedBalanceScript

func GenerateGetUnstakedBalanceScript(env Environment) []byte

GenerateGetUnstakedBalanceScript creates a script that returns the balance of the unstaked tokens of a node

func GenerateGetUnstakingBalanceScript

func GenerateGetUnstakingBalanceScript(env Environment) []byte

GenerateGetUnstakingBalanceScript creates a script that returns the balance of the unstaking tokens of a node

func GenerateGetUnstakingRequestScript

func GenerateGetUnstakingRequestScript(env Environment) []byte

GenerateGetUnstakingRequestScript creates a script that returns the balance of the unstaking request for a node

func GenerateGetVersionBoundariesScript added in v0.13.0

func GenerateGetVersionBoundariesScript(env Environment) []byte

func GenerateGetVersionBoundaryFreezePeriodScript added in v0.13.0

func GenerateGetVersionBoundaryFreezePeriodScript(env Environment) []byte

func GenerateGetVoterIsRegisteredScript added in v0.7.4

func GenerateGetVoterIsRegisteredScript(env Environment) []byte

func GenerateGetVotingCompletedScript added in v0.7.4

func GenerateGetVotingCompletedScript(env Environment) []byte

func GenerateGetWeeklyPayoutScript

func GenerateGetWeeklyPayoutScript(env Environment) []byte

GenerateGetWeeklyPayoutScript gets the total weekly reward payout

func GenerateHeartbeatScript added in v0.13.0

func GenerateHeartbeatScript(env Environment) []byte

func GenerateIncreaseUnlockLimitForMultipleAccountsScript added in v0.8.0

func GenerateIncreaseUnlockLimitForMultipleAccountsScript(env Environment) []byte

func GenerateIncreaseUnlockLimitScript

func GenerateIncreaseUnlockLimitScript(env Environment) []byte

func GenerateLockedNodeUpdateNetworkingAddressScript added in v0.7.8

func GenerateLockedNodeUpdateNetworkingAddressScript(env Environment) []byte

Change the networking address of a locked node

func GenerateMintFlowScript added in v0.13.0

func GenerateMintFlowScript(env Environment) []byte

FlowToken Templates

func GenerateMoveTokensScript

func GenerateMoveTokensScript(env Environment) []byte

GenerateMoveTokensScript creates a script that moves tokens between buckets

func GeneratePayRewardsScript

func GeneratePayRewardsScript(env Environment) []byte

GeneratePayRewardsScript creates a script that pays rewards

func GenerateProxyRequestUnstakingScript

func GenerateProxyRequestUnstakingScript(env Environment) []byte

func GenerateProxyStakeNewTokensScript

func GenerateProxyStakeNewTokensScript(env Environment) []byte

func GenerateProxyStakeUnstakedTokensScript

func GenerateProxyStakeUnstakedTokensScript(env Environment) []byte

func GenerateProxyUnstakeAllScript

func GenerateProxyUnstakeAllScript(env Environment) []byte

func GenerateProxyWithdrawRewardsScript

func GenerateProxyWithdrawRewardsScript(env Environment) []byte

func GenerateProxyWithdrawUnstakedScript

func GenerateProxyWithdrawUnstakedScript(env Environment) []byte

func GeneratePublishDKGParticipantScript added in v0.7.4

func GeneratePublishDKGParticipantScript(env Environment) []byte

func GeneratePublishVoterScript added in v0.7.4

func GeneratePublishVoterScript(env Environment) []byte

func GenerateRegisterDelegatorScript

func GenerateRegisterDelegatorScript(env Environment) []byte

func GenerateRegisterLockedNodeScript

func GenerateRegisterLockedNodeScript(env Environment) []byte

CreateLockedNodeScript creates a script that creates a new node request with locked tokens.

func GenerateRegisterManyDelegatorsScript

func GenerateRegisterManyDelegatorsScript(env Environment) []byte

func GenerateRegisterManyNodesScript

func GenerateRegisterManyNodesScript(env Environment) []byte

func GenerateRegisterNodeScript

func GenerateRegisterNodeScript(env Environment) []byte

GenerateRegisterNodeScript creates a script that creates a new node struct and stores it in the Node records

func GenerateRegisterStakingProxyNodeScript

func GenerateRegisterStakingProxyNodeScript(env Environment) []byte

func GenerateRemoveAccountCreator added in v0.7.3

func GenerateRemoveAccountCreator(env Environment) []byte

func GenerateRemoveApprovedNodesScript added in v0.8.0

func GenerateRemoveApprovedNodesScript(env Environment) []byte

func GenerateRemoveDelegatorScript added in v0.7.2

func GenerateRemoveDelegatorScript(env Environment) []byte

func GenerateRemoveInvalidNodesScript added in v0.12.1

func GenerateRemoveInvalidNodesScript(env Environment) []byte

func GenerateRemoveNodeInfoScript

func GenerateRemoveNodeInfoScript(env Environment) []byte

func GenerateRemoveNodeScript

func GenerateRemoveNodeScript(env Environment) []byte

GenerateRemoveNodeScript creates a script that removes a node from the record

func GenerateRemoveStakingProxyScript

func GenerateRemoveStakingProxyScript(env Environment) []byte

func GenerateResetEpochScript added in v0.7.4

func GenerateResetEpochScript(env Environment) []byte

func GenerateReturnCurrentTableScript

func GenerateReturnCurrentTableScript(env Environment) []byte

GenerateReturnCurrentTableScript creates a script that returns the current ID table

func GenerateReturnProposedTableScript

func GenerateReturnProposedTableScript(env Environment) []byte

GenerateReturnProposedTableScript creates a script that returns the ID table for the proposed next epoch

func GenerateReturnTableScript

func GenerateReturnTableScript(env Environment) []byte

GenerateReturnTableScript creates a script that returns the the whole ID table nodeIDs

func GenerateRevokeKeyScript added in v1.0.0

func GenerateRevokeKeyScript(env Environment) []byte

func GenerateScaleRewardsTestScript added in v0.7.4

func GenerateScaleRewardsTestScript(env Environment) []byte

For testing only

func GenerateSendDKGFinalSubmissionScript added in v0.7.4

func GenerateSendDKGFinalSubmissionScript(env Environment) []byte

GenerateSendDKGFinalSubmissionScript generates a script that sends a dkg final submission for a node

func GenerateSendDKGWhiteboardMessageScript added in v0.7.4

func GenerateSendDKGWhiteboardMessageScript(env Environment) []byte

GenerateSendDKGWhiteboardMessageScript generates a script that sends a dkg final submission for a node

func GenerateSetApprovedNodesScript added in v0.7.8

func GenerateSetApprovedNodesScript(env Environment) []byte

func GenerateSetCandidateLimitsScript added in v0.12.1

func GenerateSetCandidateLimitsScript(env Environment) []byte

func GenerateSetClaimedScript added in v0.7.3

func GenerateSetClaimedScript(env Environment) []byte

GenerateSetClaimedScript creates a script that sets the new metadata claimed fields

func GenerateSetExecutionEffortWeights added in v0.11.1

func GenerateSetExecutionEffortWeights(env Environment) []byte

func GenerateSetExecutionMemoryLimit added in v0.12.1

func GenerateSetExecutionMemoryLimit(env Environment) []byte

func GenerateSetExecutionMemoryWeights added in v0.12.1

func GenerateSetExecutionMemoryWeights(env Environment) []byte

func GenerateSetFeeParametersScript added in v0.11.0

func GenerateSetFeeParametersScript(env Environment) []byte

func GenerateSetFeeSurgeFactorScript added in v0.11.0

func GenerateSetFeeSurgeFactorScript(env Environment) []byte

func GenerateSetIsAccountCreationRestricted added in v0.7.3

func GenerateSetIsAccountCreationRestricted(env Environment) []byte

func GenerateSetNodeWeightScript added in v0.12.1

func GenerateSetNodeWeightScript(env Environment) []byte

func GenerateSetNonOperationalScript added in v0.8.0

func GenerateSetNonOperationalScript(env Environment) []byte

func GenerateSetOpenAccessSlotsScript added in v0.15.0

func GenerateSetOpenAccessSlotsScript(env Environment) []byte

func GenerateSetSafeThresholdScript added in v0.8.0

func GenerateSetSafeThresholdScript(env Environment) []byte

GenerateSetSafeThresholdScript generates a script for the admin to set a new threshold percentage for DKG completion

func GenerateSetSlotLimitsScript added in v0.12.1

func GenerateSetSlotLimitsScript(env Environment) []byte

func GenerateSetVersionBoundaryScript added in v0.13.0

func GenerateSetVersionBoundaryScript(env Environment) []byte

func GenerateSetupCustodyAccountScript

func GenerateSetupCustodyAccountScript(env Environment) []byte

func GenerateSetupFTAccountFromAddressScript added in v1.0.0

func GenerateSetupFTAccountFromAddressScript(env Environment) []byte

FT and NFT templates

func GenerateSetupNFTAccountFromAddressScript added in v1.0.0

func GenerateSetupNFTAccountFromAddressScript(env Environment) []byte

func GenerateSetupNodeAccountScript

func GenerateSetupNodeAccountScript(env Environment) []byte

GenerateSetupNodeAccountScript generates a script that sets up a node operator's account to receive staking proxies

func GenerateStakeLockedRewardedTokensScript

func GenerateStakeLockedRewardedTokensScript(env Environment) []byte

StakeLockedRewardedTokensScript creates a script that stakes unstaked tokens. The unusual name is to avoid a clash with idtables_staking_templates.go .

func GenerateStakeLockedUnstakedTokensScript

func GenerateStakeLockedUnstakedTokensScript(env Environment) []byte

StakeLockedUnstakedTokensScript creates a script that stakes unstaked tokens. The unusual name is to avoid a clash with idtables_staking_templates.go .

func GenerateStakeNewLockedTokensScript

func GenerateStakeNewLockedTokensScript(env Environment) []byte

StakeNewLockedTokensScript creates a script that stakes new locked tokens.

func GenerateStakeNewTokensScript

func GenerateStakeNewTokensScript(env Environment) []byte

GenerateStakeNewTokensScript creates a script that stakes new tokens for a node operator

func GenerateStakeRewardedTokensScript

func GenerateStakeRewardedTokensScript(env Environment) []byte

GenerateStakeRewardedTokensScript creates a script that stakes tokens for a node operator from their rewarded bucket

func GenerateStakeUnstakedTokensScript

func GenerateStakeUnstakedTokensScript(env Environment) []byte

GenerateStakeUnstakedTokensScript creates a script that stakes tokens for a node operator from their unstaked bucket

func GenerateStartDKGScript added in v0.7.4

func GenerateStartDKGScript(env Environment) []byte

GenerateStartDKGScript generates a script for the admin that starts DKG

func GenerateStartStakingScript added in v0.7.3

func GenerateStartStakingScript(env Environment) []byte

GenerateStartStakingScript creates a script that starts the staking auction

func GenerateStartVotingScript added in v0.7.4

func GenerateStartVotingScript(env Environment) []byte

GenerateStartVotingScript generates a script for the admin that starts voting

func GenerateStopDKGScript added in v0.7.4

func GenerateStopDKGScript(env Environment) []byte

GenerateStopDKGScript generates a script for the admin that stops DKG

func GenerateStopVotingScript added in v0.7.4

func GenerateStopVotingScript(env Environment) []byte

GenerateStopVotingScript generates a script for the admin that stops voting

func GenerateSubmitVoteScript added in v0.7.4

func GenerateSubmitVoteScript(env Environment) []byte

GenerateSubmitVoteScript generates a script that submits a qc vote for a node

func GenerateTransferAdminCapabilityScript added in v0.7.3

func GenerateTransferAdminCapabilityScript(env Environment) []byte

func GenerateTransferFeesAdminScript added in v0.7.9

func GenerateTransferFeesAdminScript(env Environment) []byte

func GenerateTransferGenericNFTWithAddressScript added in v1.0.0

func GenerateTransferGenericNFTWithAddressScript(env Environment) []byte

func GenerateTransferGenericNFTWithPathsScript added in v1.0.0

func GenerateTransferGenericNFTWithPathsScript(env Environment) []byte

func GenerateTransferGenericVaultWithAddressScript added in v1.0.0

func GenerateTransferGenericVaultWithAddressScript(env Environment) []byte

func GenerateTransferGenericVaultWithPathsScript added in v1.0.0

func GenerateTransferGenericVaultWithPathsScript(env Environment) []byte

func GenerateTransferMinterAndDeployScript

func GenerateTransferMinterAndDeployScript(env Environment) []byte

GenerateTransferMinterAndDeployScript generates a script that transfers a flow minter and deploys the id table account

func GenerateUnDelegateLockedTokensScript

func GenerateUnDelegateLockedTokensScript(env Environment) []byte

UnDelegateLockedTokensScript creates a script that unstakes locked tokens.

func GenerateUnstakeAllLockedTokensScript

func GenerateUnstakeAllLockedTokensScript(env Environment) []byte

UnstakeAllLockedTokensScript creates a script that unstakes all locked tokens.

func GenerateUnstakeAllScript

func GenerateUnstakeAllScript(env Environment) []byte

GenerateUnstakeAllScript creates a script that makes an unstaking request for an existing node operator to unstake all their tokens

func GenerateUnstakeLockedTokensScript

func GenerateUnstakeLockedTokensScript(env Environment) []byte

UnstakeLockedTokensScript creates a script that unstakes locked tokens.

func GenerateUnstakeTokensScript

func GenerateUnstakeTokensScript(env Environment) []byte

GenerateUnstakeTokensScript creates a script that makes an unstaking request for an existing node operator

func GenerateUpdateDKGViewsScript added in v0.7.4

func GenerateUpdateDKGViewsScript(env Environment) []byte

func GenerateUpdateEpochConfigScript added in v0.11.0

func GenerateUpdateEpochConfigScript(env Environment) []byte

func GenerateUpdateEpochTimingConfigScript added in v0.15.0

func GenerateUpdateEpochTimingConfigScript(env Environment) []byte

func GenerateUpdateEpochViewsScript added in v0.7.4

func GenerateUpdateEpochViewsScript(env Environment) []byte

func GenerateUpdateNetworkingAddressScript added in v0.7.8

func GenerateUpdateNetworkingAddressScript(env Environment) []byte

GenerateUpdateNetworkingAddressScript creates a script changes the networking address for an existing node operator

func GenerateUpdateNumClustersScript added in v0.7.4

func GenerateUpdateNumClustersScript(env Environment) []byte

func GenerateUpdateRewardPercentageScript added in v0.7.4

func GenerateUpdateRewardPercentageScript(env Environment) []byte

func GenerateUpdateStakingViewsScript added in v0.7.4

func GenerateUpdateStakingViewsScript(env Environment) []byte

func GenerateUpgradeStakingScript added in v0.7.3

func GenerateUpgradeStakingScript(env Environment) []byte

GenerateUpgradeStakingScript creates a script that upgrades the staking contract

func GenerateVerifyPayerBalanceForTxExecution added in v1.3.1

func GenerateVerifyPayerBalanceForTxExecution(env Environment) []byte

func GenerateWithdrawDelegatorLockedRewardedTokensScript

func GenerateWithdrawDelegatorLockedRewardedTokensScript(env Environment) []byte

WithdrawDelegatorLockedRewardedTokensScript creates a script that requests a withdrawal of unstaked tokens. The unusual name is to avoid a clash with idtables_staking_templates.go .

func GenerateWithdrawDelegatorLockedRewardedTokensToLockedAccountScript

func GenerateWithdrawDelegatorLockedRewardedTokensToLockedAccountScript(env Environment) []byte

func GenerateWithdrawDelegatorLockedUnstakedTokensScript

func GenerateWithdrawDelegatorLockedUnstakedTokensScript(env Environment) []byte

WithdrawDelegatorLockedUnstakedTokensScript creates a script that requests a withdrawal of unstaked tokens. The unusual name is to avoid a clash with idtables_staking_templates.go .

func GenerateWithdrawLockedRewardedTokensScript

func GenerateWithdrawLockedRewardedTokensScript(env Environment) []byte

WithdrawLockedRewardedTokensScript creates a script that requests a withdrawal of unstaked tokens. The unusual name is to avoid a clash with idtables_staking_templates.go .

func GenerateWithdrawLockedRewardedTokensToLockedAccountScript

func GenerateWithdrawLockedRewardedTokensToLockedAccountScript(env Environment) []byte

func GenerateWithdrawLockedUnstakedTokensScript

func GenerateWithdrawLockedUnstakedTokensScript(env Environment) []byte

WithdrawLockedUnstakedTokensScript creates a script that requests a withdrawal of unstaked tokens. The unusual name is to avoid a clash with idtables_staking_templates.go .

func GenerateWithdrawRewardedTokensScript

func GenerateWithdrawRewardedTokensScript(env Environment) []byte

GenerateWithdrawRewardedTokensScript creates a script that withdraws rewarded tokens for an existing node operator

func GenerateWithdrawTokensScript

func GenerateWithdrawTokensScript(env Environment) []byte

func GenerateWithdrawUnstakedTokensScript

func GenerateWithdrawUnstakedTokensScript(env Environment) []byte

GenerateWithdrawUnstakedTokensScript creates a script that withdraws unstaked tokens for an existing node operator

func ReplaceAddresses added in v0.12.1

func ReplaceAddresses(code string, env Environment) string

Types

type Environment

type Environment struct {
	Network                           string
	ViewResolverAddress               string
	BurnerAddress                     string
	CryptoAddress                     string
	FungibleTokenAddress              string
	NonFungibleTokenAddress           string
	MetadataViewsAddress              string
	FungibleTokenMetadataViewsAddress string
	FungibleTokenSwitchboardAddress   string
	FlowTokenAddress                  string
	IDTableAddress                    string
	LockedTokensAddress               string
	StakingProxyAddress               string
	QuorumCertificateAddress          string
	DkgAddress                        string
	EpochAddress                      string
	StorageFeesAddress                string
	FlowFeesAddress                   string
	StakingCollectionAddress          string
	ServiceAccountAddress             string
	NodeVersionBeaconAddress          string
	RandomBeaconHistoryAddress        string
}

Directories

Path Synopsis
cmd
internal
manifest module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL