abis

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BridgeConfigABI = BridgeConfigMetaData.ABI

BridgeConfigABI is the input ABI used to generate the binding from. Deprecated: Use BridgeConfigMetaData.ABI instead.

View Source
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.

View Source
var BridgeZapABI = BridgeZapMetaData.ABI

BridgeZapABI is the input ABI used to generate the binding from. Deprecated: Use BridgeZapMetaData.ABI instead.

View Source
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.

View Source
var L1BridgeZapABI = L1BridgeZapMetaData.ABI

L1BridgeZapABI is the input ABI used to generate the binding from. Deprecated: Use L1BridgeZapMetaData.ABI instead.

View Source
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.

View Source
var L2BridgeZapABI = L2BridgeZapMetaData.ABI

L2BridgeZapABI is the input ABI used to generate the binding from. Deprecated: Use L2BridgeZapMetaData.ABI instead.

View Source
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.

View Source
var MiniChefV2ABI = MiniChefV2MetaData.ABI

MiniChefV2ABI is the input ABI used to generate the binding from. Deprecated: Use MiniChefV2MetaData.ABI instead.

View Source
var MiniChefV2MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"_synapse\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"EmergencyWithdraw\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Harvest\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"allocPoint\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"contractIERC20\",\"name\":\"lpToken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contractIRewarder\",\"name\":\"rewarder\",\"type\":\"address\"}],\"name\":\"LogPoolAddition\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"allocPoint\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"contractIRewarder\",\"name\":\"rewarder\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"overwrite\",\"type\":\"bool\"}],\"name\":\"LogSetPool\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"synapsePerSecond\",\"type\":\"uint256\"}],\"name\":\"LogSynapsePerSecond\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"lastRewardTime\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"lpSupply\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"accSynapsePerShare\",\"type\":\"uint256\"}],\"name\":\"LogUpdatePool\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Withdraw\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"SYNAPSE\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"allocPoint\",\"type\":\"uint256\"},{\"internalType\":\"contractIERC20\",\"name\":\"_lpToken\",\"type\":\"address\"},{\"internalType\":\"contractIRewarder\",\"name\":\"_rewarder\",\"type\":\"address\"}],\"name\":\"add\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"calls\",\"type\":\"bytes[]\"},{\"internalType\":\"bool\",\"name\":\"revertOnFail\",\"type\":\"bool\"}],\"name\":\"batch\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"results\",\"type\":\"bytes[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"claimOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"emergencyWithdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"harvest\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"lpToken\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"pids\",\"type\":\"uint256[]\"}],\"name\":\"massUpdatePools\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"}],\"name\":\"pendingSynapse\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"pending\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"permitToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"poolInfo\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"accSynapsePerShare\",\"type\":\"uint128\"},{\"internalType\":\"uint64\",\"name\":\"lastRewardTime\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"allocPoint\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"pools\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"rewarder\",\"outputs\":[{\"internalType\":\"contractIRewarder\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_pid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_allocPoint\",\"type\":\"uint256\"},{\"internalType\":\"contractIRewarder\",\"name\":\"_rewarder\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"overwrite\",\"type\":\"bool\"}],\"name\":\"set\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_synapsePerSecond\",\"type\":\"uint256\"}],\"name\":\"setSynapsePerSecond\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"synapsePerSecond\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalAllocPoint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"direct\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"renounce\",\"type\":\"bool\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"}],\"name\":\"updatePool\",\"outputs\":[{\"components\":[{\"internalType\":\"uint128\",\"name\":\"accSynapsePerShare\",\"type\":\"uint128\"},{\"internalType\":\"uint64\",\"name\":\"lastRewardTime\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"allocPoint\",\"type\":\"uint64\"}],\"internalType\":\"structMiniChefV2.PoolInfo\",\"name\":\"pool\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"userInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"rewardDebt\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"withdrawAndHarvest\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

MiniChefV2MetaData contains all meta data concerning the MiniChefV2 contract.

View Source
var PoolConfigABI = PoolConfigMetaData.ABI

PoolConfigABI is the input ABI used to generate the binding from. Deprecated: Use PoolConfigMetaData.ABI instead.

View Source
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.

View Source
var SynapseBridgeABI = SynapseBridgeMetaData.ABI

SynapseBridgeABI is the input ABI used to generate the binding from. Deprecated: Use SynapseBridgeMetaData.ABI instead.

View Source
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

Close terminates the iteration process, releasing any pending underlying resources.

func (*BridgeConfigRoleAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeConfigRoleAdminChangedIterator) Next

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

Close terminates the iteration process, releasing any pending underlying resources.

func (*BridgeConfigRoleGrantedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeConfigRoleGrantedIterator) Next

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

Close terminates the iteration process, releasing any pending underlying resources.

func (*BridgeConfigRoleRevokedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeConfigRoleRevokedIterator) Next

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

func NewBridgeZap(address common.Address, backend bind.ContractBackend) (*BridgeZap, error)

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

func (_BridgeZap *BridgeZapCaller) WETHADDRESS(opts *bind.CallOpts) (common.Address, error)

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

