blueprints

package
v0.23.7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: AGPL-3.0 Imports: 9 Imported by: 5

Documentation

Index

Constants

View Source
const ContractDeploymentAuthorizedAddressesPathDomain = "storage"
View Source
const ContractDeploymentAuthorizedAddressesPathIdentifier = "authorizedAddressesToDeployContracts"
View Source
const SystemChunkTransactionGasLimit = 100_000_000

Variables

This section is empty.

Functions

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 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 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, flowFees flow.Address) *flow.TransactionBody

func MintFlowTokenTransaction added in v0.17.6

func MintFlowTokenTransaction(
	fungibleToken, flowToken, service flow.Address,
	initialSupply cadence.UFix64,
) *flow.TransactionBody

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 SetStakingAllowlistTransaction added in v0.21.0

func SetStakingAllowlistTransaction(idTableStakingAddr flow.Address, allowedNodeIDs []flow.Identifier) *flow.TransactionBody

func SetupFeesTransaction added in v0.17.6

func SetupFeesTransaction(
	service flow.Address,
	transactionFee,
	addressCreationFee,
	minimumStorageReservation,
	storagePerFlow cadence.UFix64,
	restrictedAccountCreationEnabled cadence.Bool,
) *flow.TransactionBody

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.

Jump to

Keyboard shortcuts

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