Documentation ¶
Index ¶
- Variables
- type GmxMigrator
- type GmxMigratorCaller
- func (_GmxMigrator *GmxMigratorCaller) ActionsNonce(opts *bind.CallOpts) (*big.Int, error)
- func (_GmxMigrator *GmxMigratorCaller) Admin(opts *bind.CallOpts) (common.Address, error)
- func (_GmxMigrator *GmxMigratorCaller) AmmRouter(opts *bind.CallOpts) (common.Address, error)
- func (_GmxMigrator *GmxMigratorCaller) Caps(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_GmxMigrator *GmxMigratorCaller) GetIouToken(opts *bind.CallOpts, _token common.Address) (common.Address, error)
- func (_GmxMigrator *GmxMigratorCaller) GetTokenAmounts(opts *bind.CallOpts, _tokens []common.Address) ([]*big.Int, error)
- func (_GmxMigrator *GmxMigratorCaller) GetTokenPrice(opts *bind.CallOpts, _token common.Address) (*big.Int, error)
- func (_GmxMigrator *GmxMigratorCaller) GmxPrice(opts *bind.CallOpts) (*big.Int, error)
- func (_GmxMigrator *GmxMigratorCaller) HasMaxMigrationLimit(opts *bind.CallOpts) (bool, error)
- func (_GmxMigrator *GmxMigratorCaller) IouTokens(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
- func (_GmxMigrator *GmxMigratorCaller) IsInitialized(opts *bind.CallOpts) (bool, error)
- func (_GmxMigrator *GmxMigratorCaller) IsMigrationActive(opts *bind.CallOpts) (bool, error)
- func (_GmxMigrator *GmxMigratorCaller) IsSigner(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_GmxMigrator *GmxMigratorCaller) LpTokenAs(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
- func (_GmxMigrator *GmxMigratorCaller) LpTokenBs(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
- func (_GmxMigrator *GmxMigratorCaller) LpTokens(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_GmxMigrator *GmxMigratorCaller) MaxMigrationAmounts(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_GmxMigrator *GmxMigratorCaller) MigratedAmounts(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_GmxMigrator *GmxMigratorCaller) MinAuthorizations(opts *bind.CallOpts) (*big.Int, error)
- func (_GmxMigrator *GmxMigratorCaller) PendingActions(opts *bind.CallOpts, arg0 [32]byte) (bool, error)
- func (_GmxMigrator *GmxMigratorCaller) Prices(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_GmxMigrator *GmxMigratorCaller) SignedActions(opts *bind.CallOpts, arg0 common.Address, arg1 [32]byte) (bool, error)
- func (_GmxMigrator *GmxMigratorCaller) Signers(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
- func (_GmxMigrator *GmxMigratorCaller) TokenAmounts(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_GmxMigrator *GmxMigratorCaller) WhitelistedTokens(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- type GmxMigratorCallerRaw
- type GmxMigratorCallerSession
- func (_GmxMigrator *GmxMigratorCallerSession) ActionsNonce() (*big.Int, error)
- func (_GmxMigrator *GmxMigratorCallerSession) Admin() (common.Address, error)
- func (_GmxMigrator *GmxMigratorCallerSession) AmmRouter() (common.Address, error)
- func (_GmxMigrator *GmxMigratorCallerSession) Caps(arg0 common.Address) (*big.Int, error)
- func (_GmxMigrator *GmxMigratorCallerSession) GetIouToken(_token common.Address) (common.Address, error)
- func (_GmxMigrator *GmxMigratorCallerSession) GetTokenAmounts(_tokens []common.Address) ([]*big.Int, error)
- func (_GmxMigrator *GmxMigratorCallerSession) GetTokenPrice(_token common.Address) (*big.Int, error)
- func (_GmxMigrator *GmxMigratorCallerSession) GmxPrice() (*big.Int, error)
- func (_GmxMigrator *GmxMigratorCallerSession) HasMaxMigrationLimit() (bool, error)
- func (_GmxMigrator *GmxMigratorCallerSession) IouTokens(arg0 common.Address) (common.Address, error)
- func (_GmxMigrator *GmxMigratorCallerSession) IsInitialized() (bool, error)
- func (_GmxMigrator *GmxMigratorCallerSession) IsMigrationActive() (bool, error)
- func (_GmxMigrator *GmxMigratorCallerSession) IsSigner(arg0 common.Address) (bool, error)
- func (_GmxMigrator *GmxMigratorCallerSession) LpTokenAs(arg0 common.Address) (common.Address, error)
- func (_GmxMigrator *GmxMigratorCallerSession) LpTokenBs(arg0 common.Address) (common.Address, error)
- func (_GmxMigrator *GmxMigratorCallerSession) LpTokens(arg0 common.Address) (bool, error)
- func (_GmxMigrator *GmxMigratorCallerSession) MaxMigrationAmounts(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_GmxMigrator *GmxMigratorCallerSession) MigratedAmounts(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_GmxMigrator *GmxMigratorCallerSession) MinAuthorizations() (*big.Int, error)
- func (_GmxMigrator *GmxMigratorCallerSession) PendingActions(arg0 [32]byte) (bool, error)
- func (_GmxMigrator *GmxMigratorCallerSession) Prices(arg0 common.Address) (*big.Int, error)
- func (_GmxMigrator *GmxMigratorCallerSession) SignedActions(arg0 common.Address, arg1 [32]byte) (bool, error)
- func (_GmxMigrator *GmxMigratorCallerSession) Signers(arg0 *big.Int) (common.Address, error)
- func (_GmxMigrator *GmxMigratorCallerSession) TokenAmounts(arg0 common.Address) (*big.Int, error)
- func (_GmxMigrator *GmxMigratorCallerSession) WhitelistedTokens(arg0 common.Address) (bool, error)
- type GmxMigratorClearAction
- type GmxMigratorClearActionIterator
- type GmxMigratorFilterer
- func (_GmxMigrator *GmxMigratorFilterer) FilterClearAction(opts *bind.FilterOpts) (*GmxMigratorClearActionIterator, error)
- func (_GmxMigrator *GmxMigratorFilterer) FilterSignAction(opts *bind.FilterOpts) (*GmxMigratorSignActionIterator, error)
- func (_GmxMigrator *GmxMigratorFilterer) FilterSignalApprove(opts *bind.FilterOpts) (*GmxMigratorSignalApproveIterator, error)
- func (_GmxMigrator *GmxMigratorFilterer) FilterSignalPendingAction(opts *bind.FilterOpts) (*GmxMigratorSignalPendingActionIterator, error)
- func (_GmxMigrator *GmxMigratorFilterer) ParseClearAction(log types.Log) (*GmxMigratorClearAction, error)
- func (_GmxMigrator *GmxMigratorFilterer) ParseSignAction(log types.Log) (*GmxMigratorSignAction, error)
- func (_GmxMigrator *GmxMigratorFilterer) ParseSignalApprove(log types.Log) (*GmxMigratorSignalApprove, error)
- func (_GmxMigrator *GmxMigratorFilterer) ParseSignalPendingAction(log types.Log) (*GmxMigratorSignalPendingAction, error)
- func (_GmxMigrator *GmxMigratorFilterer) WatchClearAction(opts *bind.WatchOpts, sink chan<- *GmxMigratorClearAction) (event.Subscription, error)
- func (_GmxMigrator *GmxMigratorFilterer) WatchSignAction(opts *bind.WatchOpts, sink chan<- *GmxMigratorSignAction) (event.Subscription, error)
- func (_GmxMigrator *GmxMigratorFilterer) WatchSignalApprove(opts *bind.WatchOpts, sink chan<- *GmxMigratorSignalApprove) (event.Subscription, error)
- func (_GmxMigrator *GmxMigratorFilterer) WatchSignalPendingAction(opts *bind.WatchOpts, sink chan<- *GmxMigratorSignalPendingAction) (event.Subscription, error)
- type GmxMigratorRaw
- func (_GmxMigrator *GmxMigratorRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_GmxMigrator *GmxMigratorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type GmxMigratorSession
- func (_GmxMigrator *GmxMigratorSession) ActionsNonce() (*big.Int, error)
- func (_GmxMigrator *GmxMigratorSession) Admin() (common.Address, error)
- func (_GmxMigrator *GmxMigratorSession) AmmRouter() (common.Address, error)
- func (_GmxMigrator *GmxMigratorSession) Approve(_token common.Address, _spender common.Address, _amount *big.Int, ...) (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorSession) Caps(arg0 common.Address) (*big.Int, error)
- func (_GmxMigrator *GmxMigratorSession) EndMigration() (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorSession) GetIouToken(_token common.Address) (common.Address, error)
- func (_GmxMigrator *GmxMigratorSession) GetTokenAmounts(_tokens []common.Address) ([]*big.Int, error)
- func (_GmxMigrator *GmxMigratorSession) GetTokenPrice(_token common.Address) (*big.Int, error)
- func (_GmxMigrator *GmxMigratorSession) GmxPrice() (*big.Int, error)
- func (_GmxMigrator *GmxMigratorSession) HasMaxMigrationLimit() (bool, error)
- func (_GmxMigrator *GmxMigratorSession) Initialize(_ammRouter common.Address, _gmxPrice *big.Int, _signers []common.Address, ...) (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorSession) IouTokens(arg0 common.Address) (common.Address, error)
- func (_GmxMigrator *GmxMigratorSession) IsInitialized() (bool, error)
- func (_GmxMigrator *GmxMigratorSession) IsMigrationActive() (bool, error)
- func (_GmxMigrator *GmxMigratorSession) IsSigner(arg0 common.Address) (bool, error)
- func (_GmxMigrator *GmxMigratorSession) LpTokenAs(arg0 common.Address) (common.Address, error)
- func (_GmxMigrator *GmxMigratorSession) LpTokenBs(arg0 common.Address) (common.Address, error)
- func (_GmxMigrator *GmxMigratorSession) LpTokens(arg0 common.Address) (bool, error)
- func (_GmxMigrator *GmxMigratorSession) MaxMigrationAmounts(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_GmxMigrator *GmxMigratorSession) Migrate(_token common.Address, _tokenAmount *big.Int) (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorSession) MigratedAmounts(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_GmxMigrator *GmxMigratorSession) MinAuthorizations() (*big.Int, error)
- func (_GmxMigrator *GmxMigratorSession) PendingActions(arg0 [32]byte) (bool, error)
- func (_GmxMigrator *GmxMigratorSession) Prices(arg0 common.Address) (*big.Int, error)
- func (_GmxMigrator *GmxMigratorSession) SetHasMaxMigrationLimit(_hasMaxMigrationLimit bool) (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorSession) SetMaxMigrationAmount(_account common.Address, _token common.Address, _maxMigrationAmount *big.Int) (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorSession) SignApprove(_token common.Address, _spender common.Address, _amount *big.Int, ...) (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorSession) SignalApprove(_token common.Address, _spender common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorSession) SignedActions(arg0 common.Address, arg1 [32]byte) (bool, error)
- func (_GmxMigrator *GmxMigratorSession) Signers(arg0 *big.Int) (common.Address, error)
- func (_GmxMigrator *GmxMigratorSession) TokenAmounts(arg0 common.Address) (*big.Int, error)
- func (_GmxMigrator *GmxMigratorSession) WhitelistedTokens(arg0 common.Address) (bool, error)
- type GmxMigratorSignAction
- type GmxMigratorSignActionIterator
- type GmxMigratorSignalApprove
- type GmxMigratorSignalApproveIterator
- type GmxMigratorSignalPendingAction
- type GmxMigratorSignalPendingActionIterator
- type GmxMigratorTransactor
- func (_GmxMigrator *GmxMigratorTransactor) Approve(opts *bind.TransactOpts, _token common.Address, _spender common.Address, ...) (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorTransactor) EndMigration(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorTransactor) Initialize(opts *bind.TransactOpts, _ammRouter common.Address, _gmxPrice *big.Int, ...) (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorTransactor) Migrate(opts *bind.TransactOpts, _token common.Address, _tokenAmount *big.Int) (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorTransactor) SetHasMaxMigrationLimit(opts *bind.TransactOpts, _hasMaxMigrationLimit bool) (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorTransactor) SetMaxMigrationAmount(opts *bind.TransactOpts, _account common.Address, _token common.Address, ...) (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorTransactor) SignApprove(opts *bind.TransactOpts, _token common.Address, _spender common.Address, ...) (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorTransactor) SignalApprove(opts *bind.TransactOpts, _token common.Address, _spender common.Address, ...) (*types.Transaction, error)
- type GmxMigratorTransactorRaw
- type GmxMigratorTransactorSession
- func (_GmxMigrator *GmxMigratorTransactorSession) Approve(_token common.Address, _spender common.Address, _amount *big.Int, ...) (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorTransactorSession) EndMigration() (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorTransactorSession) Initialize(_ammRouter common.Address, _gmxPrice *big.Int, _signers []common.Address, ...) (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorTransactorSession) Migrate(_token common.Address, _tokenAmount *big.Int) (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorTransactorSession) SetHasMaxMigrationLimit(_hasMaxMigrationLimit bool) (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorTransactorSession) SetMaxMigrationAmount(_account common.Address, _token common.Address, _maxMigrationAmount *big.Int) (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorTransactorSession) SignApprove(_token common.Address, _spender common.Address, _amount *big.Int, ...) (*types.Transaction, error)
- func (_GmxMigrator *GmxMigratorTransactorSession) SignalApprove(_token common.Address, _spender common.Address, _amount *big.Int) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var GmxMigratorABI = GmxMigratorMetaData.ABI
GmxMigratorABI is the input ABI used to generate the binding from. Deprecated: Use GmxMigratorMetaData.ABI instead.
var GmxMigratorMetaData = &bind.MetaData{
ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_minAuthorizations\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"actionsNonce\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"admin\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"ammRouter\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"approve\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_spender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_nonce\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"caps\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"endMigration\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"getIouToken\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getTokenAmounts\",\"inputs\":[{\"name\":\"_tokens\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getTokenPrice\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"gmxPrice\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"hasMaxMigrationLimit\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"initialize\",\"inputs\":[{\"name\":\"_ammRouter\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_gmxPrice\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_signers\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"_whitelistedTokens\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"_iouTokens\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"_prices\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"},{\"name\":\"_caps\",\"type\":\"uint256[]\",\"internalType\":\"uint256[]\"},{\"name\":\"_lpTokens\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"_lpTokenAs\",\"type\":\"address[]\",\"internalType\":\"address[]\"},{\"name\":\"_lpTokenBs\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"iouTokens\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"isInitialized\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"isMigrationActive\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"isSigner\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"lpTokenAs\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"lpTokenBs\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"lpTokens\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"maxMigrationAmounts\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"migrate\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_tokenAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"migratedAmounts\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"minAuthorizations\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"pendingActions\",\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"prices\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"setHasMaxMigrationLimit\",\"inputs\":[{\"name\":\"_hasMaxMigrationLimit\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setMaxMigrationAmount\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_maxMigrationAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"signApprove\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_spender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_nonce\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"signalApprove\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_spender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"signedActions\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"signers\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"tokenAmounts\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"whitelistedTokens\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"event\",\"name\":\"ClearAction\",\"inputs\":[{\"name\":\"action\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"nonce\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SignAction\",\"inputs\":[{\"name\":\"action\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"nonce\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SignalApprove\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"spender\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"action\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"nonce\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SignalPendingAction\",\"inputs\":[{\"name\":\"action\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"nonce\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false}]",
}
GmxMigratorMetaData contains all meta data concerning the GmxMigrator contract.
Functions ¶
This section is empty.
Types ¶
type GmxMigrator ¶
type GmxMigrator struct { GmxMigratorCaller // Read-only binding to the contract GmxMigratorTransactor // Write-only binding to the contract GmxMigratorFilterer // Log filterer for contract events }
GmxMigrator is an auto generated Go binding around an Ethereum contract.
func NewGmxMigrator ¶
func NewGmxMigrator(address common.Address, backend bind.ContractBackend) (*GmxMigrator, error)
NewGmxMigrator creates a new instance of GmxMigrator, bound to a specific deployed contract.
type GmxMigratorCaller ¶
type GmxMigratorCaller struct {
// contains filtered or unexported fields
}
GmxMigratorCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewGmxMigratorCaller ¶
func NewGmxMigratorCaller(address common.Address, caller bind.ContractCaller) (*GmxMigratorCaller, error)
NewGmxMigratorCaller creates a new read-only instance of GmxMigrator, bound to a specific deployed contract.
func (*GmxMigratorCaller) ActionsNonce ¶
ActionsNonce is a free data retrieval call binding the contract method 0xa4c04bb7.
Solidity: function actionsNonce() view returns(uint256)
func (*GmxMigratorCaller) Admin ¶
Admin is a free data retrieval call binding the contract method 0xf851a440.
Solidity: function admin() view returns(address)
func (*GmxMigratorCaller) AmmRouter ¶
AmmRouter is a free data retrieval call binding the contract method 0x90b3c4e7.
Solidity: function ammRouter() view returns(address)
func (*GmxMigratorCaller) Caps ¶
func (_GmxMigrator *GmxMigratorCaller) Caps(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
Caps is a free data retrieval call binding the contract method 0x66d97b21.
Solidity: function caps(address ) view returns(uint256)
func (*GmxMigratorCaller) GetIouToken ¶
func (_GmxMigrator *GmxMigratorCaller) GetIouToken(opts *bind.CallOpts, _token common.Address) (common.Address, error)
GetIouToken is a free data retrieval call binding the contract method 0x7efdec32.
Solidity: function getIouToken(address _token) view returns(address)
func (*GmxMigratorCaller) GetTokenAmounts ¶
func (_GmxMigrator *GmxMigratorCaller) GetTokenAmounts(opts *bind.CallOpts, _tokens []common.Address) ([]*big.Int, error)
GetTokenAmounts is a free data retrieval call binding the contract method 0x7b0365a7.
Solidity: function getTokenAmounts(address[] _tokens) view returns(uint256[])
func (*GmxMigratorCaller) GetTokenPrice ¶
func (_GmxMigrator *GmxMigratorCaller) GetTokenPrice(opts *bind.CallOpts, _token common.Address) (*big.Int, error)
GetTokenPrice is a free data retrieval call binding the contract method 0xd02641a0.
Solidity: function getTokenPrice(address _token) view returns(uint256)
func (*GmxMigratorCaller) GmxPrice ¶
GmxPrice is a free data retrieval call binding the contract method 0xa9d878ee.
Solidity: function gmxPrice() view returns(uint256)
func (*GmxMigratorCaller) HasMaxMigrationLimit ¶
func (_GmxMigrator *GmxMigratorCaller) HasMaxMigrationLimit(opts *bind.CallOpts) (bool, error)
HasMaxMigrationLimit is a free data retrieval call binding the contract method 0x5183a7ca.
Solidity: function hasMaxMigrationLimit() view returns(bool)
func (*GmxMigratorCaller) IouTokens ¶
func (_GmxMigrator *GmxMigratorCaller) IouTokens(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
IouTokens is a free data retrieval call binding the contract method 0x41410d4a.
Solidity: function iouTokens(address ) view returns(address)
func (*GmxMigratorCaller) IsInitialized ¶
func (_GmxMigrator *GmxMigratorCaller) IsInitialized(opts *bind.CallOpts) (bool, error)
IsInitialized is a free data retrieval call binding the contract method 0x392e53cd.
Solidity: function isInitialized() view returns(bool)
func (*GmxMigratorCaller) IsMigrationActive ¶
func (_GmxMigrator *GmxMigratorCaller) IsMigrationActive(opts *bind.CallOpts) (bool, error)
IsMigrationActive is a free data retrieval call binding the contract method 0x0e913a6c.
Solidity: function isMigrationActive() view returns(bool)
func (*GmxMigratorCaller) IsSigner ¶
func (_GmxMigrator *GmxMigratorCaller) IsSigner(opts *bind.CallOpts, arg0 common.Address) (bool, error)
IsSigner is a free data retrieval call binding the contract method 0x7df73e27.
Solidity: function isSigner(address ) view returns(bool)
func (*GmxMigratorCaller) LpTokenAs ¶
func (_GmxMigrator *GmxMigratorCaller) LpTokenAs(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
LpTokenAs is a free data retrieval call binding the contract method 0x43b45f35.
Solidity: function lpTokenAs(address ) view returns(address)
func (*GmxMigratorCaller) LpTokenBs ¶
func (_GmxMigrator *GmxMigratorCaller) LpTokenBs(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
LpTokenBs is a free data retrieval call binding the contract method 0xe699e048.
Solidity: function lpTokenBs(address ) view returns(address)
func (*GmxMigratorCaller) LpTokens ¶
func (_GmxMigrator *GmxMigratorCaller) LpTokens(opts *bind.CallOpts, arg0 common.Address) (bool, error)
LpTokens is a free data retrieval call binding the contract method 0xb17b658d.
Solidity: function lpTokens(address ) view returns(bool)
func (*GmxMigratorCaller) MaxMigrationAmounts ¶
func (_GmxMigrator *GmxMigratorCaller) MaxMigrationAmounts(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
MaxMigrationAmounts is a free data retrieval call binding the contract method 0xceb6250e.
Solidity: function maxMigrationAmounts(address , address ) view returns(uint256)
func (*GmxMigratorCaller) MigratedAmounts ¶
func (_GmxMigrator *GmxMigratorCaller) MigratedAmounts(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
MigratedAmounts is a free data retrieval call binding the contract method 0xa758f6dd.
Solidity: function migratedAmounts(address , address ) view returns(uint256)
func (*GmxMigratorCaller) MinAuthorizations ¶
MinAuthorizations is a free data retrieval call binding the contract method 0x287800c9.
Solidity: function minAuthorizations() view returns(uint256)
func (*GmxMigratorCaller) PendingActions ¶
func (_GmxMigrator *GmxMigratorCaller) PendingActions(opts *bind.CallOpts, arg0 [32]byte) (bool, error)
PendingActions is a free data retrieval call binding the contract method 0xe30569e5.
Solidity: function pendingActions(bytes32 ) view returns(bool)
func (*GmxMigratorCaller) Prices ¶
func (_GmxMigrator *GmxMigratorCaller) Prices(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
Prices is a free data retrieval call binding the contract method 0xcfed246b.
Solidity: function prices(address ) view returns(uint256)
func (*GmxMigratorCaller) SignedActions ¶
func (_GmxMigrator *GmxMigratorCaller) SignedActions(opts *bind.CallOpts, arg0 common.Address, arg1 [32]byte) (bool, error)
SignedActions is a free data retrieval call binding the contract method 0x87c6d4f9.
Solidity: function signedActions(address , bytes32 ) view returns(bool)
func (*GmxMigratorCaller) Signers ¶
func (_GmxMigrator *GmxMigratorCaller) Signers(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
Signers is a free data retrieval call binding the contract method 0x2079fb9a.
Solidity: function signers(uint256 ) view returns(address)
func (*GmxMigratorCaller) TokenAmounts ¶
func (_GmxMigrator *GmxMigratorCaller) TokenAmounts(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
TokenAmounts is a free data retrieval call binding the contract method 0xa0e2e5f6.
Solidity: function tokenAmounts(address ) view returns(uint256)
func (*GmxMigratorCaller) WhitelistedTokens ¶
func (_GmxMigrator *GmxMigratorCaller) WhitelistedTokens(opts *bind.CallOpts, arg0 common.Address) (bool, error)
WhitelistedTokens is a free data retrieval call binding the contract method 0xdaf9c210.
Solidity: function whitelistedTokens(address ) view returns(bool)
type GmxMigratorCallerRaw ¶
type GmxMigratorCallerRaw struct {
Contract *GmxMigratorCaller // Generic read-only contract binding to access the raw methods on
}
GmxMigratorCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*GmxMigratorCallerRaw) Call ¶
func (_GmxMigrator *GmxMigratorCallerRaw) 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 GmxMigratorCallerSession ¶
type GmxMigratorCallerSession struct { Contract *GmxMigratorCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
GmxMigratorCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*GmxMigratorCallerSession) ActionsNonce ¶
func (_GmxMigrator *GmxMigratorCallerSession) ActionsNonce() (*big.Int, error)
ActionsNonce is a free data retrieval call binding the contract method 0xa4c04bb7.
Solidity: function actionsNonce() view returns(uint256)
func (*GmxMigratorCallerSession) Admin ¶
func (_GmxMigrator *GmxMigratorCallerSession) Admin() (common.Address, error)
Admin is a free data retrieval call binding the contract method 0xf851a440.
Solidity: function admin() view returns(address)
func (*GmxMigratorCallerSession) AmmRouter ¶
func (_GmxMigrator *GmxMigratorCallerSession) AmmRouter() (common.Address, error)
AmmRouter is a free data retrieval call binding the contract method 0x90b3c4e7.
Solidity: function ammRouter() view returns(address)
func (*GmxMigratorCallerSession) Caps ¶
Caps is a free data retrieval call binding the contract method 0x66d97b21.
Solidity: function caps(address ) view returns(uint256)
func (*GmxMigratorCallerSession) GetIouToken ¶
func (_GmxMigrator *GmxMigratorCallerSession) GetIouToken(_token common.Address) (common.Address, error)
GetIouToken is a free data retrieval call binding the contract method 0x7efdec32.
Solidity: function getIouToken(address _token) view returns(address)
func (*GmxMigratorCallerSession) GetTokenAmounts ¶
func (_GmxMigrator *GmxMigratorCallerSession) GetTokenAmounts(_tokens []common.Address) ([]*big.Int, error)
GetTokenAmounts is a free data retrieval call binding the contract method 0x7b0365a7.
Solidity: function getTokenAmounts(address[] _tokens) view returns(uint256[])
func (*GmxMigratorCallerSession) GetTokenPrice ¶
func (_GmxMigrator *GmxMigratorCallerSession) GetTokenPrice(_token common.Address) (*big.Int, error)
GetTokenPrice is a free data retrieval call binding the contract method 0xd02641a0.
Solidity: function getTokenPrice(address _token) view returns(uint256)
func (*GmxMigratorCallerSession) GmxPrice ¶
func (_GmxMigrator *GmxMigratorCallerSession) GmxPrice() (*big.Int, error)
GmxPrice is a free data retrieval call binding the contract method 0xa9d878ee.
Solidity: function gmxPrice() view returns(uint256)
func (*GmxMigratorCallerSession) HasMaxMigrationLimit ¶
func (_GmxMigrator *GmxMigratorCallerSession) HasMaxMigrationLimit() (bool, error)
HasMaxMigrationLimit is a free data retrieval call binding the contract method 0x5183a7ca.
Solidity: function hasMaxMigrationLimit() view returns(bool)
func (*GmxMigratorCallerSession) IouTokens ¶
func (_GmxMigrator *GmxMigratorCallerSession) IouTokens(arg0 common.Address) (common.Address, error)
IouTokens is a free data retrieval call binding the contract method 0x41410d4a.
Solidity: function iouTokens(address ) view returns(address)
func (*GmxMigratorCallerSession) IsInitialized ¶
func (_GmxMigrator *GmxMigratorCallerSession) IsInitialized() (bool, error)
IsInitialized is a free data retrieval call binding the contract method 0x392e53cd.
Solidity: function isInitialized() view returns(bool)
func (*GmxMigratorCallerSession) IsMigrationActive ¶
func (_GmxMigrator *GmxMigratorCallerSession) IsMigrationActive() (bool, error)
IsMigrationActive is a free data retrieval call binding the contract method 0x0e913a6c.
Solidity: function isMigrationActive() view returns(bool)
func (*GmxMigratorCallerSession) IsSigner ¶
func (_GmxMigrator *GmxMigratorCallerSession) IsSigner(arg0 common.Address) (bool, error)
IsSigner is a free data retrieval call binding the contract method 0x7df73e27.
Solidity: function isSigner(address ) view returns(bool)
func (*GmxMigratorCallerSession) LpTokenAs ¶
func (_GmxMigrator *GmxMigratorCallerSession) LpTokenAs(arg0 common.Address) (common.Address, error)
LpTokenAs is a free data retrieval call binding the contract method 0x43b45f35.
Solidity: function lpTokenAs(address ) view returns(address)
func (*GmxMigratorCallerSession) LpTokenBs ¶
func (_GmxMigrator *GmxMigratorCallerSession) LpTokenBs(arg0 common.Address) (common.Address, error)
LpTokenBs is a free data retrieval call binding the contract method 0xe699e048.
Solidity: function lpTokenBs(address ) view returns(address)
func (*GmxMigratorCallerSession) LpTokens ¶
func (_GmxMigrator *GmxMigratorCallerSession) LpTokens(arg0 common.Address) (bool, error)
LpTokens is a free data retrieval call binding the contract method 0xb17b658d.
Solidity: function lpTokens(address ) view returns(bool)
func (*GmxMigratorCallerSession) MaxMigrationAmounts ¶
func (_GmxMigrator *GmxMigratorCallerSession) MaxMigrationAmounts(arg0 common.Address, arg1 common.Address) (*big.Int, error)
MaxMigrationAmounts is a free data retrieval call binding the contract method 0xceb6250e.
Solidity: function maxMigrationAmounts(address , address ) view returns(uint256)
func (*GmxMigratorCallerSession) MigratedAmounts ¶
func (_GmxMigrator *GmxMigratorCallerSession) MigratedAmounts(arg0 common.Address, arg1 common.Address) (*big.Int, error)
MigratedAmounts is a free data retrieval call binding the contract method 0xa758f6dd.
Solidity: function migratedAmounts(address , address ) view returns(uint256)
func (*GmxMigratorCallerSession) MinAuthorizations ¶
func (_GmxMigrator *GmxMigratorCallerSession) MinAuthorizations() (*big.Int, error)
MinAuthorizations is a free data retrieval call binding the contract method 0x287800c9.
Solidity: function minAuthorizations() view returns(uint256)
func (*GmxMigratorCallerSession) PendingActions ¶
func (_GmxMigrator *GmxMigratorCallerSession) PendingActions(arg0 [32]byte) (bool, error)
PendingActions is a free data retrieval call binding the contract method 0xe30569e5.
Solidity: function pendingActions(bytes32 ) view returns(bool)
func (*GmxMigratorCallerSession) Prices ¶
Prices is a free data retrieval call binding the contract method 0xcfed246b.
Solidity: function prices(address ) view returns(uint256)
func (*GmxMigratorCallerSession) SignedActions ¶
func (_GmxMigrator *GmxMigratorCallerSession) SignedActions(arg0 common.Address, arg1 [32]byte) (bool, error)
SignedActions is a free data retrieval call binding the contract method 0x87c6d4f9.
Solidity: function signedActions(address , bytes32 ) view returns(bool)
func (*GmxMigratorCallerSession) Signers ¶
Signers is a free data retrieval call binding the contract method 0x2079fb9a.
Solidity: function signers(uint256 ) view returns(address)
func (*GmxMigratorCallerSession) TokenAmounts ¶
TokenAmounts is a free data retrieval call binding the contract method 0xa0e2e5f6.
Solidity: function tokenAmounts(address ) view returns(uint256)
func (*GmxMigratorCallerSession) WhitelistedTokens ¶
func (_GmxMigrator *GmxMigratorCallerSession) WhitelistedTokens(arg0 common.Address) (bool, error)
WhitelistedTokens is a free data retrieval call binding the contract method 0xdaf9c210.
Solidity: function whitelistedTokens(address ) view returns(bool)
type GmxMigratorClearAction ¶
type GmxMigratorClearAction struct { Action [32]byte Nonce *big.Int Raw types.Log // Blockchain specific contextual infos }
GmxMigratorClearAction represents a ClearAction event raised by the GmxMigrator contract.
type GmxMigratorClearActionIterator ¶
type GmxMigratorClearActionIterator struct { Event *GmxMigratorClearAction // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GmxMigratorClearActionIterator is returned from FilterClearAction and is used to iterate over the raw logs and unpacked data for ClearAction events raised by the GmxMigrator contract.
func (*GmxMigratorClearActionIterator) Close ¶
func (it *GmxMigratorClearActionIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GmxMigratorClearActionIterator) Error ¶
func (it *GmxMigratorClearActionIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GmxMigratorClearActionIterator) Next ¶
func (it *GmxMigratorClearActionIterator) 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 GmxMigratorFilterer ¶
type GmxMigratorFilterer struct {
// contains filtered or unexported fields
}
GmxMigratorFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewGmxMigratorFilterer ¶
func NewGmxMigratorFilterer(address common.Address, filterer bind.ContractFilterer) (*GmxMigratorFilterer, error)
NewGmxMigratorFilterer creates a new log filterer instance of GmxMigrator, bound to a specific deployed contract.
func (*GmxMigratorFilterer) FilterClearAction ¶
func (_GmxMigrator *GmxMigratorFilterer) FilterClearAction(opts *bind.FilterOpts) (*GmxMigratorClearActionIterator, error)
FilterClearAction is a free log retrieval operation binding the contract event 0xf4640d39061e643d9b802cb3725953405344555ad6dbb1cbdb0495f3eccb8e68.
Solidity: event ClearAction(bytes32 action, uint256 nonce)
func (*GmxMigratorFilterer) FilterSignAction ¶
func (_GmxMigrator *GmxMigratorFilterer) FilterSignAction(opts *bind.FilterOpts) (*GmxMigratorSignActionIterator, error)
FilterSignAction is a free log retrieval operation binding the contract event 0xaae28fe5531fe5dfb8d12409392ec67b50c825dd06233312cb6aeaddd16cbd22.
Solidity: event SignAction(bytes32 action, uint256 nonce)
func (*GmxMigratorFilterer) FilterSignalApprove ¶
func (_GmxMigrator *GmxMigratorFilterer) FilterSignalApprove(opts *bind.FilterOpts) (*GmxMigratorSignalApproveIterator, error)
FilterSignalApprove is a free log retrieval operation binding the contract event 0xc19251bf5f704ddc3d5babe6f4e5bde0dded20b19f7844716861821ab3163cd7.
Solidity: event SignalApprove(address token, address spender, uint256 amount, bytes32 action, uint256 nonce)
func (*GmxMigratorFilterer) FilterSignalPendingAction ¶
func (_GmxMigrator *GmxMigratorFilterer) FilterSignalPendingAction(opts *bind.FilterOpts) (*GmxMigratorSignalPendingActionIterator, error)
FilterSignalPendingAction is a free log retrieval operation binding the contract event 0x64df01c46eb530dc540770a0b88cc32f0b8c2b371a546ae0b13cc8ca6671fff9.
Solidity: event SignalPendingAction(bytes32 action, uint256 nonce)
func (*GmxMigratorFilterer) ParseClearAction ¶
func (_GmxMigrator *GmxMigratorFilterer) ParseClearAction(log types.Log) (*GmxMigratorClearAction, error)
ParseClearAction is a log parse operation binding the contract event 0xf4640d39061e643d9b802cb3725953405344555ad6dbb1cbdb0495f3eccb8e68.
Solidity: event ClearAction(bytes32 action, uint256 nonce)
func (*GmxMigratorFilterer) ParseSignAction ¶
func (_GmxMigrator *GmxMigratorFilterer) ParseSignAction(log types.Log) (*GmxMigratorSignAction, error)
ParseSignAction is a log parse operation binding the contract event 0xaae28fe5531fe5dfb8d12409392ec67b50c825dd06233312cb6aeaddd16cbd22.
Solidity: event SignAction(bytes32 action, uint256 nonce)
func (*GmxMigratorFilterer) ParseSignalApprove ¶
func (_GmxMigrator *GmxMigratorFilterer) ParseSignalApprove(log types.Log) (*GmxMigratorSignalApprove, error)
ParseSignalApprove is a log parse operation binding the contract event 0xc19251bf5f704ddc3d5babe6f4e5bde0dded20b19f7844716861821ab3163cd7.
Solidity: event SignalApprove(address token, address spender, uint256 amount, bytes32 action, uint256 nonce)
func (*GmxMigratorFilterer) ParseSignalPendingAction ¶
func (_GmxMigrator *GmxMigratorFilterer) ParseSignalPendingAction(log types.Log) (*GmxMigratorSignalPendingAction, error)
ParseSignalPendingAction is a log parse operation binding the contract event 0x64df01c46eb530dc540770a0b88cc32f0b8c2b371a546ae0b13cc8ca6671fff9.
Solidity: event SignalPendingAction(bytes32 action, uint256 nonce)
func (*GmxMigratorFilterer) WatchClearAction ¶
func (_GmxMigrator *GmxMigratorFilterer) WatchClearAction(opts *bind.WatchOpts, sink chan<- *GmxMigratorClearAction) (event.Subscription, error)
WatchClearAction is a free log subscription operation binding the contract event 0xf4640d39061e643d9b802cb3725953405344555ad6dbb1cbdb0495f3eccb8e68.
Solidity: event ClearAction(bytes32 action, uint256 nonce)
func (*GmxMigratorFilterer) WatchSignAction ¶
func (_GmxMigrator *GmxMigratorFilterer) WatchSignAction(opts *bind.WatchOpts, sink chan<- *GmxMigratorSignAction) (event.Subscription, error)
WatchSignAction is a free log subscription operation binding the contract event 0xaae28fe5531fe5dfb8d12409392ec67b50c825dd06233312cb6aeaddd16cbd22.
Solidity: event SignAction(bytes32 action, uint256 nonce)
func (*GmxMigratorFilterer) WatchSignalApprove ¶
func (_GmxMigrator *GmxMigratorFilterer) WatchSignalApprove(opts *bind.WatchOpts, sink chan<- *GmxMigratorSignalApprove) (event.Subscription, error)
WatchSignalApprove is a free log subscription operation binding the contract event 0xc19251bf5f704ddc3d5babe6f4e5bde0dded20b19f7844716861821ab3163cd7.
Solidity: event SignalApprove(address token, address spender, uint256 amount, bytes32 action, uint256 nonce)
func (*GmxMigratorFilterer) WatchSignalPendingAction ¶
func (_GmxMigrator *GmxMigratorFilterer) WatchSignalPendingAction(opts *bind.WatchOpts, sink chan<- *GmxMigratorSignalPendingAction) (event.Subscription, error)
WatchSignalPendingAction is a free log subscription operation binding the contract event 0x64df01c46eb530dc540770a0b88cc32f0b8c2b371a546ae0b13cc8ca6671fff9.
Solidity: event SignalPendingAction(bytes32 action, uint256 nonce)
type GmxMigratorRaw ¶
type GmxMigratorRaw struct {
Contract *GmxMigrator // Generic contract binding to access the raw methods on
}
GmxMigratorRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*GmxMigratorRaw) Call ¶
func (_GmxMigrator *GmxMigratorRaw) 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 (*GmxMigratorRaw) Transact ¶
func (_GmxMigrator *GmxMigratorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*GmxMigratorRaw) Transfer ¶
func (_GmxMigrator *GmxMigratorRaw) 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 GmxMigratorSession ¶
type GmxMigratorSession struct { Contract *GmxMigrator // 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 }
GmxMigratorSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*GmxMigratorSession) ActionsNonce ¶
func (_GmxMigrator *GmxMigratorSession) ActionsNonce() (*big.Int, error)
ActionsNonce is a free data retrieval call binding the contract method 0xa4c04bb7.
Solidity: function actionsNonce() view returns(uint256)
func (*GmxMigratorSession) Admin ¶
func (_GmxMigrator *GmxMigratorSession) Admin() (common.Address, error)
Admin is a free data retrieval call binding the contract method 0xf851a440.
Solidity: function admin() view returns(address)
func (*GmxMigratorSession) AmmRouter ¶
func (_GmxMigrator *GmxMigratorSession) AmmRouter() (common.Address, error)
AmmRouter is a free data retrieval call binding the contract method 0x90b3c4e7.
Solidity: function ammRouter() view returns(address)
func (*GmxMigratorSession) Approve ¶
func (_GmxMigrator *GmxMigratorSession) Approve(_token common.Address, _spender common.Address, _amount *big.Int, _nonce *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x4dc5ecb3.
Solidity: function approve(address _token, address _spender, uint256 _amount, uint256 _nonce) returns()
func (*GmxMigratorSession) Caps ¶
Caps is a free data retrieval call binding the contract method 0x66d97b21.
Solidity: function caps(address ) view returns(uint256)
func (*GmxMigratorSession) EndMigration ¶
func (_GmxMigrator *GmxMigratorSession) EndMigration() (*types.Transaction, error)
EndMigration is a paid mutator transaction binding the contract method 0x6c525d04.
Solidity: function endMigration() returns()
func (*GmxMigratorSession) GetIouToken ¶
GetIouToken is a free data retrieval call binding the contract method 0x7efdec32.
Solidity: function getIouToken(address _token) view returns(address)
func (*GmxMigratorSession) GetTokenAmounts ¶
func (_GmxMigrator *GmxMigratorSession) GetTokenAmounts(_tokens []common.Address) ([]*big.Int, error)
GetTokenAmounts is a free data retrieval call binding the contract method 0x7b0365a7.
Solidity: function getTokenAmounts(address[] _tokens) view returns(uint256[])
func (*GmxMigratorSession) GetTokenPrice ¶
GetTokenPrice is a free data retrieval call binding the contract method 0xd02641a0.
Solidity: function getTokenPrice(address _token) view returns(uint256)
func (*GmxMigratorSession) GmxPrice ¶
func (_GmxMigrator *GmxMigratorSession) GmxPrice() (*big.Int, error)
GmxPrice is a free data retrieval call binding the contract method 0xa9d878ee.
Solidity: function gmxPrice() view returns(uint256)
func (*GmxMigratorSession) HasMaxMigrationLimit ¶
func (_GmxMigrator *GmxMigratorSession) HasMaxMigrationLimit() (bool, error)
HasMaxMigrationLimit is a free data retrieval call binding the contract method 0x5183a7ca.
Solidity: function hasMaxMigrationLimit() view returns(bool)
func (*GmxMigratorSession) Initialize ¶
func (_GmxMigrator *GmxMigratorSession) Initialize(_ammRouter common.Address, _gmxPrice *big.Int, _signers []common.Address, _whitelistedTokens []common.Address, _iouTokens []common.Address, _prices []*big.Int, _caps []*big.Int, _lpTokens []common.Address, _lpTokenAs []common.Address, _lpTokenBs []common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x64d4b173.
Solidity: function initialize(address _ammRouter, uint256 _gmxPrice, address[] _signers, address[] _whitelistedTokens, address[] _iouTokens, uint256[] _prices, uint256[] _caps, address[] _lpTokens, address[] _lpTokenAs, address[] _lpTokenBs) returns()
func (*GmxMigratorSession) IouTokens ¶
IouTokens is a free data retrieval call binding the contract method 0x41410d4a.
Solidity: function iouTokens(address ) view returns(address)
func (*GmxMigratorSession) IsInitialized ¶
func (_GmxMigrator *GmxMigratorSession) IsInitialized() (bool, error)
IsInitialized is a free data retrieval call binding the contract method 0x392e53cd.
Solidity: function isInitialized() view returns(bool)
func (*GmxMigratorSession) IsMigrationActive ¶
func (_GmxMigrator *GmxMigratorSession) IsMigrationActive() (bool, error)
IsMigrationActive is a free data retrieval call binding the contract method 0x0e913a6c.
Solidity: function isMigrationActive() view returns(bool)
func (*GmxMigratorSession) IsSigner ¶
func (_GmxMigrator *GmxMigratorSession) IsSigner(arg0 common.Address) (bool, error)
IsSigner is a free data retrieval call binding the contract method 0x7df73e27.
Solidity: function isSigner(address ) view returns(bool)
func (*GmxMigratorSession) LpTokenAs ¶
LpTokenAs is a free data retrieval call binding the contract method 0x43b45f35.
Solidity: function lpTokenAs(address ) view returns(address)
func (*GmxMigratorSession) LpTokenBs ¶
LpTokenBs is a free data retrieval call binding the contract method 0xe699e048.
Solidity: function lpTokenBs(address ) view returns(address)
func (*GmxMigratorSession) LpTokens ¶
func (_GmxMigrator *GmxMigratorSession) LpTokens(arg0 common.Address) (bool, error)
LpTokens is a free data retrieval call binding the contract method 0xb17b658d.
Solidity: function lpTokens(address ) view returns(bool)
func (*GmxMigratorSession) MaxMigrationAmounts ¶
func (_GmxMigrator *GmxMigratorSession) MaxMigrationAmounts(arg0 common.Address, arg1 common.Address) (*big.Int, error)
MaxMigrationAmounts is a free data retrieval call binding the contract method 0xceb6250e.
Solidity: function maxMigrationAmounts(address , address ) view returns(uint256)
func (*GmxMigratorSession) Migrate ¶
func (_GmxMigrator *GmxMigratorSession) Migrate(_token common.Address, _tokenAmount *big.Int) (*types.Transaction, error)
Migrate is a paid mutator transaction binding the contract method 0xad68ebf7.
Solidity: function migrate(address _token, uint256 _tokenAmount) returns()
func (*GmxMigratorSession) MigratedAmounts ¶
func (_GmxMigrator *GmxMigratorSession) MigratedAmounts(arg0 common.Address, arg1 common.Address) (*big.Int, error)
MigratedAmounts is a free data retrieval call binding the contract method 0xa758f6dd.
Solidity: function migratedAmounts(address , address ) view returns(uint256)
func (*GmxMigratorSession) MinAuthorizations ¶
func (_GmxMigrator *GmxMigratorSession) MinAuthorizations() (*big.Int, error)
MinAuthorizations is a free data retrieval call binding the contract method 0x287800c9.
Solidity: function minAuthorizations() view returns(uint256)
func (*GmxMigratorSession) PendingActions ¶
func (_GmxMigrator *GmxMigratorSession) PendingActions(arg0 [32]byte) (bool, error)
PendingActions is a free data retrieval call binding the contract method 0xe30569e5.
Solidity: function pendingActions(bytes32 ) view returns(bool)
func (*GmxMigratorSession) Prices ¶
Prices is a free data retrieval call binding the contract method 0xcfed246b.
Solidity: function prices(address ) view returns(uint256)
func (*GmxMigratorSession) SetHasMaxMigrationLimit ¶
func (_GmxMigrator *GmxMigratorSession) SetHasMaxMigrationLimit(_hasMaxMigrationLimit bool) (*types.Transaction, error)
SetHasMaxMigrationLimit is a paid mutator transaction binding the contract method 0x0122f868.
Solidity: function setHasMaxMigrationLimit(bool _hasMaxMigrationLimit) returns()
func (*GmxMigratorSession) SetMaxMigrationAmount ¶
func (_GmxMigrator *GmxMigratorSession) SetMaxMigrationAmount(_account common.Address, _token common.Address, _maxMigrationAmount *big.Int) (*types.Transaction, error)
SetMaxMigrationAmount is a paid mutator transaction binding the contract method 0x91835527.
Solidity: function setMaxMigrationAmount(address _account, address _token, uint256 _maxMigrationAmount) returns()
func (*GmxMigratorSession) SignApprove ¶
func (_GmxMigrator *GmxMigratorSession) SignApprove(_token common.Address, _spender common.Address, _amount *big.Int, _nonce *big.Int) (*types.Transaction, error)
SignApprove is a paid mutator transaction binding the contract method 0xf52dc4f7.
Solidity: function signApprove(address _token, address _spender, uint256 _amount, uint256 _nonce) returns()
func (*GmxMigratorSession) SignalApprove ¶
func (_GmxMigrator *GmxMigratorSession) SignalApprove(_token common.Address, _spender common.Address, _amount *big.Int) (*types.Transaction, error)
SignalApprove is a paid mutator transaction binding the contract method 0xdce6e18d.
Solidity: function signalApprove(address _token, address _spender, uint256 _amount) returns()
func (*GmxMigratorSession) SignedActions ¶
func (_GmxMigrator *GmxMigratorSession) SignedActions(arg0 common.Address, arg1 [32]byte) (bool, error)
SignedActions is a free data retrieval call binding the contract method 0x87c6d4f9.
Solidity: function signedActions(address , bytes32 ) view returns(bool)
func (*GmxMigratorSession) Signers ¶
Signers is a free data retrieval call binding the contract method 0x2079fb9a.
Solidity: function signers(uint256 ) view returns(address)
func (*GmxMigratorSession) TokenAmounts ¶
TokenAmounts is a free data retrieval call binding the contract method 0xa0e2e5f6.
Solidity: function tokenAmounts(address ) view returns(uint256)
func (*GmxMigratorSession) WhitelistedTokens ¶
func (_GmxMigrator *GmxMigratorSession) WhitelistedTokens(arg0 common.Address) (bool, error)
WhitelistedTokens is a free data retrieval call binding the contract method 0xdaf9c210.
Solidity: function whitelistedTokens(address ) view returns(bool)
type GmxMigratorSignAction ¶
type GmxMigratorSignAction struct { Action [32]byte Nonce *big.Int Raw types.Log // Blockchain specific contextual infos }
GmxMigratorSignAction represents a SignAction event raised by the GmxMigrator contract.
type GmxMigratorSignActionIterator ¶
type GmxMigratorSignActionIterator struct { Event *GmxMigratorSignAction // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GmxMigratorSignActionIterator is returned from FilterSignAction and is used to iterate over the raw logs and unpacked data for SignAction events raised by the GmxMigrator contract.
func (*GmxMigratorSignActionIterator) Close ¶
func (it *GmxMigratorSignActionIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GmxMigratorSignActionIterator) Error ¶
func (it *GmxMigratorSignActionIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GmxMigratorSignActionIterator) Next ¶
func (it *GmxMigratorSignActionIterator) 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 GmxMigratorSignalApprove ¶
type GmxMigratorSignalApprove struct { Token common.Address Spender common.Address Amount *big.Int Action [32]byte Nonce *big.Int Raw types.Log // Blockchain specific contextual infos }
GmxMigratorSignalApprove represents a SignalApprove event raised by the GmxMigrator contract.
type GmxMigratorSignalApproveIterator ¶
type GmxMigratorSignalApproveIterator struct { Event *GmxMigratorSignalApprove // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GmxMigratorSignalApproveIterator is returned from FilterSignalApprove and is used to iterate over the raw logs and unpacked data for SignalApprove events raised by the GmxMigrator contract.
func (*GmxMigratorSignalApproveIterator) Close ¶
func (it *GmxMigratorSignalApproveIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GmxMigratorSignalApproveIterator) Error ¶
func (it *GmxMigratorSignalApproveIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GmxMigratorSignalApproveIterator) Next ¶
func (it *GmxMigratorSignalApproveIterator) 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 GmxMigratorSignalPendingAction ¶
type GmxMigratorSignalPendingAction struct { Action [32]byte Nonce *big.Int Raw types.Log // Blockchain specific contextual infos }
GmxMigratorSignalPendingAction represents a SignalPendingAction event raised by the GmxMigrator contract.
type GmxMigratorSignalPendingActionIterator ¶
type GmxMigratorSignalPendingActionIterator struct { Event *GmxMigratorSignalPendingAction // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GmxMigratorSignalPendingActionIterator is returned from FilterSignalPendingAction and is used to iterate over the raw logs and unpacked data for SignalPendingAction events raised by the GmxMigrator contract.
func (*GmxMigratorSignalPendingActionIterator) Close ¶
func (it *GmxMigratorSignalPendingActionIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GmxMigratorSignalPendingActionIterator) Error ¶
func (it *GmxMigratorSignalPendingActionIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GmxMigratorSignalPendingActionIterator) Next ¶
func (it *GmxMigratorSignalPendingActionIterator) 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 GmxMigratorTransactor ¶
type GmxMigratorTransactor struct {
// contains filtered or unexported fields
}
GmxMigratorTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewGmxMigratorTransactor ¶
func NewGmxMigratorTransactor(address common.Address, transactor bind.ContractTransactor) (*GmxMigratorTransactor, error)
NewGmxMigratorTransactor creates a new write-only instance of GmxMigrator, bound to a specific deployed contract.
func (*GmxMigratorTransactor) Approve ¶
func (_GmxMigrator *GmxMigratorTransactor) Approve(opts *bind.TransactOpts, _token common.Address, _spender common.Address, _amount *big.Int, _nonce *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x4dc5ecb3.
Solidity: function approve(address _token, address _spender, uint256 _amount, uint256 _nonce) returns()
func (*GmxMigratorTransactor) EndMigration ¶
func (_GmxMigrator *GmxMigratorTransactor) EndMigration(opts *bind.TransactOpts) (*types.Transaction, error)
EndMigration is a paid mutator transaction binding the contract method 0x6c525d04.
Solidity: function endMigration() returns()
func (*GmxMigratorTransactor) Initialize ¶
func (_GmxMigrator *GmxMigratorTransactor) Initialize(opts *bind.TransactOpts, _ammRouter common.Address, _gmxPrice *big.Int, _signers []common.Address, _whitelistedTokens []common.Address, _iouTokens []common.Address, _prices []*big.Int, _caps []*big.Int, _lpTokens []common.Address, _lpTokenAs []common.Address, _lpTokenBs []common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x64d4b173.
Solidity: function initialize(address _ammRouter, uint256 _gmxPrice, address[] _signers, address[] _whitelistedTokens, address[] _iouTokens, uint256[] _prices, uint256[] _caps, address[] _lpTokens, address[] _lpTokenAs, address[] _lpTokenBs) returns()
func (*GmxMigratorTransactor) Migrate ¶
func (_GmxMigrator *GmxMigratorTransactor) Migrate(opts *bind.TransactOpts, _token common.Address, _tokenAmount *big.Int) (*types.Transaction, error)
Migrate is a paid mutator transaction binding the contract method 0xad68ebf7.
Solidity: function migrate(address _token, uint256 _tokenAmount) returns()
func (*GmxMigratorTransactor) SetHasMaxMigrationLimit ¶
func (_GmxMigrator *GmxMigratorTransactor) SetHasMaxMigrationLimit(opts *bind.TransactOpts, _hasMaxMigrationLimit bool) (*types.Transaction, error)
SetHasMaxMigrationLimit is a paid mutator transaction binding the contract method 0x0122f868.
Solidity: function setHasMaxMigrationLimit(bool _hasMaxMigrationLimit) returns()
func (*GmxMigratorTransactor) SetMaxMigrationAmount ¶
func (_GmxMigrator *GmxMigratorTransactor) SetMaxMigrationAmount(opts *bind.TransactOpts, _account common.Address, _token common.Address, _maxMigrationAmount *big.Int) (*types.Transaction, error)
SetMaxMigrationAmount is a paid mutator transaction binding the contract method 0x91835527.
Solidity: function setMaxMigrationAmount(address _account, address _token, uint256 _maxMigrationAmount) returns()
func (*GmxMigratorTransactor) SignApprove ¶
func (_GmxMigrator *GmxMigratorTransactor) SignApprove(opts *bind.TransactOpts, _token common.Address, _spender common.Address, _amount *big.Int, _nonce *big.Int) (*types.Transaction, error)
SignApprove is a paid mutator transaction binding the contract method 0xf52dc4f7.
Solidity: function signApprove(address _token, address _spender, uint256 _amount, uint256 _nonce) returns()
func (*GmxMigratorTransactor) SignalApprove ¶
func (_GmxMigrator *GmxMigratorTransactor) SignalApprove(opts *bind.TransactOpts, _token common.Address, _spender common.Address, _amount *big.Int) (*types.Transaction, error)
SignalApprove is a paid mutator transaction binding the contract method 0xdce6e18d.
Solidity: function signalApprove(address _token, address _spender, uint256 _amount) returns()
type GmxMigratorTransactorRaw ¶
type GmxMigratorTransactorRaw struct {
Contract *GmxMigratorTransactor // Generic write-only contract binding to access the raw methods on
}
GmxMigratorTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*GmxMigratorTransactorRaw) Transact ¶
func (_GmxMigrator *GmxMigratorTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*GmxMigratorTransactorRaw) Transfer ¶
func (_GmxMigrator *GmxMigratorTransactorRaw) 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 GmxMigratorTransactorSession ¶
type GmxMigratorTransactorSession struct { Contract *GmxMigratorTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
GmxMigratorTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*GmxMigratorTransactorSession) Approve ¶
func (_GmxMigrator *GmxMigratorTransactorSession) Approve(_token common.Address, _spender common.Address, _amount *big.Int, _nonce *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x4dc5ecb3.
Solidity: function approve(address _token, address _spender, uint256 _amount, uint256 _nonce) returns()
func (*GmxMigratorTransactorSession) EndMigration ¶
func (_GmxMigrator *GmxMigratorTransactorSession) EndMigration() (*types.Transaction, error)
EndMigration is a paid mutator transaction binding the contract method 0x6c525d04.
Solidity: function endMigration() returns()
func (*GmxMigratorTransactorSession) Initialize ¶
func (_GmxMigrator *GmxMigratorTransactorSession) Initialize(_ammRouter common.Address, _gmxPrice *big.Int, _signers []common.Address, _whitelistedTokens []common.Address, _iouTokens []common.Address, _prices []*big.Int, _caps []*big.Int, _lpTokens []common.Address, _lpTokenAs []common.Address, _lpTokenBs []common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x64d4b173.
Solidity: function initialize(address _ammRouter, uint256 _gmxPrice, address[] _signers, address[] _whitelistedTokens, address[] _iouTokens, uint256[] _prices, uint256[] _caps, address[] _lpTokens, address[] _lpTokenAs, address[] _lpTokenBs) returns()
func (*GmxMigratorTransactorSession) Migrate ¶
func (_GmxMigrator *GmxMigratorTransactorSession) Migrate(_token common.Address, _tokenAmount *big.Int) (*types.Transaction, error)
Migrate is a paid mutator transaction binding the contract method 0xad68ebf7.
Solidity: function migrate(address _token, uint256 _tokenAmount) returns()
func (*GmxMigratorTransactorSession) SetHasMaxMigrationLimit ¶
func (_GmxMigrator *GmxMigratorTransactorSession) SetHasMaxMigrationLimit(_hasMaxMigrationLimit bool) (*types.Transaction, error)
SetHasMaxMigrationLimit is a paid mutator transaction binding the contract method 0x0122f868.
Solidity: function setHasMaxMigrationLimit(bool _hasMaxMigrationLimit) returns()
func (*GmxMigratorTransactorSession) SetMaxMigrationAmount ¶
func (_GmxMigrator *GmxMigratorTransactorSession) SetMaxMigrationAmount(_account common.Address, _token common.Address, _maxMigrationAmount *big.Int) (*types.Transaction, error)
SetMaxMigrationAmount is a paid mutator transaction binding the contract method 0x91835527.
Solidity: function setMaxMigrationAmount(address _account, address _token, uint256 _maxMigrationAmount) returns()
func (*GmxMigratorTransactorSession) SignApprove ¶
func (_GmxMigrator *GmxMigratorTransactorSession) SignApprove(_token common.Address, _spender common.Address, _amount *big.Int, _nonce *big.Int) (*types.Transaction, error)
SignApprove is a paid mutator transaction binding the contract method 0xf52dc4f7.
Solidity: function signApprove(address _token, address _spender, uint256 _amount, uint256 _nonce) returns()
func (*GmxMigratorTransactorSession) SignalApprove ¶
func (_GmxMigrator *GmxMigratorTransactorSession) SignalApprove(_token common.Address, _spender common.Address, _amount *big.Int) (*types.Transaction, error)
SignalApprove is a paid mutator transaction binding the contract method 0xdce6e18d.
Solidity: function signalApprove(address _token, address _spender, uint256 _amount) returns()