func (_BridgeZap *BridgeZapCallerSession) BaseTokens(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 (*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

func (_BridgeZap *BridgeZapSession) BaseTokens(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 (*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

func (_L1BridgeZap *L1BridgeZapCaller) WETHADDRESS(opts *bind.CallOpts) (common.Address, error)

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

func (_L1BridgeZap *L1BridgeZapCallerSession) BaseTokens(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 (*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

func (_L1BridgeZap *L1BridgeZapSession) BaseTokens(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 (*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

func (_L2BridgeZap *L2BridgeZapCaller) WETHADDRESS(opts *bind.CallOpts) (common.Address, error)

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

func (_L2BridgeZap *L2BridgeZapCallerSession) SwapMap(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 (*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

func (_L2BridgeZap *L2BridgeZapSession) SwapMap(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 (*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 MiniChefV2 added in v0.37.0

type MiniChefV2 struct {
	MiniChefV2Caller     // Read-only binding to the contract
	MiniChefV2Transactor // Write-only binding to the contract
	MiniChefV2Filterer   // Log filterer for contract events
}

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

func NewMiniChefV2 added in v0.37.0

func NewMiniChefV2(address common.Address, backend bind.ContractBackend) (*MiniChefV2, error)

NewMiniChefV2 creates a new instance of MiniChefV2, bound to a specific deployed contract.

type MiniChefV2Caller added in v0.37.0

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

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

func NewMiniChefV2Caller added in v0.37.0

func NewMiniChefV2Caller(address common.Address, caller bind.ContractCaller) (*MiniChefV2Caller, error)

NewMiniChefV2Caller creates a new read-only instance of MiniChefV2, bound to a specific deployed contract.

func (*MiniChefV2Caller) LpToken added in v0.37.0

func (_MiniChefV2 *MiniChefV2Caller) LpToken(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

LpToken is a free data retrieval call binding the contract method 0x78ed5d1f.

Solidity: function lpToken(uint256 ) view returns(address)

func (*MiniChefV2Caller) Owner added in v0.37.0

func (_MiniChefV2 *MiniChefV2Caller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*MiniChefV2Caller) PendingOwner added in v0.37.0

func (_MiniChefV2 *MiniChefV2Caller) PendingOwner(opts *bind.CallOpts) (common.Address, error)

PendingOwner is a free data retrieval call binding the contract method 0xe30c3978.

Solidity: function pendingOwner() view returns(address)

func (*MiniChefV2Caller) PendingSynapse added in v0.37.0

func (_MiniChefV2 *MiniChefV2Caller) PendingSynapse(opts *bind.CallOpts, _pid *big.Int, _user common.Address) (*big.Int, error)

PendingSynapse is a free data retrieval call binding the contract method 0x1491f6fe.

Solidity: function pendingSynapse(uint256 _pid, address _user) view returns(uint256 pending)

func (*MiniChefV2Caller) PoolInfo added in v0.37.0

func (_MiniChefV2 *MiniChefV2Caller) PoolInfo(opts *bind.CallOpts, arg0 *big.Int) (struct {
	AccSynapsePerShare *big.Int
	LastRewardTime     uint64
	AllocPoint         uint64
}, error)

PoolInfo is a free data retrieval call binding the contract method 0x1526fe27.

Solidity: function poolInfo(uint256 ) view returns(uint128 accSynapsePerShare, uint64 lastRewardTime, uint64 allocPoint)

func (*MiniChefV2Caller) PoolLength added in v0.37.0

func (_MiniChefV2 *MiniChefV2Caller) PoolLength(opts *bind.CallOpts) (*big.Int, error)

PoolLength is a free data retrieval call binding the contract method 0x081e3eda.

Solidity: function poolLength() view returns(uint256 pools)

func (*MiniChefV2Caller) Rewarder added in v0.37.0

func (_MiniChefV2 *MiniChefV2Caller) Rewarder(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

Rewarder is a free data retrieval call binding the contract method 0xc346253d.

Solidity: function rewarder(uint256 ) view returns(address)

func (*MiniChefV2Caller) SYNAPSE added in v0.37.0

func (_MiniChefV2 *MiniChefV2Caller) SYNAPSE(opts *bind.CallOpts) (common.Address, error)

SYNAPSE is a free data retrieval call binding the contract method 0x5766e717.

Solidity: function SYNAPSE() view returns(address)

func (*MiniChefV2Caller) SynapsePerSecond added in v0.37.0

func (_MiniChefV2 *MiniChefV2Caller) SynapsePerSecond(opts *bind.CallOpts) (*big.Int, error)

SynapsePerSecond is a free data retrieval call binding the contract method 0x4db4addf.

Solidity: function synapsePerSecond() view returns(uint256)

func (*MiniChefV2Caller) TotalAllocPoint added in v0.37.0

func (_MiniChefV2 *MiniChefV2Caller) TotalAllocPoint(opts *bind.CallOpts) (*big.Int, error)

TotalAllocPoint is a free data retrieval call binding the contract method 0x17caf6f1.

Solidity: function totalAllocPoint() view returns(uint256)

func (*MiniChefV2Caller) UserInfo added in v0.37.0

func (_MiniChefV2 *MiniChefV2Caller) UserInfo(opts *bind.CallOpts, arg0 *big.Int, arg1 common.Address) (struct {
	Amount     *big.Int
	RewardDebt *big.Int
}, error)

UserInfo is a free data retrieval call binding the contract method 0x93f1a40b.

Solidity: function userInfo(uint256 , address ) view returns(uint256 amount, int256 rewardDebt)

type MiniChefV2CallerRaw added in v0.37.0

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

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

func (*MiniChefV2CallerRaw) Call added in v0.37.0

func (_MiniChefV2 *MiniChefV2CallerRaw) 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 MiniChefV2CallerSession added in v0.37.0

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

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

func (*MiniChefV2CallerSession) LpToken added in v0.37.0

func (_MiniChefV2 *MiniChefV2CallerSession) LpToken(arg0 *big.Int) (common.Address, error)

LpToken is a free data retrieval call binding the contract method 0x78ed5d1f.

Solidity: function lpToken(uint256 ) view returns(address)

func (*MiniChefV2CallerSession) Owner added in v0.37.0

func (_MiniChefV2 *MiniChefV2CallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*MiniChefV2CallerSession) PendingOwner added in v0.37.0

func (_MiniChefV2 *MiniChefV2CallerSession) PendingOwner() (common.Address, error)

PendingOwner is a free data retrieval call binding the contract method 0xe30c3978.

Solidity: function pendingOwner() view returns(address)

func (*MiniChefV2CallerSession) PendingSynapse added in v0.37.0

func (_MiniChefV2 *MiniChefV2CallerSession) PendingSynapse(_pid *big.Int, _user common.Address) (*big.Int, error)

PendingSynapse is a free data retrieval call binding the contract method 0x1491f6fe.

Solidity: function pendingSynapse(uint256 _pid, address _user) view returns(uint256 pending)

func (*MiniChefV2CallerSession) PoolInfo added in v0.37.0

func (_MiniChefV2 *MiniChefV2CallerSession) PoolInfo(arg0 *big.Int) (struct {
	AccSynapsePerShare *big.Int
	LastRewardTime     uint64
	AllocPoint         uint64
}, error)

PoolInfo is a free data retrieval call binding the contract method 0x1526fe27.

Solidity: function poolInfo(uint256 ) view returns(uint128 accSynapsePerShare, uint64 lastRewardTime, uint64 allocPoint)

func (*MiniChefV2CallerSession) PoolLength added in v0.37.0

func (_MiniChefV2 *MiniChefV2CallerSession) PoolLength() (*big.Int, error)

PoolLength is a free data retrieval call binding the contract method 0x081e3eda.

Solidity: function poolLength() view returns(uint256 pools)

func (*MiniChefV2CallerSession) Rewarder added in v0.37.0

func (_MiniChefV2 *MiniChefV2CallerSession) Rewarder(arg0 *big.Int) (common.Address, error)

Rewarder is a free data retrieval call binding the contract method 0xc346253d.

Solidity: function rewarder(uint256 ) view returns(address)

func (*MiniChefV2CallerSession) SYNAPSE added in v0.37.0

func (_MiniChefV2 *MiniChefV2CallerSession) SYNAPSE() (common.Address, error)

SYNAPSE is a free data retrieval call binding the contract method 0x5766e717.

Solidity: function SYNAPSE() view returns(address)

func (*MiniChefV2CallerSession) SynapsePerSecond added in v0.37.0

func (_MiniChefV2 *MiniChefV2CallerSession) SynapsePerSecond() (*big.Int, error)

SynapsePerSecond is a free data retrieval call binding the contract method 0x4db4addf.

Solidity: function synapsePerSecond() view returns(uint256)

func (*MiniChefV2CallerSession) TotalAllocPoint added in v0.37.0

func (_MiniChefV2 *MiniChefV2CallerSession) TotalAllocPoint() (*big.Int, error)

TotalAllocPoint is a free data retrieval call binding the contract method 0x17caf6f1.

Solidity: function totalAllocPoint() view returns(uint256)

func (*MiniChefV2CallerSession) UserInfo added in v0.37.0

func (_MiniChefV2 *MiniChefV2CallerSession) UserInfo(arg0 *big.Int, arg1 common.Address) (struct {
	Amount     *big.Int
	RewardDebt *big.Int
}, error)

UserInfo is a free data retrieval call binding the contract method 0x93f1a40b.

Solidity: function userInfo(uint256 , address ) view returns(uint256 amount, int256 rewardDebt)

type MiniChefV2Deposit added in v0.37.0

type MiniChefV2Deposit struct {
	User   common.Address
	Pid    *big.Int
	Amount *big.Int
	To     common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

MiniChefV2Deposit represents a Deposit event raised by the MiniChefV2 contract.

type MiniChefV2DepositIterator added in v0.37.0

type MiniChefV2DepositIterator struct {
	Event *MiniChefV2Deposit // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

MiniChefV2DepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the MiniChefV2 contract.

func (*MiniChefV2DepositIterator) Close added in v0.37.0

func (it *MiniChefV2DepositIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*MiniChefV2DepositIterator) Error added in v0.37.0

func (it *MiniChefV2DepositIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*MiniChefV2DepositIterator) Next added in v0.37.0

func (it *MiniChefV2DepositIterator) 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 MiniChefV2EmergencyWithdraw added in v0.37.0

type MiniChefV2EmergencyWithdraw struct {
	User   common.Address
	Pid    *big.Int
	Amount *big.Int
	To     common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

MiniChefV2EmergencyWithdraw represents a EmergencyWithdraw event raised by the MiniChefV2 contract.

type MiniChefV2EmergencyWithdrawIterator added in v0.37.0

type MiniChefV2EmergencyWithdrawIterator struct {
	Event *MiniChefV2EmergencyWithdraw // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

MiniChefV2EmergencyWithdrawIterator is returned from FilterEmergencyWithdraw and is used to iterate over the raw logs and unpacked data for EmergencyWithdraw events raised by the MiniChefV2 contract.

func (*MiniChefV2EmergencyWithdrawIterator) Close added in v0.37.0

Close terminates the iteration process, releasing any pending underlying resources.

func (*MiniChefV2EmergencyWithdrawIterator) Error added in v0.37.0

Error returns any retrieval or parsing error occurred during filtering.

func (*MiniChefV2EmergencyWithdrawIterator) Next added in v0.37.0

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 MiniChefV2Filterer added in v0.37.0

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

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

func NewMiniChefV2Filterer added in v0.37.0

func NewMiniChefV2Filterer(address common.Address, filterer bind.ContractFilterer) (*MiniChefV2Filterer, error)

NewMiniChefV2Filterer creates a new log filterer instance of MiniChefV2, bound to a specific deployed contract.

func (*MiniChefV2Filterer) FilterDeposit added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) FilterDeposit(opts *bind.FilterOpts, user []common.Address, pid []*big.Int, to []common.Address) (*MiniChefV2DepositIterator, error)

FilterDeposit is a free log retrieval operation binding the contract event 0x02d7e648dd130fc184d383e55bb126ac4c9c60e8f94bf05acdf557ba2d540b47.

Solidity: event Deposit(address indexed user, uint256 indexed pid, uint256 amount, address indexed to)

func (*MiniChefV2Filterer) FilterEmergencyWithdraw added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) FilterEmergencyWithdraw(opts *bind.FilterOpts, user []common.Address, pid []*big.Int, to []common.Address) (*MiniChefV2EmergencyWithdrawIterator, error)

FilterEmergencyWithdraw is a free log retrieval operation binding the contract event 0x2cac5e20e1541d836381527a43f651851e302817b71dc8e810284e69210c1c6b.

Solidity: event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount, address indexed to)

func (*MiniChefV2Filterer) FilterHarvest added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) FilterHarvest(opts *bind.FilterOpts, user []common.Address, pid []*big.Int) (*MiniChefV2HarvestIterator, error)

FilterHarvest is a free log retrieval operation binding the contract event 0x71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae0660924954.

Solidity: event Harvest(address indexed user, uint256 indexed pid, uint256 amount)

func (*MiniChefV2Filterer) FilterLogPoolAddition added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) FilterLogPoolAddition(opts *bind.FilterOpts, pid []*big.Int, lpToken []common.Address, rewarder []common.Address) (*MiniChefV2LogPoolAdditionIterator, error)

FilterLogPoolAddition is a free log retrieval operation binding the contract event 0x81ee0f8c5c46e2cb41984886f77a84181724abb86c32a5f6de539b07509d45e5.

Solidity: event LogPoolAddition(uint256 indexed pid, uint256 allocPoint, address indexed lpToken, address indexed rewarder)

func (*MiniChefV2Filterer) FilterLogSetPool added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) FilterLogSetPool(opts *bind.FilterOpts, pid []*big.Int, rewarder []common.Address) (*MiniChefV2LogSetPoolIterator, error)

FilterLogSetPool is a free log retrieval operation binding the contract event 0x95895a6ab1df54420d241b55243258a33e61b2194db66c1179ec521aae8e1865.

Solidity: event LogSetPool(uint256 indexed pid, uint256 allocPoint, address indexed rewarder, bool overwrite)

func (*MiniChefV2Filterer) FilterLogSynapsePerSecond added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) FilterLogSynapsePerSecond(opts *bind.FilterOpts) (*MiniChefV2LogSynapsePerSecondIterator, error)

FilterLogSynapsePerSecond is a free log retrieval operation binding the contract event 0x3476d39c7306c672c1b7bb49f494ba500a8d0993c322e79472d2b4b88439dc9a.

Solidity: event LogSynapsePerSecond(uint256 synapsePerSecond)

func (*MiniChefV2Filterer) FilterLogUpdatePool added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) FilterLogUpdatePool(opts *bind.FilterOpts, pid []*big.Int) (*MiniChefV2LogUpdatePoolIterator, error)

FilterLogUpdatePool is a free log retrieval operation binding the contract event 0x0fc9545022a542541ad085d091fb09a2ab36fee366a4576ab63714ea907ad353.

Solidity: event LogUpdatePool(uint256 indexed pid, uint64 lastRewardTime, uint256 lpSupply, uint256 accSynapsePerShare)

func (*MiniChefV2Filterer) FilterOwnershipTransferred added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*MiniChefV2OwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*MiniChefV2Filterer) FilterWithdraw added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) FilterWithdraw(opts *bind.FilterOpts, user []common.Address, pid []*big.Int, to []common.Address) (*MiniChefV2WithdrawIterator, error)

FilterWithdraw is a free log retrieval operation binding the contract event 0x8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec2132.

Solidity: event Withdraw(address indexed user, uint256 indexed pid, uint256 amount, address indexed to)

func (*MiniChefV2Filterer) ParseDeposit added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) ParseDeposit(log types.Log) (*MiniChefV2Deposit, error)

ParseDeposit is a log parse operation binding the contract event 0x02d7e648dd130fc184d383e55bb126ac4c9c60e8f94bf05acdf557ba2d540b47.

Solidity: event Deposit(address indexed user, uint256 indexed pid, uint256 amount, address indexed to)

func (*MiniChefV2Filterer) ParseEmergencyWithdraw added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) ParseEmergencyWithdraw(log types.Log) (*MiniChefV2EmergencyWithdraw, error)

ParseEmergencyWithdraw is a log parse operation binding the contract event 0x2cac5e20e1541d836381527a43f651851e302817b71dc8e810284e69210c1c6b.

Solidity: event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount, address indexed to)

func (*MiniChefV2Filterer) ParseHarvest added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) ParseHarvest(log types.Log) (*MiniChefV2Harvest, error)

ParseHarvest is a log parse operation binding the contract event 0x71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae0660924954.

Solidity: event Harvest(address indexed user, uint256 indexed pid, uint256 amount)

func (*MiniChefV2Filterer) ParseLogPoolAddition added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) ParseLogPoolAddition(log types.Log) (*MiniChefV2LogPoolAddition, error)

ParseLogPoolAddition is a log parse operation binding the contract event 0x81ee0f8c5c46e2cb41984886f77a84181724abb86c32a5f6de539b07509d45e5.

Solidity: event LogPoolAddition(uint256 indexed pid, uint256 allocPoint, address indexed lpToken, address indexed rewarder)

func (*MiniChefV2Filterer) ParseLogSetPool added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) ParseLogSetPool(log types.Log) (*MiniChefV2LogSetPool, error)

ParseLogSetPool is a log parse operation binding the contract event 0x95895a6ab1df54420d241b55243258a33e61b2194db66c1179ec521aae8e1865.

Solidity: event LogSetPool(uint256 indexed pid, uint256 allocPoint, address indexed rewarder, bool overwrite)

func (*MiniChefV2Filterer) ParseLogSynapsePerSecond added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) ParseLogSynapsePerSecond(log types.Log) (*MiniChefV2LogSynapsePerSecond, error)

ParseLogSynapsePerSecond is a log parse operation binding the contract event 0x3476d39c7306c672c1b7bb49f494ba500a8d0993c322e79472d2b4b88439dc9a.

Solidity: event LogSynapsePerSecond(uint256 synapsePerSecond)

func (*MiniChefV2Filterer) ParseLogUpdatePool added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) ParseLogUpdatePool(log types.Log) (*MiniChefV2LogUpdatePool, error)

