Documentation ¶
Index ¶
- Constants
- func AddToCounterTransaction(counter, signer flow.Address) *flow.TransactionBody
- func BytesToCadenceArray(l []byte) cadence.Array
- func CreateAccountCreationTransaction(t *testing.T, chain flow.Chain) (flow.AccountPrivateKey, *flow.TransactionBody)
- func CreateAccounts(vm *fvm.VirtualMachine, view state.View, programs *programs.Programs, ...) ([]flow.Address, error)
- func CreateAccountsWithSimpleAddresses(vm *fvm.VirtualMachine, view state.View, programs *programs.Programs, ...) ([]flow.Address, error)
- func CreateAddAccountKeyTransaction(t *testing.T, accountKey *flow.AccountPrivateKey) *flow.TransactionBody
- func CreateContractDeploymentTransaction(contractName string, contract string, authorizer flow.Address, ...) *flow.TransactionBody
- func CreateCounterPanicTransaction(counter, signer flow.Address) *flow.TransactionBody
- func CreateCounterTransaction(counter, signer flow.Address) *flow.TransactionBody
- func CreateEmitEventTransaction(contractAccount, signer flow.Address) *flow.TransactionBody
- func CreateRemoveAccountKeyTransaction(index int) *flow.TransactionBody
- func CreateUnauthorizedContractDeploymentTransaction(contractName string, contract string, authorizer flow.Address) *flow.TransactionBody
- func DeployCheckerHeavyTransaction(authorizer flow.Address, chain flow.Chain) *flow.TransactionBody
- func DeployCounterContractTransaction(authorizer flow.Address, chain flow.Chain) *flow.TransactionBody
- func DeployEventContractTransaction(authorizer flow.Address, chain flow.Chain, eventValue int) *flow.TransactionBody
- func DeployUnauthorizedCounterContractTransaction(authorizer flow.Address) *flow.TransactionBody
- func GenerateAccountPrivateKey() (flow.AccountPrivateKey, error)
- func GenerateAccountPrivateKeys(numberOfPrivateKeys int) ([]flow.AccountPrivateKey, error)
- func RootBootstrappedLedger(vm *fvm.VirtualMachine, ctx fvm.Context) state.View
- func SignEnvelope(tx *flow.TransactionBody, account flow.Address, ...) error
- func SignPayload(tx *flow.TransactionBody, account flow.Address, ...) error
- func SignTransaction(tx *flow.TransactionBody, address flow.Address, ...) error
- func SignTransactionAsServiceAccount(tx *flow.TransactionBody, seqNum uint64, chain flow.Chain) error
- func UnauthorizedDeployEventContractTransaction(authorizer flow.Address, chain flow.Chain, eventValue int) *flow.TransactionBody
- func UpdateContractDeploymentTransaction(contractName string, contract string, authorizer flow.Address, ...) *flow.TransactionBody
- func UpdateEventContractTransaction(authorizer flow.Address, chain flow.Chain, eventValue int) *flow.TransactionBody
Constants ¶
const CheckerHeavyTransaction = `` /* 156001-byte string literal not displayed */
const CounterContract = `` /* 280-byte string literal not displayed */
const EventContract = `` /* 147-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func AddToCounterTransaction ¶
func AddToCounterTransaction(counter, signer flow.Address) *flow.TransactionBody
func BytesToCadenceArray ¶
func CreateAccountCreationTransaction ¶
func CreateAccountCreationTransaction(t *testing.T, chain flow.Chain) (flow.AccountPrivateKey, *flow.TransactionBody)
CreateAccountCreationTransaction creates a transaction which will create a new account.
This function returns a randomly generated private key and the transaction.
func CreateAccounts ¶
func CreateAccounts( vm *fvm.VirtualMachine, view state.View, programs *programs.Programs, privateKeys []flow.AccountPrivateKey, chain flow.Chain, ) ([]flow.Address, error)
CreateAccounts inserts accounts into the ledger using the provided private keys.
func CreateAddAccountKeyTransaction ¶
func CreateAddAccountKeyTransaction(t *testing.T, accountKey *flow.AccountPrivateKey) *flow.TransactionBody
CreateAddAccountKeyTransaction generates a tx that adds a key to an account.
func CreateCounterPanicTransaction ¶
func CreateCounterPanicTransaction(counter, signer flow.Address) *flow.TransactionBody
CreateCounterPanicTransaction returns a transaction that will manipulate state by writing a new counter into storage and then panic. It can be used to test whether execution state stays untouched/will revert
func CreateCounterTransaction ¶
func CreateCounterTransaction(counter, signer flow.Address) *flow.TransactionBody
func CreateEmitEventTransaction ¶ added in v0.14.6
func CreateEmitEventTransaction(contractAccount, signer flow.Address) *flow.TransactionBody
func CreateRemoveAccountKeyTransaction ¶
func CreateRemoveAccountKeyTransaction(index int) *flow.TransactionBody
CreateRemoveAccountKeyTransaction generates a tx that removes a key from an account.
func DeployCheckerHeavyTransaction ¶ added in v0.15.1
func DeployEventContractTransaction ¶ added in v0.14.6
func DeployUnauthorizedCounterContractTransaction ¶
func DeployUnauthorizedCounterContractTransaction(authorizer flow.Address) *flow.TransactionBody
func GenerateAccountPrivateKey ¶
func GenerateAccountPrivateKey() (flow.AccountPrivateKey, error)
GenerateAccountPrivateKey generates a private key.
func GenerateAccountPrivateKeys ¶
func GenerateAccountPrivateKeys(numberOfPrivateKeys int) ([]flow.AccountPrivateKey, error)
GenerateAccountPrivateKeys generates a number of private keys.
func RootBootstrappedLedger ¶
func SignEnvelope ¶
func SignEnvelope(tx *flow.TransactionBody, account flow.Address, privateKey flow.AccountPrivateKey) error
func SignPayload ¶
func SignPayload( tx *flow.TransactionBody, account flow.Address, privateKey flow.AccountPrivateKey, ) error
func SignTransaction ¶
func SignTransaction( tx *flow.TransactionBody, address flow.Address, privateKey flow.AccountPrivateKey, seqNum uint64, ) error
func UnauthorizedDeployEventContractTransaction ¶ added in v0.14.6
func UpdateContractDeploymentTransaction ¶ added in v0.14.6
func UpdateEventContractTransaction ¶ added in v0.14.6
Types ¶
This section is empty.