bmat

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const BmatABI = "" /* 7056-byte string literal not displayed */

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

Variables

View Source
var BmatBin = "" /* 8738-byte string literal not displayed */

BmatBin is the compiled bytecode used for deploying new contracts.

Functions

This section is empty.

Types

type Bmat

type Bmat struct {
	BmatCaller     // Read-only binding to the contract
	BmatTransactor // Write-only binding to the contract
	BmatFilterer   // Log filterer for contract events
}

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

func DeployBmat

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

DeployBmat deploys a new Ethereum contract, binding an instance of Bmat to it.

func NewBmat

func NewBmat(address common.Address, backend bind.ContractBackend) (*Bmat, error)

NewBmat creates a new instance of Bmat, bound to a specific deployed contract.

type BmatCaller

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

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

func NewBmatCaller

func NewBmatCaller(address common.Address, caller bind.ContractCaller) (*BmatCaller, error)

NewBmatCaller creates a new read-only instance of Bmat, bound to a specific deployed contract.

func (*BmatCaller) BONE

func (_Bmat *BmatCaller) BONE(opts *bind.CallOpts) (*big.Int, error)

BONE is a free data retrieval call binding the contract method 0xc36596a6.

Solidity: function BONE() view returns(uint256)

func (*BmatCaller) BPOWPRECISION

func (_Bmat *BmatCaller) BPOWPRECISION(opts *bind.CallOpts) (*big.Int, error)

BPOWPRECISION is a free data retrieval call binding the contract method 0x189d00ca.

Solidity: function BPOW_PRECISION() view returns(uint256)

func (*BmatCaller) Badd

func (_Bmat *BmatCaller) Badd(opts *bind.CallOpts, a *big.Int, b *big.Int) (*big.Int, error)

Badd is a free data retrieval call binding the contract method 0x0b71b95c.

Solidity: function badd(uint256 a, uint256 b) pure returns(uint256)

func (*BmatCaller) Bdiv

func (_Bmat *BmatCaller) Bdiv(opts *bind.CallOpts, a *big.Int, b *big.Int) (*big.Int, error)

Bdiv is a free data retrieval call binding the contract method 0x7673eb11.

Solidity: function bdiv(uint256 a, uint256 b) pure returns(uint256)

func (*BmatCaller) Bfloor

func (_Bmat *BmatCaller) Bfloor(opts *bind.CallOpts, a *big.Int) (*big.Int, error)

Bfloor is a free data retrieval call binding the contract method 0x317223bc.

Solidity: function bfloor(uint256 a) pure returns(uint256)

func (*BmatCaller) Bmul

func (_Bmat *BmatCaller) Bmul(opts *bind.CallOpts, a *big.Int, b *big.Int) (*big.Int, error)

Bmul is a free data retrieval call binding the contract method 0x8c051bf3.

Solidity: function bmul(uint256 a, uint256 b) pure returns(uint256)

func (*BmatCaller) Bpow

func (_Bmat *BmatCaller) Bpow(opts *bind.CallOpts, base *big.Int, exp *big.Int) (*big.Int, error)

Bpow is a free data retrieval call binding the contract method 0x1d0a82df.

Solidity: function bpow(uint256 base, uint256 exp) pure returns(uint256)

func (*BmatCaller) BpowApprox

func (_Bmat *BmatCaller) BpowApprox(opts *bind.CallOpts, base *big.Int, exp *big.Int, precision *big.Int) (*big.Int, error)

BpowApprox is a free data retrieval call binding the contract method 0xd011f32a.

Solidity: function bpowApprox(uint256 base, uint256 exp, uint256 precision) pure returns(uint256)

func (*BmatCaller) Bpowi

func (_Bmat *BmatCaller) Bpowi(opts *bind.CallOpts, a *big.Int, n *big.Int) (*big.Int, error)

Bpowi is a free data retrieval call binding the contract method 0xcd660299.

Solidity: function bpowi(uint256 a, uint256 n) pure returns(uint256)

func (*BmatCaller) Bsub