ParseLogUpdatePool is a log parse operation binding the contract event 0x0fc9545022a542541ad085d091fb09a2ab36fee366a4576ab63714ea907ad353.

Solidity: event LogUpdatePool(uint256 indexed pid, uint64 lastRewardTime, uint256 lpSupply, uint256 accSynapsePerShare)

func (*MiniChefV2Filterer) ParseOwnershipTransferred added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) ParseOwnershipTransferred(log types.Log) (*MiniChefV2OwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*MiniChefV2Filterer) ParseWithdraw added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) ParseWithdraw(log types.Log) (*MiniChefV2Withdraw, error)

ParseWithdraw is a log parse operation binding the contract event 0x8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec2132.

Solidity: event Withdraw(address indexed user, uint256 indexed pid, uint256 amount, address indexed to)

func (*MiniChefV2Filterer) WatchDeposit added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *MiniChefV2Deposit, user []common.Address, pid []*big.Int, to []common.Address) (event.Subscription, error)

WatchDeposit is a free log subscription operation binding the contract event 0x02d7e648dd130fc184d383e55bb126ac4c9c60e8f94bf05acdf557ba2d540b47.

Solidity: event Deposit(address indexed user, uint256 indexed pid, uint256 amount, address indexed to)

func (*MiniChefV2Filterer) WatchEmergencyWithdraw added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) WatchEmergencyWithdraw(opts *bind.WatchOpts, sink chan<- *MiniChefV2EmergencyWithdraw, user []common.Address, pid []*big.Int, to []common.Address) (event.Subscription, error)

