basic

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Bytes32Len                = 32
	OnChainOpsTreeDepth       = 5
	OnChainOpsTreeHelperDepth = 4

	GovernanceContractFilePrefix      = "contract_Governance_"
	AssetGovernanceContractFilePrefix = "contract_AssetGovernance_"
	VerifierContractFilePrefix        = "contract_Verifier_"
	ZecreyContractFilePrefix          = "contract_Zecrey_"

	ContractInfoFileName = "contract_addresses.json"

	SuperAddress = "0xE9b15a2D396B349ABF60e53ec66Bcf9af262D449"
	SuperSk      = "acbaa269bd7573ff12361be4b97201aef019776ea13384681d4e5ba6a88367d9"

	ERC20_REY_Name   = "Zecrey Token"
	ERC20_REY_Symbol = "REY"

	ERC20_ETH_Name   = "ETH Mock"
	ERC20_ETH_Symbol = "ETH"

	ERC20_MATIC_Name   = "MATIC Mock"
	ERC20_MATIC_Symbol = "MATIC"

	ERC20_NEAR_Name   = "NEAR Mock"
	ERC20_NEAR_Symbol = "NEAR"

	ERC20_AVAX_Name   = "AVAX Mock"
	ERC20_AVAX_Symbol = "AVAX"

	ERC20_BIT_Name   = "BIT Mock"
	ERC20_BIT_Symbol = "BIT"

	ERC20_USDT_Name   = "USDT Mock"
	ERC20_USDT_Symbol = "USDT"

	ERC20_USDC_Name   = "USDC Mock"
	ERC20_USDC_Symbol = "USDC"

	ERC20_DAI_Name   = "DAI Mock"
	ERC20_DAI_Symbol = "DAI"

	ERC20_BNB_Name   = "BNB Mock"
	ERC20_BNB_Symbol = "BNB"
)
View Source
const AssetGovernanceABI = "" /* 1994-byte string literal not displayed */

AssetGovernanceABI is the input ABI used to generate the binding from.

View Source
const Erc20ABI = "" /* 3871-byte string literal not displayed */

Erc20ABI is the input ABI used to generate the binding from.

View Source
const GovernanceABI = "" /* 7321-byte string literal not displayed */

GovernanceABI is the input ABI used to generate the binding from.

View Source
const VerifierABI = "" /* 1099-byte string literal not displayed */

VerifierABI is the input ABI used to generate the binding from.

View Source
const ZecreyABI = "" /* 14888-byte string literal not displayed */

ZecreyABI is the input ABI used to generate the binding from.

Variables

View Source
var (
	AddressType, _      = abi.NewType("address", "", nil)
	Bytes32Type, _      = abi.NewType("bytes32", "", nil)
	Uint32Type, _       = abi.NewType("uint32", "", nil)
	Uint16Type, _       = abi.NewType("uint16", "", nil)
	Uint256Type, _      = abi.NewType("uint256", "", nil)
	MerkleHelperType, _ = abi.NewType("bool[4]", "", nil)

	InitialSupply, _ = new(big.Int).SetString("100000000000000000000000000", 10)
)
View Source
var AssetGovernanceBin = "" /* 8776-byte string literal not displayed */

AssetGovernanceBin is the compiled bytecode used for deploying new contracts.

View Source
var Erc20Bin = "" /* 7122-byte string literal not displayed */

Erc20Bin is the compiled bytecode used for deploying new contracts.

View Source
var GovernanceBin = "" /* 8776-byte string literal not displayed */

GovernanceBin is the compiled bytecode used for deploying new contracts.

View Source
var VerifierBin = "" /* 15580-byte string literal not displayed */

VerifierBin is the compiled bytecode used for deploying new contracts.

View Source
var ZecreyBin = "" /* 37892-byte string literal not displayed */

ZecreyBin is the compiled bytecode used for deploying new contracts.

Functions

func AssetGovernanceSetAsset

func AssetGovernanceSetAsset(
	cli *_rpc.ProviderClient, authCli *_rpc.AuthClient, instance *AssetGovernance,
	assetId uint16, assetAddr string,
	gasPrice *big.Int, gasLimit uint64,
) (txHash string, err error)

AssetGovernanceSetAsset: set asset

func AssetGovernanceSetLister

func AssetGovernanceSetLister(
	cli *_rpc.ProviderClient, authCli *_rpc.AuthClient, instance *AssetGovernance,
	listerAddr string, isActive bool,
	gasPrice *big.Int, gasLimit uint64,
) (txHash string, err error)

AssetGovernanceSetLister: set lister

func ConstructCliAndAuthCli

func ConstructCliAndAuthCli(chainId *big.Int, networkEndpoint string, sk string) (cli *ProviderClient, authCli *AuthClient, err error)

func ConstructTransactOpts

func ConstructTransactOpts(cli *_rpc.ProviderClient, authCli *_rpc.AuthClient, gasPrice *big.Int, gasLimit uint64) (transactOpts *bind.TransactOpts, err error)

func DeployAssetGovernanceContract

func DeployAssetGovernanceContract(
	cli *_rpc.ProviderClient, authCli *_rpc.AuthClient,
	governanceAddr string, listingFeeAssetAddr string, listingFee *big.Int, listingCap uint16, treasuryAddr string,
	gasPrice *big.Int, gasLimit uint64,
) (addr string, txHash string, err error)

DeployGovernanceContract: deploy governance

func DeployErc20Contract

func DeployErc20Contract(
	cli *_rpc.ProviderClient, authCli *_rpc.AuthClient,
	name string, symbol string,
	gasPrice *big.Int, gasLimit uint64,
) (addr string, txHash string, err error)

DeployGovernanceContract: deploy governance

func DeployGovernanceContract

func DeployGovernanceContract(
	cli *_rpc.ProviderClient, authCli *_rpc.AuthClient,
	gasPrice *big.Int, gasLimit uint64,
) (addr string, txHash string, err error)

DeployGovernanceContract: deploy governance

func DeployVerifierContract

func DeployVerifierContract(
	cli *_rpc.ProviderClient, authCli *_rpc.AuthClient,
	gasPrice *big.Int, gasLimit uint64,
) (addr string, txHash string, err error)

DeployVerifierContract: deploy verifier

func DeployZecreyContract

func DeployZecreyContract(
	cli *_rpc.ProviderClient, authCli *_rpc.AuthClient,
	gasPrice *big.Int, gasLimit uint64,
) (addr string, txHash string, err error)

DeployZecreyContract: deploy zecrey zecrey

func EmptyCallOpts

func EmptyCallOpts() *bind.CallOpts

func GovernanceChangeAssetGovernance

func GovernanceChangeAssetGovernance(
	cli *_rpc.ProviderClient, authCli *_rpc.AuthClient, instance *Governance,
	assetGovernanceAddr string,
	gasPrice *big.Int, gasLimit uint64,
) (txHash string, err error)

GovernanceChangeAssetGovernance: change asset governance

func GovernanceChangeGovernor

func GovernanceChangeGovernor(
	cli *_rpc.ProviderClient, authCli *_rpc.AuthClient, instance *Governance,
	owner string,
	gasPrice *big.Int, gasLimit uint64,
) (txHash string, err error)

GovernanceChangeGovernor: change governor

func GovernanceInitialize

func GovernanceInitialize(
	cli *_rpc.ProviderClient, authCli *_rpc.AuthClient, instance *Governance,
	owner string,
	gasPrice *big.Int, gasLimit uint64,
) (txHash string, err error)

GovernanceInitialize: initialize governance zecrey, set governor

func GovernanceSetCommitter

func GovernanceSetCommitter(
	cli *_rpc.ProviderClient, authCli *_rpc.AuthClient, instance *Governance,
	committer string, isActive bool,
	gasPrice *big.Int, gasLimit uint64,
) (txHash string, err error)

GovernanceSetCommitter: set committer

func GovernanceSetMonitor

func GovernanceSetMonitor(
	cli *_rpc.ProviderClient, authCli *_rpc.AuthClient, instance *Governance,
	monitor string, isActive bool,
	gasPrice *big.Int, gasLimit uint64,
) (txHash string, err error)

GovernanceSetMonitor: set monitor

func GovernanceSetVerifier

func GovernanceSetVerifier(
	cli *_rpc.ProviderClient, authCli *_rpc.AuthClient, instance *Governance,
	verifier string, isActive bool,
	gasPrice *big.Int, gasLimit uint64,
) (txHash string, err error)

GovernanceSetVerifier: set verifier

func GovernanceValidateAssetAddress

func GovernanceValidateAssetAddress(
	instance *Governance,
	assetAddr string,
) (uint16, error)

GovernanceValidateAssetAddress: get related asset id of asset address

func IsValidAddress

func IsValidAddress(addr string) bool

func PackInitializeGovernanceParams

func PackInitializeGovernanceParams(owner string) ([]byte, error)

func PackInitializeZecreyParams

func PackInitializeZecreyParams(
	governanceAddr string,
	verifierAddr string,
	genesisBlockNumber uint32,
	genesisOnchainOpsRoot []byte,
	genesisStateRoot []byte,
	genesisTimestamp *big.Int,
	genesisCommitment []byte,
	merkleHelper [OnChainOpsTreeHelperDepth]bool,
) ([]byte, error)

func SetFixed32Bytes

func SetFixed32Bytes(buf []byte) [32]byte

func ZecreyCommitBlocks

func ZecreyCommitBlocks(
	cli *_rpc.ProviderClient, authCli *_rpc.AuthClient, instance *Zecrey,
	lastBlock StorageBlockHeader, commitBlocksInfo []ZecreyCommitBlockInfo,
	gasPrice *big.Int, gasLimit uint64,
) (txHash string, err error)

ZecreyCommitBlocks: commit blocks

func ZecreyComputeCommitment

func ZecreyComputeCommitment(hashVal []byte, newBlock ZecreyCommitBlockInfo) (value []byte, err error)

func ZecreyComputeOnchainOpsHash

func ZecreyComputeOnchainOpsHash(
	cli *_rpc.ProviderClient, authCli *_rpc.AuthClient, instance *Zecrey,
	onchainOpsPubData []byte,
) (hashVal []byte, err error)

ZecreyComputeOnchainOpsHash: compute onchain ops hash

func ZecreyDepositOrLockERC20

func ZecreyDepositOrLockERC20(
	cli *_rpc.ProviderClient, authCli *_rpc.AuthClient, instance *Zecrey,
	opType uint8, assetAddr string, amount *big.Int, accountName string,
	gasPrice *big.Int, gasLimit uint64,
) (txHash string, err error)

ZecreyDepositOrLockERC20: deposit or lock erc20

func ZecreyDepositOrLockNativeAsset

func ZecreyDepositOrLockNativeAsset(
	cli *_rpc.ProviderClient, authCli *_rpc.AuthClient, instance *Zecrey,
	opType uint8, accountName string,
	gasPrice *big.Int, gasLimit uint64,
) (txHash string, err error)

ZecreyDepositOrLockNativeAsset: deposit or lock native asset

func ZecreyExecuteBlocks

func ZecreyExecuteBlocks(
	cli *_rpc.ProviderClient, authCli *_rpc.AuthClient, instance *Zecrey,
	blocks []ZecreyExecuteBlockInfo,
	gasPrice *big.Int, gasLimit uint64,
) (txHash string, err error)

ZecreyExecuteBlocks: execute blocks

func ZecreyGetPendingBalance

func ZecreyGetPendingBalance(
	cli *_rpc.ProviderClient, authCli *_rpc.AuthClient, instance *Zecrey,
	owner string, assetAddr string,
) (*big.Int, error)

ZecreyGetPendingBalance: get pending balance

func ZecreyGetStoredBlockHashesByHeight

func ZecreyGetStoredBlockHashesByHeight(instance *Zecrey, height uint32) (res []byte, err error)

func ZecreyInitialize

func ZecreyInitialize(
	cli *_rpc.ProviderClient, authCli *_rpc.AuthClient, instance *Zecrey,
	governanceAddr string,
	verifierAddr string,
	genesisBlockNumber uint32,
	genesisOnchainOpsRoot []byte,
	genesisStateRoot []byte,
	genesisTimestamp *big.Int,
	genesisCommitment []byte,
	genesisMerkleHelper [OnChainOpsTreeHelperDepth]bool,
	gasPrice *big.Int, gasLimit uint64,
) (txHash string, err error)

ZecreyInitialize: initialize zecrey zecrey

func ZecreyVerifyBlocks

func ZecreyVerifyBlocks(
	cli *_rpc.ProviderClient, authCli *_rpc.AuthClient, instance *Zecrey,
	blockInfos []StorageBlockHeader,
	proofs []*big.Int,
	gasPrice *big.Int, gasLimit uint64,
) (txHash string, err error)

ZecreyVerifyBlocks: verify blocks

func ZecreyWithdrawPendingBalance

func ZecreyWithdrawPendingBalance(
	cli *_rpc.ProviderClient, authCli *_rpc.AuthClient, instance *Zecrey,
	owner string, assetAddr string, amount *big.Int,
	gasPrice *big.Int, gasLimit uint64,
) (txHash string, err error)

ZecreyWithdrawPendingBalance: withdraw pending balance

Types

type AssetGovernance

type AssetGovernance struct {
	AssetGovernanceCaller     // Read-only binding to the zecrey
	AssetGovernanceTransactor // Write-only binding to the zecrey
	AssetGovernanceFilterer   // Log filterer for zecrey events
}

AssetGovernance is an auto generated Go binding around an Ethereum zecrey.

func DeployAssetGovernance

func DeployAssetGovernance(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *AssetGovernance, error)

DeployAssetGovernance deploys a new Ethereum zecrey, binding an instance of AssetGovernance to it.

func LoadAssetGovernanceInstance

func LoadAssetGovernanceInstance(cli *_rpc.ProviderClient, addr string) (instance *AssetGovernance, err error)

LoadGovernanceInstance: load governance instance if it is already deployed

func NewAssetGovernance

func NewAssetGovernance(address common.Address, backend bind.ContractBackend) (*AssetGovernance, error)

NewAssetGovernance creates a new instance of AssetGovernance, bound to a specific deployed zecrey.

type AssetGovernanceCaller

type AssetGovernanceCaller struct {
	// contains filtered or unexported fields
}

AssetGovernanceCaller is an auto generated read-only Go binding around an Ethereum zecrey.

func NewAssetGovernanceCaller

func NewAssetGovernanceCaller(address common.Address, caller bind.ContractCaller) (*AssetGovernanceCaller, error)

NewAssetGovernanceCaller creates a new read-only instance of AssetGovernance, bound to a specific deployed zecrey.

func (*AssetGovernanceCaller) Governance

func (_AssetGovernance *AssetGovernanceCaller) Governance(opts *bind.CallOpts) (common.Address, error)

Governance is a free data retrieval call binding the zecrey method 0x5aa6e675.

Solidity: function governance() view returns(address)

func (*AssetGovernanceCaller) ListingCap

func (_AssetGovernance *AssetGovernanceCaller) ListingCap(opts *bind.CallOpts) (uint16, error)

ListingCap is a free data retrieval call binding the zecrey method 0x9b453945.

Solidity: function listingCap() view returns(uint16)

func (*AssetGovernanceCaller) TokenLister

func (_AssetGovernance *AssetGovernanceCaller) TokenLister(opts *bind.CallOpts, arg0 common.Address) (bool, error)

TokenLister is a free data retrieval call binding the zecrey method 0xaf3d414b.

Solidity: function tokenLister(address ) view returns(bool)

func (*AssetGovernanceCaller) Treasury

func (_AssetGovernance *AssetGovernanceCaller) Treasury(opts *bind.CallOpts) (common.Address, error)

Treasury is a free data retrieval call binding the zecrey method 0x61d027b3.

Solidity: function treasury() view returns(address)

type AssetGovernanceCallerRaw

type AssetGovernanceCallerRaw struct {
	Contract *AssetGovernanceCaller // Generic read-only zecrey binding to access the raw methods on
}

AssetGovernanceCallerRaw is an auto generated low-level read-only Go binding around an Ethereum zecrey.

func (*AssetGovernanceCallerRaw) Call

func (_AssetGovernance *AssetGovernanceCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) zecrey method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type AssetGovernanceCallerSession

type AssetGovernanceCallerSession struct {
	Contract *AssetGovernanceCaller // Generic zecrey caller binding to set the session for
	CallOpts bind.CallOpts          // Call options to use throughout this session
}

AssetGovernanceCallerSession is an auto generated read-only Go binding around an Ethereum zecrey, with pre-set call options.

func (*AssetGovernanceCallerSession) Governance

func (_AssetGovernance *AssetGovernanceCallerSession) Governance() (common.Address, error)

Governance is a free data retrieval call binding the zecrey method 0x5aa6e675.

Solidity: function governance() view returns(address)

func (*AssetGovernanceCallerSession) ListingCap

func (_AssetGovernance *AssetGovernanceCallerSession) ListingCap() (uint16, error)

ListingCap is a free data retrieval call binding the zecrey method 0x9b453945.

Solidity: function listingCap() view returns(uint16)

func (*AssetGovernanceCallerSession) TokenLister

func (_AssetGovernance *AssetGovernanceCallerSession) TokenLister(arg0 common.Address) (bool, error)

TokenLister is a free data retrieval call binding the zecrey method 0xaf3d414b.

Solidity: function tokenLister(address ) view returns(bool)

func (*AssetGovernanceCallerSession) Treasury

func (_AssetGovernance *AssetGovernanceCallerSession) Treasury() (common.Address, error)

Treasury is a free data retrieval call binding the zecrey method 0x61d027b3.

Solidity: function treasury() view returns(address)

type AssetGovernanceFilterer

type AssetGovernanceFilterer struct {
	// contains filtered or unexported fields
}

AssetGovernanceFilterer is an auto generated log filtering Go binding around an Ethereum zecrey events.

func NewAssetGovernanceFilterer

func NewAssetGovernanceFilterer(address common.Address, filterer bind.ContractFilterer) (*AssetGovernanceFilterer, error)

NewAssetGovernanceFilterer creates a new log filterer instance of AssetGovernance, bound to a specific deployed zecrey.

func (*AssetGovernanceFilterer) FilterTokenListerUpdate

func (_AssetGovernance *AssetGovernanceFilterer) FilterTokenListerUpdate(opts *bind.FilterOpts, tokenLister []common.Address) (*AssetGovernanceTokenListerUpdateIterator, error)

FilterTokenListerUpdate is a free log retrieval operation binding the zecrey event 0x947516bb7f07e641084b9d05943fb1c89e05da3d4d17f707ab4efd6ab58f0910.

Solidity: event TokenListerUpdate(address indexed tokenLister, bool isActive)

func (*AssetGovernanceFilterer) ParseTokenListerUpdate

func (_AssetGovernance *AssetGovernanceFilterer) ParseTokenListerUpdate(log types.Log) (*AssetGovernanceTokenListerUpdate, error)

ParseTokenListerUpdate is a log parse operation binding the zecrey event 0x947516bb7f07e641084b9d05943fb1c89e05da3d4d17f707ab4efd6ab58f0910.

Solidity: event TokenListerUpdate(address indexed tokenLister, bool isActive)

func (*AssetGovernanceFilterer) WatchTokenListerUpdate

func (_AssetGovernance *AssetGovernanceFilterer) WatchTokenListerUpdate(opts *bind.WatchOpts, sink chan<- *AssetGovernanceTokenListerUpdate, tokenLister []common.Address) (event.Subscription, error)

WatchTokenListerUpdate is a free log subscription operation binding the zecrey event 0x947516bb7f07e641084b9d05943fb1c89e05da3d4d17f707ab4efd6ab58f0910.

Solidity: event TokenListerUpdate(address indexed tokenLister, bool isActive)

type AssetGovernanceRaw

type AssetGovernanceRaw struct {
	Contract *AssetGovernance // Generic zecrey binding to access the raw methods on
}

AssetGovernanceRaw is an auto generated low-level Go binding around an Ethereum zecrey.

func (*AssetGovernanceRaw) Call

func (_AssetGovernance *AssetGovernanceRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) zecrey method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*AssetGovernanceRaw) Transact

func (_AssetGovernance *AssetGovernanceRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) zecrey method with params as input values.

func (*AssetGovernanceRaw) Transfer

