Documentation
¶
Index ¶
- Constants
- type DerivativeOrderInfo
- type ERC20
- type ERC20Approval
- type ERC20ApprovalIterator
- type ERC20Caller
- func (_ERC20 *ERC20Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)
- func (_ERC20 *ERC20Caller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)
- func (_ERC20 *ERC20Caller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_ERC20 *ERC20Caller) Name(opts *bind.CallOpts) (string, error)
- func (_ERC20 *ERC20Caller) Symbol(opts *bind.CallOpts) (string, error)
- func (_ERC20 *ERC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type ERC20CallerRaw
- type ERC20CallerSession
- func (_ERC20 *ERC20CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
- func (_ERC20 *ERC20CallerSession) BalanceOf(account common.Address) (*big.Int, error)
- func (_ERC20 *ERC20CallerSession) Decimals() (uint8, error)
- func (_ERC20 *ERC20CallerSession) Name() (string, error)
- func (_ERC20 *ERC20CallerSession) Symbol() (string, error)
- func (_ERC20 *ERC20CallerSession) TotalSupply() (*big.Int, error)
- type ERC20Filterer
- func (_ERC20 *ERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20ApprovalIterator, error)
- func (_ERC20 *ERC20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ERC20TransferIterator, error)
- func (_ERC20 *ERC20Filterer) ParseApproval(log types.Log) (*ERC20Approval, error)
- func (_ERC20 *ERC20Filterer) ParseTransfer(log types.Log) (*ERC20Transfer, error)
- func (_ERC20 *ERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC20Approval, owner []common.Address, ...) (event.Subscription, error)
- func (_ERC20 *ERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ERC20Transfer, from []common.Address, ...) (event.Subscription, error)
- type ERC20Raw
- func (_ERC20 *ERC20Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_ERC20 *ERC20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ERC20 *ERC20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ERC20Session
- func (_ERC20 *ERC20Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
- func (_ERC20 *ERC20Session) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_ERC20 *ERC20Session) BalanceOf(account common.Address) (*big.Int, error)
- func (_ERC20 *ERC20Session) Decimals() (uint8, error)
- func (_ERC20 *ERC20Session) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
- func (_ERC20 *ERC20Session) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)
- func (_ERC20 *ERC20Session) Name() (string, error)
- func (_ERC20 *ERC20Session) Symbol() (string, error)
- func (_ERC20 *ERC20Session) TotalSupply() (*big.Int, error)
- func (_ERC20 *ERC20Session) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)
- func (_ERC20 *ERC20Session) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)
- type ERC20Transactor
- func (_ERC20 *ERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_ERC20 *ERC20Transactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
- func (_ERC20 *ERC20Transactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)
- func (_ERC20 *ERC20Transactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error)
- func (_ERC20 *ERC20Transactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, ...) (*types.Transaction, error)
- type ERC20TransactorRaw
- type ERC20TransactorSession
- func (_ERC20 *ERC20TransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_ERC20 *ERC20TransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
- func (_ERC20 *ERC20TransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)
- func (_ERC20 *ERC20TransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)
- func (_ERC20 *ERC20TransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)
- type ERC20Transfer
- type ERC20TransferIterator
- type Futures
- type FuturesAccountCreation
- type FuturesAccountCreationIterator
- type FuturesCaller
- func (f *FuturesCaller) Accounts(opts *bind.CallOpts, arg0 [32]byte) (struct{ ... }, error)
- func (f *FuturesCaller) AddressToSubAccountIDs(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) ([32]byte, error)
- func (f *FuturesCaller) AllowedValidators(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (bool, error)
- func (f *FuturesCaller) Auction(opts *bind.CallOpts) (common.Address, error)
- func (f *FuturesCaller) AuctionTimeInterval(opts *bind.CallOpts) (*big.Int, error)
- func (f *FuturesCaller) BaseCurrencies(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
- func (f *FuturesCaller) CalcCumulativeFunding(opts *bind.CallOpts, marketID [32]byte, cumulativeFundingEntry *big.Int) (*big.Int, error)
- func (f *FuturesCaller) CalcLiquidationFee(opts *bind.CallOpts, marketID [32]byte, quantity *big.Int) (*big.Int, error)
- func (f *FuturesCaller) CalcMinMargin(opts *bind.CallOpts, marketID [32]byte, quantity *big.Int, price *big.Int) (*big.Int, error)
- func (f *FuturesCaller) Cancelled(opts *bind.CallOpts, arg0 [32]byte) (bool, error)
- func (f *FuturesCaller) ClosePositionMetaTransaction(opts *bind.CallOpts, exchangeAddress common.Address, ...) error
- func (f *FuturesCaller) ComputeSubAccountIdFromNonce(opts *bind.CallOpts, trader common.Address, subAccountNonce *big.Int) ([32]byte, error)
- func (f *FuturesCaller) CurrentAuctionEndTime(opts *bind.CallOpts) (*big.Int, error)
- func (f *FuturesCaller) CurrentContextAddress(opts *bind.CallOpts) (common.Address, error)
- func (f *FuturesCaller) DoesPositionExist(opts *bind.CallOpts, positionID *big.Int) (bool, error)
- func (f *FuturesCaller) EIP1271MAGICVALUE(opts *bind.CallOpts) ([4]byte, error)
- func (f *FuturesCaller) EIP712EXCHANGEDOMAINHASH(opts *bind.CallOpts) ([32]byte, error)
- func (f *FuturesCaller) EpochFees(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (f *FuturesCaller) Filled(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
- func (f *FuturesCaller) FuturesMarkets(opts *bind.CallOpts, arg0 [32]byte) (struct{ ... }, error)
- func (f *FuturesCaller) GetApproved(opts *bind.CallOpts, positionID *big.Int) (common.Address, error)
- func (f *FuturesCaller) GetDefaultSubAccountDeposits(opts *bind.CallOpts, baseCurrency common.Address, trader common.Address) (*big.Int, error)
- func (f *FuturesCaller) GetDefaultSubAccountIdForTrader(opts *bind.CallOpts, trader common.Address) ([32]byte, error)
- func (f *FuturesCaller) GetMaxFundingFeeAbs(opts *bind.CallOpts, marketID [32]byte) (*big.Int, error)
- func (f *FuturesCaller) GetOrderInfo(opts *bind.CallOpts, order Order) (OrderInfo, error)
- func (f *FuturesCaller) GetOrderRelevantState(opts *bind.CallOpts, order Order, signature []byte, indexPrice *big.Int) (struct{ ... }, error)
- func (f *FuturesCaller) GetOrderRelevantStates(opts *bind.CallOpts, orders []Order, signatures [][]byte) (struct{ ... }, error)
- func (f *FuturesCaller) GetPositionIDsForTrader(opts *bind.CallOpts, trader common.Address, marketID [32]byte) ([]*big.Int, error)
- func (f *FuturesCaller) GetPositionsForTrader(opts *bind.CallOpts, trader common.Address, marketID [32]byte) ([]TypesPosition, error)
- func (f *FuturesCaller) GetReceiptApproved(opts *bind.CallOpts, receiverSubAccountID [32]byte, positionID *big.Int) (bool, error)
- func (f *FuturesCaller) GetTraderSubAccountsCount(opts *bind.CallOpts, trader common.Address) (*big.Int, error)
- func (f *FuturesCaller) GetUnitPositionValue(opts *bind.CallOpts, positionID *big.Int, priceToUse *big.Int) (*big.Int, error)
- func (f *FuturesCaller) InsurancePools(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
- func (f *FuturesCaller) IsAllowedToReceivePosition(opts *bind.CallOpts, positionID *big.Int, sender common.Address, ...) (bool, error)
- func (f *FuturesCaller) IsAllowedToTransferPosition(opts *bind.CallOpts, positionID *big.Int, sender common.Address) (bool, error)
- func (f *FuturesCaller) IsApprovedForAll(opts *bind.CallOpts, fromSubAccountID [32]byte, operator common.Address) (bool, error)
- func (f *FuturesCaller) IsApprovedForMarket(opts *bind.CallOpts, fromSubAccountID [32]byte, operator common.Address, ...) (bool, error)
- func (f *FuturesCaller) IsFuturesMarketSettled(opts *bind.CallOpts, arg0 [32]byte) (bool, error)
- func (f *FuturesCaller) IsReceiptApprovedForAll(opts *bind.CallOpts, receiverSubAccountID [32]byte, operator common.Address) (bool, error)
- func (f *FuturesCaller) IsReceiptApprovedForMarket(opts *bind.CallOpts, receiverSubAccountID [32]byte, operator common.Address, ...) (bool, error)
- func (f *FuturesCaller) IsTimeExpiryFuturesMarket(opts *bind.CallOpts, marketID [32]byte) (bool, error)
- func (f *FuturesCaller) IsValidBaseCurrency(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (f *FuturesCaller) IsValidHashSignature(opts *bind.CallOpts, hash [32]byte, signerAddress common.Address, ...) (bool, error)
- func (f *FuturesCaller) IsValidOrderSignature(opts *bind.CallOpts, order Order, signature []byte) (bool, error)
- func (f *FuturesCaller) IsValidTransactionSignature(opts *bind.CallOpts, transaction LibZeroExTransactionZeroExTransaction, ...) (bool, error)
- func (f *FuturesCaller) LastValidVWAP(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
- func (f *FuturesCaller) MINIMUMMARGINRATIO(opts *bind.CallOpts) (*big.Int, error)
- func (f *FuturesCaller) MarketCount(opts *bind.CallOpts) (*big.Int, error)
- func (f *FuturesCaller) MarketSerialToID(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)
- func (f *FuturesCaller) MaxBaseCurrencyCap(opts *bind.CallOpts) (*big.Int, error)
- func (f *FuturesCaller) MostRecentEpochQuantity(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
- func (f *FuturesCaller) MostRecentEpochVolume(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
- func (f *FuturesCaller) MostRecentEpochWeightedAverageContractIndexDiff(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
- func (f *FuturesCaller) MostRecentmostRecentEpochVolumeEpochQuantity(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
- func (f *FuturesCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (f *FuturesCaller) Paused(opts *bind.CallOpts) (bool, error)
- func (f *FuturesCaller) PositionCount(opts *bind.CallOpts) (*big.Int, error)
- func (f *FuturesCaller) PositionCountInTEF(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
- func (f *FuturesCaller) Positions(opts *bind.CallOpts, arg0 *big.Int) (struct{ ... }, error)
- func (f *FuturesCaller) PreSigned(opts *bind.CallOpts, arg0 [32]byte, arg1 common.Address) (bool, error)
- func (f *FuturesCaller) RestrictedDeposits(opts *bind.CallOpts, arg0 [32]byte, arg1 common.Address) (*big.Int, error)
- func (f *FuturesCaller) SpotMarkets(opts *bind.CallOpts, arg0 [32]byte) (struct{ ... }, error)
- func (f *FuturesCaller) SubAccountDeposits(opts *bind.CallOpts, arg0 [32]byte, arg1 common.Address) (*big.Int, error)
- func (f *FuturesCaller) SubAccountIdToAddress(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error)
- func (f *FuturesCaller) SubAccountToMarketToPositionID(opts *bind.CallOpts, arg0 [32]byte, arg1 [32]byte) (*big.Int, error)
- func (f *FuturesCaller) TECADDRESS(opts *bind.CallOpts) (common.Address, error)
- func (f *FuturesCaller) TransactionsExecuted(opts *bind.CallOpts, arg0 [32]byte) (bool, error)
- type FuturesCallerRaw
- type FuturesCallerSession
- func (f *FuturesCallerSession) Accounts(arg0 [32]byte) (struct{ ... }, error)
- func (f *FuturesCallerSession) AddressToSubAccountIDs(arg0 common.Address, arg1 *big.Int) ([32]byte, error)
- func (f *FuturesCallerSession) AllowedValidators(arg0 common.Address, arg1 common.Address) (bool, error)
- func (f *FuturesCallerSession) Auction() (common.Address, error)
- func (f *FuturesCallerSession) AuctionTimeInterval() (*big.Int, error)
- func (f *FuturesCallerSession) BaseCurrencies(arg0 *big.Int) (common.Address, error)
- func (f *FuturesCallerSession) CalcCumulativeFunding(marketID [32]byte, cumulativeFundingEntry *big.Int) (*big.Int, error)
- func (f *FuturesCallerSession) CalcLiquidationFee(marketID [32]byte, quantity *big.Int) (*big.Int, error)
- func (f *FuturesCallerSession) CalcMinMargin(marketID [32]byte, quantity *big.Int, price *big.Int) (*big.Int, error)
- func (f *FuturesCallerSession) Cancelled(arg0 [32]byte) (bool, error)
- func (f *FuturesCallerSession) ClosePositionMetaTransaction(exchangeAddress common.Address, isRevertingOnPartialFills bool, ...) error
- func (f *FuturesCallerSession) ComputeSubAccountIdFromNonce(trader common.Address, subAccountNonce *big.Int) ([32]byte, error)
- func (f *FuturesCallerSession) CurrentAuctionEndTime() (*big.Int, error)
- func (f *FuturesCallerSession) CurrentContextAddress() (common.Address, error)
- func (f *FuturesCallerSession) DoesPositionExist(positionID *big.Int) (bool, error)
- func (f *FuturesCallerSession) EIP1271MAGICVALUE() ([4]byte, error)
- func (f *FuturesCallerSession) EIP712EXCHANGEDOMAINHASH() ([32]byte, error)
- func (f *FuturesCallerSession) EpochFees(arg0 common.Address) (*big.Int, error)
- func (f *FuturesCallerSession) Filled(arg0 [32]byte) (*big.Int, error)
- func (f *FuturesCallerSession) FuturesMarkets(arg0 [32]byte) (struct{ ... }, error)
- func (f *FuturesCallerSession) GetApproved(positionID *big.Int) (common.Address, error)
- func (f *FuturesCallerSession) GetDefaultSubAccountDeposits(baseCurrency common.Address, trader common.Address) (*big.Int, error)
- func (f *FuturesCallerSession) GetDefaultSubAccountIdForTrader(trader common.Address) ([32]byte, error)
- func (f *FuturesCallerSession) GetMaxFundingFeeAbs(marketID [32]byte) (*big.Int, error)
- func (f *FuturesCallerSession) GetOrderInfo(order Order) (OrderInfo, error)
- func (f *FuturesCallerSession) GetOrderRelevantState(order Order, signature []byte, indexPrice *big.Int) (struct{ ... }, error)
- func (f *FuturesCallerSession) GetOrderRelevantStates(orders []Order, signatures [][]byte) (struct{ ... }, error)
- func (f *FuturesCallerSession) GetPositionIDsForTrader(trader common.Address, marketID [32]byte) ([]*big.Int, error)
- func (f *FuturesCallerSession) GetPositionsForTrader(trader common.Address, marketID [32]byte) ([]TypesPosition, error)
- func (f *FuturesCallerSession) GetReceiptApproved(receiverSubAccountID [32]byte, positionID *big.Int) (bool, error)
- func (f *FuturesCallerSession) GetTraderSubAccountsCount(trader common.Address) (*big.Int, error)
- func (f *FuturesCallerSession) GetUnitPositionValue(positionID *big.Int, priceToUse *big.Int) (*big.Int, error)
- func (f *FuturesCallerSession) InsurancePools(arg0 [32]byte) (*big.Int, error)
- func (f *FuturesCallerSession) IsAllowedToReceivePosition(positionID *big.Int, sender common.Address, receiverSubAccountID [32]byte) (bool, error)
- func (f *FuturesCallerSession) IsAllowedToTransferPosition(positionID *big.Int, sender common.Address) (bool, error)
- func (f *FuturesCallerSession) IsApprovedForAll(fromSubAccountID [32]byte, operator common.Address) (bool, error)
- func (f *FuturesCallerSession) IsApprovedForMarket(fromSubAccountID [32]byte, operator common.Address, marketID [32]byte) (bool, error)
- func (f *FuturesCallerSession) IsFuturesMarketSettled(arg0 [32]byte) (bool, error)
- func (f *FuturesCallerSession) IsReceiptApprovedForAll(receiverSubAccountID [32]byte, operator common.Address) (bool, error)
- func (f *FuturesCallerSession) IsReceiptApprovedForMarket(receiverSubAccountID [32]byte, operator common.Address, marketID [32]byte) (bool, error)
- func (f *FuturesCallerSession) IsTimeExpiryFuturesMarket(marketID [32]byte) (bool, error)
- func (f *FuturesCallerSession) IsValidBaseCurrency(arg0 common.Address) (bool, error)
- func (f *FuturesCallerSession) IsValidHashSignature(hash [32]byte, signerAddress common.Address, signature []byte) (bool, error)
- func (f *FuturesCallerSession) IsValidOrderSignature(order Order, signature []byte) (bool, error)
- func (f *FuturesCallerSession) IsValidTransactionSignature(transaction LibZeroExTransactionZeroExTransaction, signature []byte) (bool, error)
- func (f *FuturesCallerSession) LastValidVWAP(arg0 [32]byte) (*big.Int, error)
- func (f *FuturesCallerSession) MINIMUMMARGINRATIO() (*big.Int, error)
- func (f *FuturesCallerSession) MarketCount() (*big.Int, error)
- func (f *FuturesCallerSession) MarketSerialToID(arg0 *big.Int) ([32]byte, error)
- func (f *FuturesCallerSession) MaxBaseCurrencyCap() (*big.Int, error)
- func (f *FuturesCallerSession) MostRecentEpochQuantity(arg0 [32]byte) (*big.Int, error)
- func (f *FuturesCallerSession) MostRecentEpochVolume(arg0 [32]byte) (*big.Int, error)
- func (f *FuturesCallerSession) MostRecentEpochWeightedAverageContractIndexDiff(arg0 [32]byte) (*big.Int, error)
- func (f *FuturesCallerSession) MostRecentmostRecentEpochVolumeEpochQuantity(arg0 [32]byte) (*big.Int, error)
- func (f *FuturesCallerSession) Owner() (common.Address, error)
- func (f *FuturesCallerSession) Paused() (bool, error)
- func (f *FuturesCallerSession) PositionCount() (*big.Int, error)
- func (f *FuturesCallerSession) PositionCountInTEF(arg0 [32]byte) (*big.Int, error)
- func (f *FuturesCallerSession) Positions(arg0 *big.Int) (struct{ ... }, error)
- func (f *FuturesCallerSession) PreSigned(arg0 [32]byte, arg1 common.Address) (bool, error)
- func (f *FuturesCallerSession) RestrictedDeposits(arg0 [32]byte, arg1 common.Address) (*big.Int, error)
- func (f *FuturesCallerSession) SpotMarkets(arg0 [32]byte) (struct{ ... }, error)
- func (f *FuturesCallerSession) SubAccountDeposits(arg0 [32]byte, arg1 common.Address) (*big.Int, error)
- func (f *FuturesCallerSession) SubAccountIdToAddress(arg0 [32]byte) (common.Address, error)
- func (f *FuturesCallerSession) SubAccountToMarketToPositionID(arg0 [32]byte, arg1 [32]byte) (*big.Int, error)
- func (f *FuturesCallerSession) TECADDRESS() (common.Address, error)
- func (f *FuturesCallerSession) TransactionsExecuted(arg0 [32]byte) (bool, error)
- type FuturesCancel
- type FuturesCancelIterator
- type FuturesFilterer
- func (f *FuturesFilterer) FilterAccountCreation(opts *bind.FilterOpts, creator []common.Address) (*FuturesAccountCreationIterator, error)
- func (f *FuturesFilterer) FilterFuturesCancel(opts *bind.FilterOpts, subAccountID [][32]byte, orderHash [][32]byte, ...) (*FuturesCancelIterator, error)
- func (f *FuturesFilterer) FilterFuturesMarketCreation(opts *bind.FilterOpts, marketID [][32]byte, ticker []string, ...) (*FuturesMarketCreationIterator, error)
- func (f *FuturesFilterer) FilterFuturesTrade(opts *bind.FilterOpts, marketID [][32]byte, subAccountID [][32]byte, ...) (*FuturesTradeIterator, error)
- func (f *FuturesFilterer) FilterMarginChanged(opts *bind.FilterOpts, positionID []*big.Int) (*FuturesMarginChangedIterator, error)
- func (f *FuturesFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*FuturesOwnershipTransferredIterator, error)
- func (f *FuturesFilterer) FilterPaused(opts *bind.FilterOpts) (*FuturesPausedIterator, error)
- func (f *FuturesFilterer) FilterPositionTransfer(opts *bind.FilterOpts, fromSubAccountID [][32]byte, toSubAccountID [][32]byte) (*FuturesPositionTransferIterator, error)
- func (f *FuturesFilterer) FilterSetFunding(opts *bind.FilterOpts, marketID [][32]byte) (*FuturesSetFundingIterator, error)
- func (f *FuturesFilterer) FilterSignatureValidatorApproval(opts *bind.FilterOpts, signerAddress []common.Address, ...) (*FuturesSignatureValidatorApprovalIterator, error)
- func (f *FuturesFilterer) FilterSpotMarketCreation(opts *bind.FilterOpts, marketID [][32]byte, ticker []string) (*FuturesSpotMarketCreationIterator, error)
- func (f *FuturesFilterer) FilterSpotTrade(opts *bind.FilterOpts, marketID [][32]byte, subAccountID [][32]byte, ...) (*FuturesSpotTradeIterator, error)
- func (f *FuturesFilterer) FilterSubaccountDepositsChange(opts *bind.FilterOpts, depositChangeType []uint8, subAccountID [][32]byte, ...) (*FuturesSubaccountDepositsChangeIterator, error)
- func (f *FuturesFilterer) FilterTransactionExecution(opts *bind.FilterOpts, transactionHash [][32]byte) (*FuturesTransactionExecutionIterator, error)
- func (f *FuturesFilterer) FilterUnpaused(opts *bind.FilterOpts) (*FuturesUnpausedIterator, error)
- func (f *FuturesFilterer) FilterUpdateValuesForVWAP(opts *bind.FilterOpts, marketID [][32]byte) (*FuturesUpdateValuesForVWAPIterator, error)
- func (f *FuturesFilterer) ParseAccountCreation(log types.Log) (*FuturesAccountCreation, error)
- func (f *FuturesFilterer) ParseFuturesCancel(log types.Log) (*FuturesCancel, error)
- func (f *FuturesFilterer) ParseFuturesMarketCreation(log types.Log) (*FuturesMarketCreation, error)
- func (f *FuturesFilterer) ParseFuturesTrade(log types.Log) (*FuturesTrade, error)
- func (f *FuturesFilterer) ParseMarginChanged(log types.Log) (*FuturesMarginChanged, error)
- func (f *FuturesFilterer) ParseOwnershipTransferred(log types.Log) (*FuturesOwnershipTransferred, error)
- func (f *FuturesFilterer) ParsePaused(log types.Log) (*FuturesPaused, error)
- func (f *FuturesFilterer) ParsePositionTransfer(log types.Log) (*FuturesPositionTransfer, error)
- func (f *FuturesFilterer) ParseSetFunding(log types.Log) (*FuturesSetFunding, error)
- func (f *FuturesFilterer) ParseSignatureValidatorApproval(log types.Log) (*FuturesSignatureValidatorApproval, error)
- func (f *FuturesFilterer) ParseSpotMarketCreation(log types.Log) (*FuturesSpotMarketCreation, error)
- func (f *FuturesFilterer) ParseSpotTrade(log types.Log) (*FuturesSpotTrade, error)
- func (f *FuturesFilterer) ParseSubaccountDepositsChange(log types.Log) (*FuturesSubaccountDepositsChange, error)
- func (f *FuturesFilterer) ParseTransactionExecution(log types.Log) (*FuturesTransactionExecution, error)
- func (f *FuturesFilterer) ParseUnpaused(log types.Log) (*FuturesUnpaused, error)
- func (f *FuturesFilterer) ParseUpdateValuesForVWAP(log types.Log) (*FuturesUpdateValuesForVWAP, error)
- func (f *FuturesFilterer) WatchAccountCreation(opts *bind.WatchOpts, sink chan<- *FuturesAccountCreation, ...) (event.Subscription, error)
- func (f *FuturesFilterer) WatchFuturesCancel(opts *bind.WatchOpts, sink chan<- *FuturesCancel, subAccountID [][32]byte, ...) (event.Subscription, error)
- func (f *FuturesFilterer) WatchFuturesMarketCreation(opts *bind.WatchOpts, sink chan<- *FuturesMarketCreation, marketID [][32]byte, ...) (event.Subscription, error)
- func (f *FuturesFilterer) WatchFuturesTrade(opts *bind.WatchOpts, sink chan<- *FuturesTrade, marketID [][32]byte, ...) (event.Subscription, error)
- func (f *FuturesFilterer) WatchMarginChanged(opts *bind.WatchOpts, sink chan<- *FuturesMarginChanged, positionID []*big.Int) (event.Subscription, error)
- func (f *FuturesFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *FuturesOwnershipTransferred, ...) (event.Subscription, error)
- func (f *FuturesFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *FuturesPaused) (event.Subscription, error)
- func (f *FuturesFilterer) WatchPositionTransfer(opts *bind.WatchOpts, sink chan<- *FuturesPositionTransfer, ...) (event.Subscription, error)
- func (f *FuturesFilterer) WatchSetFunding(opts *bind.WatchOpts, sink chan<- *FuturesSetFunding, marketID [][32]byte) (event.Subscription, error)
- func (f *FuturesFilterer) WatchSignatureValidatorApproval(opts *bind.WatchOpts, sink chan<- *FuturesSignatureValidatorApproval, ...) (event.Subscription, error)
- func (f *FuturesFilterer) WatchSpotMarketCreation(opts *bind.WatchOpts, sink chan<- *FuturesSpotMarketCreation, ...) (event.Subscription, error)
- func (f *FuturesFilterer) WatchSpotTrade(opts *bind.WatchOpts, sink chan<- *FuturesSpotTrade, marketID [][32]byte, ...) (event.Subscription, error)
- func (f *FuturesFilterer) WatchSubaccountDepositsChange(opts *bind.WatchOpts, sink chan<- *FuturesSubaccountDepositsChange, ...) (event.Subscription, error)
- func (f *FuturesFilterer) WatchTransactionExecution(opts *bind.WatchOpts, sink chan<- *FuturesTransactionExecution, ...) (event.Subscription, error)
- func (f *FuturesFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *FuturesUnpaused) (event.Subscription, error)
- func (f *FuturesFilterer) WatchUpdateValuesForVWAP(opts *bind.WatchOpts, sink chan<- *FuturesUpdateValuesForVWAP, ...) (event.Subscription, error)
- type FuturesMarginChanged
- type FuturesMarginChangedIterator
- type FuturesMarketCreation
- type FuturesMarketCreationIterator
- type FuturesOwnershipTransferred
- type FuturesOwnershipTransferredIterator
- type FuturesPaused
- type FuturesPausedIterator
- type FuturesPositionTransfer
- type FuturesPositionTransferIterator
- type FuturesRaw
- type FuturesSession
- func (f *FuturesSession) Accounts(arg0 [32]byte) (struct{ ... }, error)
- func (f *FuturesSession) AddMarginIntoPosition(subAccountID [32]byte, positionID *big.Int, addedMargin *big.Int) (*types.Transaction, error)
- func (f *FuturesSession) AddressToSubAccountIDs(arg0 common.Address, arg1 *big.Int) ([32]byte, error)
- func (f *FuturesSession) AllowedValidators(arg0 common.Address, arg1 common.Address) (bool, error)
- func (f *FuturesSession) Approve(approveTo common.Address, positionID *big.Int) (*types.Transaction, error)
- func (f *FuturesSession) ApproveForReceiving(receiverSubAccountID [32]byte, positionID *big.Int) (*types.Transaction, error)
- func (f *FuturesSession) Auction() (common.Address, error)
- func (f *FuturesSession) AuctionTimeInterval() (*big.Int, error)
- func (f *FuturesSession) BaseCurrencies(arg0 *big.Int) (common.Address, error)
- func (f *FuturesSession) BatchCancelOrders(orders []Order) (*types.Transaction, error)
- func (f *FuturesSession) BatchCheckFunding(marketIDs [][32]byte) (*types.Transaction, error)
- func (f *FuturesSession) BatchDepositForSubAccounts(baseCurrencies []common.Address, subAccountIDs [][32]byte, amounts []*big.Int) (*types.Transaction, error)
- func (f *FuturesSession) BatchDepositForTraders(baseCurrencies []common.Address, traders []common.Address, amounts []*big.Int) (*types.Transaction, error)
- func (f *FuturesSession) BatchExecuteTransactions(transactions []LibZeroExTransactionZeroExTransaction, signatures [][]byte) (*types.Transaction, error)
- func (f *FuturesSession) BatchLiquidatePosition(positionIDs []*big.Int, orders [][]Order, quantities []*big.Int, ...) (*types.Transaction, error)
- func (f *FuturesSession) BatchSettleExpiryFuturesPosition(marketID [32]byte, subAccountIDs [][32]byte) (*types.Transaction, error)
- func (f *FuturesSession) CalcCumulativeFunding(marketID [32]byte, cumulativeFundingEntry *big.Int) (*big.Int, error)
- func (f *FuturesSession) CalcLiquidationFee(marketID [32]byte, quantity *big.Int) (*big.Int, error)
- func (f *FuturesSession) CalcMinMargin(marketID [32]byte, quantity *big.Int, price *big.Int) (*big.Int, error)
- func (f *FuturesSession) CancelOrder(order Order) (*types.Transaction, error)
- func (f *FuturesSession) Cancelled(arg0 [32]byte) (bool, error)
- func (f *FuturesSession) ChangeAuctionTimeInterval(auctionTimeInterval_ *big.Int) (*types.Transaction, error)
- func (f *FuturesSession) ChangeMarketFundingInterval(marketID [32]byte, fundingInterval *big.Int) (*types.Transaction, error)
- func (f *FuturesSession) ChangeMarketInitialMarginRatio(marketID [32]byte, initialMarginRatio PermyriadMathPermyriad) (*types.Transaction, error)
- func (f *FuturesSession) ChangeMarketMaintenanceMarginRatio(marketID [32]byte, maintenanceMarginRatio PermyriadMathPermyriad) (*types.Transaction, error)
- func (f *FuturesSession) ChangeMarketMakerTxFee(marketID [32]byte, makerTxFee PermyriadMathPermyriad) (*types.Transaction, error)
- func (f *FuturesSession) ChangeMarketOracle(marketID [32]byte, oracle common.Address) (*types.Transaction, error)
- func (f *FuturesSession) ChangeMarketOracle0(marketID [32]byte, fundingInterval *big.Int) (*types.Transaction, error)
- func (f *FuturesSession) ChangeMarketRelayerTxFee(marketID [32]byte, relayerTxFee PermyriadMathPermyriad) (*types.Transaction, error)
- func (f *FuturesSession) ChangeMarketTakerTxFee(marketID [32]byte, takerTxFee PermyriadMathPermyriad) (*types.Transaction, error)
- func (f *FuturesSession) ChangeMaxBaseCurrencyCap(maxBaseCurrencyCap_ *big.Int) (*types.Transaction, error)
- func (f *FuturesSession) ChangeMinimumMarginRatio(MINIMUM_MARGIN_RATIO_ PermyriadMathPermyriad) (*types.Transaction, error)
- func (f *FuturesSession) CheckFunding(marketID [32]byte) (*types.Transaction, error)
- func (f *FuturesSession) ClosePosition(subAccountID [32]byte, marketID [32]byte, orders []Order, quantity *big.Int, ...) (*types.Transaction, error)
- func (f *FuturesSession) ClosePositionMetaTransaction(exchangeAddress common.Address, isRevertingOnPartialFills bool, ...) error
- func (f *FuturesSession) ComputeSubAccountIdFromNonce(trader common.Address, subAccountNonce *big.Int) ([32]byte, error)
- func (f *FuturesSession) CreateDefaultSubAccountAndDeposit(baseCurrency common.Address, amount *big.Int) (*types.Transaction, error)
- func (f *FuturesSession) CreateFuturesMarket(ticker string, baseCurrency common.Address, oracle common.Address, ...) (*types.Transaction, error)
- func (f *FuturesSession) CreateFuturesMarketWithFixedMarketId(ticker string, baseCurrency common.Address, oracle common.Address, ...) (*types.Transaction, error)
- func (f *FuturesSession) CreateSpotMarket(ticker string, baseToken common.Address, quoteToken common.Address, ...) (*types.Transaction, error)
- func (f *FuturesSession) CreateSubAccountAndDeposit(baseCurrency common.Address, subAccountNonce *big.Int, amount *big.Int) (*types.Transaction, error)
- func (f *FuturesSession) CreateSubAccountForTraderWithNonce(trader common.Address, subAccountNonce *big.Int) (*types.Transaction, error)
- func (f *FuturesSession) CurrentAuctionEndTime() (*big.Int, error)
- func (f *FuturesSession) CurrentContextAddress() (common.Address, error)
- func (f *FuturesSession) Deposit(baseCurrency common.Address, amount *big.Int) (*types.Transaction, error)
- func (f *FuturesSession) DepositFor(baseCurrency common.Address, trader common.Address, amount *big.Int) (*types.Transaction, error)
- func (f *FuturesSession) DepositForSubaccount(baseCurrency common.Address, subAccountID [32]byte, amount *big.Int) (*types.Transaction, error)
- func (f *FuturesSession) DepositIntoSubAccount(baseCurrency common.Address, subAccountID [32]byte, amount *big.Int) (*types.Transaction, error)
- func (f *FuturesSession) DoesPositionExist(positionID *big.Int) (bool, error)
- func (f *FuturesSession) EIP1271MAGICVALUE() ([4]byte, error)
- func (f *FuturesSession) EIP712EXCHANGEDOMAINHASH() ([32]byte, error)
- func (f *FuturesSession) EmergencyStopFutures() (*types.Transaction, error)
- func (f *FuturesSession) EmergencyStopMarket(marketID [32]byte) (*types.Transaction, error)
- func (f *FuturesSession) EpochFees(arg0 common.Address) (*big.Int, error)
- func (f *FuturesSession) ExecuteTransaction(transaction LibZeroExTransactionZeroExTransaction, signature []byte) (*types.Transaction, error)
- func (f *FuturesSession) Filled(arg0 [32]byte) (*big.Int, error)
- func (f *FuturesSession) FuturesMarkets(arg0 [32]byte) (struct{ ... }, error)
- func (f *FuturesSession) GetApproved(positionID *big.Int) (common.Address, error)
- func (f *FuturesSession) GetDefaultSubAccountDeposits(baseCurrency common.Address, trader common.Address) (*big.Int, error)
- func (f *FuturesSession) GetDefaultSubAccountIdForTrader(trader common.Address) ([32]byte, error)
- func (f *FuturesSession) GetMaxFundingFeeAbs(marketID [32]byte) (*big.Int, error)
- func (f *FuturesSession) GetOrderInfo(order Order) (OrderInfo, error)
- func (f *FuturesSession) GetOrderRelevantState(order Order, signature []byte, indexPrice *big.Int) (struct{ ... }, error)
- func (f *FuturesSession) GetOrderRelevantStates(orders []Order, signatures [][]byte) (struct{ ... }, error)
- func (f *FuturesSession) GetPositionIDsForTrader(trader common.Address, marketID [32]byte) ([]*big.Int, error)
- func (f *FuturesSession) GetPositionsForTrader(trader common.Address, marketID [32]byte) ([]TypesPosition, error)
- func (f *FuturesSession) GetReceiptApproved(receiverSubAccountID [32]byte, positionID *big.Int) (bool, error)
- func (f *FuturesSession) GetTraderSubAccountsCount(trader common.Address) (*big.Int, error)
- func (f *FuturesSession) GetUnitPositionValue(positionID *big.Int, priceToUse *big.Int) (*big.Int, error)
- func (f *FuturesSession) InsurancePools(arg0 [32]byte) (*big.Int, error)
- func (f *FuturesSession) IsAllowedToReceivePosition(positionID *big.Int, sender common.Address, receiverSubAccountID [32]byte) (bool, error)
- func (f *FuturesSession) IsAllowedToTransferPosition(positionID *big.Int, sender common.Address) (bool, error)
- func (f *FuturesSession) IsApprovedForAll(fromSubAccountID [32]byte, operator common.Address) (bool, error)
- func (f *FuturesSession) IsApprovedForMarket(fromSubAccountID [32]byte, operator common.Address, marketID [32]byte) (bool, error)
- func (f *FuturesSession) IsFuturesMarketSettled(arg0 [32]byte) (bool, error)
- func (f *FuturesSession) IsReceiptApprovedForAll(receiverSubAccountID [32]byte, operator common.Address) (bool, error)
- func (f *FuturesSession) IsReceiptApprovedForMarket(receiverSubAccountID [32]byte, operator common.Address, marketID [32]byte) (bool, error)
- func (f *FuturesSession) IsTimeExpiryFuturesMarket(marketID [32]byte) (bool, error)
- func (f *FuturesSession) IsValidBaseCurrency(arg0 common.Address) (bool, error)
- func (f *FuturesSession) IsValidHashSignature(hash [32]byte, signerAddress common.Address, signature []byte) (bool, error)
- func (f *FuturesSession) IsValidOrderSignature(order Order, signature []byte) (bool, error)
- func (f *FuturesSession) IsValidTransactionSignature(transaction LibZeroExTransactionZeroExTransaction, signature []byte) (bool, error)
- func (f *FuturesSession) LastValidVWAP(arg0 [32]byte) (*big.Int, error)
- func (f *FuturesSession) LiquidatePosition(subAccountID [32]byte, marketID [32]byte, liquidationCaller common.Address, ...) (*types.Transaction, error)
- func (f *FuturesSession) MINIMUMMARGINRATIO() (*big.Int, error)
- func (f *FuturesSession) MarketCount() (*big.Int, error)
- func (f *FuturesSession) MarketOrders(orders []Order, quantity *big.Int, margin *big.Int, subAccountID [32]byte, ...) (*types.Transaction, error)
- func (f *FuturesSession) MarketSerialToID(arg0 *big.Int) ([32]byte, error)
- func (f *FuturesSession) MatchSpotOrders(leftOrder Order, rightOrder Order, leftSignature []byte, rightSignature []byte) (*types.Transaction, error)
- func (f *FuturesSession) MaxBaseCurrencyCap() (*big.Int, error)
- func (f *FuturesSession) MostRecentEpochQuantity(arg0 [32]byte) (*big.Int, error)
- func (f *FuturesSession) MostRecentEpochVolume(arg0 [32]byte) (*big.Int, error)
- func (f *FuturesSession) MostRecentEpochWeightedAverageContractIndexDiff(arg0 [32]byte) (*big.Int, error)
- func (f *FuturesSession) MostRecentmostRecentEpochVolumeEpochQuantity(arg0 [32]byte) (*big.Int, error)
- func (f *FuturesSession) MultiMatchOrders(leftOrders []Order, rightOrder Order, leftSignatures [][]byte, ...) (*types.Transaction, error)
- func (f *FuturesSession) MultiMatchSpotOrders(leftOrders []Order, rightOrders []Order, leftSignatures [][]byte, ...) (*types.Transaction, error)
- func (f *FuturesSession) Owner() (common.Address, error)
- func (f *FuturesSession) Paused() (bool, error)
- func (f *FuturesSession) PayIntoInsurancePool(marketID [32]byte, amount *big.Int) (*types.Transaction, error)
- func (f *FuturesSession) PositionCount() (*big.Int, error)
- func (f *FuturesSession) PositionCountInTEF(arg0 [32]byte) (*big.Int, error)
- func (f *FuturesSession) Positions(arg0 *big.Int) (struct{ ... }, error)
- func (f *FuturesSession) PreSign(hash [32]byte) (*types.Transaction, error)
- func (f *FuturesSession) PreSigned(arg0 [32]byte, arg1 common.Address) (bool, error)
- func (f *FuturesSession) RenounceOwnership() (*types.Transaction, error)
- func (f *FuturesSession) RestrictedDeposits(arg0 [32]byte, arg1 common.Address) (*big.Int, error)
- func (f *FuturesSession) ResumeFutures() (*types.Transaction, error)
- func (f *FuturesSession) SetApprovalForAll(fromSubAccountID [32]byte, operator common.Address, isApproved bool) (*types.Transaction, error)
- func (f *FuturesSession) SetApprovalForMarket(fromSubAccountID [32]byte, operator common.Address, marketID [32]byte, ...) (*types.Transaction, error)
- func (f *FuturesSession) SetFundingRate(marketID [32]byte) (*types.Transaction, error)
- func (f *FuturesSession) SetReceiptApprovalForAll(receiverSubAccountID [32]byte, operator common.Address, isApproved bool) (*types.Transaction, error)
- func (f *FuturesSession) SetReceiptApprovalForMarket(receiverSubAccountID [32]byte, operator common.Address, marketID [32]byte, ...) (*types.Transaction, error)
- func (f *FuturesSession) SetSignatureValidatorApproval(validatorAddress common.Address, approval bool) (*types.Transaction, error)
- func (f *FuturesSession) SettleExpiryFuturesPosition(marketID [32]byte, subAccountID [32]byte) (*types.Transaction, error)
- func (f *FuturesSession) SettleMarket(marketID [32]byte) (*types.Transaction, error)
- func (f *FuturesSession) SpotMarkets(arg0 [32]byte) (struct{ ... }, error)
- func (f *FuturesSession) SubAccountDeposits(arg0 [32]byte, arg1 common.Address) (*big.Int, error)
- func (f *FuturesSession) SubAccountIdToAddress(arg0 [32]byte) (common.Address, error)
- func (f *FuturesSession) SubAccountToMarketToPositionID(arg0 [32]byte, arg1 [32]byte) (*big.Int, error)
- func (f *FuturesSession) TECADDRESS() (common.Address, error)
- func (f *FuturesSession) TransactionsExecuted(arg0 [32]byte) (bool, error)
- func (f *FuturesSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (f *FuturesSession) TransferPosition(positionID *big.Int, receiverSubAccountID [32]byte, transferQuantity *big.Int) (*types.Transaction, error)
- func (f *FuturesSession) TransferToSubAccount(baseCurrency common.Address, fromSubAccountID [32]byte, ...) (*types.Transaction, error)
- func (f *FuturesSession) VaporizePosition(subAccountID [32]byte, marketID [32]byte, orders []Order, quantity *big.Int, ...) (*types.Transaction, error)
- func (f *FuturesSession) WithdrawForSubAccount(baseCurrency common.Address, subAccountID [32]byte, amount *big.Int) (*types.Transaction, error)
- func (f *FuturesSession) WithdrawFromInsurancePool(receiver common.Address, marketID [32]byte, amount *big.Int) (*types.Transaction, error)
- type FuturesSetFunding
- type FuturesSetFundingIterator
- type FuturesSignatureValidatorApproval
- type FuturesSignatureValidatorApprovalIterator
- type FuturesSpotMarketCreation
- type FuturesSpotMarketCreationIterator
- type FuturesSpotTrade
- type FuturesSpotTradeIterator
- type FuturesSubaccountDepositsChange
- type FuturesSubaccountDepositsChangeIterator
- type FuturesTrade
- type FuturesTradeIterator
- type FuturesTransactionExecution
- type FuturesTransactionExecutionIterator
- type FuturesTransactor
- func (f *FuturesTransactor) AddMarginIntoPosition(opts *bind.TransactOpts, subAccountID [32]byte, positionID *big.Int, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) Approve(opts *bind.TransactOpts, approveTo common.Address, positionID *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactor) ApproveForReceiving(opts *bind.TransactOpts, receiverSubAccountID [32]byte, positionID *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactor) BatchCancelOrders(opts *bind.TransactOpts, orders []Order) (*types.Transaction, error)
- func (f *FuturesTransactor) BatchCheckFunding(opts *bind.TransactOpts, marketIDs [][32]byte) (*types.Transaction, error)
- func (f *FuturesTransactor) BatchDepositForSubAccounts(opts *bind.TransactOpts, baseCurrencies []common.Address, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) BatchDepositForTraders(opts *bind.TransactOpts, baseCurrencies []common.Address, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) BatchExecuteTransactions(opts *bind.TransactOpts, transactions []LibZeroExTransactionZeroExTransaction, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) BatchLiquidatePosition(opts *bind.TransactOpts, positionIDs []*big.Int, orders [][]Order, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) BatchSettleExpiryFuturesPosition(opts *bind.TransactOpts, marketID [32]byte, subAccountIDs [][32]byte) (*types.Transaction, error)
- func (f *FuturesTransactor) CancelOrder(opts *bind.TransactOpts, order Order) (*types.Transaction, error)
- func (f *FuturesTransactor) ChangeAuctionTimeInterval(opts *bind.TransactOpts, auctionTimeInterval_ *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactor) ChangeMarketFundingInterval(opts *bind.TransactOpts, marketID [32]byte, fundingInterval *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactor) ChangeMarketInitialMarginRatio(opts *bind.TransactOpts, marketID [32]byte, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) ChangeMarketMaintenanceMarginRatio(opts *bind.TransactOpts, marketID [32]byte, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) ChangeMarketMakerTxFee(opts *bind.TransactOpts, marketID [32]byte, makerTxFee PermyriadMathPermyriad) (*types.Transaction, error)
- func (f *FuturesTransactor) ChangeMarketOracle(opts *bind.TransactOpts, marketID [32]byte, oracle common.Address) (*types.Transaction, error)
- func (f *FuturesTransactor) ChangeMarketOracle0(opts *bind.TransactOpts, marketID [32]byte, fundingInterval *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactor) ChangeMarketRelayerTxFee(opts *bind.TransactOpts, marketID [32]byte, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) ChangeMarketTakerTxFee(opts *bind.TransactOpts, marketID [32]byte, takerTxFee PermyriadMathPermyriad) (*types.Transaction, error)
- func (f *FuturesTransactor) ChangeMaxBaseCurrencyCap(opts *bind.TransactOpts, maxBaseCurrencyCap_ *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactor) ChangeMinimumMarginRatio(opts *bind.TransactOpts, MINIMUM_MARGIN_RATIO_ PermyriadMathPermyriad) (*types.Transaction, error)
- func (f *FuturesTransactor) CheckFunding(opts *bind.TransactOpts, marketID [32]byte) (*types.Transaction, error)
- func (f *FuturesTransactor) ClosePosition(opts *bind.TransactOpts, subAccountID [32]byte, marketID [32]byte, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) CreateDefaultSubAccountAndDeposit(opts *bind.TransactOpts, baseCurrency common.Address, amount *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactor) CreateFuturesMarket(opts *bind.TransactOpts, ticker string, baseCurrency common.Address, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) CreateFuturesMarketWithFixedMarketId(opts *bind.TransactOpts, ticker string, baseCurrency common.Address, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) CreateSpotMarket(opts *bind.TransactOpts, ticker string, baseToken common.Address, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) CreateSubAccountAndDeposit(opts *bind.TransactOpts, baseCurrency common.Address, subAccountNonce *big.Int, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) CreateSubAccountForTraderWithNonce(opts *bind.TransactOpts, trader common.Address, subAccountNonce *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactor) Deposit(opts *bind.TransactOpts, baseCurrency common.Address, amount *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactor) DepositFor(opts *bind.TransactOpts, baseCurrency common.Address, trader common.Address, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) DepositForSubaccount(opts *bind.TransactOpts, baseCurrency common.Address, subAccountID [32]byte, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) DepositIntoSubAccount(opts *bind.TransactOpts, baseCurrency common.Address, subAccountID [32]byte, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) EmergencyStopFutures(opts *bind.TransactOpts) (*types.Transaction, error)
- func (f *FuturesTransactor) EmergencyStopMarket(opts *bind.TransactOpts, marketID [32]byte) (*types.Transaction, error)
- func (f *FuturesTransactor) ExecuteTransaction(opts *bind.TransactOpts, transaction LibZeroExTransactionZeroExTransaction, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) LiquidatePosition(opts *bind.TransactOpts, subAccountID [32]byte, marketID [32]byte, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) MarketOrders(opts *bind.TransactOpts, orders []Order, quantity *big.Int, margin *big.Int, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) MatchSpotOrders(opts *bind.TransactOpts, leftOrder Order, rightOrder Order, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) MultiMatchOrders(opts *bind.TransactOpts, leftOrders []Order, rightOrder Order, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) MultiMatchSpotOrders(opts *bind.TransactOpts, leftOrders []Order, rightOrders []Order, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) PayIntoInsurancePool(opts *bind.TransactOpts, marketID [32]byte, amount *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactor) PreSign(opts *bind.TransactOpts, hash [32]byte) (*types.Transaction, error)
- func (f *FuturesTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (f *FuturesTransactor) ResumeFutures(opts *bind.TransactOpts) (*types.Transaction, error)
- func (f *FuturesTransactor) SetApprovalForAll(opts *bind.TransactOpts, fromSubAccountID [32]byte, operator common.Address, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) SetApprovalForMarket(opts *bind.TransactOpts, fromSubAccountID [32]byte, operator common.Address, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) SetFundingRate(opts *bind.TransactOpts, marketID [32]byte) (*types.Transaction, error)
- func (f *FuturesTransactor) SetReceiptApprovalForAll(opts *bind.TransactOpts, receiverSubAccountID [32]byte, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) SetReceiptApprovalForMarket(opts *bind.TransactOpts, receiverSubAccountID [32]byte, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) SetSignatureValidatorApproval(opts *bind.TransactOpts, validatorAddress common.Address, approval bool) (*types.Transaction, error)
- func (f *FuturesTransactor) SettleExpiryFuturesPosition(opts *bind.TransactOpts, marketID [32]byte, subAccountID [32]byte) (*types.Transaction, error)
- func (f *FuturesTransactor) SettleMarket(opts *bind.TransactOpts, marketID [32]byte) (*types.Transaction, error)
- func (f *FuturesTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (f *FuturesTransactor) TransferPosition(opts *bind.TransactOpts, positionID *big.Int, receiverSubAccountID [32]byte, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) TransferToSubAccount(opts *bind.TransactOpts, baseCurrency common.Address, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) VaporizePosition(opts *bind.TransactOpts, subAccountID [32]byte, marketID [32]byte, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) WithdrawForSubAccount(opts *bind.TransactOpts, baseCurrency common.Address, subAccountID [32]byte, ...) (*types.Transaction, error)
- func (f *FuturesTransactor) WithdrawFromInsurancePool(opts *bind.TransactOpts, receiver common.Address, marketID [32]byte, ...) (*types.Transaction, error)
- type FuturesTransactorRaw
- type FuturesTransactorSession
- func (f *FuturesTransactorSession) AddMarginIntoPosition(subAccountID [32]byte, positionID *big.Int, addedMargin *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactorSession) Approve(approveTo common.Address, positionID *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactorSession) ApproveForReceiving(receiverSubAccountID [32]byte, positionID *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactorSession) BatchCancelOrders(orders []Order) (*types.Transaction, error)
- func (f *FuturesTransactorSession) BatchCheckFunding(marketIDs [][32]byte) (*types.Transaction, error)
- func (f *FuturesTransactorSession) BatchDepositForSubAccounts(baseCurrencies []common.Address, subAccountIDs [][32]byte, amounts []*big.Int) (*types.Transaction, error)
- func (f *FuturesTransactorSession) BatchDepositForTraders(baseCurrencies []common.Address, traders []common.Address, amounts []*big.Int) (*types.Transaction, error)
- func (f *FuturesTransactorSession) BatchExecuteTransactions(transactions []LibZeroExTransactionZeroExTransaction, signatures [][]byte) (*types.Transaction, error)
- func (f *FuturesTransactorSession) BatchLiquidatePosition(positionIDs []*big.Int, orders [][]Order, quantities []*big.Int, ...) (*types.Transaction, error)
- func (f *FuturesTransactorSession) BatchSettleExpiryFuturesPosition(marketID [32]byte, subAccountIDs [][32]byte) (*types.Transaction, error)
- func (f *FuturesTransactorSession) CancelOrder(order Order) (*types.Transaction, error)
- func (f *FuturesTransactorSession) ChangeAuctionTimeInterval(auctionTimeInterval_ *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactorSession) ChangeMarketFundingInterval(marketID [32]byte, fundingInterval *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactorSession) ChangeMarketInitialMarginRatio(marketID [32]byte, initialMarginRatio PermyriadMathPermyriad) (*types.Transaction, error)
- func (f *FuturesTransactorSession) ChangeMarketMaintenanceMarginRatio(marketID [32]byte, maintenanceMarginRatio PermyriadMathPermyriad) (*types.Transaction, error)
- func (f *FuturesTransactorSession) ChangeMarketMakerTxFee(marketID [32]byte, makerTxFee PermyriadMathPermyriad) (*types.Transaction, error)
- func (f *FuturesTransactorSession) ChangeMarketOracle(marketID [32]byte, oracle common.Address) (*types.Transaction, error)
- func (f *FuturesTransactorSession) ChangeMarketOracle0(marketID [32]byte, fundingInterval *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactorSession) ChangeMarketRelayerTxFee(marketID [32]byte, relayerTxFee PermyriadMathPermyriad) (*types.Transaction, error)
- func (f *FuturesTransactorSession) ChangeMarketTakerTxFee(marketID [32]byte, takerTxFee PermyriadMathPermyriad) (*types.Transaction, error)
- func (f *FuturesTransactorSession) ChangeMaxBaseCurrencyCap(maxBaseCurrencyCap_ *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactorSession) ChangeMinimumMarginRatio(MINIMUM_MARGIN_RATIO_ PermyriadMathPermyriad) (*types.Transaction, error)
- func (f *FuturesTransactorSession) CheckFunding(marketID [32]byte) (*types.Transaction, error)
- func (f *FuturesTransactorSession) ClosePosition(subAccountID [32]byte, marketID [32]byte, orders []Order, quantity *big.Int, ...) (*types.Transaction, error)
- func (f *FuturesTransactorSession) CreateDefaultSubAccountAndDeposit(baseCurrency common.Address, amount *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactorSession) CreateFuturesMarket(ticker string, baseCurrency common.Address, oracle common.Address, ...) (*types.Transaction, error)
- func (f *FuturesTransactorSession) CreateFuturesMarketWithFixedMarketId(ticker string, baseCurrency common.Address, oracle common.Address, ...) (*types.Transaction, error)
- func (f *FuturesTransactorSession) CreateSpotMarket(ticker string, baseToken common.Address, quoteToken common.Address, ...) (*types.Transaction, error)
- func (f *FuturesTransactorSession) CreateSubAccountAndDeposit(baseCurrency common.Address, subAccountNonce *big.Int, amount *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactorSession) CreateSubAccountForTraderWithNonce(trader common.Address, subAccountNonce *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactorSession) Deposit(baseCurrency common.Address, amount *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactorSession) DepositFor(baseCurrency common.Address, trader common.Address, amount *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactorSession) DepositForSubaccount(baseCurrency common.Address, subAccountID [32]byte, amount *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactorSession) DepositIntoSubAccount(baseCurrency common.Address, subAccountID [32]byte, amount *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactorSession) EmergencyStopFutures() (*types.Transaction, error)
- func (f *FuturesTransactorSession) EmergencyStopMarket(marketID [32]byte) (*types.Transaction, error)
- func (f *FuturesTransactorSession) ExecuteTransaction(transaction LibZeroExTransactionZeroExTransaction, signature []byte) (*types.Transaction, error)
- func (f *FuturesTransactorSession) LiquidatePosition(subAccountID [32]byte, marketID [32]byte, liquidationCaller common.Address, ...) (*types.Transaction, error)
- func (f *FuturesTransactorSession) MarketOrders(orders []Order, quantity *big.Int, margin *big.Int, subAccountID [32]byte, ...) (*types.Transaction, error)
- func (f *FuturesTransactorSession) MatchSpotOrders(leftOrder Order, rightOrder Order, leftSignature []byte, rightSignature []byte) (*types.Transaction, error)
- func (f *FuturesTransactorSession) MultiMatchOrders(leftOrders []Order, rightOrder Order, leftSignatures [][]byte, ...) (*types.Transaction, error)
- func (f *FuturesTransactorSession) MultiMatchSpotOrders(leftOrders []Order, rightOrders []Order, leftSignatures [][]byte, ...) (*types.Transaction, error)
- func (f *FuturesTransactorSession) PayIntoInsurancePool(marketID [32]byte, amount *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactorSession) PreSign(hash [32]byte) (*types.Transaction, error)
- func (f *FuturesTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (f *FuturesTransactorSession) ResumeFutures() (*types.Transaction, error)
- func (f *FuturesTransactorSession) SetApprovalForAll(fromSubAccountID [32]byte, operator common.Address, isApproved bool) (*types.Transaction, error)
- func (f *FuturesTransactorSession) SetApprovalForMarket(fromSubAccountID [32]byte, operator common.Address, marketID [32]byte, ...) (*types.Transaction, error)
- func (f *FuturesTransactorSession) SetFundingRate(marketID [32]byte) (*types.Transaction, error)
- func (f *FuturesTransactorSession) SetReceiptApprovalForAll(receiverSubAccountID [32]byte, operator common.Address, isApproved bool) (*types.Transaction, error)
- func (f *FuturesTransactorSession) SetReceiptApprovalForMarket(receiverSubAccountID [32]byte, operator common.Address, marketID [32]byte, ...) (*types.Transaction, error)
- func (f *FuturesTransactorSession) SetSignatureValidatorApproval(validatorAddress common.Address, approval bool) (*types.Transaction, error)
- func (f *FuturesTransactorSession) SettleExpiryFuturesPosition(marketID [32]byte, subAccountID [32]byte) (*types.Transaction, error)
- func (f *FuturesTransactorSession) SettleMarket(marketID [32]byte) (*types.Transaction, error)
- func (f *FuturesTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (f *FuturesTransactorSession) TransferPosition(positionID *big.Int, receiverSubAccountID [32]byte, transferQuantity *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactorSession) TransferToSubAccount(baseCurrency common.Address, fromSubAccountID [32]byte, ...) (*types.Transaction, error)
- func (f *FuturesTransactorSession) VaporizePosition(subAccountID [32]byte, marketID [32]byte, orders []Order, quantity *big.Int, ...) (*types.Transaction, error)
- func (f *FuturesTransactorSession) WithdrawForSubAccount(baseCurrency common.Address, subAccountID [32]byte, amount *big.Int) (*types.Transaction, error)
- func (f *FuturesTransactorSession) WithdrawFromInsurancePool(receiver common.Address, marketID [32]byte, amount *big.Int) (*types.Transaction, error)
- type FuturesUnpaused
- type FuturesUnpausedIterator
- type FuturesUpdateValuesForVWAP
- type FuturesUpdateValuesForVWAPIterator
- type Hub
- type HubBurn
- type HubBurnIterator
- type HubCaller
- type HubCallerRaw
- type HubCallerSession
- type HubFilterer
- func (f *HubFilterer) FilterBurn(opts *bind.FilterOpts) (*HubBurnIterator, error)
- func (f *HubFilterer) FilterMint(opts *bind.FilterOpts) (*HubMintIterator, error)
- func (f *HubFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*HubOwnershipTransferredIterator, error)
- func (f *HubFilterer) FilterTemplateCreation(opts *bind.FilterOpts) (*HubTemplateCreationIterator, error)
- func (f *HubFilterer) FilterUnregisterChild(opts *bind.FilterOpts) (*HubUnregisterChildIterator, error)
- func (f *HubFilterer) ParseBurn(log types.Log) (*HubBurn, error)
- func (f *HubFilterer) ParseMint(log types.Log) (*HubMint, error)
- func (f *HubFilterer) ParseOwnershipTransferred(log types.Log) (*HubOwnershipTransferred, error)
- func (f *HubFilterer) ParseTemplateCreation(log types.Log) (*HubTemplateCreation, error)
- func (f *HubFilterer) ParseUnregisterChild(log types.Log) (*HubUnregisterChild, error)
- func (f *HubFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *HubBurn) (event.Subscription, error)
- func (f *HubFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *HubMint) (event.Subscription, error)
- func (f *HubFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *HubOwnershipTransferred, ...) (event.Subscription, error)
- func (f *HubFilterer) WatchTemplateCreation(opts *bind.WatchOpts, sink chan<- *HubTemplateCreation) (event.Subscription, error)
- func (f *HubFilterer) WatchUnregisterChild(opts *bind.WatchOpts, sink chan<- *HubUnregisterChild) (event.Subscription, error)
- type HubMint
- type HubMintIterator
- type HubOwnershipTransferred
- type HubOwnershipTransferredIterator
- type HubRaw
- type HubSession
- func (f *HubSession) Burn(iERC20TokenContract common.Address, recipientCosmosAddress string, ...) (*types.Transaction, error)
- func (f *HubSession) ChildMapping(arg0 common.Address) (bool, error)
- func (f *HubSession) Mint(iERC20TokenContract common.Address, fromCosmosAddress string, ...) (*types.Transaction, error)
- func (f *HubSession) Owner() (common.Address, error)
- func (f *HubSession) RenounceOwnership() (*types.Transaction, error)
- func (f *HubSession) SpawnTemplate(proposedCosmosCoin string, name string, symbol string, decimals *big.Int) (*types.Transaction, error)
- func (f *HubSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (f *HubSession) UnregisterChild(child common.Address) (*types.Transaction, error)
- type HubTemplateCreation
- type HubTemplateCreationIterator
- type HubTransactor
- func (f *HubTransactor) Burn(opts *bind.TransactOpts, iERC20TokenContract common.Address, ...) (*types.Transaction, error)
- func (f *HubTransactor) Mint(opts *bind.TransactOpts, iERC20TokenContract common.Address, ...) (*types.Transaction, error)
- func (f *HubTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (f *HubTransactor) SpawnTemplate(opts *bind.TransactOpts, proposedCosmosCoin string, name string, symbol string, ...) (*types.Transaction, error)
- func (f *HubTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (f *HubTransactor) UnregisterChild(opts *bind.TransactOpts, child common.Address) (*types.Transaction, error)
- type HubTransactorRaw
- type HubTransactorSession
- func (f *HubTransactorSession) Burn(iERC20TokenContract common.Address, recipientCosmosAddress string, ...) (*types.Transaction, error)
- func (f *HubTransactorSession) Mint(iERC20TokenContract common.Address, fromCosmosAddress string, ...) (*types.Transaction, error)
- func (f *HubTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (f *HubTransactorSession) SpawnTemplate(proposedCosmosCoin string, name string, symbol string, decimals *big.Int) (*types.Transaction, error)
- func (f *HubTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (f *HubTransactorSession) UnregisterChild(child common.Address) (*types.Transaction, error)
- type HubUnregisterChild
- type HubUnregisterChildIterator
- type LibFillResultsBatchMatchedFillResults
- type LibFillResultsFillResults
- type LibFillResultsMatchedFillResults
- type LibZeroExTransactionZeroExTransaction
- type MixinOrdersFillResults
- type MixinOrdersMatchResults
- type Order
- type OrderInfo
- type Peggy
- type PeggyCaller
- func (_Peggy *PeggyCaller) LastBatchNonce(opts *bind.CallOpts, _erc20Address common.Address) (*big.Int, error)
- func (_Peggy *PeggyCaller) SeenTokens(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_Peggy *PeggyCaller) StateLastBatchNonces(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Peggy *PeggyCaller) StateLastEventNonce(opts *bind.CallOpts) (*big.Int, error)
- func (_Peggy *PeggyCaller) StateLastValsetCheckpoint(opts *bind.CallOpts) ([32]byte, error)
- func (_Peggy *PeggyCaller) StateLastValsetNonce(opts *bind.CallOpts) (*big.Int, error)
- func (_Peggy *PeggyCaller) StatePeggyId(opts *bind.CallOpts) ([32]byte, error)
- func (_Peggy *PeggyCaller) StatePowerThreshold(opts *bind.CallOpts) (*big.Int, error)
- func (_Peggy *PeggyCaller) TestCheckValidatorSignatures(opts *bind.CallOpts, _currentValidators []common.Address, ...) error
- func (_Peggy *PeggyCaller) TestMakeCheckpoint(opts *bind.CallOpts, _validators []common.Address, _powers []*big.Int, ...) error
- func (_Peggy *PeggyCaller) TokenDecimals(opts *bind.CallOpts, arg0 common.Address) (uint8, error)
- func (_Peggy *PeggyCaller) TokenNames(opts *bind.CallOpts, arg0 common.Address) (string, error)
- func (_Peggy *PeggyCaller) TokenSymbols(opts *bind.CallOpts, arg0 common.Address) (string, error)
- type PeggyCallerRaw
- type PeggyCallerSession
- func (_Peggy *PeggyCallerSession) LastBatchNonce(_erc20Address common.Address) (*big.Int, error)
- func (_Peggy *PeggyCallerSession) SeenTokens(arg0 common.Address) (bool, error)
- func (_Peggy *PeggyCallerSession) StateLastBatchNonces(arg0 common.Address) (*big.Int, error)
- func (_Peggy *PeggyCallerSession) StateLastEventNonce() (*big.Int, error)
- func (_Peggy *PeggyCallerSession) StateLastValsetCheckpoint() ([32]byte, error)
- func (_Peggy *PeggyCallerSession) StateLastValsetNonce() (*big.Int, error)
- func (_Peggy *PeggyCallerSession) StatePeggyId() ([32]byte, error)
- func (_Peggy *PeggyCallerSession) StatePowerThreshold() (*big.Int, error)
- func (_Peggy *PeggyCallerSession) TestCheckValidatorSignatures(_currentValidators []common.Address, _currentPowers []*big.Int, _v []uint8, ...) error
- func (_Peggy *PeggyCallerSession) TestMakeCheckpoint(_validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int, ...) error
- func (_Peggy *PeggyCallerSession) TokenDecimals(arg0 common.Address) (uint8, error)
- func (_Peggy *PeggyCallerSession) TokenNames(arg0 common.Address) (string, error)
- func (_Peggy *PeggyCallerSession) TokenSymbols(arg0 common.Address) (string, error)
- type PeggyFilterer
- func (_Peggy *PeggyFilterer) FilterSendToCosmosEvent(opts *bind.FilterOpts, _tokenContract []common.Address, ...) (*PeggySendToCosmosEventIterator, error)
- func (_Peggy *PeggyFilterer) FilterTransactionBatchExecutedEvent(opts *bind.FilterOpts, _batchNonce []*big.Int, _token []common.Address) (*PeggyTransactionBatchExecutedEventIterator, error)
- func (_Peggy *PeggyFilterer) FilterValsetUpdatedEvent(opts *bind.FilterOpts, _newValsetNonce []*big.Int) (*PeggyValsetUpdatedEventIterator, error)
- func (_Peggy *PeggyFilterer) ParseSendToCosmosEvent(log types.Log) (*PeggySendToCosmosEvent, error)
- func (_Peggy *PeggyFilterer) ParseTransactionBatchExecutedEvent(log types.Log) (*PeggyTransactionBatchExecutedEvent, error)
- func (_Peggy *PeggyFilterer) ParseValsetUpdatedEvent(log types.Log) (*PeggyValsetUpdatedEvent, error)
- func (_Peggy *PeggyFilterer) WatchSendToCosmosEvent(opts *bind.WatchOpts, sink chan<- *PeggySendToCosmosEvent, ...) (event.Subscription, error)
- func (_Peggy *PeggyFilterer) WatchTransactionBatchExecutedEvent(opts *bind.WatchOpts, sink chan<- *PeggyTransactionBatchExecutedEvent, ...) (event.Subscription, error)
- func (_Peggy *PeggyFilterer) WatchValsetUpdatedEvent(opts *bind.WatchOpts, sink chan<- *PeggyValsetUpdatedEvent, ...) (event.Subscription, error)
- type PeggyRaw
- func (_Peggy *PeggyRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Peggy *PeggyRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Peggy *PeggyRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type PeggySendToCosmosEvent
- type PeggySendToCosmosEventIterator
- type PeggySession
- func (_Peggy *PeggySession) LastBatchNonce(_erc20Address common.Address) (*big.Int, error)
- func (_Peggy *PeggySession) SeenTokens(arg0 common.Address) (bool, error)
- func (_Peggy *PeggySession) SendToCosmos(_tokenContract common.Address, _destination common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_Peggy *PeggySession) StateLastBatchNonces(arg0 common.Address) (*big.Int, error)
- func (_Peggy *PeggySession) StateLastEventNonce() (*big.Int, error)
- func (_Peggy *PeggySession) StateLastValsetCheckpoint() ([32]byte, error)
- func (_Peggy *PeggySession) StateLastValsetNonce() (*big.Int, error)
- func (_Peggy *PeggySession) StatePeggyId() ([32]byte, error)
- func (_Peggy *PeggySession) StatePowerThreshold() (*big.Int, error)
- func (_Peggy *PeggySession) SubmitBatch(_currentValidators []common.Address, _currentPowers []*big.Int, ...) (*types.Transaction, error)
- func (_Peggy *PeggySession) TestCheckValidatorSignatures(_currentValidators []common.Address, _currentPowers []*big.Int, _v []uint8, ...) error
- func (_Peggy *PeggySession) TestMakeCheckpoint(_validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int, ...) error
- func (_Peggy *PeggySession) TokenDecimals(arg0 common.Address) (uint8, error)
- func (_Peggy *PeggySession) TokenNames(arg0 common.Address) (string, error)
- func (_Peggy *PeggySession) TokenSymbols(arg0 common.Address) (string, error)
- func (_Peggy *PeggySession) UpdateValset(_newValidators []common.Address, _newPowers []*big.Int, ...) (*types.Transaction, error)
- type PeggyTransactionBatchExecutedEvent
- type PeggyTransactionBatchExecutedEventIterator
- type PeggyTransactor
- func (_Peggy *PeggyTransactor) SendToCosmos(opts *bind.TransactOpts, _tokenContract common.Address, ...) (*types.Transaction, error)
- func (_Peggy *PeggyTransactor) SubmitBatch(opts *bind.TransactOpts, _currentValidators []common.Address, ...) (*types.Transaction, error)
- func (_Peggy *PeggyTransactor) UpdateValset(opts *bind.TransactOpts, _newValidators []common.Address, ...) (*types.Transaction, error)
- type PeggyTransactorRaw
- type PeggyTransactorSession
- func (_Peggy *PeggyTransactorSession) SendToCosmos(_tokenContract common.Address, _destination common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_Peggy *PeggyTransactorSession) SubmitBatch(_currentValidators []common.Address, _currentPowers []*big.Int, ...) (*types.Transaction, error)
- func (_Peggy *PeggyTransactorSession) UpdateValset(_newValidators []common.Address, _newPowers []*big.Int, ...) (*types.Transaction, error)
- type PeggyValsetUpdatedEvent
- type PeggyValsetUpdatedEventIterator
- type PermyriadMathPermyriad
- type PriceFeeder
- type PriceFeederCaller
- func (f *PriceFeederCaller) CurrentPrices(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
- func (f *PriceFeederCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)
- func (f *PriceFeederCaller) FuturesSettlementPrice(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
- func (f *PriceFeederCaller) FuturesSettlementTimes(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
- func (f *PriceFeederCaller) GetExpiryFuturesSettlementPrice(opts *bind.CallOpts, marketID [32]byte) (*big.Int, error)
- func (f *PriceFeederCaller) GetFundingInterval(opts *bind.CallOpts, marketID [32]byte) (*big.Int, error)
- func (f *PriceFeederCaller) GetPrice(opts *bind.CallOpts, marketID [32]byte) (*big.Int, error)
- func (f *PriceFeederCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)
- func (f *PriceFeederCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)
- func (f *PriceFeederCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)
- func (f *PriceFeederCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)
- func (f *PriceFeederCaller) IsRegisteredMarket(opts *bind.CallOpts, arg0 [32]byte) (bool, error)
- func (f *PriceFeederCaller) MarketCount(opts *bind.CallOpts) (*big.Int, error)
- func (f *PriceFeederCaller) MarketFundingIntervals(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
- func (f *PriceFeederCaller) PRICEFEEDER(opts *bind.CallOpts) ([32]byte, error)
- type PriceFeederCallerRaw
- type PriceFeederCallerSession
- func (f *PriceFeederCallerSession) CurrentPrices(arg0 [32]byte) (*big.Int, error)
- func (f *PriceFeederCallerSession) DEFAULTADMINROLE() ([32]byte, error)
- func (f *PriceFeederCallerSession) FuturesSettlementPrice(arg0 [32]byte) (*big.Int, error)
- func (f *PriceFeederCallerSession) FuturesSettlementTimes(arg0 [32]byte) (*big.Int, error)
- func (f *PriceFeederCallerSession) GetExpiryFuturesSettlementPrice(marketID [32]byte) (*big.Int, error)
- func (f *PriceFeederCallerSession) GetFundingInterval(marketID [32]byte) (*big.Int, error)
- func (f *PriceFeederCallerSession) GetPrice(marketID [32]byte) (*big.Int, error)
- func (f *PriceFeederCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (f *PriceFeederCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
- func (f *PriceFeederCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (f *PriceFeederCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (f *PriceFeederCallerSession) IsRegisteredMarket(arg0 [32]byte) (bool, error)
- func (f *PriceFeederCallerSession) MarketCount() (*big.Int, error)
- func (f *PriceFeederCallerSession) MarketFundingIntervals(arg0 [32]byte) (*big.Int, error)
- func (f *PriceFeederCallerSession) PRICEFEEDER() ([32]byte, error)
- type PriceFeederFilterer
- func (f *PriceFeederFilterer) FilterRegisterFuturesMarket(opts *bind.FilterOpts, marketID [][32]byte) (*PriceFeederRegisterFuturesMarketIterator, error)
- func (f *PriceFeederFilterer) FilterRegisterPerpetualMarket(opts *bind.FilterOpts, marketID [][32]byte) (*PriceFeederRegisterPerpetualMarketIterator, error)
- func (f *PriceFeederFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, ...) (*PriceFeederRoleAdminChangedIterator, error)
- func (f *PriceFeederFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*PriceFeederRoleGrantedIterator, error)
- func (f *PriceFeederFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*PriceFeederRoleRevokedIterator, error)
- func (f *PriceFeederFilterer) FilterSetPrice(opts *bind.FilterOpts, marketID [][32]byte) (*PriceFeederSetPriceIterator, error)
- func (f *PriceFeederFilterer) FilterSetSettlementPrice(opts *bind.FilterOpts, marketID [][32]byte) (*PriceFeederSetSettlementPriceIterator, error)
- func (f *PriceFeederFilterer) ParseRegisterFuturesMarket(log types.Log) (*PriceFeederRegisterFuturesMarket, error)
- func (f *PriceFeederFilterer) ParseRegisterPerpetualMarket(log types.Log) (*PriceFeederRegisterPerpetualMarket, error)
- func (f *PriceFeederFilterer) ParseRoleAdminChanged(log types.Log) (*PriceFeederRoleAdminChanged, error)
- func (f *PriceFeederFilterer) ParseRoleGranted(log types.Log) (*PriceFeederRoleGranted, error)
- func (f *PriceFeederFilterer) ParseRoleRevoked(log types.Log) (*PriceFeederRoleRevoked, error)
- func (f *PriceFeederFilterer) ParseSetPrice(log types.Log) (*PriceFeederSetPrice, error)
- func (f *PriceFeederFilterer) ParseSetSettlementPrice(log types.Log) (*PriceFeederSetSettlementPrice, error)
- func (f *PriceFeederFilterer) WatchRegisterFuturesMarket(opts *bind.WatchOpts, sink chan<- *PriceFeederRegisterFuturesMarket, ...) (event.Subscription, error)
- func (f *PriceFeederFilterer) WatchRegisterPerpetualMarket(opts *bind.WatchOpts, sink chan<- *PriceFeederRegisterPerpetualMarket, ...) (event.Subscription, error)
- func (f *PriceFeederFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *PriceFeederRoleAdminChanged, ...) (event.Subscription, error)
- func (f *PriceFeederFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *PriceFeederRoleGranted, role [][32]byte, ...) (event.Subscription, error)
- func (f *PriceFeederFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *PriceFeederRoleRevoked, role [][32]byte, ...) (event.Subscription, error)
- func (f *PriceFeederFilterer) WatchSetPrice(opts *bind.WatchOpts, sink chan<- *PriceFeederSetPrice, marketID [][32]byte) (event.Subscription, error)
- func (f *PriceFeederFilterer) WatchSetSettlementPrice(opts *bind.WatchOpts, sink chan<- *PriceFeederSetSettlementPrice, ...) (event.Subscription, error)
- type PriceFeederRaw
- func (f *PriceFeederRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (f *PriceFeederRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (f *PriceFeederRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type PriceFeederRegisterFuturesMarket
- type PriceFeederRegisterFuturesMarketIterator
- type PriceFeederRegisterPerpetualMarket
- type PriceFeederRegisterPerpetualMarketIterator
- type PriceFeederRoleAdminChanged
- type PriceFeederRoleAdminChangedIterator
- type PriceFeederRoleGranted
- type PriceFeederRoleGrantedIterator
- type PriceFeederRoleRevoked
- type PriceFeederRoleRevokedIterator
- type PriceFeederSession
- func (f *PriceFeederSession) CurrentPrices(arg0 [32]byte) (*big.Int, error)
- func (f *PriceFeederSession) DEFAULTADMINROLE() ([32]byte, error)
- func (f *PriceFeederSession) FuturesSettlementPrice(arg0 [32]byte) (*big.Int, error)
- func (f *PriceFeederSession) FuturesSettlementTimes(arg0 [32]byte) (*big.Int, error)
- func (f *PriceFeederSession) GetExpiryFuturesSettlementPrice(marketID [32]byte) (*big.Int, error)
- func (f *PriceFeederSession) GetFundingInterval(marketID [32]byte) (*big.Int, error)
- func (f *PriceFeederSession) GetPrice(marketID [32]byte) (*big.Int, error)
- func (f *PriceFeederSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (f *PriceFeederSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
- func (f *PriceFeederSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (f *PriceFeederSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (f *PriceFeederSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (f *PriceFeederSession) IsRegisteredMarket(arg0 [32]byte) (bool, error)
- func (f *PriceFeederSession) MarketCount() (*big.Int, error)
- func (f *PriceFeederSession) MarketFundingIntervals(arg0 [32]byte) (*big.Int, error)
- func (f *PriceFeederSession) PRICEFEEDER() ([32]byte, error)
- func (f *PriceFeederSession) RegisterFuturesMarket(marketID [32]byte, expirationTime *big.Int, price *big.Int) (*types.Transaction, error)
- func (f *PriceFeederSession) RegisterPerpetualMarket(marketID [32]byte, fundingInterval *big.Int, price *big.Int) (*types.Transaction, error)
- func (f *PriceFeederSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (f *PriceFeederSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (f *PriceFeederSession) SetExpiryFuturesSettlementPrice(marketID [32]byte, price *big.Int) (*types.Transaction, error)
- func (f *PriceFeederSession) SetPrice(marketID [32]byte, price *big.Int) (*types.Transaction, error)
- type PriceFeederSetPrice
- type PriceFeederSetPriceIterator
- type PriceFeederSetSettlementPrice
- type PriceFeederSetSettlementPriceIterator
- type PriceFeederTransactor
- func (f *PriceFeederTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (f *PriceFeederTransactor) RegisterFuturesMarket(opts *bind.TransactOpts, marketID [32]byte, expirationTime *big.Int, ...) (*types.Transaction, error)
- func (f *PriceFeederTransactor) RegisterPerpetualMarket(opts *bind.TransactOpts, marketID [32]byte, fundingInterval *big.Int, ...) (*types.Transaction, error)
- func (f *PriceFeederTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (f *PriceFeederTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (f *PriceFeederTransactor) SetExpiryFuturesSettlementPrice(opts *bind.TransactOpts, marketID [32]byte, price *big.Int) (*types.Transaction, error)
- func (f *PriceFeederTransactor) SetPrice(opts *bind.TransactOpts, marketID [32]byte, price *big.Int) (*types.Transaction, error)
- type PriceFeederTransactorRaw
- type PriceFeederTransactorSession
- func (f *PriceFeederTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (f *PriceFeederTransactorSession) RegisterFuturesMarket(marketID [32]byte, expirationTime *big.Int, price *big.Int) (*types.Transaction, error)
- func (f *PriceFeederTransactorSession) RegisterPerpetualMarket(marketID [32]byte, fundingInterval *big.Int, price *big.Int) (*types.Transaction, error)
- func (f *PriceFeederTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (f *PriceFeederTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (f *PriceFeederTransactorSession) SetExpiryFuturesSettlementPrice(marketID [32]byte, price *big.Int) (*types.Transaction, error)
- func (f *PriceFeederTransactorSession) SetPrice(marketID [32]byte, price *big.Int) (*types.Transaction, error)
- type TypesPosition
- type TypesPositionResults
- type TypesTransactionFees
Constants ¶
const ERC20ABI = "" /* 3789-byte string literal not displayed */
ERC20ABI is the input ABI used to generate the binding from.
const FuturesABI = "" /* 83981-byte string literal not displayed */
FuturesABI is the input ABI used to generate the binding from.
const HubABI = "" /* 3847-byte string literal not displayed */
HubABI is the input ABI used to generate the binding from.
const PeggyABI = "" /* 7530-byte string literal not displayed */
PeggyABI is the input ABI used to generate the binding from.
const PriceFeederABI = "" /* 8654-byte string literal not displayed */
PriceFeederABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DerivativeOrderInfo ¶
type DerivativeOrderInfo struct { OrderStatus uint8 OrderHash [32]byte OrderTakerAssetFilledAmount *big.Int SubAccountID [32]byte Direction uint8 MarketID [32]byte EntryPrice *big.Int }
DerivativeOrderInfo is an auto generated low-level Go binding around an user-defined struct.
type ERC20 ¶
type ERC20 struct { ERC20Caller // Read-only binding to the contract ERC20Transactor // Write-only binding to the contract ERC20Filterer // Log filterer for contract events }
ERC20 is an auto generated Go binding around an Ethereum contract.
type ERC20Approval ¶
type ERC20Approval struct { Owner common.Address Spender common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
ERC20Approval represents a Approval event raised by the ERC20 contract.
type ERC20ApprovalIterator ¶
type ERC20ApprovalIterator struct { Event *ERC20Approval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ERC20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the ERC20 contract.
func (*ERC20ApprovalIterator) Close ¶
func (it *ERC20ApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ERC20ApprovalIterator) Error ¶
func (it *ERC20ApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ERC20ApprovalIterator) Next ¶
func (it *ERC20ApprovalIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type ERC20Caller ¶
type ERC20Caller struct {
// contains filtered or unexported fields
}
ERC20Caller is an auto generated read-only Go binding around an Ethereum contract.
func NewERC20Caller ¶
func NewERC20Caller(address common.Address, caller bind.ContractCaller) (*ERC20Caller, error)
NewERC20Caller creates a new read-only instance of ERC20, bound to a specific deployed contract.
func (*ERC20Caller) Allowance ¶
func (_ERC20 *ERC20Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address owner, address spender) view returns(uint256)
func (*ERC20Caller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*ERC20Caller) Decimals ¶
func (_ERC20 *ERC20Caller) Decimals(opts *bind.CallOpts) (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*ERC20Caller) Name ¶
func (_ERC20 *ERC20Caller) Name(opts *bind.CallOpts) (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*ERC20Caller) Symbol ¶
func (_ERC20 *ERC20Caller) Symbol(opts *bind.CallOpts) (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*ERC20Caller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type ERC20CallerRaw ¶
type ERC20CallerRaw struct {
Contract *ERC20Caller // Generic read-only contract binding to access the raw methods on
}
ERC20CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ERC20CallerRaw) Call ¶
func (_ERC20 *ERC20CallerRaw) 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 ERC20CallerSession ¶
type ERC20CallerSession struct { Contract *ERC20Caller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ERC20CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ERC20CallerSession) Allowance ¶
func (_ERC20 *ERC20CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address owner, address spender) view returns(uint256)
func (*ERC20CallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*ERC20CallerSession) Decimals ¶
func (_ERC20 *ERC20CallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*ERC20CallerSession) Name ¶
func (_ERC20 *ERC20CallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*ERC20CallerSession) Symbol ¶
func (_ERC20 *ERC20CallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*ERC20CallerSession) TotalSupply ¶
func (_ERC20 *ERC20CallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type ERC20Filterer ¶
type ERC20Filterer struct {
// contains filtered or unexported fields
}
ERC20Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewERC20Filterer ¶
func NewERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*ERC20Filterer, error)
NewERC20Filterer creates a new log filterer instance of ERC20, bound to a specific deployed contract.
func (*ERC20Filterer) FilterApproval ¶
func (_ERC20 *ERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20ApprovalIterator, error)
FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*ERC20Filterer) FilterTransfer ¶
func (_ERC20 *ERC20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ERC20TransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*ERC20Filterer) ParseApproval ¶
func (_ERC20 *ERC20Filterer) ParseApproval(log types.Log) (*ERC20Approval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*ERC20Filterer) ParseTransfer ¶
func (_ERC20 *ERC20Filterer) ParseTransfer(log types.Log) (*ERC20Transfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*ERC20Filterer) WatchApproval ¶
func (_ERC20 *ERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error)
WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*ERC20Filterer) WatchTransfer ¶
func (_ERC20 *ERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ERC20Transfer, from []common.Address, to []common.Address) (event.Subscription, error)
WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
type ERC20Raw ¶
type ERC20Raw struct {
Contract *ERC20 // Generic contract binding to access the raw methods on
}
ERC20Raw is an auto generated low-level Go binding around an Ethereum contract.
func (*ERC20Raw) Call ¶
func (_ERC20 *ERC20Raw) 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 (*ERC20Raw) Transact ¶
func (_ERC20 *ERC20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ERC20Raw) Transfer ¶
func (_ERC20 *ERC20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type ERC20Session ¶
type ERC20Session struct { Contract *ERC20 // 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 }
ERC20Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ERC20Session) Allowance ¶
func (_ERC20 *ERC20Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address owner, address spender) view returns(uint256)
func (*ERC20Session) Approve ¶
func (_ERC20 *ERC20Session) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 amount) returns(bool)
func (*ERC20Session) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*ERC20Session) Decimals ¶
func (_ERC20 *ERC20Session) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*ERC20Session) DecreaseAllowance ¶
func (_ERC20 *ERC20Session) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.
Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)
func (*ERC20Session) IncreaseAllowance ¶
func (_ERC20 *ERC20Session) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)
IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.
Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)
func (*ERC20Session) Name ¶
func (_ERC20 *ERC20Session) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*ERC20Session) Symbol ¶
func (_ERC20 *ERC20Session) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*ERC20Session) TotalSupply ¶
func (_ERC20 *ERC20Session) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*ERC20Session) Transfer ¶
func (_ERC20 *ERC20Session) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address recipient, uint256 amount) returns(bool)
func (*ERC20Session) TransferFrom ¶
func (_ERC20 *ERC20Session) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)
type ERC20Transactor ¶
type ERC20Transactor struct {
// contains filtered or unexported fields
}
ERC20Transactor is an auto generated write-only Go binding around an Ethereum contract.
func NewERC20Transactor ¶
func NewERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*ERC20Transactor, error)
NewERC20Transactor creates a new write-only instance of ERC20, bound to a specific deployed contract.
func (*ERC20Transactor) Approve ¶
func (_ERC20 *ERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 amount) returns(bool)
func (*ERC20Transactor) DecreaseAllowance ¶
func (_ERC20 *ERC20Transactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.
Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)
func (*ERC20Transactor) IncreaseAllowance ¶
func (_ERC20 *ERC20Transactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)
IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.
Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)
func (*ERC20Transactor) Transfer ¶
func (_ERC20 *ERC20Transactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address recipient, uint256 amount) returns(bool)
func (*ERC20Transactor) TransferFrom ¶
func (_ERC20 *ERC20Transactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)
type ERC20TransactorRaw ¶
type ERC20TransactorRaw struct {
Contract *ERC20Transactor // Generic write-only contract binding to access the raw methods on
}
ERC20TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ERC20TransactorRaw) Transact ¶
func (_ERC20 *ERC20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ERC20TransactorRaw) Transfer ¶
func (_ERC20 *ERC20TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type ERC20TransactorSession ¶
type ERC20TransactorSession struct { Contract *ERC20Transactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ERC20TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ERC20TransactorSession) Approve ¶
func (_ERC20 *ERC20TransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 amount) returns(bool)
func (*ERC20TransactorSession) DecreaseAllowance ¶
func (_ERC20 *ERC20TransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.
Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)
func (*ERC20TransactorSession) IncreaseAllowance ¶
func (_ERC20 *ERC20TransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)
IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.
Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)
func (*ERC20TransactorSession) Transfer ¶
func (_ERC20 *ERC20TransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address recipient, uint256 amount) returns(bool)
func (*ERC20TransactorSession) TransferFrom ¶
func (_ERC20 *ERC20TransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)
type ERC20Transfer ¶
type ERC20Transfer struct { From common.Address To common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
ERC20Transfer represents a Transfer event raised by the ERC20 contract.
type ERC20TransferIterator ¶
type ERC20TransferIterator struct { Event *ERC20Transfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ERC20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the ERC20 contract.
func (*ERC20TransferIterator) Close ¶
func (it *ERC20TransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ERC20TransferIterator) Error ¶
func (it *ERC20TransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ERC20TransferIterator) Next ¶
func (it *ERC20TransferIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type Futures ¶
type Futures struct { FuturesCaller // Read-only binding to the contract FuturesTransactor // Write-only binding to the contract FuturesFilterer // Log filterer for contract events }
Futures is an auto generated Go binding around an Ethereum contract.
func NewFutures ¶
NewFutures creates a new instance of Futures, bound to a specific deployed contract.
type FuturesAccountCreation ¶
type FuturesAccountCreation struct { Creator common.Address SubAccountID [32]byte SubAccountNonce *big.Int Raw types.Log // Blockchain specific contextual infos }
FuturesAccountCreation represents a AccountCreation event raised by the Futures contract.
type FuturesAccountCreationIterator ¶
type FuturesAccountCreationIterator struct { Event *FuturesAccountCreation // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FuturesAccountCreationIterator is returned from FilterAccountCreation and is used to iterate over the raw logs and unpacked data for AccountCreation events raised by the Futures contract.
func (*FuturesAccountCreationIterator) Close ¶
func (it *FuturesAccountCreationIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FuturesAccountCreationIterator) Error ¶
func (it *FuturesAccountCreationIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FuturesAccountCreationIterator) Next ¶
func (it *FuturesAccountCreationIterator) 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 FuturesCaller ¶
type FuturesCaller struct {
// contains filtered or unexported fields
}
FuturesCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewFuturesCaller ¶
func NewFuturesCaller(address common.Address, caller bind.ContractCaller) (*FuturesCaller, error)
NewFuturesCaller creates a new read-only instance of Futures, bound to a specific deployed contract.
func (*FuturesCaller) Accounts ¶
func (f *FuturesCaller) Accounts(opts *bind.CallOpts, arg0 [32]byte) (struct { SubAccountID [32]byte SubAccountNonce *big.Int }, error)
Accounts is a free data retrieval call binding the contract method 0xbc529c43.
Solidity: function accounts(bytes32 ) view returns(bytes32 subAccountID, uint256 subAccountNonce)
func (*FuturesCaller) AddressToSubAccountIDs ¶
func (f *FuturesCaller) AddressToSubAccountIDs(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) ([32]byte, error)
AddressToSubAccountIDs is a free data retrieval call binding the contract method 0x07294a8e.
Solidity: function addressToSubAccountIDs(address , uint256 ) view returns(bytes32)
func (*FuturesCaller) AllowedValidators ¶
func (f *FuturesCaller) AllowedValidators(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (bool, error)
AllowedValidators is a free data retrieval call binding the contract method 0x7b8e3514.
Solidity: function allowedValidators(address , address ) view returns(bool)
func (*FuturesCaller) Auction ¶
Auction is a free data retrieval call binding the contract method 0x7d9f6db5.
Solidity: function auction() view returns(address)
func (*FuturesCaller) AuctionTimeInterval ¶
AuctionTimeInterval is a free data retrieval call binding the contract method 0xc583f691.
Solidity: function auctionTimeInterval() view returns(uint256)
func (*FuturesCaller) BaseCurrencies ¶
BaseCurrencies is a free data retrieval call binding the contract method 0x95092e50.
Solidity: function baseCurrencies(uint256 ) view returns(address)
func (*FuturesCaller) CalcCumulativeFunding ¶
func (f *FuturesCaller) CalcCumulativeFunding(opts *bind.CallOpts, marketID [32]byte, cumulativeFundingEntry *big.Int) (*big.Int, error)
CalcCumulativeFunding is a free data retrieval call binding the contract method 0xc5d135da.
Solidity: function calcCumulativeFunding(bytes32 marketID, int256 cumulativeFundingEntry) view returns(int256)
func (*FuturesCaller) CalcLiquidationFee ¶
func (f *FuturesCaller) CalcLiquidationFee(opts *bind.CallOpts, marketID [32]byte, quantity *big.Int) (*big.Int, error)
CalcLiquidationFee is a free data retrieval call binding the contract method 0xbbcac0d3.
Solidity: function calcLiquidationFee(bytes32 marketID, uint256 quantity) view returns(uint256)
func (*FuturesCaller) CalcMinMargin ¶
func (f *FuturesCaller) CalcMinMargin(opts *bind.CallOpts, marketID [32]byte, quantity *big.Int, price *big.Int) (*big.Int, error)
CalcMinMargin is a free data retrieval call binding the contract method 0x35c43c4e.
Solidity: function calcMinMargin(bytes32 marketID, uint256 quantity, uint256 price) view returns(uint256)
func (*FuturesCaller) Cancelled ¶
Cancelled is a free data retrieval call binding the contract method 0x2ac12622.
Solidity: function cancelled(bytes32 ) view returns(bool)
func (*FuturesCaller) ClosePositionMetaTransaction ¶
func (f *FuturesCaller) ClosePositionMetaTransaction(opts *bind.CallOpts, exchangeAddress common.Address, isRevertingOnPartialFills bool, subAccountID [32]byte, marketID [32]byte, closeQuantity *big.Int) error
ClosePositionMetaTransaction is a free data retrieval call binding the contract method 0x1c51d905.
Solidity: function closePositionMetaTransaction(address exchangeAddress, bool isRevertingOnPartialFills, bytes32 subAccountID, bytes32 marketID, uint256 closeQuantity) pure returns()
func (*FuturesCaller) ComputeSubAccountIdFromNonce ¶
func (f *FuturesCaller) ComputeSubAccountIdFromNonce(opts *bind.CallOpts, trader common.Address, subAccountNonce *big.Int) ([32]byte, error)
ComputeSubAccountIdFromNonce is a free data retrieval call binding the contract method 0x2488c4d8.
Solidity: function computeSubAccountIdFromNonce(address trader, uint96 subAccountNonce) pure returns(bytes32)
func (*FuturesCaller) CurrentAuctionEndTime ¶
CurrentAuctionEndTime is a free data retrieval call binding the contract method 0xe196dff1.
Solidity: function currentAuctionEndTime() view returns(uint256)
func (*FuturesCaller) CurrentContextAddress ¶
CurrentContextAddress is a free data retrieval call binding the contract method 0xeea086ba.
Solidity: function currentContextAddress() view returns(address)
func (*FuturesCaller) DoesPositionExist ¶
DoesPositionExist is a free data retrieval call binding the contract method 0x2c12d600.
Solidity: function doesPositionExist(uint256 positionID) view returns(bool)
func (*FuturesCaller) EIP1271MAGICVALUE ¶
func (f *FuturesCaller) EIP1271MAGICVALUE(opts *bind.CallOpts) ([4]byte, error)
EIP1271MAGICVALUE is a free data retrieval call binding the contract method 0xdd885e2d.
Solidity: function EIP1271_MAGIC_VALUE() view returns(bytes4)
func (*FuturesCaller) EIP712EXCHANGEDOMAINHASH ¶
func (f *FuturesCaller) EIP712EXCHANGEDOMAINHASH(opts *bind.CallOpts) ([32]byte, error)
EIP712EXCHANGEDOMAINHASH is a free data retrieval call binding the contract method 0xc26cfecd.
Solidity: function EIP712_EXCHANGE_DOMAIN_HASH() view returns(bytes32)
func (*FuturesCaller) EpochFees ¶
EpochFees is a free data retrieval call binding the contract method 0xfe944a57.
Solidity: function epochFees(address ) view returns(uint256)
func (*FuturesCaller) Filled ¶
Filled is a free data retrieval call binding the contract method 0x288cdc91.
Solidity: function filled(bytes32 ) view returns(uint256)
func (*FuturesCaller) FuturesMarkets ¶
func (f *FuturesCaller) FuturesMarkets(opts *bind.CallOpts, arg0 [32]byte) (struct { MarketID [32]byte BaseCurrency common.Address Ticker string Oracle common.Address InitialMarginRatio PermyriadMathPermyriad MaintenanceMarginRatio PermyriadMathPermyriad IndexPrice *big.Int ExpiryOrNextFundingTimestamp *big.Int FundingInterval *big.Int CumulativeFunding *big.Int TransactionFees TypesTransactionFees }, error)
FuturesMarkets is a free data retrieval call binding the contract method 0x8192ea00.
Solidity: function futuresMarkets(bytes32 ) view returns(bytes32 marketID, address baseCurrency, string ticker, address oracle, (uint256) initialMarginRatio, (uint256) maintenanceMarginRatio, uint256 indexPrice, uint256 expiryOrNextFundingTimestamp, uint256 fundingInterval, int256 cumulativeFunding, ((uint256),(uint256),(uint256)) transactionFees)
func (*FuturesCaller) GetApproved ¶
func (f *FuturesCaller) GetApproved(opts *bind.CallOpts, positionID *big.Int) (common.Address, error)
GetApproved is a free data retrieval call binding the contract method 0x081812fc.
Solidity: function getApproved(uint256 positionID) view returns(address)
func (*FuturesCaller) GetDefaultSubAccountDeposits ¶
func (f *FuturesCaller) GetDefaultSubAccountDeposits(opts *bind.CallOpts, baseCurrency common.Address, trader common.Address) (*big.Int, error)
GetDefaultSubAccountDeposits is a free data retrieval call binding the contract method 0x1883e458.
Solidity: function getDefaultSubAccountDeposits(address baseCurrency, address trader) view returns(uint256)
func (*FuturesCaller) GetDefaultSubAccountIdForTrader ¶
func (f *FuturesCaller) GetDefaultSubAccountIdForTrader(opts *bind.CallOpts, trader common.Address) ([32]byte, error)
GetDefaultSubAccountIdForTrader is a free data retrieval call binding the contract method 0x80755948.
Solidity: function getDefaultSubAccountIdForTrader(address trader) pure returns(bytes32)
func (*FuturesCaller) GetMaxFundingFeeAbs ¶
func (f *FuturesCaller) GetMaxFundingFeeAbs(opts *bind.CallOpts, marketID [32]byte) (*big.Int, error)
GetMaxFundingFeeAbs is a free data retrieval call binding the contract method 0xa9d56fe9.
Solidity: function getMaxFundingFeeAbs(bytes32 marketID) view returns(uint256)
func (*FuturesCaller) GetOrderInfo ¶
GetOrderInfo is a free data retrieval call binding the contract method 0x9d3fa4b9.
Solidity: function getOrderInfo((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes) order) view returns((uint8,bytes32,uint256,bytes32,uint8,bytes32,uint256) orderInfo)
func (*FuturesCaller) GetOrderRelevantState ¶
func (f *FuturesCaller) GetOrderRelevantState(opts *bind.CallOpts, order Order, signature []byte, indexPrice *big.Int) (struct { OrderInfo DerivativeOrderInfo FillableTakerAssetAmount *big.Int IsValidSignature bool }, error)
GetOrderRelevantState is a free data retrieval call binding the contract method 0xef3a29b3.
Solidity: function getOrderRelevantState((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes) order, bytes signature, uint256 indexPrice) view returns((uint8,bytes32,uint256,bytes32,uint8,bytes32,uint256) orderInfo, uint256 fillableTakerAssetAmount, bool isValidSignature)
func (*FuturesCaller) GetOrderRelevantStates ¶
func (f *FuturesCaller) GetOrderRelevantStates(opts *bind.CallOpts, orders []Order, signatures [][]byte) (struct { OrdersInfo []DerivativeOrderInfo FillableTakerAssetAmounts []*big.Int IsValidSignature []bool }, error)
GetOrderRelevantStates is a free data retrieval call binding the contract method 0xe25cabf7.
Solidity: function getOrderRelevantStates((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] orders, bytes[] signatures) view returns((uint8,bytes32,uint256,bytes32,uint8,bytes32,uint256)[] ordersInfo, uint256[] fillableTakerAssetAmounts, bool[] isValidSignature)
func (*FuturesCaller) GetPositionIDsForTrader ¶
func (f *FuturesCaller) GetPositionIDsForTrader(opts *bind.CallOpts, trader common.Address, marketID [32]byte) ([]*big.Int, error)
GetPositionIDsForTrader is a free data retrieval call binding the contract method 0xc3e49bb7.
Solidity: function getPositionIDsForTrader(address trader, bytes32 marketID) view returns(uint256[] positionIDs)
func (*FuturesCaller) GetPositionsForTrader ¶
func (f *FuturesCaller) GetPositionsForTrader(opts *bind.CallOpts, trader common.Address, marketID [32]byte) ([]TypesPosition, error)
GetPositionsForTrader is a free data retrieval call binding the contract method 0x0088e8cc.
Solidity: function getPositionsForTrader(address trader, bytes32 marketID) view returns((bytes32,bytes32,uint8,uint256,uint256,uint256,int256)[])
func (*FuturesCaller) GetReceiptApproved ¶
func (f *FuturesCaller) GetReceiptApproved(opts *bind.CallOpts, receiverSubAccountID [32]byte, positionID *big.Int) (bool, error)
GetReceiptApproved is a free data retrieval call binding the contract method 0x228906c8.
Solidity: function getReceiptApproved(bytes32 receiverSubAccountID, uint256 positionID) view returns(bool)
func (*FuturesCaller) GetTraderSubAccountsCount ¶
func (f *FuturesCaller) GetTraderSubAccountsCount(opts *bind.CallOpts, trader common.Address) (*big.Int, error)
GetTraderSubAccountsCount is a free data retrieval call binding the contract method 0x603ca5dc.
Solidity: function getTraderSubAccountsCount(address trader) view returns(uint256)
func (*FuturesCaller) GetUnitPositionValue ¶
func (f *FuturesCaller) GetUnitPositionValue(opts *bind.CallOpts, positionID *big.Int, priceToUse *big.Int) (*big.Int, error)
GetUnitPositionValue is a free data retrieval call binding the contract method 0x574e2080.
Solidity: function getUnitPositionValue(uint256 positionID, uint256 priceToUse) view returns(int256 unitPositionValue)
func (*FuturesCaller) InsurancePools ¶
InsurancePools is a free data retrieval call binding the contract method 0x2514c1f1.
Solidity: function insurancePools(bytes32 ) view returns(uint256)
func (*FuturesCaller) IsAllowedToReceivePosition ¶
func (f *FuturesCaller) IsAllowedToReceivePosition(opts *bind.CallOpts, positionID *big.Int, sender common.Address, receiverSubAccountID [32]byte) (bool, error)
IsAllowedToReceivePosition is a free data retrieval call binding the contract method 0x57971430.
Solidity: function isAllowedToReceivePosition(uint256 positionID, address sender, bytes32 receiverSubAccountID) view returns(bool)
func (*FuturesCaller) IsAllowedToTransferPosition ¶
func (f *FuturesCaller) IsAllowedToTransferPosition(opts *bind.CallOpts, positionID *big.Int, sender common.Address) (bool, error)
IsAllowedToTransferPosition is a free data retrieval call binding the contract method 0x0e6c0912.
Solidity: function isAllowedToTransferPosition(uint256 positionID, address sender) view returns(bool)
func (*FuturesCaller) IsApprovedForAll ¶
func (f *FuturesCaller) IsApprovedForAll(opts *bind.CallOpts, fromSubAccountID [32]byte, operator common.Address) (bool, error)
IsApprovedForAll is a free data retrieval call binding the contract method 0xb0698628.
Solidity: function isApprovedForAll(bytes32 fromSubAccountID, address operator) view returns(bool)
func (*FuturesCaller) IsApprovedForMarket ¶
func (f *FuturesCaller) IsApprovedForMarket(opts *bind.CallOpts, fromSubAccountID [32]byte, operator common.Address, marketID [32]byte) (bool, error)
IsApprovedForMarket is a free data retrieval call binding the contract method 0x1d37b559.
Solidity: function isApprovedForMarket(bytes32 fromSubAccountID, address operator, bytes32 marketID) view returns(bool)
func (*FuturesCaller) IsFuturesMarketSettled ¶
IsFuturesMarketSettled is a free data retrieval call binding the contract method 0xd5a5c5e2.
Solidity: function isFuturesMarketSettled(bytes32 ) view returns(bool)
func (*FuturesCaller) IsReceiptApprovedForAll ¶
func (f *FuturesCaller) IsReceiptApprovedForAll(opts *bind.CallOpts, receiverSubAccountID [32]byte, operator common.Address) (bool, error)
IsReceiptApprovedForAll is a free data retrieval call binding the contract method 0x2d1792bd.
Solidity: function isReceiptApprovedForAll(bytes32 receiverSubAccountID, address operator) view returns(bool)
func (*FuturesCaller) IsReceiptApprovedForMarket ¶
func (f *FuturesCaller) IsReceiptApprovedForMarket(opts *bind.CallOpts, receiverSubAccountID [32]byte, operator common.Address, marketID [32]byte) (bool, error)
IsReceiptApprovedForMarket is a free data retrieval call binding the contract method 0x218c106c.
Solidity: function isReceiptApprovedForMarket(bytes32 receiverSubAccountID, address operator, bytes32 marketID) view returns(bool)
func (*FuturesCaller) IsTimeExpiryFuturesMarket ¶
func (f *FuturesCaller) IsTimeExpiryFuturesMarket(opts *bind.CallOpts, marketID [32]byte) (bool, error)
IsTimeExpiryFuturesMarket is a free data retrieval call binding the contract method 0x6e664084.
Solidity: function isTimeExpiryFuturesMarket(bytes32 marketID) view returns(bool)
func (*FuturesCaller) IsValidBaseCurrency ¶
IsValidBaseCurrency is a free data retrieval call binding the contract method 0x227cdb85.
Solidity: function isValidBaseCurrency(address ) view returns(bool)
func (*FuturesCaller) IsValidHashSignature ¶
func (f *FuturesCaller) IsValidHashSignature(opts *bind.CallOpts, hash [32]byte, signerAddress common.Address, signature []byte) (bool, error)
IsValidHashSignature is a free data retrieval call binding the contract method 0x8171c407.
Solidity: function isValidHashSignature(bytes32 hash, address signerAddress, bytes signature) view returns(bool isValid)
func (*FuturesCaller) IsValidOrderSignature ¶
func (f *FuturesCaller) IsValidOrderSignature(opts *bind.CallOpts, order Order, signature []byte) (bool, error)
IsValidOrderSignature is a free data retrieval call binding the contract method 0xa12dcc6f.
Solidity: function isValidOrderSignature((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes) order, bytes signature) view returns(bool isValid)
func (*FuturesCaller) IsValidTransactionSignature ¶
func (f *FuturesCaller) IsValidTransactionSignature(opts *bind.CallOpts, transaction LibZeroExTransactionZeroExTransaction, signature []byte) (bool, error)
IsValidTransactionSignature is a free data retrieval call binding the contract method 0x8d45cd23.
Solidity: function isValidTransactionSignature((uint256,uint256,uint256,address,bytes) transaction, bytes signature) view returns(bool isValid)
func (*FuturesCaller) LastValidVWAP ¶
LastValidVWAP is a free data retrieval call binding the contract method 0x42151440.
Solidity: function lastValidVWAP(bytes32 ) view returns(uint256)
func (*FuturesCaller) MINIMUMMARGINRATIO ¶
MINIMUMMARGINRATIO is a free data retrieval call binding the contract method 0xe63f9a7d.
Solidity: function MINIMUM_MARGIN_RATIO() view returns(uint256 value)
func (*FuturesCaller) MarketCount ¶
MarketCount is a free data retrieval call binding the contract method 0xec979082.
Solidity: function marketCount() view returns(uint256)
func (*FuturesCaller) MarketSerialToID ¶
MarketSerialToID is a free data retrieval call binding the contract method 0xbae18473.
Solidity: function marketSerialToID(uint256 ) view returns(bytes32)
func (*FuturesCaller) MaxBaseCurrencyCap ¶
MaxBaseCurrencyCap is a free data retrieval call binding the contract method 0xf8720a75.
Solidity: function maxBaseCurrencyCap() view returns(uint256)
func (*FuturesCaller) MostRecentEpochQuantity ¶
func (f *FuturesCaller) MostRecentEpochQuantity(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
MostRecentEpochQuantity is a free data retrieval call binding the contract method 0xf7a28a1a.
Solidity: function mostRecentEpochQuantity(bytes32 ) view returns(uint256)
func (*FuturesCaller) MostRecentEpochVolume ¶
MostRecentEpochVolume is a free data retrieval call binding the contract method 0x13626422.
Solidity: function mostRecentEpochVolume(bytes32 ) view returns(uint256)
func (*FuturesCaller) MostRecentEpochWeightedAverageContractIndexDiff ¶
func (f *FuturesCaller) MostRecentEpochWeightedAverageContractIndexDiff(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
MostRecentEpochWeightedAverageContractIndexDiff is a free data retrieval call binding the contract method 0x32d22e7d.
Solidity: function mostRecentEpochWeightedAverageContractIndexDiff(bytes32 ) view returns(int256)
func (*FuturesCaller) MostRecentmostRecentEpochVolumeEpochQuantity ¶
func (f *FuturesCaller) MostRecentmostRecentEpochVolumeEpochQuantity(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
MostRecentmostRecentEpochVolumeEpochQuantity is a free data retrieval call binding the contract method 0x45194767.
Solidity: function mostRecentmostRecentEpochVolumeEpochQuantity(bytes32 ) view returns(uint256)
func (*FuturesCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*FuturesCaller) Paused ¶
func (f *FuturesCaller) Paused(opts *bind.CallOpts) (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*FuturesCaller) PositionCount ¶
PositionCount is a free data retrieval call binding the contract method 0xe7702d05.
Solidity: function positionCount() view returns(uint256)
func (*FuturesCaller) PositionCountInTEF ¶
PositionCountInTEF is a free data retrieval call binding the contract method 0x4ded3208.
Solidity: function positionCountInTEF(bytes32 ) view returns(uint256)
func (*FuturesCaller) Positions ¶
func (f *FuturesCaller) Positions(opts *bind.CallOpts, arg0 *big.Int) (struct { SubAccountID [32]byte MarketID [32]byte Direction uint8 Quantity *big.Int EntryPrice *big.Int Margin *big.Int CumulativeFundingEntry *big.Int }, error)
Positions is a free data retrieval call binding the contract method 0x99fbab88.
Solidity: function positions(uint256 ) view returns(bytes32 subAccountID, bytes32 marketID, uint8 direction, uint256 quantity, uint256 entryPrice, uint256 margin, int256 cumulativeFundingEntry)
func (*FuturesCaller) PreSigned ¶
func (f *FuturesCaller) PreSigned(opts *bind.CallOpts, arg0 [32]byte, arg1 common.Address) (bool, error)
PreSigned is a free data retrieval call binding the contract method 0x82c174d0.
Solidity: function preSigned(bytes32 , address ) view returns(bool)
func (*FuturesCaller) RestrictedDeposits ¶
func (f *FuturesCaller) RestrictedDeposits(opts *bind.CallOpts, arg0 [32]byte, arg1 common.Address) (*big.Int, error)
RestrictedDeposits is a free data retrieval call binding the contract method 0x475ca0bb.
Solidity: function restrictedDeposits(bytes32 , address ) view returns(uint256)
func (*FuturesCaller) SpotMarkets ¶
func (f *FuturesCaller) SpotMarkets(opts *bind.CallOpts, arg0 [32]byte) (struct { MarketID [32]byte BaseToken common.Address QuoteToken common.Address Ticker string TransactionFees TypesTransactionFees }, error)
SpotMarkets is a free data retrieval call binding the contract method 0xf5aa035e.
Solidity: function spotMarkets(bytes32 ) view returns(bytes32 marketID, address baseToken, address quoteToken, string ticker, ((uint256),(uint256),(uint256)) transactionFees)
func (*FuturesCaller) SubAccountDeposits ¶
func (f *FuturesCaller) SubAccountDeposits(opts *bind.CallOpts, arg0 [32]byte, arg1 common.Address) (*big.Int, error)
SubAccountDeposits is a free data retrieval call binding the contract method 0x666ffb9b.
Solidity: function subAccountDeposits(bytes32 , address ) view returns(uint256)
func (*FuturesCaller) SubAccountIdToAddress ¶
func (f *FuturesCaller) SubAccountIdToAddress(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error)
SubAccountIdToAddress is a free data retrieval call binding the contract method 0x234842eb.
Solidity: function subAccountIdToAddress(bytes32 ) view returns(address)
func (*FuturesCaller) SubAccountToMarketToPositionID ¶
func (f *FuturesCaller) SubAccountToMarketToPositionID(opts *bind.CallOpts, arg0 [32]byte, arg1 [32]byte) (*big.Int, error)
SubAccountToMarketToPositionID is a free data retrieval call binding the contract method 0x1ebcc120.
Solidity: function subAccountToMarketToPositionID(bytes32 , bytes32 ) view returns(uint256)
func (*FuturesCaller) TECADDRESS ¶
TECADDRESS is a free data retrieval call binding the contract method 0xe6077ac2.
Solidity: function TEC_ADDRESS() view returns(address)
func (*FuturesCaller) TransactionsExecuted ¶
TransactionsExecuted is a free data retrieval call binding the contract method 0x0228e168.
Solidity: function transactionsExecuted(bytes32 ) view returns(bool)
type FuturesCallerRaw ¶
type FuturesCallerRaw struct {
Contract *FuturesCaller // Generic read-only contract binding to access the raw methods on
}
FuturesCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*FuturesCallerRaw) Call ¶
func (f *FuturesCallerRaw) 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 FuturesCallerSession ¶
type FuturesCallerSession struct { Contract *FuturesCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
FuturesCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*FuturesCallerSession) Accounts ¶
func (f *FuturesCallerSession) Accounts(arg0 [32]byte) (struct { SubAccountID [32]byte SubAccountNonce *big.Int }, error)
Accounts is a free data retrieval call binding the contract method 0xbc529c43.
Solidity: function accounts(bytes32 ) view returns(bytes32 subAccountID, uint256 subAccountNonce)
func (*FuturesCallerSession) AddressToSubAccountIDs ¶
func (f *FuturesCallerSession) AddressToSubAccountIDs(arg0 common.Address, arg1 *big.Int) ([32]byte, error)
AddressToSubAccountIDs is a free data retrieval call binding the contract method 0x07294a8e.
Solidity: function addressToSubAccountIDs(address , uint256 ) view returns(bytes32)
func (*FuturesCallerSession) AllowedValidators ¶
func (f *FuturesCallerSession) AllowedValidators(arg0 common.Address, arg1 common.Address) (bool, error)
AllowedValidators is a free data retrieval call binding the contract method 0x7b8e3514.
Solidity: function allowedValidators(address , address ) view returns(bool)
func (*FuturesCallerSession) Auction ¶
func (f *FuturesCallerSession) Auction() (common.Address, error)
Auction is a free data retrieval call binding the contract method 0x7d9f6db5.
Solidity: function auction() view returns(address)
func (*FuturesCallerSession) AuctionTimeInterval ¶
func (f *FuturesCallerSession) AuctionTimeInterval() (*big.Int, error)
AuctionTimeInterval is a free data retrieval call binding the contract method 0xc583f691.
Solidity: function auctionTimeInterval() view returns(uint256)
func (*FuturesCallerSession) BaseCurrencies ¶
BaseCurrencies is a free data retrieval call binding the contract method 0x95092e50.
Solidity: function baseCurrencies(uint256 ) view returns(address)
func (*FuturesCallerSession) CalcCumulativeFunding ¶
func (f *FuturesCallerSession) CalcCumulativeFunding(marketID [32]byte, cumulativeFundingEntry *big.Int) (*big.Int, error)
CalcCumulativeFunding is a free data retrieval call binding the contract method 0xc5d135da.
Solidity: function calcCumulativeFunding(bytes32 marketID, int256 cumulativeFundingEntry) view returns(int256)
func (*FuturesCallerSession) CalcLiquidationFee ¶
func (f *FuturesCallerSession) CalcLiquidationFee(marketID [32]byte, quantity *big.Int) (*big.Int, error)
CalcLiquidationFee is a free data retrieval call binding the contract method 0xbbcac0d3.
Solidity: function calcLiquidationFee(bytes32 marketID, uint256 quantity) view returns(uint256)
func (*FuturesCallerSession) CalcMinMargin ¶
func (f *FuturesCallerSession) CalcMinMargin(marketID [32]byte, quantity *big.Int, price *big.Int) (*big.Int, error)
CalcMinMargin is a free data retrieval call binding the contract method 0x35c43c4e.
Solidity: function calcMinMargin(bytes32 marketID, uint256 quantity, uint256 price) view returns(uint256)
func (*FuturesCallerSession) Cancelled ¶
func (f *FuturesCallerSession) Cancelled(arg0 [32]byte) (bool, error)
Cancelled is a free data retrieval call binding the contract method 0x2ac12622.
Solidity: function cancelled(bytes32 ) view returns(bool)
func (*FuturesCallerSession) ClosePositionMetaTransaction ¶
func (f *FuturesCallerSession) ClosePositionMetaTransaction(exchangeAddress common.Address, isRevertingOnPartialFills bool, subAccountID [32]byte, marketID [32]byte, closeQuantity *big.Int) error
ClosePositionMetaTransaction is a free data retrieval call binding the contract method 0x1c51d905.
Solidity: function closePositionMetaTransaction(address exchangeAddress, bool isRevertingOnPartialFills, bytes32 subAccountID, bytes32 marketID, uint256 closeQuantity) pure returns()
func (*FuturesCallerSession) ComputeSubAccountIdFromNonce ¶
func (f *FuturesCallerSession) ComputeSubAccountIdFromNonce(trader common.Address, subAccountNonce *big.Int) ([32]byte, error)
ComputeSubAccountIdFromNonce is a free data retrieval call binding the contract method 0x2488c4d8.
Solidity: function computeSubAccountIdFromNonce(address trader, uint96 subAccountNonce) pure returns(bytes32)
func (*FuturesCallerSession) CurrentAuctionEndTime ¶
func (f *FuturesCallerSession) CurrentAuctionEndTime() (*big.Int, error)
CurrentAuctionEndTime is a free data retrieval call binding the contract method 0xe196dff1.
Solidity: function currentAuctionEndTime() view returns(uint256)
func (*FuturesCallerSession) CurrentContextAddress ¶
func (f *FuturesCallerSession) CurrentContextAddress() (common.Address, error)
CurrentContextAddress is a free data retrieval call binding the contract method 0xeea086ba.
Solidity: function currentContextAddress() view returns(address)
func (*FuturesCallerSession) DoesPositionExist ¶
func (f *FuturesCallerSession) DoesPositionExist(positionID *big.Int) (bool, error)
DoesPositionExist is a free data retrieval call binding the contract method 0x2c12d600.
Solidity: function doesPositionExist(uint256 positionID) view returns(bool)
func (*FuturesCallerSession) EIP1271MAGICVALUE ¶
func (f *FuturesCallerSession) EIP1271MAGICVALUE() ([4]byte, error)
EIP1271MAGICVALUE is a free data retrieval call binding the contract method 0xdd885e2d.
Solidity: function EIP1271_MAGIC_VALUE() view returns(bytes4)
func (*FuturesCallerSession) EIP712EXCHANGEDOMAINHASH ¶
func (f *FuturesCallerSession) EIP712EXCHANGEDOMAINHASH() ([32]byte, error)
EIP712EXCHANGEDOMAINHASH is a free data retrieval call binding the contract method 0xc26cfecd.
Solidity: function EIP712_EXCHANGE_DOMAIN_HASH() view returns(bytes32)
func (*FuturesCallerSession) EpochFees ¶
EpochFees is a free data retrieval call binding the contract method 0xfe944a57.
Solidity: function epochFees(address ) view returns(uint256)
func (*FuturesCallerSession) Filled ¶
func (f *FuturesCallerSession) Filled(arg0 [32]byte) (*big.Int, error)
Filled is a free data retrieval call binding the contract method 0x288cdc91.
Solidity: function filled(bytes32 ) view returns(uint256)
func (*FuturesCallerSession) FuturesMarkets ¶
func (f *FuturesCallerSession) FuturesMarkets(arg0 [32]byte) (struct { MarketID [32]byte BaseCurrency common.Address Ticker string Oracle common.Address InitialMarginRatio PermyriadMathPermyriad MaintenanceMarginRatio PermyriadMathPermyriad IndexPrice *big.Int ExpiryOrNextFundingTimestamp *big.Int FundingInterval *big.Int CumulativeFunding *big.Int TransactionFees TypesTransactionFees }, error)
FuturesMarkets is a free data retrieval call binding the contract method 0x8192ea00.
Solidity: function futuresMarkets(bytes32 ) view returns(bytes32 marketID, address baseCurrency, string ticker, address oracle, (uint256) initialMarginRatio, (uint256) maintenanceMarginRatio, uint256 indexPrice, uint256 expiryOrNextFundingTimestamp, uint256 fundingInterval, int256 cumulativeFunding, ((uint256),(uint256),(uint256)) transactionFees)
func (*FuturesCallerSession) GetApproved ¶
GetApproved is a free data retrieval call binding the contract method 0x081812fc.
Solidity: function getApproved(uint256 positionID) view returns(address)
func (*FuturesCallerSession) GetDefaultSubAccountDeposits ¶
func (f *FuturesCallerSession) GetDefaultSubAccountDeposits(baseCurrency common.Address, trader common.Address) (*big.Int, error)
GetDefaultSubAccountDeposits is a free data retrieval call binding the contract method 0x1883e458.
Solidity: function getDefaultSubAccountDeposits(address baseCurrency, address trader) view returns(uint256)
func (*FuturesCallerSession) GetDefaultSubAccountIdForTrader ¶
func (f *FuturesCallerSession) GetDefaultSubAccountIdForTrader(trader common.Address) ([32]byte, error)
GetDefaultSubAccountIdForTrader is a free data retrieval call binding the contract method 0x80755948.
Solidity: function getDefaultSubAccountIdForTrader(address trader) pure returns(bytes32)
func (*FuturesCallerSession) GetMaxFundingFeeAbs ¶
func (f *FuturesCallerSession) GetMaxFundingFeeAbs(marketID [32]byte) (*big.Int, error)
GetMaxFundingFeeAbs is a free data retrieval call binding the contract method 0xa9d56fe9.
Solidity: function getMaxFundingFeeAbs(bytes32 marketID) view returns(uint256)
func (*FuturesCallerSession) GetOrderInfo ¶
func (f *FuturesCallerSession) GetOrderInfo(order Order) (OrderInfo, error)
GetOrderInfo is a free data retrieval call binding the contract method 0x9d3fa4b9.
Solidity: function getOrderInfo((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes) order) view returns((uint8,bytes32,uint256,bytes32,uint8,bytes32,uint256) orderInfo)
func (*FuturesCallerSession) GetOrderRelevantState ¶
func (f *FuturesCallerSession) GetOrderRelevantState(order Order, signature []byte, indexPrice *big.Int) (struct { OrderInfo DerivativeOrderInfo FillableTakerAssetAmount *big.Int IsValidSignature bool }, error)
GetOrderRelevantState is a free data retrieval call binding the contract method 0xef3a29b3.
Solidity: function getOrderRelevantState((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes) order, bytes signature, uint256 indexPrice) view returns((uint8,bytes32,uint256,bytes32,uint8,bytes32,uint256) orderInfo, uint256 fillableTakerAssetAmount, bool isValidSignature)
func (*FuturesCallerSession) GetOrderRelevantStates ¶
func (f *FuturesCallerSession) GetOrderRelevantStates(orders []Order, signatures [][]byte) (struct { OrdersInfo []DerivativeOrderInfo FillableTakerAssetAmounts []*big.Int IsValidSignature []bool }, error)
GetOrderRelevantStates is a free data retrieval call binding the contract method 0xe25cabf7.
Solidity: function getOrderRelevantStates((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] orders, bytes[] signatures) view returns((uint8,bytes32,uint256,bytes32,uint8,bytes32,uint256)[] ordersInfo, uint256[] fillableTakerAssetAmounts, bool[] isValidSignature)
func (*FuturesCallerSession) GetPositionIDsForTrader ¶
func (f *FuturesCallerSession) GetPositionIDsForTrader(trader common.Address, marketID [32]byte) ([]*big.Int, error)
GetPositionIDsForTrader is a free data retrieval call binding the contract method 0xc3e49bb7.
Solidity: function getPositionIDsForTrader(address trader, bytes32 marketID) view returns(uint256[] positionIDs)
func (*FuturesCallerSession) GetPositionsForTrader ¶
func (f *FuturesCallerSession) GetPositionsForTrader(trader common.Address, marketID [32]byte) ([]TypesPosition, error)
GetPositionsForTrader is a free data retrieval call binding the contract method 0x0088e8cc.
Solidity: function getPositionsForTrader(address trader, bytes32 marketID) view returns((bytes32,bytes32,uint8,uint256,uint256,uint256,int256)[])
func (*FuturesCallerSession) GetReceiptApproved ¶
func (f *FuturesCallerSession) GetReceiptApproved(receiverSubAccountID [32]byte, positionID *big.Int) (bool, error)
GetReceiptApproved is a free data retrieval call binding the contract method 0x228906c8.
Solidity: function getReceiptApproved(bytes32 receiverSubAccountID, uint256 positionID) view returns(bool)
func (*FuturesCallerSession) GetTraderSubAccountsCount ¶
GetTraderSubAccountsCount is a free data retrieval call binding the contract method 0x603ca5dc.
Solidity: function getTraderSubAccountsCount(address trader) view returns(uint256)
func (*FuturesCallerSession) GetUnitPositionValue ¶
func (f *FuturesCallerSession) GetUnitPositionValue(positionID *big.Int, priceToUse *big.Int) (*big.Int, error)
GetUnitPositionValue is a free data retrieval call binding the contract method 0x574e2080.
Solidity: function getUnitPositionValue(uint256 positionID, uint256 priceToUse) view returns(int256 unitPositionValue)
func (*FuturesCallerSession) InsurancePools ¶
func (f *FuturesCallerSession) InsurancePools(arg0 [32]byte) (*big.Int, error)
InsurancePools is a free data retrieval call binding the contract method 0x2514c1f1.
Solidity: function insurancePools(bytes32 ) view returns(uint256)
func (*FuturesCallerSession) IsAllowedToReceivePosition ¶
func (f *FuturesCallerSession) IsAllowedToReceivePosition(positionID *big.Int, sender common.Address, receiverSubAccountID [32]byte) (bool, error)
IsAllowedToReceivePosition is a free data retrieval call binding the contract method 0x57971430.
Solidity: function isAllowedToReceivePosition(uint256 positionID, address sender, bytes32 receiverSubAccountID) view returns(bool)
func (*FuturesCallerSession) IsAllowedToTransferPosition ¶
func (f *FuturesCallerSession) IsAllowedToTransferPosition(positionID *big.Int, sender common.Address) (bool, error)
IsAllowedToTransferPosition is a free data retrieval call binding the contract method 0x0e6c0912.
Solidity: function isAllowedToTransferPosition(uint256 positionID, address sender) view returns(bool)
func (*FuturesCallerSession) IsApprovedForAll ¶
func (f *FuturesCallerSession) IsApprovedForAll(fromSubAccountID [32]byte, operator common.Address) (bool, error)
IsApprovedForAll is a free data retrieval call binding the contract method 0xb0698628.
Solidity: function isApprovedForAll(bytes32 fromSubAccountID, address operator) view returns(bool)
func (*FuturesCallerSession) IsApprovedForMarket ¶
func (f *FuturesCallerSession) IsApprovedForMarket(fromSubAccountID [32]byte, operator common.Address, marketID [32]byte) (bool, error)
IsApprovedForMarket is a free data retrieval call binding the contract method 0x1d37b559.
Solidity: function isApprovedForMarket(bytes32 fromSubAccountID, address operator, bytes32 marketID) view returns(bool)
func (*FuturesCallerSession) IsFuturesMarketSettled ¶
func (f *FuturesCallerSession) IsFuturesMarketSettled(arg0 [32]byte) (bool, error)
IsFuturesMarketSettled is a free data retrieval call binding the contract method 0xd5a5c5e2.
Solidity: function isFuturesMarketSettled(bytes32 ) view returns(bool)
func (*FuturesCallerSession) IsReceiptApprovedForAll ¶
func (f *FuturesCallerSession) IsReceiptApprovedForAll(receiverSubAccountID [32]byte, operator common.Address) (bool, error)
IsReceiptApprovedForAll is a free data retrieval call binding the contract method 0x2d1792bd.
Solidity: function isReceiptApprovedForAll(bytes32 receiverSubAccountID, address operator) view returns(bool)
func (*FuturesCallerSession) IsReceiptApprovedForMarket ¶
func (f *FuturesCallerSession) IsReceiptApprovedForMarket(receiverSubAccountID [32]byte, operator common.Address, marketID [32]byte) (bool, error)
IsReceiptApprovedForMarket is a free data retrieval call binding the contract method 0x218c106c.
Solidity: function isReceiptApprovedForMarket(bytes32 receiverSubAccountID, address operator, bytes32 marketID) view returns(bool)
func (*FuturesCallerSession) IsTimeExpiryFuturesMarket ¶
func (f *FuturesCallerSession) IsTimeExpiryFuturesMarket(marketID [32]byte) (bool, error)
IsTimeExpiryFuturesMarket is a free data retrieval call binding the contract method 0x6e664084.
Solidity: function isTimeExpiryFuturesMarket(bytes32 marketID) view returns(bool)
func (*FuturesCallerSession) IsValidBaseCurrency ¶
func (f *FuturesCallerSession) IsValidBaseCurrency(arg0 common.Address) (bool, error)
IsValidBaseCurrency is a free data retrieval call binding the contract method 0x227cdb85.
Solidity: function isValidBaseCurrency(address ) view returns(bool)
func (*FuturesCallerSession) IsValidHashSignature ¶
func (f *FuturesCallerSession) IsValidHashSignature(hash [32]byte, signerAddress common.Address, signature []byte) (bool, error)
IsValidHashSignature is a free data retrieval call binding the contract method 0x8171c407.
Solidity: function isValidHashSignature(bytes32 hash, address signerAddress, bytes signature) view returns(bool isValid)
func (*FuturesCallerSession) IsValidOrderSignature ¶
func (f *FuturesCallerSession) IsValidOrderSignature(order Order, signature []byte) (bool, error)
IsValidOrderSignature is a free data retrieval call binding the contract method 0xa12dcc6f.
Solidity: function isValidOrderSignature((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes) order, bytes signature) view returns(bool isValid)
func (*FuturesCallerSession) IsValidTransactionSignature ¶
func (f *FuturesCallerSession) IsValidTransactionSignature(transaction LibZeroExTransactionZeroExTransaction, signature []byte) (bool, error)
IsValidTransactionSignature is a free data retrieval call binding the contract method 0x8d45cd23.
Solidity: function isValidTransactionSignature((uint256,uint256,uint256,address,bytes) transaction, bytes signature) view returns(bool isValid)
func (*FuturesCallerSession) LastValidVWAP ¶
func (f *FuturesCallerSession) LastValidVWAP(arg0 [32]byte) (*big.Int, error)
LastValidVWAP is a free data retrieval call binding the contract method 0x42151440.
Solidity: function lastValidVWAP(bytes32 ) view returns(uint256)
func (*FuturesCallerSession) MINIMUMMARGINRATIO ¶
func (f *FuturesCallerSession) MINIMUMMARGINRATIO() (*big.Int, error)
MINIMUMMARGINRATIO is a free data retrieval call binding the contract method 0xe63f9a7d.
Solidity: function MINIMUM_MARGIN_RATIO() view returns(uint256 value)
func (*FuturesCallerSession) MarketCount ¶
func (f *FuturesCallerSession) MarketCount() (*big.Int, error)
MarketCount is a free data retrieval call binding the contract method 0xec979082.
Solidity: function marketCount() view returns(uint256)
func (*FuturesCallerSession) MarketSerialToID ¶
func (f *FuturesCallerSession) MarketSerialToID(arg0 *big.Int) ([32]byte, error)
MarketSerialToID is a free data retrieval call binding the contract method 0xbae18473.
Solidity: function marketSerialToID(uint256 ) view returns(bytes32)
func (*FuturesCallerSession) MaxBaseCurrencyCap ¶
func (f *FuturesCallerSession) MaxBaseCurrencyCap() (*big.Int, error)
MaxBaseCurrencyCap is a free data retrieval call binding the contract method 0xf8720a75.
Solidity: function maxBaseCurrencyCap() view returns(uint256)
func (*FuturesCallerSession) MostRecentEpochQuantity ¶
func (f *FuturesCallerSession) MostRecentEpochQuantity(arg0 [32]byte) (*big.Int, error)
MostRecentEpochQuantity is a free data retrieval call binding the contract method 0xf7a28a1a.
Solidity: function mostRecentEpochQuantity(bytes32 ) view returns(uint256)
func (*FuturesCallerSession) MostRecentEpochVolume ¶
func (f *FuturesCallerSession) MostRecentEpochVolume(arg0 [32]byte) (*big.Int, error)
MostRecentEpochVolume is a free data retrieval call binding the contract method 0x13626422.
Solidity: function mostRecentEpochVolume(bytes32 ) view returns(uint256)
func (*FuturesCallerSession) MostRecentEpochWeightedAverageContractIndexDiff ¶
func (f *FuturesCallerSession) MostRecentEpochWeightedAverageContractIndexDiff(arg0 [32]byte) (*big.Int, error)
MostRecentEpochWeightedAverageContractIndexDiff is a free data retrieval call binding the contract method 0x32d22e7d.
Solidity: function mostRecentEpochWeightedAverageContractIndexDiff(bytes32 ) view returns(int256)
func (*FuturesCallerSession) MostRecentmostRecentEpochVolumeEpochQuantity ¶
func (f *FuturesCallerSession) MostRecentmostRecentEpochVolumeEpochQuantity(arg0 [32]byte) (*big.Int, error)
MostRecentmostRecentEpochVolumeEpochQuantity is a free data retrieval call binding the contract method 0x45194767.
Solidity: function mostRecentmostRecentEpochVolumeEpochQuantity(bytes32 ) view returns(uint256)
func (*FuturesCallerSession) Owner ¶
func (f *FuturesCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*FuturesCallerSession) Paused ¶
func (f *FuturesCallerSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*FuturesCallerSession) PositionCount ¶
func (f *FuturesCallerSession) PositionCount() (*big.Int, error)
PositionCount is a free data retrieval call binding the contract method 0xe7702d05.
Solidity: function positionCount() view returns(uint256)
func (*FuturesCallerSession) PositionCountInTEF ¶
func (f *FuturesCallerSession) PositionCountInTEF(arg0 [32]byte) (*big.Int, error)
PositionCountInTEF is a free data retrieval call binding the contract method 0x4ded3208.
Solidity: function positionCountInTEF(bytes32 ) view returns(uint256)
func (*FuturesCallerSession) Positions ¶
func (f *FuturesCallerSession) Positions(arg0 *big.Int) (struct { SubAccountID [32]byte MarketID [32]byte Direction uint8 Quantity *big.Int EntryPrice *big.Int Margin *big.Int CumulativeFundingEntry *big.Int }, error)
Positions is a free data retrieval call binding the contract method 0x99fbab88.
Solidity: function positions(uint256 ) view returns(bytes32 subAccountID, bytes32 marketID, uint8 direction, uint256 quantity, uint256 entryPrice, uint256 margin, int256 cumulativeFundingEntry)
func (*FuturesCallerSession) PreSigned ¶
PreSigned is a free data retrieval call binding the contract method 0x82c174d0.
Solidity: function preSigned(bytes32 , address ) view returns(bool)
func (*FuturesCallerSession) RestrictedDeposits ¶
func (f *FuturesCallerSession) RestrictedDeposits(arg0 [32]byte, arg1 common.Address) (*big.Int, error)
RestrictedDeposits is a free data retrieval call binding the contract method 0x475ca0bb.
Solidity: function restrictedDeposits(bytes32 , address ) view returns(uint256)
func (*FuturesCallerSession) SpotMarkets ¶
func (f *FuturesCallerSession) SpotMarkets(arg0 [32]byte) (struct { MarketID [32]byte BaseToken common.Address QuoteToken common.Address Ticker string TransactionFees TypesTransactionFees }, error)
SpotMarkets is a free data retrieval call binding the contract method 0xf5aa035e.
Solidity: function spotMarkets(bytes32 ) view returns(bytes32 marketID, address baseToken, address quoteToken, string ticker, ((uint256),(uint256),(uint256)) transactionFees)
func (*FuturesCallerSession) SubAccountDeposits ¶
func (f *FuturesCallerSession) SubAccountDeposits(arg0 [32]byte, arg1 common.Address) (*big.Int, error)
SubAccountDeposits is a free data retrieval call binding the contract method 0x666ffb9b.
Solidity: function subAccountDeposits(bytes32 , address ) view returns(uint256)
func (*FuturesCallerSession) SubAccountIdToAddress ¶
func (f *FuturesCallerSession) SubAccountIdToAddress(arg0 [32]byte) (common.Address, error)
SubAccountIdToAddress is a free data retrieval call binding the contract method 0x234842eb.
Solidity: function subAccountIdToAddress(bytes32 ) view returns(address)
func (*FuturesCallerSession) SubAccountToMarketToPositionID ¶
func (f *FuturesCallerSession) SubAccountToMarketToPositionID(arg0 [32]byte, arg1 [32]byte) (*big.Int, error)
SubAccountToMarketToPositionID is a free data retrieval call binding the contract method 0x1ebcc120.
Solidity: function subAccountToMarketToPositionID(bytes32 , bytes32 ) view returns(uint256)
func (*FuturesCallerSession) TECADDRESS ¶
func (f *FuturesCallerSession) TECADDRESS() (common.Address, error)
TECADDRESS is a free data retrieval call binding the contract method 0xe6077ac2.
Solidity: function TEC_ADDRESS() view returns(address)
func (*FuturesCallerSession) TransactionsExecuted ¶
func (f *FuturesCallerSession) TransactionsExecuted(arg0 [32]byte) (bool, error)
TransactionsExecuted is a free data retrieval call binding the contract method 0x0228e168.
Solidity: function transactionsExecuted(bytes32 ) view returns(bool)
type FuturesCancel ¶
type FuturesCancel struct { SubAccountID [32]byte OrderHash [32]byte MarketID [32]byte BaseCurrency common.Address ContractPrice *big.Int QuantityFilled *big.Int IsLong bool Raw types.Log // Blockchain specific contextual infos }
FuturesCancel represents a FuturesCancel event raised by the Futures contract.
type FuturesCancelIterator ¶
type FuturesCancelIterator struct { Event *FuturesCancel // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FuturesCancelIterator is returned from FilterFuturesCancel and is used to iterate over the raw logs and unpacked data for FuturesCancel events raised by the Futures contract.
func (*FuturesCancelIterator) Close ¶
func (it *FuturesCancelIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FuturesCancelIterator) Error ¶
func (it *FuturesCancelIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FuturesCancelIterator) Next ¶
func (it *FuturesCancelIterator) 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 FuturesFilterer ¶
type FuturesFilterer struct {
// contains filtered or unexported fields
}
FuturesFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewFuturesFilterer ¶
func NewFuturesFilterer(address common.Address, filterer bind.ContractFilterer) (*FuturesFilterer, error)
NewFuturesFilterer creates a new log filterer instance of Futures, bound to a specific deployed contract.
func (*FuturesFilterer) FilterAccountCreation ¶
func (f *FuturesFilterer) FilterAccountCreation(opts *bind.FilterOpts, creator []common.Address) (*FuturesAccountCreationIterator, error)
FilterAccountCreation is a free log retrieval operation binding the contract event 0x6da62924036c396387aa0340b6df622a60ea3f2dcd19bd4a7d77df13013f3043.
Solidity: event AccountCreation(address indexed creator, bytes32 subAccountID, uint96 subAccountNonce)
func (*FuturesFilterer) FilterFuturesCancel ¶
func (f *FuturesFilterer) FilterFuturesCancel(opts *bind.FilterOpts, subAccountID [][32]byte, orderHash [][32]byte, marketID [][32]byte) (*FuturesCancelIterator, error)
FilterFuturesCancel is a free log retrieval operation binding the contract event 0x7197f6513c22ccffd678f7d190c7c57116b046d6ea34e83c1ba7fd841f966ec4.
Solidity: event FuturesCancel(bytes32 indexed subAccountID, bytes32 indexed orderHash, bytes32 indexed marketID, address baseCurrency, uint256 contractPrice, uint256 quantityFilled, bool isLong)
func (*FuturesFilterer) FilterFuturesMarketCreation ¶
func (f *FuturesFilterer) FilterFuturesMarketCreation(opts *bind.FilterOpts, marketID [][32]byte, ticker []string, oracle []common.Address) (*FuturesMarketCreationIterator, error)
FilterFuturesMarketCreation is a free log retrieval operation binding the contract event 0xec7604a06b6f1d53d9f93d29b6df434191db13fab896b33d7ac38c636a5923c2.
Solidity: event FuturesMarketCreation(bytes32 indexed marketID, string indexed ticker, address indexed oracle, address baseCurrency, uint256 maintenanceMarginRatio, uint256 initialMarginRatio, uint256 makerTxFee, uint256 takerTxFee, uint256 relayerFeePercentage, uint256 fundingInterval, uint256 expirationTime)
func (*FuturesFilterer) FilterFuturesTrade ¶
func (f *FuturesFilterer) FilterFuturesTrade(opts *bind.FilterOpts, marketID [][32]byte, subAccountID [][32]byte, orderHash [][32]byte) (*FuturesTradeIterator, error)
FilterFuturesTrade is a free log retrieval operation binding the contract event 0x2ee27d89e8394df57c5c3e6c07c03c128cc28e35450ee92fcdb9990932ec564e.
Solidity: event FuturesTrade(bool isResultingPositionLong, uint256 positionID, bytes32 indexed marketID, bytes32 indexed subAccountID, uint256 resultingMargin, uint256 resultingEntryPrice, uint256 resultingQuantity, int256 cumulativeFundingEntry, bool isTradeDirectionLong, bytes32 indexed orderHash, uint256 executionPrice, uint256 executionQuantity, uint256 totalForOrderFilled, uint8 tradeType)
func (*FuturesFilterer) FilterMarginChanged ¶
func (f *FuturesFilterer) FilterMarginChanged(opts *bind.FilterOpts, positionID []*big.Int) (*FuturesMarginChangedIterator, error)
FilterMarginChanged is a free log retrieval operation binding the contract event 0x6bbd00a8b71e37b424550ee42f7d18af2790fc0a874cbd296c6705205b298d00.
Solidity: event MarginChanged(uint256 indexed positionID, int256 changedMargin)
func (*FuturesFilterer) FilterOwnershipTransferred ¶
func (f *FuturesFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*FuturesOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*FuturesFilterer) FilterPaused ¶
func (f *FuturesFilterer) FilterPaused(opts *bind.FilterOpts) (*FuturesPausedIterator, error)
FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*FuturesFilterer) FilterPositionTransfer ¶
func (f *FuturesFilterer) FilterPositionTransfer(opts *bind.FilterOpts, fromSubAccountID [][32]byte, toSubAccountID [][32]byte) (*FuturesPositionTransferIterator, error)
FilterPositionTransfer is a free log retrieval operation binding the contract event 0xdea221d5d06ee8a5f9f089295d3292f2f89c054d223c4a3c452d4d90df510402.
Solidity: event PositionTransfer(uint256 senderPositionID, uint256 receiverPositionID, bytes32 indexed fromSubAccountID, bytes32 indexed toSubAccountID, bytes32 marketID, uint8 directionalStatus, uint256 srcResultingPositionMargin, uint256 srcResultingPositionEntryPrice, uint256 srcResultingPositionQuantity, int256 srcResultingPositionCumulativeFundingEntry, uint256 destResultingPositionMargin, uint256 destResultingPositionEntryPrice, uint256 destResultingPositionQuantity, int256 destResultingPositionCumulativeFundingEntry)
func (*FuturesFilterer) FilterSetFunding ¶
func (f *FuturesFilterer) FilterSetFunding(opts *bind.FilterOpts, marketID [][32]byte) (*FuturesSetFundingIterator, error)
FilterSetFunding is a free log retrieval operation binding the contract event 0x4f78e101b9f3e3fbc0cab373ac4f3bc7f68f50610c03844ec1293dd9cd78a35d.
Solidity: event SetFunding(bytes32 indexed marketID, int256 fundingFee, int256 cumulativeFunding, uint256 expiryOrNextFundingTimestamp)
func (*FuturesFilterer) FilterSignatureValidatorApproval ¶
func (f *FuturesFilterer) FilterSignatureValidatorApproval(opts *bind.FilterOpts, signerAddress []common.Address, validatorAddress []common.Address) (*FuturesSignatureValidatorApprovalIterator, error)
FilterSignatureValidatorApproval is a free log retrieval operation binding the contract event 0xa8656e308026eeabce8f0bc18048433252318ab80ac79da0b3d3d8697dfba891.
Solidity: event SignatureValidatorApproval(address indexed signerAddress, address indexed validatorAddress, bool isApproved)
func (*FuturesFilterer) FilterSpotMarketCreation ¶
func (f *FuturesFilterer) FilterSpotMarketCreation(opts *bind.FilterOpts, marketID [][32]byte, ticker []string) (*FuturesSpotMarketCreationIterator, error)
FilterSpotMarketCreation is a free log retrieval operation binding the contract event 0x36e5492cb554023c13d9df48b0fa6b166ccd07ea459dd0098d89052bf0775f7a.
Solidity: event SpotMarketCreation(bytes32 indexed marketID, string indexed ticker, address baseToken, address quoteToken, uint256 makerTxFee, uint256 takerTxFee, uint256 relayerFeePercentage)
func (*FuturesFilterer) FilterSpotTrade ¶
func (f *FuturesFilterer) FilterSpotTrade(opts *bind.FilterOpts, marketID [][32]byte, subAccountID [][32]byte, orderHash [][32]byte) (*FuturesSpotTradeIterator, error)
FilterSpotTrade is a free log retrieval operation binding the contract event 0xf0283823dfd5d2cf09704eb9d26d1f5098a512c6d7a7b4a74ca0927230c27699.
Solidity: event SpotTrade(bytes32 indexed marketID, bytes32 indexed subAccountID, bytes32 indexed orderHash, address sentAsset, address gainedAsset, uint256 sentAmount, uint256 gainedAmount, uint256 currentSentAssetDeposits, uint256 currentGainedAssetDeposits, uint256 totalForOrderFilled)
func (*FuturesFilterer) FilterSubaccountDepositsChange ¶
func (f *FuturesFilterer) FilterSubaccountDepositsChange(opts *bind.FilterOpts, depositChangeType []uint8, subAccountID [][32]byte, baseCurrency []common.Address) (*FuturesSubaccountDepositsChangeIterator, error)
FilterSubaccountDepositsChange is a free log retrieval operation binding the contract event 0xdf3bc6fae0ce8484ef20d7d7c446de8b6aca50d03505e4ca06629917d8d1bde6.
Solidity: event SubaccountDepositsChange(uint8 indexed depositChangeType, bytes32 indexed subAccountID, address indexed baseCurrency, int256 changeAmount, uint256 currentAmount)
func (*FuturesFilterer) FilterTransactionExecution ¶
func (f *FuturesFilterer) FilterTransactionExecution(opts *bind.FilterOpts, transactionHash [][32]byte) (*FuturesTransactionExecutionIterator, error)
FilterTransactionExecution is a free log retrieval operation binding the contract event 0xa4a7329f1dd821363067e07d359e347b4af9b1efe4b6cccf13240228af3c800d.
Solidity: event TransactionExecution(bytes32 indexed transactionHash)
func (*FuturesFilterer) FilterUnpaused ¶
func (f *FuturesFilterer) FilterUnpaused(opts *bind.FilterOpts) (*FuturesUnpausedIterator, error)
FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*FuturesFilterer) FilterUpdateValuesForVWAP ¶
func (f *FuturesFilterer) FilterUpdateValuesForVWAP(opts *bind.FilterOpts, marketID [][32]byte) (*FuturesUpdateValuesForVWAPIterator, error)
FilterUpdateValuesForVWAP is a free log retrieval operation binding the contract event 0x88459a5f4fa75a54716457659c83594066f178d0df407b402d59c5ed0d643351.
Solidity: event UpdateValuesForVWAP(bytes32 indexed marketID, uint256 mostRecentEpochVolume, uint256 mostRecentEpochQuantity, int256 mostRecentEpochScaledContractIndexDiff)
func (*FuturesFilterer) ParseAccountCreation ¶
func (f *FuturesFilterer) ParseAccountCreation(log types.Log) (*FuturesAccountCreation, error)
ParseAccountCreation is a log parse operation binding the contract event 0x6da62924036c396387aa0340b6df622a60ea3f2dcd19bd4a7d77df13013f3043.
Solidity: event AccountCreation(address indexed creator, bytes32 subAccountID, uint96 subAccountNonce)
func (*FuturesFilterer) ParseFuturesCancel ¶
func (f *FuturesFilterer) ParseFuturesCancel(log types.Log) (*FuturesCancel, error)
ParseFuturesCancel is a log parse operation binding the contract event 0x7197f6513c22ccffd678f7d190c7c57116b046d6ea34e83c1ba7fd841f966ec4.
Solidity: event FuturesCancel(bytes32 indexed subAccountID, bytes32 indexed orderHash, bytes32 indexed marketID, address baseCurrency, uint256 contractPrice, uint256 quantityFilled, bool isLong)
func (*FuturesFilterer) ParseFuturesMarketCreation ¶
func (f *FuturesFilterer) ParseFuturesMarketCreation(log types.Log) (*FuturesMarketCreation, error)
ParseFuturesMarketCreation is a log parse operation binding the contract event 0xec7604a06b6f1d53d9f93d29b6df434191db13fab896b33d7ac38c636a5923c2.
Solidity: event FuturesMarketCreation(bytes32 indexed marketID, string indexed ticker, address indexed oracle, address baseCurrency, uint256 maintenanceMarginRatio, uint256 initialMarginRatio, uint256 makerTxFee, uint256 takerTxFee, uint256 relayerFeePercentage, uint256 fundingInterval, uint256 expirationTime)
func (*FuturesFilterer) ParseFuturesTrade ¶
func (f *FuturesFilterer) ParseFuturesTrade(log types.Log) (*FuturesTrade, error)
ParseFuturesTrade is a log parse operation binding the contract event 0x2ee27d89e8394df57c5c3e6c07c03c128cc28e35450ee92fcdb9990932ec564e.
Solidity: event FuturesTrade(bool isResultingPositionLong, uint256 positionID, bytes32 indexed marketID, bytes32 indexed subAccountID, uint256 resultingMargin, uint256 resultingEntryPrice, uint256 resultingQuantity, int256 cumulativeFundingEntry, bool isTradeDirectionLong, bytes32 indexed orderHash, uint256 executionPrice, uint256 executionQuantity, uint256 totalForOrderFilled, uint8 tradeType)
func (*FuturesFilterer) ParseMarginChanged ¶
func (f *FuturesFilterer) ParseMarginChanged(log types.Log) (*FuturesMarginChanged, error)
ParseMarginChanged is a log parse operation binding the contract event 0x6bbd00a8b71e37b424550ee42f7d18af2790fc0a874cbd296c6705205b298d00.
Solidity: event MarginChanged(uint256 indexed positionID, int256 changedMargin)
func (*FuturesFilterer) ParseOwnershipTransferred ¶
func (f *FuturesFilterer) ParseOwnershipTransferred(log types.Log) (*FuturesOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*FuturesFilterer) ParsePaused ¶
func (f *FuturesFilterer) ParsePaused(log types.Log) (*FuturesPaused, error)
ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*FuturesFilterer) ParsePositionTransfer ¶
func (f *FuturesFilterer) ParsePositionTransfer(log types.Log) (*FuturesPositionTransfer, error)
ParsePositionTransfer is a log parse operation binding the contract event 0xdea221d5d06ee8a5f9f089295d3292f2f89c054d223c4a3c452d4d90df510402.
Solidity: event PositionTransfer(uint256 senderPositionID, uint256 receiverPositionID, bytes32 indexed fromSubAccountID, bytes32 indexed toSubAccountID, bytes32 marketID, uint8 directionalStatus, uint256 srcResultingPositionMargin, uint256 srcResultingPositionEntryPrice, uint256 srcResultingPositionQuantity, int256 srcResultingPositionCumulativeFundingEntry, uint256 destResultingPositionMargin, uint256 destResultingPositionEntryPrice, uint256 destResultingPositionQuantity, int256 destResultingPositionCumulativeFundingEntry)
func (*FuturesFilterer) ParseSetFunding ¶
func (f *FuturesFilterer) ParseSetFunding(log types.Log) (*FuturesSetFunding, error)
ParseSetFunding is a log parse operation binding the contract event 0x4f78e101b9f3e3fbc0cab373ac4f3bc7f68f50610c03844ec1293dd9cd78a35d.
Solidity: event SetFunding(bytes32 indexed marketID, int256 fundingFee, int256 cumulativeFunding, uint256 expiryOrNextFundingTimestamp)
func (*FuturesFilterer) ParseSignatureValidatorApproval ¶
func (f *FuturesFilterer) ParseSignatureValidatorApproval(log types.Log) (*FuturesSignatureValidatorApproval, error)
ParseSignatureValidatorApproval is a log parse operation binding the contract event 0xa8656e308026eeabce8f0bc18048433252318ab80ac79da0b3d3d8697dfba891.
Solidity: event SignatureValidatorApproval(address indexed signerAddress, address indexed validatorAddress, bool isApproved)
func (*FuturesFilterer) ParseSpotMarketCreation ¶
func (f *FuturesFilterer) ParseSpotMarketCreation(log types.Log) (*FuturesSpotMarketCreation, error)
ParseSpotMarketCreation is a log parse operation binding the contract event 0x36e5492cb554023c13d9df48b0fa6b166ccd07ea459dd0098d89052bf0775f7a.
Solidity: event SpotMarketCreation(bytes32 indexed marketID, string indexed ticker, address baseToken, address quoteToken, uint256 makerTxFee, uint256 takerTxFee, uint256 relayerFeePercentage)
func (*FuturesFilterer) ParseSpotTrade ¶
func (f *FuturesFilterer) ParseSpotTrade(log types.Log) (*FuturesSpotTrade, error)
ParseSpotTrade is a log parse operation binding the contract event 0xf0283823dfd5d2cf09704eb9d26d1f5098a512c6d7a7b4a74ca0927230c27699.
Solidity: event SpotTrade(bytes32 indexed marketID, bytes32 indexed subAccountID, bytes32 indexed orderHash, address sentAsset, address gainedAsset, uint256 sentAmount, uint256 gainedAmount, uint256 currentSentAssetDeposits, uint256 currentGainedAssetDeposits, uint256 totalForOrderFilled)
func (*FuturesFilterer) ParseSubaccountDepositsChange ¶
func (f *FuturesFilterer) ParseSubaccountDepositsChange(log types.Log) (*FuturesSubaccountDepositsChange, error)
ParseSubaccountDepositsChange is a log parse operation binding the contract event 0xdf3bc6fae0ce8484ef20d7d7c446de8b6aca50d03505e4ca06629917d8d1bde6.
Solidity: event SubaccountDepositsChange(uint8 indexed depositChangeType, bytes32 indexed subAccountID, address indexed baseCurrency, int256 changeAmount, uint256 currentAmount)
func (*FuturesFilterer) ParseTransactionExecution ¶
func (f *FuturesFilterer) ParseTransactionExecution(log types.Log) (*FuturesTransactionExecution, error)
ParseTransactionExecution is a log parse operation binding the contract event 0xa4a7329f1dd821363067e07d359e347b4af9b1efe4b6cccf13240228af3c800d.
Solidity: event TransactionExecution(bytes32 indexed transactionHash)
func (*FuturesFilterer) ParseUnpaused ¶
func (f *FuturesFilterer) ParseUnpaused(log types.Log) (*FuturesUnpaused, error)
ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*FuturesFilterer) ParseUpdateValuesForVWAP ¶
func (f *FuturesFilterer) ParseUpdateValuesForVWAP(log types.Log) (*FuturesUpdateValuesForVWAP, error)
ParseUpdateValuesForVWAP is a log parse operation binding the contract event 0x88459a5f4fa75a54716457659c83594066f178d0df407b402d59c5ed0d643351.
Solidity: event UpdateValuesForVWAP(bytes32 indexed marketID, uint256 mostRecentEpochVolume, uint256 mostRecentEpochQuantity, int256 mostRecentEpochScaledContractIndexDiff)
func (*FuturesFilterer) WatchAccountCreation ¶
func (f *FuturesFilterer) WatchAccountCreation(opts *bind.WatchOpts, sink chan<- *FuturesAccountCreation, creator []common.Address) (event.Subscription, error)
WatchAccountCreation is a free log subscription operation binding the contract event 0x6da62924036c396387aa0340b6df622a60ea3f2dcd19bd4a7d77df13013f3043.
Solidity: event AccountCreation(address indexed creator, bytes32 subAccountID, uint96 subAccountNonce)
func (*FuturesFilterer) WatchFuturesCancel ¶
func (f *FuturesFilterer) WatchFuturesCancel(opts *bind.WatchOpts, sink chan<- *FuturesCancel, subAccountID [][32]byte, orderHash [][32]byte, marketID [][32]byte) (event.Subscription, error)
WatchFuturesCancel is a free log subscription operation binding the contract event 0x7197f6513c22ccffd678f7d190c7c57116b046d6ea34e83c1ba7fd841f966ec4.
Solidity: event FuturesCancel(bytes32 indexed subAccountID, bytes32 indexed orderHash, bytes32 indexed marketID, address baseCurrency, uint256 contractPrice, uint256 quantityFilled, bool isLong)
func (*FuturesFilterer) WatchFuturesMarketCreation ¶
func (f *FuturesFilterer) WatchFuturesMarketCreation(opts *bind.WatchOpts, sink chan<- *FuturesMarketCreation, marketID [][32]byte, ticker []string, oracle []common.Address) (event.Subscription, error)
WatchFuturesMarketCreation is a free log subscription operation binding the contract event 0xec7604a06b6f1d53d9f93d29b6df434191db13fab896b33d7ac38c636a5923c2.
Solidity: event FuturesMarketCreation(bytes32 indexed marketID, string indexed ticker, address indexed oracle, address baseCurrency, uint256 maintenanceMarginRatio, uint256 initialMarginRatio, uint256 makerTxFee, uint256 takerTxFee, uint256 relayerFeePercentage, uint256 fundingInterval, uint256 expirationTime)
func (*FuturesFilterer) WatchFuturesTrade ¶
func (f *FuturesFilterer) WatchFuturesTrade(opts *bind.WatchOpts, sink chan<- *FuturesTrade, marketID [][32]byte, subAccountID [][32]byte, orderHash [][32]byte) (event.Subscription, error)
WatchFuturesTrade is a free log subscription operation binding the contract event 0x2ee27d89e8394df57c5c3e6c07c03c128cc28e35450ee92fcdb9990932ec564e.
Solidity: event FuturesTrade(bool isResultingPositionLong, uint256 positionID, bytes32 indexed marketID, bytes32 indexed subAccountID, uint256 resultingMargin, uint256 resultingEntryPrice, uint256 resultingQuantity, int256 cumulativeFundingEntry, bool isTradeDirectionLong, bytes32 indexed orderHash, uint256 executionPrice, uint256 executionQuantity, uint256 totalForOrderFilled, uint8 tradeType)
func (*FuturesFilterer) WatchMarginChanged ¶
func (f *FuturesFilterer) WatchMarginChanged(opts *bind.WatchOpts, sink chan<- *FuturesMarginChanged, positionID []*big.Int) (event.Subscription, error)
WatchMarginChanged is a free log subscription operation binding the contract event 0x6bbd00a8b71e37b424550ee42f7d18af2790fc0a874cbd296c6705205b298d00.
Solidity: event MarginChanged(uint256 indexed positionID, int256 changedMargin)
func (*FuturesFilterer) WatchOwnershipTransferred ¶
func (f *FuturesFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *FuturesOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*FuturesFilterer) WatchPaused ¶
func (f *FuturesFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *FuturesPaused) (event.Subscription, error)
WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*FuturesFilterer) WatchPositionTransfer ¶
func (f *FuturesFilterer) WatchPositionTransfer(opts *bind.WatchOpts, sink chan<- *FuturesPositionTransfer, fromSubAccountID [][32]byte, toSubAccountID [][32]byte) (event.Subscription, error)
WatchPositionTransfer is a free log subscription operation binding the contract event 0xdea221d5d06ee8a5f9f089295d3292f2f89c054d223c4a3c452d4d90df510402.
Solidity: event PositionTransfer(uint256 senderPositionID, uint256 receiverPositionID, bytes32 indexed fromSubAccountID, bytes32 indexed toSubAccountID, bytes32 marketID, uint8 directionalStatus, uint256 srcResultingPositionMargin, uint256 srcResultingPositionEntryPrice, uint256 srcResultingPositionQuantity, int256 srcResultingPositionCumulativeFundingEntry, uint256 destResultingPositionMargin, uint256 destResultingPositionEntryPrice, uint256 destResultingPositionQuantity, int256 destResultingPositionCumulativeFundingEntry)
func (*FuturesFilterer) WatchSetFunding ¶
func (f *FuturesFilterer) WatchSetFunding(opts *bind.WatchOpts, sink chan<- *FuturesSetFunding, marketID [][32]byte) (event.Subscription, error)
WatchSetFunding is a free log subscription operation binding the contract event 0x4f78e101b9f3e3fbc0cab373ac4f3bc7f68f50610c03844ec1293dd9cd78a35d.
Solidity: event SetFunding(bytes32 indexed marketID, int256 fundingFee, int256 cumulativeFunding, uint256 expiryOrNextFundingTimestamp)
func (*FuturesFilterer) WatchSignatureValidatorApproval ¶
func (f *FuturesFilterer) WatchSignatureValidatorApproval(opts *bind.WatchOpts, sink chan<- *FuturesSignatureValidatorApproval, signerAddress []common.Address, validatorAddress []common.Address) (event.Subscription, error)
WatchSignatureValidatorApproval is a free log subscription operation binding the contract event 0xa8656e308026eeabce8f0bc18048433252318ab80ac79da0b3d3d8697dfba891.
Solidity: event SignatureValidatorApproval(address indexed signerAddress, address indexed validatorAddress, bool isApproved)
func (*FuturesFilterer) WatchSpotMarketCreation ¶
func (f *FuturesFilterer) WatchSpotMarketCreation(opts *bind.WatchOpts, sink chan<- *FuturesSpotMarketCreation, marketID [][32]byte, ticker []string) (event.Subscription, error)
WatchSpotMarketCreation is a free log subscription operation binding the contract event 0x36e5492cb554023c13d9df48b0fa6b166ccd07ea459dd0098d89052bf0775f7a.
Solidity: event SpotMarketCreation(bytes32 indexed marketID, string indexed ticker, address baseToken, address quoteToken, uint256 makerTxFee, uint256 takerTxFee, uint256 relayerFeePercentage)
func (*FuturesFilterer) WatchSpotTrade ¶
func (f *FuturesFilterer) WatchSpotTrade(opts *bind.WatchOpts, sink chan<- *FuturesSpotTrade, marketID [][32]byte, subAccountID [][32]byte, orderHash [][32]byte) (event.Subscription, error)
WatchSpotTrade is a free log subscription operation binding the contract event 0xf0283823dfd5d2cf09704eb9d26d1f5098a512c6d7a7b4a74ca0927230c27699.
Solidity: event SpotTrade(bytes32 indexed marketID, bytes32 indexed subAccountID, bytes32 indexed orderHash, address sentAsset, address gainedAsset, uint256 sentAmount, uint256 gainedAmount, uint256 currentSentAssetDeposits, uint256 currentGainedAssetDeposits, uint256 totalForOrderFilled)
func (*FuturesFilterer) WatchSubaccountDepositsChange ¶
func (f *FuturesFilterer) WatchSubaccountDepositsChange(opts *bind.WatchOpts, sink chan<- *FuturesSubaccountDepositsChange, depositChangeType []uint8, subAccountID [][32]byte, baseCurrency []common.Address) (event.Subscription, error)
WatchSubaccountDepositsChange is a free log subscription operation binding the contract event 0xdf3bc6fae0ce8484ef20d7d7c446de8b6aca50d03505e4ca06629917d8d1bde6.
Solidity: event SubaccountDepositsChange(uint8 indexed depositChangeType, bytes32 indexed subAccountID, address indexed baseCurrency, int256 changeAmount, uint256 currentAmount)
func (*FuturesFilterer) WatchTransactionExecution ¶
func (f *FuturesFilterer) WatchTransactionExecution(opts *bind.WatchOpts, sink chan<- *FuturesTransactionExecution, transactionHash [][32]byte) (event.Subscription, error)
WatchTransactionExecution is a free log subscription operation binding the contract event 0xa4a7329f1dd821363067e07d359e347b4af9b1efe4b6cccf13240228af3c800d.
Solidity: event TransactionExecution(bytes32 indexed transactionHash)
func (*FuturesFilterer) WatchUnpaused ¶
func (f *FuturesFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *FuturesUnpaused) (event.Subscription, error)
WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*FuturesFilterer) WatchUpdateValuesForVWAP ¶
func (f *FuturesFilterer) WatchUpdateValuesForVWAP(opts *bind.WatchOpts, sink chan<- *FuturesUpdateValuesForVWAP, marketID [][32]byte) (event.Subscription, error)
WatchUpdateValuesForVWAP is a free log subscription operation binding the contract event 0x88459a5f4fa75a54716457659c83594066f178d0df407b402d59c5ed0d643351.
Solidity: event UpdateValuesForVWAP(bytes32 indexed marketID, uint256 mostRecentEpochVolume, uint256 mostRecentEpochQuantity, int256 mostRecentEpochScaledContractIndexDiff)
type FuturesMarginChanged ¶
type FuturesMarginChanged struct { PositionID *big.Int ChangedMargin *big.Int Raw types.Log // Blockchain specific contextual infos }
FuturesMarginChanged represents a MarginChanged event raised by the Futures contract.
type FuturesMarginChangedIterator ¶
type FuturesMarginChangedIterator struct { Event *FuturesMarginChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FuturesMarginChangedIterator is returned from FilterMarginChanged and is used to iterate over the raw logs and unpacked data for MarginChanged events raised by the Futures contract.
func (*FuturesMarginChangedIterator) Close ¶
func (it *FuturesMarginChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FuturesMarginChangedIterator) Error ¶
func (it *FuturesMarginChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FuturesMarginChangedIterator) Next ¶
func (it *FuturesMarginChangedIterator) 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 FuturesMarketCreation ¶
type FuturesMarketCreation struct { MarketID [32]byte Ticker common.Hash Oracle common.Address BaseCurrency common.Address MaintenanceMarginRatio *big.Int InitialMarginRatio *big.Int MakerTxFee *big.Int TakerTxFee *big.Int RelayerFeePercentage *big.Int FundingInterval *big.Int ExpirationTime *big.Int Raw types.Log // Blockchain specific contextual infos }
FuturesMarketCreation represents a FuturesMarketCreation event raised by the Futures contract.
type FuturesMarketCreationIterator ¶
type FuturesMarketCreationIterator struct { Event *FuturesMarketCreation // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FuturesMarketCreationIterator is returned from FilterFuturesMarketCreation and is used to iterate over the raw logs and unpacked data for FuturesMarketCreation events raised by the Futures contract.
func (*FuturesMarketCreationIterator) Close ¶
func (it *FuturesMarketCreationIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FuturesMarketCreationIterator) Error ¶
func (it *FuturesMarketCreationIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FuturesMarketCreationIterator) Next ¶
func (it *FuturesMarketCreationIterator) 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 FuturesOwnershipTransferred ¶
type FuturesOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
FuturesOwnershipTransferred represents a OwnershipTransferred event raised by the Futures contract.
type FuturesOwnershipTransferredIterator ¶
type FuturesOwnershipTransferredIterator struct { Event *FuturesOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FuturesOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Futures contract.
func (*FuturesOwnershipTransferredIterator) Close ¶
func (it *FuturesOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FuturesOwnershipTransferredIterator) Error ¶
func (it *FuturesOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FuturesOwnershipTransferredIterator) Next ¶
func (it *FuturesOwnershipTransferredIterator) 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 FuturesPaused ¶
type FuturesPaused struct { Account common.Address Raw types.Log // Blockchain specific contextual infos }
FuturesPaused represents a Paused event raised by the Futures contract.
type FuturesPausedIterator ¶
type FuturesPausedIterator struct { Event *FuturesPaused // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FuturesPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the Futures contract.
func (*FuturesPausedIterator) Close ¶
func (it *FuturesPausedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FuturesPausedIterator) Error ¶
func (it *FuturesPausedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FuturesPausedIterator) Next ¶
func (it *FuturesPausedIterator) 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 FuturesPositionTransfer ¶
type FuturesPositionTransfer struct { SenderPositionID *big.Int ReceiverPositionID *big.Int FromSubAccountID [32]byte ToSubAccountID [32]byte MarketID [32]byte DirectionalStatus uint8 SrcResultingPositionMargin *big.Int SrcResultingPositionEntryPrice *big.Int SrcResultingPositionQuantity *big.Int SrcResultingPositionCumulativeFundingEntry *big.Int DestResultingPositionMargin *big.Int DestResultingPositionEntryPrice *big.Int DestResultingPositionQuantity *big.Int DestResultingPositionCumulativeFundingEntry *big.Int Raw types.Log // Blockchain specific contextual infos }
FuturesPositionTransfer represents a PositionTransfer event raised by the Futures contract.
type FuturesPositionTransferIterator ¶
type FuturesPositionTransferIterator struct { Event *FuturesPositionTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FuturesPositionTransferIterator is returned from FilterPositionTransfer and is used to iterate over the raw logs and unpacked data for PositionTransfer events raised by the Futures contract.
func (*FuturesPositionTransferIterator) Close ¶
func (it *FuturesPositionTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FuturesPositionTransferIterator) Error ¶
func (it *FuturesPositionTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FuturesPositionTransferIterator) Next ¶
func (it *FuturesPositionTransferIterator) 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 FuturesRaw ¶
type FuturesRaw struct {
Contract *Futures // Generic contract binding to access the raw methods on
}
FuturesRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*FuturesRaw) Call ¶
func (f *FuturesRaw) 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 (*FuturesRaw) Transact ¶
func (f *FuturesRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*FuturesRaw) Transfer ¶
func (f *FuturesRaw) 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 FuturesSession ¶
type FuturesSession struct { Contract *Futures // 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 }
FuturesSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*FuturesSession) Accounts ¶
func (f *FuturesSession) Accounts(arg0 [32]byte) (struct { SubAccountID [32]byte SubAccountNonce *big.Int }, error)
Accounts is a free data retrieval call binding the contract method 0xbc529c43.
Solidity: function accounts(bytes32 ) view returns(bytes32 subAccountID, uint256 subAccountNonce)
func (*FuturesSession) AddMarginIntoPosition ¶
func (f *FuturesSession) AddMarginIntoPosition(subAccountID [32]byte, positionID *big.Int, addedMargin *big.Int) (*types.Transaction, error)
AddMarginIntoPosition is a paid mutator transaction binding the contract method 0x62c6985e.
Solidity: function addMarginIntoPosition(bytes32 subAccountID, uint256 positionID, uint256 addedMargin) returns()
func (*FuturesSession) AddressToSubAccountIDs ¶
func (f *FuturesSession) AddressToSubAccountIDs(arg0 common.Address, arg1 *big.Int) ([32]byte, error)
AddressToSubAccountIDs is a free data retrieval call binding the contract method 0x07294a8e.
Solidity: function addressToSubAccountIDs(address , uint256 ) view returns(bytes32)
func (*FuturesSession) AllowedValidators ¶
AllowedValidators is a free data retrieval call binding the contract method 0x7b8e3514.
Solidity: function allowedValidators(address , address ) view returns(bool)
func (*FuturesSession) Approve ¶
func (f *FuturesSession) Approve(approveTo common.Address, positionID *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address approveTo, uint256 positionID) returns()
func (*FuturesSession) ApproveForReceiving ¶
func (f *FuturesSession) ApproveForReceiving(receiverSubAccountID [32]byte, positionID *big.Int) (*types.Transaction, error)
ApproveForReceiving is a paid mutator transaction binding the contract method 0xf5a5f0b3.
Solidity: function approveForReceiving(bytes32 receiverSubAccountID, uint256 positionID) returns()
func (*FuturesSession) Auction ¶
func (f *FuturesSession) Auction() (common.Address, error)
Auction is a free data retrieval call binding the contract method 0x7d9f6db5.
Solidity: function auction() view returns(address)
func (*FuturesSession) AuctionTimeInterval ¶
func (f *FuturesSession) AuctionTimeInterval() (*big.Int, error)
AuctionTimeInterval is a free data retrieval call binding the contract method 0xc583f691.
Solidity: function auctionTimeInterval() view returns(uint256)
func (*FuturesSession) BaseCurrencies ¶
BaseCurrencies is a free data retrieval call binding the contract method 0x95092e50.
Solidity: function baseCurrencies(uint256 ) view returns(address)
func (*FuturesSession) BatchCancelOrders ¶
func (f *FuturesSession) BatchCancelOrders(orders []Order) (*types.Transaction, error)
BatchCancelOrders is a paid mutator transaction binding the contract method 0xdedfc1f1.
Solidity: function batchCancelOrders((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] orders) returns()
func (*FuturesSession) BatchCheckFunding ¶
func (f *FuturesSession) BatchCheckFunding(marketIDs [][32]byte) (*types.Transaction, error)
BatchCheckFunding is a paid mutator transaction binding the contract method 0x2c7c2134.
Solidity: function batchCheckFunding(bytes32[] marketIDs) returns(bool[])
func (*FuturesSession) BatchDepositForSubAccounts ¶
func (f *FuturesSession) BatchDepositForSubAccounts(baseCurrencies []common.Address, subAccountIDs [][32]byte, amounts []*big.Int) (*types.Transaction, error)
BatchDepositForSubAccounts is a paid mutator transaction binding the contract method 0xc5d3277b.
Solidity: function batchDepositForSubAccounts(address[] baseCurrencies, bytes32[] subAccountIDs, uint256[] amounts) returns()
func (*FuturesSession) BatchDepositForTraders ¶
func (f *FuturesSession) BatchDepositForTraders(baseCurrencies []common.Address, traders []common.Address, amounts []*big.Int) (*types.Transaction, error)
BatchDepositForTraders is a paid mutator transaction binding the contract method 0x487ebde1.
Solidity: function batchDepositForTraders(address[] baseCurrencies, address[] traders, uint256[] amounts) returns()
func (*FuturesSession) BatchExecuteTransactions ¶
func (f *FuturesSession) BatchExecuteTransactions(transactions []LibZeroExTransactionZeroExTransaction, signatures [][]byte) (*types.Transaction, error)
BatchExecuteTransactions is a paid mutator transaction binding the contract method 0xfc74896d.
Solidity: function batchExecuteTransactions((uint256,uint256,uint256,address,bytes)[] transactions, bytes[] signatures) payable returns(bytes[] returnData)
func (*FuturesSession) BatchLiquidatePosition ¶
func (f *FuturesSession) BatchLiquidatePosition(positionIDs []*big.Int, orders [][]Order, quantities []*big.Int, signatures [][][]byte, liquidationCaller common.Address) (*types.Transaction, error)
BatchLiquidatePosition is a paid mutator transaction binding the contract method 0x1b934aea.
Solidity: function batchLiquidatePosition(uint256[] positionIDs, (address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[][] orders, uint256[] quantities, bytes[][] signatures, address liquidationCaller) returns((uint256,uint256,uint256,uint256)[] results)
func (*FuturesSession) BatchSettleExpiryFuturesPosition ¶
func (f *FuturesSession) BatchSettleExpiryFuturesPosition(marketID [32]byte, subAccountIDs [][32]byte) (*types.Transaction, error)
BatchSettleExpiryFuturesPosition is a paid mutator transaction binding the contract method 0xb378df0b.
Solidity: function batchSettleExpiryFuturesPosition(bytes32 marketID, bytes32[] subAccountIDs) returns((uint256,uint256,uint256,uint256)[] results)
func (*FuturesSession) CalcCumulativeFunding ¶
func (f *FuturesSession) CalcCumulativeFunding(marketID [32]byte, cumulativeFundingEntry *big.Int) (*big.Int, error)
CalcCumulativeFunding is a free data retrieval call binding the contract method 0xc5d135da.
Solidity: function calcCumulativeFunding(bytes32 marketID, int256 cumulativeFundingEntry) view returns(int256)
func (*FuturesSession) CalcLiquidationFee ¶
CalcLiquidationFee is a free data retrieval call binding the contract method 0xbbcac0d3.
Solidity: function calcLiquidationFee(bytes32 marketID, uint256 quantity) view returns(uint256)
func (*FuturesSession) CalcMinMargin ¶
func (f *FuturesSession) CalcMinMargin(marketID [32]byte, quantity *big.Int, price *big.Int) (*big.Int, error)
CalcMinMargin is a free data retrieval call binding the contract method 0x35c43c4e.
Solidity: function calcMinMargin(bytes32 marketID, uint256 quantity, uint256 price) view returns(uint256)
func (*FuturesSession) CancelOrder ¶
func (f *FuturesSession) CancelOrder(order Order) (*types.Transaction, error)
CancelOrder is a paid mutator transaction binding the contract method 0x2da62987.
Solidity: function cancelOrder((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes) order) returns()
func (*FuturesSession) Cancelled ¶
func (f *FuturesSession) Cancelled(arg0 [32]byte) (bool, error)
Cancelled is a free data retrieval call binding the contract method 0x2ac12622.
Solidity: function cancelled(bytes32 ) view returns(bool)
func (*FuturesSession) ChangeAuctionTimeInterval ¶
func (f *FuturesSession) ChangeAuctionTimeInterval(auctionTimeInterval_ *big.Int) (*types.Transaction, error)
ChangeAuctionTimeInterval is a paid mutator transaction binding the contract method 0x5852ca61.
Solidity: function changeAuctionTimeInterval(uint256 auctionTimeInterval_) returns()
func (*FuturesSession) ChangeMarketFundingInterval ¶
func (f *FuturesSession) ChangeMarketFundingInterval(marketID [32]byte, fundingInterval *big.Int) (*types.Transaction, error)
ChangeMarketFundingInterval is a paid mutator transaction binding the contract method 0x7a540e43.
Solidity: function changeMarketFundingInterval(bytes32 marketID, uint256 fundingInterval) returns()
func (*FuturesSession) ChangeMarketInitialMarginRatio ¶
func (f *FuturesSession) ChangeMarketInitialMarginRatio(marketID [32]byte, initialMarginRatio PermyriadMathPermyriad) (*types.Transaction, error)
ChangeMarketInitialMarginRatio is a paid mutator transaction binding the contract method 0x50f2722b.
Solidity: function changeMarketInitialMarginRatio(bytes32 marketID, (uint256) initialMarginRatio) returns()
func (*FuturesSession) ChangeMarketMaintenanceMarginRatio ¶
func (f *FuturesSession) ChangeMarketMaintenanceMarginRatio(marketID [32]byte, maintenanceMarginRatio PermyriadMathPermyriad) (*types.Transaction, error)
ChangeMarketMaintenanceMarginRatio is a paid mutator transaction binding the contract method 0x267f8feb.
Solidity: function changeMarketMaintenanceMarginRatio(bytes32 marketID, (uint256) maintenanceMarginRatio) returns()
func (*FuturesSession) ChangeMarketMakerTxFee ¶
func (f *FuturesSession) ChangeMarketMakerTxFee(marketID [32]byte, makerTxFee PermyriadMathPermyriad) (*types.Transaction, error)
ChangeMarketMakerTxFee is a paid mutator transaction binding the contract method 0x2c23608b.
Solidity: function changeMarketMakerTxFee(bytes32 marketID, (uint256) makerTxFee) returns()
func (*FuturesSession) ChangeMarketOracle ¶
func (f *FuturesSession) ChangeMarketOracle(marketID [32]byte, oracle common.Address) (*types.Transaction, error)
ChangeMarketOracle is a paid mutator transaction binding the contract method 0x555eb5ed.
Solidity: function changeMarketOracle(bytes32 marketID, address oracle) returns()
func (*FuturesSession) ChangeMarketOracle0 ¶
func (f *FuturesSession) ChangeMarketOracle0(marketID [32]byte, fundingInterval *big.Int) (*types.Transaction, error)
ChangeMarketOracle0 is a paid mutator transaction binding the contract method 0xdb39261d.
Solidity: function changeMarketOracle(bytes32 marketID, uint256 fundingInterval) returns()
func (*FuturesSession) ChangeMarketRelayerTxFee ¶
func (f *FuturesSession) ChangeMarketRelayerTxFee(marketID [32]byte, relayerTxFee PermyriadMathPermyriad) (*types.Transaction, error)
ChangeMarketRelayerTxFee is a paid mutator transaction binding the contract method 0x6db346d3.
Solidity: function changeMarketRelayerTxFee(bytes32 marketID, (uint256) relayerTxFee) returns()
func (*FuturesSession) ChangeMarketTakerTxFee ¶
func (f *FuturesSession) ChangeMarketTakerTxFee(marketID [32]byte, takerTxFee PermyriadMathPermyriad) (*types.Transaction, error)
ChangeMarketTakerTxFee is a paid mutator transaction binding the contract method 0xbba21c56.
Solidity: function changeMarketTakerTxFee(bytes32 marketID, (uint256) takerTxFee) returns()
func (*FuturesSession) ChangeMaxBaseCurrencyCap ¶
func (f *FuturesSession) ChangeMaxBaseCurrencyCap(maxBaseCurrencyCap_ *big.Int) (*types.Transaction, error)
ChangeMaxBaseCurrencyCap is a paid mutator transaction binding the contract method 0xea7a4b3f.
Solidity: function changeMaxBaseCurrencyCap(uint256 maxBaseCurrencyCap_) returns()
func (*FuturesSession) ChangeMinimumMarginRatio ¶
func (f *FuturesSession) ChangeMinimumMarginRatio(MINIMUM_MARGIN_RATIO_ PermyriadMathPermyriad) (*types.Transaction, error)
ChangeMinimumMarginRatio is a paid mutator transaction binding the contract method 0x5d19277f.
Solidity: function changeMinimumMarginRatio((uint256) MINIMUM_MARGIN_RATIO_) returns()
func (*FuturesSession) CheckFunding ¶
func (f *FuturesSession) CheckFunding(marketID [32]byte) (*types.Transaction, error)
CheckFunding is a paid mutator transaction binding the contract method 0x70f1c88b.
Solidity: function checkFunding(bytes32 marketID) returns(bool)
func (*FuturesSession) ClosePosition ¶
func (f *FuturesSession) ClosePosition(subAccountID [32]byte, marketID [32]byte, orders []Order, quantity *big.Int, isRevertingOnPartialFills bool, signatures [][]byte) (*types.Transaction, error)
ClosePosition is a paid mutator transaction binding the contract method 0x73ea5056.
Solidity: function closePosition(bytes32 subAccountID, bytes32 marketID, (address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] orders, uint256 quantity, bool isRevertingOnPartialFills, bytes[] signatures) returns((uint256,uint256,uint256,uint256) results)
func (*FuturesSession) ClosePositionMetaTransaction ¶
func (f *FuturesSession) ClosePositionMetaTransaction(exchangeAddress common.Address, isRevertingOnPartialFills bool, subAccountID [32]byte, marketID [32]byte, closeQuantity *big.Int) error
ClosePositionMetaTransaction is a free data retrieval call binding the contract method 0x1c51d905.
Solidity: function closePositionMetaTransaction(address exchangeAddress, bool isRevertingOnPartialFills, bytes32 subAccountID, bytes32 marketID, uint256 closeQuantity) pure returns()
func (*FuturesSession) ComputeSubAccountIdFromNonce ¶
func (f *FuturesSession) ComputeSubAccountIdFromNonce(trader common.Address, subAccountNonce *big.Int) ([32]byte, error)
ComputeSubAccountIdFromNonce is a free data retrieval call binding the contract method 0x2488c4d8.
Solidity: function computeSubAccountIdFromNonce(address trader, uint96 subAccountNonce) pure returns(bytes32)
func (*FuturesSession) CreateDefaultSubAccountAndDeposit ¶
func (f *FuturesSession) CreateDefaultSubAccountAndDeposit(baseCurrency common.Address, amount *big.Int) (*types.Transaction, error)
CreateDefaultSubAccountAndDeposit is a paid mutator transaction binding the contract method 0xcaa5cf87.
Solidity: function createDefaultSubAccountAndDeposit(address baseCurrency, uint256 amount) returns(bytes32)
func (*FuturesSession) CreateFuturesMarket ¶
func (f *FuturesSession) CreateFuturesMarket(ticker string, baseCurrency common.Address, oracle common.Address, initialMarginRatio PermyriadMathPermyriad, maintenanceMarginRatio PermyriadMathPermyriad, fundingInterval *big.Int, expirationTime *big.Int, makerTxFee PermyriadMathPermyriad, takerTxFee PermyriadMathPermyriad, relayerFeePercentage PermyriadMathPermyriad) (*types.Transaction, error)
CreateFuturesMarket is a paid mutator transaction binding the contract method 0xc47e094b.
Solidity: function createFuturesMarket(string ticker, address baseCurrency, address oracle, (uint256) initialMarginRatio, (uint256) maintenanceMarginRatio, uint256 fundingInterval, uint256 expirationTime, (uint256) makerTxFee, (uint256) takerTxFee, (uint256) relayerFeePercentage) returns()
func (*FuturesSession) CreateFuturesMarketWithFixedMarketId ¶
func (f *FuturesSession) CreateFuturesMarketWithFixedMarketId(ticker string, baseCurrency common.Address, oracle common.Address, initialMarginRatio PermyriadMathPermyriad, maintenanceMarginRatio PermyriadMathPermyriad, fundingInterval *big.Int, expirationTime *big.Int, makerTxFee PermyriadMathPermyriad, takerTxFee PermyriadMathPermyriad, relayerFeePercentage PermyriadMathPermyriad, marketID [32]byte) (*types.Transaction, error)
CreateFuturesMarketWithFixedMarketId is a paid mutator transaction binding the contract method 0x28f9d7a5.
Solidity: function createFuturesMarketWithFixedMarketId(string ticker, address baseCurrency, address oracle, (uint256) initialMarginRatio, (uint256) maintenanceMarginRatio, uint256 fundingInterval, uint256 expirationTime, (uint256) makerTxFee, (uint256) takerTxFee, (uint256) relayerFeePercentage, bytes32 marketID) returns()
func (*FuturesSession) CreateSpotMarket ¶
func (f *FuturesSession) CreateSpotMarket(ticker string, baseToken common.Address, quoteToken common.Address, makerTxFee PermyriadMathPermyriad, takerTxFee PermyriadMathPermyriad, relayerFeePercentage PermyriadMathPermyriad) (*types.Transaction, error)
CreateSpotMarket is a paid mutator transaction binding the contract method 0xadb44540.
Solidity: function createSpotMarket(string ticker, address baseToken, address quoteToken, (uint256) makerTxFee, (uint256) takerTxFee, (uint256) relayerFeePercentage) returns()
func (*FuturesSession) CreateSubAccountAndDeposit ¶
func (f *FuturesSession) CreateSubAccountAndDeposit(baseCurrency common.Address, subAccountNonce *big.Int, amount *big.Int) (*types.Transaction, error)
CreateSubAccountAndDeposit is a paid mutator transaction binding the contract method 0x06bc2e72.
Solidity: function createSubAccountAndDeposit(address baseCurrency, uint96 subAccountNonce, uint256 amount) returns(bytes32)
func (*FuturesSession) CreateSubAccountForTraderWithNonce ¶
func (f *FuturesSession) CreateSubAccountForTraderWithNonce(trader common.Address, subAccountNonce *big.Int) (*types.Transaction, error)
CreateSubAccountForTraderWithNonce is a paid mutator transaction binding the contract method 0x510d4093.
Solidity: function createSubAccountForTraderWithNonce(address trader, uint96 subAccountNonce) returns(bytes32)
func (*FuturesSession) CurrentAuctionEndTime ¶
func (f *FuturesSession) CurrentAuctionEndTime() (*big.Int, error)
CurrentAuctionEndTime is a free data retrieval call binding the contract method 0xe196dff1.
Solidity: function currentAuctionEndTime() view returns(uint256)
func (*FuturesSession) CurrentContextAddress ¶
func (f *FuturesSession) CurrentContextAddress() (common.Address, error)
CurrentContextAddress is a free data retrieval call binding the contract method 0xeea086ba.
Solidity: function currentContextAddress() view returns(address)
func (*FuturesSession) Deposit ¶
func (f *FuturesSession) Deposit(baseCurrency common.Address, amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x47e7ef24.
Solidity: function deposit(address baseCurrency, uint256 amount) returns()
func (*FuturesSession) DepositFor ¶
func (f *FuturesSession) DepositFor(baseCurrency common.Address, trader common.Address, amount *big.Int) (*types.Transaction, error)
DepositFor is a paid mutator transaction binding the contract method 0xb3db428b.
Solidity: function depositFor(address baseCurrency, address trader, uint256 amount) returns()
func (*FuturesSession) DepositForSubaccount ¶
func (f *FuturesSession) DepositForSubaccount(baseCurrency common.Address, subAccountID [32]byte, amount *big.Int) (*types.Transaction, error)
DepositForSubaccount is a paid mutator transaction binding the contract method 0x9d44c2b1.
Solidity: function depositForSubaccount(address baseCurrency, bytes32 subAccountID, uint256 amount) returns()
func (*FuturesSession) DepositIntoSubAccount ¶
func (f *FuturesSession) DepositIntoSubAccount(baseCurrency common.Address, subAccountID [32]byte, amount *big.Int) (*types.Transaction, error)
DepositIntoSubAccount is a paid mutator transaction binding the contract method 0xf2848b01.
Solidity: function depositIntoSubAccount(address baseCurrency, bytes32 subAccountID, uint256 amount) returns()
func (*FuturesSession) DoesPositionExist ¶
func (f *FuturesSession) DoesPositionExist(positionID *big.Int) (bool, error)
DoesPositionExist is a free data retrieval call binding the contract method 0x2c12d600.
Solidity: function doesPositionExist(uint256 positionID) view returns(bool)
func (*FuturesSession) EIP1271MAGICVALUE ¶
func (f *FuturesSession) EIP1271MAGICVALUE() ([4]byte, error)
EIP1271MAGICVALUE is a free data retrieval call binding the contract method 0xdd885e2d.
Solidity: function EIP1271_MAGIC_VALUE() view returns(bytes4)
func (*FuturesSession) EIP712EXCHANGEDOMAINHASH ¶
func (f *FuturesSession) EIP712EXCHANGEDOMAINHASH() ([32]byte, error)
EIP712EXCHANGEDOMAINHASH is a free data retrieval call binding the contract method 0xc26cfecd.
Solidity: function EIP712_EXCHANGE_DOMAIN_HASH() view returns(bytes32)
func (*FuturesSession) EmergencyStopFutures ¶
func (f *FuturesSession) EmergencyStopFutures() (*types.Transaction, error)
EmergencyStopFutures is a paid mutator transaction binding the contract method 0x0d64dc42.
Solidity: function emergencyStopFutures() returns()
func (*FuturesSession) EmergencyStopMarket ¶
func (f *FuturesSession) EmergencyStopMarket(marketID [32]byte) (*types.Transaction, error)
EmergencyStopMarket is a paid mutator transaction binding the contract method 0xd135eeb3.
Solidity: function emergencyStopMarket(bytes32 marketID) returns()
func (*FuturesSession) EpochFees ¶
EpochFees is a free data retrieval call binding the contract method 0xfe944a57.
Solidity: function epochFees(address ) view returns(uint256)
func (*FuturesSession) ExecuteTransaction ¶
func (f *FuturesSession) ExecuteTransaction(transaction LibZeroExTransactionZeroExTransaction, signature []byte) (*types.Transaction, error)
ExecuteTransaction is a paid mutator transaction binding the contract method 0x2280c910.
Solidity: function executeTransaction((uint256,uint256,uint256,address,bytes) transaction, bytes signature) payable returns(bytes)
func (*FuturesSession) Filled ¶
func (f *FuturesSession) Filled(arg0 [32]byte) (*big.Int, error)
Filled is a free data retrieval call binding the contract method 0x288cdc91.
Solidity: function filled(bytes32 ) view returns(uint256)
func (*FuturesSession) FuturesMarkets ¶
func (f *FuturesSession) FuturesMarkets(arg0 [32]byte) (struct { MarketID [32]byte BaseCurrency common.Address Ticker string Oracle common.Address InitialMarginRatio PermyriadMathPermyriad MaintenanceMarginRatio PermyriadMathPermyriad IndexPrice *big.Int ExpiryOrNextFundingTimestamp *big.Int FundingInterval *big.Int CumulativeFunding *big.Int TransactionFees TypesTransactionFees }, error)
FuturesMarkets is a free data retrieval call binding the contract method 0x8192ea00.
Solidity: function futuresMarkets(bytes32 ) view returns(bytes32 marketID, address baseCurrency, string ticker, address oracle, (uint256) initialMarginRatio, (uint256) maintenanceMarginRatio, uint256 indexPrice, uint256 expiryOrNextFundingTimestamp, uint256 fundingInterval, int256 cumulativeFunding, ((uint256),(uint256),(uint256)) transactionFees)
func (*FuturesSession) GetApproved ¶
GetApproved is a free data retrieval call binding the contract method 0x081812fc.
Solidity: function getApproved(uint256 positionID) view returns(address)
func (*FuturesSession) GetDefaultSubAccountDeposits ¶
func (f *FuturesSession) GetDefaultSubAccountDeposits(baseCurrency common.Address, trader common.Address) (*big.Int, error)
GetDefaultSubAccountDeposits is a free data retrieval call binding the contract method 0x1883e458.
Solidity: function getDefaultSubAccountDeposits(address baseCurrency, address trader) view returns(uint256)
func (*FuturesSession) GetDefaultSubAccountIdForTrader ¶
func (f *FuturesSession) GetDefaultSubAccountIdForTrader(trader common.Address) ([32]byte, error)
GetDefaultSubAccountIdForTrader is a free data retrieval call binding the contract method 0x80755948.
Solidity: function getDefaultSubAccountIdForTrader(address trader) pure returns(bytes32)
func (*FuturesSession) GetMaxFundingFeeAbs ¶
func (f *FuturesSession) GetMaxFundingFeeAbs(marketID [32]byte) (*big.Int, error)
GetMaxFundingFeeAbs is a free data retrieval call binding the contract method 0xa9d56fe9.
Solidity: function getMaxFundingFeeAbs(bytes32 marketID) view returns(uint256)
func (*FuturesSession) GetOrderInfo ¶
func (f *FuturesSession) GetOrderInfo(order Order) (OrderInfo, error)
GetOrderInfo is a free data retrieval call binding the contract method 0x9d3fa4b9.
Solidity: function getOrderInfo((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes) order) view returns((uint8,bytes32,uint256,bytes32,uint8,bytes32,uint256) orderInfo)
func (*FuturesSession) GetOrderRelevantState ¶
func (f *FuturesSession) GetOrderRelevantState(order Order, signature []byte, indexPrice *big.Int) (struct { OrderInfo DerivativeOrderInfo FillableTakerAssetAmount *big.Int IsValidSignature bool }, error)
GetOrderRelevantState is a free data retrieval call binding the contract method 0xef3a29b3.
Solidity: function getOrderRelevantState((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes) order, bytes signature, uint256 indexPrice) view returns((uint8,bytes32,uint256,bytes32,uint8,bytes32,uint256) orderInfo, uint256 fillableTakerAssetAmount, bool isValidSignature)
func (*FuturesSession) GetOrderRelevantStates ¶
func (f *FuturesSession) GetOrderRelevantStates(orders []Order, signatures [][]byte) (struct { OrdersInfo []DerivativeOrderInfo FillableTakerAssetAmounts []*big.Int IsValidSignature []bool }, error)
GetOrderRelevantStates is a free data retrieval call binding the contract method 0xe25cabf7.
Solidity: function getOrderRelevantStates((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] orders, bytes[] signatures) view returns((uint8,bytes32,uint256,bytes32,uint8,bytes32,uint256)[] ordersInfo, uint256[] fillableTakerAssetAmounts, bool[] isValidSignature)
func (*FuturesSession) GetPositionIDsForTrader ¶
func (f *FuturesSession) GetPositionIDsForTrader(trader common.Address, marketID [32]byte) ([]*big.Int, error)
GetPositionIDsForTrader is a free data retrieval call binding the contract method 0xc3e49bb7.
Solidity: function getPositionIDsForTrader(address trader, bytes32 marketID) view returns(uint256[] positionIDs)
func (*FuturesSession) GetPositionsForTrader ¶
func (f *FuturesSession) GetPositionsForTrader(trader common.Address, marketID [32]byte) ([]TypesPosition, error)
GetPositionsForTrader is a free data retrieval call binding the contract method 0x0088e8cc.
Solidity: function getPositionsForTrader(address trader, bytes32 marketID) view returns((bytes32,bytes32,uint8,uint256,uint256,uint256,int256)[])
func (*FuturesSession) GetReceiptApproved ¶
func (f *FuturesSession) GetReceiptApproved(receiverSubAccountID [32]byte, positionID *big.Int) (bool, error)
GetReceiptApproved is a free data retrieval call binding the contract method 0x228906c8.
Solidity: function getReceiptApproved(bytes32 receiverSubAccountID, uint256 positionID) view returns(bool)
func (*FuturesSession) GetTraderSubAccountsCount ¶
GetTraderSubAccountsCount is a free data retrieval call binding the contract method 0x603ca5dc.
Solidity: function getTraderSubAccountsCount(address trader) view returns(uint256)
func (*FuturesSession) GetUnitPositionValue ¶
func (f *FuturesSession) GetUnitPositionValue(positionID *big.Int, priceToUse *big.Int) (*big.Int, error)
GetUnitPositionValue is a free data retrieval call binding the contract method 0x574e2080.
Solidity: function getUnitPositionValue(uint256 positionID, uint256 priceToUse) view returns(int256 unitPositionValue)
func (*FuturesSession) InsurancePools ¶
func (f *FuturesSession) InsurancePools(arg0 [32]byte) (*big.Int, error)
InsurancePools is a free data retrieval call binding the contract method 0x2514c1f1.
Solidity: function insurancePools(bytes32 ) view returns(uint256)
func (*FuturesSession) IsAllowedToReceivePosition ¶
func (f *FuturesSession) IsAllowedToReceivePosition(positionID *big.Int, sender common.Address, receiverSubAccountID [32]byte) (bool, error)
IsAllowedToReceivePosition is a free data retrieval call binding the contract method 0x57971430.
Solidity: function isAllowedToReceivePosition(uint256 positionID, address sender, bytes32 receiverSubAccountID) view returns(bool)
func (*FuturesSession) IsAllowedToTransferPosition ¶
func (f *FuturesSession) IsAllowedToTransferPosition(positionID *big.Int, sender common.Address) (bool, error)
IsAllowedToTransferPosition is a free data retrieval call binding the contract method 0x0e6c0912.
Solidity: function isAllowedToTransferPosition(uint256 positionID, address sender) view returns(bool)
func (*FuturesSession) IsApprovedForAll ¶
func (f *FuturesSession) IsApprovedForAll(fromSubAccountID [32]byte, operator common.Address) (bool, error)
IsApprovedForAll is a free data retrieval call binding the contract method 0xb0698628.
Solidity: function isApprovedForAll(bytes32 fromSubAccountID, address operator) view returns(bool)
func (*FuturesSession) IsApprovedForMarket ¶
func (f *FuturesSession) IsApprovedForMarket(fromSubAccountID [32]byte, operator common.Address, marketID [32]byte) (bool, error)
IsApprovedForMarket is a free data retrieval call binding the contract method 0x1d37b559.
Solidity: function isApprovedForMarket(bytes32 fromSubAccountID, address operator, bytes32 marketID) view returns(bool)
func (*FuturesSession) IsFuturesMarketSettled ¶
func (f *FuturesSession) IsFuturesMarketSettled(arg0 [32]byte) (bool, error)
IsFuturesMarketSettled is a free data retrieval call binding the contract method 0xd5a5c5e2.
Solidity: function isFuturesMarketSettled(bytes32 ) view returns(bool)
func (*FuturesSession) IsReceiptApprovedForAll ¶
func (f *FuturesSession) IsReceiptApprovedForAll(receiverSubAccountID [32]byte, operator common.Address) (bool, error)
IsReceiptApprovedForAll is a free data retrieval call binding the contract method 0x2d1792bd.
Solidity: function isReceiptApprovedForAll(bytes32 receiverSubAccountID, address operator) view returns(bool)
func (*FuturesSession) IsReceiptApprovedForMarket ¶
func (f *FuturesSession) IsReceiptApprovedForMarket(receiverSubAccountID [32]byte, operator common.Address, marketID [32]byte) (bool, error)
IsReceiptApprovedForMarket is a free data retrieval call binding the contract method 0x218c106c.
Solidity: function isReceiptApprovedForMarket(bytes32 receiverSubAccountID, address operator, bytes32 marketID) view returns(bool)
func (*FuturesSession) IsTimeExpiryFuturesMarket ¶
func (f *FuturesSession) IsTimeExpiryFuturesMarket(marketID [32]byte) (bool, error)
IsTimeExpiryFuturesMarket is a free data retrieval call binding the contract method 0x6e664084.
Solidity: function isTimeExpiryFuturesMarket(bytes32 marketID) view returns(bool)
func (*FuturesSession) IsValidBaseCurrency ¶
func (f *FuturesSession) IsValidBaseCurrency(arg0 common.Address) (bool, error)
IsValidBaseCurrency is a free data retrieval call binding the contract method 0x227cdb85.
Solidity: function isValidBaseCurrency(address ) view returns(bool)
func (*FuturesSession) IsValidHashSignature ¶
func (f *FuturesSession) IsValidHashSignature(hash [32]byte, signerAddress common.Address, signature []byte) (bool, error)
IsValidHashSignature is a free data retrieval call binding the contract method 0x8171c407.
Solidity: function isValidHashSignature(bytes32 hash, address signerAddress, bytes signature) view returns(bool isValid)
func (*FuturesSession) IsValidOrderSignature ¶
func (f *FuturesSession) IsValidOrderSignature(order Order, signature []byte) (bool, error)
IsValidOrderSignature is a free data retrieval call binding the contract method 0xa12dcc6f.
Solidity: function isValidOrderSignature((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes) order, bytes signature) view returns(bool isValid)
func (*FuturesSession) IsValidTransactionSignature ¶
func (f *FuturesSession) IsValidTransactionSignature(transaction LibZeroExTransactionZeroExTransaction, signature []byte) (bool, error)
IsValidTransactionSignature is a free data retrieval call binding the contract method 0x8d45cd23.
Solidity: function isValidTransactionSignature((uint256,uint256,uint256,address,bytes) transaction, bytes signature) view returns(bool isValid)
func (*FuturesSession) LastValidVWAP ¶
func (f *FuturesSession) LastValidVWAP(arg0 [32]byte) (*big.Int, error)
LastValidVWAP is a free data retrieval call binding the contract method 0x42151440.
Solidity: function lastValidVWAP(bytes32 ) view returns(uint256)
func (*FuturesSession) LiquidatePosition ¶
func (f *FuturesSession) LiquidatePosition(subAccountID [32]byte, marketID [32]byte, liquidationCaller common.Address, orders []Order, quantity *big.Int, signatures [][]byte) (*types.Transaction, error)
LiquidatePosition is a paid mutator transaction binding the contract method 0xd6128693.
Solidity: function liquidatePosition(bytes32 subAccountID, bytes32 marketID, address liquidationCaller, (address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] orders, uint256 quantity, bytes[] signatures) returns((uint256,uint256,uint256,uint256) results)
func (*FuturesSession) MINIMUMMARGINRATIO ¶
func (f *FuturesSession) MINIMUMMARGINRATIO() (*big.Int, error)
MINIMUMMARGINRATIO is a free data retrieval call binding the contract method 0xe63f9a7d.
Solidity: function MINIMUM_MARGIN_RATIO() view returns(uint256 value)
func (*FuturesSession) MarketCount ¶
func (f *FuturesSession) MarketCount() (*big.Int, error)
MarketCount is a free data retrieval call binding the contract method 0xec979082.
Solidity: function marketCount() view returns(uint256)
func (*FuturesSession) MarketOrders ¶
func (f *FuturesSession) MarketOrders(orders []Order, quantity *big.Int, margin *big.Int, subAccountID [32]byte, isRevertingOnPartialFills bool, signatures [][]byte, feeRecipientAddress common.Address) (*types.Transaction, error)
MarketOrders is a paid mutator transaction binding the contract method 0xfd7d3b8a.
Solidity: function marketOrders((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] orders, uint256 quantity, uint256 margin, bytes32 subAccountID, bool isRevertingOnPartialFills, bytes[] signatures, address feeRecipientAddress) returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256)[] results)
func (*FuturesSession) MarketSerialToID ¶
func (f *FuturesSession) MarketSerialToID(arg0 *big.Int) ([32]byte, error)
MarketSerialToID is a free data retrieval call binding the contract method 0xbae18473.
Solidity: function marketSerialToID(uint256 ) view returns(bytes32)
func (*FuturesSession) MatchSpotOrders ¶
func (f *FuturesSession) MatchSpotOrders(leftOrder Order, rightOrder Order, leftSignature []byte, rightSignature []byte) (*types.Transaction, error)
MatchSpotOrders is a paid mutator transaction binding the contract method 0xc7e34978.
Solidity: function matchSpotOrders((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes) leftOrder, (address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes) rightOrder, bytes leftSignature, bytes rightSignature) returns(((uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256)) matchedFillResults)
func (*FuturesSession) MaxBaseCurrencyCap ¶
func (f *FuturesSession) MaxBaseCurrencyCap() (*big.Int, error)
MaxBaseCurrencyCap is a free data retrieval call binding the contract method 0xf8720a75.
Solidity: function maxBaseCurrencyCap() view returns(uint256)
func (*FuturesSession) MostRecentEpochQuantity ¶
func (f *FuturesSession) MostRecentEpochQuantity(arg0 [32]byte) (*big.Int, error)
MostRecentEpochQuantity is a free data retrieval call binding the contract method 0xf7a28a1a.
Solidity: function mostRecentEpochQuantity(bytes32 ) view returns(uint256)
func (*FuturesSession) MostRecentEpochVolume ¶
func (f *FuturesSession) MostRecentEpochVolume(arg0 [32]byte) (*big.Int, error)
MostRecentEpochVolume is a free data retrieval call binding the contract method 0x13626422.
Solidity: function mostRecentEpochVolume(bytes32 ) view returns(uint256)
func (*FuturesSession) MostRecentEpochWeightedAverageContractIndexDiff ¶
func (f *FuturesSession) MostRecentEpochWeightedAverageContractIndexDiff(arg0 [32]byte) (*big.Int, error)
MostRecentEpochWeightedAverageContractIndexDiff is a free data retrieval call binding the contract method 0x32d22e7d.
Solidity: function mostRecentEpochWeightedAverageContractIndexDiff(bytes32 ) view returns(int256)
func (*FuturesSession) MostRecentmostRecentEpochVolumeEpochQuantity ¶
func (f *FuturesSession) MostRecentmostRecentEpochVolumeEpochQuantity(arg0 [32]byte) (*big.Int, error)
MostRecentmostRecentEpochVolumeEpochQuantity is a free data retrieval call binding the contract method 0x45194767.
Solidity: function mostRecentmostRecentEpochVolumeEpochQuantity(bytes32 ) view returns(uint256)
func (*FuturesSession) MultiMatchOrders ¶
func (f *FuturesSession) MultiMatchOrders(leftOrders []Order, rightOrder Order, leftSignatures [][]byte, rightSignature []byte) (*types.Transaction, error)
MultiMatchOrders is a paid mutator transaction binding the contract method 0x86d7729c.
Solidity: function multiMatchOrders((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] leftOrders, (address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes) rightOrder, bytes[] leftSignatures, bytes rightSignature) returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256)[] results)
func (*FuturesSession) MultiMatchSpotOrders ¶
func (f *FuturesSession) MultiMatchSpotOrders(leftOrders []Order, rightOrders []Order, leftSignatures [][]byte, rightSignatures [][]byte) (*types.Transaction, error)
MultiMatchSpotOrders is a paid mutator transaction binding the contract method 0xd8e2259c.
Solidity: function multiMatchSpotOrders((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] leftOrders, (address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] rightOrders, bytes[] leftSignatures, bytes[] rightSignatures) returns(((uint256,uint256,uint256,uint256)[],(uint256,uint256,uint256,uint256)[]) batchMatchedFillResults)
func (*FuturesSession) Owner ¶
func (f *FuturesSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*FuturesSession) Paused ¶
func (f *FuturesSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*FuturesSession) PayIntoInsurancePool ¶
func (f *FuturesSession) PayIntoInsurancePool(marketID [32]byte, amount *big.Int) (*types.Transaction, error)
PayIntoInsurancePool is a paid mutator transaction binding the contract method 0x95563906.
Solidity: function payIntoInsurancePool(bytes32 marketID, uint256 amount) returns()
func (*FuturesSession) PositionCount ¶
func (f *FuturesSession) PositionCount() (*big.Int, error)
PositionCount is a free data retrieval call binding the contract method 0xe7702d05.
Solidity: function positionCount() view returns(uint256)
func (*FuturesSession) PositionCountInTEF ¶
func (f *FuturesSession) PositionCountInTEF(arg0 [32]byte) (*big.Int, error)
PositionCountInTEF is a free data retrieval call binding the contract method 0x4ded3208.
Solidity: function positionCountInTEF(bytes32 ) view returns(uint256)
func (*FuturesSession) Positions ¶
func (f *FuturesSession) Positions(arg0 *big.Int) (struct { SubAccountID [32]byte MarketID [32]byte Direction uint8 Quantity *big.Int EntryPrice *big.Int Margin *big.Int CumulativeFundingEntry *big.Int }, error)
Positions is a free data retrieval call binding the contract method 0x99fbab88.
Solidity: function positions(uint256 ) view returns(bytes32 subAccountID, bytes32 marketID, uint8 direction, uint256 quantity, uint256 entryPrice, uint256 margin, int256 cumulativeFundingEntry)
func (*FuturesSession) PreSign ¶
func (f *FuturesSession) PreSign(hash [32]byte) (*types.Transaction, error)
PreSign is a paid mutator transaction binding the contract method 0x46c02d7a.
Solidity: function preSign(bytes32 hash) payable returns()
func (*FuturesSession) PreSigned ¶
PreSigned is a free data retrieval call binding the contract method 0x82c174d0.
Solidity: function preSigned(bytes32 , address ) view returns(bool)
func (*FuturesSession) RenounceOwnership ¶
func (f *FuturesSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*FuturesSession) RestrictedDeposits ¶
RestrictedDeposits is a free data retrieval call binding the contract method 0x475ca0bb.
Solidity: function restrictedDeposits(bytes32 , address ) view returns(uint256)
func (*FuturesSession) ResumeFutures ¶
func (f *FuturesSession) ResumeFutures() (*types.Transaction, error)
ResumeFutures is a paid mutator transaction binding the contract method 0x55585bce.
Solidity: function resumeFutures() returns()
func (*FuturesSession) SetApprovalForAll ¶
func (f *FuturesSession) SetApprovalForAll(fromSubAccountID [32]byte, operator common.Address, isApproved bool) (*types.Transaction, error)
SetApprovalForAll is a paid mutator transaction binding the contract method 0xbc053e73.
Solidity: function setApprovalForAll(bytes32 fromSubAccountID, address operator, bool isApproved) returns()
func (*FuturesSession) SetApprovalForMarket ¶
func (f *FuturesSession) SetApprovalForMarket(fromSubAccountID [32]byte, operator common.Address, marketID [32]byte, isApproved bool) (*types.Transaction, error)
SetApprovalForMarket is a paid mutator transaction binding the contract method 0xa01856c1.
Solidity: function setApprovalForMarket(bytes32 fromSubAccountID, address operator, bytes32 marketID, bool isApproved) returns()
func (*FuturesSession) SetFundingRate ¶
func (f *FuturesSession) SetFundingRate(marketID [32]byte) (*types.Transaction, error)
SetFundingRate is a paid mutator transaction binding the contract method 0x33db9b03.
Solidity: function setFundingRate(bytes32 marketID) returns()
func (*FuturesSession) SetReceiptApprovalForAll ¶
func (f *FuturesSession) SetReceiptApprovalForAll(receiverSubAccountID [32]byte, operator common.Address, isApproved bool) (*types.Transaction, error)
SetReceiptApprovalForAll is a paid mutator transaction binding the contract method 0xaec3d88a.
Solidity: function setReceiptApprovalForAll(bytes32 receiverSubAccountID, address operator, bool isApproved) returns()
func (*FuturesSession) SetReceiptApprovalForMarket ¶
func (f *FuturesSession) SetReceiptApprovalForMarket(receiverSubAccountID [32]byte, operator common.Address, marketID [32]byte, isApproved bool) (*types.Transaction, error)
SetReceiptApprovalForMarket is a paid mutator transaction binding the contract method 0x14229a3f.
Solidity: function setReceiptApprovalForMarket(bytes32 receiverSubAccountID, address operator, bytes32 marketID, bool isApproved) returns()
func (*FuturesSession) SetSignatureValidatorApproval ¶
func (f *FuturesSession) SetSignatureValidatorApproval(validatorAddress common.Address, approval bool) (*types.Transaction, error)
SetSignatureValidatorApproval is a paid mutator transaction binding the contract method 0x77fcce68.
Solidity: function setSignatureValidatorApproval(address validatorAddress, bool approval) payable returns()
func (*FuturesSession) SettleExpiryFuturesPosition ¶
func (f *FuturesSession) SettleExpiryFuturesPosition(marketID [32]byte, subAccountID [32]byte) (*types.Transaction, error)
SettleExpiryFuturesPosition is a paid mutator transaction binding the contract method 0xa30b87ad.
Solidity: function settleExpiryFuturesPosition(bytes32 marketID, bytes32 subAccountID) returns((uint256,uint256,uint256,uint256) results)
func (*FuturesSession) SettleMarket ¶
func (f *FuturesSession) SettleMarket(marketID [32]byte) (*types.Transaction, error)
SettleMarket is a paid mutator transaction binding the contract method 0xe039c00e.
Solidity: function settleMarket(bytes32 marketID) returns(bool)
func (*FuturesSession) SpotMarkets ¶
func (f *FuturesSession) SpotMarkets(arg0 [32]byte) (struct { MarketID [32]byte BaseToken common.Address QuoteToken common.Address Ticker string TransactionFees TypesTransactionFees }, error)
SpotMarkets is a free data retrieval call binding the contract method 0xf5aa035e.
Solidity: function spotMarkets(bytes32 ) view returns(bytes32 marketID, address baseToken, address quoteToken, string ticker, ((uint256),(uint256),(uint256)) transactionFees)
func (*FuturesSession) SubAccountDeposits ¶
SubAccountDeposits is a free data retrieval call binding the contract method 0x666ffb9b.
Solidity: function subAccountDeposits(bytes32 , address ) view returns(uint256)
func (*FuturesSession) SubAccountIdToAddress ¶
func (f *FuturesSession) SubAccountIdToAddress(arg0 [32]byte) (common.Address, error)
SubAccountIdToAddress is a free data retrieval call binding the contract method 0x234842eb.
Solidity: function subAccountIdToAddress(bytes32 ) view returns(address)
func (*FuturesSession) SubAccountToMarketToPositionID ¶
func (f *FuturesSession) SubAccountToMarketToPositionID(arg0 [32]byte, arg1 [32]byte) (*big.Int, error)
SubAccountToMarketToPositionID is a free data retrieval call binding the contract method 0x1ebcc120.
Solidity: function subAccountToMarketToPositionID(bytes32 , bytes32 ) view returns(uint256)
func (*FuturesSession) TECADDRESS ¶
func (f *FuturesSession) TECADDRESS() (common.Address, error)
TECADDRESS is a free data retrieval call binding the contract method 0xe6077ac2.
Solidity: function TEC_ADDRESS() view returns(address)
func (*FuturesSession) TransactionsExecuted ¶
func (f *FuturesSession) TransactionsExecuted(arg0 [32]byte) (bool, error)
TransactionsExecuted is a free data retrieval call binding the contract method 0x0228e168.
Solidity: function transactionsExecuted(bytes32 ) view returns(bool)
func (*FuturesSession) TransferOwnership ¶
func (f *FuturesSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*FuturesSession) TransferPosition ¶
func (f *FuturesSession) TransferPosition(positionID *big.Int, receiverSubAccountID [32]byte, transferQuantity *big.Int) (*types.Transaction, error)
TransferPosition is a paid mutator transaction binding the contract method 0x9380ba16.
Solidity: function transferPosition(uint256 positionID, bytes32 receiverSubAccountID, uint256 transferQuantity) returns()
func (*FuturesSession) TransferToSubAccount ¶
func (f *FuturesSession) TransferToSubAccount(baseCurrency common.Address, fromSubAccountID [32]byte, toSubAccountID [32]byte, amount *big.Int) (*types.Transaction, error)
TransferToSubAccount is a paid mutator transaction binding the contract method 0xddf84a44.
Solidity: function transferToSubAccount(address baseCurrency, bytes32 fromSubAccountID, bytes32 toSubAccountID, uint256 amount) returns()
func (*FuturesSession) VaporizePosition ¶
func (f *FuturesSession) VaporizePosition(subAccountID [32]byte, marketID [32]byte, orders []Order, quantity *big.Int, signatures [][]byte) (*types.Transaction, error)
VaporizePosition is a paid mutator transaction binding the contract method 0xcaa065b9.
Solidity: function vaporizePosition(bytes32 subAccountID, bytes32 marketID, (address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] orders, uint256 quantity, bytes[] signatures) returns((uint256,uint256,uint256,uint256) results)
func (*FuturesSession) WithdrawForSubAccount ¶
func (f *FuturesSession) WithdrawForSubAccount(baseCurrency common.Address, subAccountID [32]byte, amount *big.Int) (*types.Transaction, error)
WithdrawForSubAccount is a paid mutator transaction binding the contract method 0x803a90d8.
Solidity: function withdrawForSubAccount(address baseCurrency, bytes32 subAccountID, uint256 amount) returns()
func (*FuturesSession) WithdrawFromInsurancePool ¶
func (f *FuturesSession) WithdrawFromInsurancePool(receiver common.Address, marketID [32]byte, amount *big.Int) (*types.Transaction, error)
WithdrawFromInsurancePool is a paid mutator transaction binding the contract method 0xb7d4078d.
Solidity: function withdrawFromInsurancePool(address receiver, bytes32 marketID, uint256 amount) returns()
type FuturesSetFunding ¶
type FuturesSetFunding struct { MarketID [32]byte FundingFee *big.Int CumulativeFunding *big.Int ExpiryOrNextFundingTimestamp *big.Int Raw types.Log // Blockchain specific contextual infos }
FuturesSetFunding represents a SetFunding event raised by the Futures contract.
type FuturesSetFundingIterator ¶
type FuturesSetFundingIterator struct { Event *FuturesSetFunding // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FuturesSetFundingIterator is returned from FilterSetFunding and is used to iterate over the raw logs and unpacked data for SetFunding events raised by the Futures contract.
func (*FuturesSetFundingIterator) Close ¶
func (it *FuturesSetFundingIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FuturesSetFundingIterator) Error ¶
func (it *FuturesSetFundingIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FuturesSetFundingIterator) Next ¶
func (it *FuturesSetFundingIterator) 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 FuturesSignatureValidatorApproval ¶
type FuturesSignatureValidatorApproval struct { SignerAddress common.Address ValidatorAddress common.Address IsApproved bool Raw types.Log // Blockchain specific contextual infos }
FuturesSignatureValidatorApproval represents a SignatureValidatorApproval event raised by the Futures contract.
type FuturesSignatureValidatorApprovalIterator ¶
type FuturesSignatureValidatorApprovalIterator struct { Event *FuturesSignatureValidatorApproval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FuturesSignatureValidatorApprovalIterator is returned from FilterSignatureValidatorApproval and is used to iterate over the raw logs and unpacked data for SignatureValidatorApproval events raised by the Futures contract.
func (*FuturesSignatureValidatorApprovalIterator) Close ¶
func (it *FuturesSignatureValidatorApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FuturesSignatureValidatorApprovalIterator) Error ¶
func (it *FuturesSignatureValidatorApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FuturesSignatureValidatorApprovalIterator) Next ¶
func (it *FuturesSignatureValidatorApprovalIterator) 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 FuturesSpotMarketCreation ¶
type FuturesSpotMarketCreation struct { MarketID [32]byte Ticker common.Hash BaseToken common.Address QuoteToken common.Address MakerTxFee *big.Int TakerTxFee *big.Int RelayerFeePercentage *big.Int Raw types.Log // Blockchain specific contextual infos }
FuturesSpotMarketCreation represents a SpotMarketCreation event raised by the Futures contract.
type FuturesSpotMarketCreationIterator ¶
type FuturesSpotMarketCreationIterator struct { Event *FuturesSpotMarketCreation // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FuturesSpotMarketCreationIterator is returned from FilterSpotMarketCreation and is used to iterate over the raw logs and unpacked data for SpotMarketCreation events raised by the Futures contract.
func (*FuturesSpotMarketCreationIterator) Close ¶
func (it *FuturesSpotMarketCreationIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FuturesSpotMarketCreationIterator) Error ¶
func (it *FuturesSpotMarketCreationIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FuturesSpotMarketCreationIterator) Next ¶
func (it *FuturesSpotMarketCreationIterator) 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 FuturesSpotTrade ¶
type FuturesSpotTrade struct { MarketID [32]byte SubAccountID [32]byte OrderHash [32]byte SentAsset common.Address GainedAsset common.Address SentAmount *big.Int GainedAmount *big.Int CurrentSentAssetDeposits *big.Int CurrentGainedAssetDeposits *big.Int TotalForOrderFilled *big.Int Raw types.Log // Blockchain specific contextual infos }
FuturesSpotTrade represents a SpotTrade event raised by the Futures contract.
type FuturesSpotTradeIterator ¶
type FuturesSpotTradeIterator struct { Event *FuturesSpotTrade // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FuturesSpotTradeIterator is returned from FilterSpotTrade and is used to iterate over the raw logs and unpacked data for SpotTrade events raised by the Futures contract.
func (*FuturesSpotTradeIterator) Close ¶
func (it *FuturesSpotTradeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FuturesSpotTradeIterator) Error ¶
func (it *FuturesSpotTradeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FuturesSpotTradeIterator) Next ¶
func (it *FuturesSpotTradeIterator) 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 FuturesSubaccountDepositsChange ¶
type FuturesSubaccountDepositsChange struct { DepositChangeType uint8 SubAccountID [32]byte BaseCurrency common.Address ChangeAmount *big.Int CurrentAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
FuturesSubaccountDepositsChange represents a SubaccountDepositsChange event raised by the Futures contract.
type FuturesSubaccountDepositsChangeIterator ¶
type FuturesSubaccountDepositsChangeIterator struct { Event *FuturesSubaccountDepositsChange // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FuturesSubaccountDepositsChangeIterator is returned from FilterSubaccountDepositsChange and is used to iterate over the raw logs and unpacked data for SubaccountDepositsChange events raised by the Futures contract.
func (*FuturesSubaccountDepositsChangeIterator) Close ¶
func (it *FuturesSubaccountDepositsChangeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FuturesSubaccountDepositsChangeIterator) Error ¶
func (it *FuturesSubaccountDepositsChangeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FuturesSubaccountDepositsChangeIterator) Next ¶
func (it *FuturesSubaccountDepositsChangeIterator) 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 FuturesTrade ¶
type FuturesTrade struct { IsResultingPositionLong bool PositionID *big.Int MarketID [32]byte SubAccountID [32]byte ResultingMargin *big.Int ResultingEntryPrice *big.Int ResultingQuantity *big.Int CumulativeFundingEntry *big.Int IsTradeDirectionLong bool OrderHash [32]byte ExecutionPrice *big.Int ExecutionQuantity *big.Int TotalForOrderFilled *big.Int TradeType uint8 Raw types.Log // Blockchain specific contextual infos }
FuturesTrade represents a FuturesTrade event raised by the Futures contract.
type FuturesTradeIterator ¶
type FuturesTradeIterator struct { Event *FuturesTrade // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FuturesTradeIterator is returned from FilterFuturesTrade and is used to iterate over the raw logs and unpacked data for FuturesTrade events raised by the Futures contract.
func (*FuturesTradeIterator) Close ¶
func (it *FuturesTradeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FuturesTradeIterator) Error ¶
func (it *FuturesTradeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FuturesTradeIterator) Next ¶
func (it *FuturesTradeIterator) 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 FuturesTransactionExecution ¶
type FuturesTransactionExecution struct { TransactionHash [32]byte Raw types.Log // Blockchain specific contextual infos }
FuturesTransactionExecution represents a TransactionExecution event raised by the Futures contract.
type FuturesTransactionExecutionIterator ¶
type FuturesTransactionExecutionIterator struct { Event *FuturesTransactionExecution // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FuturesTransactionExecutionIterator is returned from FilterTransactionExecution and is used to iterate over the raw logs and unpacked data for TransactionExecution events raised by the Futures contract.
func (*FuturesTransactionExecutionIterator) Close ¶
func (it *FuturesTransactionExecutionIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FuturesTransactionExecutionIterator) Error ¶
func (it *FuturesTransactionExecutionIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FuturesTransactionExecutionIterator) Next ¶
func (it *FuturesTransactionExecutionIterator) 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 FuturesTransactor ¶
type FuturesTransactor struct {
// contains filtered or unexported fields
}
FuturesTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewFuturesTransactor ¶
func NewFuturesTransactor(address common.Address, transactor bind.ContractTransactor) (*FuturesTransactor, error)
NewFuturesTransactor creates a new write-only instance of Futures, bound to a specific deployed contract.
func (*FuturesTransactor) AddMarginIntoPosition ¶
func (f *FuturesTransactor) AddMarginIntoPosition(opts *bind.TransactOpts, subAccountID [32]byte, positionID *big.Int, addedMargin *big.Int) (*types.Transaction, error)
AddMarginIntoPosition is a paid mutator transaction binding the contract method 0x62c6985e.
Solidity: function addMarginIntoPosition(bytes32 subAccountID, uint256 positionID, uint256 addedMargin) returns()
func (*FuturesTransactor) Approve ¶
func (f *FuturesTransactor) Approve(opts *bind.TransactOpts, approveTo common.Address, positionID *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address approveTo, uint256 positionID) returns()
func (*FuturesTransactor) ApproveForReceiving ¶
func (f *FuturesTransactor) ApproveForReceiving(opts *bind.TransactOpts, receiverSubAccountID [32]byte, positionID *big.Int) (*types.Transaction, error)
ApproveForReceiving is a paid mutator transaction binding the contract method 0xf5a5f0b3.
Solidity: function approveForReceiving(bytes32 receiverSubAccountID, uint256 positionID) returns()
func (*FuturesTransactor) BatchCancelOrders ¶
func (f *FuturesTransactor) BatchCancelOrders(opts *bind.TransactOpts, orders []Order) (*types.Transaction, error)
BatchCancelOrders is a paid mutator transaction binding the contract method 0xdedfc1f1.
Solidity: function batchCancelOrders((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] orders) returns()
func (*FuturesTransactor) BatchCheckFunding ¶
func (f *FuturesTransactor) BatchCheckFunding(opts *bind.TransactOpts, marketIDs [][32]byte) (*types.Transaction, error)
BatchCheckFunding is a paid mutator transaction binding the contract method 0x2c7c2134.
Solidity: function batchCheckFunding(bytes32[] marketIDs) returns(bool[])
func (*FuturesTransactor) BatchDepositForSubAccounts ¶
func (f *FuturesTransactor) BatchDepositForSubAccounts(opts *bind.TransactOpts, baseCurrencies []common.Address, subAccountIDs [][32]byte, amounts []*big.Int) (*types.Transaction, error)
BatchDepositForSubAccounts is a paid mutator transaction binding the contract method 0xc5d3277b.
Solidity: function batchDepositForSubAccounts(address[] baseCurrencies, bytes32[] subAccountIDs, uint256[] amounts) returns()
func (*FuturesTransactor) BatchDepositForTraders ¶
func (f *FuturesTransactor) BatchDepositForTraders(opts *bind.TransactOpts, baseCurrencies []common.Address, traders []common.Address, amounts []*big.Int) (*types.Transaction, error)
BatchDepositForTraders is a paid mutator transaction binding the contract method 0x487ebde1.
Solidity: function batchDepositForTraders(address[] baseCurrencies, address[] traders, uint256[] amounts) returns()
func (*FuturesTransactor) BatchExecuteTransactions ¶
func (f *FuturesTransactor) BatchExecuteTransactions(opts *bind.TransactOpts, transactions []LibZeroExTransactionZeroExTransaction, signatures [][]byte) (*types.Transaction, error)
BatchExecuteTransactions is a paid mutator transaction binding the contract method 0xfc74896d.
Solidity: function batchExecuteTransactions((uint256,uint256,uint256,address,bytes)[] transactions, bytes[] signatures) payable returns(bytes[] returnData)
func (*FuturesTransactor) BatchLiquidatePosition ¶
func (f *FuturesTransactor) BatchLiquidatePosition(opts *bind.TransactOpts, positionIDs []*big.Int, orders [][]Order, quantities []*big.Int, signatures [][][]byte, liquidationCaller common.Address) (*types.Transaction, error)
BatchLiquidatePosition is a paid mutator transaction binding the contract method 0x1b934aea.
Solidity: function batchLiquidatePosition(uint256[] positionIDs, (address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[][] orders, uint256[] quantities, bytes[][] signatures, address liquidationCaller) returns((uint256,uint256,uint256,uint256)[] results)
func (*FuturesTransactor) BatchSettleExpiryFuturesPosition ¶
func (f *FuturesTransactor) BatchSettleExpiryFuturesPosition(opts *bind.TransactOpts, marketID [32]byte, subAccountIDs [][32]byte) (*types.Transaction, error)
BatchSettleExpiryFuturesPosition is a paid mutator transaction binding the contract method 0xb378df0b.
Solidity: function batchSettleExpiryFuturesPosition(bytes32 marketID, bytes32[] subAccountIDs) returns((uint256,uint256,uint256,uint256)[] results)
func (*FuturesTransactor) CancelOrder ¶
func (f *FuturesTransactor) CancelOrder(opts *bind.TransactOpts, order Order) (*types.Transaction, error)
CancelOrder is a paid mutator transaction binding the contract method 0x2da62987.
Solidity: function cancelOrder((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes) order) returns()
func (*FuturesTransactor) ChangeAuctionTimeInterval ¶
func (f *FuturesTransactor) ChangeAuctionTimeInterval(opts *bind.TransactOpts, auctionTimeInterval_ *big.Int) (*types.Transaction, error)
ChangeAuctionTimeInterval is a paid mutator transaction binding the contract method 0x5852ca61.
Solidity: function changeAuctionTimeInterval(uint256 auctionTimeInterval_) returns()
func (*FuturesTransactor) ChangeMarketFundingInterval ¶
func (f *FuturesTransactor) ChangeMarketFundingInterval(opts *bind.TransactOpts, marketID [32]byte, fundingInterval *big.Int) (*types.Transaction, error)
ChangeMarketFundingInterval is a paid mutator transaction binding the contract method 0x7a540e43.
Solidity: function changeMarketFundingInterval(bytes32 marketID, uint256 fundingInterval) returns()
func (*FuturesTransactor) ChangeMarketInitialMarginRatio ¶
func (f *FuturesTransactor) ChangeMarketInitialMarginRatio(opts *bind.TransactOpts, marketID [32]byte, initialMarginRatio PermyriadMathPermyriad) (*types.Transaction, error)
ChangeMarketInitialMarginRatio is a paid mutator transaction binding the contract method 0x50f2722b.
Solidity: function changeMarketInitialMarginRatio(bytes32 marketID, (uint256) initialMarginRatio) returns()
func (*FuturesTransactor) ChangeMarketMaintenanceMarginRatio ¶
func (f *FuturesTransactor) ChangeMarketMaintenanceMarginRatio(opts *bind.TransactOpts, marketID [32]byte, maintenanceMarginRatio PermyriadMathPermyriad) (*types.Transaction, error)
ChangeMarketMaintenanceMarginRatio is a paid mutator transaction binding the contract method 0x267f8feb.
Solidity: function changeMarketMaintenanceMarginRatio(bytes32 marketID, (uint256) maintenanceMarginRatio) returns()
func (*FuturesTransactor) ChangeMarketMakerTxFee ¶
func (f *FuturesTransactor) ChangeMarketMakerTxFee(opts *bind.TransactOpts, marketID [32]byte, makerTxFee PermyriadMathPermyriad) (*types.Transaction, error)
ChangeMarketMakerTxFee is a paid mutator transaction binding the contract method 0x2c23608b.
Solidity: function changeMarketMakerTxFee(bytes32 marketID, (uint256) makerTxFee) returns()
func (*FuturesTransactor) ChangeMarketOracle ¶
func (f *FuturesTransactor) ChangeMarketOracle(opts *bind.TransactOpts, marketID [32]byte, oracle common.Address) (*types.Transaction, error)
ChangeMarketOracle is a paid mutator transaction binding the contract method 0x555eb5ed.
Solidity: function changeMarketOracle(bytes32 marketID, address oracle) returns()
func (*FuturesTransactor) ChangeMarketOracle0 ¶
func (f *FuturesTransactor) ChangeMarketOracle0(opts *bind.TransactOpts, marketID [32]byte, fundingInterval *big.Int) (*types.Transaction, error)
ChangeMarketOracle0 is a paid mutator transaction binding the contract method 0xdb39261d.
Solidity: function changeMarketOracle(bytes32 marketID, uint256 fundingInterval) returns()
func (*FuturesTransactor) ChangeMarketRelayerTxFee ¶
func (f *FuturesTransactor) ChangeMarketRelayerTxFee(opts *bind.TransactOpts, marketID [32]byte, relayerTxFee PermyriadMathPermyriad) (*types.Transaction, error)
ChangeMarketRelayerTxFee is a paid mutator transaction binding the contract method 0x6db346d3.
Solidity: function changeMarketRelayerTxFee(bytes32 marketID, (uint256) relayerTxFee) returns()
func (*FuturesTransactor) ChangeMarketTakerTxFee ¶
func (f *FuturesTransactor) ChangeMarketTakerTxFee(opts *bind.TransactOpts, marketID [32]byte, takerTxFee PermyriadMathPermyriad) (*types.Transaction, error)
ChangeMarketTakerTxFee is a paid mutator transaction binding the contract method 0xbba21c56.
Solidity: function changeMarketTakerTxFee(bytes32 marketID, (uint256) takerTxFee) returns()
func (*FuturesTransactor) ChangeMaxBaseCurrencyCap ¶
func (f *FuturesTransactor) ChangeMaxBaseCurrencyCap(opts *bind.TransactOpts, maxBaseCurrencyCap_ *big.Int) (*types.Transaction, error)
ChangeMaxBaseCurrencyCap is a paid mutator transaction binding the contract method 0xea7a4b3f.
Solidity: function changeMaxBaseCurrencyCap(uint256 maxBaseCurrencyCap_) returns()
func (*FuturesTransactor) ChangeMinimumMarginRatio ¶
func (f *FuturesTransactor) ChangeMinimumMarginRatio(opts *bind.TransactOpts, MINIMUM_MARGIN_RATIO_ PermyriadMathPermyriad) (*types.Transaction, error)
ChangeMinimumMarginRatio is a paid mutator transaction binding the contract method 0x5d19277f.
Solidity: function changeMinimumMarginRatio((uint256) MINIMUM_MARGIN_RATIO_) returns()
func (*FuturesTransactor) CheckFunding ¶
func (f *FuturesTransactor) CheckFunding(opts *bind.TransactOpts, marketID [32]byte) (*types.Transaction, error)
CheckFunding is a paid mutator transaction binding the contract method 0x70f1c88b.
Solidity: function checkFunding(bytes32 marketID) returns(bool)
func (*FuturesTransactor) ClosePosition ¶
func (f *FuturesTransactor) ClosePosition(opts *bind.TransactOpts, subAccountID [32]byte, marketID [32]byte, orders []Order, quantity *big.Int, isRevertingOnPartialFills bool, signatures [][]byte) (*types.Transaction, error)
ClosePosition is a paid mutator transaction binding the contract method 0x73ea5056.
Solidity: function closePosition(bytes32 subAccountID, bytes32 marketID, (address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] orders, uint256 quantity, bool isRevertingOnPartialFills, bytes[] signatures) returns((uint256,uint256,uint256,uint256) results)
func (*FuturesTransactor) CreateDefaultSubAccountAndDeposit ¶
func (f *FuturesTransactor) CreateDefaultSubAccountAndDeposit(opts *bind.TransactOpts, baseCurrency common.Address, amount *big.Int) (*types.Transaction, error)
CreateDefaultSubAccountAndDeposit is a paid mutator transaction binding the contract method 0xcaa5cf87.
Solidity: function createDefaultSubAccountAndDeposit(address baseCurrency, uint256 amount) returns(bytes32)
func (*FuturesTransactor) CreateFuturesMarket ¶
func (f *FuturesTransactor) CreateFuturesMarket(opts *bind.TransactOpts, ticker string, baseCurrency common.Address, oracle common.Address, initialMarginRatio PermyriadMathPermyriad, maintenanceMarginRatio PermyriadMathPermyriad, fundingInterval *big.Int, expirationTime *big.Int, makerTxFee PermyriadMathPermyriad, takerTxFee PermyriadMathPermyriad, relayerFeePercentage PermyriadMathPermyriad) (*types.Transaction, error)
CreateFuturesMarket is a paid mutator transaction binding the contract method 0xc47e094b.
Solidity: function createFuturesMarket(string ticker, address baseCurrency, address oracle, (uint256) initialMarginRatio, (uint256) maintenanceMarginRatio, uint256 fundingInterval, uint256 expirationTime, (uint256) makerTxFee, (uint256) takerTxFee, (uint256) relayerFeePercentage) returns()
func (*FuturesTransactor) CreateFuturesMarketWithFixedMarketId ¶
func (f *FuturesTransactor) CreateFuturesMarketWithFixedMarketId(opts *bind.TransactOpts, ticker string, baseCurrency common.Address, oracle common.Address, initialMarginRatio PermyriadMathPermyriad, maintenanceMarginRatio PermyriadMathPermyriad, fundingInterval *big.Int, expirationTime *big.Int, makerTxFee PermyriadMathPermyriad, takerTxFee PermyriadMathPermyriad, relayerFeePercentage PermyriadMathPermyriad, marketID [32]byte) (*types.Transaction, error)
CreateFuturesMarketWithFixedMarketId is a paid mutator transaction binding the contract method 0x28f9d7a5.
Solidity: function createFuturesMarketWithFixedMarketId(string ticker, address baseCurrency, address oracle, (uint256) initialMarginRatio, (uint256) maintenanceMarginRatio, uint256 fundingInterval, uint256 expirationTime, (uint256) makerTxFee, (uint256) takerTxFee, (uint256) relayerFeePercentage, bytes32 marketID) returns()
func (*FuturesTransactor) CreateSpotMarket ¶
func (f *FuturesTransactor) CreateSpotMarket(opts *bind.TransactOpts, ticker string, baseToken common.Address, quoteToken common.Address, makerTxFee PermyriadMathPermyriad, takerTxFee PermyriadMathPermyriad, relayerFeePercentage PermyriadMathPermyriad) (*types.Transaction, error)
CreateSpotMarket is a paid mutator transaction binding the contract method 0xadb44540.
Solidity: function createSpotMarket(string ticker, address baseToken, address quoteToken, (uint256) makerTxFee, (uint256) takerTxFee, (uint256) relayerFeePercentage) returns()
func (*FuturesTransactor) CreateSubAccountAndDeposit ¶
func (f *FuturesTransactor) CreateSubAccountAndDeposit(opts *bind.TransactOpts, baseCurrency common.Address, subAccountNonce *big.Int, amount *big.Int) (*types.Transaction, error)
CreateSubAccountAndDeposit is a paid mutator transaction binding the contract method 0x06bc2e72.
Solidity: function createSubAccountAndDeposit(address baseCurrency, uint96 subAccountNonce, uint256 amount) returns(bytes32)
func (*FuturesTransactor) CreateSubAccountForTraderWithNonce ¶
func (f *FuturesTransactor) CreateSubAccountForTraderWithNonce(opts *bind.TransactOpts, trader common.Address, subAccountNonce *big.Int) (*types.Transaction, error)
CreateSubAccountForTraderWithNonce is a paid mutator transaction binding the contract method 0x510d4093.
Solidity: function createSubAccountForTraderWithNonce(address trader, uint96 subAccountNonce) returns(bytes32)
func (*FuturesTransactor) Deposit ¶
func (f *FuturesTransactor) Deposit(opts *bind.TransactOpts, baseCurrency common.Address, amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x47e7ef24.
Solidity: function deposit(address baseCurrency, uint256 amount) returns()
func (*FuturesTransactor) DepositFor ¶
func (f *FuturesTransactor) DepositFor(opts *bind.TransactOpts, baseCurrency common.Address, trader common.Address, amount *big.Int) (*types.Transaction, error)
DepositFor is a paid mutator transaction binding the contract method 0xb3db428b.
Solidity: function depositFor(address baseCurrency, address trader, uint256 amount) returns()
func (*FuturesTransactor) DepositForSubaccount ¶
func (f *FuturesTransactor) DepositForSubaccount(opts *bind.TransactOpts, baseCurrency common.Address, subAccountID [32]byte, amount *big.Int) (*types.Transaction, error)
DepositForSubaccount is a paid mutator transaction binding the contract method 0x9d44c2b1.
Solidity: function depositForSubaccount(address baseCurrency, bytes32 subAccountID, uint256 amount) returns()
func (*FuturesTransactor) DepositIntoSubAccount ¶
func (f *FuturesTransactor) DepositIntoSubAccount(opts *bind.TransactOpts, baseCurrency common.Address, subAccountID [32]byte, amount *big.Int) (*types.Transaction, error)
DepositIntoSubAccount is a paid mutator transaction binding the contract method 0xf2848b01.
Solidity: function depositIntoSubAccount(address baseCurrency, bytes32 subAccountID, uint256 amount) returns()
func (*FuturesTransactor) EmergencyStopFutures ¶
func (f *FuturesTransactor) EmergencyStopFutures(opts *bind.TransactOpts) (*types.Transaction, error)
EmergencyStopFutures is a paid mutator transaction binding the contract method 0x0d64dc42.
Solidity: function emergencyStopFutures() returns()
func (*FuturesTransactor) EmergencyStopMarket ¶
func (f *FuturesTransactor) EmergencyStopMarket(opts *bind.TransactOpts, marketID [32]byte) (*types.Transaction, error)
EmergencyStopMarket is a paid mutator transaction binding the contract method 0xd135eeb3.
Solidity: function emergencyStopMarket(bytes32 marketID) returns()
func (*FuturesTransactor) ExecuteTransaction ¶
func (f *FuturesTransactor) ExecuteTransaction(opts *bind.TransactOpts, transaction LibZeroExTransactionZeroExTransaction, signature []byte) (*types.Transaction, error)
ExecuteTransaction is a paid mutator transaction binding the contract method 0x2280c910.
Solidity: function executeTransaction((uint256,uint256,uint256,address,bytes) transaction, bytes signature) payable returns(bytes)
func (*FuturesTransactor) LiquidatePosition ¶
func (f *FuturesTransactor) LiquidatePosition(opts *bind.TransactOpts, subAccountID [32]byte, marketID [32]byte, liquidationCaller common.Address, orders []Order, quantity *big.Int, signatures [][]byte) (*types.Transaction, error)
LiquidatePosition is a paid mutator transaction binding the contract method 0xd6128693.
Solidity: function liquidatePosition(bytes32 subAccountID, bytes32 marketID, address liquidationCaller, (address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] orders, uint256 quantity, bytes[] signatures) returns((uint256,uint256,uint256,uint256) results)
func (*FuturesTransactor) MarketOrders ¶
func (f *FuturesTransactor) MarketOrders(opts *bind.TransactOpts, orders []Order, quantity *big.Int, margin *big.Int, subAccountID [32]byte, isRevertingOnPartialFills bool, signatures [][]byte, feeRecipientAddress common.Address) (*types.Transaction, error)
MarketOrders is a paid mutator transaction binding the contract method 0xfd7d3b8a.
Solidity: function marketOrders((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] orders, uint256 quantity, uint256 margin, bytes32 subAccountID, bool isRevertingOnPartialFills, bytes[] signatures, address feeRecipientAddress) returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256)[] results)
func (*FuturesTransactor) MatchSpotOrders ¶
func (f *FuturesTransactor) MatchSpotOrders(opts *bind.TransactOpts, leftOrder Order, rightOrder Order, leftSignature []byte, rightSignature []byte) (*types.Transaction, error)
MatchSpotOrders is a paid mutator transaction binding the contract method 0xc7e34978.
Solidity: function matchSpotOrders((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes) leftOrder, (address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes) rightOrder, bytes leftSignature, bytes rightSignature) returns(((uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256)) matchedFillResults)
func (*FuturesTransactor) MultiMatchOrders ¶
func (f *FuturesTransactor) MultiMatchOrders(opts *bind.TransactOpts, leftOrders []Order, rightOrder Order, leftSignatures [][]byte, rightSignature []byte) (*types.Transaction, error)
MultiMatchOrders is a paid mutator transaction binding the contract method 0x86d7729c.
Solidity: function multiMatchOrders((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] leftOrders, (address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes) rightOrder, bytes[] leftSignatures, bytes rightSignature) returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256)[] results)
func (*FuturesTransactor) MultiMatchSpotOrders ¶
func (f *FuturesTransactor) MultiMatchSpotOrders(opts *bind.TransactOpts, leftOrders []Order, rightOrders []Order, leftSignatures [][]byte, rightSignatures [][]byte) (*types.Transaction, error)
MultiMatchSpotOrders is a paid mutator transaction binding the contract method 0xd8e2259c.
Solidity: function multiMatchSpotOrders((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] leftOrders, (address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] rightOrders, bytes[] leftSignatures, bytes[] rightSignatures) returns(((uint256,uint256,uint256,uint256)[],(uint256,uint256,uint256,uint256)[]) batchMatchedFillResults)
func (*FuturesTransactor) PayIntoInsurancePool ¶
func (f *FuturesTransactor) PayIntoInsurancePool(opts *bind.TransactOpts, marketID [32]byte, amount *big.Int) (*types.Transaction, error)
PayIntoInsurancePool is a paid mutator transaction binding the contract method 0x95563906.
Solidity: function payIntoInsurancePool(bytes32 marketID, uint256 amount) returns()
func (*FuturesTransactor) PreSign ¶
func (f *FuturesTransactor) PreSign(opts *bind.TransactOpts, hash [32]byte) (*types.Transaction, error)
PreSign is a paid mutator transaction binding the contract method 0x46c02d7a.
Solidity: function preSign(bytes32 hash) payable returns()
func (*FuturesTransactor) RenounceOwnership ¶
func (f *FuturesTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*FuturesTransactor) ResumeFutures ¶
func (f *FuturesTransactor) ResumeFutures(opts *bind.TransactOpts) (*types.Transaction, error)
ResumeFutures is a paid mutator transaction binding the contract method 0x55585bce.
Solidity: function resumeFutures() returns()
func (*FuturesTransactor) SetApprovalForAll ¶
func (f *FuturesTransactor) SetApprovalForAll(opts *bind.TransactOpts, fromSubAccountID [32]byte, operator common.Address, isApproved bool) (*types.Transaction, error)
SetApprovalForAll is a paid mutator transaction binding the contract method 0xbc053e73.
Solidity: function setApprovalForAll(bytes32 fromSubAccountID, address operator, bool isApproved) returns()
func (*FuturesTransactor) SetApprovalForMarket ¶
func (f *FuturesTransactor) SetApprovalForMarket(opts *bind.TransactOpts, fromSubAccountID [32]byte, operator common.Address, marketID [32]byte, isApproved bool) (*types.Transaction, error)
SetApprovalForMarket is a paid mutator transaction binding the contract method 0xa01856c1.
Solidity: function setApprovalForMarket(bytes32 fromSubAccountID, address operator, bytes32 marketID, bool isApproved) returns()
func (*FuturesTransactor) SetFundingRate ¶
func (f *FuturesTransactor) SetFundingRate(opts *bind.TransactOpts, marketID [32]byte) (*types.Transaction, error)
SetFundingRate is a paid mutator transaction binding the contract method 0x33db9b03.
Solidity: function setFundingRate(bytes32 marketID) returns()
func (*FuturesTransactor) SetReceiptApprovalForAll ¶
func (f *FuturesTransactor) SetReceiptApprovalForAll(opts *bind.TransactOpts, receiverSubAccountID [32]byte, operator common.Address, isApproved bool) (*types.Transaction, error)
SetReceiptApprovalForAll is a paid mutator transaction binding the contract method 0xaec3d88a.
Solidity: function setReceiptApprovalForAll(bytes32 receiverSubAccountID, address operator, bool isApproved) returns()
func (*FuturesTransactor) SetReceiptApprovalForMarket ¶
func (f *FuturesTransactor) SetReceiptApprovalForMarket(opts *bind.TransactOpts, receiverSubAccountID [32]byte, operator common.Address, marketID [32]byte, isApproved bool) (*types.Transaction, error)
SetReceiptApprovalForMarket is a paid mutator transaction binding the contract method 0x14229a3f.
Solidity: function setReceiptApprovalForMarket(bytes32 receiverSubAccountID, address operator, bytes32 marketID, bool isApproved) returns()
func (*FuturesTransactor) SetSignatureValidatorApproval ¶
func (f *FuturesTransactor) SetSignatureValidatorApproval(opts *bind.TransactOpts, validatorAddress common.Address, approval bool) (*types.Transaction, error)
SetSignatureValidatorApproval is a paid mutator transaction binding the contract method 0x77fcce68.
Solidity: function setSignatureValidatorApproval(address validatorAddress, bool approval) payable returns()
func (*FuturesTransactor) SettleExpiryFuturesPosition ¶
func (f *FuturesTransactor) SettleExpiryFuturesPosition(opts *bind.TransactOpts, marketID [32]byte, subAccountID [32]byte) (*types.Transaction, error)
SettleExpiryFuturesPosition is a paid mutator transaction binding the contract method 0xa30b87ad.
Solidity: function settleExpiryFuturesPosition(bytes32 marketID, bytes32 subAccountID) returns((uint256,uint256,uint256,uint256) results)
func (*FuturesTransactor) SettleMarket ¶
func (f *FuturesTransactor) SettleMarket(opts *bind.TransactOpts, marketID [32]byte) (*types.Transaction, error)
SettleMarket is a paid mutator transaction binding the contract method 0xe039c00e.
Solidity: function settleMarket(bytes32 marketID) returns(bool)
func (*FuturesTransactor) TransferOwnership ¶
func (f *FuturesTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*FuturesTransactor) TransferPosition ¶
func (f *FuturesTransactor) TransferPosition(opts *bind.TransactOpts, positionID *big.Int, receiverSubAccountID [32]byte, transferQuantity *big.Int) (*types.Transaction, error)
TransferPosition is a paid mutator transaction binding the contract method 0x9380ba16.
Solidity: function transferPosition(uint256 positionID, bytes32 receiverSubAccountID, uint256 transferQuantity) returns()
func (*FuturesTransactor) TransferToSubAccount ¶
func (f *FuturesTransactor) TransferToSubAccount(opts *bind.TransactOpts, baseCurrency common.Address, fromSubAccountID [32]byte, toSubAccountID [32]byte, amount *big.Int) (*types.Transaction, error)
TransferToSubAccount is a paid mutator transaction binding the contract method 0xddf84a44.
Solidity: function transferToSubAccount(address baseCurrency, bytes32 fromSubAccountID, bytes32 toSubAccountID, uint256 amount) returns()
func (*FuturesTransactor) VaporizePosition ¶
func (f *FuturesTransactor) VaporizePosition(opts *bind.TransactOpts, subAccountID [32]byte, marketID [32]byte, orders []Order, quantity *big.Int, signatures [][]byte) (*types.Transaction, error)
VaporizePosition is a paid mutator transaction binding the contract method 0xcaa065b9.
Solidity: function vaporizePosition(bytes32 subAccountID, bytes32 marketID, (address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] orders, uint256 quantity, bytes[] signatures) returns((uint256,uint256,uint256,uint256) results)
func (*FuturesTransactor) WithdrawForSubAccount ¶
func (f *FuturesTransactor) WithdrawForSubAccount(opts *bind.TransactOpts, baseCurrency common.Address, subAccountID [32]byte, amount *big.Int) (*types.Transaction, error)
WithdrawForSubAccount is a paid mutator transaction binding the contract method 0x803a90d8.
Solidity: function withdrawForSubAccount(address baseCurrency, bytes32 subAccountID, uint256 amount) returns()
func (*FuturesTransactor) WithdrawFromInsurancePool ¶
func (f *FuturesTransactor) WithdrawFromInsurancePool(opts *bind.TransactOpts, receiver common.Address, marketID [32]byte, amount *big.Int) (*types.Transaction, error)
WithdrawFromInsurancePool is a paid mutator transaction binding the contract method 0xb7d4078d.
Solidity: function withdrawFromInsurancePool(address receiver, bytes32 marketID, uint256 amount) returns()
type FuturesTransactorRaw ¶
type FuturesTransactorRaw struct {
Contract *FuturesTransactor // Generic write-only contract binding to access the raw methods on
}
FuturesTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*FuturesTransactorRaw) Transact ¶
func (f *FuturesTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*FuturesTransactorRaw) Transfer ¶
func (f *FuturesTransactorRaw) 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 FuturesTransactorSession ¶
type FuturesTransactorSession struct { Contract *FuturesTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
FuturesTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*FuturesTransactorSession) AddMarginIntoPosition ¶
func (f *FuturesTransactorSession) AddMarginIntoPosition(subAccountID [32]byte, positionID *big.Int, addedMargin *big.Int) (*types.Transaction, error)
AddMarginIntoPosition is a paid mutator transaction binding the contract method 0x62c6985e.
Solidity: function addMarginIntoPosition(bytes32 subAccountID, uint256 positionID, uint256 addedMargin) returns()
func (*FuturesTransactorSession) Approve ¶
func (f *FuturesTransactorSession) Approve(approveTo common.Address, positionID *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address approveTo, uint256 positionID) returns()
func (*FuturesTransactorSession) ApproveForReceiving ¶
func (f *FuturesTransactorSession) ApproveForReceiving(receiverSubAccountID [32]byte, positionID *big.Int) (*types.Transaction, error)
ApproveForReceiving is a paid mutator transaction binding the contract method 0xf5a5f0b3.
Solidity: function approveForReceiving(bytes32 receiverSubAccountID, uint256 positionID) returns()
func (*FuturesTransactorSession) BatchCancelOrders ¶
func (f *FuturesTransactorSession) BatchCancelOrders(orders []Order) (*types.Transaction, error)
BatchCancelOrders is a paid mutator transaction binding the contract method 0xdedfc1f1.
Solidity: function batchCancelOrders((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] orders) returns()
func (*FuturesTransactorSession) BatchCheckFunding ¶
func (f *FuturesTransactorSession) BatchCheckFunding(marketIDs [][32]byte) (*types.Transaction, error)
BatchCheckFunding is a paid mutator transaction binding the contract method 0x2c7c2134.
Solidity: function batchCheckFunding(bytes32[] marketIDs) returns(bool[])
func (*FuturesTransactorSession) BatchDepositForSubAccounts ¶
func (f *FuturesTransactorSession) BatchDepositForSubAccounts(baseCurrencies []common.Address, subAccountIDs [][32]byte, amounts []*big.Int) (*types.Transaction, error)
BatchDepositForSubAccounts is a paid mutator transaction binding the contract method 0xc5d3277b.
Solidity: function batchDepositForSubAccounts(address[] baseCurrencies, bytes32[] subAccountIDs, uint256[] amounts) returns()
func (*FuturesTransactorSession) BatchDepositForTraders ¶
func (f *FuturesTransactorSession) BatchDepositForTraders(baseCurrencies []common.Address, traders []common.Address, amounts []*big.Int) (*types.Transaction, error)
BatchDepositForTraders is a paid mutator transaction binding the contract method 0x487ebde1.
Solidity: function batchDepositForTraders(address[] baseCurrencies, address[] traders, uint256[] amounts) returns()
func (*FuturesTransactorSession) BatchExecuteTransactions ¶
func (f *FuturesTransactorSession) BatchExecuteTransactions(transactions []LibZeroExTransactionZeroExTransaction, signatures [][]byte) (*types.Transaction, error)
BatchExecuteTransactions is a paid mutator transaction binding the contract method 0xfc74896d.
Solidity: function batchExecuteTransactions((uint256,uint256,uint256,address,bytes)[] transactions, bytes[] signatures) payable returns(bytes[] returnData)
func (*FuturesTransactorSession) BatchLiquidatePosition ¶
func (f *FuturesTransactorSession) BatchLiquidatePosition(positionIDs []*big.Int, orders [][]Order, quantities []*big.Int, signatures [][][]byte, liquidationCaller common.Address) (*types.Transaction, error)
BatchLiquidatePosition is a paid mutator transaction binding the contract method 0x1b934aea.
Solidity: function batchLiquidatePosition(uint256[] positionIDs, (address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[][] orders, uint256[] quantities, bytes[][] signatures, address liquidationCaller) returns((uint256,uint256,uint256,uint256)[] results)
func (*FuturesTransactorSession) BatchSettleExpiryFuturesPosition ¶
func (f *FuturesTransactorSession) BatchSettleExpiryFuturesPosition(marketID [32]byte, subAccountIDs [][32]byte) (*types.Transaction, error)
BatchSettleExpiryFuturesPosition is a paid mutator transaction binding the contract method 0xb378df0b.
Solidity: function batchSettleExpiryFuturesPosition(bytes32 marketID, bytes32[] subAccountIDs) returns((uint256,uint256,uint256,uint256)[] results)
func (*FuturesTransactorSession) CancelOrder ¶
func (f *FuturesTransactorSession) CancelOrder(order Order) (*types.Transaction, error)
CancelOrder is a paid mutator transaction binding the contract method 0x2da62987.
Solidity: function cancelOrder((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes) order) returns()
func (*FuturesTransactorSession) ChangeAuctionTimeInterval ¶
func (f *FuturesTransactorSession) ChangeAuctionTimeInterval(auctionTimeInterval_ *big.Int) (*types.Transaction, error)
ChangeAuctionTimeInterval is a paid mutator transaction binding the contract method 0x5852ca61.
Solidity: function changeAuctionTimeInterval(uint256 auctionTimeInterval_) returns()
func (*FuturesTransactorSession) ChangeMarketFundingInterval ¶
func (f *FuturesTransactorSession) ChangeMarketFundingInterval(marketID [32]byte, fundingInterval *big.Int) (*types.Transaction, error)
ChangeMarketFundingInterval is a paid mutator transaction binding the contract method 0x7a540e43.
Solidity: function changeMarketFundingInterval(bytes32 marketID, uint256 fundingInterval) returns()
func (*FuturesTransactorSession) ChangeMarketInitialMarginRatio ¶
func (f *FuturesTransactorSession) ChangeMarketInitialMarginRatio(marketID [32]byte, initialMarginRatio PermyriadMathPermyriad) (*types.Transaction, error)
ChangeMarketInitialMarginRatio is a paid mutator transaction binding the contract method 0x50f2722b.
Solidity: function changeMarketInitialMarginRatio(bytes32 marketID, (uint256) initialMarginRatio) returns()
func (*FuturesTransactorSession) ChangeMarketMaintenanceMarginRatio ¶
func (f *FuturesTransactorSession) ChangeMarketMaintenanceMarginRatio(marketID [32]byte, maintenanceMarginRatio PermyriadMathPermyriad) (*types.Transaction, error)
ChangeMarketMaintenanceMarginRatio is a paid mutator transaction binding the contract method 0x267f8feb.
Solidity: function changeMarketMaintenanceMarginRatio(bytes32 marketID, (uint256) maintenanceMarginRatio) returns()
func (*FuturesTransactorSession) ChangeMarketMakerTxFee ¶
func (f *FuturesTransactorSession) ChangeMarketMakerTxFee(marketID [32]byte, makerTxFee PermyriadMathPermyriad) (*types.Transaction, error)
ChangeMarketMakerTxFee is a paid mutator transaction binding the contract method 0x2c23608b.
Solidity: function changeMarketMakerTxFee(bytes32 marketID, (uint256) makerTxFee) returns()
func (*FuturesTransactorSession) ChangeMarketOracle ¶
func (f *FuturesTransactorSession) ChangeMarketOracle(marketID [32]byte, oracle common.Address) (*types.Transaction, error)
ChangeMarketOracle is a paid mutator transaction binding the contract method 0x555eb5ed.
Solidity: function changeMarketOracle(bytes32 marketID, address oracle) returns()
func (*FuturesTransactorSession) ChangeMarketOracle0 ¶
func (f *FuturesTransactorSession) ChangeMarketOracle0(marketID [32]byte, fundingInterval *big.Int) (*types.Transaction, error)
ChangeMarketOracle0 is a paid mutator transaction binding the contract method 0xdb39261d.
Solidity: function changeMarketOracle(bytes32 marketID, uint256 fundingInterval) returns()
func (*FuturesTransactorSession) ChangeMarketRelayerTxFee ¶
func (f *FuturesTransactorSession) ChangeMarketRelayerTxFee(marketID [32]byte, relayerTxFee PermyriadMathPermyriad) (*types.Transaction, error)
ChangeMarketRelayerTxFee is a paid mutator transaction binding the contract method 0x6db346d3.
Solidity: function changeMarketRelayerTxFee(bytes32 marketID, (uint256) relayerTxFee) returns()
func (*FuturesTransactorSession) ChangeMarketTakerTxFee ¶
func (f *FuturesTransactorSession) ChangeMarketTakerTxFee(marketID [32]byte, takerTxFee PermyriadMathPermyriad) (*types.Transaction, error)
ChangeMarketTakerTxFee is a paid mutator transaction binding the contract method 0xbba21c56.
Solidity: function changeMarketTakerTxFee(bytes32 marketID, (uint256) takerTxFee) returns()
func (*FuturesTransactorSession) ChangeMaxBaseCurrencyCap ¶
func (f *FuturesTransactorSession) ChangeMaxBaseCurrencyCap(maxBaseCurrencyCap_ *big.Int) (*types.Transaction, error)
ChangeMaxBaseCurrencyCap is a paid mutator transaction binding the contract method 0xea7a4b3f.
Solidity: function changeMaxBaseCurrencyCap(uint256 maxBaseCurrencyCap_) returns()
func (*FuturesTransactorSession) ChangeMinimumMarginRatio ¶
func (f *FuturesTransactorSession) ChangeMinimumMarginRatio(MINIMUM_MARGIN_RATIO_ PermyriadMathPermyriad) (*types.Transaction, error)
ChangeMinimumMarginRatio is a paid mutator transaction binding the contract method 0x5d19277f.
Solidity: function changeMinimumMarginRatio((uint256) MINIMUM_MARGIN_RATIO_) returns()
func (*FuturesTransactorSession) CheckFunding ¶
func (f *FuturesTransactorSession) CheckFunding(marketID [32]byte) (*types.Transaction, error)
CheckFunding is a paid mutator transaction binding the contract method 0x70f1c88b.
Solidity: function checkFunding(bytes32 marketID) returns(bool)
func (*FuturesTransactorSession) ClosePosition ¶
func (f *FuturesTransactorSession) ClosePosition(subAccountID [32]byte, marketID [32]byte, orders []Order, quantity *big.Int, isRevertingOnPartialFills bool, signatures [][]byte) (*types.Transaction, error)
ClosePosition is a paid mutator transaction binding the contract method 0x73ea5056.
Solidity: function closePosition(bytes32 subAccountID, bytes32 marketID, (address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] orders, uint256 quantity, bool isRevertingOnPartialFills, bytes[] signatures) returns((uint256,uint256,uint256,uint256) results)
func (*FuturesTransactorSession) CreateDefaultSubAccountAndDeposit ¶
func (f *FuturesTransactorSession) CreateDefaultSubAccountAndDeposit(baseCurrency common.Address, amount *big.Int) (*types.Transaction, error)
CreateDefaultSubAccountAndDeposit is a paid mutator transaction binding the contract method 0xcaa5cf87.
Solidity: function createDefaultSubAccountAndDeposit(address baseCurrency, uint256 amount) returns(bytes32)
func (*FuturesTransactorSession) CreateFuturesMarket ¶
func (f *FuturesTransactorSession) CreateFuturesMarket(ticker string, baseCurrency common.Address, oracle common.Address, initialMarginRatio PermyriadMathPermyriad, maintenanceMarginRatio PermyriadMathPermyriad, fundingInterval *big.Int, expirationTime *big.Int, makerTxFee PermyriadMathPermyriad, takerTxFee PermyriadMathPermyriad, relayerFeePercentage PermyriadMathPermyriad) (*types.Transaction, error)
CreateFuturesMarket is a paid mutator transaction binding the contract method 0xc47e094b.
Solidity: function createFuturesMarket(string ticker, address baseCurrency, address oracle, (uint256) initialMarginRatio, (uint256) maintenanceMarginRatio, uint256 fundingInterval, uint256 expirationTime, (uint256) makerTxFee, (uint256) takerTxFee, (uint256) relayerFeePercentage) returns()
func (*FuturesTransactorSession) CreateFuturesMarketWithFixedMarketId ¶
func (f *FuturesTransactorSession) CreateFuturesMarketWithFixedMarketId(ticker string, baseCurrency common.Address, oracle common.Address, initialMarginRatio PermyriadMathPermyriad, maintenanceMarginRatio PermyriadMathPermyriad, fundingInterval *big.Int, expirationTime *big.Int, makerTxFee PermyriadMathPermyriad, takerTxFee PermyriadMathPermyriad, relayerFeePercentage PermyriadMathPermyriad, marketID [32]byte) (*types.Transaction, error)
CreateFuturesMarketWithFixedMarketId is a paid mutator transaction binding the contract method 0x28f9d7a5.
Solidity: function createFuturesMarketWithFixedMarketId(string ticker, address baseCurrency, address oracle, (uint256) initialMarginRatio, (uint256) maintenanceMarginRatio, uint256 fundingInterval, uint256 expirationTime, (uint256) makerTxFee, (uint256) takerTxFee, (uint256) relayerFeePercentage, bytes32 marketID) returns()
func (*FuturesTransactorSession) CreateSpotMarket ¶
func (f *FuturesTransactorSession) CreateSpotMarket(ticker string, baseToken common.Address, quoteToken common.Address, makerTxFee PermyriadMathPermyriad, takerTxFee PermyriadMathPermyriad, relayerFeePercentage PermyriadMathPermyriad) (*types.Transaction, error)
CreateSpotMarket is a paid mutator transaction binding the contract method 0xadb44540.
Solidity: function createSpotMarket(string ticker, address baseToken, address quoteToken, (uint256) makerTxFee, (uint256) takerTxFee, (uint256) relayerFeePercentage) returns()
func (*FuturesTransactorSession) CreateSubAccountAndDeposit ¶
func (f *FuturesTransactorSession) CreateSubAccountAndDeposit(baseCurrency common.Address, subAccountNonce *big.Int, amount *big.Int) (*types.Transaction, error)
CreateSubAccountAndDeposit is a paid mutator transaction binding the contract method 0x06bc2e72.
Solidity: function createSubAccountAndDeposit(address baseCurrency, uint96 subAccountNonce, uint256 amount) returns(bytes32)
func (*FuturesTransactorSession) CreateSubAccountForTraderWithNonce ¶
func (f *FuturesTransactorSession) CreateSubAccountForTraderWithNonce(trader common.Address, subAccountNonce *big.Int) (*types.Transaction, error)
CreateSubAccountForTraderWithNonce is a paid mutator transaction binding the contract method 0x510d4093.
Solidity: function createSubAccountForTraderWithNonce(address trader, uint96 subAccountNonce) returns(bytes32)
func (*FuturesTransactorSession) Deposit ¶
func (f *FuturesTransactorSession) Deposit(baseCurrency common.Address, amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x47e7ef24.
Solidity: function deposit(address baseCurrency, uint256 amount) returns()
func (*FuturesTransactorSession) DepositFor ¶
func (f *FuturesTransactorSession) DepositFor(baseCurrency common.Address, trader common.Address, amount *big.Int) (*types.Transaction, error)
DepositFor is a paid mutator transaction binding the contract method 0xb3db428b.
Solidity: function depositFor(address baseCurrency, address trader, uint256 amount) returns()
func (*FuturesTransactorSession) DepositForSubaccount ¶
func (f *FuturesTransactorSession) DepositForSubaccount(baseCurrency common.Address, subAccountID [32]byte, amount *big.Int) (*types.Transaction, error)
DepositForSubaccount is a paid mutator transaction binding the contract method 0x9d44c2b1.
Solidity: function depositForSubaccount(address baseCurrency, bytes32 subAccountID, uint256 amount) returns()
func (*FuturesTransactorSession) DepositIntoSubAccount ¶
func (f *FuturesTransactorSession) DepositIntoSubAccount(baseCurrency common.Address, subAccountID [32]byte, amount *big.Int) (*types.Transaction, error)
DepositIntoSubAccount is a paid mutator transaction binding the contract method 0xf2848b01.
Solidity: function depositIntoSubAccount(address baseCurrency, bytes32 subAccountID, uint256 amount) returns()
func (*FuturesTransactorSession) EmergencyStopFutures ¶
func (f *FuturesTransactorSession) EmergencyStopFutures() (*types.Transaction, error)
EmergencyStopFutures is a paid mutator transaction binding the contract method 0x0d64dc42.
Solidity: function emergencyStopFutures() returns()
func (*FuturesTransactorSession) EmergencyStopMarket ¶
func (f *FuturesTransactorSession) EmergencyStopMarket(marketID [32]byte) (*types.Transaction, error)
EmergencyStopMarket is a paid mutator transaction binding the contract method 0xd135eeb3.
Solidity: function emergencyStopMarket(bytes32 marketID) returns()
func (*FuturesTransactorSession) ExecuteTransaction ¶
func (f *FuturesTransactorSession) ExecuteTransaction(transaction LibZeroExTransactionZeroExTransaction, signature []byte) (*types.Transaction, error)
ExecuteTransaction is a paid mutator transaction binding the contract method 0x2280c910.
Solidity: function executeTransaction((uint256,uint256,uint256,address,bytes) transaction, bytes signature) payable returns(bytes)
func (*FuturesTransactorSession) LiquidatePosition ¶
func (f *FuturesTransactorSession) LiquidatePosition(subAccountID [32]byte, marketID [32]byte, liquidationCaller common.Address, orders []Order, quantity *big.Int, signatures [][]byte) (*types.Transaction, error)
LiquidatePosition is a paid mutator transaction binding the contract method 0xd6128693.
Solidity: function liquidatePosition(bytes32 subAccountID, bytes32 marketID, address liquidationCaller, (address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] orders, uint256 quantity, bytes[] signatures) returns((uint256,uint256,uint256,uint256) results)
func (*FuturesTransactorSession) MarketOrders ¶
func (f *FuturesTransactorSession) MarketOrders(orders []Order, quantity *big.Int, margin *big.Int, subAccountID [32]byte, isRevertingOnPartialFills bool, signatures [][]byte, feeRecipientAddress common.Address) (*types.Transaction, error)
MarketOrders is a paid mutator transaction binding the contract method 0xfd7d3b8a.
Solidity: function marketOrders((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] orders, uint256 quantity, uint256 margin, bytes32 subAccountID, bool isRevertingOnPartialFills, bytes[] signatures, address feeRecipientAddress) returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256)[] results)
func (*FuturesTransactorSession) MatchSpotOrders ¶
func (f *FuturesTransactorSession) MatchSpotOrders(leftOrder Order, rightOrder Order, leftSignature []byte, rightSignature []byte) (*types.Transaction, error)
MatchSpotOrders is a paid mutator transaction binding the contract method 0xc7e34978.
Solidity: function matchSpotOrders((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes) leftOrder, (address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes) rightOrder, bytes leftSignature, bytes rightSignature) returns(((uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256)) matchedFillResults)
func (*FuturesTransactorSession) MultiMatchOrders ¶
func (f *FuturesTransactorSession) MultiMatchOrders(leftOrders []Order, rightOrder Order, leftSignatures [][]byte, rightSignature []byte) (*types.Transaction, error)
MultiMatchOrders is a paid mutator transaction binding the contract method 0x86d7729c.
Solidity: function multiMatchOrders((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] leftOrders, (address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes) rightOrder, bytes[] leftSignatures, bytes rightSignature) returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256)[] results)
func (*FuturesTransactorSession) MultiMatchSpotOrders ¶
func (f *FuturesTransactorSession) MultiMatchSpotOrders(leftOrders []Order, rightOrders []Order, leftSignatures [][]byte, rightSignatures [][]byte) (*types.Transaction, error)
MultiMatchSpotOrders is a paid mutator transaction binding the contract method 0xd8e2259c.
Solidity: function multiMatchSpotOrders((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] leftOrders, (address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] rightOrders, bytes[] leftSignatures, bytes[] rightSignatures) returns(((uint256,uint256,uint256,uint256)[],(uint256,uint256,uint256,uint256)[]) batchMatchedFillResults)
func (*FuturesTransactorSession) PayIntoInsurancePool ¶
func (f *FuturesTransactorSession) PayIntoInsurancePool(marketID [32]byte, amount *big.Int) (*types.Transaction, error)
PayIntoInsurancePool is a paid mutator transaction binding the contract method 0x95563906.
Solidity: function payIntoInsurancePool(bytes32 marketID, uint256 amount) returns()
func (*FuturesTransactorSession) PreSign ¶
func (f *FuturesTransactorSession) PreSign(hash [32]byte) (*types.Transaction, error)
PreSign is a paid mutator transaction binding the contract method 0x46c02d7a.
Solidity: function preSign(bytes32 hash) payable returns()
func (*FuturesTransactorSession) RenounceOwnership ¶
func (f *FuturesTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*FuturesTransactorSession) ResumeFutures ¶
func (f *FuturesTransactorSession) ResumeFutures() (*types.Transaction, error)
ResumeFutures is a paid mutator transaction binding the contract method 0x55585bce.
Solidity: function resumeFutures() returns()
func (*FuturesTransactorSession) SetApprovalForAll ¶
func (f *FuturesTransactorSession) SetApprovalForAll(fromSubAccountID [32]byte, operator common.Address, isApproved bool) (*types.Transaction, error)
SetApprovalForAll is a paid mutator transaction binding the contract method 0xbc053e73.
Solidity: function setApprovalForAll(bytes32 fromSubAccountID, address operator, bool isApproved) returns()
func (*FuturesTransactorSession) SetApprovalForMarket ¶
func (f *FuturesTransactorSession) SetApprovalForMarket(fromSubAccountID [32]byte, operator common.Address, marketID [32]byte, isApproved bool) (*types.Transaction, error)
SetApprovalForMarket is a paid mutator transaction binding the contract method 0xa01856c1.
Solidity: function setApprovalForMarket(bytes32 fromSubAccountID, address operator, bytes32 marketID, bool isApproved) returns()
func (*FuturesTransactorSession) SetFundingRate ¶
func (f *FuturesTransactorSession) SetFundingRate(marketID [32]byte) (*types.Transaction, error)
SetFundingRate is a paid mutator transaction binding the contract method 0x33db9b03.
Solidity: function setFundingRate(bytes32 marketID) returns()
func (*FuturesTransactorSession) SetReceiptApprovalForAll ¶
func (f *FuturesTransactorSession) SetReceiptApprovalForAll(receiverSubAccountID [32]byte, operator common.Address, isApproved bool) (*types.Transaction, error)
SetReceiptApprovalForAll is a paid mutator transaction binding the contract method 0xaec3d88a.
Solidity: function setReceiptApprovalForAll(bytes32 receiverSubAccountID, address operator, bool isApproved) returns()
func (*FuturesTransactorSession) SetReceiptApprovalForMarket ¶
func (f *FuturesTransactorSession) SetReceiptApprovalForMarket(receiverSubAccountID [32]byte, operator common.Address, marketID [32]byte, isApproved bool) (*types.Transaction, error)
SetReceiptApprovalForMarket is a paid mutator transaction binding the contract method 0x14229a3f.
Solidity: function setReceiptApprovalForMarket(bytes32 receiverSubAccountID, address operator, bytes32 marketID, bool isApproved) returns()
func (*FuturesTransactorSession) SetSignatureValidatorApproval ¶
func (f *FuturesTransactorSession) SetSignatureValidatorApproval(validatorAddress common.Address, approval bool) (*types.Transaction, error)
SetSignatureValidatorApproval is a paid mutator transaction binding the contract method 0x77fcce68.
Solidity: function setSignatureValidatorApproval(address validatorAddress, bool approval) payable returns()
func (*FuturesTransactorSession) SettleExpiryFuturesPosition ¶
func (f *FuturesTransactorSession) SettleExpiryFuturesPosition(marketID [32]byte, subAccountID [32]byte) (*types.Transaction, error)
SettleExpiryFuturesPosition is a paid mutator transaction binding the contract method 0xa30b87ad.
Solidity: function settleExpiryFuturesPosition(bytes32 marketID, bytes32 subAccountID) returns((uint256,uint256,uint256,uint256) results)
func (*FuturesTransactorSession) SettleMarket ¶
func (f *FuturesTransactorSession) SettleMarket(marketID [32]byte) (*types.Transaction, error)
SettleMarket is a paid mutator transaction binding the contract method 0xe039c00e.
Solidity: function settleMarket(bytes32 marketID) returns(bool)
func (*FuturesTransactorSession) TransferOwnership ¶
func (f *FuturesTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*FuturesTransactorSession) TransferPosition ¶
func (f *FuturesTransactorSession) TransferPosition(positionID *big.Int, receiverSubAccountID [32]byte, transferQuantity *big.Int) (*types.Transaction, error)
TransferPosition is a paid mutator transaction binding the contract method 0x9380ba16.
Solidity: function transferPosition(uint256 positionID, bytes32 receiverSubAccountID, uint256 transferQuantity) returns()
func (*FuturesTransactorSession) TransferToSubAccount ¶
func (f *FuturesTransactorSession) TransferToSubAccount(baseCurrency common.Address, fromSubAccountID [32]byte, toSubAccountID [32]byte, amount *big.Int) (*types.Transaction, error)
TransferToSubAccount is a paid mutator transaction binding the contract method 0xddf84a44.
Solidity: function transferToSubAccount(address baseCurrency, bytes32 fromSubAccountID, bytes32 toSubAccountID, uint256 amount) returns()
func (*FuturesTransactorSession) VaporizePosition ¶
func (f *FuturesTransactorSession) VaporizePosition(subAccountID [32]byte, marketID [32]byte, orders []Order, quantity *big.Int, signatures [][]byte) (*types.Transaction, error)
VaporizePosition is a paid mutator transaction binding the contract method 0xcaa065b9.
Solidity: function vaporizePosition(bytes32 subAccountID, bytes32 marketID, (address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes,bytes,bytes)[] orders, uint256 quantity, bytes[] signatures) returns((uint256,uint256,uint256,uint256) results)
func (*FuturesTransactorSession) WithdrawForSubAccount ¶
func (f *FuturesTransactorSession) WithdrawForSubAccount(baseCurrency common.Address, subAccountID [32]byte, amount *big.Int) (*types.Transaction, error)
WithdrawForSubAccount is a paid mutator transaction binding the contract method 0x803a90d8.
Solidity: function withdrawForSubAccount(address baseCurrency, bytes32 subAccountID, uint256 amount) returns()
func (*FuturesTransactorSession) WithdrawFromInsurancePool ¶
func (f *FuturesTransactorSession) WithdrawFromInsurancePool(receiver common.Address, marketID [32]byte, amount *big.Int) (*types.Transaction, error)
WithdrawFromInsurancePool is a paid mutator transaction binding the contract method 0xb7d4078d.
Solidity: function withdrawFromInsurancePool(address receiver, bytes32 marketID, uint256 amount) returns()
type FuturesUnpaused ¶
type FuturesUnpaused struct { Account common.Address Raw types.Log // Blockchain specific contextual infos }
FuturesUnpaused represents a Unpaused event raised by the Futures contract.
type FuturesUnpausedIterator ¶
type FuturesUnpausedIterator struct { Event *FuturesUnpaused // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FuturesUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the Futures contract.
func (*FuturesUnpausedIterator) Close ¶
func (it *FuturesUnpausedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FuturesUnpausedIterator) Error ¶
func (it *FuturesUnpausedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FuturesUnpausedIterator) Next ¶
func (it *FuturesUnpausedIterator) 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 FuturesUpdateValuesForVWAP ¶
type FuturesUpdateValuesForVWAP struct { MarketID [32]byte MostRecentEpochVolume *big.Int MostRecentEpochQuantity *big.Int MostRecentEpochScaledContractIndexDiff *big.Int Raw types.Log // Blockchain specific contextual infos }
FuturesUpdateValuesForVWAP represents a UpdateValuesForVWAP event raised by the Futures contract.
type FuturesUpdateValuesForVWAPIterator ¶
type FuturesUpdateValuesForVWAPIterator struct { Event *FuturesUpdateValuesForVWAP // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FuturesUpdateValuesForVWAPIterator is returned from FilterUpdateValuesForVWAP and is used to iterate over the raw logs and unpacked data for UpdateValuesForVWAP events raised by the Futures contract.
func (*FuturesUpdateValuesForVWAPIterator) Close ¶
func (it *FuturesUpdateValuesForVWAPIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FuturesUpdateValuesForVWAPIterator) Error ¶
func (it *FuturesUpdateValuesForVWAPIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FuturesUpdateValuesForVWAPIterator) Next ¶
func (it *FuturesUpdateValuesForVWAPIterator) 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 Hub ¶
type Hub struct { HubCaller // Read-only binding to the contract HubTransactor // Write-only binding to the contract HubFilterer // Log filterer for contract events }
Hub is an auto generated Go binding around an Ethereum contract.
type HubBurn ¶
type HubBurn struct { IERC20TokenContract common.Address Target common.Address RecipientCosmosAddress string Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
HubBurn represents a Burn event raised by the Hub contract.
type HubBurnIterator ¶
type HubBurnIterator struct { Event *HubBurn // Event containing the contract specifics and raw log // contains filtered or unexported fields }
HubBurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the Hub contract.
func (*HubBurnIterator) Close ¶
func (it *HubBurnIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*HubBurnIterator) Error ¶
func (it *HubBurnIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*HubBurnIterator) Next ¶
func (it *HubBurnIterator) 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 HubCaller ¶
type HubCaller struct {
// contains filtered or unexported fields
}
HubCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewHubCaller ¶
NewHubCaller creates a new read-only instance of Hub, bound to a specific deployed contract.
func (*HubCaller) ChildMapping ¶
ChildMapping is a free data retrieval call binding the contract method 0xea18b417.
Solidity: function childMapping(address ) view returns(bool)
type HubCallerRaw ¶
type HubCallerRaw struct {
Contract *HubCaller // Generic read-only contract binding to access the raw methods on
}
HubCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*HubCallerRaw) Call ¶
func (f *HubCallerRaw) 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 HubCallerSession ¶
type HubCallerSession struct { Contract *HubCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
HubCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*HubCallerSession) ChildMapping ¶
func (f *HubCallerSession) ChildMapping(arg0 common.Address) (bool, error)
ChildMapping is a free data retrieval call binding the contract method 0xea18b417.
Solidity: function childMapping(address ) view returns(bool)
type HubFilterer ¶
type HubFilterer struct {
// contains filtered or unexported fields
}
HubFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewHubFilterer ¶
func NewHubFilterer(address common.Address, filterer bind.ContractFilterer) (*HubFilterer, error)
NewHubFilterer creates a new log filterer instance of Hub, bound to a specific deployed contract.
func (*HubFilterer) FilterBurn ¶
func (f *HubFilterer) FilterBurn(opts *bind.FilterOpts) (*HubBurnIterator, error)
FilterBurn is a free log retrieval operation binding the contract event 0x2d1cbee916b310b4f96bc080243ebebf4daa27a66b334773cf5d77d12226f4cd.
Solidity: event Burn(address iERC20TokenContract, address target, string recipientCosmosAddress, uint256 amount)
func (*HubFilterer) FilterMint ¶
func (f *HubFilterer) FilterMint(opts *bind.FilterOpts) (*HubMintIterator, error)
FilterMint is a free log retrieval operation binding the contract event 0x85e1b778603e7ba009b4b23a5909ddb0ba4e73f01838cb2029e066158fd62f74.
Solidity: event Mint(address iERC20TokenContract, string fromCosmosAddress, address recipient, uint256 amount)
func (*HubFilterer) FilterOwnershipTransferred ¶
func (f *HubFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*HubOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*HubFilterer) FilterTemplateCreation ¶
func (f *HubFilterer) FilterTemplateCreation(opts *bind.FilterOpts) (*HubTemplateCreationIterator, error)
FilterTemplateCreation is a free log retrieval operation binding the contract event 0xa2c3e18d8cd0d905a1f440e7daccb30a2c440da0f9bc44f81a69b6f21933f4fc.
Solidity: event TemplateCreation(address iERC20TokenContract, string proposedCosmosCoin)
func (*HubFilterer) FilterUnregisterChild ¶
func (f *HubFilterer) FilterUnregisterChild(opts *bind.FilterOpts) (*HubUnregisterChildIterator, error)
FilterUnregisterChild is a free log retrieval operation binding the contract event 0x9a0579b1a8a2e82095ed4ab2e299c227ab4fcd5fa467d94a576012e39cd4925a.
Solidity: event UnregisterChild(address iERC20TokenContract)
func (*HubFilterer) ParseBurn ¶
func (f *HubFilterer) ParseBurn(log types.Log) (*HubBurn, error)
ParseBurn is a log parse operation binding the contract event 0x2d1cbee916b310b4f96bc080243ebebf4daa27a66b334773cf5d77d12226f4cd.
Solidity: event Burn(address iERC20TokenContract, address target, string recipientCosmosAddress, uint256 amount)
func (*HubFilterer) ParseMint ¶
func (f *HubFilterer) ParseMint(log types.Log) (*HubMint, error)
ParseMint is a log parse operation binding the contract event 0x85e1b778603e7ba009b4b23a5909ddb0ba4e73f01838cb2029e066158fd62f74.
Solidity: event Mint(address iERC20TokenContract, string fromCosmosAddress, address recipient, uint256 amount)
func (*HubFilterer) ParseOwnershipTransferred ¶
func (f *HubFilterer) ParseOwnershipTransferred(log types.Log) (*HubOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*HubFilterer) ParseTemplateCreation ¶
func (f *HubFilterer) ParseTemplateCreation(log types.Log) (*HubTemplateCreation, error)
ParseTemplateCreation is a log parse operation binding the contract event 0xa2c3e18d8cd0d905a1f440e7daccb30a2c440da0f9bc44f81a69b6f21933f4fc.
Solidity: event TemplateCreation(address iERC20TokenContract, string proposedCosmosCoin)
func (*HubFilterer) ParseUnregisterChild ¶
func (f *HubFilterer) ParseUnregisterChild(log types.Log) (*HubUnregisterChild, error)
ParseUnregisterChild is a log parse operation binding the contract event 0x9a0579b1a8a2e82095ed4ab2e299c227ab4fcd5fa467d94a576012e39cd4925a.
Solidity: event UnregisterChild(address iERC20TokenContract)
func (*HubFilterer) WatchBurn ¶
func (f *HubFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *HubBurn) (event.Subscription, error)
WatchBurn is a free log subscription operation binding the contract event 0x2d1cbee916b310b4f96bc080243ebebf4daa27a66b334773cf5d77d12226f4cd.
Solidity: event Burn(address iERC20TokenContract, address target, string recipientCosmosAddress, uint256 amount)
func (*HubFilterer) WatchMint ¶
func (f *HubFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *HubMint) (event.Subscription, error)
WatchMint is a free log subscription operation binding the contract event 0x85e1b778603e7ba009b4b23a5909ddb0ba4e73f01838cb2029e066158fd62f74.
Solidity: event Mint(address iERC20TokenContract, string fromCosmosAddress, address recipient, uint256 amount)
func (*HubFilterer) WatchOwnershipTransferred ¶
func (f *HubFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *HubOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*HubFilterer) WatchTemplateCreation ¶
func (f *HubFilterer) WatchTemplateCreation(opts *bind.WatchOpts, sink chan<- *HubTemplateCreation) (event.Subscription, error)
WatchTemplateCreation is a free log subscription operation binding the contract event 0xa2c3e18d8cd0d905a1f440e7daccb30a2c440da0f9bc44f81a69b6f21933f4fc.
Solidity: event TemplateCreation(address iERC20TokenContract, string proposedCosmosCoin)
func (*HubFilterer) WatchUnregisterChild ¶
func (f *HubFilterer) WatchUnregisterChild(opts *bind.WatchOpts, sink chan<- *HubUnregisterChild) (event.Subscription, error)
WatchUnregisterChild is a free log subscription operation binding the contract event 0x9a0579b1a8a2e82095ed4ab2e299c227ab4fcd5fa467d94a576012e39cd4925a.
Solidity: event UnregisterChild(address iERC20TokenContract)
type HubMint ¶
type HubMint struct { IERC20TokenContract common.Address FromCosmosAddress string Recipient common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
HubMint represents a Mint event raised by the Hub contract.
type HubMintIterator ¶
type HubMintIterator struct { Event *HubMint // Event containing the contract specifics and raw log // contains filtered or unexported fields }
HubMintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the Hub contract.
func (*HubMintIterator) Close ¶
func (it *HubMintIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*HubMintIterator) Error ¶
func (it *HubMintIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*HubMintIterator) Next ¶
func (it *HubMintIterator) 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 HubOwnershipTransferred ¶
type HubOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
HubOwnershipTransferred represents a OwnershipTransferred event raised by the Hub contract.
type HubOwnershipTransferredIterator ¶
type HubOwnershipTransferredIterator struct { Event *HubOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
HubOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Hub contract.
func (*HubOwnershipTransferredIterator) Close ¶
func (it *HubOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*HubOwnershipTransferredIterator) Error ¶
func (it *HubOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*HubOwnershipTransferredIterator) Next ¶
func (it *HubOwnershipTransferredIterator) 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 HubRaw ¶
type HubRaw struct {
Contract *Hub // Generic contract binding to access the raw methods on
}
HubRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*HubRaw) Call ¶
func (f *HubRaw) 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 (*HubRaw) Transact ¶
func (f *HubRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*HubRaw) Transfer ¶
func (f *HubRaw) 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 HubSession ¶
type HubSession struct { Contract *Hub // 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 }
HubSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*HubSession) Burn ¶
func (f *HubSession) Burn(iERC20TokenContract common.Address, recipientCosmosAddress string, amount *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0xc45b71de.
Solidity: function burn(address iERC20TokenContract, string recipientCosmosAddress, uint256 amount) returns()
func (*HubSession) ChildMapping ¶
func (f *HubSession) ChildMapping(arg0 common.Address) (bool, error)
ChildMapping is a free data retrieval call binding the contract method 0xea18b417.
Solidity: function childMapping(address ) view returns(bool)
func (*HubSession) Mint ¶
func (f *HubSession) Mint(iERC20TokenContract common.Address, fromCosmosAddress string, recipient common.Address, amount *big.Int) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0xda14cbbc.
Solidity: function mint(address iERC20TokenContract, string fromCosmosAddress, address recipient, uint256 amount) returns()
func (*HubSession) Owner ¶
func (f *HubSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*HubSession) RenounceOwnership ¶
func (f *HubSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*HubSession) SpawnTemplate ¶
func (f *HubSession) SpawnTemplate(proposedCosmosCoin string, name string, symbol string, decimals *big.Int) (*types.Transaction, error)
SpawnTemplate is a paid mutator transaction binding the contract method 0xef688fb9.
Solidity: function spawnTemplate(string proposedCosmosCoin, string name, string symbol, uint256 decimals) returns()
func (*HubSession) TransferOwnership ¶
func (f *HubSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*HubSession) UnregisterChild ¶
func (f *HubSession) UnregisterChild(child common.Address) (*types.Transaction, error)
UnregisterChild is a paid mutator transaction binding the contract method 0xe3db630c.
Solidity: function unregisterChild(address child) returns()
type HubTemplateCreation ¶
type HubTemplateCreation struct { IERC20TokenContract common.Address ProposedCosmosCoin string Raw types.Log // Blockchain specific contextual infos }
HubTemplateCreation represents a TemplateCreation event raised by the Hub contract.
type HubTemplateCreationIterator ¶
type HubTemplateCreationIterator struct { Event *HubTemplateCreation // Event containing the contract specifics and raw log // contains filtered or unexported fields }
HubTemplateCreationIterator is returned from FilterTemplateCreation and is used to iterate over the raw logs and unpacked data for TemplateCreation events raised by the Hub contract.
func (*HubTemplateCreationIterator) Close ¶
func (it *HubTemplateCreationIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*HubTemplateCreationIterator) Error ¶
func (it *HubTemplateCreationIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*HubTemplateCreationIterator) Next ¶
func (it *HubTemplateCreationIterator) 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 HubTransactor ¶
type HubTransactor struct {
// contains filtered or unexported fields
}
HubTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewHubTransactor ¶
func NewHubTransactor(address common.Address, transactor bind.ContractTransactor) (*HubTransactor, error)
NewHubTransactor creates a new write-only instance of Hub, bound to a specific deployed contract.
func (*HubTransactor) Burn ¶
func (f *HubTransactor) Burn(opts *bind.TransactOpts, iERC20TokenContract common.Address, recipientCosmosAddress string, amount *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0xc45b71de.
Solidity: function burn(address iERC20TokenContract, string recipientCosmosAddress, uint256 amount) returns()
func (*HubTransactor) Mint ¶
func (f *HubTransactor) Mint(opts *bind.TransactOpts, iERC20TokenContract common.Address, fromCosmosAddress string, recipient common.Address, amount *big.Int) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0xda14cbbc.
Solidity: function mint(address iERC20TokenContract, string fromCosmosAddress, address recipient, uint256 amount) returns()
func (*HubTransactor) RenounceOwnership ¶
func (f *HubTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*HubTransactor) SpawnTemplate ¶
func (f *HubTransactor) SpawnTemplate(opts *bind.TransactOpts, proposedCosmosCoin string, name string, symbol string, decimals *big.Int) (*types.Transaction, error)
SpawnTemplate is a paid mutator transaction binding the contract method 0xef688fb9.
Solidity: function spawnTemplate(string proposedCosmosCoin, string name, string symbol, uint256 decimals) returns()
func (*HubTransactor) TransferOwnership ¶
func (f *HubTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*HubTransactor) UnregisterChild ¶
func (f *HubTransactor) UnregisterChild(opts *bind.TransactOpts, child common.Address) (*types.Transaction, error)
UnregisterChild is a paid mutator transaction binding the contract method 0xe3db630c.
Solidity: function unregisterChild(address child) returns()
type HubTransactorRaw ¶
type HubTransactorRaw struct {
Contract *HubTransactor // Generic write-only contract binding to access the raw methods on
}
HubTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*HubTransactorRaw) Transact ¶
func (f *HubTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*HubTransactorRaw) Transfer ¶
func (f *HubTransactorRaw) 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 HubTransactorSession ¶
type HubTransactorSession struct { Contract *HubTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
HubTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*HubTransactorSession) Burn ¶
func (f *HubTransactorSession) Burn(iERC20TokenContract common.Address, recipientCosmosAddress string, amount *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0xc45b71de.
Solidity: function burn(address iERC20TokenContract, string recipientCosmosAddress, uint256 amount) returns()
func (*HubTransactorSession) Mint ¶
func (f *HubTransactorSession) Mint(iERC20TokenContract common.Address, fromCosmosAddress string, recipient common.Address, amount *big.Int) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0xda14cbbc.
Solidity: function mint(address iERC20TokenContract, string fromCosmosAddress, address recipient, uint256 amount) returns()
func (*HubTransactorSession) RenounceOwnership ¶
func (f *HubTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*HubTransactorSession) SpawnTemplate ¶
func (f *HubTransactorSession) SpawnTemplate(proposedCosmosCoin string, name string, symbol string, decimals *big.Int) (*types.Transaction, error)
SpawnTemplate is a paid mutator transaction binding the contract method 0xef688fb9.
Solidity: function spawnTemplate(string proposedCosmosCoin, string name, string symbol, uint256 decimals) returns()
func (*HubTransactorSession) TransferOwnership ¶
func (f *HubTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*HubTransactorSession) UnregisterChild ¶
func (f *HubTransactorSession) UnregisterChild(child common.Address) (*types.Transaction, error)
UnregisterChild is a paid mutator transaction binding the contract method 0xe3db630c.
Solidity: function unregisterChild(address child) returns()
type HubUnregisterChild ¶
type HubUnregisterChild struct { IERC20TokenContract common.Address Raw types.Log // Blockchain specific contextual infos }
HubUnregisterChild represents a UnregisterChild event raised by the Hub contract.
type HubUnregisterChildIterator ¶
type HubUnregisterChildIterator struct { Event *HubUnregisterChild // Event containing the contract specifics and raw log // contains filtered or unexported fields }
HubUnregisterChildIterator is returned from FilterUnregisterChild and is used to iterate over the raw logs and unpacked data for UnregisterChild events raised by the Hub contract.
func (*HubUnregisterChildIterator) Close ¶
func (it *HubUnregisterChildIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*HubUnregisterChildIterator) Error ¶
func (it *HubUnregisterChildIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*HubUnregisterChildIterator) Next ¶
func (it *HubUnregisterChildIterator) 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 LibFillResultsBatchMatchedFillResults ¶
type LibFillResultsBatchMatchedFillResults struct { Left []LibFillResultsFillResults Right []LibFillResultsFillResults }
LibFillResultsBatchMatchedFillResults is an auto generated low-level Go binding around an user-defined struct.
type LibFillResultsFillResults ¶
type LibFillResultsFillResults struct { MakerAssetFilledAmount *big.Int TakerAssetFilledAmount *big.Int TakerFeePaid *big.Int RelayerFeePaid *big.Int }
LibFillResultsFillResults is an auto generated low-level Go binding around an user-defined struct.
type LibFillResultsMatchedFillResults ¶
type LibFillResultsMatchedFillResults struct { Left LibFillResultsFillResults Right LibFillResultsFillResults }
LibFillResultsMatchedFillResults is an auto generated low-level Go binding around an user-defined struct.
type LibZeroExTransactionZeroExTransaction ¶
type LibZeroExTransactionZeroExTransaction struct { Salt *big.Int ExpirationTimeSeconds *big.Int GasPrice *big.Int SignerAddress common.Address Data []byte }
LibZeroExTransactionZeroExTransaction is an auto generated low-level Go binding around an user-defined struct.
type MixinOrdersFillResults ¶
type MixinOrdersFillResults struct { MakerPositionID *big.Int TakerPositionID *big.Int MakerMarginUsed *big.Int TakerMarginUsed *big.Int QuantityFilled *big.Int MakerFeePaid *big.Int TakerFeePaid *big.Int }
MixinOrdersFillResults is an auto generated low-level Go binding around an user-defined struct.
type MixinOrdersMatchResults ¶
type MixinOrdersMatchResults struct { LeftPositionID *big.Int RightPositionID *big.Int LeftMarginUsed *big.Int RightMarginUsed *big.Int QuantityFilled *big.Int LeftFeePaid *big.Int RightFeePaid *big.Int }
MixinOrdersMatchResults is an auto generated low-level Go binding around an user-defined struct.
type Order ¶
type Order struct { MakerAddress common.Address TakerAddress common.Address FeeRecipientAddress common.Address SenderAddress common.Address MakerAssetAmount *big.Int TakerAssetAmount *big.Int MakerFee *big.Int TakerFee *big.Int ExpirationTimeSeconds *big.Int Salt *big.Int MakerAssetData []byte TakerAssetData []byte MakerFeeAssetData []byte TakerFeeAssetData []byte }
Order is an auto generated low-level Go binding around an user-defined struct.
type Peggy ¶
type Peggy struct { PeggyCaller // Read-only binding to the contract PeggyTransactor // Write-only binding to the contract PeggyFilterer // Log filterer for contract events }
Peggy is an auto generated Go binding around an Ethereum contract.
type PeggyCaller ¶
type PeggyCaller struct {
// contains filtered or unexported fields
}
PeggyCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewPeggyCaller ¶
func NewPeggyCaller(address common.Address, caller bind.ContractCaller) (*PeggyCaller, error)
NewPeggyCaller creates a new read-only instance of Peggy, bound to a specific deployed contract.
func (*PeggyCaller) LastBatchNonce ¶
func (_Peggy *PeggyCaller) LastBatchNonce(opts *bind.CallOpts, _erc20Address common.Address) (*big.Int, error)
LastBatchNonce is a free data retrieval call binding the contract method 0x011b2174.
Solidity: function lastBatchNonce(address _erc20Address) view returns(uint256)
func (*PeggyCaller) SeenTokens ¶
SeenTokens is a free data retrieval call binding the contract method 0x13100091.
Solidity: function seenTokens(address ) view returns(bool)
func (*PeggyCaller) StateLastBatchNonces ¶
func (_Peggy *PeggyCaller) StateLastBatchNonces(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
StateLastBatchNonces is a free data retrieval call binding the contract method 0xdf97174b.
Solidity: function state_lastBatchNonces(address ) view returns(uint256)
func (*PeggyCaller) StateLastEventNonce ¶
StateLastEventNonce is a free data retrieval call binding the contract method 0x73b20547.
Solidity: function state_lastEventNonce() view returns(uint256)
func (*PeggyCaller) StateLastValsetCheckpoint ¶
func (_Peggy *PeggyCaller) StateLastValsetCheckpoint(opts *bind.CallOpts) ([32]byte, error)
StateLastValsetCheckpoint is a free data retrieval call binding the contract method 0xf2b53307.
Solidity: function state_lastValsetCheckpoint() view returns(bytes32)
func (*PeggyCaller) StateLastValsetNonce ¶
StateLastValsetNonce is a free data retrieval call binding the contract method 0xb56561fe.
Solidity: function state_lastValsetNonce() view returns(uint256)
func (*PeggyCaller) StatePeggyId ¶
func (_Peggy *PeggyCaller) StatePeggyId(opts *bind.CallOpts) ([32]byte, error)
StatePeggyId is a free data retrieval call binding the contract method 0x69dd3908.
Solidity: function state_peggyId() view returns(bytes32)
func (*PeggyCaller) StatePowerThreshold ¶
StatePowerThreshold is a free data retrieval call binding the contract method 0xe5a2b5d2.
Solidity: function state_powerThreshold() view returns(uint256)
func (*PeggyCaller) TestCheckValidatorSignatures ¶
func (_Peggy *PeggyCaller) TestCheckValidatorSignatures(opts *bind.CallOpts, _currentValidators []common.Address, _currentPowers []*big.Int, _v []uint8, _r [][32]byte, _s [][32]byte, _theHash [32]byte, _powerThreshold *big.Int) error
TestCheckValidatorSignatures is a free data retrieval call binding the contract method 0xdb7c4e57.
Solidity: function testCheckValidatorSignatures(address[] _currentValidators, uint256[] _currentPowers, uint8[] _v, bytes32[] _r, bytes32[] _s, bytes32 _theHash, uint256 _powerThreshold) pure returns()
func (*PeggyCaller) TestMakeCheckpoint ¶
func (_Peggy *PeggyCaller) TestMakeCheckpoint(opts *bind.CallOpts, _validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int, _peggyId [32]byte) error
TestMakeCheckpoint is a free data retrieval call binding the contract method 0xc227c30b.
Solidity: function testMakeCheckpoint(address[] _validators, uint256[] _powers, uint256 _valsetNonce, bytes32 _peggyId) pure returns()
func (*PeggyCaller) TokenDecimals ¶
TokenDecimals is a free data retrieval call binding the contract method 0x8ee573ac.
Solidity: function tokenDecimals(address ) view returns(uint8)
func (*PeggyCaller) TokenNames ¶
TokenNames is a free data retrieval call binding the contract method 0xa8fc75e1.
Solidity: function tokenNames(address ) view returns(string)
func (*PeggyCaller) TokenSymbols ¶
TokenSymbols is a free data retrieval call binding the contract method 0xfb0b2b36.
Solidity: function tokenSymbols(address ) view returns(string)
type PeggyCallerRaw ¶
type PeggyCallerRaw struct {
Contract *PeggyCaller // Generic read-only contract binding to access the raw methods on
}
PeggyCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*PeggyCallerRaw) Call ¶
func (_Peggy *PeggyCallerRaw) 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 PeggyCallerSession ¶
type PeggyCallerSession struct { Contract *PeggyCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
PeggyCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*PeggyCallerSession) LastBatchNonce ¶
LastBatchNonce is a free data retrieval call binding the contract method 0x011b2174.
Solidity: function lastBatchNonce(address _erc20Address) view returns(uint256)
func (*PeggyCallerSession) SeenTokens ¶
func (_Peggy *PeggyCallerSession) SeenTokens(arg0 common.Address) (bool, error)
SeenTokens is a free data retrieval call binding the contract method 0x13100091.
Solidity: function seenTokens(address ) view returns(bool)
func (*PeggyCallerSession) StateLastBatchNonces ¶
StateLastBatchNonces is a free data retrieval call binding the contract method 0xdf97174b.
Solidity: function state_lastBatchNonces(address ) view returns(uint256)
func (*PeggyCallerSession) StateLastEventNonce ¶
func (_Peggy *PeggyCallerSession) StateLastEventNonce() (*big.Int, error)
StateLastEventNonce is a free data retrieval call binding the contract method 0x73b20547.
Solidity: function state_lastEventNonce() view returns(uint256)
func (*PeggyCallerSession) StateLastValsetCheckpoint ¶
func (_Peggy *PeggyCallerSession) StateLastValsetCheckpoint() ([32]byte, error)
StateLastValsetCheckpoint is a free data retrieval call binding the contract method 0xf2b53307.
Solidity: function state_lastValsetCheckpoint() view returns(bytes32)
func (*PeggyCallerSession) StateLastValsetNonce ¶
func (_Peggy *PeggyCallerSession) StateLastValsetNonce() (*big.Int, error)
StateLastValsetNonce is a free data retrieval call binding the contract method 0xb56561fe.
Solidity: function state_lastValsetNonce() view returns(uint256)
func (*PeggyCallerSession) StatePeggyId ¶
func (_Peggy *PeggyCallerSession) StatePeggyId() ([32]byte, error)
StatePeggyId is a free data retrieval call binding the contract method 0x69dd3908.
Solidity: function state_peggyId() view returns(bytes32)
func (*PeggyCallerSession) StatePowerThreshold ¶
func (_Peggy *PeggyCallerSession) StatePowerThreshold() (*big.Int, error)
StatePowerThreshold is a free data retrieval call binding the contract method 0xe5a2b5d2.
Solidity: function state_powerThreshold() view returns(uint256)
func (*PeggyCallerSession) TestCheckValidatorSignatures ¶
func (_Peggy *PeggyCallerSession) TestCheckValidatorSignatures(_currentValidators []common.Address, _currentPowers []*big.Int, _v []uint8, _r [][32]byte, _s [][32]byte, _theHash [32]byte, _powerThreshold *big.Int) error
TestCheckValidatorSignatures is a free data retrieval call binding the contract method 0xdb7c4e57.
Solidity: function testCheckValidatorSignatures(address[] _currentValidators, uint256[] _currentPowers, uint8[] _v, bytes32[] _r, bytes32[] _s, bytes32 _theHash, uint256 _powerThreshold) pure returns()
func (*PeggyCallerSession) TestMakeCheckpoint ¶
func (_Peggy *PeggyCallerSession) TestMakeCheckpoint(_validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int, _peggyId [32]byte) error
TestMakeCheckpoint is a free data retrieval call binding the contract method 0xc227c30b.
Solidity: function testMakeCheckpoint(address[] _validators, uint256[] _powers, uint256 _valsetNonce, bytes32 _peggyId) pure returns()
func (*PeggyCallerSession) TokenDecimals ¶
func (_Peggy *PeggyCallerSession) TokenDecimals(arg0 common.Address) (uint8, error)
TokenDecimals is a free data retrieval call binding the contract method 0x8ee573ac.
Solidity: function tokenDecimals(address ) view returns(uint8)
func (*PeggyCallerSession) TokenNames ¶
func (_Peggy *PeggyCallerSession) TokenNames(arg0 common.Address) (string, error)
TokenNames is a free data retrieval call binding the contract method 0xa8fc75e1.
Solidity: function tokenNames(address ) view returns(string)
func (*PeggyCallerSession) TokenSymbols ¶
func (_Peggy *PeggyCallerSession) TokenSymbols(arg0 common.Address) (string, error)
TokenSymbols is a free data retrieval call binding the contract method 0xfb0b2b36.
Solidity: function tokenSymbols(address ) view returns(string)
type PeggyFilterer ¶
type PeggyFilterer struct {
// contains filtered or unexported fields
}
PeggyFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewPeggyFilterer ¶
func NewPeggyFilterer(address common.Address, filterer bind.ContractFilterer) (*PeggyFilterer, error)
NewPeggyFilterer creates a new log filterer instance of Peggy, bound to a specific deployed contract.
func (*PeggyFilterer) FilterSendToCosmosEvent ¶
func (_Peggy *PeggyFilterer) FilterSendToCosmosEvent(opts *bind.FilterOpts, _tokenContract []common.Address, _sender []common.Address, _destination []common.Address) (*PeggySendToCosmosEventIterator, error)
FilterSendToCosmosEvent is a free log retrieval operation binding the contract event 0x5b0cfcd9629f2864d66b907e3625f822058529e928617605883190ad34ecb96d.
Solidity: event SendToCosmosEvent(address indexed _tokenContract, address indexed _sender, address indexed _destination, uint256 _amount, uint256 _eventNonce, string _name, string _symbol, uint8 _decimals)
func (*PeggyFilterer) FilterTransactionBatchExecutedEvent ¶
func (_Peggy *PeggyFilterer) FilterTransactionBatchExecutedEvent(opts *bind.FilterOpts, _batchNonce []*big.Int, _token []common.Address) (*PeggyTransactionBatchExecutedEventIterator, error)
FilterTransactionBatchExecutedEvent is a free log retrieval operation binding the contract event 0x02c7e81975f8edb86e2a0c038b7b86a49c744236abf0f6177ff5afc6986ab708.
Solidity: event TransactionBatchExecutedEvent(uint256 indexed _batchNonce, address indexed _token, uint256 _eventNonce)
func (*PeggyFilterer) FilterValsetUpdatedEvent ¶
func (_Peggy *PeggyFilterer) FilterValsetUpdatedEvent(opts *bind.FilterOpts, _newValsetNonce []*big.Int) (*PeggyValsetUpdatedEventIterator, error)
FilterValsetUpdatedEvent is a free log retrieval operation binding the contract event 0xc6d025c076bafcdd040f00632d5e280b3a5188963f110f8c70c4f810184b30f3.
Solidity: event ValsetUpdatedEvent(uint256 indexed _newValsetNonce, address[] _validators, uint256[] _powers)
func (*PeggyFilterer) ParseSendToCosmosEvent ¶
func (_Peggy *PeggyFilterer) ParseSendToCosmosEvent(log types.Log) (*PeggySendToCosmosEvent, error)
ParseSendToCosmosEvent is a log parse operation binding the contract event 0x5b0cfcd9629f2864d66b907e3625f822058529e928617605883190ad34ecb96d.
Solidity: event SendToCosmosEvent(address indexed _tokenContract, address indexed _sender, address indexed _destination, uint256 _amount, uint256 _eventNonce, string _name, string _symbol, uint8 _decimals)
func (*PeggyFilterer) ParseTransactionBatchExecutedEvent ¶
func (_Peggy *PeggyFilterer) ParseTransactionBatchExecutedEvent(log types.Log) (*PeggyTransactionBatchExecutedEvent, error)
ParseTransactionBatchExecutedEvent is a log parse operation binding the contract event 0x02c7e81975f8edb86e2a0c038b7b86a49c744236abf0f6177ff5afc6986ab708.
Solidity: event TransactionBatchExecutedEvent(uint256 indexed _batchNonce, address indexed _token, uint256 _eventNonce)
func (*PeggyFilterer) ParseValsetUpdatedEvent ¶
func (_Peggy *PeggyFilterer) ParseValsetUpdatedEvent(log types.Log) (*PeggyValsetUpdatedEvent, error)
ParseValsetUpdatedEvent is a log parse operation binding the contract event 0xc6d025c076bafcdd040f00632d5e280b3a5188963f110f8c70c4f810184b30f3.
Solidity: event ValsetUpdatedEvent(uint256 indexed _newValsetNonce, address[] _validators, uint256[] _powers)
func (*PeggyFilterer) WatchSendToCosmosEvent ¶
func (_Peggy *PeggyFilterer) WatchSendToCosmosEvent(opts *bind.WatchOpts, sink chan<- *PeggySendToCosmosEvent, _tokenContract []common.Address, _sender []common.Address, _destination []common.Address) (event.Subscription, error)
WatchSendToCosmosEvent is a free log subscription operation binding the contract event 0x5b0cfcd9629f2864d66b907e3625f822058529e928617605883190ad34ecb96d.
Solidity: event SendToCosmosEvent(address indexed _tokenContract, address indexed _sender, address indexed _destination, uint256 _amount, uint256 _eventNonce, string _name, string _symbol, uint8 _decimals)
func (*PeggyFilterer) WatchTransactionBatchExecutedEvent ¶
func (_Peggy *PeggyFilterer) WatchTransactionBatchExecutedEvent(opts *bind.WatchOpts, sink chan<- *PeggyTransactionBatchExecutedEvent, _batchNonce []*big.Int, _token []common.Address) (event.Subscription, error)
WatchTransactionBatchExecutedEvent is a free log subscription operation binding the contract event 0x02c7e81975f8edb86e2a0c038b7b86a49c744236abf0f6177ff5afc6986ab708.
Solidity: event TransactionBatchExecutedEvent(uint256 indexed _batchNonce, address indexed _token, uint256 _eventNonce)
func (*PeggyFilterer) WatchValsetUpdatedEvent ¶
func (_Peggy *PeggyFilterer) WatchValsetUpdatedEvent(opts *bind.WatchOpts, sink chan<- *PeggyValsetUpdatedEvent, _newValsetNonce []*big.Int) (event.Subscription, error)
WatchValsetUpdatedEvent is a free log subscription operation binding the contract event 0xc6d025c076bafcdd040f00632d5e280b3a5188963f110f8c70c4f810184b30f3.
Solidity: event ValsetUpdatedEvent(uint256 indexed _newValsetNonce, address[] _validators, uint256[] _powers)
type PeggyRaw ¶
type PeggyRaw struct {
Contract *Peggy // Generic contract binding to access the raw methods on
}
PeggyRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*PeggyRaw) Call ¶
func (_Peggy *PeggyRaw) 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 (*PeggyRaw) Transact ¶
func (_Peggy *PeggyRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PeggyRaw) Transfer ¶
func (_Peggy *PeggyRaw) 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 PeggySendToCosmosEvent ¶
type PeggySendToCosmosEvent struct { TokenContract common.Address Sender common.Address Destination common.Address Amount *big.Int EventNonce *big.Int Name string Symbol string Decimals uint8 Raw types.Log // Blockchain specific contextual infos }
PeggySendToCosmosEvent represents a SendToCosmosEvent event raised by the Peggy contract.
type PeggySendToCosmosEventIterator ¶
type PeggySendToCosmosEventIterator struct { Event *PeggySendToCosmosEvent // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PeggySendToCosmosEventIterator is returned from FilterSendToCosmosEvent and is used to iterate over the raw logs and unpacked data for SendToCosmosEvent events raised by the Peggy contract.
func (*PeggySendToCosmosEventIterator) Close ¶
func (it *PeggySendToCosmosEventIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PeggySendToCosmosEventIterator) Error ¶
func (it *PeggySendToCosmosEventIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PeggySendToCosmosEventIterator) Next ¶
func (it *PeggySendToCosmosEventIterator) 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 PeggySession ¶
type PeggySession struct { Contract *Peggy // 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 }
PeggySession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*PeggySession) LastBatchNonce ¶
LastBatchNonce is a free data retrieval call binding the contract method 0x011b2174.
Solidity: function lastBatchNonce(address _erc20Address) view returns(uint256)
func (*PeggySession) SeenTokens ¶
func (_Peggy *PeggySession) SeenTokens(arg0 common.Address) (bool, error)
SeenTokens is a free data retrieval call binding the contract method 0x13100091.
Solidity: function seenTokens(address ) view returns(bool)
func (*PeggySession) SendToCosmos ¶
func (_Peggy *PeggySession) SendToCosmos(_tokenContract common.Address, _destination common.Address, _amount *big.Int) (*types.Transaction, error)
SendToCosmos is a paid mutator transaction binding the contract method 0x5d2428fa.
Solidity: function sendToCosmos(address _tokenContract, address _destination, uint256 _amount) returns()
func (*PeggySession) StateLastBatchNonces ¶
StateLastBatchNonces is a free data retrieval call binding the contract method 0xdf97174b.
Solidity: function state_lastBatchNonces(address ) view returns(uint256)
func (*PeggySession) StateLastEventNonce ¶
func (_Peggy *PeggySession) StateLastEventNonce() (*big.Int, error)
StateLastEventNonce is a free data retrieval call binding the contract method 0x73b20547.
Solidity: function state_lastEventNonce() view returns(uint256)
func (*PeggySession) StateLastValsetCheckpoint ¶
func (_Peggy *PeggySession) StateLastValsetCheckpoint() ([32]byte, error)
StateLastValsetCheckpoint is a free data retrieval call binding the contract method 0xf2b53307.
Solidity: function state_lastValsetCheckpoint() view returns(bytes32)
func (*PeggySession) StateLastValsetNonce ¶
func (_Peggy *PeggySession) StateLastValsetNonce() (*big.Int, error)
StateLastValsetNonce is a free data retrieval call binding the contract method 0xb56561fe.
Solidity: function state_lastValsetNonce() view returns(uint256)
func (*PeggySession) StatePeggyId ¶
func (_Peggy *PeggySession) StatePeggyId() ([32]byte, error)
StatePeggyId is a free data retrieval call binding the contract method 0x69dd3908.
Solidity: function state_peggyId() view returns(bytes32)
func (*PeggySession) StatePowerThreshold ¶
func (_Peggy *PeggySession) StatePowerThreshold() (*big.Int, error)
StatePowerThreshold is a free data retrieval call binding the contract method 0xe5a2b5d2.
Solidity: function state_powerThreshold() view returns(uint256)
func (*PeggySession) SubmitBatch ¶
func (_Peggy *PeggySession) SubmitBatch(_currentValidators []common.Address, _currentPowers []*big.Int, _currentValsetNonce *big.Int, _v []uint8, _r [][32]byte, _s [][32]byte, _amounts []*big.Int, _destinations []common.Address, _fees []*big.Int, _batchNonce *big.Int, _tokenContract common.Address) (*types.Transaction, error)
SubmitBatch is a paid mutator transaction binding the contract method 0xad131ec5.
Solidity: function submitBatch(address[] _currentValidators, uint256[] _currentPowers, uint256 _currentValsetNonce, uint8[] _v, bytes32[] _r, bytes32[] _s, uint256[] _amounts, address[] _destinations, uint256[] _fees, uint256 _batchNonce, address _tokenContract) returns()
func (*PeggySession) TestCheckValidatorSignatures ¶
func (_Peggy *PeggySession) TestCheckValidatorSignatures(_currentValidators []common.Address, _currentPowers []*big.Int, _v []uint8, _r [][32]byte, _s [][32]byte, _theHash [32]byte, _powerThreshold *big.Int) error
TestCheckValidatorSignatures is a free data retrieval call binding the contract method 0xdb7c4e57.
Solidity: function testCheckValidatorSignatures(address[] _currentValidators, uint256[] _currentPowers, uint8[] _v, bytes32[] _r, bytes32[] _s, bytes32 _theHash, uint256 _powerThreshold) pure returns()
func (*PeggySession) TestMakeCheckpoint ¶
func (_Peggy *PeggySession) TestMakeCheckpoint(_validators []common.Address, _powers []*big.Int, _valsetNonce *big.Int, _peggyId [32]byte) error
TestMakeCheckpoint is a free data retrieval call binding the contract method 0xc227c30b.
Solidity: function testMakeCheckpoint(address[] _validators, uint256[] _powers, uint256 _valsetNonce, bytes32 _peggyId) pure returns()
func (*PeggySession) TokenDecimals ¶
func (_Peggy *PeggySession) TokenDecimals(arg0 common.Address) (uint8, error)
TokenDecimals is a free data retrieval call binding the contract method 0x8ee573ac.
Solidity: function tokenDecimals(address ) view returns(uint8)
func (*PeggySession) TokenNames ¶
func (_Peggy *PeggySession) TokenNames(arg0 common.Address) (string, error)
TokenNames is a free data retrieval call binding the contract method 0xa8fc75e1.
Solidity: function tokenNames(address ) view returns(string)
func (*PeggySession) TokenSymbols ¶
func (_Peggy *PeggySession) TokenSymbols(arg0 common.Address) (string, error)
TokenSymbols is a free data retrieval call binding the contract method 0xfb0b2b36.
Solidity: function tokenSymbols(address ) view returns(string)
func (*PeggySession) UpdateValset ¶
func (_Peggy *PeggySession) UpdateValset(_newValidators []common.Address, _newPowers []*big.Int, _newValsetNonce *big.Int, _currentValidators []common.Address, _currentPowers []*big.Int, _currentValsetNonce *big.Int, _v []uint8, _r [][32]byte, _s [][32]byte) (*types.Transaction, error)
UpdateValset is a paid mutator transaction binding the contract method 0xe3cb9f62.
Solidity: function updateValset(address[] _newValidators, uint256[] _newPowers, uint256 _newValsetNonce, address[] _currentValidators, uint256[] _currentPowers, uint256 _currentValsetNonce, uint8[] _v, bytes32[] _r, bytes32[] _s) returns()
type PeggyTransactionBatchExecutedEvent ¶
type PeggyTransactionBatchExecutedEvent struct { BatchNonce *big.Int Token common.Address EventNonce *big.Int Raw types.Log // Blockchain specific contextual infos }
PeggyTransactionBatchExecutedEvent represents a TransactionBatchExecutedEvent event raised by the Peggy contract.
type PeggyTransactionBatchExecutedEventIterator ¶
type PeggyTransactionBatchExecutedEventIterator struct { Event *PeggyTransactionBatchExecutedEvent // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PeggyTransactionBatchExecutedEventIterator is returned from FilterTransactionBatchExecutedEvent and is used to iterate over the raw logs and unpacked data for TransactionBatchExecutedEvent events raised by the Peggy contract.
func (*PeggyTransactionBatchExecutedEventIterator) Close ¶
func (it *PeggyTransactionBatchExecutedEventIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PeggyTransactionBatchExecutedEventIterator) Error ¶
func (it *PeggyTransactionBatchExecutedEventIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PeggyTransactionBatchExecutedEventIterator) Next ¶
func (it *PeggyTransactionBatchExecutedEventIterator) 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 PeggyTransactor ¶
type PeggyTransactor struct {
// contains filtered or unexported fields
}
PeggyTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewPeggyTransactor ¶
func NewPeggyTransactor(address common.Address, transactor bind.ContractTransactor) (*PeggyTransactor, error)
NewPeggyTransactor creates a new write-only instance of Peggy, bound to a specific deployed contract.
func (*PeggyTransactor) SendToCosmos ¶
func (_Peggy *PeggyTransactor) SendToCosmos(opts *bind.TransactOpts, _tokenContract common.Address, _destination common.Address, _amount *big.Int) (*types.Transaction, error)
SendToCosmos is a paid mutator transaction binding the contract method 0x5d2428fa.
Solidity: function sendToCosmos(address _tokenContract, address _destination, uint256 _amount) returns()
func (*PeggyTransactor) SubmitBatch ¶
func (_Peggy *PeggyTransactor) SubmitBatch(opts *bind.TransactOpts, _currentValidators []common.Address, _currentPowers []*big.Int, _currentValsetNonce *big.Int, _v []uint8, _r [][32]byte, _s [][32]byte, _amounts []*big.Int, _destinations []common.Address, _fees []*big.Int, _batchNonce *big.Int, _tokenContract common.Address) (*types.Transaction, error)
SubmitBatch is a paid mutator transaction binding the contract method 0xad131ec5.
Solidity: function submitBatch(address[] _currentValidators, uint256[] _currentPowers, uint256 _currentValsetNonce, uint8[] _v, bytes32[] _r, bytes32[] _s, uint256[] _amounts, address[] _destinations, uint256[] _fees, uint256 _batchNonce, address _tokenContract) returns()
func (*PeggyTransactor) UpdateValset ¶
func (_Peggy *PeggyTransactor) UpdateValset(opts *bind.TransactOpts, _newValidators []common.Address, _newPowers []*big.Int, _newValsetNonce *big.Int, _currentValidators []common.Address, _currentPowers []*big.Int, _currentValsetNonce *big.Int, _v []uint8, _r [][32]byte, _s [][32]byte) (*types.Transaction, error)
UpdateValset is a paid mutator transaction binding the contract method 0xe3cb9f62.
Solidity: function updateValset(address[] _newValidators, uint256[] _newPowers, uint256 _newValsetNonce, address[] _currentValidators, uint256[] _currentPowers, uint256 _currentValsetNonce, uint8[] _v, bytes32[] _r, bytes32[] _s) returns()
type PeggyTransactorRaw ¶
type PeggyTransactorRaw struct {
Contract *PeggyTransactor // Generic write-only contract binding to access the raw methods on
}
PeggyTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*PeggyTransactorRaw) Transact ¶
func (_Peggy *PeggyTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PeggyTransactorRaw) Transfer ¶
func (_Peggy *PeggyTransactorRaw) 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 PeggyTransactorSession ¶
type PeggyTransactorSession struct { Contract *PeggyTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
PeggyTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*PeggyTransactorSession) SendToCosmos ¶
func (_Peggy *PeggyTransactorSession) SendToCosmos(_tokenContract common.Address, _destination common.Address, _amount *big.Int) (*types.Transaction, error)
SendToCosmos is a paid mutator transaction binding the contract method 0x5d2428fa.
Solidity: function sendToCosmos(address _tokenContract, address _destination, uint256 _amount) returns()
func (*PeggyTransactorSession) SubmitBatch ¶
func (_Peggy *PeggyTransactorSession) SubmitBatch(_currentValidators []common.Address, _currentPowers []*big.Int, _currentValsetNonce *big.Int, _v []uint8, _r [][32]byte, _s [][32]byte, _amounts []*big.Int, _destinations []common.Address, _fees []*big.Int, _batchNonce *big.Int, _tokenContract common.Address) (*types.Transaction, error)
SubmitBatch is a paid mutator transaction binding the contract method 0xad131ec5.
Solidity: function submitBatch(address[] _currentValidators, uint256[] _currentPowers, uint256 _currentValsetNonce, uint8[] _v, bytes32[] _r, bytes32[] _s, uint256[] _amounts, address[] _destinations, uint256[] _fees, uint256 _batchNonce, address _tokenContract) returns()
func (*PeggyTransactorSession) UpdateValset ¶
func (_Peggy *PeggyTransactorSession) UpdateValset(_newValidators []common.Address, _newPowers []*big.Int, _newValsetNonce *big.Int, _currentValidators []common.Address, _currentPowers []*big.Int, _currentValsetNonce *big.Int, _v []uint8, _r [][32]byte, _s [][32]byte) (*types.Transaction, error)
UpdateValset is a paid mutator transaction binding the contract method 0xe3cb9f62.
Solidity: function updateValset(address[] _newValidators, uint256[] _newPowers, uint256 _newValsetNonce, address[] _currentValidators, uint256[] _currentPowers, uint256 _currentValsetNonce, uint8[] _v, bytes32[] _r, bytes32[] _s) returns()
type PeggyValsetUpdatedEvent ¶
type PeggyValsetUpdatedEvent struct { NewValsetNonce *big.Int Validators []common.Address Powers []*big.Int Raw types.Log // Blockchain specific contextual infos }
PeggyValsetUpdatedEvent represents a ValsetUpdatedEvent event raised by the Peggy contract.
type PeggyValsetUpdatedEventIterator ¶
type PeggyValsetUpdatedEventIterator struct { Event *PeggyValsetUpdatedEvent // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PeggyValsetUpdatedEventIterator is returned from FilterValsetUpdatedEvent and is used to iterate over the raw logs and unpacked data for ValsetUpdatedEvent events raised by the Peggy contract.
func (*PeggyValsetUpdatedEventIterator) Close ¶
func (it *PeggyValsetUpdatedEventIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PeggyValsetUpdatedEventIterator) Error ¶
func (it *PeggyValsetUpdatedEventIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PeggyValsetUpdatedEventIterator) Next ¶
func (it *PeggyValsetUpdatedEventIterator) 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 PermyriadMathPermyriad ¶
PermyriadMathPermyriad is an auto generated low-level Go binding around an user-defined struct.
type PriceFeeder ¶
type PriceFeeder struct { PriceFeederCaller // Read-only binding to the contract PriceFeederTransactor // Write-only binding to the contract PriceFeederFilterer // Log filterer for contract events }
PriceFeeder is an auto generated Go binding around an Ethereum contract.
func NewPriceFeeder ¶
func NewPriceFeeder(address common.Address, backend bind.ContractBackend) (*PriceFeeder, error)
NewPriceFeeder creates a new instance of PriceFeeder, bound to a specific deployed contract.
type PriceFeederCaller ¶
type PriceFeederCaller struct {
// contains filtered or unexported fields
}
PriceFeederCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewPriceFeederCaller ¶
func NewPriceFeederCaller(address common.Address, caller bind.ContractCaller) (*PriceFeederCaller, error)
NewPriceFeederCaller creates a new read-only instance of PriceFeeder, bound to a specific deployed contract.
func (*PriceFeederCaller) CurrentPrices ¶
CurrentPrices is a free data retrieval call binding the contract method 0xacd0ecaf.
Solidity: function currentPrices(bytes32 ) view returns(uint256)
func (*PriceFeederCaller) DEFAULTADMINROLE ¶
func (f *PriceFeederCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)
DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (*PriceFeederCaller) FuturesSettlementPrice ¶
func (f *PriceFeederCaller) FuturesSettlementPrice(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
FuturesSettlementPrice is a free data retrieval call binding the contract method 0xc60f6ef5.
Solidity: function futuresSettlementPrice(bytes32 ) view returns(uint256)
func (*PriceFeederCaller) FuturesSettlementTimes ¶
func (f *PriceFeederCaller) FuturesSettlementTimes(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
FuturesSettlementTimes is a free data retrieval call binding the contract method 0x470b2d0e.
Solidity: function futuresSettlementTimes(bytes32 ) view returns(uint256)
func (*PriceFeederCaller) GetExpiryFuturesSettlementPrice ¶
func (f *PriceFeederCaller) GetExpiryFuturesSettlementPrice(opts *bind.CallOpts, marketID [32]byte) (*big.Int, error)
GetExpiryFuturesSettlementPrice is a free data retrieval call binding the contract method 0x57ab828a.
Solidity: function getExpiryFuturesSettlementPrice(bytes32 marketID) view returns(uint256)
func (*PriceFeederCaller) GetFundingInterval ¶
func (f *PriceFeederCaller) GetFundingInterval(opts *bind.CallOpts, marketID [32]byte) (*big.Int, error)
GetFundingInterval is a free data retrieval call binding the contract method 0xaa7566de.
Solidity: function getFundingInterval(bytes32 marketID) view returns(uint256)
func (*PriceFeederCaller) GetPrice ¶
GetPrice is a free data retrieval call binding the contract method 0x31d98b3f.
Solidity: function getPrice(bytes32 marketID) view returns(uint256)
func (*PriceFeederCaller) GetRoleAdmin ¶
GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.
Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (*PriceFeederCaller) GetRoleMember ¶
func (f *PriceFeederCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)
GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.
Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)
func (*PriceFeederCaller) GetRoleMemberCount ¶
func (f *PriceFeederCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)
GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.
Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)
func (*PriceFeederCaller) HasRole ¶
func (f *PriceFeederCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)
HasRole is a free data retrieval call binding the contract method 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*PriceFeederCaller) IsRegisteredMarket ¶
IsRegisteredMarket is a free data retrieval call binding the contract method 0x17eab5d6.
Solidity: function isRegisteredMarket(bytes32 ) view returns(bool)
func (*PriceFeederCaller) MarketCount ¶
MarketCount is a free data retrieval call binding the contract method 0xec979082.
Solidity: function marketCount() view returns(uint256)
func (*PriceFeederCaller) MarketFundingIntervals ¶
func (f *PriceFeederCaller) MarketFundingIntervals(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
MarketFundingIntervals is a free data retrieval call binding the contract method 0x19cb625c.
Solidity: function marketFundingIntervals(bytes32 ) view returns(uint256)
func (*PriceFeederCaller) PRICEFEEDER ¶
func (f *PriceFeederCaller) PRICEFEEDER(opts *bind.CallOpts) ([32]byte, error)
PRICEFEEDER is a free data retrieval call binding the contract method 0x882ed671.
Solidity: function PRICE_FEEDER() view returns(bytes32)
type PriceFeederCallerRaw ¶
type PriceFeederCallerRaw struct {
Contract *PriceFeederCaller // Generic read-only contract binding to access the raw methods on
}
PriceFeederCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*PriceFeederCallerRaw) Call ¶
func (f *PriceFeederCallerRaw) 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 PriceFeederCallerSession ¶
type PriceFeederCallerSession struct { Contract *PriceFeederCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
PriceFeederCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*PriceFeederCallerSession) CurrentPrices ¶
func (f *PriceFeederCallerSession) CurrentPrices(arg0 [32]byte) (*big.Int, error)
CurrentPrices is a free data retrieval call binding the contract method 0xacd0ecaf.
Solidity: function currentPrices(bytes32 ) view returns(uint256)
func (*PriceFeederCallerSession) DEFAULTADMINROLE ¶
func (f *PriceFeederCallerSession) DEFAULTADMINROLE() ([32]byte, error)
DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (*PriceFeederCallerSession) FuturesSettlementPrice ¶
func (f *PriceFeederCallerSession) FuturesSettlementPrice(arg0 [32]byte) (*big.Int, error)
FuturesSettlementPrice is a free data retrieval call binding the contract method 0xc60f6ef5.
Solidity: function futuresSettlementPrice(bytes32 ) view returns(uint256)
func (*PriceFeederCallerSession) FuturesSettlementTimes ¶
func (f *PriceFeederCallerSession) FuturesSettlementTimes(arg0 [32]byte) (*big.Int, error)
FuturesSettlementTimes is a free data retrieval call binding the contract method 0x470b2d0e.
Solidity: function futuresSettlementTimes(bytes32 ) view returns(uint256)
func (*PriceFeederCallerSession) GetExpiryFuturesSettlementPrice ¶
func (f *PriceFeederCallerSession) GetExpiryFuturesSettlementPrice(marketID [32]byte) (*big.Int, error)
GetExpiryFuturesSettlementPrice is a free data retrieval call binding the contract method 0x57ab828a.
Solidity: function getExpiryFuturesSettlementPrice(bytes32 marketID) view returns(uint256)
func (*PriceFeederCallerSession) GetFundingInterval ¶
func (f *PriceFeederCallerSession) GetFundingInterval(marketID [32]byte) (*big.Int, error)
GetFundingInterval is a free data retrieval call binding the contract method 0xaa7566de.
Solidity: function getFundingInterval(bytes32 marketID) view returns(uint256)
func (*PriceFeederCallerSession) GetPrice ¶
func (f *PriceFeederCallerSession) GetPrice(marketID [32]byte) (*big.Int, error)
GetPrice is a free data retrieval call binding the contract method 0x31d98b3f.
Solidity: function getPrice(bytes32 marketID) view returns(uint256)
func (*PriceFeederCallerSession) GetRoleAdmin ¶
func (f *PriceFeederCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.
Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (*PriceFeederCallerSession) GetRoleMember ¶
func (f *PriceFeederCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.
Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)
func (*PriceFeederCallerSession) GetRoleMemberCount ¶
func (f *PriceFeederCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.
Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)
func (*PriceFeederCallerSession) HasRole ¶
HasRole is a free data retrieval call binding the contract method 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*PriceFeederCallerSession) IsRegisteredMarket ¶
func (f *PriceFeederCallerSession) IsRegisteredMarket(arg0 [32]byte) (bool, error)
IsRegisteredMarket is a free data retrieval call binding the contract method 0x17eab5d6.
Solidity: function isRegisteredMarket(bytes32 ) view returns(bool)
func (*PriceFeederCallerSession) MarketCount ¶
func (f *PriceFeederCallerSession) MarketCount() (*big.Int, error)
MarketCount is a free data retrieval call binding the contract method 0xec979082.
Solidity: function marketCount() view returns(uint256)
func (*PriceFeederCallerSession) MarketFundingIntervals ¶
func (f *PriceFeederCallerSession) MarketFundingIntervals(arg0 [32]byte) (*big.Int, error)
MarketFundingIntervals is a free data retrieval call binding the contract method 0x19cb625c.
Solidity: function marketFundingIntervals(bytes32 ) view returns(uint256)
func (*PriceFeederCallerSession) PRICEFEEDER ¶
func (f *PriceFeederCallerSession) PRICEFEEDER() ([32]byte, error)
PRICEFEEDER is a free data retrieval call binding the contract method 0x882ed671.
Solidity: function PRICE_FEEDER() view returns(bytes32)
type PriceFeederFilterer ¶
type PriceFeederFilterer struct {
// contains filtered or unexported fields
}
PriceFeederFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewPriceFeederFilterer ¶
func NewPriceFeederFilterer(address common.Address, filterer bind.ContractFilterer) (*PriceFeederFilterer, error)
NewPriceFeederFilterer creates a new log filterer instance of PriceFeeder, bound to a specific deployed contract.
func (*PriceFeederFilterer) FilterRegisterFuturesMarket ¶
func (f *PriceFeederFilterer) FilterRegisterFuturesMarket(opts *bind.FilterOpts, marketID [][32]byte) (*PriceFeederRegisterFuturesMarketIterator, error)
FilterRegisterFuturesMarket is a free log retrieval operation binding the contract event 0x658829bdba490af5d973a4e5cd6a98ec9eccc538d005c267a710a7eb62602c5f.
Solidity: event RegisterFuturesMarket(bytes32 indexed marketID, uint256 expirationTime, uint256 initialPrice, uint256 timestamp)
func (*PriceFeederFilterer) FilterRegisterPerpetualMarket ¶
func (f *PriceFeederFilterer) FilterRegisterPerpetualMarket(opts *bind.FilterOpts, marketID [][32]byte) (*PriceFeederRegisterPerpetualMarketIterator, error)
FilterRegisterPerpetualMarket is a free log retrieval operation binding the contract event 0xf4a892d94307acfa4ef3f684cd3bdabf189017b03f42210f4937a4ba2a4edf8c.
Solidity: event RegisterPerpetualMarket(bytes32 indexed marketID, uint256 fundingInterval, uint256 initialPrice, uint256 timestamp)
func (*PriceFeederFilterer) FilterRoleAdminChanged ¶
func (f *PriceFeederFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*PriceFeederRoleAdminChangedIterator, error)
FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.
Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
func (*PriceFeederFilterer) FilterRoleGranted ¶
func (f *PriceFeederFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*PriceFeederRoleGrantedIterator, error)
FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.
Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
func (*PriceFeederFilterer) FilterRoleRevoked ¶
func (f *PriceFeederFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*PriceFeederRoleRevokedIterator, error)
FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.
Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
func (*PriceFeederFilterer) FilterSetPrice ¶
func (f *PriceFeederFilterer) FilterSetPrice(opts *bind.FilterOpts, marketID [][32]byte) (*PriceFeederSetPriceIterator, error)
FilterSetPrice is a free log retrieval operation binding the contract event 0xabe0d897903d7a41d97b5dfbbb279a7175e68631bb9862bc4b3a1a209a855ac6.
Solidity: event SetPrice(bytes32 indexed marketID, uint256 price, uint256 timestamp)
func (*PriceFeederFilterer) FilterSetSettlementPrice ¶
func (f *PriceFeederFilterer) FilterSetSettlementPrice(opts *bind.FilterOpts, marketID [][32]byte) (*PriceFeederSetSettlementPriceIterator, error)
FilterSetSettlementPrice is a free log retrieval operation binding the contract event 0x4d1e7bc440f21abae9f84f1f4b5f1721205dd6fbd01100ffdd0e4b7d1e9be62c.
Solidity: event SetSettlementPrice(bytes32 indexed marketID, uint256 price, uint256 timestamp, uint256 marketExpirationTimestamp)
func (*PriceFeederFilterer) ParseRegisterFuturesMarket ¶
func (f *PriceFeederFilterer) ParseRegisterFuturesMarket(log types.Log) (*PriceFeederRegisterFuturesMarket, error)
ParseRegisterFuturesMarket is a log parse operation binding the contract event 0x658829bdba490af5d973a4e5cd6a98ec9eccc538d005c267a710a7eb62602c5f.
Solidity: event RegisterFuturesMarket(bytes32 indexed marketID, uint256 expirationTime, uint256 initialPrice, uint256 timestamp)
func (*PriceFeederFilterer) ParseRegisterPerpetualMarket ¶
func (f *PriceFeederFilterer) ParseRegisterPerpetualMarket(log types.Log) (*PriceFeederRegisterPerpetualMarket, error)
ParseRegisterPerpetualMarket is a log parse operation binding the contract event 0xf4a892d94307acfa4ef3f684cd3bdabf189017b03f42210f4937a4ba2a4edf8c.
Solidity: event RegisterPerpetualMarket(bytes32 indexed marketID, uint256 fundingInterval, uint256 initialPrice, uint256 timestamp)
func (*PriceFeederFilterer) ParseRoleAdminChanged ¶
func (f *PriceFeederFilterer) ParseRoleAdminChanged(log types.Log) (*PriceFeederRoleAdminChanged, error)
ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.
Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
func (*PriceFeederFilterer) ParseRoleGranted ¶
func (f *PriceFeederFilterer) ParseRoleGranted(log types.Log) (*PriceFeederRoleGranted, error)
ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.
Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
func (*PriceFeederFilterer) ParseRoleRevoked ¶
func (f *PriceFeederFilterer) ParseRoleRevoked(log types.Log) (*PriceFeederRoleRevoked, error)
ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.
Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
func (*PriceFeederFilterer) ParseSetPrice ¶
func (f *PriceFeederFilterer) ParseSetPrice(log types.Log) (*PriceFeederSetPrice, error)
ParseSetPrice is a log parse operation binding the contract event 0xabe0d897903d7a41d97b5dfbbb279a7175e68631bb9862bc4b3a1a209a855ac6.
Solidity: event SetPrice(bytes32 indexed marketID, uint256 price, uint256 timestamp)
func (*PriceFeederFilterer) ParseSetSettlementPrice ¶
func (f *PriceFeederFilterer) ParseSetSettlementPrice(log types.Log) (*PriceFeederSetSettlementPrice, error)
ParseSetSettlementPrice is a log parse operation binding the contract event 0x4d1e7bc440f21abae9f84f1f4b5f1721205dd6fbd01100ffdd0e4b7d1e9be62c.
Solidity: event SetSettlementPrice(bytes32 indexed marketID, uint256 price, uint256 timestamp, uint256 marketExpirationTimestamp)
func (*PriceFeederFilterer) WatchRegisterFuturesMarket ¶
func (f *PriceFeederFilterer) WatchRegisterFuturesMarket(opts *bind.WatchOpts, sink chan<- *PriceFeederRegisterFuturesMarket, marketID [][32]byte) (event.Subscription, error)
WatchRegisterFuturesMarket is a free log subscription operation binding the contract event 0x658829bdba490af5d973a4e5cd6a98ec9eccc538d005c267a710a7eb62602c5f.
Solidity: event RegisterFuturesMarket(bytes32 indexed marketID, uint256 expirationTime, uint256 initialPrice, uint256 timestamp)
func (*PriceFeederFilterer) WatchRegisterPerpetualMarket ¶
func (f *PriceFeederFilterer) WatchRegisterPerpetualMarket(opts *bind.WatchOpts, sink chan<- *PriceFeederRegisterPerpetualMarket, marketID [][32]byte) (event.Subscription, error)
WatchRegisterPerpetualMarket is a free log subscription operation binding the contract event 0xf4a892d94307acfa4ef3f684cd3bdabf189017b03f42210f4937a4ba2a4edf8c.
Solidity: event RegisterPerpetualMarket(bytes32 indexed marketID, uint256 fundingInterval, uint256 initialPrice, uint256 timestamp)
func (*PriceFeederFilterer) WatchRoleAdminChanged ¶
func (f *PriceFeederFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *PriceFeederRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)
WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.
Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
func (*PriceFeederFilterer) WatchRoleGranted ¶
func (f *PriceFeederFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *PriceFeederRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)
WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.
Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
func (*PriceFeederFilterer) WatchRoleRevoked ¶
func (f *PriceFeederFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *PriceFeederRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)
WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.
Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
func (*PriceFeederFilterer) WatchSetPrice ¶
func (f *PriceFeederFilterer) WatchSetPrice(opts *bind.WatchOpts, sink chan<- *PriceFeederSetPrice, marketID [][32]byte) (event.Subscription, error)
WatchSetPrice is a free log subscription operation binding the contract event 0xabe0d897903d7a41d97b5dfbbb279a7175e68631bb9862bc4b3a1a209a855ac6.
Solidity: event SetPrice(bytes32 indexed marketID, uint256 price, uint256 timestamp)
func (*PriceFeederFilterer) WatchSetSettlementPrice ¶
func (f *PriceFeederFilterer) WatchSetSettlementPrice(opts *bind.WatchOpts, sink chan<- *PriceFeederSetSettlementPrice, marketID [][32]byte) (event.Subscription, error)
WatchSetSettlementPrice is a free log subscription operation binding the contract event 0x4d1e7bc440f21abae9f84f1f4b5f1721205dd6fbd01100ffdd0e4b7d1e9be62c.
Solidity: event SetSettlementPrice(bytes32 indexed marketID, uint256 price, uint256 timestamp, uint256 marketExpirationTimestamp)
type PriceFeederRaw ¶
type PriceFeederRaw struct {
Contract *PriceFeeder // Generic contract binding to access the raw methods on
}
PriceFeederRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*PriceFeederRaw) Call ¶
func (f *PriceFeederRaw) 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 (*PriceFeederRaw) Transact ¶
func (f *PriceFeederRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PriceFeederRaw) Transfer ¶
func (f *PriceFeederRaw) 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 PriceFeederRegisterFuturesMarket ¶
type PriceFeederRegisterFuturesMarket struct { MarketID [32]byte ExpirationTime *big.Int InitialPrice *big.Int Timestamp *big.Int Raw types.Log // Blockchain specific contextual infos }
PriceFeederRegisterFuturesMarket represents a RegisterFuturesMarket event raised by the PriceFeeder contract.
type PriceFeederRegisterFuturesMarketIterator ¶
type PriceFeederRegisterFuturesMarketIterator struct { Event *PriceFeederRegisterFuturesMarket // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PriceFeederRegisterFuturesMarketIterator is returned from FilterRegisterFuturesMarket and is used to iterate over the raw logs and unpacked data for RegisterFuturesMarket events raised by the PriceFeeder contract.
func (*PriceFeederRegisterFuturesMarketIterator) Close ¶
func (it *PriceFeederRegisterFuturesMarketIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PriceFeederRegisterFuturesMarketIterator) Error ¶
func (it *PriceFeederRegisterFuturesMarketIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PriceFeederRegisterFuturesMarketIterator) Next ¶
func (it *PriceFeederRegisterFuturesMarketIterator) 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 PriceFeederRegisterPerpetualMarket ¶
type PriceFeederRegisterPerpetualMarket struct { MarketID [32]byte FundingInterval *big.Int InitialPrice *big.Int Timestamp *big.Int Raw types.Log // Blockchain specific contextual infos }
PriceFeederRegisterPerpetualMarket represents a RegisterPerpetualMarket event raised by the PriceFeeder contract.
type PriceFeederRegisterPerpetualMarketIterator ¶
type PriceFeederRegisterPerpetualMarketIterator struct { Event *PriceFeederRegisterPerpetualMarket // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PriceFeederRegisterPerpetualMarketIterator is returned from FilterRegisterPerpetualMarket and is used to iterate over the raw logs and unpacked data for RegisterPerpetualMarket events raised by the PriceFeeder contract.
func (*PriceFeederRegisterPerpetualMarketIterator) Close ¶
func (it *PriceFeederRegisterPerpetualMarketIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PriceFeederRegisterPerpetualMarketIterator) Error ¶
func (it *PriceFeederRegisterPerpetualMarketIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PriceFeederRegisterPerpetualMarketIterator) Next ¶
func (it *PriceFeederRegisterPerpetualMarketIterator) 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 PriceFeederRoleAdminChanged ¶
type PriceFeederRoleAdminChanged struct { Role [32]byte PreviousAdminRole [32]byte NewAdminRole [32]byte Raw types.Log // Blockchain specific contextual infos }
PriceFeederRoleAdminChanged represents a RoleAdminChanged event raised by the PriceFeeder contract.
type PriceFeederRoleAdminChangedIterator ¶
type PriceFeederRoleAdminChangedIterator struct { Event *PriceFeederRoleAdminChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PriceFeederRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the PriceFeeder contract.
func (*PriceFeederRoleAdminChangedIterator) Close ¶
func (it *PriceFeederRoleAdminChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PriceFeederRoleAdminChangedIterator) Error ¶
func (it *PriceFeederRoleAdminChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PriceFeederRoleAdminChangedIterator) Next ¶
func (it *PriceFeederRoleAdminChangedIterator) 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 PriceFeederRoleGranted ¶
type PriceFeederRoleGranted struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
PriceFeederRoleGranted represents a RoleGranted event raised by the PriceFeeder contract.
type PriceFeederRoleGrantedIterator ¶
type PriceFeederRoleGrantedIterator struct { Event *PriceFeederRoleGranted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PriceFeederRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the PriceFeeder contract.
func (*PriceFeederRoleGrantedIterator) Close ¶
func (it *PriceFeederRoleGrantedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PriceFeederRoleGrantedIterator) Error ¶
func (it *PriceFeederRoleGrantedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PriceFeederRoleGrantedIterator) Next ¶
func (it *PriceFeederRoleGrantedIterator) 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 PriceFeederRoleRevoked ¶
type PriceFeederRoleRevoked struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
PriceFeederRoleRevoked represents a RoleRevoked event raised by the PriceFeeder contract.
type PriceFeederRoleRevokedIterator ¶
type PriceFeederRoleRevokedIterator struct { Event *PriceFeederRoleRevoked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PriceFeederRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the PriceFeeder contract.
func (*PriceFeederRoleRevokedIterator) Close ¶
func (it *PriceFeederRoleRevokedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PriceFeederRoleRevokedIterator) Error ¶
func (it *PriceFeederRoleRevokedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PriceFeederRoleRevokedIterator) Next ¶
func (it *PriceFeederRoleRevokedIterator) 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 PriceFeederSession ¶
type PriceFeederSession struct { Contract *PriceFeeder // 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 }
PriceFeederSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*PriceFeederSession) CurrentPrices ¶
func (f *PriceFeederSession) CurrentPrices(arg0 [32]byte) (*big.Int, error)
CurrentPrices is a free data retrieval call binding the contract method 0xacd0ecaf.
Solidity: function currentPrices(bytes32 ) view returns(uint256)
func (*PriceFeederSession) DEFAULTADMINROLE ¶
func (f *PriceFeederSession) DEFAULTADMINROLE() ([32]byte, error)
DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (*PriceFeederSession) FuturesSettlementPrice ¶
func (f *PriceFeederSession) FuturesSettlementPrice(arg0 [32]byte) (*big.Int, error)
FuturesSettlementPrice is a free data retrieval call binding the contract method 0xc60f6ef5.
Solidity: function futuresSettlementPrice(bytes32 ) view returns(uint256)
func (*PriceFeederSession) FuturesSettlementTimes ¶
func (f *PriceFeederSession) FuturesSettlementTimes(arg0 [32]byte) (*big.Int, error)
FuturesSettlementTimes is a free data retrieval call binding the contract method 0x470b2d0e.
Solidity: function futuresSettlementTimes(bytes32 ) view returns(uint256)
func (*PriceFeederSession) GetExpiryFuturesSettlementPrice ¶
func (f *PriceFeederSession) GetExpiryFuturesSettlementPrice(marketID [32]byte) (*big.Int, error)
GetExpiryFuturesSettlementPrice is a free data retrieval call binding the contract method 0x57ab828a.
Solidity: function getExpiryFuturesSettlementPrice(bytes32 marketID) view returns(uint256)
func (*PriceFeederSession) GetFundingInterval ¶
func (f *PriceFeederSession) GetFundingInterval(marketID [32]byte) (*big.Int, error)
GetFundingInterval is a free data retrieval call binding the contract method 0xaa7566de.
Solidity: function getFundingInterval(bytes32 marketID) view returns(uint256)
func (*PriceFeederSession) GetPrice ¶
func (f *PriceFeederSession) GetPrice(marketID [32]byte) (*big.Int, error)
GetPrice is a free data retrieval call binding the contract method 0x31d98b3f.
Solidity: function getPrice(bytes32 marketID) view returns(uint256)
func (*PriceFeederSession) GetRoleAdmin ¶
func (f *PriceFeederSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.
Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (*PriceFeederSession) GetRoleMember ¶
GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.
Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)
func (*PriceFeederSession) GetRoleMemberCount ¶
func (f *PriceFeederSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.
Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)
func (*PriceFeederSession) GrantRole ¶
func (f *PriceFeederSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.
Solidity: function grantRole(bytes32 role, address account) returns()
func (*PriceFeederSession) HasRole ¶
HasRole is a free data retrieval call binding the contract method 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*PriceFeederSession) IsRegisteredMarket ¶
func (f *PriceFeederSession) IsRegisteredMarket(arg0 [32]byte) (bool, error)
IsRegisteredMarket is a free data retrieval call binding the contract method 0x17eab5d6.
Solidity: function isRegisteredMarket(bytes32 ) view returns(bool)
func (*PriceFeederSession) MarketCount ¶
func (f *PriceFeederSession) MarketCount() (*big.Int, error)
MarketCount is a free data retrieval call binding the contract method 0xec979082.
Solidity: function marketCount() view returns(uint256)
func (*PriceFeederSession) MarketFundingIntervals ¶
func (f *PriceFeederSession) MarketFundingIntervals(arg0 [32]byte) (*big.Int, error)
MarketFundingIntervals is a free data retrieval call binding the contract method 0x19cb625c.
Solidity: function marketFundingIntervals(bytes32 ) view returns(uint256)
func (*PriceFeederSession) PRICEFEEDER ¶
func (f *PriceFeederSession) PRICEFEEDER() ([32]byte, error)
PRICEFEEDER is a free data retrieval call binding the contract method 0x882ed671.
Solidity: function PRICE_FEEDER() view returns(bytes32)
func (*PriceFeederSession) RegisterFuturesMarket ¶
func (f *PriceFeederSession) RegisterFuturesMarket(marketID [32]byte, expirationTime *big.Int, price *big.Int) (*types.Transaction, error)
RegisterFuturesMarket is a paid mutator transaction binding the contract method 0xa4716060.
Solidity: function registerFuturesMarket(bytes32 marketID, uint256 expirationTime, uint256 price) returns()
func (*PriceFeederSession) RegisterPerpetualMarket ¶
func (f *PriceFeederSession) RegisterPerpetualMarket(marketID [32]byte, fundingInterval *big.Int, price *big.Int) (*types.Transaction, error)
RegisterPerpetualMarket is a paid mutator transaction binding the contract method 0x2be3ccd9.
Solidity: function registerPerpetualMarket(bytes32 marketID, uint256 fundingInterval, uint256 price) returns()
func (*PriceFeederSession) RenounceRole ¶
func (f *PriceFeederSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.
Solidity: function renounceRole(bytes32 role, address account) returns()
func (*PriceFeederSession) RevokeRole ¶
func (f *PriceFeederSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.
Solidity: function revokeRole(bytes32 role, address account) returns()
func (*PriceFeederSession) SetExpiryFuturesSettlementPrice ¶
func (f *PriceFeederSession) SetExpiryFuturesSettlementPrice(marketID [32]byte, price *big.Int) (*types.Transaction, error)
SetExpiryFuturesSettlementPrice is a paid mutator transaction binding the contract method 0xec6def6a.
Solidity: function setExpiryFuturesSettlementPrice(bytes32 marketID, uint256 price) returns()
func (*PriceFeederSession) SetPrice ¶
func (f *PriceFeederSession) SetPrice(marketID [32]byte, price *big.Int) (*types.Transaction, error)
SetPrice is a paid mutator transaction binding the contract method 0x10d8d74d.
Solidity: function setPrice(bytes32 marketID, uint256 price) returns()
type PriceFeederSetPrice ¶
type PriceFeederSetPrice struct { MarketID [32]byte Price *big.Int Timestamp *big.Int Raw types.Log // Blockchain specific contextual infos }
PriceFeederSetPrice represents a SetPrice event raised by the PriceFeeder contract.
type PriceFeederSetPriceIterator ¶
type PriceFeederSetPriceIterator struct { Event *PriceFeederSetPrice // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PriceFeederSetPriceIterator is returned from FilterSetPrice and is used to iterate over the raw logs and unpacked data for SetPrice events raised by the PriceFeeder contract.
func (*PriceFeederSetPriceIterator) Close ¶
func (it *PriceFeederSetPriceIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PriceFeederSetPriceIterator) Error ¶
func (it *PriceFeederSetPriceIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PriceFeederSetPriceIterator) Next ¶
func (it *PriceFeederSetPriceIterator) 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 PriceFeederSetSettlementPrice ¶
type PriceFeederSetSettlementPrice struct { MarketID [32]byte Price *big.Int Timestamp *big.Int MarketExpirationTimestamp *big.Int Raw types.Log // Blockchain specific contextual infos }
PriceFeederSetSettlementPrice represents a SetSettlementPrice event raised by the PriceFeeder contract.
type PriceFeederSetSettlementPriceIterator ¶
type PriceFeederSetSettlementPriceIterator struct { Event *PriceFeederSetSettlementPrice // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PriceFeederSetSettlementPriceIterator is returned from FilterSetSettlementPrice and is used to iterate over the raw logs and unpacked data for SetSettlementPrice events raised by the PriceFeeder contract.
func (*PriceFeederSetSettlementPriceIterator) Close ¶
func (it *PriceFeederSetSettlementPriceIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PriceFeederSetSettlementPriceIterator) Error ¶
func (it *PriceFeederSetSettlementPriceIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PriceFeederSetSettlementPriceIterator) Next ¶
func (it *PriceFeederSetSettlementPriceIterator) 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 PriceFeederTransactor ¶
type PriceFeederTransactor struct {
// contains filtered or unexported fields
}
PriceFeederTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewPriceFeederTransactor ¶
func NewPriceFeederTransactor(address common.Address, transactor bind.ContractTransactor) (*PriceFeederTransactor, error)
NewPriceFeederTransactor creates a new write-only instance of PriceFeeder, bound to a specific deployed contract.
func (*PriceFeederTransactor) GrantRole ¶
func (f *PriceFeederTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.
Solidity: function grantRole(bytes32 role, address account) returns()
func (*PriceFeederTransactor) RegisterFuturesMarket ¶
func (f *PriceFeederTransactor) RegisterFuturesMarket(opts *bind.TransactOpts, marketID [32]byte, expirationTime *big.Int, price *big.Int) (*types.Transaction, error)
RegisterFuturesMarket is a paid mutator transaction binding the contract method 0xa4716060.
Solidity: function registerFuturesMarket(bytes32 marketID, uint256 expirationTime, uint256 price) returns()
func (*PriceFeederTransactor) RegisterPerpetualMarket ¶
func (f *PriceFeederTransactor) RegisterPerpetualMarket(opts *bind.TransactOpts, marketID [32]byte, fundingInterval *big.Int, price *big.Int) (*types.Transaction, error)
RegisterPerpetualMarket is a paid mutator transaction binding the contract method 0x2be3ccd9.
Solidity: function registerPerpetualMarket(bytes32 marketID, uint256 fundingInterval, uint256 price) returns()
func (*PriceFeederTransactor) RenounceRole ¶
func (f *PriceFeederTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.
Solidity: function renounceRole(bytes32 role, address account) returns()
func (*PriceFeederTransactor) RevokeRole ¶
func (f *PriceFeederTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.
Solidity: function revokeRole(bytes32 role, address account) returns()
func (*PriceFeederTransactor) SetExpiryFuturesSettlementPrice ¶
func (f *PriceFeederTransactor) SetExpiryFuturesSettlementPrice(opts *bind.TransactOpts, marketID [32]byte, price *big.Int) (*types.Transaction, error)
SetExpiryFuturesSettlementPrice is a paid mutator transaction binding the contract method 0xec6def6a.
Solidity: function setExpiryFuturesSettlementPrice(bytes32 marketID, uint256 price) returns()
func (*PriceFeederTransactor) SetPrice ¶
func (f *PriceFeederTransactor) SetPrice(opts *bind.TransactOpts, marketID [32]byte, price *big.Int) (*types.Transaction, error)
SetPrice is a paid mutator transaction binding the contract method 0x10d8d74d.
Solidity: function setPrice(bytes32 marketID, uint256 price) returns()
type PriceFeederTransactorRaw ¶
type PriceFeederTransactorRaw struct {
Contract *PriceFeederTransactor // Generic write-only contract binding to access the raw methods on
}
PriceFeederTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*PriceFeederTransactorRaw) Transact ¶
func (f *PriceFeederTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PriceFeederTransactorRaw) Transfer ¶
func (f *PriceFeederTransactorRaw) 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 PriceFeederTransactorSession ¶
type PriceFeederTransactorSession struct { Contract *PriceFeederTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
PriceFeederTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*PriceFeederTransactorSession) GrantRole ¶
func (f *PriceFeederTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.
Solidity: function grantRole(bytes32 role, address account) returns()
func (*PriceFeederTransactorSession) RegisterFuturesMarket ¶
func (f *PriceFeederTransactorSession) RegisterFuturesMarket(marketID [32]byte, expirationTime *big.Int, price *big.Int) (*types.Transaction, error)
RegisterFuturesMarket is a paid mutator transaction binding the contract method 0xa4716060.
Solidity: function registerFuturesMarket(bytes32 marketID, uint256 expirationTime, uint256 price) returns()
func (*PriceFeederTransactorSession) RegisterPerpetualMarket ¶
func (f *PriceFeederTransactorSession) RegisterPerpetualMarket(marketID [32]byte, fundingInterval *big.Int, price *big.Int) (*types.Transaction, error)
RegisterPerpetualMarket is a paid mutator transaction binding the contract method 0x2be3ccd9.
Solidity: function registerPerpetualMarket(bytes32 marketID, uint256 fundingInterval, uint256 price) returns()
func (*PriceFeederTransactorSession) RenounceRole ¶
func (f *PriceFeederTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.
Solidity: function renounceRole(bytes32 role, address account) returns()
func (*PriceFeederTransactorSession) RevokeRole ¶
func (f *PriceFeederTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.
Solidity: function revokeRole(bytes32 role, address account) returns()
func (*PriceFeederTransactorSession) SetExpiryFuturesSettlementPrice ¶
func (f *PriceFeederTransactorSession) SetExpiryFuturesSettlementPrice(marketID [32]byte, price *big.Int) (*types.Transaction, error)
SetExpiryFuturesSettlementPrice is a paid mutator transaction binding the contract method 0xec6def6a.
Solidity: function setExpiryFuturesSettlementPrice(bytes32 marketID, uint256 price) returns()
func (*PriceFeederTransactorSession) SetPrice ¶
func (f *PriceFeederTransactorSession) SetPrice(marketID [32]byte, price *big.Int) (*types.Transaction, error)
SetPrice is a paid mutator transaction binding the contract method 0x10d8d74d.
Solidity: function setPrice(bytes32 marketID, uint256 price) returns()
type TypesPosition ¶
type TypesPosition struct { SubAccountID [32]byte MarketID [32]byte Direction uint8 Quantity *big.Int EntryPrice *big.Int Margin *big.Int CumulativeFundingEntry *big.Int }
TypesPosition is an auto generated low-level Go binding around an user-defined struct.
type TypesPositionResults ¶
type TypesPositionResults struct { PositionID *big.Int MarginUsed *big.Int Quantity *big.Int Fee *big.Int }
TypesPositionResults is an auto generated low-level Go binding around an user-defined struct.
type TypesTransactionFees ¶
type TypesTransactionFees struct { Maker PermyriadMathPermyriad Taker PermyriadMathPermyriad Relayer PermyriadMathPermyriad }
TypesTransactionFees is an auto generated low-level Go binding around an user-defined struct.