WatchEmergencyWithdraw is a free log subscription operation binding the contract event 0x2cac5e20e1541d836381527a43f651851e302817b71dc8e810284e69210c1c6b.

Solidity: event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount, address indexed to)

func (*MiniChefV2Filterer) WatchHarvest added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) WatchHarvest(opts *bind.WatchOpts, sink chan<- *MiniChefV2Harvest, user []common.Address, pid []*big.Int) (event.Subscription, error)

WatchHarvest is a free log subscription operation binding the contract event 0x71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae0660924954.

Solidity: event Harvest(address indexed user, uint256 indexed pid, uint256 amount)

func (*MiniChefV2Filterer) WatchLogPoolAddition added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) WatchLogPoolAddition(opts *bind.WatchOpts, sink chan<- *MiniChefV2LogPoolAddition, pid []*big.Int, lpToken []common.Address, rewarder []common.Address) (event.Subscription, error)

WatchLogPoolAddition is a free log subscription operation binding the contract event 0x81ee0f8c5c46e2cb41984886f77a84181724abb86c32a5f6de539b07509d45e5.

Solidity: event LogPoolAddition(uint256 indexed pid, uint256 allocPoint, address indexed lpToken, address indexed rewarder)

func (*MiniChefV2Filterer) WatchLogSetPool added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) WatchLogSetPool(opts *bind.WatchOpts, sink chan<- *MiniChefV2LogSetPool, pid []*big.Int, rewarder []common.Address) (event.Subscription, error)

WatchLogSetPool is a free log subscription operation binding the contract event 0x95895a6ab1df54420d241b55243258a33e61b2194db66c1179ec521aae8e1865.

Solidity: event LogSetPool(uint256 indexed pid, uint256 allocPoint, address indexed rewarder, bool overwrite)

func (*MiniChefV2Filterer) WatchLogSynapsePerSecond added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) WatchLogSynapsePerSecond(opts *bind.WatchOpts, sink chan<- *MiniChefV2LogSynapsePerSecond) (event.Subscription, error)

WatchLogSynapsePerSecond is a free log subscription operation binding the contract event 0x3476d39c7306c672c1b7bb49f494ba500a8d0993c322e79472d2b4b88439dc9a.

Solidity: event LogSynapsePerSecond(uint256 synapsePerSecond)

func (*MiniChefV2Filterer) WatchLogUpdatePool added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) WatchLogUpdatePool(opts *bind.WatchOpts, sink chan<- *MiniChefV2LogUpdatePool, pid []*big.Int) (event.Subscription, error)

WatchLogUpdatePool is a free log subscription operation binding the contract event 0x0fc9545022a542541ad085d091fb09a2ab36fee366a4576ab63714ea907ad353.

Solidity: event LogUpdatePool(uint256 indexed pid, uint64 lastRewardTime, uint256 lpSupply, uint256 accSynapsePerShare)

func (*MiniChefV2Filterer) WatchOwnershipTransferred added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *MiniChefV2OwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*MiniChefV2Filterer) WatchWithdraw added in v0.37.0

func (_MiniChefV2 *MiniChefV2Filterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *MiniChefV2Withdraw, user []common.Address, pid []*big.Int, to []common.Address) (event.Subscription, error)

WatchWithdraw is a free log subscription operation binding the contract event 0x8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec2132.

Solidity: event Withdraw(address indexed user, uint256 indexed pid, uint256 amount, address indexed to)

type MiniChefV2Harvest added in v0.37.0