func (_Bmat *BmatCaller) Bsub(opts *bind.CallOpts, a *big.Int, b *big.Int) (*big.Int, error)

Bsub is a free data retrieval call binding the contract method 0x3cf3c7d4.

Solidity: function bsub(uint256 a, uint256 b) pure returns(uint256)

func (*BmatCaller) BsubSign

func (_Bmat *BmatCaller) BsubSign(opts *bind.CallOpts, a *big.Int, b *big.Int) (*big.Int, bool, error)

BsubSign is a free data retrieval call binding the contract method 0x743480cc.

Solidity: function bsubSign(uint256 a, uint256 b) pure returns(uint256, bool)

func (*BmatCaller) Btoi

func (_Bmat *BmatCaller) Btoi(opts *bind.CallOpts, a *big.Int) (*big.Int, error)

Btoi is a free data retrieval call binding the contract method 0x859ae48e.

Solidity: function btoi(uint256 a) pure returns(uint256)

func (*BmatCaller) CalcSpotPrice

func (_Bmat *BmatCaller) CalcSpotPrice(opts *bind.CallOpts, tokenBalanceIn *big.Int, tokenWeightIn *big.Int, tokenBalanceOut *big.Int, tokenWeightOut *big.Int, swapFee *big.Int) (*big.Int, error)

CalcSpotPrice is a free data retrieval call binding the contract method 0xa221ee49.

Solidity: function calcSpotPrice(uint256 tokenBalanceIn, uint256 tokenWeightIn, uint256 tokenBalanceOut, uint256 tokenWeightOut, uint256 swapFee) pure returns(uint256 spotPrice)

func (*BmatCaller) DEFAULTTOTALWEIGHT

func (_Bmat *BmatCaller) DEFAULTTOTALWEIGHT(opts *bind.CallOpts) (*big.Int, error)

DEFAULTTOTALWEIGHT is a free data retrieval call binding the contract method 0xed61bdc0.

Solidity: function DEFAULT_TOTAL_WEIGHT() view returns(uint256)

func (*BmatCaller) EXITFEE

func (_Bmat *BmatCaller) EXITFEE(opts *bind.CallOpts) (*big.Int, error)

EXITFEE is a free data retrieval call binding the contract method 0xc6580d12.

Solidity: function EXIT_FEE() view returns(uint256)

func (*BmatCaller) INITPOOLSUPPLY

func (_Bmat *BmatCaller) INITPOOLSUPPLY(opts *bind.CallOpts) (*big.Int, error)

INITPOOLSUPPLY is a free data retrieval call binding the contract method 0x9381cd2b.

Solidity: function INIT_POOL_SUPPLY() view returns(uint256)

func (*BmatCaller) MAXBOUNDTOKENS

func (_Bmat *BmatCaller) MAXBOUNDTOKENS(opts *bind.CallOpts) (*big.Int, error)

MAXBOUNDTOKENS is a free data retrieval call binding the contract method 0xb0e0d136.

Solidity: function MAX_BOUND_TOKENS() view returns(uint256)

func (*BmatCaller) MAXBPOWBASE

func (_Bmat *BmatCaller) MAXBPOWBASE(opts *bind.CallOpts) (*big.Int, error)

MAXBPOWBASE is a free data retrieval call binding the contract method 0xbc694ea2.

Solidity: function MAX_BPOW_BASE() view returns(uint256)

func (*BmatCaller) MAXFEE

func (_Bmat *BmatCaller) MAXFEE(opts *bind.CallOpts) (*big.Int, error)

MAXFEE is a free data retrieval call binding the contract method 0xbc063e1a.

Solidity: function MAX_FEE() view returns(uint256)

func (*BmatCaller) MAXINRATIO

func (_Bmat *BmatCaller) MAXINRATIO(opts *bind.CallOpts) (*big.Int, error)

MAXINRATIO is a free data retrieval call binding the contract method 0xec093021.

Solidity: function MAX_IN_RATIO() view returns(uint256)

func (*BmatCaller) MAXOUTRATIO

func (_Bmat *BmatCaller) MAXOUTRATIO(opts *bind.CallOpts) (*big.Int, error)

