Documentation ¶
Index ¶
- Constants
- Variables
- func BytesToCadenceArray(b []byte) cadence.Array
- func CreateFlowTokenMinterTransaction(service, flowToken flow.Address) *flow.TransactionBody
- func DeployContractTransaction(address flow.Address, contract []byte, contractName string) *flow.TransactionBody
- func DeployEpochTransaction(service flow.Address, contract []byte, epochConfig epochs.EpochConfig) *flow.TransactionBody
- func DeployFlowTokenContractTransaction(service, fungibleToken, flowToken flow.Address) *flow.TransactionBody
- func DeployFungibleTokenContractTransaction(fungibleToken flow.Address) *flow.TransactionBody
- func DeployIDTableStakingTransaction(service flow.Address, contract []byte, epochTokenPayout cadence.UFix64, ...) *flow.TransactionBody
- func DeployLockedTokensTransaction(service flow.Address, contract []byte, publicKeys []cadence.Value) *flow.TransactionBody
- func DeployNodeVersionBeaconTransaction(service flow.Address, versionFreezePeriod cadence.UInt64) *flow.TransactionBody
- func DeployStorageFeesContractTransaction(service flow.Address, contract []byte) *flow.TransactionBody
- func DeployTxFeesContractTransaction(service, fungibleToken, flowToken, storageFees, flowFees flow.Address) *flow.TransactionBody
- func FundAccountTransaction(service flow.Address, fungibleToken flow.Address, flowToken flow.Address, ...) *flow.TransactionBody
- func MintFlowTokenTransaction(fungibleToken, flowToken, service flow.Address, initialSupply cadence.UFix64) *flow.TransactionBody
- func RegisterNodeTransaction(service flow.Address, flowTokenAddress flow.Address, nodeAddress flow.Address, ...) *flow.TransactionBody
- func SetContractDeploymentAuthorizersTransaction(serviceAccount flow.Address, authorized []flow.Address) (*flow.TransactionBody, error)
- func SetContractRemovalAuthorizersTransaction(serviceAccount flow.Address, authorized []flow.Address) (*flow.TransactionBody, error)
- func SetExecutionEffortWeightsTransaction(service flow.Address, weights map[uint]uint64) (*flow.TransactionBody, error)
- func SetExecutionMemoryLimitTransaction(service flow.Address, limit uint64) (*flow.TransactionBody, error)
- func SetExecutionMemoryWeightsTransaction(service flow.Address, weights map[uint]uint64) (*flow.TransactionBody, error)
- func SetIsContractDeploymentRestrictedTransaction(serviceAccount flow.Address, restricted bool) (*flow.TransactionBody, error)
- func SetStakingAllowlistTransaction(idTableStakingAddr flow.Address, allowedNodeIDs []flow.Identifier) *flow.TransactionBody
- func SetStakingAllowlistTxArg(allowedNodeIDs []flow.Identifier) cadence.Value
- func SetupAccountTransaction(fungibleToken flow.Address, flowToken flow.Address, ...) *flow.TransactionBody
- func SetupFeesTransaction(service flow.Address, flowFees flow.Address, ...) *flow.TransactionBody
- func SetupParametersTransaction(service flow.Address, ...) *flow.TransactionBody
- func SetupStorageForServiceAccountsTransaction(service, fungibleToken, flowToken, feeContract flow.Address) *flow.TransactionBody
- func SystemChunkTransaction(chain flow.Chain) (*flow.TransactionBody, error)
Constants ¶
const SystemChunkTransactionGasLimit = 100_000_000
Variables ¶
var ContractDeploymentAuthorizedAddressesPath = cadence.Path{ Domain: common.PathDomainStorage.Identifier(), Identifier: "authorizedAddressesToDeployContracts", }
var ContractRemovalAuthorizedAddressesPath = cadence.Path{ Domain: common.PathDomainStorage.Identifier(), Identifier: "authorizedAddressesToRemoveContracts", }
var IsContractDeploymentRestrictedPath = cadence.Path{ Domain: common.PathDomainStorage.Identifier(), Identifier: "isContractDeploymentRestricted", }
var TransactionFeesExecutionEffortWeightsPath = cadence.Path{ Domain: common.PathDomainStorage.Identifier(), Identifier: "executionEffortWeights", }
var TransactionFeesExecutionMemoryLimitPath = cadence.Path{ Domain: common.PathDomainStorage.Identifier(), Identifier: "executionMemoryLimit", }
var TransactionFeesExecutionMemoryWeightsPath = cadence.Path{ Domain: common.PathDomainStorage.Identifier(), Identifier: "executionMemoryWeights", }
Functions ¶
func BytesToCadenceArray ¶ added in v0.25.0
BytesToCadenceArray converts byte slice to cadence array
func CreateFlowTokenMinterTransaction ¶ added in v0.20.0
func CreateFlowTokenMinterTransaction(service, flowToken flow.Address) *flow.TransactionBody
CreateFlowTokenMinterTransaction returns a transaction which creates a Flow token Minter resource and stores it in the service account. This Minter is expected to be stored here by the epoch smart contracts.
func DeployContractTransaction ¶ added in v0.17.6
func DeployContractTransaction(address flow.Address, contract []byte, contractName string) *flow.TransactionBody
TODO (ramtin) get rid of authorizers
func DeployEpochTransaction ¶ added in v0.25.0
func DeployEpochTransaction(service flow.Address, contract []byte, epochConfig epochs.EpochConfig) *flow.TransactionBody
DeployEpochTransaction returns the transaction body for the deploy epoch transaction
func DeployFlowTokenContractTransaction ¶ added in v0.17.6
func DeployFlowTokenContractTransaction(service, fungibleToken, flowToken flow.Address) *flow.TransactionBody
func DeployFungibleTokenContractTransaction ¶ added in v0.17.6
func DeployFungibleTokenContractTransaction(fungibleToken flow.Address) *flow.TransactionBody
func DeployIDTableStakingTransaction ¶ added in v0.25.0
func DeployIDTableStakingTransaction(service flow.Address, contract []byte, epochTokenPayout cadence.UFix64, rewardCut cadence.UFix64) *flow.TransactionBody
DeployIDTableStakingTransaction returns the transaction body for the deploy id table staking transaction
func DeployLockedTokensTransaction ¶ added in v0.25.0
func DeployLockedTokensTransaction(service flow.Address, contract []byte, publicKeys []cadence.Value) *flow.TransactionBody
DeployLockedTokensTransaction returns the transaction body for the deploy locked tokens transaction
func DeployNodeVersionBeaconTransaction ¶ added in v0.30.5
func DeployNodeVersionBeaconTransaction( service flow.Address, versionFreezePeriod cadence.UInt64, ) *flow.TransactionBody
DeployNodeVersionBeaconTransaction returns the transaction body for the deployment NodeVersionBeacon contract transaction
func DeployStorageFeesContractTransaction ¶ added in v0.17.6
func DeployStorageFeesContractTransaction(service flow.Address, contract []byte) *flow.TransactionBody
func DeployTxFeesContractTransaction ¶ added in v0.17.6
func DeployTxFeesContractTransaction(service, fungibleToken, flowToken, storageFees, flowFees flow.Address) *flow.TransactionBody
func FundAccountTransaction ¶ added in v0.25.0
func FundAccountTransaction( service flow.Address, fungibleToken flow.Address, flowToken flow.Address, nodeAddress flow.Address, ) *flow.TransactionBody
FundAccountTransaction returns the transaction body for the fund account transaction
func MintFlowTokenTransaction ¶ added in v0.17.6
func RegisterNodeTransaction ¶ added in v0.25.0
func RegisterNodeTransaction( service flow.Address, flowTokenAddress flow.Address, nodeAddress flow.Address, id *flow.Identity, ) *flow.TransactionBody
RegisterNodeTransaction creates a new node struct object. Then, if the node is a collector node, creates a new account and adds a QC object to it If the node is a consensus node, it creates a new account and adds a DKG object to it
func SetContractDeploymentAuthorizersTransaction ¶
func SetContractDeploymentAuthorizersTransaction(serviceAccount flow.Address, authorized []flow.Address) (*flow.TransactionBody, error)
SetContractDeploymentAuthorizersTransaction returns a transaction for updating list of authorized accounts allowed to deploy/update contracts
func SetContractRemovalAuthorizersTransaction ¶ added in v0.26.0
func SetContractRemovalAuthorizersTransaction(serviceAccount flow.Address, authorized []flow.Address) (*flow.TransactionBody, error)
SetContractRemovalAuthorizersTransaction returns a transaction for updating list of authorized accounts allowed to remove contracts
func SetExecutionEffortWeightsTransaction ¶ added in v0.25.2
func SetExecutionEffortWeightsTransaction( service flow.Address, weights map[uint]uint64, ) (*flow.TransactionBody, error)
SetExecutionEffortWeightsTransaction creates a transaction that sets up weights for the weighted Meter.
func SetExecutionMemoryLimitTransaction ¶ added in v0.26.2
func SetExecutionMemoryWeightsTransaction ¶ added in v0.26.0
func SetExecutionMemoryWeightsTransaction( service flow.Address, weights map[uint]uint64, ) (*flow.TransactionBody, error)
SetExecutionMemoryWeightsTransaction creates a transaction that sets up weights for the weighted Meter.
func SetIsContractDeploymentRestrictedTransaction ¶ added in v0.26.0
func SetIsContractDeploymentRestrictedTransaction(serviceAccount flow.Address, restricted bool) (*flow.TransactionBody, error)
SetIsContractDeploymentRestrictedTransaction sets the restricted flag for contract deployment
func SetStakingAllowlistTransaction ¶ added in v0.21.0
func SetStakingAllowlistTransaction(idTableStakingAddr flow.Address, allowedNodeIDs []flow.Identifier) *flow.TransactionBody
SetStakingAllowlistTransaction returns transaction body for set staking allowlist transaction
func SetStakingAllowlistTxArg ¶ added in v0.30.0
func SetStakingAllowlistTxArg(allowedNodeIDs []flow.Identifier) cadence.Value
SetStakingAllowlistTxArg returns the transaction argument for setting the staking allow-list.
func SetupAccountTransaction ¶ added in v0.25.0
func SetupAccountTransaction( fungibleToken flow.Address, flowToken flow.Address, accountAddress flow.Address, ) *flow.TransactionBody
SetupAccountTransaction returns the transaction body for the setup account transaction
func SetupFeesTransaction ¶ added in v0.17.6
func SetupParametersTransaction ¶ added in v0.25.2
func SetupStorageForServiceAccountsTransaction ¶ added in v0.17.6
func SetupStorageForServiceAccountsTransaction( service, fungibleToken, flowToken, feeContract flow.Address, ) *flow.TransactionBody
func SystemChunkTransaction ¶ added in v0.17.6
func SystemChunkTransaction(chain flow.Chain) (*flow.TransactionBody, error)
SystemChunkTransaction creates and returns the transaction corresponding to the system chunk for the given chain.
Types ¶
This section is empty.