type MiniChefV2Harvest struct {
	User   common.Address
	Pid    *big.Int
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

MiniChefV2Harvest represents a Harvest event raised by the MiniChefV2 contract.

type MiniChefV2HarvestIterator added in v0.37.0

type MiniChefV2HarvestIterator struct {
	Event *MiniChefV2Harvest // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

MiniChefV2HarvestIterator is returned from FilterHarvest and is used to iterate over the raw logs and unpacked data for Harvest events raised by the MiniChefV2 contract.

func (*MiniChefV2HarvestIterator) Close added in v0.37.0

func (it *MiniChefV2HarvestIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*MiniChefV2HarvestIterator) Error added in v0.37.0

func (it *MiniChefV2HarvestIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*MiniChefV2HarvestIterator) Next added in v0.37.0

func (it *MiniChefV2HarvestIterator) 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 MiniChefV2LogPoolAddition added in v0.37.0

type MiniChefV2LogPoolAddition struct {
	Pid        *big.Int
	AllocPoint *big.Int
	LpToken    common.Address
	Rewarder   common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

MiniChefV2LogPoolAddition represents a LogPoolAddition event raised by the MiniChefV2 contract.

type MiniChefV2LogPoolAdditionIterator added in v0.37.0

type MiniChefV2LogPoolAdditionIterator struct {
	Event *MiniChefV2LogPoolAddition // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

MiniChefV2LogPoolAdditionIterator is returned from FilterLogPoolAddition and is used to iterate over the raw logs and unpacked data for LogPoolAddition events raised by the MiniChefV2 contract.

func (*MiniChefV2LogPoolAdditionIterator) Close added in v0.37.0

Close terminates the iteration process, releasing any pending underlying resources.

func (*MiniChefV2LogPoolAdditionIterator) Error added in v0.37.0

Error returns any retrieval or parsing error occurred during filtering.

func (*MiniChefV2LogPoolAdditionIterator) Next added in v0.37.0

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 MiniChefV2LogSetPool added in v0.37.0

type MiniChefV2LogSetPool struct {
	Pid        *big.Int
	AllocPoint *big.Int
	Rewarder   common.Address
	Overwrite  bool
	Raw        types.Log // Blockchain specific contextual infos
}

MiniChefV2LogSetPool represents a LogSetPool event raised by the MiniChefV2 contract.

type MiniChefV2LogSetPoolIterator added in v0.37.0

type MiniChefV2LogSetPoolIterator struct {
	Event *MiniChefV2LogSetPool // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

MiniChefV2LogSetPoolIterator is returned from FilterLogSetPool and is used to iterate over the raw logs and unpacked data for LogSetPool events raised by the MiniChefV2 contract.

func (*MiniChefV2LogSetPoolIterator) Close added in v0.37.0

func (it *MiniChefV2LogSetPoolIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*MiniChefV2LogSetPoolIterator) Error added in v0.37.0

func (it *MiniChefV2LogSetPoolIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*MiniChefV2LogSetPoolIterator) Next added in v0.37.0

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 MiniChefV2LogSynapsePerSecond added in v0.37.0

type MiniChefV2LogSynapsePerSecond struct {
	SynapsePerSecond *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

MiniChefV2LogSynapsePerSecond represents a LogSynapsePerSecond event raised by the MiniChefV2 contract.

type MiniChefV2LogSynapsePerSecondIterator added in v0.37.0

type MiniChefV2LogSynapsePerSecondIterator struct {
	Event *MiniChefV2LogSynapsePerSecond // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

MiniChefV2LogSynapsePerSecondIterator is returned from FilterLogSynapsePerSecond and is used to iterate over the raw logs and unpacked data for LogSynapsePerSecond events raised by the MiniChefV2 contract.

func (*MiniChefV2LogSynapsePerSecondIterator) Close added in v0.37.0

Close terminates the iteration process, releasing any pending underlying resources.

func (*MiniChefV2LogSynapsePerSecondIterator) Error added in v0.37.0

Error returns any retrieval or parsing error occurred during filtering.

func (*MiniChefV2LogSynapsePerSecondIterator) Next added in v0.37.0

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 MiniChefV2LogUpdatePool added in v0.37.0

type MiniChefV2LogUpdatePool struct {
	Pid                *big.Int
	LastRewardTime     uint64
	LpSupply           *big.Int
	AccSynapsePerShare *big.Int
	Raw                types.Log // Blockchain specific contextual infos
}

MiniChefV2LogUpdatePool represents a LogUpdatePool event raised by the MiniChefV2 contract.

type MiniChefV2LogUpdatePoolIterator added in v0.37.0

type MiniChefV2LogUpdatePoolIterator struct {
	Event *MiniChefV2LogUpdatePool // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

MiniChefV2LogUpdatePoolIterator is returned from FilterLogUpdatePool and is used to iterate over the raw logs and unpacked data for LogUpdatePool events raised by the MiniChefV2 contract.

func (*MiniChefV2LogUpdatePoolIterator) Close added in v0.37.0

Close terminates the iteration process, releasing any pending underlying resources.

func (*MiniChefV2LogUpdatePoolIterator) Error added in v0.37.0

Error returns any retrieval or parsing error occurred during filtering.

func (*MiniChefV2LogUpdatePoolIterator) Next added in v0.37.0

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 MiniChefV2OwnershipTransferred added in v0.37.0

type MiniChefV2OwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

MiniChefV2OwnershipTransferred represents a OwnershipTransferred event raised by the MiniChefV2 contract.

type MiniChefV2OwnershipTransferredIterator added in v0.37.0

type MiniChefV2OwnershipTransferredIterator struct {
	Event *MiniChefV2OwnershipTransferred // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

MiniChefV2OwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the MiniChefV2 contract.

func (*MiniChefV2OwnershipTransferredIterator) Close added in v0.37.0

Close terminates the iteration process, releasing any pending underlying resources.

func (*MiniChefV2OwnershipTransferredIterator) Error added in v0.37.0

Error returns any retrieval or parsing error occurred during filtering.

func (*MiniChefV2OwnershipTransferredIterator) Next added in v0.37.0

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 MiniChefV2PoolInfo added in v0.37.0

type MiniChefV2PoolInfo struct {
	AccSynapsePerShare *big.Int
	LastRewardTime     uint64
	AllocPoint         uint64
}

MiniChefV2PoolInfo is an auto generated low-level Go binding around an user-defined struct.

type MiniChefV2Raw added in v0.37.0

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

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

func (*MiniChefV2Raw) Call added in v0.37.0

func (_MiniChefV2 *MiniChefV2Raw) 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 (*MiniChefV2Raw) Transact added in v0.37.0

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

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

func (*MiniChefV2Raw) Transfer added in v0.37.0

func (_MiniChefV2 *MiniChefV2Raw) 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 MiniChefV2Session added in v0.37.0

type MiniChefV2Session struct {
	Contract     *MiniChefV2       // 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
}

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

func (*MiniChefV2Session) Add added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) Add(allocPoint *big.Int, _lpToken common.Address, _rewarder common.Address) (*types.Transaction, error)

Add is a paid mutator transaction binding the contract method 0xab7de098.

Solidity: function add(uint256 allocPoint, address _lpToken, address _rewarder) returns()

func (*MiniChefV2Session) Batch added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) Batch(calls [][]byte, revertOnFail bool) (*types.Transaction, error)

Batch is a paid mutator transaction binding the contract method 0xd2423b51.

Solidity: function batch(bytes[] calls, bool revertOnFail) payable returns(bool[] successes, bytes[] results)

func (*MiniChefV2Session) ClaimOwnership added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) ClaimOwnership() (*types.Transaction, error)

ClaimOwnership is a paid mutator transaction binding the contract method 0x4e71e0c8.

Solidity: function claimOwnership() returns()

func (*MiniChefV2Session) Deposit added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) Deposit(pid *big.Int, amount *big.Int, to common.Address) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x8dbdbe6d.

Solidity: function deposit(uint256 pid, uint256 amount, address to) returns()

func (*MiniChefV2Session) EmergencyWithdraw added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) EmergencyWithdraw(pid *big.Int, to common.Address) (*types.Transaction, error)

EmergencyWithdraw is a paid mutator transaction binding the contract method 0x2f940c70.

Solidity: function emergencyWithdraw(uint256 pid, address to) returns()

func (*MiniChefV2Session) Harvest added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) Harvest(pid *big.Int, to common.Address) (*types.Transaction, error)

Harvest is a paid mutator transaction binding the contract method 0x18fccc76.

Solidity: function harvest(uint256 pid, address to) returns()

func (*MiniChefV2Session) LpToken added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) LpToken(arg0 *big.Int) (common.Address, error)

LpToken is a free data retrieval call binding the contract method 0x78ed5d1f.

Solidity: function lpToken(uint256 ) view returns(address)

func (*MiniChefV2Session) MassUpdatePools added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) MassUpdatePools(pids []*big.Int) (*types.Transaction, error)

MassUpdatePools is a paid mutator transaction binding the contract method 0x57a5b58c.

Solidity: function massUpdatePools(uint256[] pids) returns()

func (*MiniChefV2Session) Owner added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*MiniChefV2Session) PendingOwner added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) PendingOwner() (common.Address, error)