MAXOUTRATIO is a free data retrieval call binding the contract method 0x992e2a92.

Solidity: function MAX_OUT_RATIO() view returns(uint256)

func (*BmatCaller) MAXTOTALWEIGHT

func (_Bmat *BmatCaller) MAXTOTALWEIGHT(opts *bind.CallOpts) (*big.Int, error)

MAXTOTALWEIGHT is a free data retrieval call binding the contract method 0x09a3bbe4.

Solidity: function MAX_TOTAL_WEIGHT() view returns(uint256)

func (*BmatCaller) MAXWEIGHT

func (_Bmat *BmatCaller) MAXWEIGHT(opts *bind.CallOpts) (*big.Int, error)

MAXWEIGHT is a free data retrieval call binding the contract method 0xe4a28a52.

Solidity: function MAX_WEIGHT() view returns(uint256)

func (*BmatCaller) MINBALANCE

func (_Bmat *BmatCaller) MINBALANCE(opts *bind.CallOpts) (*big.Int, error)

MINBALANCE is a free data retrieval call binding the contract method 0x867378c5.

Solidity: function MIN_BALANCE() view returns(uint256)

func (*BmatCaller) MINBOUNDTOKENS

func (_Bmat *BmatCaller) MINBOUNDTOKENS(opts *bind.CallOpts) (*big.Int, error)

MINBOUNDTOKENS is a free data retrieval call binding the contract method 0xb7b800a4.

Solidity: function MIN_BOUND_TOKENS() view returns(uint256)

func (*BmatCaller) MINBPOWBASE

func (_Bmat *BmatCaller) MINBPOWBASE(opts *bind.CallOpts) (*big.Int, error)

MINBPOWBASE is a free data retrieval call binding the contract method 0xba019dab.

Solidity: function MIN_BPOW_BASE() view returns(uint256)

func (*BmatCaller) MINFEE

func (_Bmat *BmatCaller) MINFEE(opts *bind.CallOpts) (*big.Int, error)

MINFEE is a free data retrieval call binding the contract method 0x76c7a3c7.

Solidity: function MIN_FEE() view returns(uint256)

func (*BmatCaller) MINWEIGHT

func (_Bmat *BmatCaller) MINWEIGHT(opts *bind.CallOpts) (*big.Int, error)

MINWEIGHT is a free data retrieval call binding the contract method 0x218b5382.

Solidity: function MIN_WEIGHT() view returns(uint256)

func (*BmatCaller) VERSIONNUMBER

func (_Bmat *BmatCaller) VERSIONNUMBER(opts *bind.CallOpts) (*big.Int, error)

VERSIONNUMBER is a free data retrieval call binding the contract method 0x8025e303.

Solidity: function VERSION_NUMBER() view returns(uint256)

func (*BmatCaller) WEIGHTCHANGEPCT

func (_Bmat *BmatCaller) WEIGHTCHANGEPCT(opts *bind.CallOpts) (*big.Int, error)

WEIGHTCHANGEPCT is a free data retrieval call binding the contract method 0x6852b5cd.

Solidity: function WEIGHT_CHANGE_PCT() view returns(uint256)

func (*BmatCaller) WEIGHTUPDATEDELAY

func (_Bmat *BmatCaller) WEIGHTUPDATEDELAY(opts *bind.CallOpts) (*big.Int, error)

WEIGHTUPDATEDELAY is a free data retrieval call binding the contract method 0x7e6d71a2.

Solidity: function WEIGHT_UPDATE_DELAY() view returns(uint256)

type BmatCallerRaw

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

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

func (*BmatCallerRaw) Call

func (_Bmat *BmatCallerRaw) 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 BmatCallerSession

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

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

func (*BmatCallerSession) BONE

func (_Bmat *BmatCallerSession) BONE() (*big.Int, error)

BONE is a free data retrieval call binding the contract method 0xc36596a6.

Solidity: function BONE() view returns(uint256)

func (*BmatCallerSession) BPOWPRECISION

func (_Bmat *BmatCallerSession) BPOWPRECISION() (*big.Int, error)

