contracts

package module
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: Unlicense Imports: 5 Imported by: 12

Documentation

Index

Constants

View Source
const (

	// Test contracts
	// only used for testing
	TESTFlowIdentityTableFilename = "testContracts/TestFlowIDTableStaking.cdc"
)

Variables

This section is empty.

Functions

func FlowContractAudits added in v0.10.1

func FlowContractAudits() []byte

FlowContractAudits returns the deprecated FlowContractAudits contract. This contract is no longer used on any network

func FlowDKG added in v0.7.4

func FlowDKG() []byte

FlowDKG returns the FlowDKG contract.

func FlowEpoch added in v0.7.4

func FlowEpoch(fungibleTokenAddress,
	flowTokenAddress,
	idTableAddress,
	qcAddress,
	dkgAddress string,
	flowFeesAddress string,
) []byte

FlowEpoch returns the FlowEpoch contract.

func FlowFees

func FlowFees(fungibleTokenAddress, flowTokenAddress, storageFees string) []byte

FlowFees returns the FlowFees contract.

The returned contract will import the FungibleToken and FlowToken contracts from the specified addresses.

func FlowIDTableStaking added in v0.6.0

func FlowIDTableStaking(fungibleTokenAddress, flowTokenAddress, flowFeesAddress string, latest bool) []byte

FlowIDTableStaking returns the FlowIDTableStaking contract

The staking contract imports the FungibleToken and FlowToken contracts

Parameter: latest: indicates if the contract is the latest version, or an old version. Used to test upgrades

func FlowLockedTokens added in v0.6.0

func FlowLockedTokens(
	fungibleTokenAddress,
	flowTokenAddress,
	idTableAddress,
	stakingProxyAddress,
	storageFeesAddress string,
) []byte

FlowLockedTokens return the LockedTokens contract

Locked Tokens imports FungibleToken, FlowToken, FlowIDTableStaking, StakingProxy, and FlowStorageFees

func FlowQC added in v0.7.4

func FlowQC() []byte

FlowQC returns the FlowClusterQCs contract.

func FlowServiceAccount

func FlowServiceAccount(fungibleTokenAddress, flowTokenAddress, flowFeesAddress, storageFeesAddress string) []byte

FlowServiceAccount returns the FlowServiceAccount contract.

The returned contract will import the FungibleToken, FlowToken, FlowFees, and FlowStorageFees contracts from the specified addresses.

func FlowStakingCollection added in v0.7.3

func FlowStakingCollection(
	fungibleTokenAddress,
	flowTokenAddress,
	idTableAddress,
	stakingProxyAddress,
	lockedTokensAddress,
	storageFeesAddress,
	qcAddress,
	dkgAddress,
	epochAddress string,
) []byte

FlowStakingCollection returns the StakingCollection contract.

func FlowStakingProxy added in v0.6.0

func FlowStakingProxy() []byte

FlowStakingProxy returns the StakingProxy contract.

func FlowStorageFees added in v0.7.1

func FlowStorageFees(fungibleTokenAddress, flowTokenAddress string) []byte

FlowStorageFees returns the FlowStorageFees contract which imports the fungible token and flow token contracts

func FlowToken

func FlowToken(fungibleTokenAddress string) []byte

FlowToken returns the FlowToken contract.

The returned contract will import the FungibleToken contract from the specified address.

func FungibleToken

func FungibleToken() []byte

FungibleToken returns the FungibleToken contract interface.

func NodeVersionBeacon added in v0.12.2

func NodeVersionBeacon() []byte

NodeVersionBeacon returns the NodeVersionBeacon contract content.

func TESTFlowIDTableStaking added in v0.6.0

func TESTFlowIDTableStaking(fungibleTokenAddress, flowTokenAddress string) []byte

TESTFlowIDTableStaking returns the TestFlowIDTableStaking contract

func TESTFlowStakingCollection added in v0.7.3

func TESTFlowStakingCollection(
	fungibleTokenAddress,
	flowTokenAddress,
	idTableAddress,
	stakingProxyAddress,
	lockedTokensAddress,
	storageFeesAddress,
	qcAddress,
	dkgAddress,
	epochAddress string,
) []byte

TESTFlowStakingCollection returns the StakingCollection contract with all public fields and functions.

func TestFlowFees added in v0.7.9

func TestFlowFees(fungibleTokenAddress, flowTokenAddress, storageFeesAddress string) []byte

Types

This section is empty.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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