PendingOwner is a free data retrieval call binding the contract method 0xe30c3978.

Solidity: function pendingOwner() view returns(address)

func (*MiniChefV2Session) PendingSynapse added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) PendingSynapse(_pid *big.Int, _user common.Address) (*big.Int, error)

PendingSynapse is a free data retrieval call binding the contract method 0x1491f6fe.

Solidity: function pendingSynapse(uint256 _pid, address _user) view returns(uint256 pending)

func (*MiniChefV2Session) PermitToken added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) PermitToken(token common.Address, from common.Address, to common.Address, amount *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

PermitToken is a paid mutator transaction binding the contract method 0x7c516e94.

Solidity: function permitToken(address token, address from, address to, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*MiniChefV2Session) PoolInfo added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) PoolInfo(arg0 *big.Int) (struct {
	AccSynapsePerShare *big.Int
	LastRewardTime     uint64
	AllocPoint         uint64
}, error)

PoolInfo is a free data retrieval call binding the contract method 0x1526fe27.

Solidity: function poolInfo(uint256 ) view returns(uint128 accSynapsePerShare, uint64 lastRewardTime, uint64 allocPoint)

func (*MiniChefV2Session) PoolLength added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) PoolLength() (*big.Int, error)

PoolLength is a free data retrieval call binding the contract method 0x081e3eda.

Solidity: function poolLength() view returns(uint256 pools)

func (*MiniChefV2Session) Rewarder added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) Rewarder(arg0 *big.Int) (common.Address, error)

Rewarder is a free data retrieval call binding the contract method 0xc346253d.

Solidity: function rewarder(uint256 ) view returns(address)

func (*MiniChefV2Session) SYNAPSE added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) SYNAPSE() (common.Address, error)

SYNAPSE is a free data retrieval call binding the contract method 0x5766e717.

Solidity: function SYNAPSE() view returns(address)

func (*MiniChefV2Session) Set added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) Set(_pid *big.Int, _allocPoint *big.Int, _rewarder common.Address, overwrite bool) (*types.Transaction, error)

Set is a paid mutator transaction binding the contract method 0x88bba42f.

Solidity: function set(uint256 _pid, uint256 _allocPoint, address _rewarder, bool overwrite) returns()

func (*MiniChefV2Session) SetSynapsePerSecond added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) SetSynapsePerSecond(_synapsePerSecond *big.Int) (*types.Transaction, error)

SetSynapsePerSecond is a paid mutator transaction binding the contract method 0xf7edf203.

Solidity: function setSynapsePerSecond(uint256 _synapsePerSecond) returns()

func (*MiniChefV2Session) SynapsePerSecond added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) SynapsePerSecond() (*big.Int, error)

SynapsePerSecond is a free data retrieval call binding the contract method 0x4db4addf.

Solidity: function synapsePerSecond() view returns(uint256)

func (*MiniChefV2Session) TotalAllocPoint added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) TotalAllocPoint() (*big.Int, error)

TotalAllocPoint is a free data retrieval call binding the contract method 0x17caf6f1.

Solidity: function totalAllocPoint() view returns(uint256)

func (*MiniChefV2Session) TransferOwnership added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) TransferOwnership(newOwner common.Address, direct bool, renounce bool) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0x078dfbe7.

Solidity: function transferOwnership(address newOwner, bool direct, bool renounce) returns()

func (*MiniChefV2Session) UpdatePool added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) UpdatePool(pid *big.Int) (*types.Transaction, error)

UpdatePool is a paid mutator transaction binding the contract method 0x51eb05a6.

Solidity: function updatePool(uint256 pid) returns((uint128,uint64,uint64) pool)

func (*MiniChefV2Session) UserInfo added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) UserInfo(arg0 *big.Int, arg1 common.Address) (struct {
	Amount     *big.Int
	RewardDebt *big.Int
}, error)

UserInfo is a free data retrieval call binding the contract method 0x93f1a40b.

Solidity: function userInfo(uint256 , address ) view returns(uint256 amount, int256 rewardDebt)

func (*MiniChefV2Session) Withdraw added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) Withdraw(pid *big.Int, amount *big.Int, to common.Address) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x0ad58d2f.

Solidity: function withdraw(uint256 pid, uint256 amount, address to) returns()

func (*MiniChefV2Session) WithdrawAndHarvest added in v0.37.0

func (_MiniChefV2 *MiniChefV2Session) WithdrawAndHarvest(pid *big.Int, amount *big.Int, to common.Address) (*types.Transaction, error)

WithdrawAndHarvest is a paid mutator transaction binding the contract method 0xd1abb907.

Solidity: function withdrawAndHarvest(uint256 pid, uint256 amount, address to) returns()

type MiniChefV2Transactor added in v0.37.0

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

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

func NewMiniChefV2Transactor added in v0.37.0

func NewMiniChefV2Transactor(address common.Address, transactor bind.ContractTransactor) (*MiniChefV2Transactor, error)

NewMiniChefV2Transactor creates a new write-only instance of MiniChefV2, bound to a specific deployed contract.

func (*MiniChefV2Transactor) Add added in v0.37.0

func (_MiniChefV2 *MiniChefV2Transactor) Add(opts *bind.TransactOpts, allocPoint *big.Int, _lpToken common.Address, _rewarder common.Address) (*types.Transaction, error)

Add is a paid mutator transaction binding the contract method 0xab7de098.

Solidity: function add(uint256 allocPoint, address _lpToken, address _rewarder) returns()

func (*MiniChefV2Transactor) Batch added in v0.37.0

func (_MiniChefV2 *MiniChefV2Transactor) Batch(opts *bind.TransactOpts, calls [][]byte, revertOnFail bool) (*types.Transaction, error)

Batch is a paid mutator transaction binding the contract method 0xd2423b51.

Solidity: function batch(bytes[] calls, bool revertOnFail) payable returns(bool[] successes, bytes[] results)

func (*MiniChefV2Transactor) ClaimOwnership added in v0.37.0

func (_MiniChefV2 *MiniChefV2Transactor) ClaimOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

ClaimOwnership is a paid mutator transaction binding the contract method 0x4e71e0c8.

Solidity: function claimOwnership() returns()

func (*MiniChefV2Transactor) Deposit added in v0.37.0

func (_MiniChefV2 *MiniChefV2Transactor) Deposit(opts *bind.TransactOpts, pid *big.Int, amount *big.Int, to common.Address) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x8dbdbe6d.

