Documentation ¶
Index ¶
- Constants
- Variables
- func AsyncDeploySharding(auth *bind.TransactOpts, handler func(*types.Receipt, error), ...) (*types.Transaction, error)
- type Service
- func (service *Service) AsyncLinkShard(handler func(*types.Receipt, error), shardName string, _address string) (*types.Transaction, error)
- func (service *Service) AsyncMakeShard(handler func(*types.Receipt, error), shardName string) (*types.Transaction, error)
- func (service *Service) GetContractShard(absolutePath string) (int64, string, error)
- func (service *Service) LinkShard(shardName string, _address string) (int64, *types.Transaction, *types.Receipt, error)
- func (service *Service) MakeShard(shardName string) (int64, *types.Transaction, *types.Receipt, error)
- type Sharding
- type ShardingCaller
- type ShardingCallerRaw
- type ShardingCallerSession
- type ShardingFilterer
- type ShardingRaw
- func (_Sharding *ShardingRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Sharding *ShardingRaw) TransactWithResult(opts *bind.TransactOpts, result interface{}, method string, ...) (*types.Transaction, *types.Receipt, error)
- func (_Sharding *ShardingRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error)
- type ShardingSession
- func (_Sharding *ShardingSession) AsyncLinkShard(handler func(*types.Receipt, error), shardName string, _address string) (*types.Transaction, error)
- func (_Sharding *ShardingSession) AsyncMakeShard(handler func(*types.Receipt, error), shardName string) (*types.Transaction, error)
- func (_Sharding *ShardingSession) GetContractShard(absolutePath string) (*big.Int, string, error)
- func (_Sharding *ShardingSession) LinkShard(shardName string, _address string) (*big.Int, *types.Transaction, *types.Receipt, error)
- func (_Sharding *ShardingSession) MakeShard(shardName string) (*big.Int, *types.Transaction, *types.Receipt, error)
- type ShardingTransactor
- func (_Sharding *ShardingTransactor) AsyncLinkShard(handler func(*types.Receipt, error), opts *bind.TransactOpts, shardName string, ...) (*types.Transaction, error)
- func (_Sharding *ShardingTransactor) AsyncMakeShard(handler func(*types.Receipt, error), opts *bind.TransactOpts, shardName string) (*types.Transaction, error)
- func (_Sharding *ShardingTransactor) LinkShard(opts *bind.TransactOpts, shardName string, _address string) (*big.Int, *types.Transaction, *types.Receipt, error)
- func (_Sharding *ShardingTransactor) MakeShard(opts *bind.TransactOpts, shardName string) (*big.Int, *types.Transaction, *types.Receipt, error)
- type ShardingTransactorRaw
- type ShardingTransactorSession
- func (_Sharding *ShardingTransactorSession) AsyncLinkShard(handler func(*types.Receipt, error), shardName string, _address string) (*types.Transaction, error)
- func (_Sharding *ShardingTransactorSession) AsyncMakeShard(handler func(*types.Receipt, error), shardName string) (*types.Transaction, error)
- func (_Sharding *ShardingTransactorSession) LinkShard(shardName string, _address string) (*big.Int, *types.Transaction, *types.Receipt, error)
- func (_Sharding *ShardingTransactorSession) MakeShard(shardName string) (*big.Int, *types.Transaction, *types.Receipt, error)
Constants ¶
const ShardingABI = "" /* 879-byte string literal not displayed */
ShardingABI is the input ABI used to generate the binding from.
Variables ¶
var ShardingBin = "" /* 2202-byte string literal not displayed */
ShardingBin is the compiled bytecode used for deploying new contracts.
Functions ¶
func AsyncDeploySharding ¶
func AsyncDeploySharding(auth *bind.TransactOpts, handler func(*types.Receipt, error), backend bind.ContractBackend) (*types.Transaction, error)
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewShardingService ¶
NewCnsService returns ptr of Service
func (*Service) AsyncLinkShard ¶
func (*Service) AsyncMakeShard ¶
func (*Service) GetContractShard ¶
type Sharding ¶
type Sharding struct { ShardingCaller // Read-only binding to the contract ShardingTransactor // Write-only binding to the contract ShardingFilterer // Log filterer for contract events }
Sharding is an auto generated Go binding around a Solidity contract.
func DeploySharding ¶
func DeploySharding(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Receipt, *Sharding, error)
DeploySharding deploys a new contract, binding an instance of Sharding to it.
func NewSharding ¶
NewSharding creates a new instance of Sharding, bound to a specific deployed contract.
type ShardingCaller ¶
type ShardingCaller struct {
// contains filtered or unexported fields
}
ShardingCaller is an auto generated read-only Go binding around a Solidity contract.
func NewShardingCaller ¶
func NewShardingCaller(address common.Address, caller bind.ContractCaller) (*ShardingCaller, error)
NewShardingCaller creates a new read-only instance of Sharding, bound to a specific deployed contract.
func (*ShardingCaller) GetContractShard ¶
func (_Sharding *ShardingCaller) GetContractShard(opts *bind.CallOpts, absolutePath string) (*big.Int, string, error)
GetContractShard is a free data retrieval call binding the contract method 0x9c1284bc.
Solidity: function getContractShard(string absolutePath) constant returns(int256, string)
type ShardingCallerRaw ¶
type ShardingCallerRaw struct {
Contract *ShardingCaller // Generic read-only contract binding to access the raw methods on
}
ShardingCallerRaw is an auto generated low-level read-only Go binding around a Solidity contract.
func (*ShardingCallerRaw) Call ¶
func (_Sharding *ShardingCallerRaw) 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 ShardingCallerSession ¶
type ShardingCallerSession struct { Contract *ShardingCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ShardingCallerSession is an auto generated read-only Go binding around a Solidity contract, with pre-set call options.
func (*ShardingCallerSession) GetContractShard ¶
func (_Sharding *ShardingCallerSession) GetContractShard(absolutePath string) (*big.Int, string, error)
GetContractShard is a free data retrieval call binding the contract method 0x9c1284bc.
Solidity: function getContractShard(string absolutePath) constant returns(int256, string)
type ShardingFilterer ¶
type ShardingFilterer struct {
// contains filtered or unexported fields
}
ShardingFilterer is an auto generated log filtering Go binding around a Solidity contract events.
func NewShardingFilterer ¶
func NewShardingFilterer(address common.Address, filterer bind.ContractFilterer) (*ShardingFilterer, error)
NewShardingFilterer creates a new log filterer instance of Sharding, bound to a specific deployed contract.
type ShardingRaw ¶
type ShardingRaw struct {
Contract *Sharding // Generic contract binding to access the raw methods on
}
ShardingRaw is an auto generated low-level Go binding around a Solidity contract.
func (*ShardingRaw) Call ¶
func (_Sharding *ShardingRaw) 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 (*ShardingRaw) TransactWithResult ¶
func (_Sharding *ShardingRaw) TransactWithResult(opts *bind.TransactOpts, result interface{}, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error)
Transact invokes the (paid) contract method with params as input values.
func (*ShardingRaw) Transfer ¶
func (_Sharding *ShardingRaw) 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 ShardingSession ¶
type ShardingSession struct { Contract *Sharding // 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 }
ShardingSession is an auto generated Go binding around a Solidity contract, with pre-set call and transact options.
func (*ShardingSession) AsyncLinkShard ¶
func (_Sharding *ShardingSession) AsyncLinkShard(handler func(*types.Receipt, error), shardName string, _address string) (*types.Transaction, error)
func (*ShardingSession) AsyncMakeShard ¶
func (_Sharding *ShardingSession) AsyncMakeShard(handler func(*types.Receipt, error), shardName string) (*types.Transaction, error)
func (*ShardingSession) GetContractShard ¶
GetContractShard is a free data retrieval call binding the contract method 0x9c1284bc.
Solidity: function getContractShard(string absolutePath) constant returns(int256, string)
func (*ShardingSession) LinkShard ¶
func (_Sharding *ShardingSession) LinkShard(shardName string, _address string) (*big.Int, *types.Transaction, *types.Receipt, error)
LinkShard is a paid mutator transaction binding the contract method 0xb7ede6cb.
Solidity: function linkShard(string shardName, string _address) returns(int256)
type ShardingTransactor ¶
type ShardingTransactor struct {
// contains filtered or unexported fields
}
ShardingTransactor is an auto generated write-only Go binding around a Solidity contract.
func NewShardingTransactor ¶
func NewShardingTransactor(address common.Address, transactor bind.ContractTransactor) (*ShardingTransactor, error)
NewShardingTransactor creates a new write-only instance of Sharding, bound to a specific deployed contract.
func (*ShardingTransactor) AsyncLinkShard ¶
func (_Sharding *ShardingTransactor) AsyncLinkShard(handler func(*types.Receipt, error), opts *bind.TransactOpts, shardName string, _address string) (*types.Transaction, error)
func (*ShardingTransactor) AsyncMakeShard ¶
func (_Sharding *ShardingTransactor) AsyncMakeShard(handler func(*types.Receipt, error), opts *bind.TransactOpts, shardName string) (*types.Transaction, error)
func (*ShardingTransactor) LinkShard ¶
func (_Sharding *ShardingTransactor) LinkShard(opts *bind.TransactOpts, shardName string, _address string) (*big.Int, *types.Transaction, *types.Receipt, error)
LinkShard is a paid mutator transaction binding the contract method 0xb7ede6cb.
Solidity: function linkShard(string shardName, string _address) returns(int256)
func (*ShardingTransactor) MakeShard ¶
func (_Sharding *ShardingTransactor) MakeShard(opts *bind.TransactOpts, shardName string) (*big.Int, *types.Transaction, *types.Receipt, error)
MakeShard is a paid mutator transaction binding the contract method 0x1d82d998.
Solidity: function makeShard(string shardName) returns(int256)
type ShardingTransactorRaw ¶
type ShardingTransactorRaw struct {
Contract *ShardingTransactor // Generic write-only contract binding to access the raw methods on
}
ShardingTransactorRaw is an auto generated low-level write-only Go binding around a Solidity contract.
func (*ShardingTransactorRaw) TransactWithResult ¶
func (_Sharding *ShardingTransactorRaw) TransactWithResult(opts *bind.TransactOpts, result interface{}, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error)
Transact invokes the (paid) contract method with params as input values.
func (*ShardingTransactorRaw) Transfer ¶
func (_Sharding *ShardingTransactorRaw) 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 ShardingTransactorSession ¶
type ShardingTransactorSession struct { Contract *ShardingTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ShardingTransactorSession is an auto generated write-only Go binding around a Solidity contract, with pre-set transact options.
func (*ShardingTransactorSession) AsyncLinkShard ¶
func (_Sharding *ShardingTransactorSession) AsyncLinkShard(handler func(*types.Receipt, error), shardName string, _address string) (*types.Transaction, error)
func (*ShardingTransactorSession) AsyncMakeShard ¶
func (_Sharding *ShardingTransactorSession) AsyncMakeShard(handler func(*types.Receipt, error), shardName string) (*types.Transaction, error)
func (*ShardingTransactorSession) LinkShard ¶
func (_Sharding *ShardingTransactorSession) LinkShard(shardName string, _address string) (*big.Int, *types.Transaction, *types.Receipt, error)
LinkShard is a paid mutator transaction binding the contract method 0xb7ede6cb.
Solidity: function linkShard(string shardName, string _address) returns(int256)
func (*ShardingTransactorSession) MakeShard ¶
func (_Sharding *ShardingTransactorSession) MakeShard(shardName string) (*big.Int, *types.Transaction, *types.Receipt, error)
MakeShard is a paid mutator transaction binding the contract method 0x1d82d998.
Solidity: function makeShard(string shardName) returns(int256)