Documentation
¶
Overview ¶
Package script defines templates for various Cadence scripts.
Index ¶
Constants ¶
const BasicTransfer = `` /* 1104-byte string literal not displayed */
BasicTransfer defines the template for doing a standard transfer of FLOW from one account to another.
Adapted from: https://github.com/onflow/flow-core-contracts/blob/master/transactions/flowToken/transfer_tokens.cdc
const ComputeFees = `` /* 223-byte string literal not displayed */
ComputeFees computes the transaction fees.
const CreateAccount = `` /* 567-byte string literal not displayed */
CreateAccount defines the template for creating new Flow accounts.
const CreateProxyAccount = `` /* 297-byte string literal not displayed */
CreateProxyAccount defines the template for creating a new Flow account with a FlowColdStorageProxy Vault.
const DeployContract = `` /* 214-byte string literal not displayed */
DeployContract defines the template for deploying the given contract on an account.
const GetBalances = `` /* 1150-byte string literal not displayed */
GetBalances defines the template for the read-only transaction script that returns an account's balances.
The returned balances include the value of the account's default FLOW vault, as well as the optional FlowColdStorageProxy vault.
const GetBalancesBasic = `` /* 796-byte string literal not displayed */
GetBalancesBasic defines the template for the read-only transaction script that returns the balance of an account's default FLOW vault.
const GetProxyNonce = `` /* 342-byte string literal not displayed */
GetProxyNonce defines the template for the read-only transaction script that returns a proxy account's sequence number, i.e. the next nonce value for its FlowColdStorageProxy Vault.
If the account isn't a proxy account, i.e. doesn't have a FlowColdStorageProxy Vault, then it will return -1.
const GetProxyPublicKey = `` /* 362-byte string literal not displayed */
GetProxyPublicKey defines the template for the read-only transaction script that returns a proxy account's public key.
If the account isn't a proxy account, i.e. doesn't have a FlowColdStorageProxy Vault, then it will return the empty string.
const ProxyTransfer = `` /* 602-byte string literal not displayed */
ProxyTransfer defines the template for doing a transfer of FLOW from a proxy account.
const UpdateContract = `` /* 231-byte string literal not displayed */
UpdateContract updates an existing contract.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.