BPOWPRECISION is a free data retrieval call binding the contract method 0x189d00ca.

Solidity: function BPOW_PRECISION() view returns(uint256)

func (*BmatCallerSession) Badd

func (_Bmat *BmatCallerSession) Badd(a *big.Int, b *big.Int) (*big.Int, error)

Badd is a free data retrieval call binding the contract method 0x0b71b95c.

Solidity: function badd(uint256 a, uint256 b) pure returns(uint256)

func (*BmatCallerSession) Bdiv

func (_Bmat *BmatCallerSession) Bdiv(a *big.Int, b *big.Int) (*big.Int, error)

Bdiv is a free data retrieval call binding the contract method 0x7673eb11.

Solidity: function bdiv(uint256 a, uint256 b) pure returns(uint256)

func (*BmatCallerSession) Bfloor

func (_Bmat *BmatCallerSession) Bfloor(a *big.Int) (*big.Int, error)

Bfloor is a free data retrieval call binding the contract method 0x317223bc.

Solidity: function bfloor(uint256 a) pure returns(uint256)

func (*BmatCallerSession) Bmul

func (_Bmat *BmatCallerSession) Bmul(a *big.Int, b *big.Int) (*big.Int, error)

Bmul is a free data retrieval call binding the contract method 0x8c051bf3.

Solidity: function bmul(uint256 a, uint256 b) pure returns(uint256)

func (*BmatCallerSession) Bpow

func (_Bmat *BmatCallerSession) Bpow(base *big.Int, exp *big.Int) (*big.Int, error)

Bpow is a free data retrieval call binding the contract method 0x1d0a82df.

Solidity: function bpow(uint256 base, uint256 exp) pure returns(uint256)

func (*BmatCallerSession) BpowApprox

func (_Bmat *BmatCallerSession) BpowApprox(base *big.Int, exp *big.Int, precision *big.Int) (*big.Int, error)

BpowApprox is a free data retrieval call binding the contract method 0xd011f32a.

Solidity: function bpowApprox(uint256 base, uint256 exp, uint256 precision) pure returns(uint256)

func (*BmatCallerSession) Bpowi

func (_Bmat *BmatCallerSession) Bpowi(a *big.Int, n *big.Int) (*big.Int, error)

Bpowi is a free data retrieval call binding the contract method 0xcd660299.

Solidity: function bpowi(uint256 a, uint256 n) pure returns(uint256)

func (*BmatCallerSession) Bsub

func (_Bmat *BmatCallerSession) Bsub(a *big.Int, b *big.Int) (*big.Int, error)

Bsub is a free data retrieval call binding the contract method 0x3cf3c7d4.

Solidity: function bsub(uint256 a, uint256 b) pure returns(uint256)

func (*BmatCallerSession) BsubSign

func (_Bmat *BmatCallerSession) BsubSign(a *big.Int, b *big.Int) (*big.Int, bool, error)

BsubSign is a free data retrieval call binding the contract method 0x743480cc.

Solidity: function bsubSign(uint256 a, uint256 b) pure returns(uint256, bool)

func (*BmatCallerSession) Btoi

func (_Bmat *BmatCallerSession) Btoi(a *big.Int) (*big.Int, error)

Btoi is a free data retrieval call binding the contract method 0x859ae48e.

Solidity: function btoi(uint256 a) pure returns(uint256)

func (*BmatCallerSession) CalcSpotPrice

func (_Bmat *BmatCallerSession) CalcSpotPrice(tokenBalanceIn *big.Int, tokenWeightIn *big.Int, tokenBalanceOut *big.Int, tokenWeightOut *big.Int, swapFee *big.Int) (*big.Int, error)

CalcSpotPrice is a free data retrieval call binding the contract method 0xa221ee49.

Solidity: function calcSpotPrice(uint256 tokenBalanceIn, uint256 tokenWeightIn, uint256 tokenBalanceOut, uint256 tokenWeightOut, uint256 swapFee) pure returns(uint256 spotPrice)

func (*BmatCallerSession) DEFAULTTOTALWEIGHT