Solidity: function deposit(uint256 pid, uint256 amount, address to) returns()

func (*MiniChefV2Transactor) EmergencyWithdraw added in v0.37.0

func (_MiniChefV2 *MiniChefV2Transactor) EmergencyWithdraw(opts *bind.TransactOpts, pid *big.Int, to common.Address) (*types.Transaction, error)

EmergencyWithdraw is a paid mutator transaction binding the contract method 0x2f940c70.

Solidity: function emergencyWithdraw(uint256 pid, address to) returns()

func (*MiniChefV2Transactor) Harvest added in v0.37.0

func (_MiniChefV2 *MiniChefV2Transactor) Harvest(opts *bind.TransactOpts, pid *big.Int, to common.Address) (*types.Transaction, error)

Harvest is a paid mutator transaction binding the contract method 0x18fccc76.

Solidity: function harvest(uint256 pid, address to) returns()

func (*MiniChefV2Transactor) MassUpdatePools added in v0.37.0

func (_MiniChefV2 *MiniChefV2Transactor) MassUpdatePools(opts *bind.TransactOpts, pids []*big.Int) (*types.Transaction, error)

MassUpdatePools is a paid mutator transaction binding the contract method 0x57a5b58c.

Solidity: function massUpdatePools(uint256[] pids) returns()

func (*MiniChefV2Transactor) PermitToken added in v0.37.0

