SuperformRouter
Inherits: BaseRouterImplementation
Author: Zeropoint Labs.
SPDX-License-Identifier: Apache-2.0
SuperformRouter users funds and action information to a remote execution chain.
Uses standard BaseRouterImplementation without any overrides to internal execution functions
Functions
constructor
constructor(
address superRegistry_,
uint8 stateRegistryType_,
uint8 routerType_
)
BaseRouterImplementation(superRegistry_, stateRegistryType_, routerType_);
Parameters
Name | Type | Description |
---|---|---|
superRegistry_ | address | the superform registry contract |
stateRegistryType_ | uint8 | the state registry type |
routerType_ | uint8 | the router type |
multiDstMultiVaultDeposit
Performs multi destination x multi vault deposits
function multiDstMultiVaultDeposit(MultiDstMultiVaultStateReq calldata req_)
external
payable
override(BaseRouter, IBaseRouter);
Parameters
Name | Type | Description |
---|---|---|
req_ | MultiDstMultiVaultStateReq | is the request object containing all the necessary data for the action |
multiDstSingleVaultDeposit
Performs multi destination x single vault deposits
function multiDstSingleVaultDeposit(MultiDstSingleVaultStateReq calldata req_)
external
payable
override(BaseRouter, IBaseRouter);
Parameters
Name | Type | Description |
---|---|---|
req_ | MultiDstSingleVaultStateReq | is the request object containing all the necessary data for the action |
singleXChainMultiVaultDeposit
Performs single destination x multi vault deposits
function singleXChainMultiVaultDeposit(SingleXChainMultiVaultStateReq memory req_)
external
payable
override(BaseRouter, IBaseRouter);
Parameters
Name | Type | Description |
---|---|---|
req_ | SingleXChainMultiVaultStateReq | is the request object containing all the necessary data for the action |
singleXChainSingleVaultDeposit
Performs single xchain destination x single vault deposits
function singleXChainSingleVaultDeposit(SingleXChainSingleVaultStateReq memory req_)
external
payable
override(BaseRouter, IBaseRouter);
Parameters
Name | Type | Description |
---|---|---|
req_ | SingleXChainSingleVaultStateReq | is the request object containing all the necessary data for the action |
singleDirectMultiVaultDeposit
Performs single direct x multi vault deposits
function singleDirectMultiVaultDeposit(SingleDirectMultiVaultStateReq memory req_)
external
payable
override(BaseRouter, IBaseRouter);
Parameters
Name | Type | Description |
---|---|---|
req_ | SingleDirectMultiVaultStateReq | is the request object containing all the necessary data for the action |
singleDirectSingleVaultDeposit
Performs single direct x single vault deposits
function singleDirectSingleVaultDeposit(SingleDirectSingleVaultStateReq memory req_)
external
payable
override(BaseRouter, IBaseRouter);
Parameters
Name | Type | Description |
---|---|---|
req_ | SingleDirectSingleVaultStateReq | is the request object containing all the necessary data for the action |
multiDstMultiVaultWithdraw
Performs multi destination x multi vault withdraws
function multiDstMultiVaultWithdraw(MultiDstMultiVaultStateReq calldata req_)
external
payable
override(BaseRouter, IBaseRouter);
Parameters
Name | Type | Description |
---|---|---|
req_ | MultiDstMultiVaultStateReq | is the request object containing all the necessary data for the action |
multiDstSingleVaultWithdraw
Performs multi destination x single vault withdraws
function multiDstSingleVaultWithdraw(MultiDstSingleVaultStateReq calldata req_)
external
payable
override(BaseRouter, IBaseRouter);
Parameters
Name | Type | Description |
---|---|---|
req_ | MultiDstSingleVaultStateReq | is the request object containing all the necessary data for the action |
singleXChainMultiVaultWithdraw
Performs single destination x multi vault withdraws
function singleXChainMultiVaultWithdraw(SingleXChainMultiVaultStateReq memory req_)
external
payable
override(BaseRouter, IBaseRouter);
Parameters
Name | Type | Description |
---|---|---|
req_ | SingleXChainMultiVaultStateReq | is the request object containing all the necessary data for the action |
singleXChainSingleVaultWithdraw
Performs single xchain destination x single vault withdraws
function singleXChainSingleVaultWithdraw(SingleXChainSingleVaultStateReq memory req_)
external
payable
override(BaseRouter, IBaseRouter);
Parameters
Name | Type | Description |
---|---|---|
req_ | SingleXChainSingleVaultStateReq | is the request object containing all the necessary data for the action |
singleDirectMultiVaultWithdraw
Performs single direct x multi vault withdraws
function singleDirectMultiVaultWithdraw(SingleDirectMultiVaultStateReq memory req_)
external
payable
override(BaseRouter, IBaseRouter);
Parameters
Name | Type | Description |
---|---|---|
req_ | SingleDirectMultiVaultStateReq | is the request object containing all the necessary data for the action |
singleDirectSingleVaultWithdraw
Performs single direct x single vault withdraws
function singleDirectSingleVaultWithdraw(SingleDirectSingleVaultStateReq memory req_)
external
payable
override(BaseRouter, IBaseRouter);
Parameters
Name | Type | Description |
---|---|---|
req_ | SingleDirectSingleVaultStateReq | is the request object containing all the necessary data for the action |