func (_AssetGovernance *AssetGovernanceRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the zecrey, calling its default method if one is available.

type AssetGovernanceSession

type AssetGovernanceSession struct {
	Contract     *AssetGovernance  // Generic zecrey binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

AssetGovernanceSession is an auto generated Go binding around an Ethereum zecrey, with pre-set call and transact options.

func (*AssetGovernanceSession) Governance

func (_AssetGovernance *AssetGovernanceSession) Governance() (common.Address, error)

Governance is a free data retrieval call binding the zecrey method 0x5aa6e675.

Solidity: function governance() view returns(address)

func (*AssetGovernanceSession) Initialize

func (_AssetGovernance *AssetGovernanceSession) Initialize(initializationParameters []byte) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the zecrey method 0x439fab91.

Solidity: function initialize(bytes initializationParameters) returns()

func (*AssetGovernanceSession) ListingCap

func (_AssetGovernance *AssetGovernanceSession) ListingCap() (uint16, error)

ListingCap is a free data retrieval call binding the zecrey method 0x9b453945.

Solidity: function listingCap() view returns(uint16)

func (*AssetGovernanceSession) SetAsset

func (_AssetGovernance *AssetGovernanceSession) SetAsset(_assetId uint16, _assetAddress common.Address) (*types.Transaction, error)

SetAsset is a paid mutator transaction binding the zecrey method 0x5bab15ca.

Solidity: function setAsset(uint16 _assetId, address _assetAddress) returns()

func (*AssetGovernanceSession) SetLister

func (_AssetGovernance *AssetGovernanceSession) SetLister(_listerAddress common.Address, _active bool) (*types.Transaction, error)

SetLister is a paid mutator transaction binding the zecrey method 0x719c150c.

Solidity: function setLister(address _listerAddress, bool _active) returns()

func (*AssetGovernanceSession) TokenLister

func (_AssetGovernance *AssetGovernanceSession) TokenLister(arg0 common.Address) (bool, error)

TokenLister is a free data retrieval call binding the zecrey method 0xaf3d414b.

Solidity: function tokenLister(address ) view returns(bool)

func (*AssetGovernanceSession) Treasury

func (_AssetGovernance *AssetGovernanceSession) Treasury() (common.Address, error)

Treasury is a free data retrieval call binding the zecrey method 0x61d027b3.

Solidity: function treasury() view returns(address)

func (*AssetGovernanceSession) Upgrade

func (_AssetGovernance *AssetGovernanceSession) Upgrade(upgradeParameters []byte) (*types.Transaction, error)

Upgrade is a paid mutator transaction binding the zecrey method 0x25394645.

Solidity: function upgrade(bytes upgradeParameters) returns()

type AssetGovernanceTokenListerUpdate

type AssetGovernanceTokenListerUpdate struct {
	TokenLister common.Address
	IsActive    bool
	Raw         types.Log // Blockchain specific contextual infos
}

AssetGovernanceTokenListerUpdate represents a TokenListerUpdate event raised by the AssetGovernance zecrey.

type AssetGovernanceTokenListerUpdateIterator

type AssetGovernanceTokenListerUpdateIterator struct {
	Event *AssetGovernanceTokenListerUpdate // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

AssetGovernanceTokenListerUpdateIterator is returned from FilterTokenListerUpdate and is used to iterate over the raw logs and unpacked data for TokenListerUpdate events raised by the AssetGovernance zecrey.

func (*AssetGovernanceTokenListerUpdateIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*AssetGovernanceTokenListerUpdateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AssetGovernanceTokenListerUpdateIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type AssetGovernanceTransactor

type AssetGovernanceTransactor struct {
	// contains filtered or unexported fields
}

AssetGovernanceTransactor is an auto generated write-only Go binding around an Ethereum zecrey.

func NewAssetGovernanceTransactor

func NewAssetGovernanceTransactor(address common.Address, transactor bind.ContractTransactor) (*AssetGovernanceTransactor, error)

NewAssetGovernanceTransactor creates a new write-only instance of AssetGovernance, bound to a specific deployed zecrey.

func (*AssetGovernanceTransactor) Initialize

func (_AssetGovernance *AssetGovernanceTransactor) Initialize(opts *bind.TransactOpts, initializationParameters []byte) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the zecrey method 0x439fab91.

Solidity: function initialize(bytes initializationParameters) returns()

func (*AssetGovernanceTransactor) SetAsset

func (_AssetGovernance *AssetGovernanceTransactor) SetAsset(opts *bind.TransactOpts, _assetId uint16, _assetAddress common.Address) (*types.Transaction, error)

SetAsset is a paid mutator transaction binding the zecrey method 0x5bab15ca.

Solidity: function setAsset(uint16 _assetId, address _assetAddress) returns()

func (*AssetGovernanceTransactor) SetLister

func (_AssetGovernance *AssetGovernanceTransactor) SetLister(opts *bind.TransactOpts, _listerAddress common.Address, _active bool) (*types.Transaction, error)

SetLister is a paid mutator transaction binding the zecrey method 0x719c150c.

Solidity: function setLister(address _listerAddress, bool _active) returns()

func (*AssetGovernanceTransactor) Upgrade

func (_AssetGovernance *AssetGovernanceTransactor) Upgrade(opts *bind.TransactOpts, upgradeParameters []byte) (*types.Transaction, error)

Upgrade is a paid mutator transaction binding the zecrey method 0x25394645.

Solidity: function upgrade(bytes upgradeParameters) returns()

type AssetGovernanceTransactorRaw

type AssetGovernanceTransactorRaw struct {
	Contract *AssetGovernanceTransactor // Generic write-only zecrey binding to access the raw methods on
}

AssetGovernanceTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum zecrey.

func (*AssetGovernanceTransactorRaw) Transact

func (_AssetGovernance *AssetGovernanceTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) zecrey method with params as input values.

func (*AssetGovernanceTransactorRaw) Transfer

func (_AssetGovernance *AssetGovernanceTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the zecrey, calling its default method if one is available.

type AssetGovernanceTransactorSession

type AssetGovernanceTransactorSession struct {
	Contract     *AssetGovernanceTransactor // Generic zecrey transactor binding to set the session for
	TransactOpts bind.TransactOpts          // Transaction auth options to use throughout this session
}

AssetGovernanceTransactorSession is an auto generated write-only Go binding around an Ethereum zecrey, with pre-set transact options.

func (*AssetGovernanceTransactorSession) Initialize

func (_AssetGovernance *AssetGovernanceTransactorSession) Initialize(initializationParameters []byte) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the zecrey method 0x439fab91.

Solidity: function initialize(bytes initializationParameters) returns()

func (*AssetGovernanceTransactorSession) SetAsset

func (_AssetGovernance *AssetGovernanceTransactorSession) SetAsset(_assetId uint16, _assetAddress common.Address) (*types.Transaction, error)

SetAsset is a paid mutator transaction binding the zecrey method 0x5bab15ca.

Solidity: function setAsset(uint16 _assetId, address _assetAddress) returns()

func (*AssetGovernanceTransactorSession) SetLister

func (_AssetGovernance *AssetGovernanceTransactorSession) SetLister(_listerAddress common.Address, _active bool) (*types.Transaction, error)

SetLister is a paid mutator transaction binding the zecrey method 0x719c150c.

Solidity: function setLister(address _listerAddress, bool _active) returns()

func (*AssetGovernanceTransactorSession) Upgrade

func (_AssetGovernance *AssetGovernanceTransactorSession) Upgrade(upgradeParameters []byte) (*types.Transaction, error)

Upgrade is a paid mutator transaction binding the zecrey method 0x25394645.

Solidity: function upgrade(bytes upgradeParameters) returns()

type AuthClient

type AuthClient = _rpc.AuthClient

type Erc20

type Erc20 struct {
	Erc20Caller     // Read-only binding to the zecrey
	Erc20Transactor // Write-only binding to the zecrey
	Erc20Filterer   // Log filterer for zecrey events
}

Erc20 is an auto generated Go binding around an Ethereum zecrey.

func DeployErc20

func DeployErc20(auth *bind.TransactOpts, backend bind.ContractBackend, _initialSupply *big.Int, _name string, _symbol string) (common.Address, *types.Transaction, *Erc20, error)

DeployErc20 deploys a new Ethereum zecrey, binding an instance of Erc20 to it.

func LoadErc20Instance

func LoadErc20Instance(cli *_rpc.ProviderClient, addr string) (instance *Erc20, err error)

LoadGovernanceInstance: load governance instance if it is already deployed

func NewErc20

func NewErc20(address common.Address, backend bind.ContractBackend) (*Erc20, error)

NewErc20 creates a new instance of Erc20, bound to a specific deployed zecrey.

type Erc20Approval

type Erc20Approval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

Erc20Approval represents a Approval event raised by the Erc20 zecrey.

type Erc20ApprovalIterator

type Erc20ApprovalIterator struct {
	Event *Erc20Approval // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

Erc20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Erc20 zecrey.

func (*Erc20ApprovalIterator) Close

func (it *Erc20ApprovalIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*Erc20ApprovalIterator) Error

func (it *Erc20ApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Erc20ApprovalIterator) Next

func (it *Erc20ApprovalIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type Erc20Caller

type Erc20Caller struct {
	// contains filtered or unexported fields
}

Erc20Caller is an auto generated read-only Go binding around an Ethereum zecrey.

func NewErc20Caller

func NewErc20Caller(address common.Address, caller bind.ContractCaller) (*Erc20Caller, error)

NewErc20Caller creates a new read-only instance of Erc20, bound to a specific deployed zecrey.

func (*Erc20Caller) Allowance

func (_Erc20 *Erc20Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the zecrey method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*Erc20Caller) BalanceOf

func (_Erc20 *Erc20Caller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the zecrey method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*Erc20Caller) Decimals

func (_Erc20 *Erc20Caller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the zecrey method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*Erc20Caller) Name

func (_Erc20 *Erc20Caller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the zecrey method 0x06fdde03.

Solidity: function name() view returns(string)

func (*Erc20Caller) Symbol

func (_Erc20 *Erc20Caller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the zecrey method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*Erc20Caller) TotalSupply

func (_Erc20 *Erc20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the zecrey method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type Erc20CallerRaw

type Erc20CallerRaw struct {
	Contract *Erc20Caller // Generic read-only zecrey binding to access the raw methods on
}

Erc20CallerRaw is an auto generated low-level read-only Go binding around an Ethereum zecrey.

func (*Erc20CallerRaw) Call

func (_Erc20 *Erc20CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) zecrey method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type Erc20CallerSession

type Erc20CallerSession struct {
	Contract *Erc20Caller  // Generic zecrey caller binding to set the session for
	CallOpts bind.CallOpts // Call options to use throughout this session
}

Erc20CallerSession is an auto generated read-only Go binding around an Ethereum zecrey, with pre-set call options.

func (*Erc20CallerSession) Allowance

func (_Erc20 *Erc20CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the zecrey method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*Erc20CallerSession) BalanceOf

func (_Erc20 *Erc20CallerSession) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the zecrey method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*Erc20CallerSession) Decimals

func (_Erc20 *Erc20CallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the zecrey method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*Erc20CallerSession) Name

func (_Erc20 *Erc20CallerSession) Name() (string, error)

Name is a free data retrieval call binding the zecrey method 0x06fdde03.

Solidity: function name() view returns(string)

func (*Erc20CallerSession) Symbol

func (_Erc20 *Erc20CallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the zecrey method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*Erc20CallerSession) TotalSupply

func (_Erc20 *Erc20CallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the zecrey method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type Erc20Filterer

type Erc20Filterer struct {
	// contains filtered or unexported fields
}

Erc20Filterer is an auto generated log filtering Go binding around an Ethereum zecrey events.

func NewErc20Filterer

func NewErc20Filterer(address common.Address, filterer bind.ContractFilterer) (*Erc20Filterer, error)

NewErc20Filterer creates a new log filterer instance of Erc20, bound to a specific deployed zecrey.

func (*Erc20Filterer) FilterApproval

func (_Erc20 *Erc20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*Erc20ApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the zecrey event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*Erc20Filterer) FilterTransfer

func (_Erc20 *Erc20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*Erc20TransferIterator, error)

FilterTransfer is a free log retrieval operation binding the zecrey event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*Erc20Filterer) ParseApproval

func (_Erc20 *Erc20Filterer) ParseApproval(log types.Log) (*Erc20Approval, error)

ParseApproval is a log parse operation binding the zecrey event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*Erc20Filterer) ParseTransfer

func (_Erc20 *Erc20Filterer) ParseTransfer(log types.Log) (*Erc20Transfer, error)

ParseTransfer is a log parse operation binding the zecrey event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*Erc20Filterer) WatchApproval

func (_Erc20 *Erc20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Erc20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the zecrey event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*Erc20Filterer) WatchTransfer

func (_Erc20 *Erc20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *Erc20Transfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the zecrey event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

type Erc20Raw

type Erc20Raw struct {
	Contract *Erc20 // Generic zecrey binding to access the raw methods on
}

Erc20Raw is an auto generated low-level Go binding around an Ethereum zecrey.

func (*Erc20Raw) Call

func (_Erc20 *Erc20Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) zecrey method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*Erc20Raw) Transact

func (_Erc20 *Erc20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) zecrey method with params as input values.

func (*Erc20Raw) Transfer

func (_Erc20 *Erc20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the zecrey, calling its default method if one is available.

type Erc20Session

type Erc20Session struct {
	Contract     *Erc20            // Generic zecrey binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

Erc20Session is an auto generated Go binding around an Ethereum zecrey, with pre-set call and transact options.

func (*Erc20Session) Allowance

func (_Erc20 *Erc20Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the zecrey method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*Erc20Session) Approve

func (_Erc20 *Erc20Session) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the zecrey method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*Erc20Session) BalanceOf

func (_Erc20 *Erc20Session) BalanceOf(account common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the zecrey method 0x70a08231.

Solidity: function balanceOf(address account) view returns(uint256)

func (*Erc20Session) Decimals

func (_Erc20 *Erc20Session) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the zecrey method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*Erc20Session) DecreaseAllowance

func (_Erc20 *Erc20Session) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the zecrey method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*Erc20Session) IncreaseAllowance

func (_Erc20 *Erc20Session) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the zecrey method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*Erc20Session) Name

func (_Erc20 *Erc20Session) Name() (string, error)

Name is a free data retrieval call binding the zecrey method 0x06fdde03.

Solidity: function name() view returns(string)

func (*Erc20Session) Symbol

func (_Erc20 *Erc20Session) Symbol() (string, error)

Symbol is a free data retrieval call binding the zecrey method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*Erc20Session) TotalSupply

func (_Erc20 *Erc20Session) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the zecrey method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*Erc20Session) Transfer

func (_Erc20 *Erc20Session) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the zecrey method 0xa9059cbb.

Solidity: function transfer(address recipient, uint256 amount) returns(bool)

func (*Erc20Session) TransferFrom

func (_Erc20 *Erc20Session) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the zecrey method 0x23b872dd.

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

type Erc20Transactor

type Erc20Transactor struct {
	// contains filtered or unexported fields
}

Erc20Transactor is an auto generated write-only Go binding around an Ethereum zecrey.

func NewErc20Transactor

func NewErc20Transactor(address common.Address, transactor bind.ContractTransactor) (*Erc20Transactor, error)

NewErc20Transactor creates a new write-only instance of Erc20, bound to a specific deployed zecrey.

func (*Erc20Transactor) Approve

func (_Erc20 *Erc20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the zecrey method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*Erc20Transactor) DecreaseAllowance

func (_Erc20 *Erc20Transactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the zecrey method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*Erc20Transactor) IncreaseAllowance

func (_Erc20 *Erc20Transactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the zecrey method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*Erc20Transactor) Transfer

func (_Erc20 *Erc20Transactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the zecrey method 0xa9059cbb.

Solidity: function transfer(address recipient, uint256 amount) returns(bool)

func (*Erc20Transactor) TransferFrom

func (_Erc20 *Erc20Transactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the zecrey method 0x23b872dd.

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

type Erc20TransactorRaw

type Erc20TransactorRaw struct {
	Contract *Erc20Transactor // Generic write-only zecrey binding to access the raw methods on
}

Erc20TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum zecrey.

func (*Erc20TransactorRaw) Transact

func (_Erc20 *Erc20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) zecrey method with params as input values.

func (*Erc20TransactorRaw) Transfer

func (_Erc20 *Erc20TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the zecrey, calling its default method if one is available.

type Erc20TransactorSession

type Erc20TransactorSession struct {
	Contract     *Erc20Transactor  // Generic zecrey transactor binding to set the session for
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

Erc20TransactorSession is an auto generated write-only Go binding around an Ethereum zecrey, with pre-set transact options.

func (*Erc20TransactorSession) Approve

func (_Erc20 *Erc20TransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the zecrey method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*Erc20TransactorSession) DecreaseAllowance

func (_Erc20 *Erc20TransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the zecrey method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*Erc20TransactorSession) IncreaseAllowance

func (_Erc20 *Erc20TransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the zecrey method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*Erc20TransactorSession) Transfer

func (_Erc20 *Erc20TransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the zecrey method 0xa9059cbb.

Solidity: function transfer(address recipient, uint256 amount) returns(bool)

func (*Erc20TransactorSession) TransferFrom

func (_Erc20 *Erc20TransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the zecrey method 0x23b872dd.

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

type Erc20Transfer

type Erc20Transfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

Erc20Transfer represents a Transfer event raised by the Erc20 zecrey.

type Erc20TransferIterator

type Erc20TransferIterator struct {
	Event *Erc20Transfer // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

Erc20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Erc20 zecrey.

func (*Erc20TransferIterator) Close

func (it *Erc20TransferIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*Erc20TransferIterator) Error

func (it *Erc20TransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Erc20TransferIterator) Next

func (it *Erc20TransferIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type Governance

type Governance struct {
	GovernanceCaller     // Read-only binding to the zecrey
	GovernanceTransactor // Write-only binding to the zecrey
	GovernanceFilterer   // Log filterer for zecrey events
}

Governance is an auto generated Go binding around an Ethereum zecrey.

func DeployGovernance

func DeployGovernance(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Governance, error)

DeployGovernance deploys a new Ethereum zecrey, binding an instance of Governance to it.

func LoadGovernanceInstance

func LoadGovernanceInstance(cli *_rpc.ProviderClient, addr string) (instance *Governance, err error)

LoadGovernanceInstance: load governance instance if it is already deployed

func NewGovernance

func NewGovernance(address common.Address, backend bind.ContractBackend) (*Governance, error)

NewGovernance creates a new instance of Governance, bound to a specific deployed zecrey.

type GovernanceAssetPausedUpdate

type GovernanceAssetPausedUpdate struct {
	Token  common.Address
	Paused bool
	Raw    types.Log // Blockchain specific contextual infos
}

GovernanceAssetPausedUpdate represents a AssetPausedUpdate event raised by the Governance zecrey.

type GovernanceAssetPausedUpdateIterator

type GovernanceAssetPausedUpdateIterator struct {
	Event *GovernanceAssetPausedUpdate // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

GovernanceAssetPausedUpdateIterator is returned from FilterAssetPausedUpdate and is used to iterate over the raw logs and unpacked data for AssetPausedUpdate events raised by the Governance zecrey.

func (*GovernanceAssetPausedUpdateIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*GovernanceAssetPausedUpdateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GovernanceAssetPausedUpdateIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type GovernanceCaller

type GovernanceCaller struct {
	// contains filtered or unexported fields
}

GovernanceCaller is an auto generated read-only Go binding around an Ethereum zecrey.

func NewGovernanceCaller

func NewGovernanceCaller(address common.Address, caller bind.ContractCaller) (*GovernanceCaller, error)

NewGovernanceCaller creates a new read-only instance of Governance, bound to a specific deployed zecrey.

func (*GovernanceCaller) AssetAddresses

func (_Governance *GovernanceCaller) AssetAddresses(opts *bind.CallOpts, arg0 uint16) (common.Address, error)

AssetAddresses is a free data retrieval call binding the zecrey method 0xdbfc2967.

Solidity: function assetAddresses(uint16 ) view returns(address)

func (*GovernanceCaller) AssetGovernance

func (_Governance *GovernanceCaller) AssetGovernance(opts *bind.CallOpts) (common.Address, error)

AssetGovernance is a free data retrieval call binding the zecrey method 0xf5e7d6fd.

Solidity: function assetGovernance() view returns(address)

func (*GovernanceCaller) AssetsList

func (_Governance *GovernanceCaller) AssetsList(opts *bind.CallOpts, arg0 common.Address) (uint16, error)

AssetsList is a free data retrieval call binding the zecrey method 0x1e763ee3.

Solidity: function assetsList(address ) view returns(uint16)

func (*GovernanceCaller) Committers

func (_Governance *GovernanceCaller) Committers(opts *bind.CallOpts, arg0 common.Address) (bool, error)

Committers is a free data retrieval call binding the zecrey method 0x5f4fea26.

Solidity: function committers(address ) view returns(bool)

func (*GovernanceCaller) IsAddressExists

func (_Governance *GovernanceCaller) IsAddressExists(opts *bind.CallOpts, arg0 common.Address) (bool, error)

IsAddressExists is a free data retrieval call binding the zecrey method 0x321e182b.

Solidity: function isAddressExists(address ) view returns(bool)

func (*GovernanceCaller) Monitors

func (_Governance *GovernanceCaller) Monitors(opts *bind.CallOpts, arg0 common.Address) (bool, error)

Monitors is a free data retrieval call binding the zecrey method 0x28b58e1a.

Solidity: function monitors(address ) view returns(bool)

func (*GovernanceCaller) NetworkGovernor

func (_Governance *GovernanceCaller) NetworkGovernor(opts *bind.CallOpts) (common.Address, error)

NetworkGovernor is a free data retrieval call binding the zecrey method 0xf39349ef.

Solidity: function networkGovernor() view returns(address)

func (*GovernanceCaller) PausedAssets

func (_Governance *GovernanceCaller) PausedAssets(opts *bind.CallOpts, arg0 uint16) (bool, error)

PausedAssets is a free data retrieval call binding the zecrey method 0x31d8687b.

Solidity: function pausedAssets(uint16 ) view returns(bool)

func (*GovernanceCaller) RequireActiveCommitter

func (_Governance *GovernanceCaller) RequireActiveCommitter(opts *bind.CallOpts, _address common.Address) error

RequireActiveCommitter is a free data retrieval call binding the zecrey method 0xa28e0032.

Solidity: function requireActiveCommitter(address _address) view returns()

func (*GovernanceCaller) RequireActiveMonitor

func (_Governance *GovernanceCaller) RequireActiveMonitor(opts *bind.CallOpts, _address common.Address) error

RequireActiveMonitor is a free data retrieval call binding the zecrey method 0x1c021956.

Solidity: function requireActiveMonitor(address _address) view returns()

func (*GovernanceCaller) RequireActiveVerifier

func (_Governance *GovernanceCaller) RequireActiveVerifier(opts *bind.CallOpts, _address common.Address) error

RequireActiveVerifier is a free data retrieval call binding the zecrey method 0x7a3459d4.

Solidity: function requireActiveVerifier(address _address) view returns()

func (*GovernanceCaller) RequireGovernor

func (_Governance *GovernanceCaller) RequireGovernor(opts *bind.CallOpts, _address common.Address) error

RequireGovernor is a free data retrieval call binding the zecrey method 0xf5f84ed4.

Solidity: function requireGovernor(address _address) view returns()

func (*GovernanceCaller) TotalAssets

func (_Governance *GovernanceCaller) TotalAssets(opts *bind.CallOpts) (uint16, error)

TotalAssets is a free data retrieval call binding the zecrey method 0x01e1d114.

Solidity: function totalAssets() view returns(uint16)

func (*GovernanceCaller) ValidateAssetAddress

func (_Governance *GovernanceCaller) ValidateAssetAddress(opts *bind.CallOpts, _assetAddr common.Address) (uint16, error)

ValidateAssetAddress is a free data retrieval call binding the zecrey method 0x9bd77609.

Solidity: function validateAssetAddress(address _assetAddr) view returns(uint16)

func (*GovernanceCaller) Verifiers

func (_Governance *GovernanceCaller) Verifiers(opts *bind.CallOpts, arg0 common.Address) (bool, error)

Verifiers is a free data retrieval call binding the zecrey method 0x6c824487.

Solidity: function verifiers(address ) view returns(bool)

type GovernanceCallerRaw

type GovernanceCallerRaw struct {
	Contract *GovernanceCaller // Generic read-only zecrey binding to access the raw methods on
}

GovernanceCallerRaw is an auto generated low-level read-only Go binding around an Ethereum zecrey.

func (*GovernanceCallerRaw) Call

func (_Governance *GovernanceCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) zecrey method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type GovernanceCallerSession

type GovernanceCallerSession struct {
	Contract *GovernanceCaller // Generic zecrey caller binding to set the session for
	CallOpts bind.CallOpts     // Call options to use throughout this session
}

GovernanceCallerSession is an auto generated read-only Go binding around an Ethereum zecrey, with pre-set call options.

func (*GovernanceCallerSession) AssetAddresses

func (_Governance *GovernanceCallerSession) AssetAddresses(arg0 uint16) (common.Address, error)

AssetAddresses is a free data retrieval call binding the zecrey method 0xdbfc2967.

Solidity: function assetAddresses(uint16 ) view returns(address)

func (*GovernanceCallerSession) AssetGovernance

func (_Governance *GovernanceCallerSession) AssetGovernance() (common.Address, error)

AssetGovernance is a free data retrieval call binding the zecrey method 0xf5e7d6fd.

Solidity: function assetGovernance() view returns(address)

func (*GovernanceCallerSession) AssetsList

func (_Governance *GovernanceCallerSession) AssetsList(arg0 common.Address) (uint16, error)

AssetsList is a free data retrieval call binding the zecrey method 0x1e763ee3.

Solidity: function assetsList(address ) view returns(uint16)

func (*GovernanceCallerSession) Committers

func (_Governance *GovernanceCallerSession) Committers(arg0 common.Address) (bool, error)

Committers is a free data retrieval call binding the zecrey method 0x5f4fea26.

Solidity: function committers(address ) view returns(bool)

func (*GovernanceCallerSession) IsAddressExists

func (_Governance *GovernanceCallerSession) IsAddressExists(arg0 common.Address) (bool, error)

IsAddressExists is a free data retrieval call binding the zecrey method 0x321e182b.

Solidity: function isAddressExists(address ) view returns(bool)

func (*GovernanceCallerSession) Monitors

func (_Governance *GovernanceCallerSession) Monitors(arg0 common.Address) (bool, error)

Monitors is a free data retrieval call binding the zecrey method 0x28b58e1a.

Solidity: function monitors(address ) view returns(bool)

func (*GovernanceCallerSession) NetworkGovernor

func (_Governance *GovernanceCallerSession) NetworkGovernor() (common.Address, error)

NetworkGovernor is a free data retrieval call binding the zecrey method 0xf39349ef.

Solidity: function networkGovernor() view returns(address)

func (*GovernanceCallerSession) PausedAssets

func (_Governance *GovernanceCallerSession) PausedAssets(arg0 uint16) (bool, error)

PausedAssets is a free data retrieval call binding the zecrey method 0x31d8687b.

Solidity: function pausedAssets(uint16 ) view returns(bool)

func (*GovernanceCallerSession) RequireActiveCommitter

func (_Governance *GovernanceCallerSession) RequireActiveCommitter(_address common.Address) error

RequireActiveCommitter is a free data retrieval call binding the zecrey method 0xa28e0032.

Solidity: function requireActiveCommitter(address _address) view returns()

func (*GovernanceCallerSession) RequireActiveMonitor

func (_Governance *GovernanceCallerSession) RequireActiveMonitor(_address common.Address) error

RequireActiveMonitor is a free data retrieval call binding the zecrey method 0x1c021956.

Solidity: function requireActiveMonitor(address _address) view returns()

func (*GovernanceCallerSession) RequireActiveVerifier

func (_Governance *GovernanceCallerSession) RequireActiveVerifier(_address common.Address) error

RequireActiveVerifier is a free data retrieval call binding the zecrey method 0x7a3459d4.

Solidity: function requireActiveVerifier(address _address) view returns()

func (*GovernanceCallerSession) RequireGovernor

func (_Governance *GovernanceCallerSession) RequireGovernor(_address common.Address) error

RequireGovernor is a free data retrieval call binding the zecrey method 0xf5f84ed4.

Solidity: function requireGovernor(address _address) view returns()

func (*GovernanceCallerSession) TotalAssets

func (_Governance *GovernanceCallerSession) TotalAssets() (uint16, error)

TotalAssets is a free data retrieval call binding the zecrey method 0x01e1d114.

Solidity: function totalAssets() view returns(uint16)

func (*GovernanceCallerSession) ValidateAssetAddress

func (_Governance *GovernanceCallerSession) ValidateAssetAddress(_assetAddr common.Address) (uint16, error)

ValidateAssetAddress is a free data retrieval call binding the zecrey method 0x9bd77609.

Solidity: function validateAssetAddress(address _assetAddr) view returns(uint16)

func (*GovernanceCallerSession) Verifiers

func (_Governance *GovernanceCallerSession) Verifiers(arg0 common.Address) (bool, error)

Verifiers is a free data retrieval call binding the zecrey method 0x6c824487.

Solidity: function verifiers(address ) view returns(bool)

type GovernanceCommitterStatusUpdate

type GovernanceCommitterStatusUpdate struct {
	CommitterAddress common.Address
	IsActive         bool
	Raw              types.Log // Blockchain specific contextual infos
}

GovernanceCommitterStatusUpdate represents a CommitterStatusUpdate event raised by the Governance zecrey.

type GovernanceCommitterStatusUpdateIterator

type GovernanceCommitterStatusUpdateIterator struct {
	Event *GovernanceCommitterStatusUpdate // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

GovernanceCommitterStatusUpdateIterator is returned from FilterCommitterStatusUpdate and is used to iterate over the raw logs and unpacked data for CommitterStatusUpdate events raised by the Governance zecrey.

func (*GovernanceCommitterStatusUpdateIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*GovernanceCommitterStatusUpdateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GovernanceCommitterStatusUpdateIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type GovernanceExecutorStatusUpdate

type GovernanceExecutorStatusUpdate struct {
	ExecutorAddress common.Address
	IsActive        bool
	Raw             types.Log // Blockchain specific contextual infos
}

GovernanceExecutorStatusUpdate represents a ExecutorStatusUpdate event raised by the Governance zecrey.

type GovernanceExecutorStatusUpdateIterator

type GovernanceExecutorStatusUpdateIterator struct {
	Event *GovernanceExecutorStatusUpdate // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

GovernanceExecutorStatusUpdateIterator is returned from FilterExecutorStatusUpdate and is used to iterate over the raw logs and unpacked data for ExecutorStatusUpdate events raised by the Governance zecrey.

func (*GovernanceExecutorStatusUpdateIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*GovernanceExecutorStatusUpdateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GovernanceExecutorStatusUpdateIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type GovernanceFilterer

type GovernanceFilterer struct {
	// contains filtered or unexported fields
}

GovernanceFilterer is an auto generated log filtering Go binding around an Ethereum zecrey events.

func NewGovernanceFilterer

func NewGovernanceFilterer(address common.Address, filterer bind.ContractFilterer) (*GovernanceFilterer, error)

NewGovernanceFilterer creates a new log filterer instance of Governance, bound to a specific deployed zecrey.

func (*GovernanceFilterer) FilterAssetPausedUpdate

func (_Governance *GovernanceFilterer) FilterAssetPausedUpdate(opts *bind.FilterOpts, token []common.Address) (*GovernanceAssetPausedUpdateIterator, error)

FilterAssetPausedUpdate is a free log retrieval operation binding the zecrey event 0xf7ca5545623b85829d3abcb6729eb021070bbe93cba64f5c4de6b17b805b7d02.

Solidity: event AssetPausedUpdate(address indexed token, bool paused)

func (*GovernanceFilterer) FilterCommitterStatusUpdate

func (_Governance *GovernanceFilterer) FilterCommitterStatusUpdate(opts *bind.FilterOpts, committerAddress []common.Address) (*GovernanceCommitterStatusUpdateIterator, error)

FilterCommitterStatusUpdate is a free log retrieval operation binding the zecrey event 0xd158a06928d89556421a4e2eabd98c7ea10e974c07e399e3afc449d19eb391b2.

Solidity: event CommitterStatusUpdate(address indexed committerAddress, bool isActive)

func (*GovernanceFilterer) FilterExecutorStatusUpdate

func (_Governance *GovernanceFilterer) FilterExecutorStatusUpdate(opts *bind.FilterOpts, executorAddress []common.Address) (*GovernanceExecutorStatusUpdateIterator, error)

FilterExecutorStatusUpdate is a free log retrieval operation binding the zecrey event 0x9a01f9639f4fd4c2eea316eabcc61b3674b410002afdb96bf605cf288d37f9da.

Solidity: event ExecutorStatusUpdate(address indexed executorAddress, bool isActive)

func (*GovernanceFilterer) FilterMonitorStatusUpdate

func (_Governance *GovernanceFilterer) FilterMonitorStatusUpdate(opts *bind.FilterOpts, executorAddress []common.Address) (*GovernanceMonitorStatusUpdateIterator, error)

FilterMonitorStatusUpdate is a free log retrieval operation binding the zecrey event 0x6fbe3fec04b6d2f79e569f1a46ec4d1621e751112483b5ce9d81832f19fee5c1.

Solidity: event MonitorStatusUpdate(address indexed executorAddress, bool isActive)

func (*GovernanceFilterer) FilterNewAsset

func (_Governance *GovernanceFilterer) FilterNewAsset(opts *bind.FilterOpts, assetAddress []common.Address, assetId []uint16) (*GovernanceNewAssetIterator, error)

FilterNewAsset is a free log retrieval operation binding the zecrey event 0x990c18cf226b253448a6a051b5cadf51a61f4ca56703374cdd8bf9df04b2f901.

Solidity: event NewAsset(address indexed assetAddress, uint16 indexed assetId)

func (*GovernanceFilterer) FilterNewAssetGovernance

func (_Governance *GovernanceFilterer) FilterNewAssetGovernance(opts *bind.FilterOpts) (*GovernanceNewAssetGovernanceIterator, error)

FilterNewAssetGovernance is a free log retrieval operation binding the zecrey event 0xc7708091594580aae77e08cb1e2e3b9d2bd0cab0d2d95797248dd95f02d7299e.

Solidity: event NewAssetGovernance(address newAssetGovernance)

func (*GovernanceFilterer) FilterNewGovernor

func (_Governance *GovernanceFilterer) FilterNewGovernor(opts *bind.FilterOpts) (*GovernanceNewGovernorIterator, error)

FilterNewGovernor is a free log retrieval operation binding the zecrey event 0x5425363a03f182281120f5919107c49c7a1a623acc1cbc6df468b6f0c11fcf8c.

Solidity: event NewGovernor(address newGovernor)

func (*GovernanceFilterer) FilterVerifierStatusUpdate

func (_Governance *GovernanceFilterer) FilterVerifierStatusUpdate(opts *bind.FilterOpts, verifierAddress []common.Address) (*GovernanceVerifierStatusUpdateIterator, error)

FilterVerifierStatusUpdate is a free log retrieval operation binding the zecrey event 0xf09ef994a79ba4638c91b1d9595c89e208c3a9b9403769b68670c678782f82d0.

Solidity: event VerifierStatusUpdate(address indexed verifierAddress, bool isActive)

func (*GovernanceFilterer) ParseAssetPausedUpdate

func (_Governance *GovernanceFilterer) ParseAssetPausedUpdate(log types.Log) (*GovernanceAssetPausedUpdate, error)

ParseAssetPausedUpdate is a log parse operation binding the zecrey event 0xf7ca5545623b85829d3abcb6729eb021070bbe93cba64f5c4de6b17b805b7d02.

Solidity: event AssetPausedUpdate(address indexed token, bool paused)

func (*GovernanceFilterer) ParseCommitterStatusUpdate

func (_Governance *GovernanceFilterer) ParseCommitterStatusUpdate(log types.Log) (*GovernanceCommitterStatusUpdate, error)

ParseCommitterStatusUpdate is a log parse operation binding the zecrey event 0xd158a06928d89556421a4e2eabd98c7ea10e974c07e399e3afc449d19eb391b2.

Solidity: event CommitterStatusUpdate(address indexed committerAddress, bool isActive)

func (*GovernanceFilterer) ParseExecutorStatusUpdate

func (_Governance *GovernanceFilterer) ParseExecutorStatusUpdate(log types.Log) (*GovernanceExecutorStatusUpdate, error)

ParseExecutorStatusUpdate is a log parse operation binding the zecrey event 0x9a01f9639f4fd4c2eea316eabcc61b3674b410002afdb96bf605cf288d37f9da.

Solidity: event ExecutorStatusUpdate(address indexed executorAddress, bool isActive)

func (*GovernanceFilterer) ParseMonitorStatusUpdate

func (_Governance *GovernanceFilterer) ParseMonitorStatusUpdate(log types.Log) (*GovernanceMonitorStatusUpdate, error)

ParseMonitorStatusUpdate is a log parse operation binding the zecrey event 0x6fbe3fec04b6d2f79e569f1a46ec4d1621e751112483b5ce9d81832f19fee5c1.

Solidity: event MonitorStatusUpdate(address indexed executorAddress, bool isActive)

func (*GovernanceFilterer) ParseNewAsset

func (_Governance *GovernanceFilterer) ParseNewAsset(log types.Log) (*GovernanceNewAsset, error)

ParseNewAsset is a log parse operation binding the zecrey event 0x990c18cf226b253448a6a051b5cadf51a61f4ca56703374cdd8bf9df04b2f901.

Solidity: event NewAsset(address indexed assetAddress, uint16 indexed assetId)

func (*GovernanceFilterer) ParseNewAssetGovernance

func (_Governance *GovernanceFilterer) ParseNewAssetGovernance(log types.Log) (*GovernanceNewAssetGovernance, error)

ParseNewAssetGovernance is a log parse operation binding the zecrey event 0xc7708091594580aae77e08cb1e2e3b9d2bd0cab0d2d95797248dd95f02d7299e.

Solidity: event NewAssetGovernance(address newAssetGovernance)

func (*GovernanceFilterer) ParseNewGovernor

func (_Governance *GovernanceFilterer) ParseNewGovernor(log types.Log) (*GovernanceNewGovernor, error)

ParseNewGovernor is a log parse operation binding the zecrey event 0x5425363a03f182281120f5919107c49c7a1a623acc1cbc6df468b6f0c11fcf8c.

Solidity: event NewGovernor(address newGovernor)

func (*GovernanceFilterer) ParseVerifierStatusUpdate

func (_Governance *GovernanceFilterer) ParseVerifierStatusUpdate(log types.Log) (*GovernanceVerifierStatusUpdate, error)

ParseVerifierStatusUpdate is a log parse operation binding the zecrey event 0xf09ef994a79ba4638c91b1d9595c89e208c3a9b9403769b68670c678782f82d0.

Solidity: event VerifierStatusUpdate(address indexed verifierAddress, bool isActive)

func (*GovernanceFilterer) WatchAssetPausedUpdate

func (_Governance *GovernanceFilterer) WatchAssetPausedUpdate(opts *bind.WatchOpts, sink chan<- *GovernanceAssetPausedUpdate, token []common.Address) (event.Subscription, error)

WatchAssetPausedUpdate is a free log subscription operation binding the zecrey event 0xf7ca5545623b85829d3abcb6729eb021070bbe93cba64f5c4de6b17b805b7d02.

Solidity: event AssetPausedUpdate(address indexed token, bool paused)

func (*GovernanceFilterer) WatchCommitterStatusUpdate

func (_Governance *GovernanceFilterer) WatchCommitterStatusUpdate(opts *bind.WatchOpts, sink chan<- *GovernanceCommitterStatusUpdate, committerAddress []common.Address) (event.Subscription, error)

WatchCommitterStatusUpdate is a free log subscription operation binding the zecrey event 0xd158a06928d89556421a4e2eabd98c7ea10e974c07e399e3afc449d19eb391b2.

Solidity: event CommitterStatusUpdate(address indexed committerAddress, bool isActive)

func (*GovernanceFilterer) WatchExecutorStatusUpdate

func (_Governance *GovernanceFilterer) WatchExecutorStatusUpdate(opts *bind.WatchOpts, sink chan<- *GovernanceExecutorStatusUpdate, executorAddress []common.Address) (event.Subscription, error)

WatchExecutorStatusUpdate is a free log subscription operation binding the zecrey event 0x9a01f9639f4fd4c2eea316eabcc61b3674b410002afdb96bf605cf288d37f9da.

Solidity: event ExecutorStatusUpdate(address indexed executorAddress, bool isActive)

func (*GovernanceFilterer) WatchMonitorStatusUpdate

func (_Governance *GovernanceFilterer) WatchMonitorStatusUpdate(opts *bind.WatchOpts, sink chan<- *GovernanceMonitorStatusUpdate, executorAddress []common.Address) (event.Subscription, error)

WatchMonitorStatusUpdate is a free log subscription operation binding the zecrey event 0x6fbe3fec04b6d2f79e569f1a46ec4d1621e751112483b5ce9d81832f19fee5c1.

Solidity: event MonitorStatusUpdate(address indexed executorAddress, bool isActive)

func (*GovernanceFilterer) WatchNewAsset

func (_Governance *GovernanceFilterer) WatchNewAsset(opts *bind.WatchOpts, sink chan<- *GovernanceNewAsset, assetAddress []common.Address, assetId []uint16) (event.Subscription, error)

WatchNewAsset is a free log subscription operation binding the zecrey event 0x990c18cf226b253448a6a051b5cadf51a61f4ca56703374cdd8bf9df04b2f901.

Solidity: event NewAsset(address indexed assetAddress, uint16 indexed assetId)

func (*GovernanceFilterer) WatchNewAssetGovernance

func (_Governance *GovernanceFilterer) WatchNewAssetGovernance(opts *bind.WatchOpts, sink chan<- *GovernanceNewAssetGovernance) (event.Subscription, error)

WatchNewAssetGovernance is a free log subscription operation binding the zecrey event 0xc7708091594580aae77e08cb1e2e3b9d2bd0cab0d2d95797248dd95f02d7299e.

Solidity: event NewAssetGovernance(address newAssetGovernance)

func (*GovernanceFilterer) WatchNewGovernor

func (_Governance *GovernanceFilterer) WatchNewGovernor(opts *bind.WatchOpts, sink chan<- *GovernanceNewGovernor) (event.Subscription, error)

WatchNewGovernor is a free log subscription operation binding the zecrey event 0x5425363a03f182281120f5919107c49c7a1a623acc1cbc6df468b6f0c11fcf8c.

Solidity: event NewGovernor(address newGovernor)

func (*GovernanceFilterer) WatchVerifierStatusUpdate

func (_Governance *GovernanceFilterer) WatchVerifierStatusUpdate(opts *bind.WatchOpts, sink chan<- *GovernanceVerifierStatusUpdate, verifierAddress []common.Address) (event.Subscription, error)

WatchVerifierStatusUpdate is a free log subscription operation binding the zecrey event 0xf09ef994a79ba4638c91b1d9595c89e208c3a9b9403769b68670c678782f82d0.

Solidity: event VerifierStatusUpdate(address indexed verifierAddress, bool isActive)

type GovernanceMonitorStatusUpdate

type GovernanceMonitorStatusUpdate struct {
	ExecutorAddress common.Address
	IsActive        bool
	Raw             types.Log // Blockchain specific contextual infos
}

GovernanceMonitorStatusUpdate represents a MonitorStatusUpdate event raised by the Governance zecrey.

type GovernanceMonitorStatusUpdateIterator

type GovernanceMonitorStatusUpdateIterator struct {
	Event *GovernanceMonitorStatusUpdate // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

GovernanceMonitorStatusUpdateIterator is returned from FilterMonitorStatusUpdate and is used to iterate over the raw logs and unpacked data for MonitorStatusUpdate events raised by the Governance zecrey.

func (*GovernanceMonitorStatusUpdateIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*GovernanceMonitorStatusUpdateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GovernanceMonitorStatusUpdateIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type GovernanceNewAsset

type GovernanceNewAsset struct {
	AssetAddress common.Address
	AssetId      uint16
	Raw          types.Log // Blockchain specific contextual infos
}

GovernanceNewAsset represents a NewAsset event raised by the Governance zecrey.

type GovernanceNewAssetGovernance

type GovernanceNewAssetGovernance struct {
	NewAssetGovernance common.Address
	Raw                types.Log // Blockchain specific contextual infos
}

GovernanceNewAssetGovernance represents a NewAssetGovernance event raised by the Governance zecrey.

type GovernanceNewAssetGovernanceIterator

type GovernanceNewAssetGovernanceIterator struct {
	Event *GovernanceNewAssetGovernance // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

GovernanceNewAssetGovernanceIterator is returned from FilterNewAssetGovernance and is used to iterate over the raw logs and unpacked data for NewAssetGovernance events raised by the Governance zecrey.

func (*GovernanceNewAssetGovernanceIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*GovernanceNewAssetGovernanceIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GovernanceNewAssetGovernanceIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type GovernanceNewAssetIterator

type GovernanceNewAssetIterator struct {
	Event *GovernanceNewAsset // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

GovernanceNewAssetIterator is returned from FilterNewAsset and is used to iterate over the raw logs and unpacked data for NewAsset events raised by the Governance zecrey.

func (*GovernanceNewAssetIterator) Close

func (it *GovernanceNewAssetIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*GovernanceNewAssetIterator) Error

func (it *GovernanceNewAssetIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*GovernanceNewAssetIterator) Next

func (it *GovernanceNewAssetIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type GovernanceNewGovernor

type GovernanceNewGovernor struct {
	NewGovernor common.Address
	Raw         types.Log // Blockchain specific contextual infos
}

GovernanceNewGovernor represents a NewGovernor event raised by the Governance zecrey.

type GovernanceNewGovernorIterator

type GovernanceNewGovernorIterator struct {
	Event *GovernanceNewGovernor // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

GovernanceNewGovernorIterator is returned from FilterNewGovernor and is used to iterate over the raw logs and unpacked data for NewGovernor events raised by the Governance zecrey.

func (*GovernanceNewGovernorIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*GovernanceNewGovernorIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GovernanceNewGovernorIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type GovernanceRaw

type GovernanceRaw struct {
	Contract *Governance // Generic zecrey binding to access the raw methods on
}

GovernanceRaw is an auto generated low-level Go binding around an Ethereum zecrey.

func (*GovernanceRaw) Call

func (_Governance *GovernanceRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) zecrey method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*GovernanceRaw) Transact

func (_Governance *GovernanceRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) zecrey method with params as input values.

func (*GovernanceRaw) Transfer

func (_Governance *GovernanceRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the zecrey, calling its default method if one is available.

type GovernanceSession

type GovernanceSession struct {
	Contract     *Governance       // Generic zecrey binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

GovernanceSession is an auto generated Go binding around an Ethereum zecrey, with pre-set call and transact options.

func (*GovernanceSession) AssetAddresses

func (_Governance *GovernanceSession) AssetAddresses(arg0 uint16) (common.Address, error)

AssetAddresses is a free data retrieval call binding the zecrey method 0xdbfc2967.

Solidity: function assetAddresses(uint16 ) view returns(address)

func (*GovernanceSession) AssetGovernance

func (_Governance *GovernanceSession) AssetGovernance() (common.Address, error)

AssetGovernance is a free data retrieval call binding the zecrey method 0xf5e7d6fd.

Solidity: function assetGovernance() view returns(address)

func (*GovernanceSession) AssetsList

func (_Governance *GovernanceSession) AssetsList(arg0 common.Address) (uint16, error)

AssetsList is a free data retrieval call binding the zecrey method 0x1e763ee3.

Solidity: function assetsList(address ) view returns(uint16)

func (*GovernanceSession) ChangeAssetGovernance

func (_Governance *GovernanceSession) ChangeAssetGovernance(_newAssetGovernance common.Address) (*types.Transaction, error)

ChangeAssetGovernance is a paid mutator transaction binding the zecrey method 0xd87e3748.

Solidity: function changeAssetGovernance(address _newAssetGovernance) returns()

func (*GovernanceSession) ChangeGovernor

func (_Governance *GovernanceSession) ChangeGovernor(_newGovernor common.Address) (*types.Transaction, error)

ChangeGovernor is a paid mutator transaction binding the zecrey method 0xe4c0aaf4.

Solidity: function changeGovernor(address _newGovernor) returns()

func (*GovernanceSession) Committers

func (_Governance *GovernanceSession) Committers(arg0 common.Address) (bool, error)

Committers is a free data retrieval call binding the zecrey method 0x5f4fea26.

Solidity: function committers(address ) view returns(bool)

func (*GovernanceSession) Initialize

func (_Governance *GovernanceSession) Initialize(initializationParameters []byte) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the zecrey method 0x439fab91.

Solidity: function initialize(bytes initializationParameters) returns()

func (*GovernanceSession) IsAddressExists

func (_Governance *GovernanceSession) IsAddressExists(arg0 common.Address) (bool, error)

IsAddressExists is a free data retrieval call binding the zecrey method 0x321e182b.

Solidity: function isAddressExists(address ) view returns(bool)

func (*GovernanceSession) Monitors

func (_Governance *GovernanceSession) Monitors(arg0 common.Address) (bool, error)

Monitors is a free data retrieval call binding the zecrey method 0x28b58e1a.

Solidity: function monitors(address ) view returns(bool)

func (*GovernanceSession) NetworkGovernor

func (_Governance *GovernanceSession) NetworkGovernor() (common.Address, error)

NetworkGovernor is a free data retrieval call binding the zecrey method 0xf39349ef.

Solidity: function networkGovernor() view returns(address)

func (*GovernanceSession) PausedAssets

func (_Governance *GovernanceSession) PausedAssets(arg0 uint16) (bool, error)

PausedAssets is a free data retrieval call binding the zecrey method 0x31d8687b.

Solidity: function pausedAssets(uint16 ) view returns(bool)

func (*GovernanceSession) RequireActiveCommitter

func (_Governance *GovernanceSession) RequireActiveCommitter(_address common.Address) error

RequireActiveCommitter is a free data retrieval call binding the zecrey method 0xa28e0032.

Solidity: function requireActiveCommitter(address _address) view returns()

func (*GovernanceSession) RequireActiveMonitor

func (_Governance *GovernanceSession) RequireActiveMonitor(_address common.Address) error

RequireActiveMonitor is a free data retrieval call binding the zecrey method 0x1c021956.

Solidity: function requireActiveMonitor(address _address) view returns()

func (*GovernanceSession) RequireActiveVerifier

func (_Governance *GovernanceSession) RequireActiveVerifier(_address common.Address) error

RequireActiveVerifier is a free data retrieval call binding the zecrey method 0x7a3459d4.

Solidity: function requireActiveVerifier(address _address) view returns()

func (*GovernanceSession) RequireGovernor

func (_Governance *GovernanceSession) RequireGovernor(_address common.Address) error

RequireGovernor is a free data retrieval call binding the zecrey method 0xf5f84ed4.

Solidity: function requireGovernor(address _address) view returns()

func (*GovernanceSession) SetAsset

func (_Governance *GovernanceSession) SetAsset(_assetId uint16, _assetAddress common.Address) (*types.Transaction, error)

SetAsset is a paid mutator transaction binding the zecrey method 0x5bab15ca.

Solidity: function setAsset(uint16 _assetId, address _assetAddress) returns()

func (*GovernanceSession) SetAssetPaused

func (_Governance *GovernanceSession) SetAssetPaused(_assetAddress common.Address, _assetPaused bool) (*types.Transaction, error)

SetAssetPaused is a paid mutator transaction binding the zecrey method 0x2520ce5a.

Solidity: function setAssetPaused(address _assetAddress, bool _assetPaused) returns()

func (*GovernanceSession) SetCommitter

func (_Governance *GovernanceSession) SetCommitter(_validator common.Address, _active bool) (*types.Transaction, error)

SetCommitter is a paid mutator transaction binding the zecrey method 0x1afcac96.

Solidity: function setCommitter(address _validator, bool _active) returns()

func (*GovernanceSession) SetMonitor

func (_Governance *GovernanceSession) SetMonitor(_validator common.Address, _active bool) (*types.Transaction, error)

SetMonitor is a paid mutator transaction binding the zecrey method 0x26eb0f4a.

Solidity: function setMonitor(address _validator, bool _active) returns()

func (*GovernanceSession) SetVerifier

func (_Governance *GovernanceSession) SetVerifier(_validator common.Address, _active bool) (*types.Transaction, error)

SetVerifier is a paid mutator transaction binding the zecrey method 0xac9b5671.

Solidity: function setVerifier(address _validator, bool _active) returns()

func (*GovernanceSession) TotalAssets

func (_Governance *GovernanceSession) TotalAssets() (uint16, error)

TotalAssets is a free data retrieval call binding the zecrey method 0x01e1d114.

Solidity: function totalAssets() view returns(uint16)

func (*GovernanceSession) Upgrade

func (_Governance *GovernanceSession) Upgrade(upgradeParameters []byte) (*types.Transaction, error)

Upgrade is a paid mutator transaction binding the zecrey method 0x25394645.

Solidity: function upgrade(bytes upgradeParameters) returns()

func (*GovernanceSession) ValidateAssetAddress

func (_Governance *GovernanceSession) ValidateAssetAddress(_assetAddr common.Address) (uint16, error)

ValidateAssetAddress is a free data retrieval call binding the zecrey method 0x9bd77609.

Solidity: function validateAssetAddress(address _assetAddr) view returns(uint16)

func (*GovernanceSession) Verifiers

func (_Governance *GovernanceSession) Verifiers(arg0 common.Address) (bool, error)

Verifiers is a free data retrieval call binding the zecrey method 0x6c824487.

Solidity: function verifiers(address ) view returns(bool)

type GovernanceTransactor

type GovernanceTransactor struct {
	// contains filtered or unexported fields
}

GovernanceTransactor is an auto generated write-only Go binding around an Ethereum zecrey.

func NewGovernanceTransactor

func NewGovernanceTransactor(address common.Address, transactor bind.ContractTransactor) (*GovernanceTransactor, error)

NewGovernanceTransactor creates a new write-only instance of Governance, bound to a specific deployed zecrey.

func (*GovernanceTransactor) ChangeAssetGovernance

func (_Governance *GovernanceTransactor) ChangeAssetGovernance(opts *bind.TransactOpts, _newAssetGovernance common.Address) (*types.Transaction, error)

ChangeAssetGovernance is a paid mutator transaction binding the zecrey method 0xd87e3748.

Solidity: function changeAssetGovernance(address _newAssetGovernance) returns()

func (*GovernanceTransactor) ChangeGovernor

func (_Governance *GovernanceTransactor) ChangeGovernor(opts *bind.TransactOpts, _newGovernor common.Address) (*types.Transaction, error)

ChangeGovernor is a paid mutator transaction binding the zecrey method 0xe4c0aaf4.

Solidity: function changeGovernor(address _newGovernor) returns()

func (*GovernanceTransactor) Initialize

func (_Governance *GovernanceTransactor) Initialize(opts *bind.TransactOpts, initializationParameters []byte) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the zecrey method 0x439fab91.

Solidity: function initialize(bytes initializationParameters) returns()

func (*GovernanceTransactor) SetAsset

func (_Governance *GovernanceTransactor) SetAsset(opts *bind.TransactOpts, _assetId uint16, _assetAddress common.Address) (*types.Transaction, error)

SetAsset is a paid mutator transaction binding the zecrey method 0x5bab15ca.

Solidity: function setAsset(uint16 _assetId, address _assetAddress) returns()

func (*GovernanceTransactor) SetAssetPaused

func (_Governance *GovernanceTransactor) SetAssetPaused(opts *bind.TransactOpts, _assetAddress common.Address, _assetPaused bool) (*types.Transaction, error)

SetAssetPaused is a paid mutator transaction binding the zecrey method 0x2520ce5a.

Solidity: function setAssetPaused(address _assetAddress, bool _assetPaused) returns()

func (*GovernanceTransactor) SetCommitter

func (_Governance *GovernanceTransactor) SetCommitter(opts *bind.TransactOpts, _validator common.Address, _active bool) (*types.Transaction, error)

SetCommitter is a paid mutator transaction binding the zecrey method 0x1afcac96.

Solidity: function setCommitter(address _validator, bool _active) returns()

func (*GovernanceTransactor) SetMonitor

func (_Governance *GovernanceTransactor) SetMonitor(opts *bind.TransactOpts, _validator common.Address, _active bool) (*types.Transaction, error)

SetMonitor is a paid mutator transaction binding the zecrey method 0x26eb0f4a.

Solidity: function setMonitor(address _validator, bool _active) returns()

func (*GovernanceTransactor) SetVerifier

func (_Governance *GovernanceTransactor) SetVerifier(opts *bind.TransactOpts, _validator common.Address, _active bool) (*types.Transaction, error)

SetVerifier is a paid mutator transaction binding the zecrey method 0xac9b5671.

Solidity: function setVerifier(address _validator, bool _active) returns()

func (*GovernanceTransactor) Upgrade

func (_Governance *GovernanceTransactor) Upgrade(opts *bind.TransactOpts, upgradeParameters []byte) (*types.Transaction, error)

Upgrade is a paid mutator transaction binding the zecrey method 0x25394645.

Solidity: function upgrade(bytes upgradeParameters) returns()

type GovernanceTransactorRaw

type GovernanceTransactorRaw struct {
	Contract *GovernanceTransactor // Generic write-only zecrey binding to access the raw methods on
}

GovernanceTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum zecrey.

func (*GovernanceTransactorRaw) Transact

func (_Governance *GovernanceTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) zecrey method with params as input values.

func (*GovernanceTransactorRaw) Transfer

func (_Governance *GovernanceTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the zecrey, calling its default method if one is available.

type GovernanceTransactorSession

type GovernanceTransactorSession struct {
	Contract     *GovernanceTransactor // Generic zecrey transactor binding to set the session for
	TransactOpts bind.TransactOpts     // Transaction auth options to use throughout this session
}

GovernanceTransactorSession is an auto generated write-only Go binding around an Ethereum zecrey, with pre-set transact options.

func (*GovernanceTransactorSession) ChangeAssetGovernance

func (_Governance *GovernanceTransactorSession) ChangeAssetGovernance(_newAssetGovernance common.Address) (*types.Transaction, error)

ChangeAssetGovernance is a paid mutator transaction binding the zecrey method 0xd87e3748.

Solidity: function changeAssetGovernance(address _newAssetGovernance) returns()

func (*GovernanceTransactorSession) ChangeGovernor

func (_Governance *GovernanceTransactorSession) ChangeGovernor(_newGovernor common.Address) (*types.Transaction, error)

ChangeGovernor is a paid mutator transaction binding the zecrey method 0xe4c0aaf4.

Solidity: function changeGovernor(address _newGovernor) returns()

func (*GovernanceTransactorSession) Initialize

func (_Governance *GovernanceTransactorSession) Initialize(initializationParameters []byte) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the zecrey method 0x439fab91.

Solidity: function initialize(bytes initializationParameters) returns()

func (*GovernanceTransactorSession) SetAsset

func (_Governance *GovernanceTransactorSession) SetAsset(_assetId uint16, _assetAddress common.Address) (*types.Transaction, error)

SetAsset is a paid mutator transaction binding the zecrey method 0x5bab15ca.

Solidity: function setAsset(uint16 _assetId, address _assetAddress) returns()

func (*GovernanceTransactorSession) SetAssetPaused

func (_Governance *GovernanceTransactorSession) SetAssetPaused(_assetAddress common.Address, _assetPaused bool) (*types.Transaction, error)

SetAssetPaused is a paid mutator transaction binding the zecrey method 0x2520ce5a.

Solidity: function setAssetPaused(address _assetAddress, bool _assetPaused) returns()

func (*GovernanceTransactorSession) SetCommitter

func (_Governance *GovernanceTransactorSession) SetCommitter(_validator common.Address, _active bool) (*types.Transaction, error)

SetCommitter is a paid mutator transaction binding the zecrey method 0x1afcac96.

Solidity: function setCommitter(address _validator, bool _active) returns()

func (*GovernanceTransactorSession) SetMonitor

func (_Governance *GovernanceTransactorSession) SetMonitor(_validator common.Address, _active bool) (*types.Transaction, error)

SetMonitor is a paid mutator transaction binding the zecrey method 0x26eb0f4a.

Solidity: function setMonitor(address _validator, bool _active) returns()

func (*GovernanceTransactorSession) SetVerifier

func (_Governance *GovernanceTransactorSession) SetVerifier(_validator common.Address, _active bool) (*types.Transaction, error)

SetVerifier is a paid mutator transaction binding the zecrey method 0xac9b5671.

Solidity: function setVerifier(address _validator, bool _active) returns()

func (*GovernanceTransactorSession) Upgrade

func (_Governance *GovernanceTransactorSession) Upgrade(upgradeParameters []byte) (*types.Transaction, error)

Upgrade is a paid mutator transaction binding the zecrey method 0x25394645.

Solidity: function upgrade(bytes upgradeParameters) returns()

type GovernanceVerifierStatusUpdate

type GovernanceVerifierStatusUpdate struct {
	VerifierAddress common.Address
	IsActive        bool
	Raw             types.Log // Blockchain specific contextual infos
}

GovernanceVerifierStatusUpdate represents a VerifierStatusUpdate event raised by the Governance zecrey.

type GovernanceVerifierStatusUpdateIterator

type GovernanceVerifierStatusUpdateIterator struct {
	Event *GovernanceVerifierStatusUpdate // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

GovernanceVerifierStatusUpdateIterator is returned from FilterVerifierStatusUpdate and is used to iterate over the raw logs and unpacked data for VerifierStatusUpdate events raised by the Governance zecrey.

func (*GovernanceVerifierStatusUpdateIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*GovernanceVerifierStatusUpdateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GovernanceVerifierStatusUpdateIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ProviderClient

type ProviderClient = _rpc.ProviderClient

type StorageBlockHeader

type StorageBlockHeader struct {
	BlockNumber                  uint32
	PriorityOperations           uint64
	PendingOnchainOperationsHash [32]byte
	AccountRoot                  [32]byte
	Timestamp                    *big.Int
	Commitment                   [32]byte
}

StorageBlockHeader is an auto generated low-level Go binding around an user-defined struct.

type Verifier

type Verifier struct {
	VerifierCaller     // Read-only binding to the zecrey
	VerifierTransactor // Write-only binding to the zecrey
	VerifierFilterer   // Log filterer for zecrey events
}

Verifier is an auto generated Go binding around an Ethereum zecrey.

func DeployVerifier

func DeployVerifier(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Verifier, error)

DeployVerifier deploys a new Ethereum zecrey, binding an instance of Verifier to it.

func LoadVerifierInstance

func LoadVerifierInstance(cli *_rpc.ProviderClient, addr string) (instance *Verifier, err error)

LoadVerifierInstance: load verifier instance if it is already deployed

func NewVerifier

func NewVerifier(address common.Address, backend bind.ContractBackend) (*Verifier, error)

NewVerifier creates a new instance of Verifier, bound to a specific deployed zecrey.

type VerifierCaller

type VerifierCaller struct {
	// contains filtered or unexported fields
}

VerifierCaller is an auto generated read-only Go binding around an Ethereum zecrey.

func NewVerifierCaller

func NewVerifierCaller(address common.Address, caller bind.ContractCaller) (*VerifierCaller, error)

NewVerifierCaller creates a new read-only instance of Verifier, bound to a specific deployed zecrey.

func (*VerifierCaller) ScalarField

func (_Verifier *VerifierCaller) ScalarField(opts *bind.CallOpts) (*big.Int, error)

ScalarField is a free data retrieval call binding the zecrey method 0xdaad1e63.

Solidity: function ScalarField() pure returns(uint256)

func (*VerifierCaller) VerifyBatchProofs

func (_Verifier *VerifierCaller) VerifyBatchProofs(opts *bind.CallOpts, in_proof []*big.Int, proof_inputs []*big.Int, num_proofs *big.Int) (bool, error)

VerifyBatchProofs is a free data retrieval call binding the zecrey method 0xc50e8263.

Solidity: function verifyBatchProofs(uint256[] in_proof, uint256[] proof_inputs, uint256 num_proofs) view returns(bool success)

func (*VerifierCaller) VerifyProof

func (_Verifier *VerifierCaller) VerifyProof(opts *bind.CallOpts, in_proof []*big.Int, proof_inputs []*big.Int) (bool, error)

VerifyProof is a free data retrieval call binding the zecrey method 0x721ea4ac.

Solidity: function verifyProof(uint256[] in_proof, uint256[] proof_inputs) view returns(bool)

type VerifierCallerRaw

type VerifierCallerRaw struct {
	Contract *VerifierCaller // Generic read-only zecrey binding to access the raw methods on
}

VerifierCallerRaw is an auto generated low-level read-only Go binding around an Ethereum zecrey.

func (*VerifierCallerRaw) Call

func (_Verifier *VerifierCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) zecrey method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type VerifierCallerSession

type VerifierCallerSession struct {
	Contract *VerifierCaller // Generic zecrey caller binding to set the session for
	CallOpts bind.CallOpts   // Call options to use throughout this session
}

VerifierCallerSession is an auto generated read-only Go binding around an Ethereum zecrey, with pre-set call options.

func (*VerifierCallerSession) ScalarField

func (_Verifier *VerifierCallerSession) ScalarField() (*big.Int, error)

ScalarField is a free data retrieval call binding the zecrey method 0xdaad1e63.

Solidity: function ScalarField() pure returns(uint256)

func (*VerifierCallerSession) VerifyBatchProofs

func (_Verifier *VerifierCallerSession) VerifyBatchProofs(in_proof []*big.Int, proof_inputs []*big.Int, num_proofs *big.Int) (bool, error)

VerifyBatchProofs is a free data retrieval call binding the zecrey method 0xc50e8263.

Solidity: function verifyBatchProofs(uint256[] in_proof, uint256[] proof_inputs, uint256 num_proofs) view returns(bool success)

func (*VerifierCallerSession) VerifyProof

func (_Verifier *VerifierCallerSession) VerifyProof(in_proof []*big.Int, proof_inputs []*big.Int) (bool, error)

VerifyProof is a free data retrieval call binding the zecrey method 0x721ea4ac.

Solidity: function verifyProof(uint256[] in_proof, uint256[] proof_inputs) view returns(bool)

type VerifierFilterer

type VerifierFilterer struct {
	// contains filtered or unexported fields
}

VerifierFilterer is an auto generated log filtering Go binding around an Ethereum zecrey events.

func NewVerifierFilterer

func NewVerifierFilterer(address common.Address, filterer bind.ContractFilterer) (*VerifierFilterer, error)

NewVerifierFilterer creates a new log filterer instance of Verifier, bound to a specific deployed zecrey.

type VerifierRaw

type VerifierRaw struct {
	Contract *Verifier // Generic zecrey binding to access the raw methods on
}

VerifierRaw is an auto generated low-level Go binding around an Ethereum zecrey.

func (*VerifierRaw) Call

func (_Verifier *VerifierRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) zecrey method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*VerifierRaw) Transact

func (_Verifier *VerifierRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) zecrey method with params as input values.

func (*VerifierRaw) Transfer

func (_Verifier *VerifierRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the zecrey, calling its default method if one is available.

type VerifierSession

type VerifierSession struct {
	Contract     *Verifier         // Generic zecrey binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

VerifierSession is an auto generated Go binding around an Ethereum zecrey, with pre-set call and transact options.

func (*VerifierSession) ScalarField

func (_Verifier *VerifierSession) ScalarField() (*big.Int, error)

ScalarField is a free data retrieval call binding the zecrey method 0xdaad1e63.

Solidity: function ScalarField() pure returns(uint256)

func (*VerifierSession) Upgrade

func (_Verifier *VerifierSession) Upgrade(upgradeParameters []byte) (*types.Transaction, error)

Upgrade is a paid mutator transaction binding the zecrey method 0x25394645.

Solidity: function upgrade(bytes upgradeParameters) returns()

func (*VerifierSession) VerifyBatchProofs

func (_Verifier *VerifierSession) VerifyBatchProofs(in_proof []*big.Int, proof_inputs []*big.Int, num_proofs *big.Int) (bool, error)

VerifyBatchProofs is a free data retrieval call binding the zecrey method 0xc50e8263.

Solidity: function verifyBatchProofs(uint256[] in_proof, uint256[] proof_inputs, uint256 num_proofs) view returns(bool success)

func (*VerifierSession) VerifyProof

func (_Verifier *VerifierSession) VerifyProof(in_proof []*big.Int, proof_inputs []*big.Int) (bool, error)

VerifyProof is a free data retrieval call binding the zecrey method 0x721ea4ac.

Solidity: function verifyProof(uint256[] in_proof, uint256[] proof_inputs) view returns(bool)

type VerifierTransactor

type VerifierTransactor struct {
	// contains filtered or unexported fields
}

VerifierTransactor is an auto generated write-only Go binding around an Ethereum zecrey.

func NewVerifierTransactor

func NewVerifierTransactor(address common.Address, transactor bind.ContractTransactor) (*VerifierTransactor, error)

NewVerifierTransactor creates a new write-only instance of Verifier, bound to a specific deployed zecrey.

func (*VerifierTransactor) Upgrade

func (_Verifier *VerifierTransactor) Upgrade(opts *bind.TransactOpts, upgradeParameters []byte) (*types.Transaction, error)

Upgrade is a paid mutator transaction binding the zecrey method 0x25394645.

Solidity: function upgrade(bytes upgradeParameters) returns()

type VerifierTransactorRaw

type VerifierTransactorRaw struct {
	Contract *VerifierTransactor // Generic write-only zecrey binding to access the raw methods on
}

VerifierTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum zecrey.

func (*VerifierTransactorRaw) Transact

func (_Verifier *VerifierTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) zecrey method with params as input values.

func (*VerifierTransactorRaw) Transfer

func (_Verifier *VerifierTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the zecrey, calling its default method if one is available.

type VerifierTransactorSession

type VerifierTransactorSession struct {
	Contract     *VerifierTransactor // Generic zecrey transactor binding to set the session for
	TransactOpts bind.TransactOpts   // Transaction auth options to use throughout this session
}

VerifierTransactorSession is an auto generated write-only Go binding around an Ethereum zecrey, with pre-set transact options.

func (*VerifierTransactorSession) Upgrade

func (_Verifier *VerifierTransactorSession) Upgrade(upgradeParameters []byte) (*types.Transaction, error)

Upgrade is a paid mutator transaction binding the zecrey method 0x25394645.

Solidity: function upgrade(bytes upgradeParameters) returns()

type Zecrey

type Zecrey struct {
	ZecreyCaller     // Read-only binding to the zecrey
	ZecreyTransactor // Write-only binding to the zecrey
	ZecreyFilterer   // Log filterer for zecrey events
}

Zecrey is an auto generated Go binding around an Ethereum zecrey.

func DeployZecrey

func DeployZecrey(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Zecrey, error)

DeployZecrey deploys a new Ethereum zecrey, binding an instance of Zecrey to it.

func LoadZecreyInstance

func LoadZecreyInstance(cli *_rpc.ProviderClient, addr string) (instance *Zecrey, err error)

LoadZecreyInstance: load governance instance if it is already deployed

func NewZecrey

func NewZecrey(address common.Address, backend bind.ContractBackend) (*Zecrey, error)

NewZecrey creates a new instance of Zecrey, bound to a specific deployed zecrey.

type ZecreyBlockCommit

type ZecreyBlockCommit struct {
	BlockNumber uint32
	Raw         types.Log // Blockchain specific contextual infos
}

ZecreyBlockCommit represents a BlockCommit event raised by the Zecrey zecrey.

type ZecreyBlockCommitIterator

type ZecreyBlockCommitIterator struct {
	Event *ZecreyBlockCommit // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

ZecreyBlockCommitIterator is returned from FilterBlockCommit and is used to iterate over the raw logs and unpacked data for BlockCommit events raised by the Zecrey zecrey.

func (*ZecreyBlockCommitIterator) Close

func (it *ZecreyBlockCommitIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ZecreyBlockCommitIterator) Error

func (it *ZecreyBlockCommitIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ZecreyBlockCommitIterator) Next

func (it *ZecreyBlockCommitIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ZecreyBlockExecution

type ZecreyBlockExecution struct {
	BlockNumber uint32
	Raw         types.Log // Blockchain specific contextual infos
}

ZecreyBlockExecution represents a BlockExecution event raised by the Zecrey zecrey.

type ZecreyBlockExecutionIterator

type ZecreyBlockExecutionIterator struct {
	Event *ZecreyBlockExecution // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

ZecreyBlockExecutionIterator is returned from FilterBlockExecution and is used to iterate over the raw logs and unpacked data for BlockExecution events raised by the Zecrey zecrey.

func (*ZecreyBlockExecutionIterator) Close

func (it *ZecreyBlockExecutionIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ZecreyBlockExecutionIterator) Error

func (it *ZecreyBlockExecutionIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ZecreyBlockExecutionIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ZecreyBlockVerification

type ZecreyBlockVerification struct {
	BlockNumber uint32
	Raw         types.Log // Blockchain specific contextual infos
}

ZecreyBlockVerification represents a BlockVerification event raised by the Zecrey zecrey.

type ZecreyBlockVerificationIterator

type ZecreyBlockVerificationIterator struct {
	Event *ZecreyBlockVerification // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

ZecreyBlockVerificationIterator is returned from FilterBlockVerification and is used to iterate over the raw logs and unpacked data for BlockVerification events raised by the Zecrey zecrey.

func (*ZecreyBlockVerificationIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ZecreyBlockVerificationIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ZecreyBlockVerificationIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ZecreyBlocksRevert

type ZecreyBlocksRevert struct {
	TotalBlocksVerified  uint32
	TotalBlocksCommitted uint32
	Raw                  types.Log // Blockchain specific contextual infos
}

ZecreyBlocksRevert represents a BlocksRevert event raised by the Zecrey zecrey.

type ZecreyBlocksRevertIterator

type ZecreyBlocksRevertIterator struct {
	Event *ZecreyBlocksRevert // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

ZecreyBlocksRevertIterator is returned from FilterBlocksRevert and is used to iterate over the raw logs and unpacked data for BlocksRevert events raised by the Zecrey zecrey.

func (*ZecreyBlocksRevertIterator) Close

func (it *ZecreyBlocksRevertIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ZecreyBlocksRevertIterator) Error

func (it *ZecreyBlocksRevertIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ZecreyBlocksRevertIterator) Next

func (it *ZecreyBlocksRevertIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ZecreyCaller

type ZecreyCaller struct {
	// contains filtered or unexported fields
}

ZecreyCaller is an auto generated read-only Go binding around an Ethereum zecrey.

func NewZecreyCaller

func NewZecreyCaller(address common.Address, caller bind.ContractCaller) (*ZecreyCaller, error)

NewZecreyCaller creates a new read-only instance of Zecrey, bound to a specific deployed zecrey.

func (*ZecreyCaller) AccountRoot

func (_Zecrey *ZecreyCaller) AccountRoot(opts *bind.CallOpts) ([32]byte, error)

AccountRoot is a free data retrieval call binding the zecrey method 0xa7ccec2f.

Solidity: function accountRoot() view returns(bytes32)

func (*ZecreyCaller) BlockOnchainOpsPubData

func (_Zecrey *ZecreyCaller) BlockOnchainOpsPubData(opts *bind.CallOpts, arg0 uint32) ([]byte, error)

BlockOnchainOpsPubData is a free data retrieval call binding the zecrey method 0xeface7e2.

Solidity: function blockOnchainOpsPubData(uint32 ) view returns(bytes)

func (*ZecreyCaller) ComputeOnchainOpsHash

func (_Zecrey *ZecreyCaller) ComputeOnchainOpsHash(opts *bind.CallOpts, _onchainOpsPubData []byte) ([32]byte, error)

ComputeOnchainOpsHash is a free data retrieval call binding the zecrey method 0x8c8ebc52.

Solidity: function computeOnchainOpsHash(bytes _onchainOpsPubData) pure returns(bytes32 onchainOpsDataHash)

func (*ZecreyCaller) FirstPriorityRequestId

func (_Zecrey *ZecreyCaller) FirstPriorityRequestId(opts *bind.CallOpts) (uint64, error)

FirstPriorityRequestId is a free data retrieval call binding the zecrey method 0x67708dae.

Solidity: function firstPriorityRequestId() view returns(uint64)

func (*ZecreyCaller) GetNoticePeriod

func (_Zecrey *ZecreyCaller) GetNoticePeriod(opts *bind.CallOpts) (*big.Int, error)

GetNoticePeriod is a free data retrieval call binding the zecrey method 0x2a3174f4.

Solidity: function getNoticePeriod() pure returns(uint256)

func (*ZecreyCaller) GetPendingBalance

func (_Zecrey *ZecreyCaller) GetPendingBalance(opts *bind.CallOpts, _address common.Address, _assetAddr common.Address) (*big.Int, error)

GetPendingBalance is a free data retrieval call binding the zecrey method 0x5aca41f6.

Solidity: function getPendingBalance(address _address, address _assetAddr) view returns(uint128)

func (*ZecreyCaller) IsReadyForUpgrade

func (_Zecrey *ZecreyCaller) IsReadyForUpgrade(opts *bind.CallOpts) (bool, error)

IsReadyForUpgrade is a free data retrieval call binding the zecrey method 0x8773334c.

Solidity: function isReadyForUpgrade() view returns(bool)

func (*ZecreyCaller) OnchainOpsCheck

func (_Zecrey *ZecreyCaller) OnchainOpsCheck(opts *bind.CallOpts, arg0 [20]byte) (bool, error)

OnchainOpsCheck is a free data retrieval call binding the zecrey method 0x0222740e.

Solidity: function onchainOpsCheck(bytes20 ) view returns(bool)

func (*ZecreyCaller) OnchainOpsExecuted

func (_Zecrey *ZecreyCaller) OnchainOpsExecuted(opts *bind.CallOpts, arg0 [20]byte) (bool, error)

OnchainOpsExecuted is a free data retrieval call binding the zecrey method 0x8b4f7de9.

Solidity: function onchainOpsExecuted(bytes20 ) view returns(bool)

func (*ZecreyCaller) StoredBlockHeaderHashes

func (_Zecrey *ZecreyCaller) StoredBlockHeaderHashes(opts *bind.CallOpts, arg0 uint32) ([32]byte, error)

StoredBlockHeaderHashes is a free data retrieval call binding the zecrey method 0x4167d002.

Solidity: function storedBlockHeaderHashes(uint32 ) view returns(bytes32)

func (*ZecreyCaller) TotalBlocksCommitted

func (_Zecrey *ZecreyCaller) TotalBlocksCommitted(opts *bind.CallOpts) (uint32, error)

TotalBlocksCommitted is a free data retrieval call binding the zecrey method 0xfaf4d8cb.

Solidity: function totalBlocksCommitted() view returns(uint32)

func (*ZecreyCaller) TotalBlocksExecuted

func (_Zecrey *ZecreyCaller) TotalBlocksExecuted(opts *bind.CallOpts) (uint32, error)

TotalBlocksExecuted is a free data retrieval call binding the zecrey method 0xf2235487.

Solidity: function totalBlocksExecuted() view returns(uint32)

func (*ZecreyCaller) TotalBlocksVerified

func (_Zecrey *ZecreyCaller) TotalBlocksVerified(opts *bind.CallOpts) (uint32, error)

TotalBlocksVerified is a free data retrieval call binding the zecrey method 0x2d24006c.

Solidity: function totalBlocksVerified() view returns(uint32)

func (*ZecreyCaller) TotalOpenPriorityRequests

func (_Zecrey *ZecreyCaller) TotalOpenPriorityRequests(opts *bind.CallOpts) (uint64, error)

TotalOpenPriorityRequests is a free data retrieval call binding the zecrey method 0xc57b22be.

Solidity: function totalOpenPriorityRequests() view returns(uint64)

func (*ZecreyCaller) UnhandledBalances

func (_Zecrey *ZecreyCaller) UnhandledBalances(opts *bind.CallOpts, arg0 uint16, arg1 common.Address) (struct {
	UnhandledBalance *big.Int
	BlockNumber      *big.Int
}, error)

UnhandledBalances is a free data retrieval call binding the zecrey method 0xe1d730d9.

Solidity: function unhandledBalances(uint16 , address ) view returns(uint128 unhandledBalance, uint256 blockNumber)

type ZecreyCallerRaw

type ZecreyCallerRaw struct {
	Contract *ZecreyCaller // Generic read-only zecrey binding to access the raw methods on
}

ZecreyCallerRaw is an auto generated low-level read-only Go binding around an Ethereum zecrey.

func (*ZecreyCallerRaw) Call

func (_Zecrey *ZecreyCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) zecrey method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type ZecreyCallerSession

type ZecreyCallerSession struct {
	Contract *ZecreyCaller // Generic zecrey caller binding to set the session for
	CallOpts bind.CallOpts // Call options to use throughout this session
}

ZecreyCallerSession is an auto generated read-only Go binding around an Ethereum zecrey, with pre-set call options.

func (*ZecreyCallerSession) AccountRoot

func (_Zecrey *ZecreyCallerSession) AccountRoot() ([32]byte, error)

AccountRoot is a free data retrieval call binding the zecrey method 0xa7ccec2f.

Solidity: function accountRoot() view returns(bytes32)

func (*ZecreyCallerSession) BlockOnchainOpsPubData

func (_Zecrey *ZecreyCallerSession) BlockOnchainOpsPubData(arg0 uint32) ([]byte, error)

BlockOnchainOpsPubData is a free data retrieval call binding the zecrey method 0xeface7e2.

Solidity: function blockOnchainOpsPubData(uint32 ) view returns(bytes)

func (*ZecreyCallerSession) ComputeOnchainOpsHash

func (_Zecrey *ZecreyCallerSession) ComputeOnchainOpsHash(_onchainOpsPubData []byte) ([32]byte, error)

ComputeOnchainOpsHash is a free data retrieval call binding the zecrey method 0x8c8ebc52.

Solidity: function computeOnchainOpsHash(bytes _onchainOpsPubData) pure returns(bytes32 onchainOpsDataHash)

func (*ZecreyCallerSession) FirstPriorityRequestId

func (_Zecrey *ZecreyCallerSession) FirstPriorityRequestId() (uint64, error)

FirstPriorityRequestId is a free data retrieval call binding the zecrey method 0x67708dae.

Solidity: function firstPriorityRequestId() view returns(uint64)

func (*ZecreyCallerSession) GetNoticePeriod

func (_Zecrey *ZecreyCallerSession) GetNoticePeriod() (*big.Int, error)

GetNoticePeriod is a free data retrieval call binding the zecrey method 0x2a3174f4.

Solidity: function getNoticePeriod() pure returns(uint256)

func (*ZecreyCallerSession) GetPendingBalance

func (_Zecrey *ZecreyCallerSession) GetPendingBalance(_address common.Address, _assetAddr common.Address) (*big.Int, error)

GetPendingBalance is a free data retrieval call binding the zecrey method 0x5aca41f6.

Solidity: function getPendingBalance(address _address, address _assetAddr) view returns(uint128)

func (*ZecreyCallerSession) IsReadyForUpgrade

func (_Zecrey *ZecreyCallerSession) IsReadyForUpgrade() (bool, error)

IsReadyForUpgrade is a free data retrieval call binding the zecrey method 0x8773334c.

Solidity: function isReadyForUpgrade() view returns(bool)

func (*ZecreyCallerSession) OnchainOpsCheck

func (_Zecrey *ZecreyCallerSession) OnchainOpsCheck(arg0 [20]byte) (bool, error)

OnchainOpsCheck is a free data retrieval call binding the zecrey method 0x0222740e.

Solidity: function onchainOpsCheck(bytes20 ) view returns(bool)

func (*ZecreyCallerSession) OnchainOpsExecuted

func (_Zecrey *ZecreyCallerSession) OnchainOpsExecuted(arg0 [20]byte) (bool, error)

OnchainOpsExecuted is a free data retrieval call binding the zecrey method 0x8b4f7de9.

Solidity: function onchainOpsExecuted(bytes20 ) view returns(bool)

func (*ZecreyCallerSession) StoredBlockHeaderHashes

func (_Zecrey *ZecreyCallerSession) StoredBlockHeaderHashes(arg0 uint32) ([32]byte, error)

StoredBlockHeaderHashes is a free data retrieval call binding the zecrey method 0x4167d002.

Solidity: function storedBlockHeaderHashes(uint32 ) view returns(bytes32)

func (*ZecreyCallerSession) TotalBlocksCommitted

func (_Zecrey *ZecreyCallerSession) TotalBlocksCommitted() (uint32, error)

TotalBlocksCommitted is a free data retrieval call binding the zecrey method 0xfaf4d8cb.

Solidity: function totalBlocksCommitted() view returns(uint32)

func (*ZecreyCallerSession) TotalBlocksExecuted

func (_Zecrey *ZecreyCallerSession) TotalBlocksExecuted() (uint32, error)

TotalBlocksExecuted is a free data retrieval call binding the zecrey method 0xf2235487.

Solidity: function totalBlocksExecuted() view returns(uint32)

func (*ZecreyCallerSession) TotalBlocksVerified

func (_Zecrey *ZecreyCallerSession) TotalBlocksVerified() (uint32, error)

TotalBlocksVerified is a free data retrieval call binding the zecrey method 0x2d24006c.

Solidity: function totalBlocksVerified() view returns(uint32)

func (*ZecreyCallerSession) TotalOpenPriorityRequests

func (_Zecrey *ZecreyCallerSession) TotalOpenPriorityRequests() (uint64, error)

TotalOpenPriorityRequests is a free data retrieval call binding the zecrey method 0xc57b22be.

Solidity: function totalOpenPriorityRequests() view returns(uint64)

func (*ZecreyCallerSession) UnhandledBalances

func (_Zecrey *ZecreyCallerSession) UnhandledBalances(arg0 uint16, arg1 common.Address) (struct {
	UnhandledBalance *big.Int
	BlockNumber      *big.Int
}, error)

UnhandledBalances is a free data retrieval call binding the zecrey method 0xe1d730d9.

Solidity: function unhandledBalances(uint16 , address ) view returns(uint128 unhandledBalance, uint256 blockNumber)

type ZecreyCommitBlockInfo

type ZecreyCommitBlockInfo struct {
	BlockNumber       uint32
	NewAccountRoot    [32]byte
	Timestamp         *big.Int
	Commitment        [32]byte
	OnchainOpsPubData []byte
	OnchainOpsCount   uint16
}

ZecreyCommitBlockInfo is an auto generated low-level Go binding around an user-defined struct.

type ZecreyContracts

type ZecreyContracts struct {
	GovernanceAddr      string
	AssetGovernanceAddr string
	VerifierAddr        string
	ZecreyAddr          string
	ReyERC20Addr        string
	EthERC20Addr        string
	MaticERC20Addr      string
	NearERC20Addr       string
	AvaxERC20Addr       string
	BitERC20Addr        string
	UsdtERC20Addr       string
	UsdcERC20Addr       string
	DaiERC20Addr        string
	BnbERC20Addr        string
}

type ZecreyDepositCommit

type ZecreyDepositCommit struct {
	ZecreyBlockNumber uint32
	AccountIndex      uint32
	AccountName       [32]byte
	AssetId           uint16
	Amount            *big.Int
	Raw               types.Log // Blockchain specific contextual infos
}

ZecreyDepositCommit represents a DepositCommit event raised by the Zecrey zecrey.

type ZecreyDepositCommitIterator

type ZecreyDepositCommitIterator struct {
	Event *ZecreyDepositCommit // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

ZecreyDepositCommitIterator is returned from FilterDepositCommit and is used to iterate over the raw logs and unpacked data for DepositCommit events raised by the Zecrey zecrey.

func (*ZecreyDepositCommitIterator) Close

func (it *ZecreyDepositCommitIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ZecreyDepositCommitIterator) Error

func (it *ZecreyDepositCommitIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ZecreyDepositCommitIterator) Next

func (it *ZecreyDepositCommitIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ZecreyDepositNFT

type ZecreyDepositNFT struct {
	Sender       common.Address
	AccountName  [32]byte
	TokenAddress common.Address
	NftType      uint8
	NftID        *big.Int
	Amount       *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

ZecreyDepositNFT represents a DepositNFT event raised by the Zecrey zecrey.

type ZecreyDepositNFTIterator

type ZecreyDepositNFTIterator struct {
	Event *ZecreyDepositNFT // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

ZecreyDepositNFTIterator is returned from FilterDepositNFT and is used to iterate over the raw logs and unpacked data for DepositNFT events raised by the Zecrey zecrey.

func (*ZecreyDepositNFTIterator) Close

func (it *ZecreyDepositNFTIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ZecreyDepositNFTIterator) Error

func (it *ZecreyDepositNFTIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ZecreyDepositNFTIterator) Next

func (it *ZecreyDepositNFTIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ZecreyDepositOrLock

type ZecreyDepositOrLock struct {
	OpType      uint8
	AssetId     uint16
	AccountName [32]byte
	Amount      *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

ZecreyDepositOrLock represents a DepositOrLock event raised by the Zecrey zecrey.

type ZecreyDepositOrLockIterator

type ZecreyDepositOrLockIterator struct {
	Event *ZecreyDepositOrLock // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

ZecreyDepositOrLockIterator is returned from FilterDepositOrLock and is used to iterate over the raw logs and unpacked data for DepositOrLock events raised by the Zecrey zecrey.

func (*ZecreyDepositOrLockIterator) Close

func (it *ZecreyDepositOrLockIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ZecreyDepositOrLockIterator) Error

func (it *ZecreyDepositOrLockIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ZecreyDepositOrLockIterator) Next

func (it *ZecreyDepositOrLockIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ZecreyExecuteBlockInfo

type ZecreyExecuteBlockInfo struct {
	BlockHeader              StorageBlockHeader
	PendingOnchainOpsPubdata [][]byte
}

ZecreyExecuteBlockInfo is an auto generated low-level Go binding around an user-defined struct.

type ZecreyExodusMode

type ZecreyExodusMode struct {
	Raw types.Log // Blockchain specific contextual infos
}

ZecreyExodusMode represents a ExodusMode event raised by the Zecrey zecrey.

type ZecreyExodusModeIterator

type ZecreyExodusModeIterator struct {
	Event *ZecreyExodusMode // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

ZecreyExodusModeIterator is returned from FilterExodusMode and is used to iterate over the raw logs and unpacked data for ExodusMode events raised by the Zecrey zecrey.

func (*ZecreyExodusModeIterator) Close

func (it *ZecreyExodusModeIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ZecreyExodusModeIterator) Error

func (it *ZecreyExodusModeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ZecreyExodusModeIterator) Next

func (it *ZecreyExodusModeIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ZecreyFilterer

type ZecreyFilterer struct {
	// contains filtered or unexported fields
}

ZecreyFilterer is an auto generated log filtering Go binding around an Ethereum zecrey events.

func NewZecreyFilterer

func NewZecreyFilterer(address common.Address, filterer bind.ContractFilterer) (*ZecreyFilterer, error)

NewZecreyFilterer creates a new log filterer instance of Zecrey, bound to a specific deployed zecrey.

func (*ZecreyFilterer) FilterBlockCommit

func (_Zecrey *ZecreyFilterer) FilterBlockCommit(opts *bind.FilterOpts) (*ZecreyBlockCommitIterator, error)

FilterBlockCommit is a free log retrieval operation binding the zecrey event 0x81a92942d0f9c33b897a438384c9c3d88be397776138efa3ba1a4fc8b6268424.

Solidity: event BlockCommit(uint32 blockNumber)

func (*ZecreyFilterer) FilterBlockExecution

func (_Zecrey *ZecreyFilterer) FilterBlockExecution(opts *bind.FilterOpts) (*ZecreyBlockExecutionIterator, error)

FilterBlockExecution is a free log retrieval operation binding the zecrey event 0x24cd3f92ac0167a3c7b7597f8c75a5e4e8f6a6cbecdced1500c67029f9f6f3fb.

Solidity: event BlockExecution(uint32 blockNumber)

func (*ZecreyFilterer) FilterBlockVerification

func (_Zecrey *ZecreyFilterer) FilterBlockVerification(opts *bind.FilterOpts) (*ZecreyBlockVerificationIterator, error)

FilterBlockVerification is a free log retrieval operation binding the zecrey event 0x0cdbd8bd7813095001c5fe7917bd69d834dc01db7c1dfcf52ca135bd20384413.

Solidity: event BlockVerification(uint32 blockNumber)

func (*ZecreyFilterer) FilterBlocksRevert

func (_Zecrey *ZecreyFilterer) FilterBlocksRevert(opts *bind.FilterOpts) (*ZecreyBlocksRevertIterator, error)

FilterBlocksRevert is a free log retrieval operation binding the zecrey event 0x6f3a8259cce1ea2680115053d21c971aa1764295a45850f520525f2bfdf3c9d3.

Solidity: event BlocksRevert(uint32 totalBlocksVerified, uint32 totalBlocksCommitted)

func (*ZecreyFilterer) FilterDepositCommit

func (_Zecrey *ZecreyFilterer) FilterDepositCommit(opts *bind.FilterOpts, zecreyBlockNumber []uint32, accountIndex []uint32, assetId []uint16) (*ZecreyDepositCommitIterator, error)

FilterDepositCommit is a free log retrieval operation binding the zecrey event 0x9b3e77f05cee61edb7f3e0e85d71a29e89cb18cb4236a8b8cc3e4d66640d8f71.

Solidity: event DepositCommit(uint32 indexed zecreyBlockNumber, uint32 indexed accountIndex, bytes32 accountName, uint16 indexed assetId, uint128 amount)

func (*ZecreyFilterer) FilterDepositNFT

func (_Zecrey *ZecreyFilterer) FilterDepositNFT(opts *bind.FilterOpts) (*ZecreyDepositNFTIterator, error)

FilterDepositNFT is a free log retrieval operation binding the zecrey event 0x60242986ab05aa5ec46faa7bb5a458f62e9f0b91d838758a0b291084035bf6d5.

Solidity: event DepositNFT(address sender, bytes32 accountName, address tokenAddress, uint8 nftType, uint256 nftID, uint256 amount)

func (*ZecreyFilterer) FilterDepositOrLock

func (_Zecrey *ZecreyFilterer) FilterDepositOrLock(opts *bind.FilterOpts) (*ZecreyDepositOrLockIterator, error)

FilterDepositOrLock is a free log retrieval operation binding the zecrey event 0x962a29b53bf759aebe52079a237a5c47d153bbe40ebf023bde34a680e3e3337b.

Solidity: event DepositOrLock(uint8 opType, uint16 assetId, bytes32 accountName, uint128 amount)

func (*ZecreyFilterer) FilterExodusMode

func (_Zecrey *ZecreyFilterer) FilterExodusMode(opts *bind.FilterOpts) (*ZecreyExodusModeIterator, error)

FilterExodusMode is a free log retrieval operation binding the zecrey event 0xc71028c67eb0ef128ea270a59a674629e767d51c1af44ed6753fd2fad2c7b677.

Solidity: event ExodusMode()

func (*ZecreyFilterer) FilterFullExitCommit

func (_Zecrey *ZecreyFilterer) FilterFullExitCommit(opts *bind.FilterOpts, zecreyBlockId []uint32, accountId []uint32, tokenId []uint16) (*ZecreyFullExitCommitIterator, error)

FilterFullExitCommit is a free log retrieval operation binding the zecrey event 0x66fc63d751ecbefca61d4e2e7c534e4f29c61aed8ece23ed635277a7ea6f9bc4.

Solidity: event FullExitCommit(uint32 indexed zecreyBlockId, uint32 indexed accountId, address owner, uint16 indexed tokenId, uint128 amount)

func (*ZecreyFilterer) FilterNewPriorityRequest

func (_Zecrey *ZecreyFilterer) FilterNewPriorityRequest(opts *bind.FilterOpts) (*ZecreyNewPriorityRequestIterator, error)

FilterNewPriorityRequest is a free log retrieval operation binding the zecrey event 0xd0943372c08b438a88d4b39d77216901079eda9ca59d45349841c099083b6830.

Solidity: event NewPriorityRequest(address sender, uint64 serialId, uint8 txType, bytes pubData, uint256 expirationBlock)

func (*ZecreyFilterer) FilterNoticePeriodChange

func (_Zecrey *ZecreyFilterer) FilterNoticePeriodChange(opts *bind.FilterOpts) (*ZecreyNoticePeriodChangeIterator, error)

FilterNoticePeriodChange is a free log retrieval operation binding the zecrey event 0xf2b18f8abbd8a0d0c1fb8245146eedf5304887b12f6395b548ca238e054a1483.

Solidity: event NoticePeriodChange(uint256 newNoticePeriod)

func (*ZecreyFilterer) FilterWithdrawNFT

func (_Zecrey *ZecreyFilterer) FilterWithdrawNFT(opts *bind.FilterOpts) (*ZecreyWithdrawNFTIterator, error)

FilterWithdrawNFT is a free log retrieval operation binding the zecrey event 0x31feee1aa48a97f680156362def88d1878f5ebd09330f134aa1ad40959e2ad64.

Solidity: event WithdrawNFT(address sender, bytes32 accountName, address tokenAddress, address minter, uint8 nftType, uint256 nftID, uint256 amount)

func (*ZecreyFilterer) FilterWithdrawal

func (_Zecrey *ZecreyFilterer) FilterWithdrawal(opts *bind.FilterOpts) (*ZecreyWithdrawalIterator, error)

FilterWithdrawal is a free log retrieval operation binding the zecrey event 0xf4bf32c167ee6e782944cd1db8174729b46adcd3bc732e282cc4a80793933154.

Solidity: event Withdrawal(uint16 assetId, uint128 amount)

func (*ZecreyFilterer) FilterWithdrawalPending

func (_Zecrey *ZecreyFilterer) FilterWithdrawalPending(opts *bind.FilterOpts) (*ZecreyWithdrawalPendingIterator, error)

FilterWithdrawalPending is a free log retrieval operation binding the zecrey event 0xd19cf67bbb6c320849f41b650b1179fb06a3f104451c75109c3b006a385c1688.

Solidity: event WithdrawalPending(uint16 assetId, uint128 amount)

func (*ZecreyFilterer) ParseBlockCommit

func (_Zecrey *ZecreyFilterer) ParseBlockCommit(log types.Log) (*ZecreyBlockCommit, error)

ParseBlockCommit is a log parse operation binding the zecrey event 0x81a92942d0f9c33b897a438384c9c3d88be397776138efa3ba1a4fc8b6268424.

Solidity: event BlockCommit(uint32 blockNumber)

func (*ZecreyFilterer) ParseBlockExecution

func (_Zecrey *ZecreyFilterer) ParseBlockExecution(log types.Log) (*ZecreyBlockExecution, error)

ParseBlockExecution is a log parse operation binding the zecrey event 0x24cd3f92ac0167a3c7b7597f8c75a5e4e8f6a6cbecdced1500c67029f9f6f3fb.

Solidity: event BlockExecution(uint32 blockNumber)

func (*ZecreyFilterer) ParseBlockVerification

func (_Zecrey *ZecreyFilterer) ParseBlockVerification(log types.Log) (*ZecreyBlockVerification, error)

ParseBlockVerification is a log parse operation binding the zecrey event 0x0cdbd8bd7813095001c5fe7917bd69d834dc01db7c1dfcf52ca135bd20384413.

Solidity: event BlockVerification(uint32 blockNumber)

func (*ZecreyFilterer) ParseBlocksRevert

func (_Zecrey *ZecreyFilterer) ParseBlocksRevert(log types.Log) (*ZecreyBlocksRevert, error)

ParseBlocksRevert is a log parse operation binding the zecrey event 0x6f3a8259cce1ea2680115053d21c971aa1764295a45850f520525f2bfdf3c9d3.

Solidity: event BlocksRevert(uint32 totalBlocksVerified, uint32 totalBlocksCommitted)

func (*ZecreyFilterer) ParseDepositCommit

func (_Zecrey *ZecreyFilterer) ParseDepositCommit(log types.Log) (*ZecreyDepositCommit, error)

ParseDepositCommit is a log parse operation binding the zecrey event 0x9b3e77f05cee61edb7f3e0e85d71a29e89cb18cb4236a8b8cc3e4d66640d8f71.

Solidity: event DepositCommit(uint32 indexed zecreyBlockNumber, uint32 indexed accountIndex, bytes32 accountName, uint16 indexed assetId, uint128 amount)

func (*ZecreyFilterer) ParseDepositNFT

func (_Zecrey *ZecreyFilterer) ParseDepositNFT(log types.Log) (*ZecreyDepositNFT, error)

ParseDepositNFT is a log parse operation binding the zecrey event 0x60242986ab05aa5ec46faa7bb5a458f62e9f0b91d838758a0b291084035bf6d5.

Solidity: event DepositNFT(address sender, bytes32 accountName, address tokenAddress, uint8 nftType, uint256 nftID, uint256 amount)

func (*ZecreyFilterer) ParseDepositOrLock

func (_Zecrey *ZecreyFilterer) ParseDepositOrLock(log types.Log) (*ZecreyDepositOrLock, error)

ParseDepositOrLock is a log parse operation binding the zecrey event 0x962a29b53bf759aebe52079a237a5c47d153bbe40ebf023bde34a680e3e3337b.

Solidity: event DepositOrLock(uint8 opType, uint16 assetId, bytes32 accountName, uint128 amount)

func (*ZecreyFilterer) ParseExodusMode

func (_Zecrey *ZecreyFilterer) ParseExodusMode(log types.Log) (*ZecreyExodusMode, error)

ParseExodusMode is a log parse operation binding the zecrey event 0xc71028c67eb0ef128ea270a59a674629e767d51c1af44ed6753fd2fad2c7b677.

Solidity: event ExodusMode()

func (*ZecreyFilterer) ParseFullExitCommit

func (_Zecrey *ZecreyFilterer) ParseFullExitCommit(log types.Log) (*ZecreyFullExitCommit, error)

ParseFullExitCommit is a log parse operation binding the zecrey event 0x66fc63d751ecbefca61d4e2e7c534e4f29c61aed8ece23ed635277a7ea6f9bc4.

Solidity: event FullExitCommit(uint32 indexed zecreyBlockId, uint32 indexed accountId, address owner, uint16 indexed tokenId, uint128 amount)

func (*ZecreyFilterer) ParseNewPriorityRequest

func (_Zecrey *ZecreyFilterer) ParseNewPriorityRequest(log types.Log) (*ZecreyNewPriorityRequest, error)

ParseNewPriorityRequest is a log parse operation binding the zecrey event 0xd0943372c08b438a88d4b39d77216901079eda9ca59d45349841c099083b6830.

Solidity: event NewPriorityRequest(address sender, uint64 serialId, uint8 txType, bytes pubData, uint256 expirationBlock)

func (*ZecreyFilterer) ParseNoticePeriodChange

func (_Zecrey *ZecreyFilterer) ParseNoticePeriodChange(log types.Log) (*ZecreyNoticePeriodChange, error)

ParseNoticePeriodChange is a log parse operation binding the zecrey event 0xf2b18f8abbd8a0d0c1fb8245146eedf5304887b12f6395b548ca238e054a1483.

Solidity: event NoticePeriodChange(uint256 newNoticePeriod)

func (*ZecreyFilterer) ParseWithdrawNFT

func (_Zecrey *ZecreyFilterer) ParseWithdrawNFT(log types.Log) (*ZecreyWithdrawNFT, error)

ParseWithdrawNFT is a log parse operation binding the zecrey event 0x31feee1aa48a97f680156362def88d1878f5ebd09330f134aa1ad40959e2ad64.

Solidity: event WithdrawNFT(address sender, bytes32 accountName, address tokenAddress, address minter, uint8 nftType, uint256 nftID, uint256 amount)

func (*ZecreyFilterer) ParseWithdrawal

func (_Zecrey *ZecreyFilterer) ParseWithdrawal(log types.Log) (*ZecreyWithdrawal, error)

ParseWithdrawal is a log parse operation binding the zecrey event 0xf4bf32c167ee6e782944cd1db8174729b46adcd3bc732e282cc4a80793933154.

Solidity: event Withdrawal(uint16 assetId, uint128 amount)

func (*ZecreyFilterer) ParseWithdrawalPending

func (_Zecrey *ZecreyFilterer) ParseWithdrawalPending(log types.Log) (*ZecreyWithdrawalPending, error)

ParseWithdrawalPending is a log parse operation binding the zecrey event 0xd19cf67bbb6c320849f41b650b1179fb06a3f104451c75109c3b006a385c1688.

Solidity: event WithdrawalPending(uint16 assetId, uint128 amount)

func (*ZecreyFilterer) WatchBlockCommit

func (_Zecrey *ZecreyFilterer) WatchBlockCommit(opts *bind.WatchOpts, sink chan<- *ZecreyBlockCommit) (event.Subscription, error)

WatchBlockCommit is a free log subscription operation binding the zecrey event 0x81a92942d0f9c33b897a438384c9c3d88be397776138efa3ba1a4fc8b6268424.

Solidity: event BlockCommit(uint32 blockNumber)

func (*ZecreyFilterer) WatchBlockExecution

func (_Zecrey *ZecreyFilterer) WatchBlockExecution(opts *bind.WatchOpts, sink chan<- *ZecreyBlockExecution) (event.Subscription, error)

WatchBlockExecution is a free log subscription operation binding the zecrey event 0x24cd3f92ac0167a3c7b7597f8c75a5e4e8f6a6cbecdced1500c67029f9f6f3fb.

Solidity: event BlockExecution(uint32 blockNumber)

func (*ZecreyFilterer) WatchBlockVerification

func (_Zecrey *ZecreyFilterer) WatchBlockVerification(opts *bind.WatchOpts, sink chan<- *ZecreyBlockVerification) (event.Subscription, error)

WatchBlockVerification is a free log subscription operation binding the zecrey event 0x0cdbd8bd7813095001c5fe7917bd69d834dc01db7c1dfcf52ca135bd20384413.

Solidity: event BlockVerification(uint32 blockNumber)

func (*ZecreyFilterer) WatchBlocksRevert

func (_Zecrey *ZecreyFilterer) WatchBlocksRevert(opts *bind.WatchOpts, sink chan<- *ZecreyBlocksRevert) (event.Subscription, error)

WatchBlocksRevert is a free log subscription operation binding the zecrey event 0x6f3a8259cce1ea2680115053d21c971aa1764295a45850f520525f2bfdf3c9d3.

Solidity: event BlocksRevert(uint32 totalBlocksVerified, uint32 totalBlocksCommitted)

func (*ZecreyFilterer) WatchDepositCommit

func (_Zecrey *ZecreyFilterer) WatchDepositCommit(opts *bind.WatchOpts, sink chan<- *ZecreyDepositCommit, zecreyBlockNumber []uint32, accountIndex []uint32, assetId []uint16) (event.Subscription, error)

WatchDepositCommit is a free log subscription operation binding the zecrey event 0x9b3e77f05cee61edb7f3e0e85d71a29e89cb18cb4236a8b8cc3e4d66640d8f71.

Solidity: event DepositCommit(uint32 indexed zecreyBlockNumber, uint32 indexed accountIndex, bytes32 accountName, uint16 indexed assetId, uint128 amount)

func (*ZecreyFilterer) WatchDepositNFT

func (_Zecrey *ZecreyFilterer) WatchDepositNFT(opts *bind.WatchOpts, sink chan<- *ZecreyDepositNFT) (event.Subscription, error)

WatchDepositNFT is a free log subscription operation binding the zecrey event 0x60242986ab05aa5ec46faa7bb5a458f62e9f0b91d838758a0b291084035bf6d5.

Solidity: event DepositNFT(address sender, bytes32 accountName, address tokenAddress, uint8 nftType, uint256 nftID, uint256 amount)

func (*ZecreyFilterer) WatchDepositOrLock

func (_Zecrey *ZecreyFilterer) WatchDepositOrLock(opts *bind.WatchOpts, sink chan<- *ZecreyDepositOrLock) (event.Subscription, error)

WatchDepositOrLock is a free log subscription operation binding the zecrey event 0x962a29b53bf759aebe52079a237a5c47d153bbe40ebf023bde34a680e3e3337b.

Solidity: event DepositOrLock(uint8 opType, uint16 assetId, bytes32 accountName, uint128 amount)

func (*ZecreyFilterer) WatchExodusMode

func (_Zecrey *ZecreyFilterer) WatchExodusMode(opts *bind.WatchOpts, sink chan<- *ZecreyExodusMode) (event.Subscription, error)

WatchExodusMode is a free log subscription operation binding the zecrey event 0xc71028c67eb0ef128ea270a59a674629e767d51c1af44ed6753fd2fad2c7b677.

Solidity: event ExodusMode()

func (*ZecreyFilterer) WatchFullExitCommit

func (_Zecrey *ZecreyFilterer) WatchFullExitCommit(opts *bind.WatchOpts, sink chan<- *ZecreyFullExitCommit, zecreyBlockId []uint32, accountId []uint32, tokenId []uint16) (event.Subscription, error)

WatchFullExitCommit is a free log subscription operation binding the zecrey event 0x66fc63d751ecbefca61d4e2e7c534e4f29c61aed8ece23ed635277a7ea6f9bc4.

Solidity: event FullExitCommit(uint32 indexed zecreyBlockId, uint32 indexed accountId, address owner, uint16 indexed tokenId, uint128 amount)

func (*ZecreyFilterer) WatchNewPriorityRequest

func (_Zecrey *ZecreyFilterer) WatchNewPriorityRequest(opts *bind.WatchOpts, sink chan<- *ZecreyNewPriorityRequest) (event.Subscription, error)

WatchNewPriorityRequest is a free log subscription operation binding the zecrey event 0xd0943372c08b438a88d4b39d77216901079eda9ca59d45349841c099083b6830.

Solidity: event NewPriorityRequest(address sender, uint64 serialId, uint8 txType, bytes pubData, uint256 expirationBlock)

func (*ZecreyFilterer) WatchNoticePeriodChange

func (_Zecrey *ZecreyFilterer) WatchNoticePeriodChange(opts *bind.WatchOpts, sink chan<- *ZecreyNoticePeriodChange) (event.Subscription, error)

WatchNoticePeriodChange is a free log subscription operation binding the zecrey event 0xf2b18f8abbd8a0d0c1fb8245146eedf5304887b12f6395b548ca238e054a1483.

Solidity: event NoticePeriodChange(uint256 newNoticePeriod)

func (*ZecreyFilterer) WatchWithdrawNFT

func (_Zecrey *ZecreyFilterer) WatchWithdrawNFT(opts *bind.WatchOpts, sink chan<- *ZecreyWithdrawNFT) (event.Subscription, error)

WatchWithdrawNFT is a free log subscription operation binding the zecrey event 0x31feee1aa48a97f680156362def88d1878f5ebd09330f134aa1ad40959e2ad64.

Solidity: event WithdrawNFT(address sender, bytes32 accountName, address tokenAddress, address minter, uint8 nftType, uint256 nftID, uint256 amount)

func (*ZecreyFilterer) WatchWithdrawal

func (_Zecrey *ZecreyFilterer) WatchWithdrawal(opts *bind.WatchOpts, sink chan<- *ZecreyWithdrawal) (event.Subscription, error)

WatchWithdrawal is a free log subscription operation binding the zecrey event 0xf4bf32c167ee6e782944cd1db8174729b46adcd3bc732e282cc4a80793933154.

Solidity: event Withdrawal(uint16 assetId, uint128 amount)

func (*ZecreyFilterer) WatchWithdrawalPending

func (_Zecrey *ZecreyFilterer) WatchWithdrawalPending(opts *bind.WatchOpts, sink chan<- *ZecreyWithdrawalPending) (event.Subscription, error)

WatchWithdrawalPending is a free log subscription operation binding the zecrey event 0xd19cf67bbb6c320849f41b650b1179fb06a3f104451c75109c3b006a385c1688.

Solidity: event WithdrawalPending(uint16 assetId, uint128 amount)

type ZecreyFullExitCommit

type ZecreyFullExitCommit struct {
	ZecreyBlockId uint32
	AccountId     uint32
	Owner         common.Address
	TokenId       uint16
	Amount        *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

ZecreyFullExitCommit represents a FullExitCommit event raised by the Zecrey zecrey.

type ZecreyFullExitCommitIterator

type ZecreyFullExitCommitIterator struct {
	Event *ZecreyFullExitCommit // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

ZecreyFullExitCommitIterator is returned from FilterFullExitCommit and is used to iterate over the raw logs and unpacked data for FullExitCommit events raised by the Zecrey zecrey.

func (*ZecreyFullExitCommitIterator) Close

func (it *ZecreyFullExitCommitIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ZecreyFullExitCommitIterator) Error

func (it *ZecreyFullExitCommitIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ZecreyFullExitCommitIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ZecreyNewPriorityRequest

type ZecreyNewPriorityRequest struct {
	Sender          common.Address
	SerialId        uint64
	TxType          uint8
	PubData         []byte
	ExpirationBlock *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

ZecreyNewPriorityRequest represents a NewPriorityRequest event raised by the Zecrey zecrey.

type ZecreyNewPriorityRequestIterator

type ZecreyNewPriorityRequestIterator struct {
	Event *ZecreyNewPriorityRequest // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

ZecreyNewPriorityRequestIterator is returned from FilterNewPriorityRequest and is used to iterate over the raw logs and unpacked data for NewPriorityRequest events raised by the Zecrey zecrey.

func (*ZecreyNewPriorityRequestIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ZecreyNewPriorityRequestIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ZecreyNewPriorityRequestIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ZecreyNoticePeriodChange

type ZecreyNoticePeriodChange struct {
	NewNoticePeriod *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

ZecreyNoticePeriodChange represents a NoticePeriodChange event raised by the Zecrey zecrey.

type ZecreyNoticePeriodChangeIterator

type ZecreyNoticePeriodChangeIterator struct {
	Event *ZecreyNoticePeriodChange // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

ZecreyNoticePeriodChangeIterator is returned from FilterNoticePeriodChange and is used to iterate over the raw logs and unpacked data for NoticePeriodChange events raised by the Zecrey zecrey.

func (*ZecreyNoticePeriodChangeIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ZecreyNoticePeriodChangeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ZecreyNoticePeriodChangeIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ZecreyRaw

type ZecreyRaw struct {
	Contract *Zecrey // Generic zecrey binding to access the raw methods on
}

ZecreyRaw is an auto generated low-level Go binding around an Ethereum zecrey.

func (*ZecreyRaw) Call

func (_Zecrey *ZecreyRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) zecrey method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*ZecreyRaw) Transact

func (_Zecrey *ZecreyRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) zecrey method with params as input values.

func (*ZecreyRaw) Transfer

func (_Zecrey *ZecreyRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the zecrey, calling its default method if one is available.

type ZecreySession

type ZecreySession struct {
	Contract     *Zecrey           // Generic zecrey binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

ZecreySession is an auto generated Go binding around an Ethereum zecrey, with pre-set call and transact options.

func (*ZecreySession) AccountRoot

func (_Zecrey *ZecreySession) AccountRoot() ([32]byte, error)

AccountRoot is a free data retrieval call binding the zecrey method 0xa7ccec2f.

Solidity: function accountRoot() view returns(bytes32)

func (*ZecreySession) BlockOnchainOpsPubData

func (_Zecrey *ZecreySession) BlockOnchainOpsPubData(arg0 uint32) ([]byte, error)

BlockOnchainOpsPubData is a free data retrieval call binding the zecrey method 0xeface7e2.

Solidity: function blockOnchainOpsPubData(uint32 ) view returns(bytes)

func (*ZecreySession) CommitBlocks

func (_Zecrey *ZecreySession) CommitBlocks(_lastCommittedBlockData StorageBlockHeader, _newBlocksData []ZecreyCommitBlockInfo) (*types.Transaction, error)

CommitBlocks is a paid mutator transaction binding the zecrey method 0x5d85bc70.

Solidity: function commitBlocks((uint32,uint64,bytes32,bytes32,uint256,bytes32) _lastCommittedBlockData, (uint32,bytes32,uint256,bytes32,bytes,uint16)[] _newBlocksData) returns()

func (*ZecreySession) ComputeOnchainOpsHash

func (_Zecrey *ZecreySession) ComputeOnchainOpsHash(_onchainOpsPubData []byte) ([32]byte, error)

ComputeOnchainOpsHash is a free data retrieval call binding the zecrey method 0x8c8ebc52.

Solidity: function computeOnchainOpsHash(bytes _onchainOpsPubData) pure returns(bytes32 onchainOpsDataHash)

func (*ZecreySession) CutUpgradeNoticePeriod

func (_Zecrey *ZecreySession) CutUpgradeNoticePeriod() (*types.Transaction, error)

CutUpgradeNoticePeriod is a paid mutator transaction binding the zecrey method 0x3e71e1e7.

Solidity: function cutUpgradeNoticePeriod() returns()

func (*ZecreySession) DepositOrLockERC20

func (_Zecrey *ZecreySession) DepositOrLockERC20(_txType uint8, _token common.Address, _amount *big.Int, _accountName [32]byte) (*types.Transaction, error)

DepositOrLockERC20 is a paid mutator transaction binding the zecrey method 0x1e15f3e0.

Solidity: function depositOrLockERC20(uint8 _txType, address _token, uint104 _amount, bytes32 _accountName) returns()

func (*ZecreySession) DepositOrLockNativeAsset

func (_Zecrey *ZecreySession) DepositOrLockNativeAsset(_txType uint8, _accountName [32]byte) (*types.Transaction, error)

DepositOrLockNativeAsset is a paid mutator transaction binding the zecrey method 0x1678b35e.

Solidity: function depositOrLockNativeAsset(uint8 _txType, bytes32 _accountName) payable returns()

func (*ZecreySession) ExecuteBlocks

func (_Zecrey *ZecreySession) ExecuteBlocks(_blocks []ZecreyExecuteBlockInfo) (*types.Transaction, error)

ExecuteBlocks is a paid mutator transaction binding the zecrey method 0x9e71713c.

Solidity: function executeBlocks(((uint32,uint64,bytes32,bytes32,uint256,bytes32),bytes[])[] _blocks) returns()

func (*ZecreySession) FirstPriorityRequestId

func (_Zecrey *ZecreySession) FirstPriorityRequestId() (uint64, error)

FirstPriorityRequestId is a free data retrieval call binding the zecrey method 0x67708dae.

Solidity: function firstPriorityRequestId() view returns(uint64)

func (*ZecreySession) ForceWithdrawUnhandledBalance

func (_Zecrey *ZecreySession) ForceWithdrawUnhandledBalance(_assetId uint16) (*types.Transaction, error)

ForceWithdrawUnhandledBalance is a paid mutator transaction binding the zecrey method 0x1dd269e3.

Solidity: function forceWithdrawUnhandledBalance(uint16 _assetId) returns()

func (*ZecreySession) GetNoticePeriod

func (_Zecrey *ZecreySession) GetNoticePeriod() (*big.Int, error)

GetNoticePeriod is a free data retrieval call binding the zecrey method 0x2a3174f4.

Solidity: function getNoticePeriod() pure returns(uint256)

func (*ZecreySession) GetPendingBalance

func (_Zecrey *ZecreySession) GetPendingBalance(_address common.Address, _assetAddr common.Address) (*big.Int, error)

GetPendingBalance is a free data retrieval call binding the zecrey method 0x5aca41f6.

Solidity: function getPendingBalance(address _address, address _assetAddr) view returns(uint128)

func (*ZecreySession) Initialize

func (_Zecrey *ZecreySession) Initialize(initializationParameters []byte) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the zecrey method 0x439fab91.

Solidity: function initialize(bytes initializationParameters) returns()

func (*ZecreySession) IsReadyForUpgrade

func (_Zecrey *ZecreySession) IsReadyForUpgrade() (bool, error)

IsReadyForUpgrade is a free data retrieval call binding the zecrey method 0x8773334c.

Solidity: function isReadyForUpgrade() view returns(bool)

func (*ZecreySession) OnchainOpsCheck

func (_Zecrey *ZecreySession) OnchainOpsCheck(arg0 [20]byte) (bool, error)

OnchainOpsCheck is a free data retrieval call binding the zecrey method 0x0222740e.

Solidity: function onchainOpsCheck(bytes20 ) view returns(bool)

func (*ZecreySession) OnchainOpsExecuted

func (_Zecrey *ZecreySession) OnchainOpsExecuted(arg0 [20]byte) (bool, error)

OnchainOpsExecuted is a free data retrieval call binding the zecrey method 0x8b4f7de9.

Solidity: function onchainOpsExecuted(bytes20 ) view returns(bool)

func (*ZecreySession) RevertBlocks

func (_Zecrey *ZecreySession) RevertBlocks(_blocksToRevert []StorageBlockHeader) (*types.Transaction, error)

RevertBlocks is a paid mutator transaction binding the zecrey method 0x0e536f60.

Solidity: function revertBlocks((uint32,uint64,bytes32,bytes32,uint256,bytes32)[] _blocksToRevert) returns()

func (*ZecreySession) StoredBlockHeaderHashes

func (_Zecrey *ZecreySession) StoredBlockHeaderHashes(arg0 uint32) ([32]byte, error)

StoredBlockHeaderHashes is a free data retrieval call binding the zecrey method 0x4167d002.

Solidity: function storedBlockHeaderHashes(uint32 ) view returns(bytes32)

func (*ZecreySession) TotalBlocksCommitted

func (_Zecrey *ZecreySession) TotalBlocksCommitted() (uint32, error)

TotalBlocksCommitted is a free data retrieval call binding the zecrey method 0xfaf4d8cb.

Solidity: function totalBlocksCommitted() view returns(uint32)

func (*ZecreySession) TotalBlocksExecuted

func (_Zecrey *ZecreySession) TotalBlocksExecuted() (uint32, error)

TotalBlocksExecuted is a free data retrieval call binding the zecrey method 0xf2235487.

Solidity: function totalBlocksExecuted() view returns(uint32)

func (*ZecreySession) TotalBlocksVerified

func (_Zecrey *ZecreySession) TotalBlocksVerified() (uint32, error)

TotalBlocksVerified is a free data retrieval call binding the zecrey method 0x2d24006c.

Solidity: function totalBlocksVerified() view returns(uint32)

func (*ZecreySession) TotalOpenPriorityRequests

func (_Zecrey *ZecreySession) TotalOpenPriorityRequests() (uint64, error)

TotalOpenPriorityRequests is a free data retrieval call binding the zecrey method 0xc57b22be.

Solidity: function totalOpenPriorityRequests() view returns(uint64)

func (*ZecreySession) TransferERC20

func (_Zecrey *ZecreySession) TransferERC20(_token common.Address, _to common.Address, _amount *big.Int, _maxAmount *big.Int) (*types.Transaction, error)

TransferERC20 is a paid mutator transaction binding the zecrey method 0x8ee1a74e.

Solidity: function _transferERC20(address _token, address _to, uint128 _amount, uint128 _maxAmount) returns(uint128 withdrawnAmount)

func (*ZecreySession) UnhandledBalances

func (_Zecrey *ZecreySession) UnhandledBalances(arg0 uint16, arg1 common.Address) (struct {
	UnhandledBalance *big.Int
	BlockNumber      *big.Int
}, error)

UnhandledBalances is a free data retrieval call binding the zecrey method 0xe1d730d9.

Solidity: function unhandledBalances(uint16 , address ) view returns(uint128 unhandledBalance, uint256 blockNumber)

func (*ZecreySession) Upgrade

func (_Zecrey *ZecreySession) Upgrade(upgradeParameters []byte) (*types.Transaction, error)

Upgrade is a paid mutator transaction binding the zecrey method 0x25394645.

Solidity: function upgrade(bytes upgradeParameters) returns()

func (*ZecreySession) UpgradeCanceled

func (_Zecrey *ZecreySession) UpgradeCanceled() (*types.Transaction, error)

UpgradeCanceled is a paid mutator transaction binding the zecrey method 0x871b8ff1.

Solidity: function upgradeCanceled() returns()

func (*ZecreySession) UpgradeFinishes

func (_Zecrey *ZecreySession) UpgradeFinishes() (*types.Transaction, error)

UpgradeFinishes is a paid mutator transaction binding the zecrey method 0xb269b9ae.

Solidity: function upgradeFinishes() returns()

func (*ZecreySession) UpgradeNoticePeriodStarted

func (_Zecrey *ZecreySession) UpgradeNoticePeriodStarted() (*types.Transaction, error)

UpgradeNoticePeriodStarted is a paid mutator transaction binding the zecrey method 0x3b154b73.

Solidity: function upgradeNoticePeriodStarted() returns()

func (*ZecreySession) UpgradePreparationStarted

func (_Zecrey *ZecreySession) UpgradePreparationStarted() (*types.Transaction, error)

UpgradePreparationStarted is a paid mutator transaction binding the zecrey method 0x78b91e70.

Solidity: function upgradePreparationStarted() returns()

func (*ZecreySession) VerifyBlocks

func (_Zecrey *ZecreySession) VerifyBlocks(_blocks []StorageBlockHeader, _proofs []*big.Int) (*types.Transaction, error)

VerifyBlocks is a paid mutator transaction binding the zecrey method 0x5065ed7d.

Solidity: function verifyBlocks((uint32,uint64,bytes32,bytes32,uint256,bytes32)[] _blocks, uint256[] _proofs) returns()

func (*ZecreySession) WithdrawPendingBalance

func (_Zecrey *ZecreySession) WithdrawPendingBalance(_owner common.Address, _token common.Address, _amount *big.Int) (*types.Transaction, error)

WithdrawPendingBalance is a paid mutator transaction binding the zecrey method 0xd514da50.

Solidity: function withdrawPendingBalance(address _owner, address _token, uint128 _amount) returns()

type ZecreyTransactor

type ZecreyTransactor struct {
	// contains filtered or unexported fields
}

ZecreyTransactor is an auto generated write-only Go binding around an Ethereum zecrey.

func NewZecreyTransactor

func NewZecreyTransactor(address common.Address, transactor bind.ContractTransactor) (*ZecreyTransactor, error)

NewZecreyTransactor creates a new write-only instance of Zecrey, bound to a specific deployed zecrey.

func (*ZecreyTransactor) CommitBlocks

func (_Zecrey *ZecreyTransactor) CommitBlocks(opts *bind.TransactOpts, _lastCommittedBlockData StorageBlockHeader, _newBlocksData []ZecreyCommitBlockInfo) (*types.Transaction, error)

CommitBlocks is a paid mutator transaction binding the zecrey method 0x5d85bc70.

Solidity: function commitBlocks((uint32,uint64,bytes32,bytes32,uint256,bytes32) _lastCommittedBlockData, (uint32,bytes32,uint256,bytes32,bytes,uint16)[] _newBlocksData) returns()

func (*ZecreyTransactor) CutUpgradeNoticePeriod

func (_Zecrey *ZecreyTransactor) CutUpgradeNoticePeriod(opts *bind.TransactOpts) (*types.Transaction, error)

CutUpgradeNoticePeriod is a paid mutator transaction binding the zecrey method 0x3e71e1e7.

Solidity: function cutUpgradeNoticePeriod() returns()

func (*ZecreyTransactor) DepositOrLockERC20

func (_Zecrey *ZecreyTransactor) DepositOrLockERC20(opts *bind.TransactOpts, _txType uint8, _token common.Address, _amount *big.Int, _accountName [32]byte) (*types.Transaction, error)

DepositOrLockERC20 is a paid mutator transaction binding the zecrey method 0x1e15f3e0.

Solidity: function depositOrLockERC20(uint8 _txType, address _token, uint104 _amount, bytes32 _accountName) returns()

func (*ZecreyTransactor) DepositOrLockNativeAsset

func (_Zecrey *ZecreyTransactor) DepositOrLockNativeAsset(opts *bind.TransactOpts, _txType uint8, _accountName [32]byte) (*types.Transaction, error)

DepositOrLockNativeAsset is a paid mutator transaction binding the zecrey method 0x1678b35e.

Solidity: function depositOrLockNativeAsset(uint8 _txType, bytes32 _accountName) payable returns()

func (*ZecreyTransactor) ExecuteBlocks

func (_Zecrey *ZecreyTransactor) ExecuteBlocks(opts *bind.TransactOpts, _blocks []ZecreyExecuteBlockInfo) (*types.Transaction, error)

ExecuteBlocks is a paid mutator transaction binding the zecrey method 0x9e71713c.

Solidity: function executeBlocks(((uint32,uint64,bytes32,bytes32,uint256,bytes32),bytes[])[] _blocks) returns()

func (*ZecreyTransactor) ForceWithdrawUnhandledBalance

func (_Zecrey *ZecreyTransactor) ForceWithdrawUnhandledBalance(opts *bind.TransactOpts, _assetId uint16) (*types.Transaction, error)

ForceWithdrawUnhandledBalance is a paid mutator transaction binding the zecrey method 0x1dd269e3.

Solidity: function forceWithdrawUnhandledBalance(uint16 _assetId) returns()

func (*ZecreyTransactor) Initialize

func (_Zecrey *ZecreyTransactor) Initialize(opts *bind.TransactOpts, initializationParameters []byte) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the zecrey method 0x439fab91.

Solidity: function initialize(bytes initializationParameters) returns()

func (*ZecreyTransactor) RevertBlocks

func (_Zecrey *ZecreyTransactor) RevertBlocks(opts *bind.TransactOpts, _blocksToRevert []StorageBlockHeader) (*types.Transaction, error)

RevertBlocks is a paid mutator transaction binding the zecrey method 0x0e536f60.

Solidity: function revertBlocks((uint32,uint64,bytes32,bytes32,uint256,bytes32)[] _blocksToRevert) returns()

func (*ZecreyTransactor) TransferERC20

func (_Zecrey *ZecreyTransactor) TransferERC20(opts *bind.TransactOpts, _token common.Address, _to common.Address, _amount *big.Int, _maxAmount *big.Int) (*types.Transaction, error)

TransferERC20 is a paid mutator transaction binding the zecrey method 0x8ee1a74e.

Solidity: function _transferERC20(address _token, address _to, uint128 _amount, uint128 _maxAmount) returns(uint128 withdrawnAmount)

func (*ZecreyTransactor) Upgrade

func (_Zecrey *ZecreyTransactor) Upgrade(opts *bind.TransactOpts, upgradeParameters []byte) (*types.Transaction, error)

Upgrade is a paid mutator transaction binding the zecrey method 0x25394645.

Solidity: function upgrade(bytes upgradeParameters) returns()

func (*ZecreyTransactor) UpgradeCanceled

func (_Zecrey *ZecreyTransactor) UpgradeCanceled(opts *bind.TransactOpts) (*types.Transaction, error)

UpgradeCanceled is a paid mutator transaction binding the zecrey method 0x871b8ff1.

Solidity: function upgradeCanceled() returns()

func (*ZecreyTransactor) UpgradeFinishes

func (_Zecrey *ZecreyTransactor) UpgradeFinishes(opts *bind.TransactOpts) (*types.Transaction, error)

UpgradeFinishes is a paid mutator transaction binding the zecrey method 0xb269b9ae.

Solidity: function upgradeFinishes() returns()

func (*ZecreyTransactor) UpgradeNoticePeriodStarted

func (_Zecrey *ZecreyTransactor) UpgradeNoticePeriodStarted(opts *bind.TransactOpts) (*types.Transaction, error)

UpgradeNoticePeriodStarted is a paid mutator transaction binding the zecrey method 0x3b154b73.

Solidity: function upgradeNoticePeriodStarted() returns()

func (*ZecreyTransactor) UpgradePreparationStarted

func (_Zecrey *ZecreyTransactor) UpgradePreparationStarted(opts *bind.TransactOpts) (*types.Transaction, error)

UpgradePreparationStarted is a paid mutator transaction binding the zecrey method 0x78b91e70.

Solidity: function upgradePreparationStarted() returns()

func (*ZecreyTransactor) VerifyBlocks

func (_Zecrey *ZecreyTransactor) VerifyBlocks(opts *bind.TransactOpts, _blocks []StorageBlockHeader, _proofs []*big.Int) (*types.Transaction, error)

VerifyBlocks is a paid mutator transaction binding the zecrey method 0x5065ed7d.

Solidity: function verifyBlocks((uint32,uint64,bytes32,bytes32,uint256,bytes32)[] _blocks, uint256[] _proofs) returns()

func (*ZecreyTransactor) WithdrawPendingBalance

func (_Zecrey *ZecreyTransactor) WithdrawPendingBalance(opts *bind.TransactOpts, _owner common.Address, _token common.Address, _amount *big.Int) (*types.Transaction, error)

WithdrawPendingBalance is a paid mutator transaction binding the zecrey method 0xd514da50.

Solidity: function withdrawPendingBalance(address _owner, address _token, uint128 _amount) returns()

type ZecreyTransactorRaw

type ZecreyTransactorRaw struct {
	Contract *ZecreyTransactor // Generic write-only zecrey binding to access the raw methods on
}

ZecreyTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum zecrey.

func (*ZecreyTransactorRaw) Transact

func (_Zecrey *ZecreyTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) zecrey method with params as input values.

func (*ZecreyTransactorRaw) Transfer

func (_Zecrey *ZecreyTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the zecrey, calling its default method if one is available.

type ZecreyTransactorSession

type ZecreyTransactorSession struct {
	Contract     *ZecreyTransactor // Generic zecrey transactor binding to set the session for
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

ZecreyTransactorSession is an auto generated write-only Go binding around an Ethereum zecrey, with pre-set transact options.

func (*ZecreyTransactorSession) CommitBlocks

func (_Zecrey *ZecreyTransactorSession) CommitBlocks(_lastCommittedBlockData StorageBlockHeader, _newBlocksData []ZecreyCommitBlockInfo) (*types.Transaction, error)

CommitBlocks is a paid mutator transaction binding the zecrey method 0x5d85bc70.

Solidity: function commitBlocks((uint32,uint64,bytes32,bytes32,uint256,bytes32) _lastCommittedBlockData, (uint32,bytes32,uint256,bytes32,bytes,uint16)[] _newBlocksData) returns()

func (*ZecreyTransactorSession) CutUpgradeNoticePeriod

func (_Zecrey *ZecreyTransactorSession) CutUpgradeNoticePeriod() (*types.Transaction, error)

CutUpgradeNoticePeriod is a paid mutator transaction binding the zecrey method 0x3e71e1e7.

Solidity: function cutUpgradeNoticePeriod() returns()

func (*ZecreyTransactorSession) DepositOrLockERC20

func (_Zecrey *ZecreyTransactorSession) DepositOrLockERC20(_txType uint8, _token common.Address, _amount *big.Int, _accountName [32]byte) (*types.Transaction, error)

DepositOrLockERC20 is a paid mutator transaction binding the zecrey method 0x1e15f3e0.

Solidity: function depositOrLockERC20(uint8 _txType, address _token, uint104 _amount, bytes32 _accountName) returns()

func (*ZecreyTransactorSession) DepositOrLockNativeAsset

func (_Zecrey *ZecreyTransactorSession) DepositOrLockNativeAsset(_txType uint8, _accountName [32]byte) (*types.Transaction, error)

DepositOrLockNativeAsset is a paid mutator transaction binding the zecrey method 0x1678b35e.

Solidity: function depositOrLockNativeAsset(uint8 _txType, bytes32 _accountName) payable returns()

func (*ZecreyTransactorSession) ExecuteBlocks

func (_Zecrey *ZecreyTransactorSession) ExecuteBlocks(_blocks []ZecreyExecuteBlockInfo) (*types.Transaction, error)

ExecuteBlocks is a paid mutator transaction binding the zecrey method 0x9e71713c.

Solidity: function executeBlocks(((uint32,uint64,bytes32,bytes32,uint256,bytes32),bytes[])[] _blocks) returns()

func (*ZecreyTransactorSession) ForceWithdrawUnhandledBalance

func (_Zecrey *ZecreyTransactorSession) ForceWithdrawUnhandledBalance(_assetId uint16) (*types.Transaction, error)

ForceWithdrawUnhandledBalance is a paid mutator transaction binding the zecrey method 0x1dd269e3.

Solidity: function forceWithdrawUnhandledBalance(uint16 _assetId) returns()

func (*ZecreyTransactorSession) Initialize

func (_Zecrey *ZecreyTransactorSession) Initialize(initializationParameters []byte) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the zecrey method 0x439fab91.

Solidity: function initialize(bytes initializationParameters) returns()

func (*ZecreyTransactorSession) RevertBlocks

func (_Zecrey *ZecreyTransactorSession) RevertBlocks(_blocksToRevert []StorageBlockHeader) (*types.Transaction, error)

RevertBlocks is a paid mutator transaction binding the zecrey method 0x0e536f60.

Solidity: function revertBlocks((uint32,uint64,bytes32,bytes32,uint256,bytes32)[] _blocksToRevert) returns()

func (*ZecreyTransactorSession) TransferERC20

func (_Zecrey *ZecreyTransactorSession) TransferERC20(_token common.Address, _to common.Address, _amount *big.Int, _maxAmount *big.Int) (*types.Transaction, error)

TransferERC20 is a paid mutator transaction binding the zecrey method 0x8ee1a74e.

Solidity: function _transferERC20(address _token, address _to, uint128 _amount, uint128 _maxAmount) returns(uint128 withdrawnAmount)

func (*ZecreyTransactorSession) Upgrade

func (_Zecrey *ZecreyTransactorSession) Upgrade(upgradeParameters []byte) (*types.Transaction, error)

Upgrade is a paid mutator transaction binding the zecrey method 0x25394645.

Solidity: function upgrade(bytes upgradeParameters) returns()

func (*ZecreyTransactorSession) UpgradeCanceled

func (_Zecrey *ZecreyTransactorSession) UpgradeCanceled() (*types.Transaction, error)

UpgradeCanceled is a paid mutator transaction binding the zecrey method 0x871b8ff1.

Solidity: function upgradeCanceled() returns()

func (*ZecreyTransactorSession) UpgradeFinishes

func (_Zecrey *ZecreyTransactorSession) UpgradeFinishes() (*types.Transaction, error)

UpgradeFinishes is a paid mutator transaction binding the zecrey method 0xb269b9ae.

Solidity: function upgradeFinishes() returns()

func (*ZecreyTransactorSession) UpgradeNoticePeriodStarted

func (_Zecrey *ZecreyTransactorSession) UpgradeNoticePeriodStarted() (*types.Transaction, error)

UpgradeNoticePeriodStarted is a paid mutator transaction binding the zecrey method 0x3b154b73.

Solidity: function upgradeNoticePeriodStarted() returns()

func (*ZecreyTransactorSession) UpgradePreparationStarted

func (_Zecrey *ZecreyTransactorSession) UpgradePreparationStarted() (*types.Transaction, error)

UpgradePreparationStarted is a paid mutator transaction binding the zecrey method 0x78b91e70.

Solidity: function upgradePreparationStarted() returns()

func (*ZecreyTransactorSession) VerifyBlocks

func (_Zecrey *ZecreyTransactorSession) VerifyBlocks(_blocks []StorageBlockHeader, _proofs []*big.Int) (*types.Transaction, error)

VerifyBlocks is a paid mutator transaction binding the zecrey method 0x5065ed7d.

Solidity: function verifyBlocks((uint32,uint64,bytes32,bytes32,uint256,bytes32)[] _blocks, uint256[] _proofs) returns()

func (*ZecreyTransactorSession) WithdrawPendingBalance

func (_Zecrey *ZecreyTransactorSession) WithdrawPendingBalance(_owner common.Address, _token common.Address, _amount *big.Int) (*types.Transaction, error)

WithdrawPendingBalance is a paid mutator transaction binding the zecrey method 0xd514da50.

Solidity: function withdrawPendingBalance(address _owner, address _token, uint128 _amount) returns()

type ZecreyWithdrawNFT

type ZecreyWithdrawNFT struct {
	Sender       common.Address
	AccountName  [32]byte
	TokenAddress common.Address
	Minter       common.Address
	NftType      uint8
	NftID        *big.Int
	Amount       *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

ZecreyWithdrawNFT represents a WithdrawNFT event raised by the Zecrey zecrey.

type ZecreyWithdrawNFTIterator

type ZecreyWithdrawNFTIterator struct {
	Event *ZecreyWithdrawNFT // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

ZecreyWithdrawNFTIterator is returned from FilterWithdrawNFT and is used to iterate over the raw logs and unpacked data for WithdrawNFT events raised by the Zecrey zecrey.

func (*ZecreyWithdrawNFTIterator) Close

func (it *ZecreyWithdrawNFTIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ZecreyWithdrawNFTIterator) Error

func (it *ZecreyWithdrawNFTIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ZecreyWithdrawNFTIterator) Next

func (it *ZecreyWithdrawNFTIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ZecreyWithdrawal

type ZecreyWithdrawal struct {
	AssetId uint16
	Amount  *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

ZecreyWithdrawal represents a Withdrawal event raised by the Zecrey zecrey.

type ZecreyWithdrawalIterator

type ZecreyWithdrawalIterator struct {
	Event *ZecreyWithdrawal // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

ZecreyWithdrawalIterator is returned from FilterWithdrawal and is used to iterate over the raw logs and unpacked data for Withdrawal events raised by the Zecrey zecrey.

func (*ZecreyWithdrawalIterator) Close

func (it *ZecreyWithdrawalIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ZecreyWithdrawalIterator) Error

func (it *ZecreyWithdrawalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ZecreyWithdrawalIterator) Next

func (it *ZecreyWithdrawalIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ZecreyWithdrawalPending

type ZecreyWithdrawalPending struct {
	AssetId uint16
	Amount  *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

ZecreyWithdrawalPending represents a WithdrawalPending event raised by the Zecrey zecrey.

type ZecreyWithdrawalPendingIterator

type ZecreyWithdrawalPendingIterator struct {
	Event *ZecreyWithdrawalPending // Event containing the zecrey specifics and raw log
	// contains filtered or unexported fields
}

ZecreyWithdrawalPendingIterator is returned from FilterWithdrawalPending and is used to iterate over the raw logs and unpacked data for WithdrawalPending events raised by the Zecrey zecrey.

func (*ZecreyWithdrawalPendingIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ZecreyWithdrawalPendingIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ZecreyWithdrawalPendingIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

Jump to

Keyboard shortcuts

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