contractlifecycle

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ContractLifeCycleABI = "" /* 1231-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type ContractLifeCycle

type ContractLifeCycle struct {
	ContractLifeCycleCaller     // Read-only binding to the contract
	ContractLifeCycleTransactor // Write-only binding to the contract
	ContractLifeCycleFilterer   // Log filterer for contract events
}

ContractLifeCycle is an auto generated Go binding around a Solidity contract.

func NewContractLifeCycle

func NewContractLifeCycle(address common.Address, backend bind.ContractBackend) (*ContractLifeCycle, error)

NewContractLifeCycle creates a new instance of ContractLifeCycle, bound to a specific deployed contract.

type ContractLifeCycleCaller

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

ContractLifeCycleCaller is an auto generated read-only Go binding around a Solidity contract.

func NewContractLifeCycleCaller

func NewContractLifeCycleCaller(address common.Address, caller bind.ContractCaller) (*ContractLifeCycleCaller, error)

NewContractLifeCycleCaller creates a new read-only instance of ContractLifeCycle, bound to a specific deployed contract.

func (*ContractLifeCycleCaller) GetStatus

func (_ContractLifeCycle *ContractLifeCycleCaller) GetStatus(opts *bind.CallOpts, addr common.Address) (*big.Int, string, error)

GetStatus is a free data retrieval call binding the contract method 0x30ccebb5.

Solidity: function getStatus(address addr) constant returns(int256, string)

func (*ContractLifeCycleCaller) ListManager

func (_ContractLifeCycle *ContractLifeCycleCaller) ListManager(opts *bind.CallOpts, addr common.Address) (*big.Int, []common.Address, error)

ListManager is a free data retrieval call binding the contract method 0xc5252d0e.

Solidity: function listManager(address addr) constant returns(int256, address[])

type ContractLifeCycleCallerRaw

type ContractLifeCycleCallerRaw struct {
	Contract *ContractLifeCycleCaller // Generic read-only contract binding to access the raw methods on
}

ContractLifeCycleCallerRaw is an auto generated low-level read-only Go binding around a Solidity contract.

func (*ContractLifeCycleCallerRaw) Call

func (_ContractLifeCycle *ContractLifeCycleCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract 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 ContractLifeCycleCallerSession

type ContractLifeCycleCallerSession struct {
	Contract *ContractLifeCycleCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts            // Call options to use throughout this session
}

ContractLifeCycleCallerSession is an auto generated read-only Go binding around a Solidity contract, with pre-set call options.

func (*ContractLifeCycleCallerSession) GetStatus

func (_ContractLifeCycle *ContractLifeCycleCallerSession) GetStatus(addr common.Address) (*big.Int, string, error)

GetStatus is a free data retrieval call binding the contract method 0x30ccebb5.

Solidity: function getStatus(address addr) constant returns(int256, string)

func (*ContractLifeCycleCallerSession) ListManager

func (_ContractLifeCycle *ContractLifeCycleCallerSession) ListManager(addr common.Address) (*big.Int, []common.Address, error)

ListManager is a free data retrieval call binding the contract method 0xc5252d0e.

Solidity: function listManager(address addr) constant returns(int256, address[])

type ContractLifeCycleFilterer

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

ContractLifeCycleFilterer is an auto generated log filtering Go binding around a Solidity contract events.

func NewContractLifeCycleFilterer

func NewContractLifeCycleFilterer(address common.Address, filterer bind.ContractFilterer) (*ContractLifeCycleFilterer, error)

NewContractLifeCycleFilterer creates a new log filterer instance of ContractLifeCycle, bound to a specific deployed contract.

type ContractLifeCycleRaw

type ContractLifeCycleRaw struct {
	Contract *ContractLifeCycle // Generic contract binding to access the raw methods on
}

ContractLifeCycleRaw is an auto generated low-level Go binding around a Solidity contract.

func (*ContractLifeCycleRaw) Call

func (_ContractLifeCycle *ContractLifeCycleRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract 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 (*ContractLifeCycleRaw) Transact

func (_ContractLifeCycle *ContractLifeCycleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error)

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

func (*ContractLifeCycleRaw) Transfer

func (_ContractLifeCycle *ContractLifeCycleRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error)

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

type ContractLifeCycleSession

type ContractLifeCycleSession struct {
	Contract     *ContractLifeCycle // Generic contract 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
}

ContractLifeCycleSession is an auto generated Go binding around a Solidity contract, with pre-set call and transact options.

func (*ContractLifeCycleSession) Freeze

func (_ContractLifeCycle *ContractLifeCycleSession) Freeze(addr common.Address) (*types.Transaction, *types.Receipt, error)

Freeze is a paid mutator transaction binding the contract method 0x8d1fdf2f.

Solidity: function freeze(address addr) returns(int256)

func (*ContractLifeCycleSession) GetStatus

func (_ContractLifeCycle *ContractLifeCycleSession) GetStatus(addr common.Address) (*big.Int, string, error)

GetStatus is a free data retrieval call binding the contract method 0x30ccebb5.

Solidity: function getStatus(address addr) constant returns(int256, string)

func (*ContractLifeCycleSession) GrantManager

func (_ContractLifeCycle *ContractLifeCycleSession) GrantManager(contractAddr common.Address, userAddr common.Address) (*types.Transaction, *types.Receipt, error)

GrantManager is a paid mutator transaction binding the contract method 0xa721fb43.

Solidity: function grantManager(address contractAddr, address userAddr) returns(int256)

func (*ContractLifeCycleSession) ListManager

func (_ContractLifeCycle *ContractLifeCycleSession) ListManager(addr common.Address) (*big.Int, []common.Address, error)

ListManager is a free data retrieval call binding the contract method 0xc5252d0e.

Solidity: function listManager(address addr) constant returns(int256, address[])

func (*ContractLifeCycleSession) Unfreeze

func (_ContractLifeCycle *ContractLifeCycleSession) Unfreeze(addr common.Address) (*types.Transaction, *types.Receipt, error)

Unfreeze is a paid mutator transaction binding the contract method 0x45c8b1a6.

Solidity: function unfreeze(address addr) returns(int256)

type ContractLifeCycleTransactor

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

ContractLifeCycleTransactor is an auto generated write-only Go binding around a Solidity contract.

func NewContractLifeCycleTransactor

func NewContractLifeCycleTransactor(address common.Address, transactor bind.ContractTransactor) (*ContractLifeCycleTransactor, error)

NewContractLifeCycleTransactor creates a new write-only instance of ContractLifeCycle, bound to a specific deployed contract.

func (*ContractLifeCycleTransactor) Freeze

func (_ContractLifeCycle *ContractLifeCycleTransactor) Freeze(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, *types.Receipt, error)

Freeze is a paid mutator transaction binding the contract method 0x8d1fdf2f.

Solidity: function freeze(address addr) returns(int256)

func (*ContractLifeCycleTransactor) GrantManager

func (_ContractLifeCycle *ContractLifeCycleTransactor) GrantManager(opts *bind.TransactOpts, contractAddr common.Address, userAddr common.Address) (*types.Transaction, *types.Receipt, error)

GrantManager is a paid mutator transaction binding the contract method 0xa721fb43.

Solidity: function grantManager(address contractAddr, address userAddr) returns(int256)

func (*ContractLifeCycleTransactor) Unfreeze

func (_ContractLifeCycle *ContractLifeCycleTransactor) Unfreeze(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, *types.Receipt, error)

Unfreeze is a paid mutator transaction binding the contract method 0x45c8b1a6.

Solidity: function unfreeze(address addr) returns(int256)

type ContractLifeCycleTransactorRaw

type ContractLifeCycleTransactorRaw struct {
	Contract *ContractLifeCycleTransactor // Generic write-only contract binding to access the raw methods on
}

ContractLifeCycleTransactorRaw is an auto generated low-level write-only Go binding around a Solidity contract.

func (*ContractLifeCycleTransactorRaw) Transact

func (_ContractLifeCycle *ContractLifeCycleTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error)

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

func (*ContractLifeCycleTransactorRaw) Transfer

func (_ContractLifeCycle *ContractLifeCycleTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error)

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

type ContractLifeCycleTransactorSession

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

ContractLifeCycleTransactorSession is an auto generated write-only Go binding around a Solidity contract, with pre-set transact options.

func (*ContractLifeCycleTransactorSession) Freeze

func (_ContractLifeCycle *ContractLifeCycleTransactorSession) Freeze(addr common.Address) (*types.Transaction, *types.Receipt, error)

Freeze is a paid mutator transaction binding the contract method 0x8d1fdf2f.

Solidity: function freeze(address addr) returns(int256)

func (*ContractLifeCycleTransactorSession) GrantManager

func (_ContractLifeCycle *ContractLifeCycleTransactorSession) GrantManager(contractAddr common.Address, userAddr common.Address) (*types.Transaction, *types.Receipt, error)

GrantManager is a paid mutator transaction binding the contract method 0xa721fb43.

Solidity: function grantManager(address contractAddr, address userAddr) returns(int256)

func (*ContractLifeCycleTransactorSession) Unfreeze

func (_ContractLifeCycle *ContractLifeCycleTransactorSession) Unfreeze(addr common.Address) (*types.Transaction, *types.Receipt, error)

Unfreeze is a paid mutator transaction binding the contract method 0x45c8b1a6.

Solidity: function unfreeze(address addr) returns(int256)

type Service

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

Service is a precompile contract service.

func NewService

func NewService(client *client.Client) (*Service, error)

NewService returns ptr of Service

func (*Service) Freeze

func (service *Service) Freeze(contractAddress common.Address) (int64, error)

Freeze freezes contract address

func (*Service) GetStatus

func (service *Service) GetStatus(contractAddress common.Address) (uint64, string, error)

GetStatus gets the status of contract account

func (*Service) GrantManager

func (service *Service) GrantManager(contractAddress, accountAddress common.Address) (int64, error)

GrantManager grants manager

func (*Service) ListManager

func (service *Service) ListManager(contractAddress common.Address) (uint64, []common.Address, error)

ListManager lists managers of contract

func (*Service) Unfreeze

func (service *Service) Unfreeze(contractAddress common.Address) (int64, error)

Unfreeze unfreezes contract address

Jump to

Keyboard shortcuts

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