Documentation
¶
Overview ¶
Package script defines templates for various Cadence scripts.
Index ¶
Constants ¶
const BasicTransfer = `` /* 1142-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 Confirmed in use: https://www.flowdiver.io/tx/5316f7b228370d2571a3f2ec5b060a142d3261d8e05b80010c204915843d69e7?tab=script
const ComputeFees = `` /* 231-byte string literal not displayed */
ComputeFees computes the transaction fees.
const CreateAccount = `` /* 586-byte string literal not displayed */
CreateAccount defines the template for creating new Flow accounts. Confirmed in use: https://www.flowdiver.io/tx/ff0a8d816fe4f73edee665454f26b5fc06f5a39758cb90c313a9c3372f45f6c7?tab=script
const CreateProxyAccount = `` /* 312-byte string literal not displayed */
CreateProxyAccount defines the template for creating a new Flow account with a FlowColdStorageProxy Vault.
const GetBalances = `` /* 1190-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 = `` /* 847-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 = `` /* 347-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 = `` /* 359-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 = `` /* 611-byte string literal not displayed */
ProxyTransfer defines the template for doing a transfer of FLOW from a proxy account.
const SetContract = `` /* 1528-byte string literal not displayed */
SetContract deploys/updates a contract on an account, while also updating the account's signing key.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.