Documentation
¶
Index ¶
- Variables
- type BridgeConfig
- type BridgeConfigCaller
- func (_BridgeConfig *BridgeConfigCaller) BRIDGEMANAGERROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_BridgeConfig *BridgeConfigCaller) CalculateSwapFee(opts *bind.CallOpts, tokenAddress common.Address, chainID *big.Int, ...) (*big.Int, error)
- func (_BridgeConfig *BridgeConfigCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_BridgeConfig *BridgeConfigCaller) GetAllTokenIDs(opts *bind.CallOpts) ([]string, error)
- func (_BridgeConfig *BridgeConfigCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)
- func (_BridgeConfig *BridgeConfigCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)
- func (_BridgeConfig *BridgeConfigCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)
- func (_BridgeConfig *BridgeConfigCaller) GetToken(opts *bind.CallOpts, tokenID string, chainID *big.Int) (BridgeConfigToken, error)
- func (_BridgeConfig *BridgeConfigCaller) GetToken0(opts *bind.CallOpts, tokenAddress common.Address, chainID *big.Int) (BridgeConfigToken, error)
- func (_BridgeConfig *BridgeConfigCaller) GetTokenID(opts *bind.CallOpts, tokenAddress common.Address, chainID *big.Int) (string, error)
- func (_BridgeConfig *BridgeConfigCaller) GetUnderlyingToken(opts *bind.CallOpts, tokenID string) (BridgeConfigToken, error)
- func (_BridgeConfig *BridgeConfigCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)
- func (_BridgeConfig *BridgeConfigCaller) HasUnderlyingToken(opts *bind.CallOpts, tokenID string) (bool, error)
- func (_BridgeConfig *BridgeConfigCaller) IsTokenIDExist(opts *bind.CallOpts, tokenID string) (bool, error)
- type BridgeConfigCallerRaw
- type BridgeConfigCallerSession
- func (_BridgeConfig *BridgeConfigCallerSession) BRIDGEMANAGERROLE() ([32]byte, error)
- func (_BridgeConfig *BridgeConfigCallerSession) CalculateSwapFee(tokenAddress common.Address, chainID *big.Int, amount *big.Int) (*big.Int, error)
- func (_BridgeConfig *BridgeConfigCallerSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_BridgeConfig *BridgeConfigCallerSession) GetAllTokenIDs() ([]string, error)
- func (_BridgeConfig *BridgeConfigCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_BridgeConfig *BridgeConfigCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
- func (_BridgeConfig *BridgeConfigCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (_BridgeConfig *BridgeConfigCallerSession) GetToken(tokenID string, chainID *big.Int) (BridgeConfigToken, error)
- func (_BridgeConfig *BridgeConfigCallerSession) GetToken0(tokenAddress common.Address, chainID *big.Int) (BridgeConfigToken, error)
- func (_BridgeConfig *BridgeConfigCallerSession) GetTokenID(tokenAddress common.Address, chainID *big.Int) (string, error)
- func (_BridgeConfig *BridgeConfigCallerSession) GetUnderlyingToken(tokenID string) (BridgeConfigToken, error)
- func (_BridgeConfig *BridgeConfigCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_BridgeConfig *BridgeConfigCallerSession) HasUnderlyingToken(tokenID string) (bool, error)
- func (_BridgeConfig *BridgeConfigCallerSession) IsTokenIDExist(tokenID string) (bool, error)
- type BridgeConfigFilterer
- func (_BridgeConfig *BridgeConfigFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, ...) (*BridgeConfigRoleAdminChangedIterator, error)
- func (_BridgeConfig *BridgeConfigFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*BridgeConfigRoleGrantedIterator, error)
- func (_BridgeConfig *BridgeConfigFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*BridgeConfigRoleRevokedIterator, error)
- func (_BridgeConfig *BridgeConfigFilterer) ParseRoleAdminChanged(log types.Log) (*BridgeConfigRoleAdminChanged, error)
- func (_BridgeConfig *BridgeConfigFilterer) ParseRoleGranted(log types.Log) (*BridgeConfigRoleGranted, error)
- func (_BridgeConfig *BridgeConfigFilterer) ParseRoleRevoked(log types.Log) (*BridgeConfigRoleRevoked, error)
- func (_BridgeConfig *BridgeConfigFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *BridgeConfigRoleAdminChanged, ...) (event.Subscription, error)
- func (_BridgeConfig *BridgeConfigFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *BridgeConfigRoleGranted, role [][32]byte, ...) (event.Subscription, error)
- func (_BridgeConfig *BridgeConfigFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *BridgeConfigRoleRevoked, role [][32]byte, ...) (event.Subscription, error)
- type BridgeConfigRaw
- func (_BridgeConfig *BridgeConfigRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_BridgeConfig *BridgeConfigRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_BridgeConfig *BridgeConfigRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type BridgeConfigRoleAdminChanged
- type BridgeConfigRoleAdminChangedIterator
- type BridgeConfigRoleGranted
- type BridgeConfigRoleGrantedIterator
- type BridgeConfigRoleRevoked
- type BridgeConfigRoleRevokedIterator
- type BridgeConfigSession
- func (_BridgeConfig *BridgeConfigSession) BRIDGEMANAGERROLE() ([32]byte, error)
- func (_BridgeConfig *BridgeConfigSession) CalculateSwapFee(tokenAddress common.Address, chainID *big.Int, amount *big.Int) (*big.Int, error)
- func (_BridgeConfig *BridgeConfigSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_BridgeConfig *BridgeConfigSession) GetAllTokenIDs() ([]string, error)
- func (_BridgeConfig *BridgeConfigSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_BridgeConfig *BridgeConfigSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
- func (_BridgeConfig *BridgeConfigSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (_BridgeConfig *BridgeConfigSession) GetToken(tokenID string, chainID *big.Int) (BridgeConfigToken, error)
- func (_BridgeConfig *BridgeConfigSession) GetToken0(tokenAddress common.Address, chainID *big.Int) (BridgeConfigToken, error)
- func (_BridgeConfig *BridgeConfigSession) GetTokenID(tokenAddress common.Address, chainID *big.Int) (string, error)
- func (_BridgeConfig *BridgeConfigSession) GetUnderlyingToken(tokenID string) (BridgeConfigToken, error)
- func (_BridgeConfig *BridgeConfigSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_BridgeConfig *BridgeConfigSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_BridgeConfig *BridgeConfigSession) HasUnderlyingToken(tokenID string) (bool, error)
- func (_BridgeConfig *BridgeConfigSession) IsTokenIDExist(tokenID string) (bool, error)
- func (_BridgeConfig *BridgeConfigSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_BridgeConfig *BridgeConfigSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_BridgeConfig *BridgeConfigSession) SetTokenConfig(tokenID string, chainID *big.Int, tokenAddress common.Address, ...) (*types.Transaction, error)
- type BridgeConfigToken
- type BridgeConfigTransactor
- func (_BridgeConfig *BridgeConfigTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_BridgeConfig *BridgeConfigTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_BridgeConfig *BridgeConfigTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_BridgeConfig *BridgeConfigTransactor) SetTokenConfig(opts *bind.TransactOpts, tokenID string, chainID *big.Int, ...) (*types.Transaction, error)
- type BridgeConfigTransactorRaw
- type BridgeConfigTransactorSession
- func (_BridgeConfig *BridgeConfigTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_BridgeConfig *BridgeConfigTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_BridgeConfig *BridgeConfigTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_BridgeConfig *BridgeConfigTransactorSession) SetTokenConfig(tokenID string, chainID *big.Int, tokenAddress common.Address, ...) (*types.Transaction, error)
- type BridgeZap
- type BridgeZapCaller
- func (_BridgeZap *BridgeZapCaller) BaseTokens(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
- func (_BridgeZap *BridgeZapCaller) CalculateTokenAmount(opts *bind.CallOpts, amounts []*big.Int, deposit bool) (*big.Int, error)
- func (_BridgeZap *BridgeZapCaller) WETHADDRESS(opts *bind.CallOpts) (common.Address, error)
- type BridgeZapCallerRaw
- type BridgeZapCallerSession
- type BridgeZapFilterer
- type BridgeZapRaw
- func (_BridgeZap *BridgeZapRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_BridgeZap *BridgeZapRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_BridgeZap *BridgeZapRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type BridgeZapSession
- func (_BridgeZap *BridgeZapSession) BaseTokens(arg0 *big.Int) (common.Address, error)
- func (_BridgeZap *BridgeZapSession) CalculateTokenAmount(amounts []*big.Int, deposit bool) (*big.Int, error)
- func (_BridgeZap *BridgeZapSession) Deposit(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
- func (_BridgeZap *BridgeZapSession) DepositAndSwap(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_BridgeZap *BridgeZapSession) DepositETH(to common.Address, chainId *big.Int, amount *big.Int) (*types.Transaction, error)
- func (_BridgeZap *BridgeZapSession) DepositETHAndSwap(to common.Address, chainId *big.Int, amount *big.Int, tokenIndexFrom uint8, ...) (*types.Transaction, error)
- func (_BridgeZap *BridgeZapSession) Redeem(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
- func (_BridgeZap *BridgeZapSession) WETHADDRESS() (common.Address, error)
- func (_BridgeZap *BridgeZapSession) ZapAndDeposit(to common.Address, chainId *big.Int, token common.Address, ...) (*types.Transaction, error)
- func (_BridgeZap *BridgeZapSession) ZapAndDepositAndSwap(to common.Address, chainId *big.Int, token common.Address, ...) (*types.Transaction, error)
- type BridgeZapTransactor
- func (_BridgeZap *BridgeZapTransactor) Deposit(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- func (_BridgeZap *BridgeZapTransactor) DepositAndSwap(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- func (_BridgeZap *BridgeZapTransactor) DepositETH(opts *bind.TransactOpts, to common.Address, chainId *big.Int, amount *big.Int) (*types.Transaction, error)
- func (_BridgeZap *BridgeZapTransactor) DepositETHAndSwap(opts *bind.TransactOpts, to common.Address, chainId *big.Int, amount *big.Int, ...) (*types.Transaction, error)
- func (_BridgeZap *BridgeZapTransactor) Redeem(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- func (_BridgeZap *BridgeZapTransactor) ZapAndDeposit(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- func (_BridgeZap *BridgeZapTransactor) ZapAndDepositAndSwap(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- type BridgeZapTransactorRaw
- type BridgeZapTransactorSession
- func (_BridgeZap *BridgeZapTransactorSession) Deposit(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
- func (_BridgeZap *BridgeZapTransactorSession) DepositAndSwap(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_BridgeZap *BridgeZapTransactorSession) DepositETH(to common.Address, chainId *big.Int, amount *big.Int) (*types.Transaction, error)
- func (_BridgeZap *BridgeZapTransactorSession) DepositETHAndSwap(to common.Address, chainId *big.Int, amount *big.Int, tokenIndexFrom uint8, ...) (*types.Transaction, error)
- func (_BridgeZap *BridgeZapTransactorSession) Redeem(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
- func (_BridgeZap *BridgeZapTransactorSession) ZapAndDeposit(to common.Address, chainId *big.Int, token common.Address, ...) (*types.Transaction, error)
- func (_BridgeZap *BridgeZapTransactorSession) ZapAndDepositAndSwap(to common.Address, chainId *big.Int, token common.Address, ...) (*types.Transaction, error)
- type L1BridgeZap
- type L1BridgeZapCaller
- func (_L1BridgeZap *L1BridgeZapCaller) BaseTokens(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
- func (_L1BridgeZap *L1BridgeZapCaller) CalculateRemoveLiquidityOneToken(opts *bind.CallOpts, tokenAmount *big.Int, tokenIndex uint8) (*big.Int, error)
- func (_L1BridgeZap *L1BridgeZapCaller) CalculateTokenAmount(opts *bind.CallOpts, amounts []*big.Int, deposit bool) (*big.Int, error)
- func (_L1BridgeZap *L1BridgeZapCaller) WETHADDRESS(opts *bind.CallOpts) (common.Address, error)
- type L1BridgeZapCallerRaw
- type L1BridgeZapCallerSession
- func (_L1BridgeZap *L1BridgeZapCallerSession) BaseTokens(arg0 *big.Int) (common.Address, error)
- func (_L1BridgeZap *L1BridgeZapCallerSession) CalculateRemoveLiquidityOneToken(tokenAmount *big.Int, tokenIndex uint8) (*big.Int, error)
- func (_L1BridgeZap *L1BridgeZapCallerSession) CalculateTokenAmount(amounts []*big.Int, deposit bool) (*big.Int, error)
- func (_L1BridgeZap *L1BridgeZapCallerSession) WETHADDRESS() (common.Address, error)
- type L1BridgeZapFilterer
- type L1BridgeZapRaw
- func (_L1BridgeZap *L1BridgeZapRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_L1BridgeZap *L1BridgeZapRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_L1BridgeZap *L1BridgeZapRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type L1BridgeZapSession
- func (_L1BridgeZap *L1BridgeZapSession) BaseTokens(arg0 *big.Int) (common.Address, error)
- func (_L1BridgeZap *L1BridgeZapSession) CalculateRemoveLiquidityOneToken(tokenAmount *big.Int, tokenIndex uint8) (*big.Int, error)
- func (_L1BridgeZap *L1BridgeZapSession) CalculateTokenAmount(amounts []*big.Int, deposit bool) (*big.Int, error)
- func (_L1BridgeZap *L1BridgeZapSession) Deposit(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
- func (_L1BridgeZap *L1BridgeZapSession) DepositAndSwap(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_L1BridgeZap *L1BridgeZapSession) DepositETH(to common.Address, chainId *big.Int, amount *big.Int) (*types.Transaction, error)
- func (_L1BridgeZap *L1BridgeZapSession) DepositETHAndSwap(to common.Address, chainId *big.Int, amount *big.Int, tokenIndexFrom uint8, ...) (*types.Transaction, error)
- func (_L1BridgeZap *L1BridgeZapSession) Redeem(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
- func (_L1BridgeZap *L1BridgeZapSession) WETHADDRESS() (common.Address, error)
- func (_L1BridgeZap *L1BridgeZapSession) ZapAndDeposit(to common.Address, chainId *big.Int, token common.Address, ...) (*types.Transaction, error)
- func (_L1BridgeZap *L1BridgeZapSession) ZapAndDepositAndSwap(to common.Address, chainId *big.Int, token common.Address, ...) (*types.Transaction, error)
- type L1BridgeZapTransactor
- func (_L1BridgeZap *L1BridgeZapTransactor) Deposit(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- func (_L1BridgeZap *L1BridgeZapTransactor) DepositAndSwap(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- func (_L1BridgeZap *L1BridgeZapTransactor) DepositETH(opts *bind.TransactOpts, to common.Address, chainId *big.Int, amount *big.Int) (*types.Transaction, error)
- func (_L1BridgeZap *L1BridgeZapTransactor) DepositETHAndSwap(opts *bind.TransactOpts, to common.Address, chainId *big.Int, amount *big.Int, ...) (*types.Transaction, error)
- func (_L1BridgeZap *L1BridgeZapTransactor) Redeem(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- func (_L1BridgeZap *L1BridgeZapTransactor) ZapAndDeposit(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- func (_L1BridgeZap *L1BridgeZapTransactor) ZapAndDepositAndSwap(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- type L1BridgeZapTransactorRaw
- type L1BridgeZapTransactorSession
- func (_L1BridgeZap *L1BridgeZapTransactorSession) Deposit(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
- func (_L1BridgeZap *L1BridgeZapTransactorSession) DepositAndSwap(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_L1BridgeZap *L1BridgeZapTransactorSession) DepositETH(to common.Address, chainId *big.Int, amount *big.Int) (*types.Transaction, error)
- func (_L1BridgeZap *L1BridgeZapTransactorSession) DepositETHAndSwap(to common.Address, chainId *big.Int, amount *big.Int, tokenIndexFrom uint8, ...) (*types.Transaction, error)
- func (_L1BridgeZap *L1BridgeZapTransactorSession) Redeem(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
- func (_L1BridgeZap *L1BridgeZapTransactorSession) ZapAndDeposit(to common.Address, chainId *big.Int, token common.Address, ...) (*types.Transaction, error)
- func (_L1BridgeZap *L1BridgeZapTransactorSession) ZapAndDepositAndSwap(to common.Address, chainId *big.Int, token common.Address, ...) (*types.Transaction, error)
- type L2BridgeZap
- type L2BridgeZapCaller
- func (_L2BridgeZap *L2BridgeZapCaller) CalculateSwap(opts *bind.CallOpts, token common.Address, tokenIndexFrom uint8, ...) (*big.Int, error)
- func (_L2BridgeZap *L2BridgeZapCaller) SwapMap(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
- func (_L2BridgeZap *L2BridgeZapCaller) SwapTokensMap(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (common.Address, error)
- func (_L2BridgeZap *L2BridgeZapCaller) WETHADDRESS(opts *bind.CallOpts) (common.Address, error)
- type L2BridgeZapCallerRaw
- type L2BridgeZapCallerSession
- func (_L2BridgeZap *L2BridgeZapCallerSession) CalculateSwap(token common.Address, tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int) (*big.Int, error)
- func (_L2BridgeZap *L2BridgeZapCallerSession) SwapMap(arg0 common.Address) (common.Address, error)
- func (_L2BridgeZap *L2BridgeZapCallerSession) SwapTokensMap(arg0 common.Address, arg1 *big.Int) (common.Address, error)
- func (_L2BridgeZap *L2BridgeZapCallerSession) WETHADDRESS() (common.Address, error)
- type L2BridgeZapFilterer
- type L2BridgeZapRaw
- func (_L2BridgeZap *L2BridgeZapRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_L2BridgeZap *L2BridgeZapRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type L2BridgeZapSession
- func (_L2BridgeZap *L2BridgeZapSession) CalculateSwap(token common.Address, tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int) (*big.Int, error)
- func (_L2BridgeZap *L2BridgeZapSession) Deposit(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapSession) Redeem(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapSession) RedeemAndRemove(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapSession) RedeemAndSwap(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapSession) SwapAndRedeem(to common.Address, chainId *big.Int, token common.Address, ...) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapSession) SwapAndRedeemAndRemove(to common.Address, chainId *big.Int, token common.Address, ...) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapSession) SwapAndRedeemAndSwap(to common.Address, chainId *big.Int, token common.Address, ...) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapSession) SwapETHAndRedeem(to common.Address, chainId *big.Int, token common.Address, ...) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapSession) SwapMap(arg0 common.Address) (common.Address, error)
- func (_L2BridgeZap *L2BridgeZapSession) SwapTokensMap(arg0 common.Address, arg1 *big.Int) (common.Address, error)
- func (_L2BridgeZap *L2BridgeZapSession) WETHADDRESS() (common.Address, error)
- type L2BridgeZapTransactor
- func (_L2BridgeZap *L2BridgeZapTransactor) Deposit(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapTransactor) Redeem(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapTransactor) RedeemAndRemove(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapTransactor) RedeemAndSwap(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapTransactor) SwapAndRedeem(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapTransactor) SwapAndRedeemAndRemove(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapTransactor) SwapAndRedeemAndSwap(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapTransactor) SwapETHAndRedeem(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- type L2BridgeZapTransactorRaw
- type L2BridgeZapTransactorSession
- func (_L2BridgeZap *L2BridgeZapTransactorSession) Deposit(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapTransactorSession) Redeem(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapTransactorSession) RedeemAndRemove(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapTransactorSession) RedeemAndSwap(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapTransactorSession) SwapAndRedeem(to common.Address, chainId *big.Int, token common.Address, ...) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapTransactorSession) SwapAndRedeemAndRemove(to common.Address, chainId *big.Int, token common.Address, ...) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapTransactorSession) SwapAndRedeemAndSwap(to common.Address, chainId *big.Int, token common.Address, ...) (*types.Transaction, error)
- func (_L2BridgeZap *L2BridgeZapTransactorSession) SwapETHAndRedeem(to common.Address, chainId *big.Int, token common.Address, ...) (*types.Transaction, error)
- type PoolConfig
- type PoolConfigCaller
- func (_PoolConfig *PoolConfigCaller) BRIDGEMANAGERROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_PoolConfig *PoolConfigCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_PoolConfig *PoolConfigCaller) GetPoolConfig(opts *bind.CallOpts, tokenAddress common.Address, chainID *big.Int) (Struct0, error)
- func (_PoolConfig *PoolConfigCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)
- func (_PoolConfig *PoolConfigCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)
- func (_PoolConfig *PoolConfigCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)
- func (_PoolConfig *PoolConfigCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)
- type PoolConfigCallerRaw
- type PoolConfigCallerSession
- func (_PoolConfig *PoolConfigCallerSession) BRIDGEMANAGERROLE() ([32]byte, error)
- func (_PoolConfig *PoolConfigCallerSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_PoolConfig *PoolConfigCallerSession) GetPoolConfig(tokenAddress common.Address, chainID *big.Int) (Struct0, error)
- func (_PoolConfig *PoolConfigCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_PoolConfig *PoolConfigCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
- func (_PoolConfig *PoolConfigCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (_PoolConfig *PoolConfigCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)
- type PoolConfigFilterer
- func (_PoolConfig *PoolConfigFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, ...) (*PoolConfigRoleAdminChangedIterator, error)
- func (_PoolConfig *PoolConfigFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*PoolConfigRoleGrantedIterator, error)
- func (_PoolConfig *PoolConfigFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*PoolConfigRoleRevokedIterator, error)
- func (_PoolConfig *PoolConfigFilterer) ParseRoleAdminChanged(log types.Log) (*PoolConfigRoleAdminChanged, error)
- func (_PoolConfig *PoolConfigFilterer) ParseRoleGranted(log types.Log) (*PoolConfigRoleGranted, error)
- func (_PoolConfig *PoolConfigFilterer) ParseRoleRevoked(log types.Log) (*PoolConfigRoleRevoked, error)
- func (_PoolConfig *PoolConfigFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *PoolConfigRoleAdminChanged, role [][32]byte, ...) (event.Subscription, error)
- func (_PoolConfig *PoolConfigFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *PoolConfigRoleGranted, role [][32]byte, ...) (event.Subscription, error)
- func (_PoolConfig *PoolConfigFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *PoolConfigRoleRevoked, role [][32]byte, ...) (event.Subscription, error)
- type PoolConfigRaw
- func (_PoolConfig *PoolConfigRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_PoolConfig *PoolConfigRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_PoolConfig *PoolConfigRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type PoolConfigRoleAdminChanged
- type PoolConfigRoleAdminChangedIterator
- type PoolConfigRoleGranted
- type PoolConfigRoleGrantedIterator
- type PoolConfigRoleRevoked
- type PoolConfigRoleRevokedIterator
- type PoolConfigSession
- func (_PoolConfig *PoolConfigSession) BRIDGEMANAGERROLE() ([32]byte, error)
- func (_PoolConfig *PoolConfigSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_PoolConfig *PoolConfigSession) GetPoolConfig(tokenAddress common.Address, chainID *big.Int) (Struct0, error)
- func (_PoolConfig *PoolConfigSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_PoolConfig *PoolConfigSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
- func (_PoolConfig *PoolConfigSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (_PoolConfig *PoolConfigSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_PoolConfig *PoolConfigSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_PoolConfig *PoolConfigSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_PoolConfig *PoolConfigSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_PoolConfig *PoolConfigSession) SetPoolConfig(tokenAddress common.Address, chainID *big.Int, poolAddress common.Address, ...) (*types.Transaction, error)
- type PoolConfigTransactor
- func (_PoolConfig *PoolConfigTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_PoolConfig *PoolConfigTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_PoolConfig *PoolConfigTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_PoolConfig *PoolConfigTransactor) SetPoolConfig(opts *bind.TransactOpts, tokenAddress common.Address, chainID *big.Int, ...) (*types.Transaction, error)
- type PoolConfigTransactorRaw
- type PoolConfigTransactorSession
- func (_PoolConfig *PoolConfigTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_PoolConfig *PoolConfigTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_PoolConfig *PoolConfigTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_PoolConfig *PoolConfigTransactorSession) SetPoolConfig(tokenAddress common.Address, chainID *big.Int, poolAddress common.Address, ...) (*types.Transaction, error)
- type Struct0
- type SynapseBridge
- type SynapseBridgeAdminChanged
- type SynapseBridgeAdminChangedIterator
- type SynapseBridgeCaller
- func (_SynapseBridge *SynapseBridgeCaller) BridgeVersion(opts *bind.CallOpts) (*big.Int, error)
- func (_SynapseBridge *SynapseBridgeCaller) ChainGasAmount(opts *bind.CallOpts) (*big.Int, error)
- func (_SynapseBridge *SynapseBridgeCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_SynapseBridge *SynapseBridgeCaller) GOVERNANCEROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_SynapseBridge *SynapseBridgeCaller) GetFeeBalance(opts *bind.CallOpts, tokenAddress common.Address) (*big.Int, error)
- func (_SynapseBridge *SynapseBridgeCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)
- func (_SynapseBridge *SynapseBridgeCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)
- func (_SynapseBridge *SynapseBridgeCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)
- func (_SynapseBridge *SynapseBridgeCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)
- func (_SynapseBridge *SynapseBridgeCaller) KappaExists(opts *bind.CallOpts, kappa [32]byte) (bool, error)
- func (_SynapseBridge *SynapseBridgeCaller) NODEGROUPROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_SynapseBridge *SynapseBridgeCaller) Paused(opts *bind.CallOpts) (bool, error)
- func (_SynapseBridge *SynapseBridgeCaller) StartBlockNumber(opts *bind.CallOpts) (*big.Int, error)
- func (_SynapseBridge *SynapseBridgeCaller) WETHADDRESS(opts *bind.CallOpts) (common.Address, error)
- type SynapseBridgeCallerRaw
- type SynapseBridgeCallerSession
- func (_SynapseBridge *SynapseBridgeCallerSession) BridgeVersion() (*big.Int, error)
- func (_SynapseBridge *SynapseBridgeCallerSession) ChainGasAmount() (*big.Int, error)
- func (_SynapseBridge *SynapseBridgeCallerSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_SynapseBridge *SynapseBridgeCallerSession) GOVERNANCEROLE() ([32]byte, error)
- func (_SynapseBridge *SynapseBridgeCallerSession) GetFeeBalance(tokenAddress common.Address) (*big.Int, error)
- func (_SynapseBridge *SynapseBridgeCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_SynapseBridge *SynapseBridgeCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
- func (_SynapseBridge *SynapseBridgeCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (_SynapseBridge *SynapseBridgeCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_SynapseBridge *SynapseBridgeCallerSession) KappaExists(kappa [32]byte) (bool, error)
- func (_SynapseBridge *SynapseBridgeCallerSession) NODEGROUPROLE() ([32]byte, error)
- func (_SynapseBridge *SynapseBridgeCallerSession) Paused() (bool, error)
- func (_SynapseBridge *SynapseBridgeCallerSession) StartBlockNumber() (*big.Int, error)
- func (_SynapseBridge *SynapseBridgeCallerSession) WETHADDRESS() (common.Address, error)
- type SynapseBridgeFilterer
- func (_SynapseBridge *SynapseBridgeFilterer) FilterAdminChanged(opts *bind.FilterOpts) (*SynapseBridgeAdminChangedIterator, error)
- func (_SynapseBridge *SynapseBridgeFilterer) FilterPaused(opts *bind.FilterOpts) (*SynapseBridgePausedIterator, error)
- func (_SynapseBridge *SynapseBridgeFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, ...) (*SynapseBridgeRoleAdminChangedIterator, error)
- func (_SynapseBridge *SynapseBridgeFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*SynapseBridgeRoleGrantedIterator, error)
- func (_SynapseBridge *SynapseBridgeFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*SynapseBridgeRoleRevokedIterator, error)
- func (_SynapseBridge *SynapseBridgeFilterer) FilterTokenDeposit(opts *bind.FilterOpts, to []common.Address) (*SynapseBridgeTokenDepositIterator, error)
- func (_SynapseBridge *SynapseBridgeFilterer) FilterTokenDepositAndSwap(opts *bind.FilterOpts, to []common.Address) (*SynapseBridgeTokenDepositAndSwapIterator, error)
- func (_SynapseBridge *SynapseBridgeFilterer) FilterTokenMint(opts *bind.FilterOpts, to []common.Address, kappa [][32]byte) (*SynapseBridgeTokenMintIterator, error)
- func (_SynapseBridge *SynapseBridgeFilterer) FilterTokenMintAndSwap(opts *bind.FilterOpts, to []common.Address, kappa [][32]byte) (*SynapseBridgeTokenMintAndSwapIterator, error)
- func (_SynapseBridge *SynapseBridgeFilterer) FilterTokenRedeem(opts *bind.FilterOpts, to []common.Address) (*SynapseBridgeTokenRedeemIterator, error)
- func (_SynapseBridge *SynapseBridgeFilterer) FilterTokenRedeemAndRemove(opts *bind.FilterOpts, to []common.Address) (*SynapseBridgeTokenRedeemAndRemoveIterator, error)
- func (_SynapseBridge *SynapseBridgeFilterer) FilterTokenRedeemAndSwap(opts *bind.FilterOpts, to []common.Address) (*SynapseBridgeTokenRedeemAndSwapIterator, error)
- func (_SynapseBridge *SynapseBridgeFilterer) FilterTokenWithdraw(opts *bind.FilterOpts, to []common.Address, kappa [][32]byte) (*SynapseBridgeTokenWithdrawIterator, error)
- func (_SynapseBridge *SynapseBridgeFilterer) FilterTokenWithdrawAndRemove(opts *bind.FilterOpts, to []common.Address, kappa [][32]byte) (*SynapseBridgeTokenWithdrawAndRemoveIterator, error)
- func (_SynapseBridge *SynapseBridgeFilterer) FilterUnpaused(opts *bind.FilterOpts) (*SynapseBridgeUnpausedIterator, error)
- func (_SynapseBridge *SynapseBridgeFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*SynapseBridgeUpgradedIterator, error)
- func (_SynapseBridge *SynapseBridgeFilterer) ParseAdminChanged(log types.Log) (*SynapseBridgeAdminChanged, error)
- func (_SynapseBridge *SynapseBridgeFilterer) ParsePaused(log types.Log) (*SynapseBridgePaused, error)
- func (_SynapseBridge *SynapseBridgeFilterer) ParseRoleAdminChanged(log types.Log) (*SynapseBridgeRoleAdminChanged, error)
- func (_SynapseBridge *SynapseBridgeFilterer) ParseRoleGranted(log types.Log) (*SynapseBridgeRoleGranted, error)
- func (_SynapseBridge *SynapseBridgeFilterer) ParseRoleRevoked(log types.Log) (*SynapseBridgeRoleRevoked, error)
- func (_SynapseBridge *SynapseBridgeFilterer) ParseTokenDeposit(log types.Log) (*SynapseBridgeTokenDeposit, error)
- func (_SynapseBridge *SynapseBridgeFilterer) ParseTokenDepositAndSwap(log types.Log) (*SynapseBridgeTokenDepositAndSwap, error)
- func (_SynapseBridge *SynapseBridgeFilterer) ParseTokenMint(log types.Log) (*SynapseBridgeTokenMint, error)
- func (_SynapseBridge *SynapseBridgeFilterer) ParseTokenMintAndSwap(log types.Log) (*SynapseBridgeTokenMintAndSwap, error)
- func (_SynapseBridge *SynapseBridgeFilterer) ParseTokenRedeem(log types.Log) (*SynapseBridgeTokenRedeem, error)
- func (_SynapseBridge *SynapseBridgeFilterer) ParseTokenRedeemAndRemove(log types.Log) (*SynapseBridgeTokenRedeemAndRemove, error)
- func (_SynapseBridge *SynapseBridgeFilterer) ParseTokenRedeemAndSwap(log types.Log) (*SynapseBridgeTokenRedeemAndSwap, error)
- func (_SynapseBridge *SynapseBridgeFilterer) ParseTokenWithdraw(log types.Log) (*SynapseBridgeTokenWithdraw, error)
- func (_SynapseBridge *SynapseBridgeFilterer) ParseTokenWithdrawAndRemove(log types.Log) (*SynapseBridgeTokenWithdrawAndRemove, error)
- func (_SynapseBridge *SynapseBridgeFilterer) ParseUnpaused(log types.Log) (*SynapseBridgeUnpaused, error)
- func (_SynapseBridge *SynapseBridgeFilterer) ParseUpgraded(log types.Log) (*SynapseBridgeUpgraded, error)
- func (_SynapseBridge *SynapseBridgeFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *SynapseBridgeAdminChanged) (event.Subscription, error)
- func (_SynapseBridge *SynapseBridgeFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *SynapseBridgePaused) (event.Subscription, error)
- func (_SynapseBridge *SynapseBridgeFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *SynapseBridgeRoleAdminChanged, ...) (event.Subscription, error)
- func (_SynapseBridge *SynapseBridgeFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *SynapseBridgeRoleGranted, role [][32]byte, ...) (event.Subscription, error)
- func (_SynapseBridge *SynapseBridgeFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *SynapseBridgeRoleRevoked, role [][32]byte, ...) (event.Subscription, error)
- func (_SynapseBridge *SynapseBridgeFilterer) WatchTokenDeposit(opts *bind.WatchOpts, sink chan<- *SynapseBridgeTokenDeposit, ...) (event.Subscription, error)
- func (_SynapseBridge *SynapseBridgeFilterer) WatchTokenDepositAndSwap(opts *bind.WatchOpts, sink chan<- *SynapseBridgeTokenDepositAndSwap, ...) (event.Subscription, error)
- func (_SynapseBridge *SynapseBridgeFilterer) WatchTokenMint(opts *bind.WatchOpts, sink chan<- *SynapseBridgeTokenMint, to []common.Address, ...) (event.Subscription, error)
- func (_SynapseBridge *SynapseBridgeFilterer) WatchTokenMintAndSwap(opts *bind.WatchOpts, sink chan<- *SynapseBridgeTokenMintAndSwap, ...) (event.Subscription, error)
- func (_SynapseBridge *SynapseBridgeFilterer) WatchTokenRedeem(opts *bind.WatchOpts, sink chan<- *SynapseBridgeTokenRedeem, ...) (event.Subscription, error)
- func (_SynapseBridge *SynapseBridgeFilterer) WatchTokenRedeemAndRemove(opts *bind.WatchOpts, sink chan<- *SynapseBridgeTokenRedeemAndRemove, ...) (event.Subscription, error)
- func (_SynapseBridge *SynapseBridgeFilterer) WatchTokenRedeemAndSwap(opts *bind.WatchOpts, sink chan<- *SynapseBridgeTokenRedeemAndSwap, ...) (event.Subscription, error)
- func (_SynapseBridge *SynapseBridgeFilterer) WatchTokenWithdraw(opts *bind.WatchOpts, sink chan<- *SynapseBridgeTokenWithdraw, ...) (event.Subscription, error)
- func (_SynapseBridge *SynapseBridgeFilterer) WatchTokenWithdrawAndRemove(opts *bind.WatchOpts, sink chan<- *SynapseBridgeTokenWithdrawAndRemove, ...) (event.Subscription, error)
- func (_SynapseBridge *SynapseBridgeFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *SynapseBridgeUnpaused) (event.Subscription, error)
- func (_SynapseBridge *SynapseBridgeFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *SynapseBridgeUpgraded, ...) (event.Subscription, error)
- type SynapseBridgePaused
- type SynapseBridgePausedIterator
- type SynapseBridgeRaw
- func (_SynapseBridge *SynapseBridgeRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_SynapseBridge *SynapseBridgeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type SynapseBridgeRoleAdminChanged
- type SynapseBridgeRoleAdminChangedIterator
- type SynapseBridgeRoleGranted
- type SynapseBridgeRoleGrantedIterator
- type SynapseBridgeRoleRevoked
- type SynapseBridgeRoleRevokedIterator
- type SynapseBridgeSession
- func (_SynapseBridge *SynapseBridgeSession) Admin() (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) BridgeVersion() (*big.Int, error)
- func (_SynapseBridge *SynapseBridgeSession) ChainGasAmount() (*big.Int, error)
- func (_SynapseBridge *SynapseBridgeSession) ChangeAdmin(newAdmin common.Address) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_SynapseBridge *SynapseBridgeSession) Deposit(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) DepositAndSwap(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) Fallback(calldata []byte) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) GOVERNANCEROLE() ([32]byte, error)
- func (_SynapseBridge *SynapseBridgeSession) GetFeeBalance(tokenAddress common.Address) (*big.Int, error)
- func (_SynapseBridge *SynapseBridgeSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_SynapseBridge *SynapseBridgeSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
- func (_SynapseBridge *SynapseBridgeSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (_SynapseBridge *SynapseBridgeSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_SynapseBridge *SynapseBridgeSession) Implementation() (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) Initialize() (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) KappaExists(kappa [32]byte) (bool, error)
- func (_SynapseBridge *SynapseBridgeSession) Mint(to common.Address, token common.Address, amount *big.Int, fee *big.Int, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) MintAndSwap(to common.Address, token common.Address, amount *big.Int, fee *big.Int, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) NODEGROUPROLE() ([32]byte, error)
- func (_SynapseBridge *SynapseBridgeSession) Pause() (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) Paused() (bool, error)
- func (_SynapseBridge *SynapseBridgeSession) Receive() (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) Redeem(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) RedeemAndRemove(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) RedeemAndSwap(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) SetChainGasAmount(amount *big.Int) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) SetWethAddress(_wethAddress common.Address) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) StartBlockNumber() (*big.Int, error)
- func (_SynapseBridge *SynapseBridgeSession) Unpause() (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) WETHADDRESS() (common.Address, error)
- func (_SynapseBridge *SynapseBridgeSession) Withdraw(to common.Address, token common.Address, amount *big.Int, fee *big.Int, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) WithdrawAndRemove(to common.Address, token common.Address, amount *big.Int, fee *big.Int, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeSession) WithdrawFees(token common.Address, to common.Address) (*types.Transaction, error)
- type SynapseBridgeTokenDeposit
- type SynapseBridgeTokenDepositAndSwap
- type SynapseBridgeTokenDepositAndSwapIterator
- type SynapseBridgeTokenDepositIterator
- type SynapseBridgeTokenMint
- type SynapseBridgeTokenMintAndSwap
- type SynapseBridgeTokenMintAndSwapIterator
- type SynapseBridgeTokenMintIterator
- type SynapseBridgeTokenRedeem
- type SynapseBridgeTokenRedeemAndRemove
- type SynapseBridgeTokenRedeemAndRemoveIterator
- type SynapseBridgeTokenRedeemAndSwap
- type SynapseBridgeTokenRedeemAndSwapIterator
- type SynapseBridgeTokenRedeemIterator
- type SynapseBridgeTokenWithdraw
- type SynapseBridgeTokenWithdrawAndRemove
- type SynapseBridgeTokenWithdrawAndRemoveIterator
- type SynapseBridgeTokenWithdrawIterator
- type SynapseBridgeTransactor
- func (_SynapseBridge *SynapseBridgeTransactor) Admin(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) ChangeAdmin(opts *bind.TransactOpts, newAdmin common.Address) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) Deposit(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) DepositAndSwap(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) Implementation(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) Initialize(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) Mint(opts *bind.TransactOpts, to common.Address, token common.Address, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) MintAndSwap(opts *bind.TransactOpts, to common.Address, token common.Address, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) Redeem(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) RedeemAndRemove(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) RedeemAndSwap(opts *bind.TransactOpts, to common.Address, chainId *big.Int, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) SetChainGasAmount(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) SetWethAddress(opts *bind.TransactOpts, _wethAddress common.Address) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) UpgradeToAndCall(opts *bind.TransactOpts, newImplementation common.Address, data []byte) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) Withdraw(opts *bind.TransactOpts, to common.Address, token common.Address, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) WithdrawAndRemove(opts *bind.TransactOpts, to common.Address, token common.Address, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactor) WithdrawFees(opts *bind.TransactOpts, token common.Address, to common.Address) (*types.Transaction, error)
- type SynapseBridgeTransactorRaw
- type SynapseBridgeTransactorSession
- func (_SynapseBridge *SynapseBridgeTransactorSession) Admin() (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) ChangeAdmin(newAdmin common.Address) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) Deposit(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) DepositAndSwap(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) Implementation() (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) Initialize() (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) Mint(to common.Address, token common.Address, amount *big.Int, fee *big.Int, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) MintAndSwap(to common.Address, token common.Address, amount *big.Int, fee *big.Int, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) Pause() (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) Receive() (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) Redeem(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) RedeemAndRemove(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) RedeemAndSwap(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) SetChainGasAmount(amount *big.Int) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) SetWethAddress(_wethAddress common.Address) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) Unpause() (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) Withdraw(to common.Address, token common.Address, amount *big.Int, fee *big.Int, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) WithdrawAndRemove(to common.Address, token common.Address, amount *big.Int, fee *big.Int, ...) (*types.Transaction, error)
- func (_SynapseBridge *SynapseBridgeTransactorSession) WithdrawFees(token common.Address, to common.Address) (*types.Transaction, error)
- type SynapseBridgeUnpaused
- type SynapseBridgeUnpausedIterator
- type SynapseBridgeUpgraded
- type SynapseBridgeUpgradedIterator
Constants ¶
This section is empty.
Variables ¶
var BridgeConfigABI = BridgeConfigMetaData.ABI
BridgeConfigABI is the input ABI used to generate the binding from. Deprecated: Use BridgeConfigMetaData.ABI instead.
var BridgeConfigMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"BRIDGEMANAGER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"calculateSwapFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAllTokenIDs\",\"outputs\":[{\"internalType\":\"string[]\",\"name\":\"result\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getRoleMember\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleMemberCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"tokenID\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"}],\"name\":\"getToken\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"tokenDecimals\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"maxSwap\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minSwap\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"swapFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSwapFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minSwapFee\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"hasUnderlying\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isUnderlying\",\"type\":\"bool\"}],\"internalType\":\"structBridgeConfig.Token\",\"name\":\"token\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"}],\"name\":\"getToken\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"tokenDecimals\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"maxSwap\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minSwap\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"swapFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSwapFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minSwapFee\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"hasUnderlying\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isUnderlying\",\"type\":\"bool\"}],\"internalType\":\"structBridgeConfig.Token\",\"name\":\"token\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"}],\"name\":\"getTokenID\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"tokenID\",\"type\":\"string\"}],\"name\":\"getUnderlyingToken\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"tokenDecimals\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"maxSwap\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minSwap\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"swapFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSwapFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minSwapFee\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"hasUnderlying\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isUnderlying\",\"type\":\"bool\"}],\"internalType\":\"structBridgeConfig.Token\",\"name\":\"token\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"tokenID\",\"type\":\"string\"}],\"name\":\"hasUnderlyingToken\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"tokenID\",\"type\":\"string\"}],\"name\":\"isTokenIDExist\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"tokenID\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"tokenDecimals\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"maxSwap\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minSwap\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"swapFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSwapFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minSwapFee\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"hasUnderlying\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isUnderlying\",\"type\":\"bool\"}],\"name\":\"setTokenConfig\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
BridgeConfigMetaData contains all meta data concerning the BridgeConfig contract.
var BridgeZapABI = BridgeZapMetaData.ABI
BridgeZapABI is the input ABI used to generate the binding from. Deprecated: Use BridgeZapMetaData.ABI instead.
var BridgeZapMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"addresspayable\",\"name\":\"_wethAddress\",\"type\":\"address\"},{\"internalType\":\"contractISwap\",\"name\":\"_baseSwap\",\"type\":\"address\"},{\"internalType\":\"contractISynapseBridge\",\"name\":\"_synapseBridge\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"WETH_ADDRESS\",\"outputs\":[{\"internalType\":\"addresspayable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"baseTokens\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bool\",\"name\":\"deposit\",\"type\":\"bool\"}],\"name\":\"calculateTokenAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexFrom\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexTo\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"minDy\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"depositAndSwap\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"depositETH\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexFrom\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexTo\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"minDy\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"depositETHAndSwap\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"redeem\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"liquidityAmounts\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"minToMint\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"zapAndDeposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"liquidityAmounts\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"minToMint\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liqDeadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexFrom\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexTo\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"minDy\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"swapDeadline\",\"type\":\"uint256\"}],\"name\":\"zapAndDepositAndSwap\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
BridgeZapMetaData contains all meta data concerning the BridgeZap contract.
var L1BridgeZapABI = L1BridgeZapMetaData.ABI
L1BridgeZapABI is the input ABI used to generate the binding from. Deprecated: Use L1BridgeZapMetaData.ABI instead.
var L1BridgeZapMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"addresspayable\",\"name\":\"_wethAddress\",\"type\":\"address\"},{\"internalType\":\"contractISwap\",\"name\":\"_baseSwap\",\"type\":\"address\"},{\"internalType\":\"contractISynapseBridge\",\"name\":\"_synapseBridge\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"WETH_ADDRESS\",\"outputs\":[{\"internalType\":\"addresspayable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"baseTokens\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndex\",\"type\":\"uint8\"}],\"name\":\"calculateRemoveLiquidityOneToken\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"availableTokenAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bool\",\"name\":\"deposit\",\"type\":\"bool\"}],\"name\":\"calculateTokenAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexFrom\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexTo\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"minDy\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"depositAndSwap\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"depositETH\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexFrom\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexTo\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"minDy\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"depositETHAndSwap\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"redeem\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"liquidityAmounts\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"minToMint\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"zapAndDeposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"liquidityAmounts\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"minToMint\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liqDeadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexFrom\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexTo\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"minDy\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"swapDeadline\",\"type\":\"uint256\"}],\"name\":\"zapAndDepositAndSwap\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
L1BridgeZapMetaData contains all meta data concerning the L1BridgeZap contract.
var L2BridgeZapABI = L2BridgeZapMetaData.ABI
L2BridgeZapABI is the input ABI used to generate the binding from. Deprecated: Use L2BridgeZapMetaData.ABI instead.
var L2BridgeZapMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"addresspayable\",\"name\":\"_wethAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_swapOne\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOne\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_swapTwo\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenTwo\",\"type\":\"address\"},{\"internalType\":\"contractISynapseBridge\",\"name\":\"_synapseBridge\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"WETH_ADDRESS\",\"outputs\":[{\"internalType\":\"addresspayable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexFrom\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexTo\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"dx\",\"type\":\"uint256\"}],\"name\":\"calculateSwap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"redeem\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"liqTokenIndex\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"liqMinAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liqDeadline\",\"type\":\"uint256\"}],\"name\":\"redeemAndRemove\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexFrom\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexTo\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"minDy\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"redeemAndSwap\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexFrom\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexTo\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"dx\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minDy\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapAndRedeem\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexFrom\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexTo\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"dx\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minDy\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"liqTokenIndex\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"liqMinAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liqDeadline\",\"type\":\"uint256\"}],\"name\":\"swapAndRedeemAndRemove\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexFrom\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexTo\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"dx\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minDy\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"swapTokenIndexFrom\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"swapTokenIndexTo\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"swapMinDy\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"swapDeadline\",\"type\":\"uint256\"}],\"name\":\"swapAndRedeemAndSwap\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexFrom\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexTo\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"dx\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minDy\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapETHAndRedeem\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"swapMap\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"swapTokensMap\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
L2BridgeZapMetaData contains all meta data concerning the L2BridgeZap contract.
var PoolConfigABI = PoolConfigMetaData.ABI
PoolConfigABI is the input ABI used to generate the binding from. Deprecated: Use PoolConfigMetaData.ABI instead.
var PoolConfigMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"BRIDGEMANAGER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"}],\"name\":\"getPoolConfig\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"poolAddress\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"metaswap\",\"type\":\"bool\"}],\"internalType\":\"structPoolConfig.Pool\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getRoleMember\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleMemberCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"poolAddress\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"metaswap\",\"type\":\"bool\"}],\"name\":\"setPoolConfig\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"poolAddress\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"metaswap\",\"type\":\"bool\"}],\"internalType\":\"structPoolConfig.Pool\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
PoolConfigMetaData contains all meta data concerning the PoolConfig contract.
var SynapseBridgeABI = SynapseBridgeMetaData.ABI
SynapseBridgeABI is the input ABI used to generate the binding from. Deprecated: Use SynapseBridgeMetaData.ABI instead.
var SynapseBridgeMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"inputs\":[],\"name\":\"admin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"changeAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"implementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"TokenDeposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"tokenIndexFrom\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"tokenIndexTo\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minDy\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"TokenDepositAndSwap\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"contractIERC20Mintable\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"kappa\",\"type\":\"bytes32\"}],\"name\":\"TokenMint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"contractIERC20Mintable\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"tokenIndexFrom\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"tokenIndexTo\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minDy\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"swapSuccess\",\"type\":\"bool\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"kappa\",\"type\":\"bytes32\"}],\"name\":\"TokenMintAndSwap\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"TokenRedeem\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"swapTokenIndex\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"swapMinAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"swapDeadline\",\"type\":\"uint256\"}],\"name\":\"TokenRedeemAndRemove\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"tokenIndexFrom\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"tokenIndexTo\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"minDy\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"TokenRedeemAndSwap\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"kappa\",\"type\":\"bytes32\"}],\"name\":\"TokenWithdraw\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"swapTokenIndex\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"swapMinAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"swapDeadline\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"swapSuccess\",\"type\":\"bool\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"kappa\",\"type\":\"bytes32\"}],\"name\":\"TokenWithdrawAndRemove\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"GOVERNANCE_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"NODEGROUP_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WETH_ADDRESS\",\"outputs\":[{\"internalType\":\"addresspayable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"bridgeVersion\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"chainGasAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexFrom\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexTo\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"minDy\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"depositAndSwap\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"}],\"name\":\"getFeeBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getRoleMember\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleMemberCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"kappa\",\"type\":\"bytes32\"}],\"name\":\"kappaExists\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"addresspayable\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"contractIERC20Mintable\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"kappa\",\"type\":\"bytes32\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"addresspayable\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"contractIERC20Mintable\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"},{\"internalType\":\"contractIMetaSwapDeposit\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexFrom\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexTo\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"minDy\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"kappa\",\"type\":\"bytes32\"}],\"name\":\"mintAndSwap\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractERC20Burnable\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"redeem\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractERC20Burnable\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"swapTokenIndex\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"swapMinAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"swapDeadline\",\"type\":\"uint256\"}],\"name\":\"redeemAndRemove\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"contractERC20Burnable\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexFrom\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexTo\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"minDy\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"redeemAndSwap\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"setChainGasAmount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"addresspayable\",\"name\":\"_wethAddress\",\"type\":\"address\"}],\"name\":\"setWethAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"startBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"kappa\",\"type\":\"bytes32\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"},{\"internalType\":\"contractISwap\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"swapTokenIndex\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"swapMinAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"swapDeadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"kappa\",\"type\":\"bytes32\"}],\"name\":\"withdrawAndRemove\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"withdrawFees\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"initialLogic\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"initialAdmin\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"stateMutability\":\"payable\",\"type\":\"constructor\"}]",
}
SynapseBridgeMetaData contains all meta data concerning the SynapseBridge contract.
Functions ¶
This section is empty.
Types ¶
type BridgeConfig ¶
type BridgeConfig struct { BridgeConfigCaller // Read-only binding to the contract BridgeConfigTransactor // Write-only binding to the contract BridgeConfigFilterer // Log filterer for contract events }
BridgeConfig is an auto generated Go binding around an Ethereum contract.
func NewBridgeConfig ¶
func NewBridgeConfig(address common.Address, backend bind.ContractBackend) (*BridgeConfig, error)
NewBridgeConfig creates a new instance of BridgeConfig, bound to a specific deployed contract.
type BridgeConfigCaller ¶
type BridgeConfigCaller struct {
// contains filtered or unexported fields
}
BridgeConfigCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewBridgeConfigCaller ¶
func NewBridgeConfigCaller(address common.Address, caller bind.ContractCaller) (*BridgeConfigCaller, error)
NewBridgeConfigCaller creates a new read-only instance of BridgeConfig, bound to a specific deployed contract.
func (*BridgeConfigCaller) BRIDGEMANAGERROLE ¶
func (_BridgeConfig *BridgeConfigCaller) BRIDGEMANAGERROLE(opts *bind.CallOpts) ([32]byte, error)
BRIDGEMANAGERROLE is a free data retrieval call binding the contract method 0xff9106c7.
Solidity: function BRIDGEMANAGER_ROLE() view returns(bytes32)
func (*BridgeConfigCaller) CalculateSwapFee ¶
func (_BridgeConfig *BridgeConfigCaller) CalculateSwapFee(opts *bind.CallOpts, tokenAddress common.Address, chainID *big.Int, amount *big.Int) (*big.Int, error)
CalculateSwapFee is a free data retrieval call binding the contract method 0xfc7cc4cb.
Solidity: function calculateSwapFee(address tokenAddress, uint256 chainID, uint256 amount) view returns(uint256)
func (*BridgeConfigCaller) DEFAULTADMINROLE ¶
func (_BridgeConfig *BridgeConfigCaller) 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 (*BridgeConfigCaller) GetAllTokenIDs ¶
func (_BridgeConfig *BridgeConfigCaller) GetAllTokenIDs(opts *bind.CallOpts) ([]string, error)
GetAllTokenIDs is a free data retrieval call binding the contract method 0x684a10b3.
Solidity: function getAllTokenIDs() view returns(string[] result)
func (*BridgeConfigCaller) GetRoleAdmin ¶
func (_BridgeConfig *BridgeConfigCaller) GetRoleAdmin(opts *bind.CallOpts, 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 (*BridgeConfigCaller) GetRoleMember ¶
func (_BridgeConfig *BridgeConfigCaller) 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 (*BridgeConfigCaller) GetRoleMemberCount ¶
func (_BridgeConfig *BridgeConfigCaller) 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 (*BridgeConfigCaller) GetToken ¶
func (_BridgeConfig *BridgeConfigCaller) GetToken(opts *bind.CallOpts, tokenID string, chainID *big.Int) (BridgeConfigToken, error)
GetToken is a free data retrieval call binding the contract method 0x324980b5.
Solidity: function getToken(string tokenID, uint256 chainID) view returns((uint256,address,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool) token)
func (*BridgeConfigCaller) GetToken0 ¶
func (_BridgeConfig *BridgeConfigCaller) GetToken0(opts *bind.CallOpts, tokenAddress common.Address, chainID *big.Int) (BridgeConfigToken, error)
GetToken0 is a free data retrieval call binding the contract method 0x43d7cce6.
Solidity: function getToken(address tokenAddress, uint256 chainID) view returns((uint256,address,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool) token)
func (*BridgeConfigCaller) GetTokenID ¶
func (_BridgeConfig *BridgeConfigCaller) GetTokenID(opts *bind.CallOpts, tokenAddress common.Address, chainID *big.Int) (string, error)
GetTokenID is a free data retrieval call binding the contract method 0x3cc1c7e0.
Solidity: function getTokenID(address tokenAddress, uint256 chainID) view returns(string)
func (*BridgeConfigCaller) GetUnderlyingToken ¶
func (_BridgeConfig *BridgeConfigCaller) GetUnderlyingToken(opts *bind.CallOpts, tokenID string) (BridgeConfigToken, error)
GetUnderlyingToken is a free data retrieval call binding the contract method 0x58dfe6f1.
Solidity: function getUnderlyingToken(string tokenID) view returns((uint256,address,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool) token)
func (*BridgeConfigCaller) HasRole ¶
func (_BridgeConfig *BridgeConfigCaller) 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 (*BridgeConfigCaller) HasUnderlyingToken ¶
func (_BridgeConfig *BridgeConfigCaller) HasUnderlyingToken(opts *bind.CallOpts, tokenID string) (bool, error)
HasUnderlyingToken is a free data retrieval call binding the contract method 0x074b7e97.
Solidity: function hasUnderlyingToken(string tokenID) view returns(bool)
func (*BridgeConfigCaller) IsTokenIDExist ¶
func (_BridgeConfig *BridgeConfigCaller) IsTokenIDExist(opts *bind.CallOpts, tokenID string) (bool, error)
IsTokenIDExist is a free data retrieval call binding the contract method 0xaf611ca0.
Solidity: function isTokenIDExist(string tokenID) view returns(bool)
type BridgeConfigCallerRaw ¶
type BridgeConfigCallerRaw struct {
Contract *BridgeConfigCaller // Generic read-only contract binding to access the raw methods on
}
BridgeConfigCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*BridgeConfigCallerRaw) Call ¶
func (_BridgeConfig *BridgeConfigCallerRaw) 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 BridgeConfigCallerSession ¶
type BridgeConfigCallerSession struct { Contract *BridgeConfigCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
BridgeConfigCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*BridgeConfigCallerSession) BRIDGEMANAGERROLE ¶
func (_BridgeConfig *BridgeConfigCallerSession) BRIDGEMANAGERROLE() ([32]byte, error)
BRIDGEMANAGERROLE is a free data retrieval call binding the contract method 0xff9106c7.
Solidity: function BRIDGEMANAGER_ROLE() view returns(bytes32)
func (*BridgeConfigCallerSession) CalculateSwapFee ¶
func (_BridgeConfig *BridgeConfigCallerSession) CalculateSwapFee(tokenAddress common.Address, chainID *big.Int, amount *big.Int) (*big.Int, error)
CalculateSwapFee is a free data retrieval call binding the contract method 0xfc7cc4cb.
Solidity: function calculateSwapFee(address tokenAddress, uint256 chainID, uint256 amount) view returns(uint256)
func (*BridgeConfigCallerSession) DEFAULTADMINROLE ¶
func (_BridgeConfig *BridgeConfigCallerSession) 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 (*BridgeConfigCallerSession) GetAllTokenIDs ¶
func (_BridgeConfig *BridgeConfigCallerSession) GetAllTokenIDs() ([]string, error)
GetAllTokenIDs is a free data retrieval call binding the contract method 0x684a10b3.
Solidity: function getAllTokenIDs() view returns(string[] result)
func (*BridgeConfigCallerSession) GetRoleAdmin ¶
func (_BridgeConfig *BridgeConfigCallerSession) 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 (*BridgeConfigCallerSession) GetRoleMember ¶
func (_BridgeConfig *BridgeConfigCallerSession) 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 (*BridgeConfigCallerSession) GetRoleMemberCount ¶
func (_BridgeConfig *BridgeConfigCallerSession) 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 (*BridgeConfigCallerSession) GetToken ¶
func (_BridgeConfig *BridgeConfigCallerSession) GetToken(tokenID string, chainID *big.Int) (BridgeConfigToken, error)
GetToken is a free data retrieval call binding the contract method 0x324980b5.
Solidity: function getToken(string tokenID, uint256 chainID) view returns((uint256,address,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool) token)
func (*BridgeConfigCallerSession) GetToken0 ¶
func (_BridgeConfig *BridgeConfigCallerSession) GetToken0(tokenAddress common.Address, chainID *big.Int) (BridgeConfigToken, error)
GetToken0 is a free data retrieval call binding the contract method 0x43d7cce6.
Solidity: function getToken(address tokenAddress, uint256 chainID) view returns((uint256,address,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool) token)
func (*BridgeConfigCallerSession) GetTokenID ¶
func (_BridgeConfig *BridgeConfigCallerSession) GetTokenID(tokenAddress common.Address, chainID *big.Int) (string, error)
GetTokenID is a free data retrieval call binding the contract method 0x3cc1c7e0.
Solidity: function getTokenID(address tokenAddress, uint256 chainID) view returns(string)
func (*BridgeConfigCallerSession) GetUnderlyingToken ¶
func (_BridgeConfig *BridgeConfigCallerSession) GetUnderlyingToken(tokenID string) (BridgeConfigToken, error)
GetUnderlyingToken is a free data retrieval call binding the contract method 0x58dfe6f1.
Solidity: function getUnderlyingToken(string tokenID) view returns((uint256,address,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool) token)
func (*BridgeConfigCallerSession) HasRole ¶
func (_BridgeConfig *BridgeConfigCallerSession) HasRole(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 (*BridgeConfigCallerSession) HasUnderlyingToken ¶
func (_BridgeConfig *BridgeConfigCallerSession) HasUnderlyingToken(tokenID string) (bool, error)
HasUnderlyingToken is a free data retrieval call binding the contract method 0x074b7e97.
Solidity: function hasUnderlyingToken(string tokenID) view returns(bool)
func (*BridgeConfigCallerSession) IsTokenIDExist ¶
func (_BridgeConfig *BridgeConfigCallerSession) IsTokenIDExist(tokenID string) (bool, error)
IsTokenIDExist is a free data retrieval call binding the contract method 0xaf611ca0.
Solidity: function isTokenIDExist(string tokenID) view returns(bool)
type BridgeConfigFilterer ¶
type BridgeConfigFilterer struct {
// contains filtered or unexported fields
}
BridgeConfigFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewBridgeConfigFilterer ¶
func NewBridgeConfigFilterer(address common.Address, filterer bind.ContractFilterer) (*BridgeConfigFilterer, error)
NewBridgeConfigFilterer creates a new log filterer instance of BridgeConfig, bound to a specific deployed contract.
func (*BridgeConfigFilterer) FilterRoleAdminChanged ¶
func (_BridgeConfig *BridgeConfigFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*BridgeConfigRoleAdminChangedIterator, 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 (*BridgeConfigFilterer) FilterRoleGranted ¶
func (_BridgeConfig *BridgeConfigFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*BridgeConfigRoleGrantedIterator, 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 (*BridgeConfigFilterer) FilterRoleRevoked ¶
func (_BridgeConfig *BridgeConfigFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*BridgeConfigRoleRevokedIterator, 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 (*BridgeConfigFilterer) ParseRoleAdminChanged ¶
func (_BridgeConfig *BridgeConfigFilterer) ParseRoleAdminChanged(log types.Log) (*BridgeConfigRoleAdminChanged, 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 (*BridgeConfigFilterer) ParseRoleGranted ¶
func (_BridgeConfig *BridgeConfigFilterer) ParseRoleGranted(log types.Log) (*BridgeConfigRoleGranted, 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 (*BridgeConfigFilterer) ParseRoleRevoked ¶
func (_BridgeConfig *BridgeConfigFilterer) ParseRoleRevoked(log types.Log) (*BridgeConfigRoleRevoked, 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 (*BridgeConfigFilterer) WatchRoleAdminChanged ¶
func (_BridgeConfig *BridgeConfigFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *BridgeConfigRoleAdminChanged, 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 (*BridgeConfigFilterer) WatchRoleGranted ¶
func (_BridgeConfig *BridgeConfigFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *BridgeConfigRoleGranted, 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 (*BridgeConfigFilterer) WatchRoleRevoked ¶
func (_BridgeConfig *BridgeConfigFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *BridgeConfigRoleRevoked, 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)
type BridgeConfigRaw ¶
type BridgeConfigRaw struct {
Contract *BridgeConfig // Generic contract binding to access the raw methods on
}
BridgeConfigRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*BridgeConfigRaw) Call ¶
func (_BridgeConfig *BridgeConfigRaw) 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 (*BridgeConfigRaw) Transact ¶
func (_BridgeConfig *BridgeConfigRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*BridgeConfigRaw) Transfer ¶
func (_BridgeConfig *BridgeConfigRaw) 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 BridgeConfigRoleAdminChanged ¶
type BridgeConfigRoleAdminChanged struct { Role [32]byte PreviousAdminRole [32]byte NewAdminRole [32]byte Raw types.Log // Blockchain specific contextual infos }
BridgeConfigRoleAdminChanged represents a RoleAdminChanged event raised by the BridgeConfig contract.
type BridgeConfigRoleAdminChangedIterator ¶
type BridgeConfigRoleAdminChangedIterator struct { Event *BridgeConfigRoleAdminChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
BridgeConfigRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the BridgeConfig contract.
func (*BridgeConfigRoleAdminChangedIterator) Close ¶
func (it *BridgeConfigRoleAdminChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*BridgeConfigRoleAdminChangedIterator) Error ¶
func (it *BridgeConfigRoleAdminChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*BridgeConfigRoleAdminChangedIterator) Next ¶
func (it *BridgeConfigRoleAdminChangedIterator) 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 BridgeConfigRoleGranted ¶
type BridgeConfigRoleGranted struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
BridgeConfigRoleGranted represents a RoleGranted event raised by the BridgeConfig contract.
type BridgeConfigRoleGrantedIterator ¶
type BridgeConfigRoleGrantedIterator struct { Event *BridgeConfigRoleGranted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
BridgeConfigRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the BridgeConfig contract.
func (*BridgeConfigRoleGrantedIterator) Close ¶
func (it *BridgeConfigRoleGrantedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*BridgeConfigRoleGrantedIterator) Error ¶
func (it *BridgeConfigRoleGrantedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*BridgeConfigRoleGrantedIterator) Next ¶
func (it *BridgeConfigRoleGrantedIterator) 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 BridgeConfigRoleRevoked ¶
type BridgeConfigRoleRevoked struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
BridgeConfigRoleRevoked represents a RoleRevoked event raised by the BridgeConfig contract.
type BridgeConfigRoleRevokedIterator ¶
type BridgeConfigRoleRevokedIterator struct { Event *BridgeConfigRoleRevoked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
BridgeConfigRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the BridgeConfig contract.
func (*BridgeConfigRoleRevokedIterator) Close ¶
func (it *BridgeConfigRoleRevokedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*BridgeConfigRoleRevokedIterator) Error ¶
func (it *BridgeConfigRoleRevokedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*BridgeConfigRoleRevokedIterator) Next ¶
func (it *BridgeConfigRoleRevokedIterator) 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 BridgeConfigSession ¶
type BridgeConfigSession struct { Contract *BridgeConfig // 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 }
BridgeConfigSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*BridgeConfigSession) BRIDGEMANAGERROLE ¶
func (_BridgeConfig *BridgeConfigSession) BRIDGEMANAGERROLE() ([32]byte, error)
BRIDGEMANAGERROLE is a free data retrieval call binding the contract method 0xff9106c7.
Solidity: function BRIDGEMANAGER_ROLE() view returns(bytes32)
func (*BridgeConfigSession) CalculateSwapFee ¶
func (_BridgeConfig *BridgeConfigSession) CalculateSwapFee(tokenAddress common.Address, chainID *big.Int, amount *big.Int) (*big.Int, error)
CalculateSwapFee is a free data retrieval call binding the contract method 0xfc7cc4cb.
Solidity: function calculateSwapFee(address tokenAddress, uint256 chainID, uint256 amount) view returns(uint256)
func (*BridgeConfigSession) DEFAULTADMINROLE ¶
func (_BridgeConfig *BridgeConfigSession) 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 (*BridgeConfigSession) GetAllTokenIDs ¶
func (_BridgeConfig *BridgeConfigSession) GetAllTokenIDs() ([]string, error)
GetAllTokenIDs is a free data retrieval call binding the contract method 0x684a10b3.
Solidity: function getAllTokenIDs() view returns(string[] result)
func (*BridgeConfigSession) GetRoleAdmin ¶
func (_BridgeConfig *BridgeConfigSession) 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 (*BridgeConfigSession) GetRoleMember ¶
func (_BridgeConfig *BridgeConfigSession) 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 (*BridgeConfigSession) GetRoleMemberCount ¶
func (_BridgeConfig *BridgeConfigSession) 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 (*BridgeConfigSession) GetToken ¶
func (_BridgeConfig *BridgeConfigSession) GetToken(tokenID string, chainID *big.Int) (BridgeConfigToken, error)
GetToken is a free data retrieval call binding the contract method 0x324980b5.
Solidity: function getToken(string tokenID, uint256 chainID) view returns((uint256,address,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool) token)
func (*BridgeConfigSession) GetToken0 ¶
func (_BridgeConfig *BridgeConfigSession) GetToken0(tokenAddress common.Address, chainID *big.Int) (BridgeConfigToken, error)
GetToken0 is a free data retrieval call binding the contract method 0x43d7cce6.
Solidity: function getToken(address tokenAddress, uint256 chainID) view returns((uint256,address,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool) token)
func (*BridgeConfigSession) GetTokenID ¶
func (_BridgeConfig *BridgeConfigSession) GetTokenID(tokenAddress common.Address, chainID *big.Int) (string, error)
GetTokenID is a free data retrieval call binding the contract method 0x3cc1c7e0.
Solidity: function getTokenID(address tokenAddress, uint256 chainID) view returns(string)
func (*BridgeConfigSession) GetUnderlyingToken ¶
func (_BridgeConfig *BridgeConfigSession) GetUnderlyingToken(tokenID string) (BridgeConfigToken, error)
GetUnderlyingToken is a free data retrieval call binding the contract method 0x58dfe6f1.
Solidity: function getUnderlyingToken(string tokenID) view returns((uint256,address,uint8,uint256,uint256,uint256,uint256,uint256,bool,bool) token)
func (*BridgeConfigSession) GrantRole ¶
func (_BridgeConfig *BridgeConfigSession) 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 (*BridgeConfigSession) HasRole ¶
func (_BridgeConfig *BridgeConfigSession) HasRole(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 (*BridgeConfigSession) HasUnderlyingToken ¶
func (_BridgeConfig *BridgeConfigSession) HasUnderlyingToken(tokenID string) (bool, error)
HasUnderlyingToken is a free data retrieval call binding the contract method 0x074b7e97.
Solidity: function hasUnderlyingToken(string tokenID) view returns(bool)
func (*BridgeConfigSession) IsTokenIDExist ¶
func (_BridgeConfig *BridgeConfigSession) IsTokenIDExist(tokenID string) (bool, error)
IsTokenIDExist is a free data retrieval call binding the contract method 0xaf611ca0.
Solidity: function isTokenIDExist(string tokenID) view returns(bool)
func (*BridgeConfigSession) RenounceRole ¶
func (_BridgeConfig *BridgeConfigSession) 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 (*BridgeConfigSession) RevokeRole ¶
func (_BridgeConfig *BridgeConfigSession) 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 (*BridgeConfigSession) SetTokenConfig ¶
func (_BridgeConfig *BridgeConfigSession) SetTokenConfig(tokenID string, chainID *big.Int, tokenAddress common.Address, tokenDecimals uint8, maxSwap *big.Int, minSwap *big.Int, swapFee *big.Int, maxSwapFee *big.Int, minSwapFee *big.Int, hasUnderlying bool, isUnderlying bool) (*types.Transaction, error)
SetTokenConfig is a paid mutator transaction binding the contract method 0x59053bfe.
Solidity: function setTokenConfig(string tokenID, uint256 chainID, address tokenAddress, uint8 tokenDecimals, uint256 maxSwap, uint256 minSwap, uint256 swapFee, uint256 maxSwapFee, uint256 minSwapFee, bool hasUnderlying, bool isUnderlying) returns(bool)
type BridgeConfigToken ¶
type BridgeConfigToken struct { ChainId *big.Int TokenAddress common.Address TokenDecimals uint8 MaxSwap *big.Int MinSwap *big.Int SwapFee *big.Int MaxSwapFee *big.Int MinSwapFee *big.Int HasUnderlying bool IsUnderlying bool }
BridgeConfigToken is an auto generated low-level Go binding around an user-defined struct.
type BridgeConfigTransactor ¶
type BridgeConfigTransactor struct {
// contains filtered or unexported fields
}
BridgeConfigTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewBridgeConfigTransactor ¶
func NewBridgeConfigTransactor(address common.Address, transactor bind.ContractTransactor) (*BridgeConfigTransactor, error)
NewBridgeConfigTransactor creates a new write-only instance of BridgeConfig, bound to a specific deployed contract.
func (*BridgeConfigTransactor) GrantRole ¶
func (_BridgeConfig *BridgeConfigTransactor) 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 (*BridgeConfigTransactor) RenounceRole ¶
func (_BridgeConfig *BridgeConfigTransactor) 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 (*BridgeConfigTransactor) RevokeRole ¶
func (_BridgeConfig *BridgeConfigTransactor) 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 (*BridgeConfigTransactor) SetTokenConfig ¶
func (_BridgeConfig *BridgeConfigTransactor) SetTokenConfig(opts *bind.TransactOpts, tokenID string, chainID *big.Int, tokenAddress common.Address, tokenDecimals uint8, maxSwap *big.Int, minSwap *big.Int, swapFee *big.Int, maxSwapFee *big.Int, minSwapFee *big.Int, hasUnderlying bool, isUnderlying bool) (*types.Transaction, error)
SetTokenConfig is a paid mutator transaction binding the contract method 0x59053bfe.
Solidity: function setTokenConfig(string tokenID, uint256 chainID, address tokenAddress, uint8 tokenDecimals, uint256 maxSwap, uint256 minSwap, uint256 swapFee, uint256 maxSwapFee, uint256 minSwapFee, bool hasUnderlying, bool isUnderlying) returns(bool)
type BridgeConfigTransactorRaw ¶
type BridgeConfigTransactorRaw struct {
Contract *BridgeConfigTransactor // Generic write-only contract binding to access the raw methods on
}
BridgeConfigTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*BridgeConfigTransactorRaw) Transact ¶
func (_BridgeConfig *BridgeConfigTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*BridgeConfigTransactorRaw) Transfer ¶
func (_BridgeConfig *BridgeConfigTransactorRaw) 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 BridgeConfigTransactorSession ¶
type BridgeConfigTransactorSession struct { Contract *BridgeConfigTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
BridgeConfigTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*BridgeConfigTransactorSession) GrantRole ¶
func (_BridgeConfig *BridgeConfigTransactorSession) 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 (*BridgeConfigTransactorSession) RenounceRole ¶
func (_BridgeConfig *BridgeConfigTransactorSession) 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 (*BridgeConfigTransactorSession) RevokeRole ¶
func (_BridgeConfig *BridgeConfigTransactorSession) 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 (*BridgeConfigTransactorSession) SetTokenConfig ¶
func (_BridgeConfig *BridgeConfigTransactorSession) SetTokenConfig(tokenID string, chainID *big.Int, tokenAddress common.Address, tokenDecimals uint8, maxSwap *big.Int, minSwap *big.Int, swapFee *big.Int, maxSwapFee *big.Int, minSwapFee *big.Int, hasUnderlying bool, isUnderlying bool) (*types.Transaction, error)
SetTokenConfig is a paid mutator transaction binding the contract method 0x59053bfe.
Solidity: function setTokenConfig(string tokenID, uint256 chainID, address tokenAddress, uint8 tokenDecimals, uint256 maxSwap, uint256 minSwap, uint256 swapFee, uint256 maxSwapFee, uint256 minSwapFee, bool hasUnderlying, bool isUnderlying) returns(bool)
type BridgeZap ¶
type BridgeZap struct { BridgeZapCaller // Read-only binding to the contract BridgeZapTransactor // Write-only binding to the contract BridgeZapFilterer // Log filterer for contract events }
BridgeZap is an auto generated Go binding around an Ethereum contract.
func NewBridgeZap ¶
NewBridgeZap creates a new instance of BridgeZap, bound to a specific deployed contract.
type BridgeZapCaller ¶
type BridgeZapCaller struct {
// contains filtered or unexported fields
}
BridgeZapCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewBridgeZapCaller ¶
func NewBridgeZapCaller(address common.Address, caller bind.ContractCaller) (*BridgeZapCaller, error)
NewBridgeZapCaller creates a new read-only instance of BridgeZap, bound to a specific deployed contract.
func (*BridgeZapCaller) BaseTokens ¶
func (_BridgeZap *BridgeZapCaller) BaseTokens(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
BaseTokens is a free data retrieval call binding the contract method 0x328123a2.
Solidity: function baseTokens(uint256 ) view returns(address)
func (*BridgeZapCaller) CalculateTokenAmount ¶
func (_BridgeZap *BridgeZapCaller) CalculateTokenAmount(opts *bind.CallOpts, amounts []*big.Int, deposit bool) (*big.Int, error)
CalculateTokenAmount is a free data retrieval call binding the contract method 0xe6ab2806.
Solidity: function calculateTokenAmount(uint256[] amounts, bool deposit) view returns(uint256)
func (*BridgeZapCaller) WETHADDRESS ¶
WETHADDRESS is a free data retrieval call binding the contract method 0x040141e5.
Solidity: function WETH_ADDRESS() view returns(address)
type BridgeZapCallerRaw ¶
type BridgeZapCallerRaw struct {
Contract *BridgeZapCaller // Generic read-only contract binding to access the raw methods on
}
BridgeZapCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*BridgeZapCallerRaw) Call ¶
func (_BridgeZap *BridgeZapCallerRaw) 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 BridgeZapCallerSession ¶
type BridgeZapCallerSession struct { Contract *BridgeZapCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
BridgeZapCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*BridgeZapCallerSession) BaseTokens ¶
BaseTokens is a free data retrieval call binding the contract method 0x328123a2.
Solidity: function baseTokens(uint256 ) view returns(address)
func (*BridgeZapCallerSession) CalculateTokenAmount ¶
func (_BridgeZap *BridgeZapCallerSession) CalculateTokenAmount(amounts []*big.Int, deposit bool) (*big.Int, error)
CalculateTokenAmount is a free data retrieval call binding the contract method 0xe6ab2806.
Solidity: function calculateTokenAmount(uint256[] amounts, bool deposit) view returns(uint256)
func (*BridgeZapCallerSession) WETHADDRESS ¶
func (_BridgeZap *BridgeZapCallerSession) WETHADDRESS() (common.Address, error)
WETHADDRESS is a free data retrieval call binding the contract method 0x040141e5.
Solidity: function WETH_ADDRESS() view returns(address)
type BridgeZapFilterer ¶
type BridgeZapFilterer struct {
// contains filtered or unexported fields
}
BridgeZapFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewBridgeZapFilterer ¶
func NewBridgeZapFilterer(address common.Address, filterer bind.ContractFilterer) (*BridgeZapFilterer, error)
NewBridgeZapFilterer creates a new log filterer instance of BridgeZap, bound to a specific deployed contract.
type BridgeZapRaw ¶
type BridgeZapRaw struct {
Contract *BridgeZap // Generic contract binding to access the raw methods on
}
BridgeZapRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*BridgeZapRaw) Call ¶
func (_BridgeZap *BridgeZapRaw) 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 (*BridgeZapRaw) Transact ¶
func (_BridgeZap *BridgeZapRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*BridgeZapRaw) Transfer ¶
func (_BridgeZap *BridgeZapRaw) 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 BridgeZapSession ¶
type BridgeZapSession struct { Contract *BridgeZap // 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 }
BridgeZapSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*BridgeZapSession) BaseTokens ¶
BaseTokens is a free data retrieval call binding the contract method 0x328123a2.
Solidity: function baseTokens(uint256 ) view returns(address)
func (*BridgeZapSession) CalculateTokenAmount ¶
func (_BridgeZap *BridgeZapSession) CalculateTokenAmount(amounts []*big.Int, deposit bool) (*big.Int, error)
CalculateTokenAmount is a free data retrieval call binding the contract method 0xe6ab2806.
Solidity: function calculateTokenAmount(uint256[] amounts, bool deposit) view returns(uint256)
func (*BridgeZapSession) Deposit ¶
func (_BridgeZap *BridgeZapSession) Deposit(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x90d25074.
Solidity: function deposit(address to, uint256 chainId, address token, uint256 amount) returns()
func (*BridgeZapSession) DepositAndSwap ¶
func (_BridgeZap *BridgeZapSession) DepositAndSwap(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
DepositAndSwap is a paid mutator transaction binding the contract method 0xa2a2af0b.
Solidity: function depositAndSwap(address to, uint256 chainId, address token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) returns()
func (*BridgeZapSession) DepositETH ¶
func (_BridgeZap *BridgeZapSession) DepositETH(to common.Address, chainId *big.Int, amount *big.Int) (*types.Transaction, error)
DepositETH is a paid mutator transaction binding the contract method 0xce0b63ce.
Solidity: function depositETH(address to, uint256 chainId, uint256 amount) payable returns()
func (*BridgeZapSession) DepositETHAndSwap ¶
func (_BridgeZap *BridgeZapSession) DepositETHAndSwap(to common.Address, chainId *big.Int, amount *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
DepositETHAndSwap is a paid mutator transaction binding the contract method 0xa9fd8c57.
Solidity: function depositETHAndSwap(address to, uint256 chainId, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) payable returns()
func (*BridgeZapSession) Redeem ¶
func (_BridgeZap *BridgeZapSession) Redeem(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Redeem is a paid mutator transaction binding the contract method 0xf3f094a1.
Solidity: function redeem(address to, uint256 chainId, address token, uint256 amount) returns()
func (*BridgeZapSession) WETHADDRESS ¶
func (_BridgeZap *BridgeZapSession) WETHADDRESS() (common.Address, error)
WETHADDRESS is a free data retrieval call binding the contract method 0x040141e5.
Solidity: function WETH_ADDRESS() view returns(address)
func (*BridgeZapSession) ZapAndDeposit ¶
func (_BridgeZap *BridgeZapSession) ZapAndDeposit(to common.Address, chainId *big.Int, token common.Address, liquidityAmounts []*big.Int, minToMint *big.Int, deadline *big.Int) (*types.Transaction, error)
ZapAndDeposit is a paid mutator transaction binding the contract method 0x394023d9.
Solidity: function zapAndDeposit(address to, uint256 chainId, address token, uint256[] liquidityAmounts, uint256 minToMint, uint256 deadline) returns()
func (*BridgeZapSession) ZapAndDepositAndSwap ¶
func (_BridgeZap *BridgeZapSession) ZapAndDepositAndSwap(to common.Address, chainId *big.Int, token common.Address, liquidityAmounts []*big.Int, minToMint *big.Int, liqDeadline *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, swapDeadline *big.Int) (*types.Transaction, error)
ZapAndDepositAndSwap is a paid mutator transaction binding the contract method 0x8054ae3b.
Solidity: function zapAndDepositAndSwap(address to, uint256 chainId, address token, uint256[] liquidityAmounts, uint256 minToMint, uint256 liqDeadline, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 swapDeadline) returns()
type BridgeZapTransactor ¶
type BridgeZapTransactor struct {
// contains filtered or unexported fields
}
BridgeZapTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewBridgeZapTransactor ¶
func NewBridgeZapTransactor(address common.Address, transactor bind.ContractTransactor) (*BridgeZapTransactor, error)
NewBridgeZapTransactor creates a new write-only instance of BridgeZap, bound to a specific deployed contract.
func (*BridgeZapTransactor) Deposit ¶
func (_BridgeZap *BridgeZapTransactor) Deposit(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x90d25074.
Solidity: function deposit(address to, uint256 chainId, address token, uint256 amount) returns()
func (*BridgeZapTransactor) DepositAndSwap ¶
func (_BridgeZap *BridgeZapTransactor) DepositAndSwap(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, amount *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
DepositAndSwap is a paid mutator transaction binding the contract method 0xa2a2af0b.
Solidity: function depositAndSwap(address to, uint256 chainId, address token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) returns()
func (*BridgeZapTransactor) DepositETH ¶
func (_BridgeZap *BridgeZapTransactor) DepositETH(opts *bind.TransactOpts, to common.Address, chainId *big.Int, amount *big.Int) (*types.Transaction, error)
DepositETH is a paid mutator transaction binding the contract method 0xce0b63ce.
Solidity: function depositETH(address to, uint256 chainId, uint256 amount) payable returns()
func (*BridgeZapTransactor) DepositETHAndSwap ¶
func (_BridgeZap *BridgeZapTransactor) DepositETHAndSwap(opts *bind.TransactOpts, to common.Address, chainId *big.Int, amount *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
DepositETHAndSwap is a paid mutator transaction binding the contract method 0xa9fd8c57.
Solidity: function depositETHAndSwap(address to, uint256 chainId, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) payable returns()
func (*BridgeZapTransactor) Redeem ¶
func (_BridgeZap *BridgeZapTransactor) Redeem(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Redeem is a paid mutator transaction binding the contract method 0xf3f094a1.
Solidity: function redeem(address to, uint256 chainId, address token, uint256 amount) returns()
func (*BridgeZapTransactor) ZapAndDeposit ¶
func (_BridgeZap *BridgeZapTransactor) ZapAndDeposit(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, liquidityAmounts []*big.Int, minToMint *big.Int, deadline *big.Int) (*types.Transaction, error)
ZapAndDeposit is a paid mutator transaction binding the contract method 0x394023d9.
Solidity: function zapAndDeposit(address to, uint256 chainId, address token, uint256[] liquidityAmounts, uint256 minToMint, uint256 deadline) returns()
func (*BridgeZapTransactor) ZapAndDepositAndSwap ¶
func (_BridgeZap *BridgeZapTransactor) ZapAndDepositAndSwap(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, liquidityAmounts []*big.Int, minToMint *big.Int, liqDeadline *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, swapDeadline *big.Int) (*types.Transaction, error)
ZapAndDepositAndSwap is a paid mutator transaction binding the contract method 0x8054ae3b.
Solidity: function zapAndDepositAndSwap(address to, uint256 chainId, address token, uint256[] liquidityAmounts, uint256 minToMint, uint256 liqDeadline, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 swapDeadline) returns()
type BridgeZapTransactorRaw ¶
type BridgeZapTransactorRaw struct {
Contract *BridgeZapTransactor // Generic write-only contract binding to access the raw methods on
}
BridgeZapTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*BridgeZapTransactorRaw) Transact ¶
func (_BridgeZap *BridgeZapTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*BridgeZapTransactorRaw) Transfer ¶
func (_BridgeZap *BridgeZapTransactorRaw) 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 BridgeZapTransactorSession ¶
type BridgeZapTransactorSession struct { Contract *BridgeZapTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
BridgeZapTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*BridgeZapTransactorSession) Deposit ¶
func (_BridgeZap *BridgeZapTransactorSession) Deposit(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x90d25074.
Solidity: function deposit(address to, uint256 chainId, address token, uint256 amount) returns()
func (*BridgeZapTransactorSession) DepositAndSwap ¶
func (_BridgeZap *BridgeZapTransactorSession) DepositAndSwap(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
DepositAndSwap is a paid mutator transaction binding the contract method 0xa2a2af0b.
Solidity: function depositAndSwap(address to, uint256 chainId, address token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) returns()
func (*BridgeZapTransactorSession) DepositETH ¶
func (_BridgeZap *BridgeZapTransactorSession) DepositETH(to common.Address, chainId *big.Int, amount *big.Int) (*types.Transaction, error)
DepositETH is a paid mutator transaction binding the contract method 0xce0b63ce.
Solidity: function depositETH(address to, uint256 chainId, uint256 amount) payable returns()
func (*BridgeZapTransactorSession) DepositETHAndSwap ¶
func (_BridgeZap *BridgeZapTransactorSession) DepositETHAndSwap(to common.Address, chainId *big.Int, amount *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
DepositETHAndSwap is a paid mutator transaction binding the contract method 0xa9fd8c57.
Solidity: function depositETHAndSwap(address to, uint256 chainId, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) payable returns()
func (*BridgeZapTransactorSession) Redeem ¶
func (_BridgeZap *BridgeZapTransactorSession) Redeem(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Redeem is a paid mutator transaction binding the contract method 0xf3f094a1.
Solidity: function redeem(address to, uint256 chainId, address token, uint256 amount) returns()
func (*BridgeZapTransactorSession) ZapAndDeposit ¶
func (_BridgeZap *BridgeZapTransactorSession) ZapAndDeposit(to common.Address, chainId *big.Int, token common.Address, liquidityAmounts []*big.Int, minToMint *big.Int, deadline *big.Int) (*types.Transaction, error)
ZapAndDeposit is a paid mutator transaction binding the contract method 0x394023d9.
Solidity: function zapAndDeposit(address to, uint256 chainId, address token, uint256[] liquidityAmounts, uint256 minToMint, uint256 deadline) returns()
func (*BridgeZapTransactorSession) ZapAndDepositAndSwap ¶
func (_BridgeZap *BridgeZapTransactorSession) ZapAndDepositAndSwap(to common.Address, chainId *big.Int, token common.Address, liquidityAmounts []*big.Int, minToMint *big.Int, liqDeadline *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, swapDeadline *big.Int) (*types.Transaction, error)
ZapAndDepositAndSwap is a paid mutator transaction binding the contract method 0x8054ae3b.
Solidity: function zapAndDepositAndSwap(address to, uint256 chainId, address token, uint256[] liquidityAmounts, uint256 minToMint, uint256 liqDeadline, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 swapDeadline) returns()
type L1BridgeZap ¶
type L1BridgeZap struct { L1BridgeZapCaller // Read-only binding to the contract L1BridgeZapTransactor // Write-only binding to the contract L1BridgeZapFilterer // Log filterer for contract events }
L1BridgeZap is an auto generated Go binding around an Ethereum contract.
func NewL1BridgeZap ¶
func NewL1BridgeZap(address common.Address, backend bind.ContractBackend) (*L1BridgeZap, error)
NewL1BridgeZap creates a new instance of L1BridgeZap, bound to a specific deployed contract.
type L1BridgeZapCaller ¶
type L1BridgeZapCaller struct {
// contains filtered or unexported fields
}
L1BridgeZapCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewL1BridgeZapCaller ¶
func NewL1BridgeZapCaller(address common.Address, caller bind.ContractCaller) (*L1BridgeZapCaller, error)
NewL1BridgeZapCaller creates a new read-only instance of L1BridgeZap, bound to a specific deployed contract.
func (*L1BridgeZapCaller) BaseTokens ¶
func (_L1BridgeZap *L1BridgeZapCaller) BaseTokens(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
BaseTokens is a free data retrieval call binding the contract method 0x328123a2.
Solidity: function baseTokens(uint256 ) view returns(address)
func (*L1BridgeZapCaller) CalculateRemoveLiquidityOneToken ¶
func (_L1BridgeZap *L1BridgeZapCaller) CalculateRemoveLiquidityOneToken(opts *bind.CallOpts, tokenAmount *big.Int, tokenIndex uint8) (*big.Int, error)
CalculateRemoveLiquidityOneToken is a free data retrieval call binding the contract method 0x342a87a1.
Solidity: function calculateRemoveLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex) view returns(uint256 availableTokenAmount)
func (*L1BridgeZapCaller) CalculateTokenAmount ¶
func (_L1BridgeZap *L1BridgeZapCaller) CalculateTokenAmount(opts *bind.CallOpts, amounts []*big.Int, deposit bool) (*big.Int, error)
CalculateTokenAmount is a free data retrieval call binding the contract method 0xe6ab2806.
Solidity: function calculateTokenAmount(uint256[] amounts, bool deposit) view returns(uint256)
func (*L1BridgeZapCaller) WETHADDRESS ¶
WETHADDRESS is a free data retrieval call binding the contract method 0x040141e5.
Solidity: function WETH_ADDRESS() view returns(address)
type L1BridgeZapCallerRaw ¶
type L1BridgeZapCallerRaw struct {
Contract *L1BridgeZapCaller // Generic read-only contract binding to access the raw methods on
}
L1BridgeZapCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*L1BridgeZapCallerRaw) Call ¶
func (_L1BridgeZap *L1BridgeZapCallerRaw) 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 L1BridgeZapCallerSession ¶
type L1BridgeZapCallerSession struct { Contract *L1BridgeZapCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
L1BridgeZapCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*L1BridgeZapCallerSession) BaseTokens ¶
BaseTokens is a free data retrieval call binding the contract method 0x328123a2.
Solidity: function baseTokens(uint256 ) view returns(address)
func (*L1BridgeZapCallerSession) CalculateRemoveLiquidityOneToken ¶
func (_L1BridgeZap *L1BridgeZapCallerSession) CalculateRemoveLiquidityOneToken(tokenAmount *big.Int, tokenIndex uint8) (*big.Int, error)
CalculateRemoveLiquidityOneToken is a free data retrieval call binding the contract method 0x342a87a1.
Solidity: function calculateRemoveLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex) view returns(uint256 availableTokenAmount)
func (*L1BridgeZapCallerSession) CalculateTokenAmount ¶
func (_L1BridgeZap *L1BridgeZapCallerSession) CalculateTokenAmount(amounts []*big.Int, deposit bool) (*big.Int, error)
CalculateTokenAmount is a free data retrieval call binding the contract method 0xe6ab2806.
Solidity: function calculateTokenAmount(uint256[] amounts, bool deposit) view returns(uint256)
func (*L1BridgeZapCallerSession) WETHADDRESS ¶
func (_L1BridgeZap *L1BridgeZapCallerSession) WETHADDRESS() (common.Address, error)
WETHADDRESS is a free data retrieval call binding the contract method 0x040141e5.
Solidity: function WETH_ADDRESS() view returns(address)
type L1BridgeZapFilterer ¶
type L1BridgeZapFilterer struct {
// contains filtered or unexported fields
}
L1BridgeZapFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewL1BridgeZapFilterer ¶
func NewL1BridgeZapFilterer(address common.Address, filterer bind.ContractFilterer) (*L1BridgeZapFilterer, error)
NewL1BridgeZapFilterer creates a new log filterer instance of L1BridgeZap, bound to a specific deployed contract.
type L1BridgeZapRaw ¶
type L1BridgeZapRaw struct {
Contract *L1BridgeZap // Generic contract binding to access the raw methods on
}
L1BridgeZapRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*L1BridgeZapRaw) Call ¶
func (_L1BridgeZap *L1BridgeZapRaw) 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 (*L1BridgeZapRaw) Transact ¶
func (_L1BridgeZap *L1BridgeZapRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*L1BridgeZapRaw) Transfer ¶
func (_L1BridgeZap *L1BridgeZapRaw) 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 L1BridgeZapSession ¶
type L1BridgeZapSession struct { Contract *L1BridgeZap // 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 }
L1BridgeZapSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*L1BridgeZapSession) BaseTokens ¶
BaseTokens is a free data retrieval call binding the contract method 0x328123a2.
Solidity: function baseTokens(uint256 ) view returns(address)
func (*L1BridgeZapSession) CalculateRemoveLiquidityOneToken ¶
func (_L1BridgeZap *L1BridgeZapSession) CalculateRemoveLiquidityOneToken(tokenAmount *big.Int, tokenIndex uint8) (*big.Int, error)
CalculateRemoveLiquidityOneToken is a free data retrieval call binding the contract method 0x342a87a1.
Solidity: function calculateRemoveLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex) view returns(uint256 availableTokenAmount)
func (*L1BridgeZapSession) CalculateTokenAmount ¶
func (_L1BridgeZap *L1BridgeZapSession) CalculateTokenAmount(amounts []*big.Int, deposit bool) (*big.Int, error)
CalculateTokenAmount is a free data retrieval call binding the contract method 0xe6ab2806.
Solidity: function calculateTokenAmount(uint256[] amounts, bool deposit) view returns(uint256)
func (*L1BridgeZapSession) Deposit ¶
func (_L1BridgeZap *L1BridgeZapSession) Deposit(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x90d25074.
Solidity: function deposit(address to, uint256 chainId, address token, uint256 amount) returns()
func (*L1BridgeZapSession) DepositAndSwap ¶
func (_L1BridgeZap *L1BridgeZapSession) DepositAndSwap(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
DepositAndSwap is a paid mutator transaction binding the contract method 0xa2a2af0b.
Solidity: function depositAndSwap(address to, uint256 chainId, address token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) returns()
func (*L1BridgeZapSession) DepositETH ¶
func (_L1BridgeZap *L1BridgeZapSession) DepositETH(to common.Address, chainId *big.Int, amount *big.Int) (*types.Transaction, error)
DepositETH is a paid mutator transaction binding the contract method 0xce0b63ce.
Solidity: function depositETH(address to, uint256 chainId, uint256 amount) payable returns()
func (*L1BridgeZapSession) DepositETHAndSwap ¶
func (_L1BridgeZap *L1BridgeZapSession) DepositETHAndSwap(to common.Address, chainId *big.Int, amount *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
DepositETHAndSwap is a paid mutator transaction binding the contract method 0xa9fd8c57.
Solidity: function depositETHAndSwap(address to, uint256 chainId, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) payable returns()
func (*L1BridgeZapSession) Redeem ¶
func (_L1BridgeZap *L1BridgeZapSession) Redeem(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Redeem is a paid mutator transaction binding the contract method 0xf3f094a1.
Solidity: function redeem(address to, uint256 chainId, address token, uint256 amount) returns()
func (*L1BridgeZapSession) WETHADDRESS ¶
func (_L1BridgeZap *L1BridgeZapSession) WETHADDRESS() (common.Address, error)
WETHADDRESS is a free data retrieval call binding the contract method 0x040141e5.
Solidity: function WETH_ADDRESS() view returns(address)
func (*L1BridgeZapSession) ZapAndDeposit ¶
func (_L1BridgeZap *L1BridgeZapSession) ZapAndDeposit(to common.Address, chainId *big.Int, token common.Address, liquidityAmounts []*big.Int, minToMint *big.Int, deadline *big.Int) (*types.Transaction, error)
ZapAndDeposit is a paid mutator transaction binding the contract method 0x394023d9.
Solidity: function zapAndDeposit(address to, uint256 chainId, address token, uint256[] liquidityAmounts, uint256 minToMint, uint256 deadline) returns()
func (*L1BridgeZapSession) ZapAndDepositAndSwap ¶
func (_L1BridgeZap *L1BridgeZapSession) ZapAndDepositAndSwap(to common.Address, chainId *big.Int, token common.Address, liquidityAmounts []*big.Int, minToMint *big.Int, liqDeadline *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, swapDeadline *big.Int) (*types.Transaction, error)
ZapAndDepositAndSwap is a paid mutator transaction binding the contract method 0x8054ae3b.
Solidity: function zapAndDepositAndSwap(address to, uint256 chainId, address token, uint256[] liquidityAmounts, uint256 minToMint, uint256 liqDeadline, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 swapDeadline) returns()
type L1BridgeZapTransactor ¶
type L1BridgeZapTransactor struct {
// contains filtered or unexported fields
}
L1BridgeZapTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewL1BridgeZapTransactor ¶
func NewL1BridgeZapTransactor(address common.Address, transactor bind.ContractTransactor) (*L1BridgeZapTransactor, error)
NewL1BridgeZapTransactor creates a new write-only instance of L1BridgeZap, bound to a specific deployed contract.
func (*L1BridgeZapTransactor) Deposit ¶
func (_L1BridgeZap *L1BridgeZapTransactor) Deposit(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x90d25074.
Solidity: function deposit(address to, uint256 chainId, address token, uint256 amount) returns()
func (*L1BridgeZapTransactor) DepositAndSwap ¶
func (_L1BridgeZap *L1BridgeZapTransactor) DepositAndSwap(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, amount *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
DepositAndSwap is a paid mutator transaction binding the contract method 0xa2a2af0b.
Solidity: function depositAndSwap(address to, uint256 chainId, address token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) returns()
func (*L1BridgeZapTransactor) DepositETH ¶
func (_L1BridgeZap *L1BridgeZapTransactor) DepositETH(opts *bind.TransactOpts, to common.Address, chainId *big.Int, amount *big.Int) (*types.Transaction, error)
DepositETH is a paid mutator transaction binding the contract method 0xce0b63ce.
Solidity: function depositETH(address to, uint256 chainId, uint256 amount) payable returns()
func (*L1BridgeZapTransactor) DepositETHAndSwap ¶
func (_L1BridgeZap *L1BridgeZapTransactor) DepositETHAndSwap(opts *bind.TransactOpts, to common.Address, chainId *big.Int, amount *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
DepositETHAndSwap is a paid mutator transaction binding the contract method 0xa9fd8c57.
Solidity: function depositETHAndSwap(address to, uint256 chainId, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) payable returns()
func (*L1BridgeZapTransactor) Redeem ¶
func (_L1BridgeZap *L1BridgeZapTransactor) Redeem(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Redeem is a paid mutator transaction binding the contract method 0xf3f094a1.
Solidity: function redeem(address to, uint256 chainId, address token, uint256 amount) returns()
func (*L1BridgeZapTransactor) ZapAndDeposit ¶
func (_L1BridgeZap *L1BridgeZapTransactor) ZapAndDeposit(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, liquidityAmounts []*big.Int, minToMint *big.Int, deadline *big.Int) (*types.Transaction, error)
ZapAndDeposit is a paid mutator transaction binding the contract method 0x394023d9.
Solidity: function zapAndDeposit(address to, uint256 chainId, address token, uint256[] liquidityAmounts, uint256 minToMint, uint256 deadline) returns()
func (*L1BridgeZapTransactor) ZapAndDepositAndSwap ¶
func (_L1BridgeZap *L1BridgeZapTransactor) ZapAndDepositAndSwap(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, liquidityAmounts []*big.Int, minToMint *big.Int, liqDeadline *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, swapDeadline *big.Int) (*types.Transaction, error)
ZapAndDepositAndSwap is a paid mutator transaction binding the contract method 0x8054ae3b.
Solidity: function zapAndDepositAndSwap(address to, uint256 chainId, address token, uint256[] liquidityAmounts, uint256 minToMint, uint256 liqDeadline, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 swapDeadline) returns()
type L1BridgeZapTransactorRaw ¶
type L1BridgeZapTransactorRaw struct {
Contract *L1BridgeZapTransactor // Generic write-only contract binding to access the raw methods on
}
L1BridgeZapTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*L1BridgeZapTransactorRaw) Transact ¶
func (_L1BridgeZap *L1BridgeZapTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*L1BridgeZapTransactorRaw) Transfer ¶
func (_L1BridgeZap *L1BridgeZapTransactorRaw) 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 L1BridgeZapTransactorSession ¶
type L1BridgeZapTransactorSession struct { Contract *L1BridgeZapTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
L1BridgeZapTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*L1BridgeZapTransactorSession) Deposit ¶
func (_L1BridgeZap *L1BridgeZapTransactorSession) Deposit(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x90d25074.
Solidity: function deposit(address to, uint256 chainId, address token, uint256 amount) returns()
func (*L1BridgeZapTransactorSession) DepositAndSwap ¶
func (_L1BridgeZap *L1BridgeZapTransactorSession) DepositAndSwap(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
DepositAndSwap is a paid mutator transaction binding the contract method 0xa2a2af0b.
Solidity: function depositAndSwap(address to, uint256 chainId, address token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) returns()
func (*L1BridgeZapTransactorSession) DepositETH ¶
func (_L1BridgeZap *L1BridgeZapTransactorSession) DepositETH(to common.Address, chainId *big.Int, amount *big.Int) (*types.Transaction, error)
DepositETH is a paid mutator transaction binding the contract method 0xce0b63ce.
Solidity: function depositETH(address to, uint256 chainId, uint256 amount) payable returns()
func (*L1BridgeZapTransactorSession) DepositETHAndSwap ¶
func (_L1BridgeZap *L1BridgeZapTransactorSession) DepositETHAndSwap(to common.Address, chainId *big.Int, amount *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
DepositETHAndSwap is a paid mutator transaction binding the contract method 0xa9fd8c57.
Solidity: function depositETHAndSwap(address to, uint256 chainId, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) payable returns()
func (*L1BridgeZapTransactorSession) Redeem ¶
func (_L1BridgeZap *L1BridgeZapTransactorSession) Redeem(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Redeem is a paid mutator transaction binding the contract method 0xf3f094a1.
Solidity: function redeem(address to, uint256 chainId, address token, uint256 amount) returns()
func (*L1BridgeZapTransactorSession) ZapAndDeposit ¶
func (_L1BridgeZap *L1BridgeZapTransactorSession) ZapAndDeposit(to common.Address, chainId *big.Int, token common.Address, liquidityAmounts []*big.Int, minToMint *big.Int, deadline *big.Int) (*types.Transaction, error)
ZapAndDeposit is a paid mutator transaction binding the contract method 0x394023d9.
Solidity: function zapAndDeposit(address to, uint256 chainId, address token, uint256[] liquidityAmounts, uint256 minToMint, uint256 deadline) returns()
func (*L1BridgeZapTransactorSession) ZapAndDepositAndSwap ¶
func (_L1BridgeZap *L1BridgeZapTransactorSession) ZapAndDepositAndSwap(to common.Address, chainId *big.Int, token common.Address, liquidityAmounts []*big.Int, minToMint *big.Int, liqDeadline *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, swapDeadline *big.Int) (*types.Transaction, error)
ZapAndDepositAndSwap is a paid mutator transaction binding the contract method 0x8054ae3b.
Solidity: function zapAndDepositAndSwap(address to, uint256 chainId, address token, uint256[] liquidityAmounts, uint256 minToMint, uint256 liqDeadline, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 swapDeadline) returns()
type L2BridgeZap ¶
type L2BridgeZap struct { L2BridgeZapCaller // Read-only binding to the contract L2BridgeZapTransactor // Write-only binding to the contract L2BridgeZapFilterer // Log filterer for contract events }
L2BridgeZap is an auto generated Go binding around an Ethereum contract.
func NewL2BridgeZap ¶
func NewL2BridgeZap(address common.Address, backend bind.ContractBackend) (*L2BridgeZap, error)
NewL2BridgeZap creates a new instance of L2BridgeZap, bound to a specific deployed contract.
type L2BridgeZapCaller ¶
type L2BridgeZapCaller struct {
// contains filtered or unexported fields
}
L2BridgeZapCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewL2BridgeZapCaller ¶
func NewL2BridgeZapCaller(address common.Address, caller bind.ContractCaller) (*L2BridgeZapCaller, error)
NewL2BridgeZapCaller creates a new read-only instance of L2BridgeZap, bound to a specific deployed contract.
func (*L2BridgeZapCaller) CalculateSwap ¶
func (_L2BridgeZap *L2BridgeZapCaller) CalculateSwap(opts *bind.CallOpts, token common.Address, tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int) (*big.Int, error)
CalculateSwap is a free data retrieval call binding the contract method 0x798af720.
Solidity: function calculateSwap(address token, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx) view returns(uint256)
func (*L2BridgeZapCaller) SwapMap ¶
func (_L2BridgeZap *L2BridgeZapCaller) SwapMap(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)
SwapMap is a free data retrieval call binding the contract method 0x85528f0b.
Solidity: function swapMap(address ) view returns(address)
func (*L2BridgeZapCaller) SwapTokensMap ¶
func (_L2BridgeZap *L2BridgeZapCaller) SwapTokensMap(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (common.Address, error)
SwapTokensMap is a free data retrieval call binding the contract method 0x393494b8.
Solidity: function swapTokensMap(address , uint256 ) view returns(address)
func (*L2BridgeZapCaller) WETHADDRESS ¶
WETHADDRESS is a free data retrieval call binding the contract method 0x040141e5.
Solidity: function WETH_ADDRESS() view returns(address)
type L2BridgeZapCallerRaw ¶
type L2BridgeZapCallerRaw struct {
Contract *L2BridgeZapCaller // Generic read-only contract binding to access the raw methods on
}
L2BridgeZapCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*L2BridgeZapCallerRaw) Call ¶
func (_L2BridgeZap *L2BridgeZapCallerRaw) 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 L2BridgeZapCallerSession ¶
type L2BridgeZapCallerSession struct { Contract *L2BridgeZapCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
L2BridgeZapCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*L2BridgeZapCallerSession) CalculateSwap ¶
func (_L2BridgeZap *L2BridgeZapCallerSession) CalculateSwap(token common.Address, tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int) (*big.Int, error)
CalculateSwap is a free data retrieval call binding the contract method 0x798af720.
Solidity: function calculateSwap(address token, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx) view returns(uint256)
func (*L2BridgeZapCallerSession) SwapMap ¶
SwapMap is a free data retrieval call binding the contract method 0x85528f0b.
Solidity: function swapMap(address ) view returns(address)
func (*L2BridgeZapCallerSession) SwapTokensMap ¶
func (_L2BridgeZap *L2BridgeZapCallerSession) SwapTokensMap(arg0 common.Address, arg1 *big.Int) (common.Address, error)
SwapTokensMap is a free data retrieval call binding the contract method 0x393494b8.
Solidity: function swapTokensMap(address , uint256 ) view returns(address)
func (*L2BridgeZapCallerSession) WETHADDRESS ¶
func (_L2BridgeZap *L2BridgeZapCallerSession) WETHADDRESS() (common.Address, error)
WETHADDRESS is a free data retrieval call binding the contract method 0x040141e5.
Solidity: function WETH_ADDRESS() view returns(address)
type L2BridgeZapFilterer ¶
type L2BridgeZapFilterer struct {
// contains filtered or unexported fields
}
L2BridgeZapFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewL2BridgeZapFilterer ¶
func NewL2BridgeZapFilterer(address common.Address, filterer bind.ContractFilterer) (*L2BridgeZapFilterer, error)
NewL2BridgeZapFilterer creates a new log filterer instance of L2BridgeZap, bound to a specific deployed contract.
type L2BridgeZapRaw ¶
type L2BridgeZapRaw struct {
Contract *L2BridgeZap // Generic contract binding to access the raw methods on
}
L2BridgeZapRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*L2BridgeZapRaw) Call ¶
func (_L2BridgeZap *L2BridgeZapRaw) 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 (*L2BridgeZapRaw) Transact ¶
func (_L2BridgeZap *L2BridgeZapRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*L2BridgeZapRaw) Transfer ¶
func (_L2BridgeZap *L2BridgeZapRaw) 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 L2BridgeZapSession ¶
type L2BridgeZapSession struct { Contract *L2BridgeZap // 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 }
L2BridgeZapSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*L2BridgeZapSession) CalculateSwap ¶
func (_L2BridgeZap *L2BridgeZapSession) CalculateSwap(token common.Address, tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int) (*big.Int, error)
CalculateSwap is a free data retrieval call binding the contract method 0x798af720.
Solidity: function calculateSwap(address token, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx) view returns(uint256)
func (*L2BridgeZapSession) Deposit ¶
func (_L2BridgeZap *L2BridgeZapSession) Deposit(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x90d25074.
Solidity: function deposit(address to, uint256 chainId, address token, uint256 amount) returns()
func (*L2BridgeZapSession) Redeem ¶
func (_L2BridgeZap *L2BridgeZapSession) Redeem(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Redeem is a paid mutator transaction binding the contract method 0xf3f094a1.
Solidity: function redeem(address to, uint256 chainId, address token, uint256 amount) returns()
func (*L2BridgeZapSession) RedeemAndRemove ¶
func (_L2BridgeZap *L2BridgeZapSession) RedeemAndRemove(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, liqTokenIndex uint8, liqMinAmount *big.Int, liqDeadline *big.Int) (*types.Transaction, error)
RedeemAndRemove is a paid mutator transaction binding the contract method 0x36e712ed.
Solidity: function redeemAndRemove(address to, uint256 chainId, address token, uint256 amount, uint8 liqTokenIndex, uint256 liqMinAmount, uint256 liqDeadline) returns()
func (*L2BridgeZapSession) RedeemAndSwap ¶
func (_L2BridgeZap *L2BridgeZapSession) RedeemAndSwap(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
RedeemAndSwap is a paid mutator transaction binding the contract method 0x839ed90a.
Solidity: function redeemAndSwap(address to, uint256 chainId, address token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) returns()
func (*L2BridgeZapSession) SwapAndRedeem ¶
func (_L2BridgeZap *L2BridgeZapSession) SwapAndRedeem(to common.Address, chainId *big.Int, token common.Address, tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
SwapAndRedeem is a paid mutator transaction binding the contract method 0x4a517a55.
Solidity: function swapAndRedeem(address to, uint256 chainId, address token, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline) returns()
func (*L2BridgeZapSession) SwapAndRedeemAndRemove ¶
func (_L2BridgeZap *L2BridgeZapSession) SwapAndRedeemAndRemove(to common.Address, chainId *big.Int, token common.Address, tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int, minDy *big.Int, deadline *big.Int, liqTokenIndex uint8, liqMinAmount *big.Int, liqDeadline *big.Int) (*types.Transaction, error)
SwapAndRedeemAndRemove is a paid mutator transaction binding the contract method 0x174dc952.
Solidity: function swapAndRedeemAndRemove(address to, uint256 chainId, address token, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline, uint8 liqTokenIndex, uint256 liqMinAmount, uint256 liqDeadline) returns()
func (*L2BridgeZapSession) SwapAndRedeemAndSwap ¶
func (_L2BridgeZap *L2BridgeZapSession) SwapAndRedeemAndSwap(to common.Address, chainId *big.Int, token common.Address, tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int, minDy *big.Int, deadline *big.Int, swapTokenIndexFrom uint8, swapTokenIndexTo uint8, swapMinDy *big.Int, swapDeadline *big.Int) (*types.Transaction, error)
SwapAndRedeemAndSwap is a paid mutator transaction binding the contract method 0x9f330727.
Solidity: function swapAndRedeemAndSwap(address to, uint256 chainId, address token, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline, uint8 swapTokenIndexFrom, uint8 swapTokenIndexTo, uint256 swapMinDy, uint256 swapDeadline) returns()
func (*L2BridgeZapSession) SwapETHAndRedeem ¶
func (_L2BridgeZap *L2BridgeZapSession) SwapETHAndRedeem(to common.Address, chainId *big.Int, token common.Address, tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
SwapETHAndRedeem is a paid mutator transaction binding the contract method 0x65749c9d.
Solidity: function swapETHAndRedeem(address to, uint256 chainId, address token, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline) payable returns()
func (*L2BridgeZapSession) SwapMap ¶
SwapMap is a free data retrieval call binding the contract method 0x85528f0b.
Solidity: function swapMap(address ) view returns(address)
func (*L2BridgeZapSession) SwapTokensMap ¶
func (_L2BridgeZap *L2BridgeZapSession) SwapTokensMap(arg0 common.Address, arg1 *big.Int) (common.Address, error)
SwapTokensMap is a free data retrieval call binding the contract method 0x393494b8.
Solidity: function swapTokensMap(address , uint256 ) view returns(address)
func (*L2BridgeZapSession) WETHADDRESS ¶
func (_L2BridgeZap *L2BridgeZapSession) WETHADDRESS() (common.Address, error)
WETHADDRESS is a free data retrieval call binding the contract method 0x040141e5.
Solidity: function WETH_ADDRESS() view returns(address)
type L2BridgeZapTransactor ¶
type L2BridgeZapTransactor struct {
// contains filtered or unexported fields
}
L2BridgeZapTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewL2BridgeZapTransactor ¶
func NewL2BridgeZapTransactor(address common.Address, transactor bind.ContractTransactor) (*L2BridgeZapTransactor, error)
NewL2BridgeZapTransactor creates a new write-only instance of L2BridgeZap, bound to a specific deployed contract.
func (*L2BridgeZapTransactor) Deposit ¶
func (_L2BridgeZap *L2BridgeZapTransactor) Deposit(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x90d25074.
Solidity: function deposit(address to, uint256 chainId, address token, uint256 amount) returns()
func (*L2BridgeZapTransactor) Redeem ¶
func (_L2BridgeZap *L2BridgeZapTransactor) Redeem(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Redeem is a paid mutator transaction binding the contract method 0xf3f094a1.
Solidity: function redeem(address to, uint256 chainId, address token, uint256 amount) returns()
func (*L2BridgeZapTransactor) RedeemAndRemove ¶
func (_L2BridgeZap *L2BridgeZapTransactor) RedeemAndRemove(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, amount *big.Int, liqTokenIndex uint8, liqMinAmount *big.Int, liqDeadline *big.Int) (*types.Transaction, error)
RedeemAndRemove is a paid mutator transaction binding the contract method 0x36e712ed.
Solidity: function redeemAndRemove(address to, uint256 chainId, address token, uint256 amount, uint8 liqTokenIndex, uint256 liqMinAmount, uint256 liqDeadline) returns()
func (*L2BridgeZapTransactor) RedeemAndSwap ¶
func (_L2BridgeZap *L2BridgeZapTransactor) RedeemAndSwap(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, amount *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
RedeemAndSwap is a paid mutator transaction binding the contract method 0x839ed90a.
Solidity: function redeemAndSwap(address to, uint256 chainId, address token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) returns()
func (*L2BridgeZapTransactor) SwapAndRedeem ¶
func (_L2BridgeZap *L2BridgeZapTransactor) SwapAndRedeem(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
SwapAndRedeem is a paid mutator transaction binding the contract method 0x4a517a55.
Solidity: function swapAndRedeem(address to, uint256 chainId, address token, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline) returns()
func (*L2BridgeZapTransactor) SwapAndRedeemAndRemove ¶
func (_L2BridgeZap *L2BridgeZapTransactor) SwapAndRedeemAndRemove(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int, minDy *big.Int, deadline *big.Int, liqTokenIndex uint8, liqMinAmount *big.Int, liqDeadline *big.Int) (*types.Transaction, error)
SwapAndRedeemAndRemove is a paid mutator transaction binding the contract method 0x174dc952.
Solidity: function swapAndRedeemAndRemove(address to, uint256 chainId, address token, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline, uint8 liqTokenIndex, uint256 liqMinAmount, uint256 liqDeadline) returns()
func (*L2BridgeZapTransactor) SwapAndRedeemAndSwap ¶
func (_L2BridgeZap *L2BridgeZapTransactor) SwapAndRedeemAndSwap(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int, minDy *big.Int, deadline *big.Int, swapTokenIndexFrom uint8, swapTokenIndexTo uint8, swapMinDy *big.Int, swapDeadline *big.Int) (*types.Transaction, error)
SwapAndRedeemAndSwap is a paid mutator transaction binding the contract method 0x9f330727.
Solidity: function swapAndRedeemAndSwap(address to, uint256 chainId, address token, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline, uint8 swapTokenIndexFrom, uint8 swapTokenIndexTo, uint256 swapMinDy, uint256 swapDeadline) returns()
func (*L2BridgeZapTransactor) SwapETHAndRedeem ¶
func (_L2BridgeZap *L2BridgeZapTransactor) SwapETHAndRedeem(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
SwapETHAndRedeem is a paid mutator transaction binding the contract method 0x65749c9d.
Solidity: function swapETHAndRedeem(address to, uint256 chainId, address token, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline) payable returns()
type L2BridgeZapTransactorRaw ¶
type L2BridgeZapTransactorRaw struct {
Contract *L2BridgeZapTransactor // Generic write-only contract binding to access the raw methods on
}
L2BridgeZapTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*L2BridgeZapTransactorRaw) Transact ¶
func (_L2BridgeZap *L2BridgeZapTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*L2BridgeZapTransactorRaw) Transfer ¶
func (_L2BridgeZap *L2BridgeZapTransactorRaw) 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 L2BridgeZapTransactorSession ¶
type L2BridgeZapTransactorSession struct { Contract *L2BridgeZapTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
L2BridgeZapTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*L2BridgeZapTransactorSession) Deposit ¶
func (_L2BridgeZap *L2BridgeZapTransactorSession) Deposit(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x90d25074.
Solidity: function deposit(address to, uint256 chainId, address token, uint256 amount) returns()
func (*L2BridgeZapTransactorSession) Redeem ¶
func (_L2BridgeZap *L2BridgeZapTransactorSession) Redeem(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Redeem is a paid mutator transaction binding the contract method 0xf3f094a1.
Solidity: function redeem(address to, uint256 chainId, address token, uint256 amount) returns()
func (*L2BridgeZapTransactorSession) RedeemAndRemove ¶
func (_L2BridgeZap *L2BridgeZapTransactorSession) RedeemAndRemove(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, liqTokenIndex uint8, liqMinAmount *big.Int, liqDeadline *big.Int) (*types.Transaction, error)
RedeemAndRemove is a paid mutator transaction binding the contract method 0x36e712ed.
Solidity: function redeemAndRemove(address to, uint256 chainId, address token, uint256 amount, uint8 liqTokenIndex, uint256 liqMinAmount, uint256 liqDeadline) returns()
func (*L2BridgeZapTransactorSession) RedeemAndSwap ¶
func (_L2BridgeZap *L2BridgeZapTransactorSession) RedeemAndSwap(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
RedeemAndSwap is a paid mutator transaction binding the contract method 0x839ed90a.
Solidity: function redeemAndSwap(address to, uint256 chainId, address token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) returns()
func (*L2BridgeZapTransactorSession) SwapAndRedeem ¶
func (_L2BridgeZap *L2BridgeZapTransactorSession) SwapAndRedeem(to common.Address, chainId *big.Int, token common.Address, tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
SwapAndRedeem is a paid mutator transaction binding the contract method 0x4a517a55.
Solidity: function swapAndRedeem(address to, uint256 chainId, address token, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline) returns()
func (*L2BridgeZapTransactorSession) SwapAndRedeemAndRemove ¶
func (_L2BridgeZap *L2BridgeZapTransactorSession) SwapAndRedeemAndRemove(to common.Address, chainId *big.Int, token common.Address, tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int, minDy *big.Int, deadline *big.Int, liqTokenIndex uint8, liqMinAmount *big.Int, liqDeadline *big.Int) (*types.Transaction, error)
SwapAndRedeemAndRemove is a paid mutator transaction binding the contract method 0x174dc952.
Solidity: function swapAndRedeemAndRemove(address to, uint256 chainId, address token, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline, uint8 liqTokenIndex, uint256 liqMinAmount, uint256 liqDeadline) returns()
func (*L2BridgeZapTransactorSession) SwapAndRedeemAndSwap ¶
func (_L2BridgeZap *L2BridgeZapTransactorSession) SwapAndRedeemAndSwap(to common.Address, chainId *big.Int, token common.Address, tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int, minDy *big.Int, deadline *big.Int, swapTokenIndexFrom uint8, swapTokenIndexTo uint8, swapMinDy *big.Int, swapDeadline *big.Int) (*types.Transaction, error)
SwapAndRedeemAndSwap is a paid mutator transaction binding the contract method 0x9f330727.
Solidity: function swapAndRedeemAndSwap(address to, uint256 chainId, address token, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline, uint8 swapTokenIndexFrom, uint8 swapTokenIndexTo, uint256 swapMinDy, uint256 swapDeadline) returns()
func (*L2BridgeZapTransactorSession) SwapETHAndRedeem ¶
func (_L2BridgeZap *L2BridgeZapTransactorSession) SwapETHAndRedeem(to common.Address, chainId *big.Int, token common.Address, tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
SwapETHAndRedeem is a paid mutator transaction binding the contract method 0x65749c9d.
Solidity: function swapETHAndRedeem(address to, uint256 chainId, address token, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline) payable returns()
type PoolConfig ¶
type PoolConfig struct { PoolConfigCaller // Read-only binding to the contract PoolConfigTransactor // Write-only binding to the contract PoolConfigFilterer // Log filterer for contract events }
PoolConfig is an auto generated Go binding around an Ethereum contract.
func NewPoolConfig ¶
func NewPoolConfig(address common.Address, backend bind.ContractBackend) (*PoolConfig, error)
NewPoolConfig creates a new instance of PoolConfig, bound to a specific deployed contract.
type PoolConfigCaller ¶
type PoolConfigCaller struct {
// contains filtered or unexported fields
}
PoolConfigCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewPoolConfigCaller ¶
func NewPoolConfigCaller(address common.Address, caller bind.ContractCaller) (*PoolConfigCaller, error)
NewPoolConfigCaller creates a new read-only instance of PoolConfig, bound to a specific deployed contract.
func (*PoolConfigCaller) BRIDGEMANAGERROLE ¶
func (_PoolConfig *PoolConfigCaller) BRIDGEMANAGERROLE(opts *bind.CallOpts) ([32]byte, error)
BRIDGEMANAGERROLE is a free data retrieval call binding the contract method 0xff9106c7.
Solidity: function BRIDGEMANAGER_ROLE() view returns(bytes32)
func (*PoolConfigCaller) DEFAULTADMINROLE ¶
func (_PoolConfig *PoolConfigCaller) 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 (*PoolConfigCaller) GetPoolConfig ¶
func (_PoolConfig *PoolConfigCaller) GetPoolConfig(opts *bind.CallOpts, tokenAddress common.Address, chainID *big.Int) (Struct0, error)
GetPoolConfig is a free data retrieval call binding the contract method 0x72fb43d9.
Solidity: function getPoolConfig(address tokenAddress, uint256 chainID) view returns((address,uint256,address,bool))
func (*PoolConfigCaller) GetRoleAdmin ¶
func (_PoolConfig *PoolConfigCaller) GetRoleAdmin(opts *bind.CallOpts, 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 (*PoolConfigCaller) GetRoleMember ¶
func (_PoolConfig *PoolConfigCaller) 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 (*PoolConfigCaller) GetRoleMemberCount ¶
func (_PoolConfig *PoolConfigCaller) 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 (*PoolConfigCaller) HasRole ¶
func (_PoolConfig *PoolConfigCaller) 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)
type PoolConfigCallerRaw ¶
type PoolConfigCallerRaw struct {
Contract *PoolConfigCaller // Generic read-only contract binding to access the raw methods on
}
PoolConfigCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*PoolConfigCallerRaw) Call ¶
func (_PoolConfig *PoolConfigCallerRaw) 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 PoolConfigCallerSession ¶
type PoolConfigCallerSession struct { Contract *PoolConfigCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
PoolConfigCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*PoolConfigCallerSession) BRIDGEMANAGERROLE ¶
func (_PoolConfig *PoolConfigCallerSession) BRIDGEMANAGERROLE() ([32]byte, error)
BRIDGEMANAGERROLE is a free data retrieval call binding the contract method 0xff9106c7.
Solidity: function BRIDGEMANAGER_ROLE() view returns(bytes32)
func (*PoolConfigCallerSession) DEFAULTADMINROLE ¶
func (_PoolConfig *PoolConfigCallerSession) 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 (*PoolConfigCallerSession) GetPoolConfig ¶
func (_PoolConfig *PoolConfigCallerSession) GetPoolConfig(tokenAddress common.Address, chainID *big.Int) (Struct0, error)
GetPoolConfig is a free data retrieval call binding the contract method 0x72fb43d9.
Solidity: function getPoolConfig(address tokenAddress, uint256 chainID) view returns((address,uint256,address,bool))
func (*PoolConfigCallerSession) GetRoleAdmin ¶
func (_PoolConfig *PoolConfigCallerSession) 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 (*PoolConfigCallerSession) GetRoleMember ¶
func (_PoolConfig *PoolConfigCallerSession) 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 (*PoolConfigCallerSession) GetRoleMemberCount ¶
func (_PoolConfig *PoolConfigCallerSession) 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 (*PoolConfigCallerSession) HasRole ¶
func (_PoolConfig *PoolConfigCallerSession) HasRole(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)
type PoolConfigFilterer ¶
type PoolConfigFilterer struct {
// contains filtered or unexported fields
}
PoolConfigFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewPoolConfigFilterer ¶
func NewPoolConfigFilterer(address common.Address, filterer bind.ContractFilterer) (*PoolConfigFilterer, error)
NewPoolConfigFilterer creates a new log filterer instance of PoolConfig, bound to a specific deployed contract.
func (*PoolConfigFilterer) FilterRoleAdminChanged ¶
func (_PoolConfig *PoolConfigFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*PoolConfigRoleAdminChangedIterator, 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 (*PoolConfigFilterer) FilterRoleGranted ¶
func (_PoolConfig *PoolConfigFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*PoolConfigRoleGrantedIterator, 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 (*PoolConfigFilterer) FilterRoleRevoked ¶
func (_PoolConfig *PoolConfigFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*PoolConfigRoleRevokedIterator, 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 (*PoolConfigFilterer) ParseRoleAdminChanged ¶
func (_PoolConfig *PoolConfigFilterer) ParseRoleAdminChanged(log types.Log) (*PoolConfigRoleAdminChanged, 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 (*PoolConfigFilterer) ParseRoleGranted ¶
func (_PoolConfig *PoolConfigFilterer) ParseRoleGranted(log types.Log) (*PoolConfigRoleGranted, 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 (*PoolConfigFilterer) ParseRoleRevoked ¶
func (_PoolConfig *PoolConfigFilterer) ParseRoleRevoked(log types.Log) (*PoolConfigRoleRevoked, 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 (*PoolConfigFilterer) WatchRoleAdminChanged ¶
func (_PoolConfig *PoolConfigFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *PoolConfigRoleAdminChanged, 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 (*PoolConfigFilterer) WatchRoleGranted ¶
func (_PoolConfig *PoolConfigFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *PoolConfigRoleGranted, 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 (*PoolConfigFilterer) WatchRoleRevoked ¶
func (_PoolConfig *PoolConfigFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *PoolConfigRoleRevoked, 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)
type PoolConfigRaw ¶
type PoolConfigRaw struct {
Contract *PoolConfig // Generic contract binding to access the raw methods on
}
PoolConfigRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*PoolConfigRaw) Call ¶
func (_PoolConfig *PoolConfigRaw) 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 (*PoolConfigRaw) Transact ¶
func (_PoolConfig *PoolConfigRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PoolConfigRaw) Transfer ¶
func (_PoolConfig *PoolConfigRaw) 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 PoolConfigRoleAdminChanged ¶
type PoolConfigRoleAdminChanged struct { Role [32]byte PreviousAdminRole [32]byte NewAdminRole [32]byte Raw types.Log // Blockchain specific contextual infos }
PoolConfigRoleAdminChanged represents a RoleAdminChanged event raised by the PoolConfig contract.
type PoolConfigRoleAdminChangedIterator ¶
type PoolConfigRoleAdminChangedIterator struct { Event *PoolConfigRoleAdminChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PoolConfigRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the PoolConfig contract.
func (*PoolConfigRoleAdminChangedIterator) Close ¶
func (it *PoolConfigRoleAdminChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PoolConfigRoleAdminChangedIterator) Error ¶
func (it *PoolConfigRoleAdminChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PoolConfigRoleAdminChangedIterator) Next ¶
func (it *PoolConfigRoleAdminChangedIterator) 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 PoolConfigRoleGranted ¶
type PoolConfigRoleGranted struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
PoolConfigRoleGranted represents a RoleGranted event raised by the PoolConfig contract.
type PoolConfigRoleGrantedIterator ¶
type PoolConfigRoleGrantedIterator struct { Event *PoolConfigRoleGranted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PoolConfigRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the PoolConfig contract.
func (*PoolConfigRoleGrantedIterator) Close ¶
func (it *PoolConfigRoleGrantedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PoolConfigRoleGrantedIterator) Error ¶
func (it *PoolConfigRoleGrantedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PoolConfigRoleGrantedIterator) Next ¶
func (it *PoolConfigRoleGrantedIterator) 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 PoolConfigRoleRevoked ¶
type PoolConfigRoleRevoked struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
PoolConfigRoleRevoked represents a RoleRevoked event raised by the PoolConfig contract.
type PoolConfigRoleRevokedIterator ¶
type PoolConfigRoleRevokedIterator struct { Event *PoolConfigRoleRevoked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PoolConfigRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the PoolConfig contract.
func (*PoolConfigRoleRevokedIterator) Close ¶
func (it *PoolConfigRoleRevokedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PoolConfigRoleRevokedIterator) Error ¶
func (it *PoolConfigRoleRevokedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PoolConfigRoleRevokedIterator) Next ¶
func (it *PoolConfigRoleRevokedIterator) 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 PoolConfigSession ¶
type PoolConfigSession struct { Contract *PoolConfig // 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 }
PoolConfigSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*PoolConfigSession) BRIDGEMANAGERROLE ¶
func (_PoolConfig *PoolConfigSession) BRIDGEMANAGERROLE() ([32]byte, error)
BRIDGEMANAGERROLE is a free data retrieval call binding the contract method 0xff9106c7.
Solidity: function BRIDGEMANAGER_ROLE() view returns(bytes32)
func (*PoolConfigSession) DEFAULTADMINROLE ¶
func (_PoolConfig *PoolConfigSession) 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 (*PoolConfigSession) GetPoolConfig ¶
func (_PoolConfig *PoolConfigSession) GetPoolConfig(tokenAddress common.Address, chainID *big.Int) (Struct0, error)
GetPoolConfig is a free data retrieval call binding the contract method 0x72fb43d9.
Solidity: function getPoolConfig(address tokenAddress, uint256 chainID) view returns((address,uint256,address,bool))
func (*PoolConfigSession) GetRoleAdmin ¶
func (_PoolConfig *PoolConfigSession) 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 (*PoolConfigSession) GetRoleMember ¶
func (_PoolConfig *PoolConfigSession) 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 (*PoolConfigSession) GetRoleMemberCount ¶
func (_PoolConfig *PoolConfigSession) 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 (*PoolConfigSession) GrantRole ¶
func (_PoolConfig *PoolConfigSession) 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 (*PoolConfigSession) HasRole ¶
HasRole is a free data retrieval call binding the contract method 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*PoolConfigSession) RenounceRole ¶
func (_PoolConfig *PoolConfigSession) 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 (*PoolConfigSession) RevokeRole ¶
func (_PoolConfig *PoolConfigSession) 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 (*PoolConfigSession) SetPoolConfig ¶
func (_PoolConfig *PoolConfigSession) SetPoolConfig(tokenAddress common.Address, chainID *big.Int, poolAddress common.Address, metaswap bool) (*types.Transaction, error)
SetPoolConfig is a paid mutator transaction binding the contract method 0x7e355e5e.
Solidity: function setPoolConfig(address tokenAddress, uint256 chainID, address poolAddress, bool metaswap) returns((address,uint256,address,bool))
type PoolConfigTransactor ¶
type PoolConfigTransactor struct {
// contains filtered or unexported fields
}
PoolConfigTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewPoolConfigTransactor ¶
func NewPoolConfigTransactor(address common.Address, transactor bind.ContractTransactor) (*PoolConfigTransactor, error)
NewPoolConfigTransactor creates a new write-only instance of PoolConfig, bound to a specific deployed contract.
func (*PoolConfigTransactor) GrantRole ¶
func (_PoolConfig *PoolConfigTransactor) 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 (*PoolConfigTransactor) RenounceRole ¶
func (_PoolConfig *PoolConfigTransactor) 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 (*PoolConfigTransactor) RevokeRole ¶
func (_PoolConfig *PoolConfigTransactor) 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 (*PoolConfigTransactor) SetPoolConfig ¶
func (_PoolConfig *PoolConfigTransactor) SetPoolConfig(opts *bind.TransactOpts, tokenAddress common.Address, chainID *big.Int, poolAddress common.Address, metaswap bool) (*types.Transaction, error)
SetPoolConfig is a paid mutator transaction binding the contract method 0x7e355e5e.
Solidity: function setPoolConfig(address tokenAddress, uint256 chainID, address poolAddress, bool metaswap) returns((address,uint256,address,bool))
type PoolConfigTransactorRaw ¶
type PoolConfigTransactorRaw struct {
Contract *PoolConfigTransactor // Generic write-only contract binding to access the raw methods on
}
PoolConfigTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*PoolConfigTransactorRaw) Transact ¶
func (_PoolConfig *PoolConfigTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PoolConfigTransactorRaw) Transfer ¶
func (_PoolConfig *PoolConfigTransactorRaw) 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 PoolConfigTransactorSession ¶
type PoolConfigTransactorSession struct { Contract *PoolConfigTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
PoolConfigTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*PoolConfigTransactorSession) GrantRole ¶
func (_PoolConfig *PoolConfigTransactorSession) 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 (*PoolConfigTransactorSession) RenounceRole ¶
func (_PoolConfig *PoolConfigTransactorSession) 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 (*PoolConfigTransactorSession) RevokeRole ¶
func (_PoolConfig *PoolConfigTransactorSession) 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 (*PoolConfigTransactorSession) SetPoolConfig ¶
func (_PoolConfig *PoolConfigTransactorSession) SetPoolConfig(tokenAddress common.Address, chainID *big.Int, poolAddress common.Address, metaswap bool) (*types.Transaction, error)
SetPoolConfig is a paid mutator transaction binding the contract method 0x7e355e5e.
Solidity: function setPoolConfig(address tokenAddress, uint256 chainID, address poolAddress, bool metaswap) returns((address,uint256,address,bool))
type Struct0 ¶
type Struct0 struct { TokenAddress common.Address ChainId *big.Int PoolAddress common.Address Metaswap bool }
Struct0 is an auto generated low-level Go binding around an user-defined struct.
type SynapseBridge ¶
type SynapseBridge struct { SynapseBridgeCaller // Read-only binding to the contract SynapseBridgeTransactor // Write-only binding to the contract SynapseBridgeFilterer // Log filterer for contract events }
SynapseBridge is an auto generated Go binding around an Ethereum contract.
func NewSynapseBridge ¶
func NewSynapseBridge(address common.Address, backend bind.ContractBackend) (*SynapseBridge, error)
NewSynapseBridge creates a new instance of SynapseBridge, bound to a specific deployed contract.
type SynapseBridgeAdminChanged ¶
type SynapseBridgeAdminChanged struct { PreviousAdmin common.Address NewAdmin common.Address Raw types.Log // Blockchain specific contextual infos }
SynapseBridgeAdminChanged represents a AdminChanged event raised by the SynapseBridge contract.
type SynapseBridgeAdminChangedIterator ¶
type SynapseBridgeAdminChangedIterator struct { Event *SynapseBridgeAdminChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SynapseBridgeAdminChangedIterator is returned from FilterAdminChanged and is used to iterate over the raw logs and unpacked data for AdminChanged events raised by the SynapseBridge contract.
func (*SynapseBridgeAdminChangedIterator) Close ¶
func (it *SynapseBridgeAdminChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SynapseBridgeAdminChangedIterator) Error ¶
func (it *SynapseBridgeAdminChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SynapseBridgeAdminChangedIterator) Next ¶
func (it *SynapseBridgeAdminChangedIterator) 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 SynapseBridgeCaller ¶
type SynapseBridgeCaller struct {
// contains filtered or unexported fields
}
SynapseBridgeCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewSynapseBridgeCaller ¶
func NewSynapseBridgeCaller(address common.Address, caller bind.ContractCaller) (*SynapseBridgeCaller, error)
NewSynapseBridgeCaller creates a new read-only instance of SynapseBridge, bound to a specific deployed contract.
func (*SynapseBridgeCaller) BridgeVersion ¶
BridgeVersion is a free data retrieval call binding the contract method 0xac865626.
Solidity: function bridgeVersion() view returns(uint256)
func (*SynapseBridgeCaller) ChainGasAmount ¶
ChainGasAmount is a free data retrieval call binding the contract method 0xe00a83e0.
Solidity: function chainGasAmount() view returns(uint256)
func (*SynapseBridgeCaller) DEFAULTADMINROLE ¶
func (_SynapseBridge *SynapseBridgeCaller) 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 (*SynapseBridgeCaller) GOVERNANCEROLE ¶
func (_SynapseBridge *SynapseBridgeCaller) GOVERNANCEROLE(opts *bind.CallOpts) ([32]byte, error)
GOVERNANCEROLE is a free data retrieval call binding the contract method 0xf36c8f5c.
Solidity: function GOVERNANCE_ROLE() view returns(bytes32)
func (*SynapseBridgeCaller) GetFeeBalance ¶
func (_SynapseBridge *SynapseBridgeCaller) GetFeeBalance(opts *bind.CallOpts, tokenAddress common.Address) (*big.Int, error)
GetFeeBalance is a free data retrieval call binding the contract method 0xc78f6803.
Solidity: function getFeeBalance(address tokenAddress) view returns(uint256)
func (*SynapseBridgeCaller) GetRoleAdmin ¶
func (_SynapseBridge *SynapseBridgeCaller) GetRoleAdmin(opts *bind.CallOpts, 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 (*SynapseBridgeCaller) GetRoleMember ¶
func (_SynapseBridge *SynapseBridgeCaller) 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 (*SynapseBridgeCaller) GetRoleMemberCount ¶
func (_SynapseBridge *SynapseBridgeCaller) 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 (*SynapseBridgeCaller) HasRole ¶
func (_SynapseBridge *SynapseBridgeCaller) 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 (*SynapseBridgeCaller) KappaExists ¶
func (_SynapseBridge *SynapseBridgeCaller) KappaExists(opts *bind.CallOpts, kappa [32]byte) (bool, error)
KappaExists is a free data retrieval call binding the contract method 0x2fe87b95.
Solidity: function kappaExists(bytes32 kappa) view returns(bool)
func (*SynapseBridgeCaller) NODEGROUPROLE ¶
func (_SynapseBridge *SynapseBridgeCaller) NODEGROUPROLE(opts *bind.CallOpts) ([32]byte, error)
NODEGROUPROLE is a free data retrieval call binding the contract method 0xf3befd01.
Solidity: function NODEGROUP_ROLE() view returns(bytes32)
func (*SynapseBridgeCaller) Paused ¶
func (_SynapseBridge *SynapseBridgeCaller) 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 (*SynapseBridgeCaller) StartBlockNumber ¶
StartBlockNumber is a free data retrieval call binding the contract method 0x498a4c2d.
Solidity: function startBlockNumber() view returns(uint256)
func (*SynapseBridgeCaller) WETHADDRESS ¶
WETHADDRESS is a free data retrieval call binding the contract method 0x040141e5.
Solidity: function WETH_ADDRESS() view returns(address)
type SynapseBridgeCallerRaw ¶
type SynapseBridgeCallerRaw struct {
Contract *SynapseBridgeCaller // Generic read-only contract binding to access the raw methods on
}
SynapseBridgeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*SynapseBridgeCallerRaw) Call ¶
func (_SynapseBridge *SynapseBridgeCallerRaw) 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 SynapseBridgeCallerSession ¶
type SynapseBridgeCallerSession struct { Contract *SynapseBridgeCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
SynapseBridgeCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*SynapseBridgeCallerSession) BridgeVersion ¶
func (_SynapseBridge *SynapseBridgeCallerSession) BridgeVersion() (*big.Int, error)
BridgeVersion is a free data retrieval call binding the contract method 0xac865626.
Solidity: function bridgeVersion() view returns(uint256)
func (*SynapseBridgeCallerSession) ChainGasAmount ¶
func (_SynapseBridge *SynapseBridgeCallerSession) ChainGasAmount() (*big.Int, error)
ChainGasAmount is a free data retrieval call binding the contract method 0xe00a83e0.
Solidity: function chainGasAmount() view returns(uint256)
func (*SynapseBridgeCallerSession) DEFAULTADMINROLE ¶
func (_SynapseBridge *SynapseBridgeCallerSession) 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 (*SynapseBridgeCallerSession) GOVERNANCEROLE ¶
func (_SynapseBridge *SynapseBridgeCallerSession) GOVERNANCEROLE() ([32]byte, error)
GOVERNANCEROLE is a free data retrieval call binding the contract method 0xf36c8f5c.
Solidity: function GOVERNANCE_ROLE() view returns(bytes32)
func (*SynapseBridgeCallerSession) GetFeeBalance ¶
func (_SynapseBridge *SynapseBridgeCallerSession) GetFeeBalance(tokenAddress common.Address) (*big.Int, error)
GetFeeBalance is a free data retrieval call binding the contract method 0xc78f6803.
Solidity: function getFeeBalance(address tokenAddress) view returns(uint256)
func (*SynapseBridgeCallerSession) GetRoleAdmin ¶
func (_SynapseBridge *SynapseBridgeCallerSession) 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 (*SynapseBridgeCallerSession) GetRoleMember ¶
func (_SynapseBridge *SynapseBridgeCallerSession) 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 (*SynapseBridgeCallerSession) GetRoleMemberCount ¶
func (_SynapseBridge *SynapseBridgeCallerSession) 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 (*SynapseBridgeCallerSession) HasRole ¶
func (_SynapseBridge *SynapseBridgeCallerSession) HasRole(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 (*SynapseBridgeCallerSession) KappaExists ¶
func (_SynapseBridge *SynapseBridgeCallerSession) KappaExists(kappa [32]byte) (bool, error)
KappaExists is a free data retrieval call binding the contract method 0x2fe87b95.
Solidity: function kappaExists(bytes32 kappa) view returns(bool)
func (*SynapseBridgeCallerSession) NODEGROUPROLE ¶
func (_SynapseBridge *SynapseBridgeCallerSession) NODEGROUPROLE() ([32]byte, error)
NODEGROUPROLE is a free data retrieval call binding the contract method 0xf3befd01.
Solidity: function NODEGROUP_ROLE() view returns(bytes32)
func (*SynapseBridgeCallerSession) Paused ¶
func (_SynapseBridge *SynapseBridgeCallerSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*SynapseBridgeCallerSession) StartBlockNumber ¶
func (_SynapseBridge *SynapseBridgeCallerSession) StartBlockNumber() (*big.Int, error)
StartBlockNumber is a free data retrieval call binding the contract method 0x498a4c2d.
Solidity: function startBlockNumber() view returns(uint256)
func (*SynapseBridgeCallerSession) WETHADDRESS ¶
func (_SynapseBridge *SynapseBridgeCallerSession) WETHADDRESS() (common.Address, error)
WETHADDRESS is a free data retrieval call binding the contract method 0x040141e5.
Solidity: function WETH_ADDRESS() view returns(address)
type SynapseBridgeFilterer ¶
type SynapseBridgeFilterer struct {
// contains filtered or unexported fields
}
SynapseBridgeFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewSynapseBridgeFilterer ¶
func NewSynapseBridgeFilterer(address common.Address, filterer bind.ContractFilterer) (*SynapseBridgeFilterer, error)
NewSynapseBridgeFilterer creates a new log filterer instance of SynapseBridge, bound to a specific deployed contract.
func (*SynapseBridgeFilterer) FilterAdminChanged ¶
func (_SynapseBridge *SynapseBridgeFilterer) FilterAdminChanged(opts *bind.FilterOpts) (*SynapseBridgeAdminChangedIterator, error)
FilterAdminChanged is a free log retrieval operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
Solidity: event AdminChanged(address previousAdmin, address newAdmin)
func (*SynapseBridgeFilterer) FilterPaused ¶
func (_SynapseBridge *SynapseBridgeFilterer) FilterPaused(opts *bind.FilterOpts) (*SynapseBridgePausedIterator, error)
FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*SynapseBridgeFilterer) FilterRoleAdminChanged ¶
func (_SynapseBridge *SynapseBridgeFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*SynapseBridgeRoleAdminChangedIterator, 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 (*SynapseBridgeFilterer) FilterRoleGranted ¶
func (_SynapseBridge *SynapseBridgeFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*SynapseBridgeRoleGrantedIterator, 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 (*SynapseBridgeFilterer) FilterRoleRevoked ¶
func (_SynapseBridge *SynapseBridgeFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*SynapseBridgeRoleRevokedIterator, 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 (*SynapseBridgeFilterer) FilterTokenDeposit ¶
func (_SynapseBridge *SynapseBridgeFilterer) FilterTokenDeposit(opts *bind.FilterOpts, to []common.Address) (*SynapseBridgeTokenDepositIterator, error)
FilterTokenDeposit is a free log retrieval operation binding the contract event 0xda5273705dbef4bf1b902a131c2eac086b7e1476a8ab0cb4da08af1fe1bd8e3b.
Solidity: event TokenDeposit(address indexed to, uint256 chainId, address token, uint256 amount)
func (*SynapseBridgeFilterer) FilterTokenDepositAndSwap ¶
func (_SynapseBridge *SynapseBridgeFilterer) FilterTokenDepositAndSwap(opts *bind.FilterOpts, to []common.Address) (*SynapseBridgeTokenDepositAndSwapIterator, error)
FilterTokenDepositAndSwap is a free log retrieval operation binding the contract event 0x79c15604b92ef54d3f61f0c40caab8857927ca3d5092367163b4562c1699eb5f.
Solidity: event TokenDepositAndSwap(address indexed to, uint256 chainId, address token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline)
func (*SynapseBridgeFilterer) FilterTokenMint ¶
func (_SynapseBridge *SynapseBridgeFilterer) FilterTokenMint(opts *bind.FilterOpts, to []common.Address, kappa [][32]byte) (*SynapseBridgeTokenMintIterator, error)
FilterTokenMint is a free log retrieval operation binding the contract event 0xbf14b9fde87f6e1c29a7e0787ad1d0d64b4648d8ae63da21524d9fd0f283dd38.
Solidity: event TokenMint(address indexed to, address token, uint256 amount, uint256 fee, bytes32 indexed kappa)
func (*SynapseBridgeFilterer) FilterTokenMintAndSwap ¶
func (_SynapseBridge *SynapseBridgeFilterer) FilterTokenMintAndSwap(opts *bind.FilterOpts, to []common.Address, kappa [][32]byte) (*SynapseBridgeTokenMintAndSwapIterator, error)
FilterTokenMintAndSwap is a free log retrieval operation binding the contract event 0x4f56ec39e98539920503fd54ee56ae0cbebe9eb15aa778f18de67701eeae7c65.
Solidity: event TokenMintAndSwap(address indexed to, address token, uint256 amount, uint256 fee, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline, bool swapSuccess, bytes32 indexed kappa)
func (*SynapseBridgeFilterer) FilterTokenRedeem ¶
func (_SynapseBridge *SynapseBridgeFilterer) FilterTokenRedeem(opts *bind.FilterOpts, to []common.Address) (*SynapseBridgeTokenRedeemIterator, error)
FilterTokenRedeem is a free log retrieval operation binding the contract event 0xdc5bad4651c5fbe9977a696aadc65996c468cde1448dd468ec0d83bf61c4b57c.
Solidity: event TokenRedeem(address indexed to, uint256 chainId, address token, uint256 amount)
func (*SynapseBridgeFilterer) FilterTokenRedeemAndRemove ¶
func (_SynapseBridge *SynapseBridgeFilterer) FilterTokenRedeemAndRemove(opts *bind.FilterOpts, to []common.Address) (*SynapseBridgeTokenRedeemAndRemoveIterator, error)
FilterTokenRedeemAndRemove is a free log retrieval operation binding the contract event 0x9a7024cde1920aa50cdde09ca396229e8c4d530d5cfdc6233590def70a94408c.
Solidity: event TokenRedeemAndRemove(address indexed to, uint256 chainId, address token, uint256 amount, uint8 swapTokenIndex, uint256 swapMinAmount, uint256 swapDeadline)
func (*SynapseBridgeFilterer) FilterTokenRedeemAndSwap ¶
func (_SynapseBridge *SynapseBridgeFilterer) FilterTokenRedeemAndSwap(opts *bind.FilterOpts, to []common.Address) (*SynapseBridgeTokenRedeemAndSwapIterator, error)
FilterTokenRedeemAndSwap is a free log retrieval operation binding the contract event 0x91f25e9be0134ec851830e0e76dc71e06f9dade75a9b84e9524071dbbc319425.
Solidity: event TokenRedeemAndSwap(address indexed to, uint256 chainId, address token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline)
func (*SynapseBridgeFilterer) FilterTokenWithdraw ¶
func (_SynapseBridge *SynapseBridgeFilterer) FilterTokenWithdraw(opts *bind.FilterOpts, to []common.Address, kappa [][32]byte) (*SynapseBridgeTokenWithdrawIterator, error)
FilterTokenWithdraw is a free log retrieval operation binding the contract event 0x8b0afdc777af6946e53045a4a75212769075d30455a212ac51c9b16f9c5c9b26.
Solidity: event TokenWithdraw(address indexed to, address token, uint256 amount, uint256 fee, bytes32 indexed kappa)
func (*SynapseBridgeFilterer) FilterTokenWithdrawAndRemove ¶
func (_SynapseBridge *SynapseBridgeFilterer) FilterTokenWithdrawAndRemove(opts *bind.FilterOpts, to []common.Address, kappa [][32]byte) (*SynapseBridgeTokenWithdrawAndRemoveIterator, error)
FilterTokenWithdrawAndRemove is a free log retrieval operation binding the contract event 0xc1a608d0f8122d014d03cc915a91d98cef4ebaf31ea3552320430cba05211b6d.
Solidity: event TokenWithdrawAndRemove(address indexed to, address token, uint256 amount, uint256 fee, uint8 swapTokenIndex, uint256 swapMinAmount, uint256 swapDeadline, bool swapSuccess, bytes32 indexed kappa)
func (*SynapseBridgeFilterer) FilterUnpaused ¶
func (_SynapseBridge *SynapseBridgeFilterer) FilterUnpaused(opts *bind.FilterOpts) (*SynapseBridgeUnpausedIterator, error)
FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*SynapseBridgeFilterer) FilterUpgraded ¶
func (_SynapseBridge *SynapseBridgeFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*SynapseBridgeUpgradedIterator, error)
FilterUpgraded is a free log retrieval operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.
Solidity: event Upgraded(address indexed implementation)
func (*SynapseBridgeFilterer) ParseAdminChanged ¶
func (_SynapseBridge *SynapseBridgeFilterer) ParseAdminChanged(log types.Log) (*SynapseBridgeAdminChanged, error)
ParseAdminChanged is a log parse operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
Solidity: event AdminChanged(address previousAdmin, address newAdmin)
func (*SynapseBridgeFilterer) ParsePaused ¶
func (_SynapseBridge *SynapseBridgeFilterer) ParsePaused(log types.Log) (*SynapseBridgePaused, error)
ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*SynapseBridgeFilterer) ParseRoleAdminChanged ¶
func (_SynapseBridge *SynapseBridgeFilterer) ParseRoleAdminChanged(log types.Log) (*SynapseBridgeRoleAdminChanged, 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 (*SynapseBridgeFilterer) ParseRoleGranted ¶
func (_SynapseBridge *SynapseBridgeFilterer) ParseRoleGranted(log types.Log) (*SynapseBridgeRoleGranted, 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 (*SynapseBridgeFilterer) ParseRoleRevoked ¶
func (_SynapseBridge *SynapseBridgeFilterer) ParseRoleRevoked(log types.Log) (*SynapseBridgeRoleRevoked, 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 (*SynapseBridgeFilterer) ParseTokenDeposit ¶
func (_SynapseBridge *SynapseBridgeFilterer) ParseTokenDeposit(log types.Log) (*SynapseBridgeTokenDeposit, error)
ParseTokenDeposit is a log parse operation binding the contract event 0xda5273705dbef4bf1b902a131c2eac086b7e1476a8ab0cb4da08af1fe1bd8e3b.
Solidity: event TokenDeposit(address indexed to, uint256 chainId, address token, uint256 amount)
func (*SynapseBridgeFilterer) ParseTokenDepositAndSwap ¶
func (_SynapseBridge *SynapseBridgeFilterer) ParseTokenDepositAndSwap(log types.Log) (*SynapseBridgeTokenDepositAndSwap, error)
ParseTokenDepositAndSwap is a log parse operation binding the contract event 0x79c15604b92ef54d3f61f0c40caab8857927ca3d5092367163b4562c1699eb5f.
Solidity: event TokenDepositAndSwap(address indexed to, uint256 chainId, address token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline)
func (*SynapseBridgeFilterer) ParseTokenMint ¶
func (_SynapseBridge *SynapseBridgeFilterer) ParseTokenMint(log types.Log) (*SynapseBridgeTokenMint, error)
ParseTokenMint is a log parse operation binding the contract event 0xbf14b9fde87f6e1c29a7e0787ad1d0d64b4648d8ae63da21524d9fd0f283dd38.
Solidity: event TokenMint(address indexed to, address token, uint256 amount, uint256 fee, bytes32 indexed kappa)
func (*SynapseBridgeFilterer) ParseTokenMintAndSwap ¶
func (_SynapseBridge *SynapseBridgeFilterer) ParseTokenMintAndSwap(log types.Log) (*SynapseBridgeTokenMintAndSwap, error)
ParseTokenMintAndSwap is a log parse operation binding the contract event 0x4f56ec39e98539920503fd54ee56ae0cbebe9eb15aa778f18de67701eeae7c65.
Solidity: event TokenMintAndSwap(address indexed to, address token, uint256 amount, uint256 fee, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline, bool swapSuccess, bytes32 indexed kappa)
func (*SynapseBridgeFilterer) ParseTokenRedeem ¶
func (_SynapseBridge *SynapseBridgeFilterer) ParseTokenRedeem(log types.Log) (*SynapseBridgeTokenRedeem, error)
ParseTokenRedeem is a log parse operation binding the contract event 0xdc5bad4651c5fbe9977a696aadc65996c468cde1448dd468ec0d83bf61c4b57c.
Solidity: event TokenRedeem(address indexed to, uint256 chainId, address token, uint256 amount)
func (*SynapseBridgeFilterer) ParseTokenRedeemAndRemove ¶
func (_SynapseBridge *SynapseBridgeFilterer) ParseTokenRedeemAndRemove(log types.Log) (*SynapseBridgeTokenRedeemAndRemove, error)
ParseTokenRedeemAndRemove is a log parse operation binding the contract event 0x9a7024cde1920aa50cdde09ca396229e8c4d530d5cfdc6233590def70a94408c.
Solidity: event TokenRedeemAndRemove(address indexed to, uint256 chainId, address token, uint256 amount, uint8 swapTokenIndex, uint256 swapMinAmount, uint256 swapDeadline)
func (*SynapseBridgeFilterer) ParseTokenRedeemAndSwap ¶
func (_SynapseBridge *SynapseBridgeFilterer) ParseTokenRedeemAndSwap(log types.Log) (*SynapseBridgeTokenRedeemAndSwap, error)
ParseTokenRedeemAndSwap is a log parse operation binding the contract event 0x91f25e9be0134ec851830e0e76dc71e06f9dade75a9b84e9524071dbbc319425.
Solidity: event TokenRedeemAndSwap(address indexed to, uint256 chainId, address token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline)
func (*SynapseBridgeFilterer) ParseTokenWithdraw ¶
func (_SynapseBridge *SynapseBridgeFilterer) ParseTokenWithdraw(log types.Log) (*SynapseBridgeTokenWithdraw, error)
ParseTokenWithdraw is a log parse operation binding the contract event 0x8b0afdc777af6946e53045a4a75212769075d30455a212ac51c9b16f9c5c9b26.
Solidity: event TokenWithdraw(address indexed to, address token, uint256 amount, uint256 fee, bytes32 indexed kappa)
func (*SynapseBridgeFilterer) ParseTokenWithdrawAndRemove ¶
func (_SynapseBridge *SynapseBridgeFilterer) ParseTokenWithdrawAndRemove(log types.Log) (*SynapseBridgeTokenWithdrawAndRemove, error)
ParseTokenWithdrawAndRemove is a log parse operation binding the contract event 0xc1a608d0f8122d014d03cc915a91d98cef4ebaf31ea3552320430cba05211b6d.
Solidity: event TokenWithdrawAndRemove(address indexed to, address token, uint256 amount, uint256 fee, uint8 swapTokenIndex, uint256 swapMinAmount, uint256 swapDeadline, bool swapSuccess, bytes32 indexed kappa)
func (*SynapseBridgeFilterer) ParseUnpaused ¶
func (_SynapseBridge *SynapseBridgeFilterer) ParseUnpaused(log types.Log) (*SynapseBridgeUnpaused, error)
ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*SynapseBridgeFilterer) ParseUpgraded ¶
func (_SynapseBridge *SynapseBridgeFilterer) ParseUpgraded(log types.Log) (*SynapseBridgeUpgraded, error)
ParseUpgraded is a log parse operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.
Solidity: event Upgraded(address indexed implementation)
func (*SynapseBridgeFilterer) WatchAdminChanged ¶
func (_SynapseBridge *SynapseBridgeFilterer) WatchAdminChanged(opts *bind.WatchOpts, sink chan<- *SynapseBridgeAdminChanged) (event.Subscription, error)
WatchAdminChanged is a free log subscription operation binding the contract event 0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f.
Solidity: event AdminChanged(address previousAdmin, address newAdmin)
func (*SynapseBridgeFilterer) WatchPaused ¶
func (_SynapseBridge *SynapseBridgeFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *SynapseBridgePaused) (event.Subscription, error)
WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*SynapseBridgeFilterer) WatchRoleAdminChanged ¶
func (_SynapseBridge *SynapseBridgeFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *SynapseBridgeRoleAdminChanged, 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 (*SynapseBridgeFilterer) WatchRoleGranted ¶
func (_SynapseBridge *SynapseBridgeFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *SynapseBridgeRoleGranted, 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 (*SynapseBridgeFilterer) WatchRoleRevoked ¶
func (_SynapseBridge *SynapseBridgeFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *SynapseBridgeRoleRevoked, 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 (*SynapseBridgeFilterer) WatchTokenDeposit ¶
func (_SynapseBridge *SynapseBridgeFilterer) WatchTokenDeposit(opts *bind.WatchOpts, sink chan<- *SynapseBridgeTokenDeposit, to []common.Address) (event.Subscription, error)
WatchTokenDeposit is a free log subscription operation binding the contract event 0xda5273705dbef4bf1b902a131c2eac086b7e1476a8ab0cb4da08af1fe1bd8e3b.
Solidity: event TokenDeposit(address indexed to, uint256 chainId, address token, uint256 amount)
func (*SynapseBridgeFilterer) WatchTokenDepositAndSwap ¶
func (_SynapseBridge *SynapseBridgeFilterer) WatchTokenDepositAndSwap(opts *bind.WatchOpts, sink chan<- *SynapseBridgeTokenDepositAndSwap, to []common.Address) (event.Subscription, error)
WatchTokenDepositAndSwap is a free log subscription operation binding the contract event 0x79c15604b92ef54d3f61f0c40caab8857927ca3d5092367163b4562c1699eb5f.
Solidity: event TokenDepositAndSwap(address indexed to, uint256 chainId, address token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline)
func (*SynapseBridgeFilterer) WatchTokenMint ¶
func (_SynapseBridge *SynapseBridgeFilterer) WatchTokenMint(opts *bind.WatchOpts, sink chan<- *SynapseBridgeTokenMint, to []common.Address, kappa [][32]byte) (event.Subscription, error)
WatchTokenMint is a free log subscription operation binding the contract event 0xbf14b9fde87f6e1c29a7e0787ad1d0d64b4648d8ae63da21524d9fd0f283dd38.
Solidity: event TokenMint(address indexed to, address token, uint256 amount, uint256 fee, bytes32 indexed kappa)
func (*SynapseBridgeFilterer) WatchTokenMintAndSwap ¶
func (_SynapseBridge *SynapseBridgeFilterer) WatchTokenMintAndSwap(opts *bind.WatchOpts, sink chan<- *SynapseBridgeTokenMintAndSwap, to []common.Address, kappa [][32]byte) (event.Subscription, error)
WatchTokenMintAndSwap is a free log subscription operation binding the contract event 0x4f56ec39e98539920503fd54ee56ae0cbebe9eb15aa778f18de67701eeae7c65.
Solidity: event TokenMintAndSwap(address indexed to, address token, uint256 amount, uint256 fee, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline, bool swapSuccess, bytes32 indexed kappa)
func (*SynapseBridgeFilterer) WatchTokenRedeem ¶
func (_SynapseBridge *SynapseBridgeFilterer) WatchTokenRedeem(opts *bind.WatchOpts, sink chan<- *SynapseBridgeTokenRedeem, to []common.Address) (event.Subscription, error)
WatchTokenRedeem is a free log subscription operation binding the contract event 0xdc5bad4651c5fbe9977a696aadc65996c468cde1448dd468ec0d83bf61c4b57c.
Solidity: event TokenRedeem(address indexed to, uint256 chainId, address token, uint256 amount)
func (*SynapseBridgeFilterer) WatchTokenRedeemAndRemove ¶
func (_SynapseBridge *SynapseBridgeFilterer) WatchTokenRedeemAndRemove(opts *bind.WatchOpts, sink chan<- *SynapseBridgeTokenRedeemAndRemove, to []common.Address) (event.Subscription, error)
WatchTokenRedeemAndRemove is a free log subscription operation binding the contract event 0x9a7024cde1920aa50cdde09ca396229e8c4d530d5cfdc6233590def70a94408c.
Solidity: event TokenRedeemAndRemove(address indexed to, uint256 chainId, address token, uint256 amount, uint8 swapTokenIndex, uint256 swapMinAmount, uint256 swapDeadline)
func (*SynapseBridgeFilterer) WatchTokenRedeemAndSwap ¶
func (_SynapseBridge *SynapseBridgeFilterer) WatchTokenRedeemAndSwap(opts *bind.WatchOpts, sink chan<- *SynapseBridgeTokenRedeemAndSwap, to []common.Address) (event.Subscription, error)
WatchTokenRedeemAndSwap is a free log subscription operation binding the contract event 0x91f25e9be0134ec851830e0e76dc71e06f9dade75a9b84e9524071dbbc319425.
Solidity: event TokenRedeemAndSwap(address indexed to, uint256 chainId, address token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline)
func (*SynapseBridgeFilterer) WatchTokenWithdraw ¶
func (_SynapseBridge *SynapseBridgeFilterer) WatchTokenWithdraw(opts *bind.WatchOpts, sink chan<- *SynapseBridgeTokenWithdraw, to []common.Address, kappa [][32]byte) (event.Subscription, error)
WatchTokenWithdraw is a free log subscription operation binding the contract event 0x8b0afdc777af6946e53045a4a75212769075d30455a212ac51c9b16f9c5c9b26.
Solidity: event TokenWithdraw(address indexed to, address token, uint256 amount, uint256 fee, bytes32 indexed kappa)
func (*SynapseBridgeFilterer) WatchTokenWithdrawAndRemove ¶
func (_SynapseBridge *SynapseBridgeFilterer) WatchTokenWithdrawAndRemove(opts *bind.WatchOpts, sink chan<- *SynapseBridgeTokenWithdrawAndRemove, to []common.Address, kappa [][32]byte) (event.Subscription, error)
WatchTokenWithdrawAndRemove is a free log subscription operation binding the contract event 0xc1a608d0f8122d014d03cc915a91d98cef4ebaf31ea3552320430cba05211b6d.
Solidity: event TokenWithdrawAndRemove(address indexed to, address token, uint256 amount, uint256 fee, uint8 swapTokenIndex, uint256 swapMinAmount, uint256 swapDeadline, bool swapSuccess, bytes32 indexed kappa)
func (*SynapseBridgeFilterer) WatchUnpaused ¶
func (_SynapseBridge *SynapseBridgeFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *SynapseBridgeUnpaused) (event.Subscription, error)
WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*SynapseBridgeFilterer) WatchUpgraded ¶
func (_SynapseBridge *SynapseBridgeFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *SynapseBridgeUpgraded, implementation []common.Address) (event.Subscription, error)
WatchUpgraded is a free log subscription operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.
Solidity: event Upgraded(address indexed implementation)
type SynapseBridgePaused ¶
type SynapseBridgePaused struct { Account common.Address Raw types.Log // Blockchain specific contextual infos }
SynapseBridgePaused represents a Paused event raised by the SynapseBridge contract.
type SynapseBridgePausedIterator ¶
type SynapseBridgePausedIterator struct { Event *SynapseBridgePaused // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SynapseBridgePausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the SynapseBridge contract.
func (*SynapseBridgePausedIterator) Close ¶
func (it *SynapseBridgePausedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SynapseBridgePausedIterator) Error ¶
func (it *SynapseBridgePausedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SynapseBridgePausedIterator) Next ¶
func (it *SynapseBridgePausedIterator) 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 SynapseBridgeRaw ¶
type SynapseBridgeRaw struct {
Contract *SynapseBridge // Generic contract binding to access the raw methods on
}
SynapseBridgeRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*SynapseBridgeRaw) Call ¶
func (_SynapseBridge *SynapseBridgeRaw) 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 (*SynapseBridgeRaw) Transact ¶
func (_SynapseBridge *SynapseBridgeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SynapseBridgeRaw) Transfer ¶
func (_SynapseBridge *SynapseBridgeRaw) 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 SynapseBridgeRoleAdminChanged ¶
type SynapseBridgeRoleAdminChanged struct { Role [32]byte PreviousAdminRole [32]byte NewAdminRole [32]byte Raw types.Log // Blockchain specific contextual infos }
SynapseBridgeRoleAdminChanged represents a RoleAdminChanged event raised by the SynapseBridge contract.
type SynapseBridgeRoleAdminChangedIterator ¶
type SynapseBridgeRoleAdminChangedIterator struct { Event *SynapseBridgeRoleAdminChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SynapseBridgeRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the SynapseBridge contract.
func (*SynapseBridgeRoleAdminChangedIterator) Close ¶
func (it *SynapseBridgeRoleAdminChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SynapseBridgeRoleAdminChangedIterator) Error ¶
func (it *SynapseBridgeRoleAdminChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SynapseBridgeRoleAdminChangedIterator) Next ¶
func (it *SynapseBridgeRoleAdminChangedIterator) 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 SynapseBridgeRoleGranted ¶
type SynapseBridgeRoleGranted struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
SynapseBridgeRoleGranted represents a RoleGranted event raised by the SynapseBridge contract.
type SynapseBridgeRoleGrantedIterator ¶
type SynapseBridgeRoleGrantedIterator struct { Event *SynapseBridgeRoleGranted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SynapseBridgeRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the SynapseBridge contract.
func (*SynapseBridgeRoleGrantedIterator) Close ¶
func (it *SynapseBridgeRoleGrantedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SynapseBridgeRoleGrantedIterator) Error ¶
func (it *SynapseBridgeRoleGrantedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SynapseBridgeRoleGrantedIterator) Next ¶
func (it *SynapseBridgeRoleGrantedIterator) 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 SynapseBridgeRoleRevoked ¶
type SynapseBridgeRoleRevoked struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
SynapseBridgeRoleRevoked represents a RoleRevoked event raised by the SynapseBridge contract.
type SynapseBridgeRoleRevokedIterator ¶
type SynapseBridgeRoleRevokedIterator struct { Event *SynapseBridgeRoleRevoked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SynapseBridgeRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the SynapseBridge contract.
func (*SynapseBridgeRoleRevokedIterator) Close ¶
func (it *SynapseBridgeRoleRevokedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SynapseBridgeRoleRevokedIterator) Error ¶
func (it *SynapseBridgeRoleRevokedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SynapseBridgeRoleRevokedIterator) Next ¶
func (it *SynapseBridgeRoleRevokedIterator) 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 SynapseBridgeSession ¶
type SynapseBridgeSession struct { Contract *SynapseBridge // 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 }
SynapseBridgeSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*SynapseBridgeSession) Admin ¶
func (_SynapseBridge *SynapseBridgeSession) Admin() (*types.Transaction, error)
Admin is a paid mutator transaction binding the contract method 0xf851a440.
Solidity: function admin() returns(address)
func (*SynapseBridgeSession) BridgeVersion ¶
func (_SynapseBridge *SynapseBridgeSession) BridgeVersion() (*big.Int, error)
BridgeVersion is a free data retrieval call binding the contract method 0xac865626.
Solidity: function bridgeVersion() view returns(uint256)
func (*SynapseBridgeSession) ChainGasAmount ¶
func (_SynapseBridge *SynapseBridgeSession) ChainGasAmount() (*big.Int, error)
ChainGasAmount is a free data retrieval call binding the contract method 0xe00a83e0.
Solidity: function chainGasAmount() view returns(uint256)
func (*SynapseBridgeSession) ChangeAdmin ¶
func (_SynapseBridge *SynapseBridgeSession) ChangeAdmin(newAdmin common.Address) (*types.Transaction, error)
ChangeAdmin is a paid mutator transaction binding the contract method 0x8f283970.
Solidity: function changeAdmin(address newAdmin) returns()
func (*SynapseBridgeSession) DEFAULTADMINROLE ¶
func (_SynapseBridge *SynapseBridgeSession) 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 (*SynapseBridgeSession) Deposit ¶
func (_SynapseBridge *SynapseBridgeSession) Deposit(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x90d25074.
Solidity: function deposit(address to, uint256 chainId, address token, uint256 amount) returns()
func (*SynapseBridgeSession) DepositAndSwap ¶
func (_SynapseBridge *SynapseBridgeSession) DepositAndSwap(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
DepositAndSwap is a paid mutator transaction binding the contract method 0xa2a2af0b.
Solidity: function depositAndSwap(address to, uint256 chainId, address token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) returns()
func (*SynapseBridgeSession) Fallback ¶
func (_SynapseBridge *SynapseBridgeSession) Fallback(calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() payable returns()
func (*SynapseBridgeSession) GOVERNANCEROLE ¶
func (_SynapseBridge *SynapseBridgeSession) GOVERNANCEROLE() ([32]byte, error)
GOVERNANCEROLE is a free data retrieval call binding the contract method 0xf36c8f5c.
Solidity: function GOVERNANCE_ROLE() view returns(bytes32)
func (*SynapseBridgeSession) GetFeeBalance ¶
func (_SynapseBridge *SynapseBridgeSession) GetFeeBalance(tokenAddress common.Address) (*big.Int, error)
GetFeeBalance is a free data retrieval call binding the contract method 0xc78f6803.
Solidity: function getFeeBalance(address tokenAddress) view returns(uint256)
func (*SynapseBridgeSession) GetRoleAdmin ¶
func (_SynapseBridge *SynapseBridgeSession) 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 (*SynapseBridgeSession) GetRoleMember ¶
func (_SynapseBridge *SynapseBridgeSession) 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 (*SynapseBridgeSession) GetRoleMemberCount ¶
func (_SynapseBridge *SynapseBridgeSession) 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 (*SynapseBridgeSession) GrantRole ¶
func (_SynapseBridge *SynapseBridgeSession) 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 (*SynapseBridgeSession) HasRole ¶
func (_SynapseBridge *SynapseBridgeSession) HasRole(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 (*SynapseBridgeSession) Implementation ¶
func (_SynapseBridge *SynapseBridgeSession) Implementation() (*types.Transaction, error)
Implementation is a paid mutator transaction binding the contract method 0x5c60da1b.
Solidity: function implementation() returns(address)
func (*SynapseBridgeSession) Initialize ¶
func (_SynapseBridge *SynapseBridgeSession) Initialize() (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.
Solidity: function initialize() returns()
func (*SynapseBridgeSession) KappaExists ¶
func (_SynapseBridge *SynapseBridgeSession) KappaExists(kappa [32]byte) (bool, error)
KappaExists is a free data retrieval call binding the contract method 0x2fe87b95.
Solidity: function kappaExists(bytes32 kappa) view returns(bool)
func (*SynapseBridgeSession) Mint ¶
func (_SynapseBridge *SynapseBridgeSession) Mint(to common.Address, token common.Address, amount *big.Int, fee *big.Int, kappa [32]byte) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x20d7b327.
Solidity: function mint(address to, address token, uint256 amount, uint256 fee, bytes32 kappa) returns()
func (*SynapseBridgeSession) MintAndSwap ¶
func (_SynapseBridge *SynapseBridgeSession) MintAndSwap(to common.Address, token common.Address, amount *big.Int, fee *big.Int, pool common.Address, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int, kappa [32]byte) (*types.Transaction, error)
MintAndSwap is a paid mutator transaction binding the contract method 0x17357892.
Solidity: function mintAndSwap(address to, address token, uint256 amount, uint256 fee, address pool, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline, bytes32 kappa) returns()
func (*SynapseBridgeSession) NODEGROUPROLE ¶
func (_SynapseBridge *SynapseBridgeSession) NODEGROUPROLE() ([32]byte, error)
NODEGROUPROLE is a free data retrieval call binding the contract method 0xf3befd01.
Solidity: function NODEGROUP_ROLE() view returns(bytes32)
func (*SynapseBridgeSession) Pause ¶
func (_SynapseBridge *SynapseBridgeSession) Pause() (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns()
func (*SynapseBridgeSession) Paused ¶
func (_SynapseBridge *SynapseBridgeSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*SynapseBridgeSession) Receive ¶
func (_SynapseBridge *SynapseBridgeSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*SynapseBridgeSession) Redeem ¶
func (_SynapseBridge *SynapseBridgeSession) Redeem(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Redeem is a paid mutator transaction binding the contract method 0xf3f094a1.
Solidity: function redeem(address to, uint256 chainId, address token, uint256 amount) returns()
func (*SynapseBridgeSession) RedeemAndRemove ¶
func (_SynapseBridge *SynapseBridgeSession) RedeemAndRemove(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, swapTokenIndex uint8, swapMinAmount *big.Int, swapDeadline *big.Int) (*types.Transaction, error)
RedeemAndRemove is a paid mutator transaction binding the contract method 0x36e712ed.
Solidity: function redeemAndRemove(address to, uint256 chainId, address token, uint256 amount, uint8 swapTokenIndex, uint256 swapMinAmount, uint256 swapDeadline) returns()
func (*SynapseBridgeSession) RedeemAndSwap ¶
func (_SynapseBridge *SynapseBridgeSession) RedeemAndSwap(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
RedeemAndSwap is a paid mutator transaction binding the contract method 0x839ed90a.
Solidity: function redeemAndSwap(address to, uint256 chainId, address token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) returns()
func (*SynapseBridgeSession) RenounceRole ¶
func (_SynapseBridge *SynapseBridgeSession) 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 (*SynapseBridgeSession) RevokeRole ¶
func (_SynapseBridge *SynapseBridgeSession) 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 (*SynapseBridgeSession) SetChainGasAmount ¶
func (_SynapseBridge *SynapseBridgeSession) SetChainGasAmount(amount *big.Int) (*types.Transaction, error)
SetChainGasAmount is a paid mutator transaction binding the contract method 0xb250fe6b.
Solidity: function setChainGasAmount(uint256 amount) returns()
func (*SynapseBridgeSession) SetWethAddress ¶
func (_SynapseBridge *SynapseBridgeSession) SetWethAddress(_wethAddress common.Address) (*types.Transaction, error)
SetWethAddress is a paid mutator transaction binding the contract method 0xa96e2423.
Solidity: function setWethAddress(address _wethAddress) returns()
func (*SynapseBridgeSession) StartBlockNumber ¶
func (_SynapseBridge *SynapseBridgeSession) StartBlockNumber() (*big.Int, error)
StartBlockNumber is a free data retrieval call binding the contract method 0x498a4c2d.
Solidity: function startBlockNumber() view returns(uint256)
func (*SynapseBridgeSession) Unpause ¶
func (_SynapseBridge *SynapseBridgeSession) Unpause() (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns()
func (*SynapseBridgeSession) UpgradeTo ¶
func (_SynapseBridge *SynapseBridgeSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)
UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.
Solidity: function upgradeTo(address newImplementation) returns()
func (*SynapseBridgeSession) UpgradeToAndCall ¶
func (_SynapseBridge *SynapseBridgeSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)
UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.
Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()
func (*SynapseBridgeSession) WETHADDRESS ¶
func (_SynapseBridge *SynapseBridgeSession) WETHADDRESS() (common.Address, error)
WETHADDRESS is a free data retrieval call binding the contract method 0x040141e5.
Solidity: function WETH_ADDRESS() view returns(address)
func (*SynapseBridgeSession) Withdraw ¶
func (_SynapseBridge *SynapseBridgeSession) Withdraw(to common.Address, token common.Address, amount *big.Int, fee *big.Int, kappa [32]byte) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x1cf5f07f.
Solidity: function withdraw(address to, address token, uint256 amount, uint256 fee, bytes32 kappa) returns()
func (*SynapseBridgeSession) WithdrawAndRemove ¶
func (_SynapseBridge *SynapseBridgeSession) WithdrawAndRemove(to common.Address, token common.Address, amount *big.Int, fee *big.Int, pool common.Address, swapTokenIndex uint8, swapMinAmount *big.Int, swapDeadline *big.Int, kappa [32]byte) (*types.Transaction, error)
WithdrawAndRemove is a paid mutator transaction binding the contract method 0xd57eafac.
Solidity: function withdrawAndRemove(address to, address token, uint256 amount, uint256 fee, address pool, uint8 swapTokenIndex, uint256 swapMinAmount, uint256 swapDeadline, bytes32 kappa) returns()
func (*SynapseBridgeSession) WithdrawFees ¶
func (_SynapseBridge *SynapseBridgeSession) WithdrawFees(token common.Address, to common.Address) (*types.Transaction, error)
WithdrawFees is a paid mutator transaction binding the contract method 0xf2555278.
Solidity: function withdrawFees(address token, address to) returns()
type SynapseBridgeTokenDeposit ¶
type SynapseBridgeTokenDeposit struct { To common.Address ChainId *big.Int Token common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
SynapseBridgeTokenDeposit represents a TokenDeposit event raised by the SynapseBridge contract.
type SynapseBridgeTokenDepositAndSwap ¶
type SynapseBridgeTokenDepositAndSwap struct { To common.Address ChainId *big.Int Token common.Address Amount *big.Int TokenIndexFrom uint8 TokenIndexTo uint8 MinDy *big.Int Deadline *big.Int Raw types.Log // Blockchain specific contextual infos }
SynapseBridgeTokenDepositAndSwap represents a TokenDepositAndSwap event raised by the SynapseBridge contract.
type SynapseBridgeTokenDepositAndSwapIterator ¶
type SynapseBridgeTokenDepositAndSwapIterator struct { Event *SynapseBridgeTokenDepositAndSwap // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SynapseBridgeTokenDepositAndSwapIterator is returned from FilterTokenDepositAndSwap and is used to iterate over the raw logs and unpacked data for TokenDepositAndSwap events raised by the SynapseBridge contract.
func (*SynapseBridgeTokenDepositAndSwapIterator) Close ¶
func (it *SynapseBridgeTokenDepositAndSwapIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SynapseBridgeTokenDepositAndSwapIterator) Error ¶
func (it *SynapseBridgeTokenDepositAndSwapIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SynapseBridgeTokenDepositAndSwapIterator) Next ¶
func (it *SynapseBridgeTokenDepositAndSwapIterator) 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 SynapseBridgeTokenDepositIterator ¶
type SynapseBridgeTokenDepositIterator struct { Event *SynapseBridgeTokenDeposit // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SynapseBridgeTokenDepositIterator is returned from FilterTokenDeposit and is used to iterate over the raw logs and unpacked data for TokenDeposit events raised by the SynapseBridge contract.
func (*SynapseBridgeTokenDepositIterator) Close ¶
func (it *SynapseBridgeTokenDepositIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SynapseBridgeTokenDepositIterator) Error ¶
func (it *SynapseBridgeTokenDepositIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SynapseBridgeTokenDepositIterator) Next ¶
func (it *SynapseBridgeTokenDepositIterator) 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 SynapseBridgeTokenMint ¶
type SynapseBridgeTokenMint struct { To common.Address Token common.Address Amount *big.Int Fee *big.Int Kappa [32]byte Raw types.Log // Blockchain specific contextual infos }
SynapseBridgeTokenMint represents a TokenMint event raised by the SynapseBridge contract.
type SynapseBridgeTokenMintAndSwap ¶
type SynapseBridgeTokenMintAndSwap struct { To common.Address Token common.Address Amount *big.Int Fee *big.Int TokenIndexFrom uint8 TokenIndexTo uint8 MinDy *big.Int Deadline *big.Int SwapSuccess bool Kappa [32]byte Raw types.Log // Blockchain specific contextual infos }
SynapseBridgeTokenMintAndSwap represents a TokenMintAndSwap event raised by the SynapseBridge contract.
type SynapseBridgeTokenMintAndSwapIterator ¶
type SynapseBridgeTokenMintAndSwapIterator struct { Event *SynapseBridgeTokenMintAndSwap // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SynapseBridgeTokenMintAndSwapIterator is returned from FilterTokenMintAndSwap and is used to iterate over the raw logs and unpacked data for TokenMintAndSwap events raised by the SynapseBridge contract.
func (*SynapseBridgeTokenMintAndSwapIterator) Close ¶
func (it *SynapseBridgeTokenMintAndSwapIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SynapseBridgeTokenMintAndSwapIterator) Error ¶
func (it *SynapseBridgeTokenMintAndSwapIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SynapseBridgeTokenMintAndSwapIterator) Next ¶
func (it *SynapseBridgeTokenMintAndSwapIterator) 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 SynapseBridgeTokenMintIterator ¶
type SynapseBridgeTokenMintIterator struct { Event *SynapseBridgeTokenMint // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SynapseBridgeTokenMintIterator is returned from FilterTokenMint and is used to iterate over the raw logs and unpacked data for TokenMint events raised by the SynapseBridge contract.
func (*SynapseBridgeTokenMintIterator) Close ¶
func (it *SynapseBridgeTokenMintIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SynapseBridgeTokenMintIterator) Error ¶
func (it *SynapseBridgeTokenMintIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SynapseBridgeTokenMintIterator) Next ¶
func (it *SynapseBridgeTokenMintIterator) 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 SynapseBridgeTokenRedeem ¶
type SynapseBridgeTokenRedeem struct { To common.Address ChainId *big.Int Token common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
SynapseBridgeTokenRedeem represents a TokenRedeem event raised by the SynapseBridge contract.
type SynapseBridgeTokenRedeemAndRemove ¶
type SynapseBridgeTokenRedeemAndRemove struct { To common.Address ChainId *big.Int Token common.Address Amount *big.Int SwapTokenIndex uint8 SwapMinAmount *big.Int SwapDeadline *big.Int Raw types.Log // Blockchain specific contextual infos }
SynapseBridgeTokenRedeemAndRemove represents a TokenRedeemAndRemove event raised by the SynapseBridge contract.
type SynapseBridgeTokenRedeemAndRemoveIterator ¶
type SynapseBridgeTokenRedeemAndRemoveIterator struct { Event *SynapseBridgeTokenRedeemAndRemove // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SynapseBridgeTokenRedeemAndRemoveIterator is returned from FilterTokenRedeemAndRemove and is used to iterate over the raw logs and unpacked data for TokenRedeemAndRemove events raised by the SynapseBridge contract.
func (*SynapseBridgeTokenRedeemAndRemoveIterator) Close ¶
func (it *SynapseBridgeTokenRedeemAndRemoveIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SynapseBridgeTokenRedeemAndRemoveIterator) Error ¶
func (it *SynapseBridgeTokenRedeemAndRemoveIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SynapseBridgeTokenRedeemAndRemoveIterator) Next ¶
func (it *SynapseBridgeTokenRedeemAndRemoveIterator) 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 SynapseBridgeTokenRedeemAndSwap ¶
type SynapseBridgeTokenRedeemAndSwap struct { To common.Address ChainId *big.Int Token common.Address Amount *big.Int TokenIndexFrom uint8 TokenIndexTo uint8 MinDy *big.Int Deadline *big.Int Raw types.Log // Blockchain specific contextual infos }
SynapseBridgeTokenRedeemAndSwap represents a TokenRedeemAndSwap event raised by the SynapseBridge contract.
type SynapseBridgeTokenRedeemAndSwapIterator ¶
type SynapseBridgeTokenRedeemAndSwapIterator struct { Event *SynapseBridgeTokenRedeemAndSwap // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SynapseBridgeTokenRedeemAndSwapIterator is returned from FilterTokenRedeemAndSwap and is used to iterate over the raw logs and unpacked data for TokenRedeemAndSwap events raised by the SynapseBridge contract.
func (*SynapseBridgeTokenRedeemAndSwapIterator) Close ¶
func (it *SynapseBridgeTokenRedeemAndSwapIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SynapseBridgeTokenRedeemAndSwapIterator) Error ¶
func (it *SynapseBridgeTokenRedeemAndSwapIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SynapseBridgeTokenRedeemAndSwapIterator) Next ¶
func (it *SynapseBridgeTokenRedeemAndSwapIterator) 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 SynapseBridgeTokenRedeemIterator ¶
type SynapseBridgeTokenRedeemIterator struct { Event *SynapseBridgeTokenRedeem // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SynapseBridgeTokenRedeemIterator is returned from FilterTokenRedeem and is used to iterate over the raw logs and unpacked data for TokenRedeem events raised by the SynapseBridge contract.
func (*SynapseBridgeTokenRedeemIterator) Close ¶
func (it *SynapseBridgeTokenRedeemIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SynapseBridgeTokenRedeemIterator) Error ¶
func (it *SynapseBridgeTokenRedeemIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SynapseBridgeTokenRedeemIterator) Next ¶
func (it *SynapseBridgeTokenRedeemIterator) 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 SynapseBridgeTokenWithdraw ¶
type SynapseBridgeTokenWithdraw struct { To common.Address Token common.Address Amount *big.Int Fee *big.Int Kappa [32]byte Raw types.Log // Blockchain specific contextual infos }
SynapseBridgeTokenWithdraw represents a TokenWithdraw event raised by the SynapseBridge contract.
type SynapseBridgeTokenWithdrawAndRemove ¶
type SynapseBridgeTokenWithdrawAndRemove struct { To common.Address Token common.Address Amount *big.Int Fee *big.Int SwapTokenIndex uint8 SwapMinAmount *big.Int SwapDeadline *big.Int SwapSuccess bool Kappa [32]byte Raw types.Log // Blockchain specific contextual infos }
SynapseBridgeTokenWithdrawAndRemove represents a TokenWithdrawAndRemove event raised by the SynapseBridge contract.
type SynapseBridgeTokenWithdrawAndRemoveIterator ¶
type SynapseBridgeTokenWithdrawAndRemoveIterator struct { Event *SynapseBridgeTokenWithdrawAndRemove // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SynapseBridgeTokenWithdrawAndRemoveIterator is returned from FilterTokenWithdrawAndRemove and is used to iterate over the raw logs and unpacked data for TokenWithdrawAndRemove events raised by the SynapseBridge contract.
func (*SynapseBridgeTokenWithdrawAndRemoveIterator) Close ¶
func (it *SynapseBridgeTokenWithdrawAndRemoveIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SynapseBridgeTokenWithdrawAndRemoveIterator) Error ¶
func (it *SynapseBridgeTokenWithdrawAndRemoveIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SynapseBridgeTokenWithdrawAndRemoveIterator) Next ¶
func (it *SynapseBridgeTokenWithdrawAndRemoveIterator) 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 SynapseBridgeTokenWithdrawIterator ¶
type SynapseBridgeTokenWithdrawIterator struct { Event *SynapseBridgeTokenWithdraw // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SynapseBridgeTokenWithdrawIterator is returned from FilterTokenWithdraw and is used to iterate over the raw logs and unpacked data for TokenWithdraw events raised by the SynapseBridge contract.
func (*SynapseBridgeTokenWithdrawIterator) Close ¶
func (it *SynapseBridgeTokenWithdrawIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SynapseBridgeTokenWithdrawIterator) Error ¶
func (it *SynapseBridgeTokenWithdrawIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SynapseBridgeTokenWithdrawIterator) Next ¶
func (it *SynapseBridgeTokenWithdrawIterator) 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 SynapseBridgeTransactor ¶
type SynapseBridgeTransactor struct {
// contains filtered or unexported fields
}
SynapseBridgeTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewSynapseBridgeTransactor ¶
func NewSynapseBridgeTransactor(address common.Address, transactor bind.ContractTransactor) (*SynapseBridgeTransactor, error)
NewSynapseBridgeTransactor creates a new write-only instance of SynapseBridge, bound to a specific deployed contract.
func (*SynapseBridgeTransactor) Admin ¶
func (_SynapseBridge *SynapseBridgeTransactor) Admin(opts *bind.TransactOpts) (*types.Transaction, error)
Admin is a paid mutator transaction binding the contract method 0xf851a440.
Solidity: function admin() returns(address)
func (*SynapseBridgeTransactor) ChangeAdmin ¶
func (_SynapseBridge *SynapseBridgeTransactor) ChangeAdmin(opts *bind.TransactOpts, newAdmin common.Address) (*types.Transaction, error)
ChangeAdmin is a paid mutator transaction binding the contract method 0x8f283970.
Solidity: function changeAdmin(address newAdmin) returns()
func (*SynapseBridgeTransactor) Deposit ¶
func (_SynapseBridge *SynapseBridgeTransactor) Deposit(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x90d25074.
Solidity: function deposit(address to, uint256 chainId, address token, uint256 amount) returns()
func (*SynapseBridgeTransactor) DepositAndSwap ¶
func (_SynapseBridge *SynapseBridgeTransactor) DepositAndSwap(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, amount *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
DepositAndSwap is a paid mutator transaction binding the contract method 0xa2a2af0b.
Solidity: function depositAndSwap(address to, uint256 chainId, address token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) returns()
func (*SynapseBridgeTransactor) Fallback ¶
func (_SynapseBridge *SynapseBridgeTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() payable returns()
func (*SynapseBridgeTransactor) GrantRole ¶
func (_SynapseBridge *SynapseBridgeTransactor) 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 (*SynapseBridgeTransactor) Implementation ¶
func (_SynapseBridge *SynapseBridgeTransactor) Implementation(opts *bind.TransactOpts) (*types.Transaction, error)
Implementation is a paid mutator transaction binding the contract method 0x5c60da1b.
Solidity: function implementation() returns(address)
func (*SynapseBridgeTransactor) Initialize ¶
func (_SynapseBridge *SynapseBridgeTransactor) Initialize(opts *bind.TransactOpts) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.
Solidity: function initialize() returns()
func (*SynapseBridgeTransactor) Mint ¶
func (_SynapseBridge *SynapseBridgeTransactor) Mint(opts *bind.TransactOpts, to common.Address, token common.Address, amount *big.Int, fee *big.Int, kappa [32]byte) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x20d7b327.
Solidity: function mint(address to, address token, uint256 amount, uint256 fee, bytes32 kappa) returns()
func (*SynapseBridgeTransactor) MintAndSwap ¶
func (_SynapseBridge *SynapseBridgeTransactor) MintAndSwap(opts *bind.TransactOpts, to common.Address, token common.Address, amount *big.Int, fee *big.Int, pool common.Address, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int, kappa [32]byte) (*types.Transaction, error)
MintAndSwap is a paid mutator transaction binding the contract method 0x17357892.
Solidity: function mintAndSwap(address to, address token, uint256 amount, uint256 fee, address pool, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline, bytes32 kappa) returns()
func (*SynapseBridgeTransactor) Pause ¶
func (_SynapseBridge *SynapseBridgeTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns()
func (*SynapseBridgeTransactor) Receive ¶
func (_SynapseBridge *SynapseBridgeTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*SynapseBridgeTransactor) Redeem ¶
func (_SynapseBridge *SynapseBridgeTransactor) Redeem(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Redeem is a paid mutator transaction binding the contract method 0xf3f094a1.
Solidity: function redeem(address to, uint256 chainId, address token, uint256 amount) returns()
func (*SynapseBridgeTransactor) RedeemAndRemove ¶
func (_SynapseBridge *SynapseBridgeTransactor) RedeemAndRemove(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, amount *big.Int, swapTokenIndex uint8, swapMinAmount *big.Int, swapDeadline *big.Int) (*types.Transaction, error)
RedeemAndRemove is a paid mutator transaction binding the contract method 0x36e712ed.
Solidity: function redeemAndRemove(address to, uint256 chainId, address token, uint256 amount, uint8 swapTokenIndex, uint256 swapMinAmount, uint256 swapDeadline) returns()
func (*SynapseBridgeTransactor) RedeemAndSwap ¶
func (_SynapseBridge *SynapseBridgeTransactor) RedeemAndSwap(opts *bind.TransactOpts, to common.Address, chainId *big.Int, token common.Address, amount *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
RedeemAndSwap is a paid mutator transaction binding the contract method 0x839ed90a.
Solidity: function redeemAndSwap(address to, uint256 chainId, address token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) returns()
func (*SynapseBridgeTransactor) RenounceRole ¶
func (_SynapseBridge *SynapseBridgeTransactor) 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 (*SynapseBridgeTransactor) RevokeRole ¶
func (_SynapseBridge *SynapseBridgeTransactor) 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 (*SynapseBridgeTransactor) SetChainGasAmount ¶
func (_SynapseBridge *SynapseBridgeTransactor) SetChainGasAmount(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
SetChainGasAmount is a paid mutator transaction binding the contract method 0xb250fe6b.
Solidity: function setChainGasAmount(uint256 amount) returns()
func (*SynapseBridgeTransactor) SetWethAddress ¶
func (_SynapseBridge *SynapseBridgeTransactor) SetWethAddress(opts *bind.TransactOpts, _wethAddress common.Address) (*types.Transaction, error)
SetWethAddress is a paid mutator transaction binding the contract method 0xa96e2423.
Solidity: function setWethAddress(address _wethAddress) returns()
func (*SynapseBridgeTransactor) Unpause ¶
func (_SynapseBridge *SynapseBridgeTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns()
func (*SynapseBridgeTransactor) UpgradeTo ¶
func (_SynapseBridge *SynapseBridgeTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error)
UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.
Solidity: function upgradeTo(address newImplementation) returns()
func (*SynapseBridgeTransactor) UpgradeToAndCall ¶
func (_SynapseBridge *SynapseBridgeTransactor) UpgradeToAndCall(opts *bind.TransactOpts, newImplementation common.Address, data []byte) (*types.Transaction, error)
UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.
Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()
func (*SynapseBridgeTransactor) Withdraw ¶
func (_SynapseBridge *SynapseBridgeTransactor) Withdraw(opts *bind.TransactOpts, to common.Address, token common.Address, amount *big.Int, fee *big.Int, kappa [32]byte) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x1cf5f07f.
Solidity: function withdraw(address to, address token, uint256 amount, uint256 fee, bytes32 kappa) returns()
func (*SynapseBridgeTransactor) WithdrawAndRemove ¶
func (_SynapseBridge *SynapseBridgeTransactor) WithdrawAndRemove(opts *bind.TransactOpts, to common.Address, token common.Address, amount *big.Int, fee *big.Int, pool common.Address, swapTokenIndex uint8, swapMinAmount *big.Int, swapDeadline *big.Int, kappa [32]byte) (*types.Transaction, error)
WithdrawAndRemove is a paid mutator transaction binding the contract method 0xd57eafac.
Solidity: function withdrawAndRemove(address to, address token, uint256 amount, uint256 fee, address pool, uint8 swapTokenIndex, uint256 swapMinAmount, uint256 swapDeadline, bytes32 kappa) returns()
func (*SynapseBridgeTransactor) WithdrawFees ¶
func (_SynapseBridge *SynapseBridgeTransactor) WithdrawFees(opts *bind.TransactOpts, token common.Address, to common.Address) (*types.Transaction, error)
WithdrawFees is a paid mutator transaction binding the contract method 0xf2555278.
Solidity: function withdrawFees(address token, address to) returns()
type SynapseBridgeTransactorRaw ¶
type SynapseBridgeTransactorRaw struct {
Contract *SynapseBridgeTransactor // Generic write-only contract binding to access the raw methods on
}
SynapseBridgeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*SynapseBridgeTransactorRaw) Transact ¶
func (_SynapseBridge *SynapseBridgeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SynapseBridgeTransactorRaw) Transfer ¶
func (_SynapseBridge *SynapseBridgeTransactorRaw) 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 SynapseBridgeTransactorSession ¶
type SynapseBridgeTransactorSession struct { Contract *SynapseBridgeTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
SynapseBridgeTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*SynapseBridgeTransactorSession) Admin ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) Admin() (*types.Transaction, error)
Admin is a paid mutator transaction binding the contract method 0xf851a440.
Solidity: function admin() returns(address)
func (*SynapseBridgeTransactorSession) ChangeAdmin ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) ChangeAdmin(newAdmin common.Address) (*types.Transaction, error)
ChangeAdmin is a paid mutator transaction binding the contract method 0x8f283970.
Solidity: function changeAdmin(address newAdmin) returns()
func (*SynapseBridgeTransactorSession) Deposit ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) Deposit(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x90d25074.
Solidity: function deposit(address to, uint256 chainId, address token, uint256 amount) returns()
func (*SynapseBridgeTransactorSession) DepositAndSwap ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) DepositAndSwap(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
DepositAndSwap is a paid mutator transaction binding the contract method 0xa2a2af0b.
Solidity: function depositAndSwap(address to, uint256 chainId, address token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) returns()
func (*SynapseBridgeTransactorSession) Fallback ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() payable returns()
func (*SynapseBridgeTransactorSession) GrantRole ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) 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 (*SynapseBridgeTransactorSession) Implementation ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) Implementation() (*types.Transaction, error)
Implementation is a paid mutator transaction binding the contract method 0x5c60da1b.
Solidity: function implementation() returns(address)
func (*SynapseBridgeTransactorSession) Initialize ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) Initialize() (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.
Solidity: function initialize() returns()
func (*SynapseBridgeTransactorSession) Mint ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) Mint(to common.Address, token common.Address, amount *big.Int, fee *big.Int, kappa [32]byte) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x20d7b327.
Solidity: function mint(address to, address token, uint256 amount, uint256 fee, bytes32 kappa) returns()
func (*SynapseBridgeTransactorSession) MintAndSwap ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) MintAndSwap(to common.Address, token common.Address, amount *big.Int, fee *big.Int, pool common.Address, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int, kappa [32]byte) (*types.Transaction, error)
MintAndSwap is a paid mutator transaction binding the contract method 0x17357892.
Solidity: function mintAndSwap(address to, address token, uint256 amount, uint256 fee, address pool, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline, bytes32 kappa) returns()
func (*SynapseBridgeTransactorSession) Pause ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) Pause() (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns()
func (*SynapseBridgeTransactorSession) Receive ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*SynapseBridgeTransactorSession) Redeem ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) Redeem(to common.Address, chainId *big.Int, token common.Address, amount *big.Int) (*types.Transaction, error)
Redeem is a paid mutator transaction binding the contract method 0xf3f094a1.
Solidity: function redeem(address to, uint256 chainId, address token, uint256 amount) returns()
func (*SynapseBridgeTransactorSession) RedeemAndRemove ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) RedeemAndRemove(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, swapTokenIndex uint8, swapMinAmount *big.Int, swapDeadline *big.Int) (*types.Transaction, error)
RedeemAndRemove is a paid mutator transaction binding the contract method 0x36e712ed.
Solidity: function redeemAndRemove(address to, uint256 chainId, address token, uint256 amount, uint8 swapTokenIndex, uint256 swapMinAmount, uint256 swapDeadline) returns()
func (*SynapseBridgeTransactorSession) RedeemAndSwap ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) RedeemAndSwap(to common.Address, chainId *big.Int, token common.Address, amount *big.Int, tokenIndexFrom uint8, tokenIndexTo uint8, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)
RedeemAndSwap is a paid mutator transaction binding the contract method 0x839ed90a.
Solidity: function redeemAndSwap(address to, uint256 chainId, address token, uint256 amount, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 minDy, uint256 deadline) returns()
func (*SynapseBridgeTransactorSession) RenounceRole ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) 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 (*SynapseBridgeTransactorSession) RevokeRole ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) 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 (*SynapseBridgeTransactorSession) SetChainGasAmount ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) SetChainGasAmount(amount *big.Int) (*types.Transaction, error)
SetChainGasAmount is a paid mutator transaction binding the contract method 0xb250fe6b.
Solidity: function setChainGasAmount(uint256 amount) returns()
func (*SynapseBridgeTransactorSession) SetWethAddress ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) SetWethAddress(_wethAddress common.Address) (*types.Transaction, error)
SetWethAddress is a paid mutator transaction binding the contract method 0xa96e2423.
Solidity: function setWethAddress(address _wethAddress) returns()
func (*SynapseBridgeTransactorSession) Unpause ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) Unpause() (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns()
func (*SynapseBridgeTransactorSession) UpgradeTo ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)
UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.
Solidity: function upgradeTo(address newImplementation) returns()
func (*SynapseBridgeTransactorSession) UpgradeToAndCall ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)
UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.
Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()
func (*SynapseBridgeTransactorSession) Withdraw ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) Withdraw(to common.Address, token common.Address, amount *big.Int, fee *big.Int, kappa [32]byte) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x1cf5f07f.
Solidity: function withdraw(address to, address token, uint256 amount, uint256 fee, bytes32 kappa) returns()
func (*SynapseBridgeTransactorSession) WithdrawAndRemove ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) WithdrawAndRemove(to common.Address, token common.Address, amount *big.Int, fee *big.Int, pool common.Address, swapTokenIndex uint8, swapMinAmount *big.Int, swapDeadline *big.Int, kappa [32]byte) (*types.Transaction, error)
WithdrawAndRemove is a paid mutator transaction binding the contract method 0xd57eafac.
Solidity: function withdrawAndRemove(address to, address token, uint256 amount, uint256 fee, address pool, uint8 swapTokenIndex, uint256 swapMinAmount, uint256 swapDeadline, bytes32 kappa) returns()
func (*SynapseBridgeTransactorSession) WithdrawFees ¶
func (_SynapseBridge *SynapseBridgeTransactorSession) WithdrawFees(token common.Address, to common.Address) (*types.Transaction, error)
WithdrawFees is a paid mutator transaction binding the contract method 0xf2555278.
Solidity: function withdrawFees(address token, address to) returns()
type SynapseBridgeUnpaused ¶
type SynapseBridgeUnpaused struct { Account common.Address Raw types.Log // Blockchain specific contextual infos }
SynapseBridgeUnpaused represents a Unpaused event raised by the SynapseBridge contract.
type SynapseBridgeUnpausedIterator ¶
type SynapseBridgeUnpausedIterator struct { Event *SynapseBridgeUnpaused // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SynapseBridgeUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the SynapseBridge contract.
func (*SynapseBridgeUnpausedIterator) Close ¶
func (it *SynapseBridgeUnpausedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SynapseBridgeUnpausedIterator) Error ¶
func (it *SynapseBridgeUnpausedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SynapseBridgeUnpausedIterator) Next ¶
func (it *SynapseBridgeUnpausedIterator) 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 SynapseBridgeUpgraded ¶
type SynapseBridgeUpgraded struct { Implementation common.Address Raw types.Log // Blockchain specific contextual infos }
SynapseBridgeUpgraded represents a Upgraded event raised by the SynapseBridge contract.
type SynapseBridgeUpgradedIterator ¶
type SynapseBridgeUpgradedIterator struct { Event *SynapseBridgeUpgraded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SynapseBridgeUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the SynapseBridge contract.
func (*SynapseBridgeUpgradedIterator) Close ¶
func (it *SynapseBridgeUpgradedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SynapseBridgeUpgradedIterator) Error ¶
func (it *SynapseBridgeUpgradedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SynapseBridgeUpgradedIterator) Next ¶
func (it *SynapseBridgeUpgradedIterator) 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.