func (_Bmat *BmatCallerSession) DEFAULTTOTALWEIGHT() (*big.Int, error)

DEFAULTTOTALWEIGHT is a free data retrieval call binding the contract method 0xed61bdc0.

Solidity: function DEFAULT_TOTAL_WEIGHT() view returns(uint256)

func (*BmatCallerSession) EXITFEE

func (_Bmat *BmatCallerSession) EXITFEE() (*big.Int, error)

EXITFEE is a free data retrieval call binding the contract method 0xc6580d12.

Solidity: function EXIT_FEE() view returns(uint256)

func (*BmatCallerSession) INITPOOLSUPPLY

func (_Bmat *BmatCallerSession) INITPOOLSUPPLY() (*big.Int, error)

INITPOOLSUPPLY is a free data retrieval call binding the contract method 0x9381cd2b.

Solidity: function INIT_POOL_SUPPLY() view returns(uint256)

func (*BmatCallerSession) MAXBOUNDTOKENS

func (_Bmat *BmatCallerSession) MAXBOUNDTOKENS() (*big.Int, error)

MAXBOUNDTOKENS is a free data retrieval call binding the contract method 0xb0e0d136.

Solidity: function MAX_BOUND_TOKENS() view returns(uint256)

func (*BmatCallerSession) MAXBPOWBASE

func (_Bmat *BmatCallerSession) MAXBPOWBASE() (*big.Int, error)

MAXBPOWBASE is a free data retrieval call binding the contract method 0xbc694ea2.

Solidity: function MAX_BPOW_BASE() view returns(uint256)

func (*BmatCallerSession) MAXFEE

func (_Bmat *BmatCallerSession) MAXFEE() (*big.Int, error)

MAXFEE is a free data retrieval call binding the contract method 0xbc063e1a.

Solidity: function MAX_FEE() view returns(uint256)

func (*BmatCallerSession) MAXINRATIO

func (_Bmat *BmatCallerSession) MAXINRATIO() (*big.Int, error)

MAXINRATIO is a free data retrieval call binding the contract method 0xec093021.

Solidity: function MAX_IN_RATIO() view returns(uint256)

func (*BmatCallerSession) MAXOUTRATIO

func (_Bmat *BmatCallerSession) MAXOUTRATIO() (*big.Int, error)

MAXOUTRATIO is a free data retrieval call binding the contract method 0x992e2a92.

Solidity: function MAX_OUT_RATIO() view returns(uint256)

func (*BmatCallerSession) MAXTOTALWEIGHT

func (_Bmat *BmatCallerSession) MAXTOTALWEIGHT() (*big.Int, error)

MAXTOTALWEIGHT is a free data retrieval call binding the contract method 0x09a3bbe4.

Solidity: function MAX_TOTAL_WEIGHT() view returns(uint256)

func (*BmatCallerSession) MAXWEIGHT

func (_Bmat *BmatCallerSession) MAXWEIGHT() (*big.Int, error)

MAXWEIGHT is a free data retrieval call binding the contract method 0xe4a28a52.

Solidity: function MAX_WEIGHT() view returns(uint256)

func (*BmatCallerSession) MINBALANCE

func (_Bmat *BmatCallerSession) MINBALANCE() (*big.Int, error)

MINBALANCE is a free data retrieval call binding the contract method 0x867378c5.

Solidity: function MIN_BALANCE() view returns(uint256)

func (*BmatCallerSession) MINBOUNDTOKENS

func (_Bmat *BmatCallerSession) MINBOUNDTOKENS() (*big.Int, error)

MINBOUNDTOKENS is a free data retrieval call binding the contract method 0xb7b800a4.

Solidity: function MIN_BOUND_TOKENS() view returns(uint256)

func (*BmatCallerSession) MINBPOWBASE

func (_Bmat *BmatCallerSession) MINBPOWBASE() (*big.Int, error)

MINBPOWBASE is a free data retrieval call binding the contract method 0xba019dab.

Solidity: function MIN_BPOW_BASE() view returns(uint256)

func (*BmatCallerSession) MINFEE