func (_MiniChefV2 *MiniChefV2Transactor) PermitToken(opts *bind.TransactOpts, token common.Address, from common.Address, to common.Address, amount *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

PermitToken is a paid mutator transaction binding the contract method 0x7c516e94.

Solidity: function permitToken(address token, address from, address to, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*MiniChefV2Transactor) Set added in v0.37.0

func (_MiniChefV2 *MiniChefV2Transactor) Set(opts *bind.TransactOpts, _pid *big.Int, _allocPoint *big.Int, _rewarder common.Address, overwrite bool) (*types.Transaction, error)

Set is a paid mutator transaction binding the contract method 0x88bba42f.

Solidity: function set(uint256 _pid, uint256 _allocPoint, address _rewarder, bool overwrite) returns()

func (*MiniChefV2Transactor) SetSynapsePerSecond added in v0.37.0

func (_MiniChefV2 *MiniChefV2Transactor) SetSynapsePerSecond(opts *bind.TransactOpts, _synapsePerSecond *big.Int) (*types.Transaction, error)

SetSynapsePerSecond is a paid mutator transaction binding the contract method 0xf7edf203.

Solidity: function setSynapsePerSecond(uint256 _synapsePerSecond) returns()

func (*MiniChefV2Transactor) TransferOwnership added in v0.37.0

func (_MiniChefV2 *MiniChefV2Transactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address, direct bool, renounce bool) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0x078dfbe7.

Solidity: function transferOwnership(address newOwner, bool direct, bool renounce) returns()

func (*MiniChefV2Transactor) UpdatePool added in v0.37.0

func (_MiniChefV2 *MiniChefV2Transactor) UpdatePool(opts *bind.TransactOpts, pid *big.Int) (*types.Transaction, error)

UpdatePool is a paid mutator transaction binding the contract method 0x51eb05a6.

Solidity: function updatePool(uint256 pid) returns((uint128,uint64,uint64) pool)

func (*MiniChefV2Transactor) Withdraw added in v0.37.0

func (_MiniChefV2 *MiniChefV2Transactor) Withdraw(opts *bind.TransactOpts, pid *big.Int, amount *big.Int, to common.Address) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x0ad58d2f.

Solidity: function withdraw(uint256 pid, uint256 amount, address to) returns()

func (*MiniChefV2Transactor) WithdrawAndHarvest added in v0.37.0

func (_MiniChefV2 *MiniChefV2Transactor) WithdrawAndHarvest(opts *bind.TransactOpts, pid *big.Int, amount *big.Int, to common.Address) (*types.Transaction, error)

WithdrawAndHarvest is a paid mutator transaction binding the contract method 0xd1abb907.

Solidity: function withdrawAndHarvest(uint256 pid, uint256 amount, address to) returns()

type MiniChefV2TransactorRaw added in v0.37.0

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

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

func (*MiniChefV2TransactorRaw) Transact added in v0.37.0

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

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

func (*MiniChefV2TransactorRaw) Transfer added in v0.37.0

func (_MiniChefV2 *MiniChefV2TransactorRaw) 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 MiniChefV2TransactorSession added in v0.37.0

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

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

func (*MiniChefV2TransactorSession) Add added in v0.37.0

func (_MiniChefV2 *MiniChefV2TransactorSession) Add(allocPoint *big.Int, _lpToken common.Address, _rewarder common.Address) (*types.Transaction, error)

Add is a paid mutator transaction binding the contract method 0xab7de098.

Solidity: function add(uint256 allocPoint, address _lpToken, address _rewarder) returns()

func (*MiniChefV2TransactorSession) Batch added in v0.37.0

func (_MiniChefV2 *MiniChefV2TransactorSession) Batch(calls [][]byte, revertOnFail bool) (*types.Transaction, error)

Batch is a paid mutator transaction binding the contract method 0xd2423b51.

Solidity: function batch(bytes[] calls, bool revertOnFail) payable returns(bool[] successes, bytes[] results)

func (*MiniChefV2TransactorSession) ClaimOwnership added in v0.37.0

func (_MiniChefV2 *MiniChefV2TransactorSession) ClaimOwnership() (*types.Transaction, error)

ClaimOwnership is a paid mutator transaction binding the contract method 0x4e71e0c8.

Solidity: function claimOwnership() returns()

func (*MiniChefV2TransactorSession) Deposit added in v0.37.0

func (_MiniChefV2 *MiniChefV2TransactorSession) Deposit(pid *big.Int, amount *big.Int, to common.Address) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x8dbdbe6d.

Solidity: function deposit(uint256 pid, uint256 amount, address to) returns()

func (*MiniChefV2TransactorSession) EmergencyWithdraw added in v0.37.0

func (_MiniChefV2 *MiniChefV2TransactorSession) EmergencyWithdraw(pid *big.Int, to common.Address) (*types.Transaction, error)

EmergencyWithdraw is a paid mutator transaction binding the contract method 0x2f940c70.

Solidity: function emergencyWithdraw(uint256 pid, address to) returns()

func (*MiniChefV2TransactorSession) Harvest added in v0.37.0

func (_MiniChefV2 *MiniChefV2TransactorSession) Harvest(pid *big.Int, to common.Address) (*types.Transaction, error)

Harvest is a paid mutator transaction binding the contract method 0x18fccc76.

Solidity: function harvest(uint256 pid, address to) returns()

func (*MiniChefV2TransactorSession) MassUpdatePools added in v0.37.0

func (_MiniChefV2 *MiniChefV2TransactorSession) MassUpdatePools(pids []*big.Int) (*types.Transaction, error)

MassUpdatePools is a paid mutator transaction binding the contract method 0x57a5b58c.

Solidity: function massUpdatePools(uint256[] pids) returns()

func (*MiniChefV2TransactorSession) PermitToken added in v0.37.0

func (_MiniChefV2 *MiniChefV2TransactorSession) PermitToken(token common.Address, from common.Address, to common.Address, amount *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

PermitToken is a paid mutator transaction binding the contract method 0x7c516e94.

Solidity: function permitToken(address token, address from, address to, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*MiniChefV2TransactorSession) Set added in v0.37.0

func (_MiniChefV2 *MiniChefV2TransactorSession) Set(_pid *big.Int, _allocPoint *big.Int, _rewarder common.Address, overwrite bool) (*types.Transaction, error)

Set is a paid mutator transaction binding the contract method 0x88bba42f.

Solidity: function set(uint256 _pid, uint256 _allocPoint, address _rewarder, bool overwrite) returns()

func (*MiniChefV2TransactorSession) SetSynapsePerSecond added in v0.37.0

func (_MiniChefV2 *MiniChefV2TransactorSession) SetSynapsePerSecond(_synapsePerSecond *big.Int) (*types.Transaction, error)

SetSynapsePerSecond is a paid mutator transaction binding the contract method 0xf7edf203.

Solidity: function setSynapsePerSecond(uint256 _synapsePerSecond) returns()

func (*MiniChefV2TransactorSession) TransferOwnership added in v0.37.0

func (_MiniChefV2 *MiniChefV2TransactorSession) TransferOwnership(newOwner common.Address, direct bool, renounce bool) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0x078dfbe7.

Solidity: function transferOwnership(address newOwner, bool direct, bool renounce) returns()

func (*MiniChefV2TransactorSession) UpdatePool added in v0.37.0

func (_MiniChefV2 *MiniChefV2TransactorSession) UpdatePool(pid *big.Int) (*types.Transaction, error)

UpdatePool is a paid mutator transaction binding the contract method 0x51eb05a6.

Solidity: function updatePool(uint256 pid) returns((uint128,uint64,uint64) pool)

func (*MiniChefV2TransactorSession) Withdraw added in v0.37.0

func (_MiniChefV2 *MiniChefV2TransactorSession) Withdraw(pid *big.Int, amount *big.Int, to common.Address) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x0ad58d2f.

Solidity: function withdraw(uint256 pid, uint256 amount, address to) returns()

func (*MiniChefV2TransactorSession) WithdrawAndHarvest added in v0.37.0

func (_MiniChefV2 *MiniChefV2TransactorSession) WithdrawAndHarvest(pid *big.Int, amount *big.Int, to common.Address) (*types.Transaction, error)

WithdrawAndHarvest is a paid mutator transaction binding the contract method 0xd1abb907.

Solidity: function withdrawAndHarvest(uint256 pid, uint256 amount, address to) returns()

type MiniChefV2Withdraw added in v0.37.0

type MiniChefV2Withdraw struct {
	User   common.Address
	Pid    *big.Int
	Amount *big.Int
	To     common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

MiniChefV2Withdraw represents a Withdraw event raised by the MiniChefV2 contract.

type MiniChefV2WithdrawIterator added in v0.37.0

type MiniChefV2WithdrawIterator struct {
	Event *MiniChefV2Withdraw // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

MiniChefV2WithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the MiniChefV2 contract.

func (*MiniChefV2WithdrawIterator) Close added in v0.37.0

func (it *MiniChefV2WithdrawIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*MiniChefV2WithdrawIterator) Error added in v0.37.0

func (it *MiniChefV2WithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*MiniChefV2WithdrawIterator) Next added in v0.37.0

func (it *MiniChefV2WithdrawIterator) 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 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

Close terminates the iteration process, releasing any pending underlying resources.

func (*PoolConfigRoleAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolConfigRoleAdminChangedIterator) Next

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

Close terminates the iteration process, releasing any pending underlying resources.

func (*PoolConfigRoleGrantedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolConfigRoleGrantedIterator) Next

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

Close terminates the iteration process, releasing any pending underlying resources.

func (*PoolConfigRoleRevokedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolConfigRoleRevokedIterator) Next

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

func (_PoolConfig *PoolConfigSession) 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 (*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

Close terminates the iteration process, releasing any pending underlying resources.

func (*SynapseBridgeAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SynapseBridgeAdminChangedIterator) Next

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

func (_SynapseBridge *SynapseBridgeCaller) BridgeVersion(opts *bind.CallOpts) (*big.Int, error)

BridgeVersion is a free data retrieval call binding the contract method 0xac865626.

Solidity: function bridgeVersion() view returns(uint256)

func (*SynapseBridgeCaller) ChainGasAmount

func (_SynapseBridge *SynapseBridgeCaller) ChainGasAmount(opts *bind.CallOpts) (*big.Int, error)

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

func (_SynapseBridge *SynapseBridgeCaller) StartBlockNumber(opts *bind.CallOpts) (*big.Int, error)

StartBlockNumber is a free data retrieval call binding the contract method 0x498a4c2d.

Solidity: function startBlockNumber() view returns(uint256)

func (*SynapseBridgeCaller) WETHADDRESS

func (_SynapseBridge *SynapseBridgeCaller) WETHADDRESS(opts *bind.CallOpts) (common.Address, error)

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

Close terminates the iteration process, releasing any pending underlying resources.

func (*SynapseBridgeRoleAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SynapseBridgeRoleAdminChangedIterator) Next

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

Close terminates the iteration process, releasing any pending underlying resources.

func (*SynapseBridgeRoleGrantedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SynapseBridgeRoleGrantedIterator) Next

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

Close terminates the iteration process, releasing any pending underlying resources.

func (*SynapseBridgeRoleRevokedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SynapseBridgeRoleRevokedIterator) Next

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

Close terminates the iteration process, releasing any pending underlying resources.

func (*SynapseBridgeTokenDepositAndSwapIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SynapseBridgeTokenDepositAndSwapIterator) Next

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

Close terminates the iteration process, releasing any pending underlying resources.

func (*SynapseBridgeTokenDepositIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SynapseBridgeTokenDepositIterator) Next

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

Close terminates the iteration process, releasing any pending underlying resources.

func (*SynapseBridgeTokenMintAndSwapIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SynapseBridgeTokenMintAndSwapIterator) Next

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

Close terminates the iteration process, releasing any pending underlying resources.

func (*SynapseBridgeTokenMintIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SynapseBridgeTokenMintIterator) Next

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

Close terminates the iteration process, releasing any pending underlying resources.

func (*SynapseBridgeTokenRedeemAndRemoveIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SynapseBridgeTokenRedeemAndRemoveIterator) Next

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

Close terminates the iteration process, releasing any pending underlying resources.

func (*SynapseBridgeTokenRedeemAndSwapIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SynapseBridgeTokenRedeemAndSwapIterator) Next

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

Close terminates the iteration process, releasing any pending underlying resources.

func (*SynapseBridgeTokenRedeemIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SynapseBridgeTokenRedeemIterator) Next

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

Close terminates the iteration process, releasing any pending underlying resources.

func (*SynapseBridgeTokenWithdrawAndRemoveIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SynapseBridgeTokenWithdrawAndRemoveIterator) Next

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

Close terminates the iteration process, releasing any pending underlying resources.

func (*SynapseBridgeTokenWithdrawIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SynapseBridgeTokenWithdrawIterator) Next

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

Close terminates the iteration process, releasing any pending underlying resources.

func (*SynapseBridgeUnpausedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SynapseBridgeUnpausedIterator) Next

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

Close terminates the iteration process, releasing any pending underlying resources.

func (*SynapseBridgeUpgradedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SynapseBridgeUpgradedIterator) Next

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.

Jump to

Keyboard shortcuts

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