btscore

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const BtscoreABI = "" /* 7990-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Btscore

type Btscore struct {
	BtscoreCaller     // Read-only binding to the contract
	BtscoreTransactor // Write-only binding to the contract
	BtscoreFilterer   // Log filterer for contract events
}

Btscore is an auto generated Go binding around an Ethereum contract.

func NewBtscore

func NewBtscore(address common.Address, backend bind.ContractBackend) (*Btscore, error)

NewBtscore creates a new instance of Btscore, bound to a specific deployed contract.

type BtscoreCaller

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

BtscoreCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewBtscoreCaller

func NewBtscoreCaller(address common.Address, caller bind.ContractCaller) (*BtscoreCaller, error)

NewBtscoreCaller creates a new read-only instance of Btscore, bound to a specific deployed contract.

func (*BtscoreCaller) BalanceOf

func (_Btscore *BtscoreCaller) BalanceOf(opts *bind.CallOpts, _owner common.Address, _coinName string) (struct {
	UsableBalance     *big.Int
	LockedBalance     *big.Int
	RefundableBalance *big.Int
	UserBalance       *big.Int
}, error)

BalanceOf is a free data retrieval call binding the contract method 0xb9b092c8.

Solidity: function balanceOf(address _owner, string _coinName) view returns(uint256 _usableBalance, uint256 _lockedBalance, uint256 _refundableBalance, uint256 _userBalance)

func (*BtscoreCaller) BalanceOfBatch

func (_Btscore *BtscoreCaller) BalanceOfBatch(opts *bind.CallOpts, _owner common.Address, _coinNames []string) (struct {
	UsableBalances     []*big.Int
	LockedBalances     []*big.Int
	RefundableBalances []*big.Int
	UserBalances       []*big.Int
}, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x17d55ad6.

Solidity: function balanceOfBatch(address _owner, string[] _coinNames) view returns(uint256[] _usableBalances, uint256[] _lockedBalances, uint256[] _refundableBalances, uint256[] _userBalances)

func (*BtscoreCaller) CoinId

func (_Btscore *BtscoreCaller) CoinId(opts *bind.CallOpts, _coinName string) (common.Address, error)

CoinId is a free data retrieval call binding the contract method 0x8506a74e.

Solidity: function coinId(string _coinName) view returns(address)

func (*BtscoreCaller) CoinNames

func (_Btscore *BtscoreCaller) CoinNames(opts *bind.CallOpts) ([]string, error)

CoinNames is a free data retrieval call binding the contract method 0x9bda00cd.

Solidity: function coinNames() view returns(string[] _names)

func (*BtscoreCaller) FeeRatio

func (_Btscore *BtscoreCaller) FeeRatio(opts *bind.CallOpts, _coinName string) (struct {
	FeeNumerator *big.Int
	FixedFee     *big.Int
}, error)

FeeRatio is a free data retrieval call binding the contract method 0xc40238c4.

Solidity: function feeRatio(string _coinName) view returns(uint256 _feeNumerator, uint256 _fixedFee)

func (*BtscoreCaller) GetAccumulatedFees

func (_Btscore *BtscoreCaller) GetAccumulatedFees(opts *bind.CallOpts) ([]TypesAsset, error)

GetAccumulatedFees is a free data retrieval call binding the contract method 0x5df45a37.

Solidity: function getAccumulatedFees() view returns((string,uint256)[] _accumulatedFees)

func (*BtscoreCaller) GetNativeCoinName

func (_Btscore *BtscoreCaller) GetNativeCoinName(opts *bind.CallOpts) (string, error)

GetNativeCoinName is a free data retrieval call binding the contract method 0x71433cfb.

Solidity: function getNativeCoinName() view returns(string)

func (*BtscoreCaller) GetOwners

func (_Btscore *BtscoreCaller) GetOwners(opts *bind.CallOpts) ([]common.Address, error)

GetOwners is a free data retrieval call binding the contract method 0xa0e67e2b.

Solidity: function getOwners() view returns(address[])

func (*BtscoreCaller) IsOwner

func (_Btscore *BtscoreCaller) IsOwner(opts *bind.CallOpts, _owner common.Address) (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x2f54bf6e.

Solidity: function isOwner(address _owner) view returns(bool)

func (*BtscoreCaller) IsValidCoin

func (_Btscore *BtscoreCaller) IsValidCoin(opts *bind.CallOpts, _coinName string) (bool, error)

IsValidCoin is a free data retrieval call binding the contract method 0xb30a072b.

Solidity: function isValidCoin(string _coinName) view returns(bool _valid)

type BtscoreCallerRaw

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

BtscoreCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*BtscoreCallerRaw) Call

func (_Btscore *BtscoreCallerRaw) 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 BtscoreCallerSession

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

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

func (*BtscoreCallerSession) BalanceOf

func (_Btscore *BtscoreCallerSession) BalanceOf(_owner common.Address, _coinName string) (struct {
	UsableBalance     *big.Int
	LockedBalance     *big.Int
	RefundableBalance *big.Int
	UserBalance       *big.Int
}, error)

BalanceOf is a free data retrieval call binding the contract method 0xb9b092c8.

Solidity: function balanceOf(address _owner, string _coinName) view returns(uint256 _usableBalance, uint256 _lockedBalance, uint256 _refundableBalance, uint256 _userBalance)

func (*BtscoreCallerSession) BalanceOfBatch

func (_Btscore *BtscoreCallerSession) BalanceOfBatch(_owner common.Address, _coinNames []string) (struct {
	UsableBalances     []*big.Int
	LockedBalances     []*big.Int
	RefundableBalances []*big.Int
	UserBalances       []*big.Int
}, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x17d55ad6.

Solidity: function balanceOfBatch(address _owner, string[] _coinNames) view returns(uint256[] _usableBalances, uint256[] _lockedBalances, uint256[] _refundableBalances, uint256[] _userBalances)

func (*BtscoreCallerSession) CoinId

func (_Btscore *BtscoreCallerSession) CoinId(_coinName string) (common.Address, error)

CoinId is a free data retrieval call binding the contract method 0x8506a74e.

Solidity: function coinId(string _coinName) view returns(address)

func (*BtscoreCallerSession) CoinNames

func (_Btscore *BtscoreCallerSession) CoinNames() ([]string, error)

CoinNames is a free data retrieval call binding the contract method 0x9bda00cd.

Solidity: function coinNames() view returns(string[] _names)

func (*BtscoreCallerSession) FeeRatio

func (_Btscore *BtscoreCallerSession) FeeRatio(_coinName string) (struct {
	FeeNumerator *big.Int
	FixedFee     *big.Int
}, error)

FeeRatio is a free data retrieval call binding the contract method 0xc40238c4.

Solidity: function feeRatio(string _coinName) view returns(uint256 _feeNumerator, uint256 _fixedFee)

func (*BtscoreCallerSession) GetAccumulatedFees

func (_Btscore *BtscoreCallerSession) GetAccumulatedFees() ([]TypesAsset, error)

GetAccumulatedFees is a free data retrieval call binding the contract method 0x5df45a37.

Solidity: function getAccumulatedFees() view returns((string,uint256)[] _accumulatedFees)

func (*BtscoreCallerSession) GetNativeCoinName

func (_Btscore *BtscoreCallerSession) GetNativeCoinName() (string, error)

GetNativeCoinName is a free data retrieval call binding the contract method 0x71433cfb.

Solidity: function getNativeCoinName() view returns(string)

func (*BtscoreCallerSession) GetOwners

func (_Btscore *BtscoreCallerSession) GetOwners() ([]common.Address, error)

GetOwners is a free data retrieval call binding the contract method 0xa0e67e2b.

Solidity: function getOwners() view returns(address[])

func (*BtscoreCallerSession) IsOwner

func (_Btscore *BtscoreCallerSession) IsOwner(_owner common.Address) (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x2f54bf6e.

Solidity: function isOwner(address _owner) view returns(bool)

func (*BtscoreCallerSession) IsValidCoin

func (_Btscore *BtscoreCallerSession) IsValidCoin(_coinName string) (bool, error)

IsValidCoin is a free data retrieval call binding the contract method 0xb30a072b.

Solidity: function isValidCoin(string _coinName) view returns(bool _valid)

type BtscoreFilterer

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

BtscoreFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewBtscoreFilterer

func NewBtscoreFilterer(address common.Address, filterer bind.ContractFilterer) (*BtscoreFilterer, error)

NewBtscoreFilterer creates a new log filterer instance of Btscore, bound to a specific deployed contract.

func (*BtscoreFilterer) FilterInitialized

func (_Btscore *BtscoreFilterer) FilterInitialized(opts *bind.FilterOpts) (*BtscoreInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*BtscoreFilterer) FilterRemoveOwnership

func (_Btscore *BtscoreFilterer) FilterRemoveOwnership(opts *bind.FilterOpts, remover []common.Address, formerOwner []common.Address) (*BtscoreRemoveOwnershipIterator, error)

FilterRemoveOwnership is a free log retrieval operation binding the contract event 0xda94804c6fea691edd453996746b93f789375a915c17acf1d1460944dffb9b37.

Solidity: event RemoveOwnership(address indexed remover, address indexed formerOwner)

func (*BtscoreFilterer) FilterSetOwnership

func (_Btscore *BtscoreFilterer) FilterSetOwnership(opts *bind.FilterOpts, promoter []common.Address, newOwner []common.Address) (*BtscoreSetOwnershipIterator, error)

FilterSetOwnership is a free log retrieval operation binding the contract event 0x8a566e8b76ab6f8a031711472b4fdc77432d6f59c804e4e0811a1c3bbfa74771.

Solidity: event SetOwnership(address indexed promoter, address indexed newOwner)

func (*BtscoreFilterer) ParseInitialized

func (_Btscore *BtscoreFilterer) ParseInitialized(log types.Log) (*BtscoreInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*BtscoreFilterer) ParseRemoveOwnership

func (_Btscore *BtscoreFilterer) ParseRemoveOwnership(log types.Log) (*BtscoreRemoveOwnership, error)

ParseRemoveOwnership is a log parse operation binding the contract event 0xda94804c6fea691edd453996746b93f789375a915c17acf1d1460944dffb9b37.

Solidity: event RemoveOwnership(address indexed remover, address indexed formerOwner)

func (*BtscoreFilterer) ParseSetOwnership

func (_Btscore *BtscoreFilterer) ParseSetOwnership(log types.Log) (*BtscoreSetOwnership, error)

ParseSetOwnership is a log parse operation binding the contract event 0x8a566e8b76ab6f8a031711472b4fdc77432d6f59c804e4e0811a1c3bbfa74771.

Solidity: event SetOwnership(address indexed promoter, address indexed newOwner)

func (*BtscoreFilterer) WatchInitialized

func (_Btscore *BtscoreFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *BtscoreInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*BtscoreFilterer) WatchRemoveOwnership

func (_Btscore *BtscoreFilterer) WatchRemoveOwnership(opts *bind.WatchOpts, sink chan<- *BtscoreRemoveOwnership, remover []common.Address, formerOwner []common.Address) (event.Subscription, error)

WatchRemoveOwnership is a free log subscription operation binding the contract event 0xda94804c6fea691edd453996746b93f789375a915c17acf1d1460944dffb9b37.

Solidity: event RemoveOwnership(address indexed remover, address indexed formerOwner)

func (*BtscoreFilterer) WatchSetOwnership

func (_Btscore *BtscoreFilterer) WatchSetOwnership(opts *bind.WatchOpts, sink chan<- *BtscoreSetOwnership, promoter []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchSetOwnership is a free log subscription operation binding the contract event 0x8a566e8b76ab6f8a031711472b4fdc77432d6f59c804e4e0811a1c3bbfa74771.

Solidity: event SetOwnership(address indexed promoter, address indexed newOwner)

type BtscoreInitialized

type BtscoreInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

BtscoreInitialized represents a Initialized event raised by the Btscore contract.

type BtscoreInitializedIterator

type BtscoreInitializedIterator struct {
	Event *BtscoreInitialized // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

BtscoreInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Btscore contract.

func (*BtscoreInitializedIterator) Close

func (it *BtscoreInitializedIterator) Close() error

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

func (*BtscoreInitializedIterator) Error

func (it *BtscoreInitializedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BtscoreInitializedIterator) Next

func (it *BtscoreInitializedIterator) 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 BtscoreRaw

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

BtscoreRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*BtscoreRaw) Call

func (_Btscore *BtscoreRaw) 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 (*BtscoreRaw) Transact

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

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

func (*BtscoreRaw) Transfer

func (_Btscore *BtscoreRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

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

type BtscoreRemoveOwnership

type BtscoreRemoveOwnership struct {
	Remover     common.Address
	FormerOwner common.Address
	Raw         types.Log // Blockchain specific contextual infos
}

BtscoreRemoveOwnership represents a RemoveOwnership event raised by the Btscore contract.

type BtscoreRemoveOwnershipIterator

type BtscoreRemoveOwnershipIterator struct {
	Event *BtscoreRemoveOwnership // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

BtscoreRemoveOwnershipIterator is returned from FilterRemoveOwnership and is used to iterate over the raw logs and unpacked data for RemoveOwnership events raised by the Btscore contract.

func (*BtscoreRemoveOwnershipIterator) Close

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

func (*BtscoreRemoveOwnershipIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BtscoreRemoveOwnershipIterator) 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 BtscoreSession

type BtscoreSession struct {
	Contract     *Btscore          // 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
}

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

func (*BtscoreSession) AddOwner

func (_Btscore *BtscoreSession) AddOwner(_owner common.Address) (*types.Transaction, error)

AddOwner is a paid mutator transaction binding the contract method 0x7065cb48.

Solidity: function addOwner(address _owner) returns()

func (*BtscoreSession) BalanceOf

func (_Btscore *BtscoreSession) BalanceOf(_owner common.Address, _coinName string) (struct {
	UsableBalance     *big.Int
	LockedBalance     *big.Int
	RefundableBalance *big.Int
	UserBalance       *big.Int
}, error)

BalanceOf is a free data retrieval call binding the contract method 0xb9b092c8.

Solidity: function balanceOf(address _owner, string _coinName) view returns(uint256 _usableBalance, uint256 _lockedBalance, uint256 _refundableBalance, uint256 _userBalance)

func (*BtscoreSession) BalanceOfBatch

func (_Btscore *BtscoreSession) BalanceOfBatch(_owner common.Address, _coinNames []string) (struct {
	UsableBalances     []*big.Int
	LockedBalances     []*big.Int
	RefundableBalances []*big.Int
	UserBalances       []*big.Int
}, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x17d55ad6.

Solidity: function balanceOfBatch(address _owner, string[] _coinNames) view returns(uint256[] _usableBalances, uint256[] _lockedBalances, uint256[] _refundableBalances, uint256[] _userBalances)

func (*BtscoreSession) CoinId

func (_Btscore *BtscoreSession) CoinId(_coinName string) (common.Address, error)

CoinId is a free data retrieval call binding the contract method 0x8506a74e.

Solidity: function coinId(string _coinName) view returns(address)

func (*BtscoreSession) CoinNames

func (_Btscore *BtscoreSession) CoinNames() ([]string, error)

CoinNames is a free data retrieval call binding the contract method 0x9bda00cd.

Solidity: function coinNames() view returns(string[] _names)

func (*BtscoreSession) FeeRatio

func (_Btscore *BtscoreSession) FeeRatio(_coinName string) (struct {
	FeeNumerator *big.Int
	FixedFee     *big.Int
}, error)

FeeRatio is a free data retrieval call binding the contract method 0xc40238c4.

Solidity: function feeRatio(string _coinName) view returns(uint256 _feeNumerator, uint256 _fixedFee)

func (*BtscoreSession) GetAccumulatedFees

func (_Btscore *BtscoreSession) GetAccumulatedFees() ([]TypesAsset, error)

GetAccumulatedFees is a free data retrieval call binding the contract method 0x5df45a37.

Solidity: function getAccumulatedFees() view returns((string,uint256)[] _accumulatedFees)

func (*BtscoreSession) GetNativeCoinName

func (_Btscore *BtscoreSession) GetNativeCoinName() (string, error)

GetNativeCoinName is a free data retrieval call binding the contract method 0x71433cfb.

Solidity: function getNativeCoinName() view returns(string)

func (*BtscoreSession) GetOwners

func (_Btscore *BtscoreSession) GetOwners() ([]common.Address, error)

GetOwners is a free data retrieval call binding the contract method 0xa0e67e2b.

Solidity: function getOwners() view returns(address[])

func (*BtscoreSession) HandleResponseService

func (_Btscore *BtscoreSession) HandleResponseService(_requester common.Address, _coinName string, _value *big.Int, _fee *big.Int, _rspCode *big.Int) (*types.Transaction, error)

HandleResponseService is a paid mutator transaction binding the contract method 0x69c939b6.

Solidity: function handleResponseService(address _requester, string _coinName, uint256 _value, uint256 _fee, uint256 _rspCode) returns()

func (*BtscoreSession) Initialize

func (_Btscore *BtscoreSession) Initialize(_nativeCoinName string, _feeNumerator *big.Int, _fixedFee *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x977d08c0.

Solidity: function initialize(string _nativeCoinName, uint256 _feeNumerator, uint256 _fixedFee) returns()

func (*BtscoreSession) IsOwner

func (_Btscore *BtscoreSession) IsOwner(_owner common.Address) (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x2f54bf6e.

Solidity: function isOwner(address _owner) view returns(bool)

func (*BtscoreSession) IsValidCoin

func (_Btscore *BtscoreSession) IsValidCoin(_coinName string) (bool, error)

IsValidCoin is a free data retrieval call binding the contract method 0xb30a072b.

Solidity: function isValidCoin(string _coinName) view returns(bool _valid)

func (*BtscoreSession) Mint

func (_Btscore *BtscoreSession) Mint(_to common.Address, _coinName string, _value *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0xba7aef43.

Solidity: function mint(address _to, string _coinName, uint256 _value) returns()

func (*BtscoreSession) Reclaim

func (_Btscore *BtscoreSession) Reclaim(_coinName string, _value *big.Int) (*types.Transaction, error)

Reclaim is a paid mutator transaction binding the contract method 0x4f6e30b8.

Solidity: function reclaim(string _coinName, uint256 _value) returns()

func (*BtscoreSession) Refund

func (_Btscore *BtscoreSession) Refund(_to common.Address, _coinName string, _value *big.Int) (*types.Transaction, error)

Refund is a paid mutator transaction binding the contract method 0x48c692d7.

Solidity: function refund(address _to, string _coinName, uint256 _value) returns()

func (*BtscoreSession) Register

func (_Btscore *BtscoreSession) Register(_name string, _symbol string, _decimals uint8, _feeNumerator *big.Int, _fixedFee *big.Int, _addr common.Address) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0xd1155d6a.

Solidity: function register(string _name, string _symbol, uint8 _decimals, uint256 _feeNumerator, uint256 _fixedFee, address _addr) returns()

func (*BtscoreSession) RemoveOwner

func (_Btscore *BtscoreSession) RemoveOwner(_owner common.Address) (*types.Transaction, error)

RemoveOwner is a paid mutator transaction binding the contract method 0x173825d9.

Solidity: function removeOwner(address _owner) returns()

func (*BtscoreSession) SetFeeRatio

func (_Btscore *BtscoreSession) SetFeeRatio(_name string, _feeNumerator *big.Int, _fixedFee *big.Int) (*types.Transaction, error)

SetFeeRatio is a paid mutator transaction binding the contract method 0x030de8f1.

Solidity: function setFeeRatio(string _name, uint256 _feeNumerator, uint256 _fixedFee) returns()

func (*BtscoreSession) Transfer

func (_Btscore *BtscoreSession) Transfer(_coinName string, _value *big.Int, _to string) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xd5823df0.

Solidity: function transfer(string _coinName, uint256 _value, string _to) returns()

func (*BtscoreSession) TransferBatch

func (_Btscore *BtscoreSession) TransferBatch(_coinNames []string, _values []*big.Int, _to string) (*types.Transaction, error)

TransferBatch is a paid mutator transaction binding the contract method 0x48c6c8e6.

Solidity: function transferBatch(string[] _coinNames, uint256[] _values, string _to) payable returns()

func (*BtscoreSession) TransferFees

func (_Btscore *BtscoreSession) TransferFees(_fa string) (*types.Transaction, error)

TransferFees is a paid mutator transaction binding the contract method 0x173e4045.

Solidity: function transferFees(string _fa) returns()

func (*BtscoreSession) TransferNativeCoin

func (_Btscore *BtscoreSession) TransferNativeCoin(_to string) (*types.Transaction, error)

TransferNativeCoin is a paid mutator transaction binding the contract method 0x74e518c5.

Solidity: function transferNativeCoin(string _to) payable returns()

func (*BtscoreSession) UpdateBTSPeriphery

func (_Btscore *BtscoreSession) UpdateBTSPeriphery(_btsPeriphery common.Address) (*types.Transaction, error)

UpdateBTSPeriphery is a paid mutator transaction binding the contract method 0xc9332478.

Solidity: function updateBTSPeriphery(address _btsPeriphery) returns()

type BtscoreSetOwnership

type BtscoreSetOwnership struct {
	Promoter common.Address
	NewOwner common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

BtscoreSetOwnership represents a SetOwnership event raised by the Btscore contract.

type BtscoreSetOwnershipIterator

type BtscoreSetOwnershipIterator struct {
	Event *BtscoreSetOwnership // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

BtscoreSetOwnershipIterator is returned from FilterSetOwnership and is used to iterate over the raw logs and unpacked data for SetOwnership events raised by the Btscore contract.

func (*BtscoreSetOwnershipIterator) Close

func (it *BtscoreSetOwnershipIterator) Close() error

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

func (*BtscoreSetOwnershipIterator) Error

func (it *BtscoreSetOwnershipIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BtscoreSetOwnershipIterator) Next

func (it *BtscoreSetOwnershipIterator) 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 BtscoreTransactor

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

BtscoreTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewBtscoreTransactor

func NewBtscoreTransactor(address common.Address, transactor bind.ContractTransactor) (*BtscoreTransactor, error)

NewBtscoreTransactor creates a new write-only instance of Btscore, bound to a specific deployed contract.

func (*BtscoreTransactor) AddOwner

func (_Btscore *BtscoreTransactor) AddOwner(opts *bind.TransactOpts, _owner common.Address) (*types.Transaction, error)

AddOwner is a paid mutator transaction binding the contract method 0x7065cb48.

Solidity: function addOwner(address _owner) returns()

func (*BtscoreTransactor) HandleResponseService

func (_Btscore *BtscoreTransactor) HandleResponseService(opts *bind.TransactOpts, _requester common.Address, _coinName string, _value *big.Int, _fee *big.Int, _rspCode *big.Int) (*types.Transaction, error)

HandleResponseService is a paid mutator transaction binding the contract method 0x69c939b6.

Solidity: function handleResponseService(address _requester, string _coinName, uint256 _value, uint256 _fee, uint256 _rspCode) returns()

func (*BtscoreTransactor) Initialize

func (_Btscore *BtscoreTransactor) Initialize(opts *bind.TransactOpts, _nativeCoinName string, _feeNumerator *big.Int, _fixedFee *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x977d08c0.

Solidity: function initialize(string _nativeCoinName, uint256 _feeNumerator, uint256 _fixedFee) returns()

func (*BtscoreTransactor) Mint

func (_Btscore *BtscoreTransactor) Mint(opts *bind.TransactOpts, _to common.Address, _coinName string, _value *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0xba7aef43.

Solidity: function mint(address _to, string _coinName, uint256 _value) returns()

func (*BtscoreTransactor) Reclaim

func (_Btscore *BtscoreTransactor) Reclaim(opts *bind.TransactOpts, _coinName string, _value *big.Int) (*types.Transaction, error)

Reclaim is a paid mutator transaction binding the contract method 0x4f6e30b8.

Solidity: function reclaim(string _coinName, uint256 _value) returns()

func (*BtscoreTransactor) Refund

func (_Btscore *BtscoreTransactor) Refund(opts *bind.TransactOpts, _to common.Address, _coinName string, _value *big.Int) (*types.Transaction, error)

Refund is a paid mutator transaction binding the contract method 0x48c692d7.

Solidity: function refund(address _to, string _coinName, uint256 _value) returns()

func (*BtscoreTransactor) Register

func (_Btscore *BtscoreTransactor) Register(opts *bind.TransactOpts, _name string, _symbol string, _decimals uint8, _feeNumerator *big.Int, _fixedFee *big.Int, _addr common.Address) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0xd1155d6a.

Solidity: function register(string _name, string _symbol, uint8 _decimals, uint256 _feeNumerator, uint256 _fixedFee, address _addr) returns()

func (*BtscoreTransactor) RemoveOwner

func (_Btscore *BtscoreTransactor) RemoveOwner(opts *bind.TransactOpts, _owner common.Address) (*types.Transaction, error)

RemoveOwner is a paid mutator transaction binding the contract method 0x173825d9.

Solidity: function removeOwner(address _owner) returns()

func (*BtscoreTransactor) SetFeeRatio

func (_Btscore *BtscoreTransactor) SetFeeRatio(opts *bind.TransactOpts, _name string, _feeNumerator *big.Int, _fixedFee *big.Int) (*types.Transaction, error)

SetFeeRatio is a paid mutator transaction binding the contract method 0x030de8f1.

Solidity: function setFeeRatio(string _name, uint256 _feeNumerator, uint256 _fixedFee) returns()

func (*BtscoreTransactor) Transfer

func (_Btscore *BtscoreTransactor) Transfer(opts *bind.TransactOpts, _coinName string, _value *big.Int, _to string) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xd5823df0.

Solidity: function transfer(string _coinName, uint256 _value, string _to) returns()

func (*BtscoreTransactor) TransferBatch

func (_Btscore *BtscoreTransactor) TransferBatch(opts *bind.TransactOpts, _coinNames []string, _values []*big.Int, _to string) (*types.Transaction, error)

TransferBatch is a paid mutator transaction binding the contract method 0x48c6c8e6.

Solidity: function transferBatch(string[] _coinNames, uint256[] _values, string _to) payable returns()

func (*BtscoreTransactor) TransferFees

func (_Btscore *BtscoreTransactor) TransferFees(opts *bind.TransactOpts, _fa string) (*types.Transaction, error)

TransferFees is a paid mutator transaction binding the contract method 0x173e4045.

Solidity: function transferFees(string _fa) returns()

func (*BtscoreTransactor) TransferNativeCoin

func (_Btscore *BtscoreTransactor) TransferNativeCoin(opts *bind.TransactOpts, _to string) (*types.Transaction, error)

TransferNativeCoin is a paid mutator transaction binding the contract method 0x74e518c5.

Solidity: function transferNativeCoin(string _to) payable returns()

func (*BtscoreTransactor) UpdateBTSPeriphery

func (_Btscore *BtscoreTransactor) UpdateBTSPeriphery(opts *bind.TransactOpts, _btsPeriphery common.Address) (*types.Transaction, error)

UpdateBTSPeriphery is a paid mutator transaction binding the contract method 0xc9332478.

Solidity: function updateBTSPeriphery(address _btsPeriphery) returns()

type BtscoreTransactorRaw

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

BtscoreTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*BtscoreTransactorRaw) Transact

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

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

func (*BtscoreTransactorRaw) Transfer

func (_Btscore *BtscoreTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

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

type BtscoreTransactorSession

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

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

func (*BtscoreTransactorSession) AddOwner

func (_Btscore *BtscoreTransactorSession) AddOwner(_owner common.Address) (*types.Transaction, error)

AddOwner is a paid mutator transaction binding the contract method 0x7065cb48.

Solidity: function addOwner(address _owner) returns()

func (*BtscoreTransactorSession) HandleResponseService

func (_Btscore *BtscoreTransactorSession) HandleResponseService(_requester common.Address, _coinName string, _value *big.Int, _fee *big.Int, _rspCode *big.Int) (*types.Transaction, error)

HandleResponseService is a paid mutator transaction binding the contract method 0x69c939b6.

Solidity: function handleResponseService(address _requester, string _coinName, uint256 _value, uint256 _fee, uint256 _rspCode) returns()

func (*BtscoreTransactorSession) Initialize

func (_Btscore *BtscoreTransactorSession) Initialize(_nativeCoinName string, _feeNumerator *big.Int, _fixedFee *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x977d08c0.

Solidity: function initialize(string _nativeCoinName, uint256 _feeNumerator, uint256 _fixedFee) returns()

func (*BtscoreTransactorSession) Mint

func (_Btscore *BtscoreTransactorSession) Mint(_to common.Address, _coinName string, _value *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0xba7aef43.

Solidity: function mint(address _to, string _coinName, uint256 _value) returns()

func (*BtscoreTransactorSession) Reclaim

func (_Btscore *BtscoreTransactorSession) Reclaim(_coinName string, _value *big.Int) (*types.Transaction, error)

Reclaim is a paid mutator transaction binding the contract method 0x4f6e30b8.

Solidity: function reclaim(string _coinName, uint256 _value) returns()

func (*BtscoreTransactorSession) Refund

func (_Btscore *BtscoreTransactorSession) Refund(_to common.Address, _coinName string, _value *big.Int) (*types.Transaction, error)

Refund is a paid mutator transaction binding the contract method 0x48c692d7.

Solidity: function refund(address _to, string _coinName, uint256 _value) returns()

func (*BtscoreTransactorSession) Register

func (_Btscore *BtscoreTransactorSession) Register(_name string, _symbol string, _decimals uint8, _feeNumerator *big.Int, _fixedFee *big.Int, _addr common.Address) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0xd1155d6a.

Solidity: function register(string _name, string _symbol, uint8 _decimals, uint256 _feeNumerator, uint256 _fixedFee, address _addr) returns()

func (*BtscoreTransactorSession) RemoveOwner

func (_Btscore *BtscoreTransactorSession) RemoveOwner(_owner common.Address) (*types.Transaction, error)

RemoveOwner is a paid mutator transaction binding the contract method 0x173825d9.

Solidity: function removeOwner(address _owner) returns()

func (*BtscoreTransactorSession) SetFeeRatio

func (_Btscore *BtscoreTransactorSession) SetFeeRatio(_name string, _feeNumerator *big.Int, _fixedFee *big.Int) (*types.Transaction, error)

SetFeeRatio is a paid mutator transaction binding the contract method 0x030de8f1.

Solidity: function setFeeRatio(string _name, uint256 _feeNumerator, uint256 _fixedFee) returns()

func (*BtscoreTransactorSession) Transfer

func (_Btscore *BtscoreTransactorSession) Transfer(_coinName string, _value *big.Int, _to string) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xd5823df0.

Solidity: function transfer(string _coinName, uint256 _value, string _to) returns()

func (*BtscoreTransactorSession) TransferBatch

func (_Btscore *BtscoreTransactorSession) TransferBatch(_coinNames []string, _values []*big.Int, _to string) (*types.Transaction, error)

TransferBatch is a paid mutator transaction binding the contract method 0x48c6c8e6.

Solidity: function transferBatch(string[] _coinNames, uint256[] _values, string _to) payable returns()

func (*BtscoreTransactorSession) TransferFees

func (_Btscore *BtscoreTransactorSession) TransferFees(_fa string) (*types.Transaction, error)

TransferFees is a paid mutator transaction binding the contract method 0x173e4045.

Solidity: function transferFees(string _fa) returns()

func (*BtscoreTransactorSession) TransferNativeCoin

func (_Btscore *BtscoreTransactorSession) TransferNativeCoin(_to string) (*types.Transaction, error)

TransferNativeCoin is a paid mutator transaction binding the contract method 0x74e518c5.

Solidity: function transferNativeCoin(string _to) payable returns()

func (*BtscoreTransactorSession) UpdateBTSPeriphery

func (_Btscore *BtscoreTransactorSession) UpdateBTSPeriphery(_btsPeriphery common.Address) (*types.Transaction, error)

UpdateBTSPeriphery is a paid mutator transaction binding the contract method 0xc9332478.

Solidity: function updateBTSPeriphery(address _btsPeriphery) returns()

type TypesAsset

type TypesAsset struct {
	CoinName string
	Value    *big.Int
}

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

Jump to

Keyboard shortcuts

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