func (_Bmat *BmatCallerSession) MINFEE() (*big.Int, error)

MINFEE is a free data retrieval call binding the contract method 0x76c7a3c7.

Solidity: function MIN_FEE() view returns(uint256)

func (*BmatCallerSession) MINWEIGHT

func (_Bmat *BmatCallerSession) MINWEIGHT() (*big.Int, error)

MINWEIGHT is a free data retrieval call binding the contract method 0x218b5382.

Solidity: function MIN_WEIGHT() view returns(uint256)

func (*BmatCallerSession) VERSIONNUMBER

func (_Bmat *BmatCallerSession) VERSIONNUMBER() (*big.Int, error)

VERSIONNUMBER is a free data retrieval call binding the contract method 0x8025e303.

Solidity: function VERSION_NUMBER() view returns(uint256)

func (*BmatCallerSession) WEIGHTCHANGEPCT

func (_Bmat *BmatCallerSession) WEIGHTCHANGEPCT() (*big.Int, error)

WEIGHTCHANGEPCT is a free data retrieval call binding the contract method 0x6852b5cd.

Solidity: function WEIGHT_CHANGE_PCT() view returns(uint256)

func (*BmatCallerSession) WEIGHTUPDATEDELAY

func (_Bmat *BmatCallerSession) WEIGHTUPDATEDELAY() (*big.Int, error)

WEIGHTUPDATEDELAY is a free data retrieval call binding the contract method 0x7e6d71a2.

Solidity: function WEIGHT_UPDATE_DELAY() view returns(uint256)

type BmatFilterer

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

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

func NewBmatFilterer

func NewBmatFilterer(address common.Address, filterer bind.ContractFilterer) (*BmatFilterer, error)

NewBmatFilterer creates a new log filterer instance of Bmat, bound to a specific deployed contract.

type BmatRaw

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

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

func (*BmatRaw) Call

func (_Bmat *BmatRaw) 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 (*BmatRaw) Transact

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

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

func (*BmatRaw) Transfer

func (_Bmat *BmatRaw) 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 BmatSession

type BmatSession struct {
	Contract     *Bmat             // 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
}

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

func (*BmatSession) BONE

func (_Bmat *BmatSession) BONE() (*big.Int, error)

BONE is a free data retrieval call binding the contract method 0xc36596a6.

Solidity: function BONE() view returns(uint256)

func (*BmatSession) BPOWPRECISION

func (_Bmat *BmatSession) BPOWPRECISION() (*big.Int, error)

BPOWPRECISION is a free data retrieval call binding the contract method 0x189d00ca.

Solidity: function BPOW_PRECISION() view returns(uint256)

func (*BmatSession) Badd

func (_Bmat *BmatSession) Badd(a *big.Int, b *big.Int) (*big.Int, error)

Badd is a free data retrieval call binding the contract method 0x0b71b95c.

Solidity: function badd(uint256 a, uint256 b) pure returns(uint256)

func (*BmatSession) Bdiv

func (_Bmat *BmatSession) Bdiv(a *big.Int, b *big.Int) (*big.Int, error)

Bdiv is a free data retrieval call binding the contract method 0x7673eb11.

Solidity: function bdiv(uint256 a, uint256 b) pure returns(uint256)

func (*BmatSession) Bfloor

func (_Bmat *BmatSession) Bfloor(a *big.Int) (*big.Int, error)

Bfloor is a free data retrieval call binding the contract method 0x317223bc.

Solidity: function bfloor(uint256 a) pure returns(uint256)

func (*BmatSession) Bmul

func (_Bmat *BmatSession) Bmul(a *big.Int, b *big.Int) (*big.Int, error)

Bmul is a free data retrieval call binding the contract method 0x8c051bf3.

Solidity: function bmul(uint256 a, uint256 b) pure returns(uint256)

func (*BmatSession) Bpow

func (_Bmat *BmatSession) Bpow(base *big.Int, exp *big.Int) (*big.Int, error)

Bpow is a free data retrieval call binding the contract method 0x1d0a82df.

Solidity: function bpow(uint256 base, uint256 exp) pure returns(uint256)

