Documentation
¶
Index ¶
- Variables
- type IBalancerV2VaultBatchSwapStep
- type IBalancerV2VaultFundManagement
- type UtilsDirectBalancerV2
- type UtilsDirectCurveV1
- type UtilsDirectCurveV2
- type UtilsDirectUniV3
- type V5ParaSwap
- type V5ParaSwapBoughtV3
- type V5ParaSwapBoughtV3Iterator
- type V5ParaSwapCaller
- func (_V5ParaSwap *V5ParaSwapCaller) FeeClaimer(opts *bind.CallOpts) (common.Address, error)
- func (_V5ParaSwap *V5ParaSwapCaller) GetKey(opts *bind.CallOpts) ([32]byte, error)
- func (_V5ParaSwap *V5ParaSwapCaller) Initialize(opts *bind.CallOpts, arg0 []byte) error
- func (_V5ParaSwap *V5ParaSwapCaller) MaxFeePercent(opts *bind.CallOpts) (*big.Int, error)
- func (_V5ParaSwap *V5ParaSwapCaller) ParaswapReferralShare(opts *bind.CallOpts) (*big.Int, error)
- func (_V5ParaSwap *V5ParaSwapCaller) ParaswapSlippageShare(opts *bind.CallOpts) (*big.Int, error)
- func (_V5ParaSwap *V5ParaSwapCaller) PartnerSharePercent(opts *bind.CallOpts) (*big.Int, error)
- func (_V5ParaSwap *V5ParaSwapCaller) ROUTERROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_V5ParaSwap *V5ParaSwapCaller) WHITELISTEDROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_V5ParaSwap *V5ParaSwapCaller) Weth(opts *bind.CallOpts) (common.Address, error)
- type V5ParaSwapCallerRaw
- type V5ParaSwapCallerSession
- func (_V5ParaSwap *V5ParaSwapCallerSession) FeeClaimer() (common.Address, error)
- func (_V5ParaSwap *V5ParaSwapCallerSession) GetKey() ([32]byte, error)
- func (_V5ParaSwap *V5ParaSwapCallerSession) Initialize(arg0 []byte) error
- func (_V5ParaSwap *V5ParaSwapCallerSession) MaxFeePercent() (*big.Int, error)
- func (_V5ParaSwap *V5ParaSwapCallerSession) ParaswapReferralShare() (*big.Int, error)
- func (_V5ParaSwap *V5ParaSwapCallerSession) ParaswapSlippageShare() (*big.Int, error)
- func (_V5ParaSwap *V5ParaSwapCallerSession) PartnerSharePercent() (*big.Int, error)
- func (_V5ParaSwap *V5ParaSwapCallerSession) ROUTERROLE() ([32]byte, error)
- func (_V5ParaSwap *V5ParaSwapCallerSession) WHITELISTEDROLE() ([32]byte, error)
- func (_V5ParaSwap *V5ParaSwapCallerSession) Weth() (common.Address, error)
- type V5ParaSwapFilterer
- func (_V5ParaSwap *V5ParaSwapFilterer) FilterBoughtV3(opts *bind.FilterOpts, beneficiary []common.Address, srcToken []common.Address, ...) (*V5ParaSwapBoughtV3Iterator, error)
- func (_V5ParaSwap *V5ParaSwapFilterer) FilterSwappedDirect(opts *bind.FilterOpts, beneficiary []common.Address, srcToken []common.Address, ...) (*V5ParaSwapSwappedDirectIterator, error)
- func (_V5ParaSwap *V5ParaSwapFilterer) FilterSwappedV3(opts *bind.FilterOpts, beneficiary []common.Address, srcToken []common.Address, ...) (*V5ParaSwapSwappedV3Iterator, error)
- func (_V5ParaSwap *V5ParaSwapFilterer) ParseBoughtV3(log types.Log) (*V5ParaSwapBoughtV3, error)
- func (_V5ParaSwap *V5ParaSwapFilterer) ParseSwappedDirect(log types.Log) (*V5ParaSwapSwappedDirect, error)
- func (_V5ParaSwap *V5ParaSwapFilterer) ParseSwappedV3(log types.Log) (*V5ParaSwapSwappedV3, error)
- func (_V5ParaSwap *V5ParaSwapFilterer) WatchBoughtV3(opts *bind.WatchOpts, sink chan<- *V5ParaSwapBoughtV3, ...) (event.Subscription, error)
- func (_V5ParaSwap *V5ParaSwapFilterer) WatchSwappedDirect(opts *bind.WatchOpts, sink chan<- *V5ParaSwapSwappedDirect, ...) (event.Subscription, error)
- func (_V5ParaSwap *V5ParaSwapFilterer) WatchSwappedV3(opts *bind.WatchOpts, sink chan<- *V5ParaSwapSwappedV3, ...) (event.Subscription, error)
- type V5ParaSwapRaw
- func (_V5ParaSwap *V5ParaSwapRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_V5ParaSwap *V5ParaSwapRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_V5ParaSwap *V5ParaSwapRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type V5ParaSwapSession
- func (_V5ParaSwap *V5ParaSwapSession) DirectBalancerV2GivenInSwap(data UtilsDirectBalancerV2) (*types.Transaction, error)
- func (_V5ParaSwap *V5ParaSwapSession) DirectBalancerV2GivenOutSwap(data UtilsDirectBalancerV2) (*types.Transaction, error)
- func (_V5ParaSwap *V5ParaSwapSession) DirectCurveV1Swap(data UtilsDirectCurveV1) (*types.Transaction, error)
- func (_V5ParaSwap *V5ParaSwapSession) DirectCurveV2Swap(data UtilsDirectCurveV2) (*types.Transaction, error)
- func (_V5ParaSwap *V5ParaSwapSession) DirectUniV3Buy(data UtilsDirectUniV3) (*types.Transaction, error)
- func (_V5ParaSwap *V5ParaSwapSession) DirectUniV3Swap(data UtilsDirectUniV3) (*types.Transaction, error)
- func (_V5ParaSwap *V5ParaSwapSession) FeeClaimer() (common.Address, error)
- func (_V5ParaSwap *V5ParaSwapSession) GetKey() ([32]byte, error)
- func (_V5ParaSwap *V5ParaSwapSession) Initialize(arg0 []byte) error
- func (_V5ParaSwap *V5ParaSwapSession) MaxFeePercent() (*big.Int, error)
- func (_V5ParaSwap *V5ParaSwapSession) ParaswapReferralShare() (*big.Int, error)
- func (_V5ParaSwap *V5ParaSwapSession) ParaswapSlippageShare() (*big.Int, error)
- func (_V5ParaSwap *V5ParaSwapSession) PartnerSharePercent() (*big.Int, error)
- func (_V5ParaSwap *V5ParaSwapSession) ROUTERROLE() ([32]byte, error)
- func (_V5ParaSwap *V5ParaSwapSession) WHITELISTEDROLE() ([32]byte, error)
- func (_V5ParaSwap *V5ParaSwapSession) Weth() (common.Address, error)
- type V5ParaSwapSwappedDirect
- type V5ParaSwapSwappedDirectIterator
- type V5ParaSwapSwappedV3
- type V5ParaSwapSwappedV3Iterator
- type V5ParaSwapTransactor
- func (_V5ParaSwap *V5ParaSwapTransactor) DirectBalancerV2GivenInSwap(opts *bind.TransactOpts, data UtilsDirectBalancerV2) (*types.Transaction, error)
- func (_V5ParaSwap *V5ParaSwapTransactor) DirectBalancerV2GivenOutSwap(opts *bind.TransactOpts, data UtilsDirectBalancerV2) (*types.Transaction, error)
- func (_V5ParaSwap *V5ParaSwapTransactor) DirectCurveV1Swap(opts *bind.TransactOpts, data UtilsDirectCurveV1) (*types.Transaction, error)
- func (_V5ParaSwap *V5ParaSwapTransactor) DirectCurveV2Swap(opts *bind.TransactOpts, data UtilsDirectCurveV2) (*types.Transaction, error)
- func (_V5ParaSwap *V5ParaSwapTransactor) DirectUniV3Buy(opts *bind.TransactOpts, data UtilsDirectUniV3) (*types.Transaction, error)
- func (_V5ParaSwap *V5ParaSwapTransactor) DirectUniV3Swap(opts *bind.TransactOpts, data UtilsDirectUniV3) (*types.Transaction, error)
- type V5ParaSwapTransactorRaw
- type V5ParaSwapTransactorSession
- func (_V5ParaSwap *V5ParaSwapTransactorSession) DirectBalancerV2GivenInSwap(data UtilsDirectBalancerV2) (*types.Transaction, error)
- func (_V5ParaSwap *V5ParaSwapTransactorSession) DirectBalancerV2GivenOutSwap(data UtilsDirectBalancerV2) (*types.Transaction, error)
- func (_V5ParaSwap *V5ParaSwapTransactorSession) DirectCurveV1Swap(data UtilsDirectCurveV1) (*types.Transaction, error)
- func (_V5ParaSwap *V5ParaSwapTransactorSession) DirectCurveV2Swap(data UtilsDirectCurveV2) (*types.Transaction, error)
- func (_V5ParaSwap *V5ParaSwapTransactorSession) DirectUniV3Buy(data UtilsDirectUniV3) (*types.Transaction, error)
- func (_V5ParaSwap *V5ParaSwapTransactorSession) DirectUniV3Swap(data UtilsDirectUniV3) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var ( AddressV5ParaSwap = common.HexToAddress("0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57") AddressV5ParaSwapBase = common.HexToAddress("0x59C7C832e96D2568bea6db468C1aAdcbbDa08A52") AddressETH = common.HexToAddress("0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE") EventHashV3Swapped = contract.EventHash("SwappedV3(bytes16,address,uint256,address,address,address,address,uint256,uint256,uint256)") EventHashV3Bought = contract.EventHash("BoughtV3(bytes16,address,uint256,address,address,address,address,uint256,uint256,uint256)") EventHashSwappedDirect = contract.EventHash("SwappedDirect(bytes16,address,uint256,address,uint8,address,address,address,uint256,uint256,uint256)") )
https://developers.paraswap.network/smart-contracts
var V5ParaSwapABI = V5ParaSwapMetaData.ABI
V5ParaSwapABI is the input ABI used to generate the binding from. Deprecated: Use V5ParaSwapMetaData.ABI instead.
var V5ParaSwapMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_weth\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_partnerSharePercent\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_maxFeePercent\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_paraswapReferralShare\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_paraswapSlippageShare\",\"type\":\"uint256\"},{\"internalType\":\"contractIFeeClaimer\",\"name\":\"_feeClaimer\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes16\",\"name\":\"uuid\",\"type\":\"bytes16\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"partner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feePercent\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"initiator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"srcToken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"destToken\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"srcAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"receivedAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"expectedAmount\",\"type\":\"uint256\"}],\"name\":\"BoughtV3\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes16\",\"name\":\"uuid\",\"type\":\"bytes16\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"partner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feePercent\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"initiator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"enumDirectSwap.DirectSwapKind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"srcToken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"destToken\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"srcAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"receivedAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"expectedAmount\",\"type\":\"uint256\"}],\"name\":\"SwappedDirect\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes16\",\"name\":\"uuid\",\"type\":\"bytes16\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"partner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feePercent\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"initiator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"srcToken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"destToken\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"srcAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"receivedAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"expectedAmount\",\"type\":\"uint256\"}],\"name\":\"SwappedV3\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ROUTER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WHITELISTED_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"assetInIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"assetOutIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"internalType\":\"structIBalancerV2Vault.BatchSwapStep[]\",\"name\":\"swaps\",\"type\":\"tuple[]\"},{\"internalType\":\"address[]\",\"name\":\"assets\",\"type\":\"address[]\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"fromInternalBalance\",\"type\":\"bool\"},{\"internalType\":\"addresspayable\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"toInternalBalance\",\"type\":\"bool\"}],\"internalType\":\"structIBalancerV2Vault.FundManagement\",\"name\":\"funds\",\"type\":\"tuple\"},{\"internalType\":\"int256[]\",\"name\":\"limits\",\"type\":\"int256[]\"},{\"internalType\":\"uint256\",\"name\":\"fromAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"toAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expectedAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feePercent\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"vault\",\"type\":\"address\"},{\"internalType\":\"addresspayable\",\"name\":\"partner\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isApproved\",\"type\":\"bool\"},{\"internalType\":\"addresspayable\",\"name\":\"beneficiary\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"permit\",\"type\":\"bytes\"},{\"internalType\":\"bytes16\",\"name\":\"uuid\",\"type\":\"bytes16\"}],\"internalType\":\"structUtils.DirectBalancerV2\",\"name\":\"data\",\"type\":\"tuple\"}],\"name\":\"directBalancerV2GivenInSwap\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"assetInIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"assetOutIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"internalType\":\"structIBalancerV2Vault.BatchSwapStep[]\",\"name\":\"swaps\",\"type\":\"tuple[]\"},{\"internalType\":\"address[]\",\"name\":\"assets\",\"type\":\"address[]\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"fromInternalBalance\",\"type\":\"bool\"},{\"internalType\":\"addresspayable\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"toInternalBalance\",\"type\":\"bool\"}],\"internalType\":\"structIBalancerV2Vault.FundManagement\",\"name\":\"funds\",\"type\":\"tuple\"},{\"internalType\":\"int256[]\",\"name\":\"limits\",\"type\":\"int256[]\"},{\"internalType\":\"uint256\",\"name\":\"fromAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"toAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expectedAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feePercent\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"vault\",\"type\":\"address\"},{\"internalType\":\"addresspayable\",\"name\":\"partner\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isApproved\",\"type\":\"bool\"},{\"internalType\":\"addresspayable\",\"name\":\"beneficiary\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"permit\",\"type\":\"bytes\"},{\"internalType\":\"bytes16\",\"name\":\"uuid\",\"type\":\"bytes16\"}],\"internalType\":\"structUtils.DirectBalancerV2\",\"name\":\"data\",\"type\":\"tuple\"}],\"name\":\"directBalancerV2GivenOutSwap\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"fromToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"toToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"exchange\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"fromAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"toAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expectedAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feePercent\",\"type\":\"uint256\"},{\"internalType\":\"int128\",\"name\":\"i\",\"type\":\"int128\"},{\"internalType\":\"int128\",\"name\":\"j\",\"type\":\"int128\"},{\"internalType\":\"addresspayable\",\"name\":\"partner\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isApproved\",\"type\":\"bool\"},{\"internalType\":\"enumUtils.CurveSwapType\",\"name\":\"swapType\",\"type\":\"uint8\"},{\"internalType\":\"addresspayable\",\"name\":\"beneficiary\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"needWrapNative\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"permit\",\"type\":\"bytes\"},{\"internalType\":\"bytes16\",\"name\":\"uuid\",\"type\":\"bytes16\"}],\"internalType\":\"structUtils.DirectCurveV1\",\"name\":\"data\",\"type\":\"tuple\"}],\"name\":\"directCurveV1Swap\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"fromToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"toToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"exchange\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"poolAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"fromAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"toAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expectedAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feePercent\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"i\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"j\",\"type\":\"uint256\"},{\"internalType\":\"addresspayable\",\"name\":\"partner\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isApproved\",\"type\":\"bool\"},{\"internalType\":\"enumUtils.CurveSwapType\",\"name\":\"swapType\",\"type\":\"uint8\"},{\"internalType\":\"addresspayable\",\"name\":\"beneficiary\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"needWrapNative\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"permit\",\"type\":\"bytes\"},{\"internalType\":\"bytes16\",\"name\":\"uuid\",\"type\":\"bytes16\"}],\"internalType\":\"structUtils.DirectCurveV2\",\"name\":\"data\",\"type\":\"tuple\"}],\"name\":\"directCurveV2Swap\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"fromToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"toToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"exchange\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"fromAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"toAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expectedAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feePercent\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"addresspayable\",\"name\":\"partner\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isApproved\",\"type\":\"bool\"},{\"internalType\":\"addresspayable\",\"name\":\"beneficiary\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"path\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"permit\",\"type\":\"bytes\"},{\"internalType\":\"bytes16\",\"name\":\"uuid\",\"type\":\"bytes16\"}],\"internalType\":\"structUtils.DirectUniV3\",\"name\":\"data\",\"type\":\"tuple\"}],\"name\":\"directUniV3Buy\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"fromToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"toToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"exchange\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"fromAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"toAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expectedAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feePercent\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"addresspayable\",\"name\":\"partner\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isApproved\",\"type\":\"bool\"},{\"internalType\":\"addresspayable\",\"name\":\"beneficiary\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"path\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"permit\",\"type\":\"bytes\"},{\"internalType\":\"bytes16\",\"name\":\"uuid\",\"type\":\"bytes16\"}],\"internalType\":\"structUtils.DirectUniV3\",\"name\":\"data\",\"type\":\"tuple\"}],\"name\":\"directUniV3Swap\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeClaimer\",\"outputs\":[{\"internalType\":\"contractIFeeClaimer\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getKey\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxFeePercent\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paraswapReferralShare\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paraswapSlippageShare\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"partnerSharePercent\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"weth\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
V5ParaSwapMetaData contains all meta data concerning the V5ParaSwap contract.
Functions ¶
This section is empty.
Types ¶
type IBalancerV2VaultBatchSwapStep ¶
type IBalancerV2VaultBatchSwapStep struct { PoolId [32]byte AssetInIndex *big.Int AssetOutIndex *big.Int Amount *big.Int UserData []byte }
IBalancerV2VaultBatchSwapStep is an auto generated low-level Go binding around an user-defined struct.
type IBalancerV2VaultFundManagement ¶
type IBalancerV2VaultFundManagement struct { Sender common.Address FromInternalBalance bool Recipient common.Address ToInternalBalance bool }
IBalancerV2VaultFundManagement is an auto generated low-level Go binding around an user-defined struct.
type UtilsDirectBalancerV2 ¶
type UtilsDirectBalancerV2 struct { Swaps []IBalancerV2VaultBatchSwapStep Assets []common.Address Funds IBalancerV2VaultFundManagement Limits []*big.Int FromAmount *big.Int ToAmount *big.Int ExpectedAmount *big.Int Deadline *big.Int FeePercent *big.Int Vault common.Address Partner common.Address IsApproved bool Beneficiary common.Address Permit []byte Uuid [16]byte }
UtilsDirectBalancerV2 is an auto generated low-level Go binding around an user-defined struct.
type UtilsDirectCurveV1 ¶
type UtilsDirectCurveV1 struct { FromToken common.Address ToToken common.Address Exchange common.Address FromAmount *big.Int ToAmount *big.Int ExpectedAmount *big.Int FeePercent *big.Int I *big.Int J *big.Int Partner common.Address IsApproved bool SwapType uint8 Beneficiary common.Address NeedWrapNative bool Permit []byte Uuid [16]byte }
UtilsDirectCurveV1 is an auto generated low-level Go binding around an user-defined struct.
type UtilsDirectCurveV2 ¶
type UtilsDirectCurveV2 struct { FromToken common.Address ToToken common.Address Exchange common.Address PoolAddress common.Address FromAmount *big.Int ToAmount *big.Int ExpectedAmount *big.Int FeePercent *big.Int I *big.Int J *big.Int Partner common.Address IsApproved bool SwapType uint8 Beneficiary common.Address NeedWrapNative bool Permit []byte Uuid [16]byte }
UtilsDirectCurveV2 is an auto generated low-level Go binding around an user-defined struct.
type UtilsDirectUniV3 ¶
type UtilsDirectUniV3 struct { FromToken common.Address ToToken common.Address Exchange common.Address FromAmount *big.Int ToAmount *big.Int ExpectedAmount *big.Int FeePercent *big.Int Deadline *big.Int Partner common.Address IsApproved bool Beneficiary common.Address Path []byte Permit []byte Uuid [16]byte }
UtilsDirectUniV3 is an auto generated low-level Go binding around an user-defined struct.
type V5ParaSwap ¶
type V5ParaSwap struct { V5ParaSwapCaller // Read-only binding to the contract V5ParaSwapTransactor // Write-only binding to the contract V5ParaSwapFilterer // Log filterer for contract events }
V5ParaSwap is an auto generated Go binding around an Ethereum contract.
func NewV5ParaSwap ¶
func NewV5ParaSwap(address common.Address, backend bind.ContractBackend) (*V5ParaSwap, error)
NewV5ParaSwap creates a new instance of V5ParaSwap, bound to a specific deployed contract.
type V5ParaSwapBoughtV3 ¶
type V5ParaSwapBoughtV3 struct { Uuid [16]byte Partner common.Address FeePercent *big.Int Initiator common.Address Beneficiary common.Address SrcToken common.Address DestToken common.Address SrcAmount *big.Int ReceivedAmount *big.Int ExpectedAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
V5ParaSwapBoughtV3 represents a BoughtV3 event raised by the V5ParaSwap contract.
type V5ParaSwapBoughtV3Iterator ¶
type V5ParaSwapBoughtV3Iterator struct { Event *V5ParaSwapBoughtV3 // Event containing the contract specifics and raw log // contains filtered or unexported fields }
V5ParaSwapBoughtV3Iterator is returned from FilterBoughtV3 and is used to iterate over the raw logs and unpacked data for BoughtV3 events raised by the V5ParaSwap contract.
func (*V5ParaSwapBoughtV3Iterator) Close ¶
func (it *V5ParaSwapBoughtV3Iterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*V5ParaSwapBoughtV3Iterator) Error ¶
func (it *V5ParaSwapBoughtV3Iterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*V5ParaSwapBoughtV3Iterator) Next ¶
func (it *V5ParaSwapBoughtV3Iterator) 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 V5ParaSwapCaller ¶
type V5ParaSwapCaller struct {
// contains filtered or unexported fields
}
V5ParaSwapCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewV5ParaSwapCaller ¶
func NewV5ParaSwapCaller(address common.Address, caller bind.ContractCaller) (*V5ParaSwapCaller, error)
NewV5ParaSwapCaller creates a new read-only instance of V5ParaSwap, bound to a specific deployed contract.
func (*V5ParaSwapCaller) FeeClaimer ¶
FeeClaimer is a free data retrieval call binding the contract method 0x81cbd3ea.
Solidity: function feeClaimer() view returns(address)
func (*V5ParaSwapCaller) GetKey ¶
func (_V5ParaSwap *V5ParaSwapCaller) GetKey(opts *bind.CallOpts) ([32]byte, error)
GetKey is a free data retrieval call binding the contract method 0x82678dd6.
Solidity: function getKey() pure returns(bytes32)
func (*V5ParaSwapCaller) Initialize ¶
func (_V5ParaSwap *V5ParaSwapCaller) Initialize(opts *bind.CallOpts, arg0 []byte) error
Initialize is a free data retrieval call binding the contract method 0x439fab91.
Solidity: function initialize(bytes ) pure returns()
func (*V5ParaSwapCaller) MaxFeePercent ¶
MaxFeePercent is a free data retrieval call binding the contract method 0xd830a05b.
Solidity: function maxFeePercent() view returns(uint256)
func (*V5ParaSwapCaller) ParaswapReferralShare ¶
ParaswapReferralShare is a free data retrieval call binding the contract method 0xd555d4f9.
Solidity: function paraswapReferralShare() view returns(uint256)
func (*V5ParaSwapCaller) ParaswapSlippageShare ¶
ParaswapSlippageShare is a free data retrieval call binding the contract method 0xc25ff026.
Solidity: function paraswapSlippageShare() view returns(uint256)
func (*V5ParaSwapCaller) PartnerSharePercent ¶
PartnerSharePercent is a free data retrieval call binding the contract method 0x12070a41.
Solidity: function partnerSharePercent() view returns(uint256)
func (*V5ParaSwapCaller) ROUTERROLE ¶
func (_V5ParaSwap *V5ParaSwapCaller) ROUTERROLE(opts *bind.CallOpts) ([32]byte, error)
ROUTERROLE is a free data retrieval call binding the contract method 0x30d643b5.
Solidity: function ROUTER_ROLE() view returns(bytes32)
func (*V5ParaSwapCaller) WHITELISTEDROLE ¶
func (_V5ParaSwap *V5ParaSwapCaller) WHITELISTEDROLE(opts *bind.CallOpts) ([32]byte, error)
WHITELISTEDROLE is a free data retrieval call binding the contract method 0x7a3226ec.
Solidity: function WHITELISTED_ROLE() view returns(bytes32)
type V5ParaSwapCallerRaw ¶
type V5ParaSwapCallerRaw struct {
Contract *V5ParaSwapCaller // Generic read-only contract binding to access the raw methods on
}
V5ParaSwapCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*V5ParaSwapCallerRaw) Call ¶
func (_V5ParaSwap *V5ParaSwapCallerRaw) 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 V5ParaSwapCallerSession ¶
type V5ParaSwapCallerSession struct { Contract *V5ParaSwapCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
V5ParaSwapCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*V5ParaSwapCallerSession) FeeClaimer ¶
func (_V5ParaSwap *V5ParaSwapCallerSession) FeeClaimer() (common.Address, error)
FeeClaimer is a free data retrieval call binding the contract method 0x81cbd3ea.
Solidity: function feeClaimer() view returns(address)
func (*V5ParaSwapCallerSession) GetKey ¶
func (_V5ParaSwap *V5ParaSwapCallerSession) GetKey() ([32]byte, error)
GetKey is a free data retrieval call binding the contract method 0x82678dd6.
Solidity: function getKey() pure returns(bytes32)
func (*V5ParaSwapCallerSession) Initialize ¶
func (_V5ParaSwap *V5ParaSwapCallerSession) Initialize(arg0 []byte) error
Initialize is a free data retrieval call binding the contract method 0x439fab91.
Solidity: function initialize(bytes ) pure returns()
func (*V5ParaSwapCallerSession) MaxFeePercent ¶
func (_V5ParaSwap *V5ParaSwapCallerSession) MaxFeePercent() (*big.Int, error)
MaxFeePercent is a free data retrieval call binding the contract method 0xd830a05b.
Solidity: function maxFeePercent() view returns(uint256)
func (*V5ParaSwapCallerSession) ParaswapReferralShare ¶
func (_V5ParaSwap *V5ParaSwapCallerSession) ParaswapReferralShare() (*big.Int, error)
ParaswapReferralShare is a free data retrieval call binding the contract method 0xd555d4f9.
Solidity: function paraswapReferralShare() view returns(uint256)
func (*V5ParaSwapCallerSession) ParaswapSlippageShare ¶
func (_V5ParaSwap *V5ParaSwapCallerSession) ParaswapSlippageShare() (*big.Int, error)
ParaswapSlippageShare is a free data retrieval call binding the contract method 0xc25ff026.
Solidity: function paraswapSlippageShare() view returns(uint256)
func (*V5ParaSwapCallerSession) PartnerSharePercent ¶
func (_V5ParaSwap *V5ParaSwapCallerSession) PartnerSharePercent() (*big.Int, error)
PartnerSharePercent is a free data retrieval call binding the contract method 0x12070a41.
Solidity: function partnerSharePercent() view returns(uint256)
func (*V5ParaSwapCallerSession) ROUTERROLE ¶
func (_V5ParaSwap *V5ParaSwapCallerSession) ROUTERROLE() ([32]byte, error)
ROUTERROLE is a free data retrieval call binding the contract method 0x30d643b5.
Solidity: function ROUTER_ROLE() view returns(bytes32)
func (*V5ParaSwapCallerSession) WHITELISTEDROLE ¶
func (_V5ParaSwap *V5ParaSwapCallerSession) WHITELISTEDROLE() ([32]byte, error)
WHITELISTEDROLE is a free data retrieval call binding the contract method 0x7a3226ec.
Solidity: function WHITELISTED_ROLE() view returns(bytes32)
type V5ParaSwapFilterer ¶
type V5ParaSwapFilterer struct {
// contains filtered or unexported fields
}
V5ParaSwapFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewV5ParaSwapFilterer ¶
func NewV5ParaSwapFilterer(address common.Address, filterer bind.ContractFilterer) (*V5ParaSwapFilterer, error)
NewV5ParaSwapFilterer creates a new log filterer instance of V5ParaSwap, bound to a specific deployed contract.
func (*V5ParaSwapFilterer) FilterBoughtV3 ¶
func (_V5ParaSwap *V5ParaSwapFilterer) FilterBoughtV3(opts *bind.FilterOpts, beneficiary []common.Address, srcToken []common.Address, destToken []common.Address) (*V5ParaSwapBoughtV3Iterator, error)
FilterBoughtV3 is a free log retrieval operation binding the contract event 0x4cc7e95e48af62690313a0733e93308ac9a73326bc3c29f1788b1191c376d5b6.
Solidity: event BoughtV3(bytes16 uuid, address partner, uint256 feePercent, address initiator, address indexed beneficiary, address indexed srcToken, address indexed destToken, uint256 srcAmount, uint256 receivedAmount, uint256 expectedAmount)
func (*V5ParaSwapFilterer) FilterSwappedDirect ¶
func (_V5ParaSwap *V5ParaSwapFilterer) FilterSwappedDirect(opts *bind.FilterOpts, beneficiary []common.Address, srcToken []common.Address, destToken []common.Address) (*V5ParaSwapSwappedDirectIterator, error)
FilterSwappedDirect is a free log retrieval operation binding the contract event 0xd2d73da2b5fd52cd654d8fd1b514ad57355bad741de639e3a1c3a20dd9f17347.
Solidity: event SwappedDirect(bytes16 uuid, address partner, uint256 feePercent, address initiator, uint8 kind, address indexed beneficiary, address indexed srcToken, address indexed destToken, uint256 srcAmount, uint256 receivedAmount, uint256 expectedAmount)
func (*V5ParaSwapFilterer) FilterSwappedV3 ¶
func (_V5ParaSwap *V5ParaSwapFilterer) FilterSwappedV3(opts *bind.FilterOpts, beneficiary []common.Address, srcToken []common.Address, destToken []common.Address) (*V5ParaSwapSwappedV3Iterator, error)
FilterSwappedV3 is a free log retrieval operation binding the contract event 0xe00361d207b252a464323eb23d45d42583e391f2031acdd2e9fa36efddd43cb0.
Solidity: event SwappedV3(bytes16 uuid, address partner, uint256 feePercent, address initiator, address indexed beneficiary, address indexed srcToken, address indexed destToken, uint256 srcAmount, uint256 receivedAmount, uint256 expectedAmount)
func (*V5ParaSwapFilterer) ParseBoughtV3 ¶
func (_V5ParaSwap *V5ParaSwapFilterer) ParseBoughtV3(log types.Log) (*V5ParaSwapBoughtV3, error)
ParseBoughtV3 is a log parse operation binding the contract event 0x4cc7e95e48af62690313a0733e93308ac9a73326bc3c29f1788b1191c376d5b6.
Solidity: event BoughtV3(bytes16 uuid, address partner, uint256 feePercent, address initiator, address indexed beneficiary, address indexed srcToken, address indexed destToken, uint256 srcAmount, uint256 receivedAmount, uint256 expectedAmount)
func (*V5ParaSwapFilterer) ParseSwappedDirect ¶
func (_V5ParaSwap *V5ParaSwapFilterer) ParseSwappedDirect(log types.Log) (*V5ParaSwapSwappedDirect, error)
ParseSwappedDirect is a log parse operation binding the contract event 0xd2d73da2b5fd52cd654d8fd1b514ad57355bad741de639e3a1c3a20dd9f17347.
Solidity: event SwappedDirect(bytes16 uuid, address partner, uint256 feePercent, address initiator, uint8 kind, address indexed beneficiary, address indexed srcToken, address indexed destToken, uint256 srcAmount, uint256 receivedAmount, uint256 expectedAmount)
func (*V5ParaSwapFilterer) ParseSwappedV3 ¶
func (_V5ParaSwap *V5ParaSwapFilterer) ParseSwappedV3(log types.Log) (*V5ParaSwapSwappedV3, error)
ParseSwappedV3 is a log parse operation binding the contract event 0xe00361d207b252a464323eb23d45d42583e391f2031acdd2e9fa36efddd43cb0.
Solidity: event SwappedV3(bytes16 uuid, address partner, uint256 feePercent, address initiator, address indexed beneficiary, address indexed srcToken, address indexed destToken, uint256 srcAmount, uint256 receivedAmount, uint256 expectedAmount)
func (*V5ParaSwapFilterer) WatchBoughtV3 ¶
func (_V5ParaSwap *V5ParaSwapFilterer) WatchBoughtV3(opts *bind.WatchOpts, sink chan<- *V5ParaSwapBoughtV3, beneficiary []common.Address, srcToken []common.Address, destToken []common.Address) (event.Subscription, error)
WatchBoughtV3 is a free log subscription operation binding the contract event 0x4cc7e95e48af62690313a0733e93308ac9a73326bc3c29f1788b1191c376d5b6.
Solidity: event BoughtV3(bytes16 uuid, address partner, uint256 feePercent, address initiator, address indexed beneficiary, address indexed srcToken, address indexed destToken, uint256 srcAmount, uint256 receivedAmount, uint256 expectedAmount)
func (*V5ParaSwapFilterer) WatchSwappedDirect ¶
func (_V5ParaSwap *V5ParaSwapFilterer) WatchSwappedDirect(opts *bind.WatchOpts, sink chan<- *V5ParaSwapSwappedDirect, beneficiary []common.Address, srcToken []common.Address, destToken []common.Address) (event.Subscription, error)
WatchSwappedDirect is a free log subscription operation binding the contract event 0xd2d73da2b5fd52cd654d8fd1b514ad57355bad741de639e3a1c3a20dd9f17347.
Solidity: event SwappedDirect(bytes16 uuid, address partner, uint256 feePercent, address initiator, uint8 kind, address indexed beneficiary, address indexed srcToken, address indexed destToken, uint256 srcAmount, uint256 receivedAmount, uint256 expectedAmount)
func (*V5ParaSwapFilterer) WatchSwappedV3 ¶
func (_V5ParaSwap *V5ParaSwapFilterer) WatchSwappedV3(opts *bind.WatchOpts, sink chan<- *V5ParaSwapSwappedV3, beneficiary []common.Address, srcToken []common.Address, destToken []common.Address) (event.Subscription, error)
WatchSwappedV3 is a free log subscription operation binding the contract event 0xe00361d207b252a464323eb23d45d42583e391f2031acdd2e9fa36efddd43cb0.
Solidity: event SwappedV3(bytes16 uuid, address partner, uint256 feePercent, address initiator, address indexed beneficiary, address indexed srcToken, address indexed destToken, uint256 srcAmount, uint256 receivedAmount, uint256 expectedAmount)
type V5ParaSwapRaw ¶
type V5ParaSwapRaw struct {
Contract *V5ParaSwap // Generic contract binding to access the raw methods on
}
V5ParaSwapRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*V5ParaSwapRaw) Call ¶
func (_V5ParaSwap *V5ParaSwapRaw) 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 (*V5ParaSwapRaw) Transact ¶
func (_V5ParaSwap *V5ParaSwapRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*V5ParaSwapRaw) Transfer ¶
func (_V5ParaSwap *V5ParaSwapRaw) 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 V5ParaSwapSession ¶
type V5ParaSwapSession struct { Contract *V5ParaSwap // 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 }
V5ParaSwapSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*V5ParaSwapSession) DirectBalancerV2GivenInSwap ¶
func (_V5ParaSwap *V5ParaSwapSession) DirectBalancerV2GivenInSwap(data UtilsDirectBalancerV2) (*types.Transaction, error)
DirectBalancerV2GivenInSwap is a paid mutator transaction binding the contract method 0xb22f4db8.
Solidity: function directBalancerV2GivenInSwap(((bytes32,uint256,uint256,uint256,bytes)[],address[],(address,bool,address,bool),int256[],uint256,uint256,uint256,uint256,uint256,address,address,bool,address,bytes,bytes16) data) payable returns()
func (*V5ParaSwapSession) DirectBalancerV2GivenOutSwap ¶
func (_V5ParaSwap *V5ParaSwapSession) DirectBalancerV2GivenOutSwap(data UtilsDirectBalancerV2) (*types.Transaction, error)
DirectBalancerV2GivenOutSwap is a paid mutator transaction binding the contract method 0x19fc5be0.
Solidity: function directBalancerV2GivenOutSwap(((bytes32,uint256,uint256,uint256,bytes)[],address[],(address,bool,address,bool),int256[],uint256,uint256,uint256,uint256,uint256,address,address,bool,address,bytes,bytes16) data) payable returns()
func (*V5ParaSwapSession) DirectCurveV1Swap ¶
func (_V5ParaSwap *V5ParaSwapSession) DirectCurveV1Swap(data UtilsDirectCurveV1) (*types.Transaction, error)
DirectCurveV1Swap is a paid mutator transaction binding the contract method 0x3865bde6.
Solidity: function directCurveV1Swap((address,address,address,uint256,uint256,uint256,uint256,int128,int128,address,bool,uint8,address,bool,bytes,bytes16) data) payable returns()
func (*V5ParaSwapSession) DirectCurveV2Swap ¶
func (_V5ParaSwap *V5ParaSwapSession) DirectCurveV2Swap(data UtilsDirectCurveV2) (*types.Transaction, error)
DirectCurveV2Swap is a paid mutator transaction binding the contract method 0x58f15100.
Solidity: function directCurveV2Swap((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,address,bool,uint8,address,bool,bytes,bytes16) data) payable returns()
func (*V5ParaSwapSession) DirectUniV3Buy ¶
func (_V5ParaSwap *V5ParaSwapSession) DirectUniV3Buy(data UtilsDirectUniV3) (*types.Transaction, error)
DirectUniV3Buy is a paid mutator transaction binding the contract method 0x87a63926.
Solidity: function directUniV3Buy((address,address,address,uint256,uint256,uint256,uint256,uint256,address,bool,address,bytes,bytes,bytes16) data) payable returns()
func (*V5ParaSwapSession) DirectUniV3Swap ¶
func (_V5ParaSwap *V5ParaSwapSession) DirectUniV3Swap(data UtilsDirectUniV3) (*types.Transaction, error)
DirectUniV3Swap is a paid mutator transaction binding the contract method 0xa6886da9.
Solidity: function directUniV3Swap((address,address,address,uint256,uint256,uint256,uint256,uint256,address,bool,address,bytes,bytes,bytes16) data) payable returns()
func (*V5ParaSwapSession) FeeClaimer ¶
func (_V5ParaSwap *V5ParaSwapSession) FeeClaimer() (common.Address, error)
FeeClaimer is a free data retrieval call binding the contract method 0x81cbd3ea.
Solidity: function feeClaimer() view returns(address)
func (*V5ParaSwapSession) GetKey ¶
func (_V5ParaSwap *V5ParaSwapSession) GetKey() ([32]byte, error)
GetKey is a free data retrieval call binding the contract method 0x82678dd6.
Solidity: function getKey() pure returns(bytes32)
func (*V5ParaSwapSession) Initialize ¶
func (_V5ParaSwap *V5ParaSwapSession) Initialize(arg0 []byte) error
Initialize is a free data retrieval call binding the contract method 0x439fab91.
Solidity: function initialize(bytes ) pure returns()
func (*V5ParaSwapSession) MaxFeePercent ¶
func (_V5ParaSwap *V5ParaSwapSession) MaxFeePercent() (*big.Int, error)
MaxFeePercent is a free data retrieval call binding the contract method 0xd830a05b.
Solidity: function maxFeePercent() view returns(uint256)
func (*V5ParaSwapSession) ParaswapReferralShare ¶
func (_V5ParaSwap *V5ParaSwapSession) ParaswapReferralShare() (*big.Int, error)
ParaswapReferralShare is a free data retrieval call binding the contract method 0xd555d4f9.
Solidity: function paraswapReferralShare() view returns(uint256)
func (*V5ParaSwapSession) ParaswapSlippageShare ¶
func (_V5ParaSwap *V5ParaSwapSession) ParaswapSlippageShare() (*big.Int, error)
ParaswapSlippageShare is a free data retrieval call binding the contract method 0xc25ff026.
Solidity: function paraswapSlippageShare() view returns(uint256)
func (*V5ParaSwapSession) PartnerSharePercent ¶
func (_V5ParaSwap *V5ParaSwapSession) PartnerSharePercent() (*big.Int, error)
PartnerSharePercent is a free data retrieval call binding the contract method 0x12070a41.
Solidity: function partnerSharePercent() view returns(uint256)
func (*V5ParaSwapSession) ROUTERROLE ¶
func (_V5ParaSwap *V5ParaSwapSession) ROUTERROLE() ([32]byte, error)
ROUTERROLE is a free data retrieval call binding the contract method 0x30d643b5.
Solidity: function ROUTER_ROLE() view returns(bytes32)
func (*V5ParaSwapSession) WHITELISTEDROLE ¶
func (_V5ParaSwap *V5ParaSwapSession) WHITELISTEDROLE() ([32]byte, error)
WHITELISTEDROLE is a free data retrieval call binding the contract method 0x7a3226ec.
Solidity: function WHITELISTED_ROLE() view returns(bytes32)
type V5ParaSwapSwappedDirect ¶
type V5ParaSwapSwappedDirect struct { Uuid [16]byte Partner common.Address FeePercent *big.Int Initiator common.Address Kind uint8 Beneficiary common.Address SrcToken common.Address DestToken common.Address SrcAmount *big.Int ReceivedAmount *big.Int ExpectedAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
V5ParaSwapSwappedDirect represents a SwappedDirect event raised by the V5ParaSwap contract.
type V5ParaSwapSwappedDirectIterator ¶
type V5ParaSwapSwappedDirectIterator struct { Event *V5ParaSwapSwappedDirect // Event containing the contract specifics and raw log // contains filtered or unexported fields }
V5ParaSwapSwappedDirectIterator is returned from FilterSwappedDirect and is used to iterate over the raw logs and unpacked data for SwappedDirect events raised by the V5ParaSwap contract.
func (*V5ParaSwapSwappedDirectIterator) Close ¶
func (it *V5ParaSwapSwappedDirectIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*V5ParaSwapSwappedDirectIterator) Error ¶
func (it *V5ParaSwapSwappedDirectIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*V5ParaSwapSwappedDirectIterator) Next ¶
func (it *V5ParaSwapSwappedDirectIterator) 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 V5ParaSwapSwappedV3 ¶
type V5ParaSwapSwappedV3 struct { Uuid [16]byte Partner common.Address FeePercent *big.Int Initiator common.Address Beneficiary common.Address SrcToken common.Address DestToken common.Address SrcAmount *big.Int ReceivedAmount *big.Int ExpectedAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
V5ParaSwapSwappedV3 represents a SwappedV3 event raised by the V5ParaSwap contract.
type V5ParaSwapSwappedV3Iterator ¶
type V5ParaSwapSwappedV3Iterator struct { Event *V5ParaSwapSwappedV3 // Event containing the contract specifics and raw log // contains filtered or unexported fields }
V5ParaSwapSwappedV3Iterator is returned from FilterSwappedV3 and is used to iterate over the raw logs and unpacked data for SwappedV3 events raised by the V5ParaSwap contract.
func (*V5ParaSwapSwappedV3Iterator) Close ¶
func (it *V5ParaSwapSwappedV3Iterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*V5ParaSwapSwappedV3Iterator) Error ¶
func (it *V5ParaSwapSwappedV3Iterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*V5ParaSwapSwappedV3Iterator) Next ¶
func (it *V5ParaSwapSwappedV3Iterator) 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 V5ParaSwapTransactor ¶
type V5ParaSwapTransactor struct {
// contains filtered or unexported fields
}
V5ParaSwapTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewV5ParaSwapTransactor ¶
func NewV5ParaSwapTransactor(address common.Address, transactor bind.ContractTransactor) (*V5ParaSwapTransactor, error)
NewV5ParaSwapTransactor creates a new write-only instance of V5ParaSwap, bound to a specific deployed contract.
func (*V5ParaSwapTransactor) DirectBalancerV2GivenInSwap ¶
func (_V5ParaSwap *V5ParaSwapTransactor) DirectBalancerV2GivenInSwap(opts *bind.TransactOpts, data UtilsDirectBalancerV2) (*types.Transaction, error)
DirectBalancerV2GivenInSwap is a paid mutator transaction binding the contract method 0xb22f4db8.
Solidity: function directBalancerV2GivenInSwap(((bytes32,uint256,uint256,uint256,bytes)[],address[],(address,bool,address,bool),int256[],uint256,uint256,uint256,uint256,uint256,address,address,bool,address,bytes,bytes16) data) payable returns()
func (*V5ParaSwapTransactor) DirectBalancerV2GivenOutSwap ¶
func (_V5ParaSwap *V5ParaSwapTransactor) DirectBalancerV2GivenOutSwap(opts *bind.TransactOpts, data UtilsDirectBalancerV2) (*types.Transaction, error)
DirectBalancerV2GivenOutSwap is a paid mutator transaction binding the contract method 0x19fc5be0.
Solidity: function directBalancerV2GivenOutSwap(((bytes32,uint256,uint256,uint256,bytes)[],address[],(address,bool,address,bool),int256[],uint256,uint256,uint256,uint256,uint256,address,address,bool,address,bytes,bytes16) data) payable returns()
func (*V5ParaSwapTransactor) DirectCurveV1Swap ¶
func (_V5ParaSwap *V5ParaSwapTransactor) DirectCurveV1Swap(opts *bind.TransactOpts, data UtilsDirectCurveV1) (*types.Transaction, error)
DirectCurveV1Swap is a paid mutator transaction binding the contract method 0x3865bde6.
Solidity: function directCurveV1Swap((address,address,address,uint256,uint256,uint256,uint256,int128,int128,address,bool,uint8,address,bool,bytes,bytes16) data) payable returns()
func (*V5ParaSwapTransactor) DirectCurveV2Swap ¶
func (_V5ParaSwap *V5ParaSwapTransactor) DirectCurveV2Swap(opts *bind.TransactOpts, data UtilsDirectCurveV2) (*types.Transaction, error)
DirectCurveV2Swap is a paid mutator transaction binding the contract method 0x58f15100.
Solidity: function directCurveV2Swap((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,address,bool,uint8,address,bool,bytes,bytes16) data) payable returns()
func (*V5ParaSwapTransactor) DirectUniV3Buy ¶
func (_V5ParaSwap *V5ParaSwapTransactor) DirectUniV3Buy(opts *bind.TransactOpts, data UtilsDirectUniV3) (*types.Transaction, error)
DirectUniV3Buy is a paid mutator transaction binding the contract method 0x87a63926.
Solidity: function directUniV3Buy((address,address,address,uint256,uint256,uint256,uint256,uint256,address,bool,address,bytes,bytes,bytes16) data) payable returns()
func (*V5ParaSwapTransactor) DirectUniV3Swap ¶
func (_V5ParaSwap *V5ParaSwapTransactor) DirectUniV3Swap(opts *bind.TransactOpts, data UtilsDirectUniV3) (*types.Transaction, error)
DirectUniV3Swap is a paid mutator transaction binding the contract method 0xa6886da9.
Solidity: function directUniV3Swap((address,address,address,uint256,uint256,uint256,uint256,uint256,address,bool,address,bytes,bytes,bytes16) data) payable returns()
type V5ParaSwapTransactorRaw ¶
type V5ParaSwapTransactorRaw struct {
Contract *V5ParaSwapTransactor // Generic write-only contract binding to access the raw methods on
}
V5ParaSwapTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*V5ParaSwapTransactorRaw) Transact ¶
func (_V5ParaSwap *V5ParaSwapTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*V5ParaSwapTransactorRaw) Transfer ¶
func (_V5ParaSwap *V5ParaSwapTransactorRaw) 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 V5ParaSwapTransactorSession ¶
type V5ParaSwapTransactorSession struct { Contract *V5ParaSwapTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
V5ParaSwapTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*V5ParaSwapTransactorSession) DirectBalancerV2GivenInSwap ¶
func (_V5ParaSwap *V5ParaSwapTransactorSession) DirectBalancerV2GivenInSwap(data UtilsDirectBalancerV2) (*types.Transaction, error)
DirectBalancerV2GivenInSwap is a paid mutator transaction binding the contract method 0xb22f4db8.
Solidity: function directBalancerV2GivenInSwap(((bytes32,uint256,uint256,uint256,bytes)[],address[],(address,bool,address,bool),int256[],uint256,uint256,uint256,uint256,uint256,address,address,bool,address,bytes,bytes16) data) payable returns()
func (*V5ParaSwapTransactorSession) DirectBalancerV2GivenOutSwap ¶
func (_V5ParaSwap *V5ParaSwapTransactorSession) DirectBalancerV2GivenOutSwap(data UtilsDirectBalancerV2) (*types.Transaction, error)
DirectBalancerV2GivenOutSwap is a paid mutator transaction binding the contract method 0x19fc5be0.
Solidity: function directBalancerV2GivenOutSwap(((bytes32,uint256,uint256,uint256,bytes)[],address[],(address,bool,address,bool),int256[],uint256,uint256,uint256,uint256,uint256,address,address,bool,address,bytes,bytes16) data) payable returns()
func (*V5ParaSwapTransactorSession) DirectCurveV1Swap ¶
func (_V5ParaSwap *V5ParaSwapTransactorSession) DirectCurveV1Swap(data UtilsDirectCurveV1) (*types.Transaction, error)
DirectCurveV1Swap is a paid mutator transaction binding the contract method 0x3865bde6.
Solidity: function directCurveV1Swap((address,address,address,uint256,uint256,uint256,uint256,int128,int128,address,bool,uint8,address,bool,bytes,bytes16) data) payable returns()
func (*V5ParaSwapTransactorSession) DirectCurveV2Swap ¶
func (_V5ParaSwap *V5ParaSwapTransactorSession) DirectCurveV2Swap(data UtilsDirectCurveV2) (*types.Transaction, error)
DirectCurveV2Swap is a paid mutator transaction binding the contract method 0x58f15100.
Solidity: function directCurveV2Swap((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,address,bool,uint8,address,bool,bytes,bytes16) data) payable returns()
func (*V5ParaSwapTransactorSession) DirectUniV3Buy ¶
func (_V5ParaSwap *V5ParaSwapTransactorSession) DirectUniV3Buy(data UtilsDirectUniV3) (*types.Transaction, error)
DirectUniV3Buy is a paid mutator transaction binding the contract method 0x87a63926.
Solidity: function directUniV3Buy((address,address,address,uint256,uint256,uint256,uint256,uint256,address,bool,address,bytes,bytes,bytes16) data) payable returns()
func (*V5ParaSwapTransactorSession) DirectUniV3Swap ¶
func (_V5ParaSwap *V5ParaSwapTransactorSession) DirectUniV3Swap(data UtilsDirectUniV3) (*types.Transaction, error)
DirectUniV3Swap is a paid mutator transaction binding the contract method 0xa6886da9.
Solidity: function directUniV3Swap((address,address,address,uint256,uint256,uint256,uint256,uint256,address,bool,address,bytes,bytes,bytes16) data) payable returns()