Versions in this module Expand all Collapse all v0 v0.0.1 Dec 9, 2023 Changes in this version + var GmxMigratorABI = GmxMigratorMetaData.ABI + var GmxMigratorMetaData = &bind.MetaData + type GmxMigrator struct + func NewGmxMigrator(address common.Address, backend bind.ContractBackend) (*GmxMigrator, error) + type GmxMigratorCaller struct + func NewGmxMigratorCaller(address common.Address, caller bind.ContractCaller) (*GmxMigratorCaller, error) + 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 struct + Contract *GmxMigratorCaller + func (_GmxMigrator *GmxMigratorCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type GmxMigratorCallerSession struct + CallOpts bind.CallOpts + Contract *GmxMigratorCaller + 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 struct + Action [32]byte + Nonce *big.Int + Raw types.Log + type GmxMigratorClearActionIterator struct + Event *GmxMigratorClearAction + func (it *GmxMigratorClearActionIterator) Close() error + func (it *GmxMigratorClearActionIterator) Error() error + func (it *GmxMigratorClearActionIterator) Next() bool + type GmxMigratorFilterer struct + func NewGmxMigratorFilterer(address common.Address, filterer bind.ContractFilterer) (*GmxMigratorFilterer, error) + 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 struct + Contract *GmxMigrator + 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 struct + CallOpts bind.CallOpts + Contract *GmxMigrator + TransactOpts bind.TransactOpts + 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 struct + Action [32]byte + Nonce *big.Int + Raw types.Log + type GmxMigratorSignActionIterator struct + Event *GmxMigratorSignAction + func (it *GmxMigratorSignActionIterator) Close() error + func (it *GmxMigratorSignActionIterator) Error() error + func (it *GmxMigratorSignActionIterator) Next() bool + type GmxMigratorSignalApprove struct + Action [32]byte + Amount *big.Int + Nonce *big.Int + Raw types.Log + Spender common.Address + Token common.Address + type GmxMigratorSignalApproveIterator struct + Event *GmxMigratorSignalApprove + func (it *GmxMigratorSignalApproveIterator) Close() error + func (it *GmxMigratorSignalApproveIterator) Error() error + func (it *GmxMigratorSignalApproveIterator) Next() bool + type GmxMigratorSignalPendingAction struct + Action [32]byte + Nonce *big.Int + Raw types.Log + type GmxMigratorSignalPendingActionIterator struct + Event *GmxMigratorSignalPendingAction + func (it *GmxMigratorSignalPendingActionIterator) Close() error + func (it *GmxMigratorSignalPendingActionIterator) Error() error + func (it *GmxMigratorSignalPendingActionIterator) Next() bool + type GmxMigratorTransactor struct + func NewGmxMigratorTransactor(address common.Address, transactor bind.ContractTransactor) (*GmxMigratorTransactor, error) + 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 struct + Contract *GmxMigratorTransactor + func (_GmxMigrator *GmxMigratorTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_GmxMigrator *GmxMigratorTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type GmxMigratorTransactorSession struct + Contract *GmxMigratorTransactor + TransactOpts bind.TransactOpts + 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)