func (*BmatSession) BpowApprox

func (_Bmat *BmatSession) BpowApprox(base *big.Int, exp *big.Int, precision *big.Int) (*big.Int, error)

BpowApprox is a free data retrieval call binding the contract method 0xd011f32a.

Solidity: function bpowApprox(uint256 base, uint256 exp, uint256 precision) pure returns(uint256)

func (*BmatSession) Bpowi

func (_Bmat *BmatSession) Bpowi(a *big.Int, n *big.Int) (*big.Int, error)

Bpowi is a free data retrieval call binding the contract method 0xcd660299.

Solidity: function bpowi(uint256 a, uint256 n) pure returns(uint256)

func (*BmatSession) Bsub

func (_Bmat *BmatSession) Bsub(a *big.Int, b *big.Int) (*big.Int, error)

Bsub is a free data retrieval call binding the contract method 0x3cf3c7d4.

Solidity: function bsub(uint256 a, uint256 b) pure returns(uint256)

func (*BmatSession) BsubSign

func (_Bmat *BmatSession) BsubSign(a *big.Int, b *big.Int) (*big.Int, bool, error)

BsubSign is a free data retrieval call binding the contract method 0x743480cc.

Solidity: function bsubSign(uint256 a, uint256 b) pure returns(uint256, bool)

func (*BmatSession) Btoi

func (_Bmat *BmatSession) Btoi(a *big.Int) (*big.Int, error)

Btoi is a free data retrieval call binding the contract method 0x859ae48e.

Solidity: function btoi(uint256 a) pure returns(uint256)

func (*BmatSession) CalcSpotPrice

func (_Bmat *BmatSession) CalcSpotPrice(tokenBalanceIn *big.Int, tokenWeightIn *big.Int, tokenBalanceOut *big.Int, tokenWeightOut *big.Int, swapFee *big.Int) (*big.Int, error)

CalcSpotPrice is a free data retrieval call binding the contract method 0xa221ee49.

Solidity: function calcSpotPrice(uint256 tokenBalanceIn, uint256 tokenWeightIn, uint256 tokenBalanceOut, uint256 tokenWeightOut, uint256 swapFee) pure returns(uint256 spotPrice)

func (*BmatSession) DEFAULTTOTALWEIGHT

func (_Bmat *BmatSession) DEFAULTTOTALWEIGHT() (*big.Int, error)

DEFAULTTOTALWEIGHT is a free data retrieval call binding the contract method 0xed61bdc0.

Solidity: function DEFAULT_TOTAL_WEIGHT() view returns(uint256)

func (*BmatSession) EXITFEE

func (_Bmat *BmatSession) EXITFEE() (*big.Int, error)

EXITFEE is a free data retrieval call binding the contract method 0xc6580d12.

Solidity: function EXIT_FEE() view returns(uint256)

func (*BmatSession) INITPOOLSUPPLY

func (_Bmat *BmatSession) INITPOOLSUPPLY() (*big.Int, error)

INITPOOLSUPPLY is a free data retrieval call binding the contract method 0x9381cd2b.

Solidity: function INIT_POOL_SUPPLY() view returns(uint256)

func (*BmatSession) MAXBOUNDTOKENS

func (_Bmat *BmatSession) MAXBOUNDTOKENS() (*big.Int, error)

MAXBOUNDTOKENS is a free data retrieval call binding the contract method 0xb0e0d136.

Solidity: function MAX_BOUND_TOKENS() view returns(uint256)

func (*BmatSession) MAXBPOWBASE

func (_Bmat *BmatSession) MAXBPOWBASE() (*big.Int, error)

MAXBPOWBASE is a free data retrieval call binding the contract method 0xbc694ea2.

Solidity: function MAX_BPOW_BASE() view returns(uint256)

func (*BmatSession) MAXFEE

func (_Bmat *BmatSession) MAXFEE() (*big.Int, error)

MAXFEE is a free data retrieval call binding the contract method 0xbc063e1a.

Solidity: function MAX_FEE() view returns(uint256)

func (*BmatSession) MAXINRATIO

func (_Bmat *BmatSession) MAXINRATIO() (*big.Int, error)

MAXINRATIO is a free data retrieval call binding the contract method 0xec093021.

Solidity: function MAX_IN_RATIO() view returns(uint256)

func (*BmatSession) MAXOUTRATIO

func (_Bmat *BmatSession) MAXOUTRATIO() (*big.Int, error)

MAXOUTRATIO is a free data retrieval call binding the contract method 0x992e2a92.

Solidity: function MAX_OUT_RATIO() view returns(uint256)

func (*BmatSession) MAXTOTALWEIGHT

func (_Bmat *BmatSession) MAXTOTALWEIGHT() (*big.Int, error)

MAXTOTALWEIGHT is a free data retrieval call binding the contract method 0x09a3bbe4.

Solidity: function MAX_TOTAL_WEIGHT() view returns(uint256)

func (*BmatSession) MAXWEIGHT

func (_Bmat *BmatSession) MAXWEIGHT() (*big.Int, error)

MAXWEIGHT is a free data retrieval call binding the contract method 0xe4a28a52.

Solidity: function MAX_WEIGHT() view returns(uint256)

func (*BmatSession) MINBALANCE

func (_Bmat *BmatSession) MINBALANCE() (*big.Int, error)

MINBALANCE is a free data retrieval call binding the contract method 0x867378c5.

Solidity: function MIN_BALANCE() view returns(uint256)

func (*BmatSession) MINBOUNDTOKENS

func (_Bmat *BmatSession) MINBOUNDTOKENS() (*big.Int, error)

MINBOUNDTOKENS is a free data retrieval call binding the contract method 0xb7b800a4.

Solidity: function MIN_BOUND_TOKENS() view returns(uint256)

func (*BmatSession) MINBPOWBASE

func (_Bmat *BmatSession) MINBPOWBASE() (*big.Int, error)

MINBPOWBASE is a free data retrieval call binding the contract method 0xba019dab.

Solidity: function MIN_BPOW_BASE() view returns(uint256)

func (*BmatSession) MINFEE

func (_Bmat *BmatSession) MINFEE() (*big.Int, error)

MINFEE is a free data retrieval call binding the contract method 0x76c7a3c7.

Solidity: function MIN_FEE() view returns(uint256)

func (*BmatSession) MINWEIGHT

func (_Bmat *BmatSession) MINWEIGHT() (*big.Int, error)

MINWEIGHT is a free data retrieval call binding the contract method 0x218b5382.

Solidity: function MIN_WEIGHT() view returns(uint256)

func (*BmatSession) VERSIONNUMBER

func (_Bmat *BmatSession) VERSIONNUMBER() (*big.Int, error)

VERSIONNUMBER is a free data retrieval call binding the contract method 0x8025e303.

Solidity: function VERSION_NUMBER() view returns(uint256)

func (*BmatSession) WEIGHTCHANGEPCT

func (_Bmat *BmatSession) WEIGHTCHANGEPCT() (*big.Int, error)

WEIGHTCHANGEPCT is a free data retrieval call binding the contract method 0x6852b5cd.

Solidity: function WEIGHT_CHANGE_PCT() view returns(uint256)

func (*BmatSession) WEIGHTUPDATEDELAY

func (_Bmat *BmatSession) WEIGHTUPDATEDELAY() (*big.Int, error)

WEIGHTUPDATEDELAY is a free data retrieval call binding the contract method 0x7e6d71a2.

Solidity: function WEIGHT_UPDATE_DELAY() view returns(uint256)

type BmatTransactor

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

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

func NewBmatTransactor

func NewBmatTransactor(address common.Address, transactor bind.ContractTransactor) (*BmatTransactor, error)

NewBmatTransactor creates a new write-only instance of Bmat, bound to a specific deployed contract.

type BmatTransactorRaw

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

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

func (*BmatTransactorRaw) Transact

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

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

func (*BmatTransactorRaw) Transfer

func (_Bmat *BmatTransactorRaw) 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 BmatTransactorSession

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

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

Jump to

Keyboard shortcuts

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