@dfns/sdk 0.8.20 → 0.8.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/agreements/types.d.ts +9 -0
- package/generated/allocations/types.d.ts +409 -24
- package/generated/auth/client.d.ts +3 -0
- package/generated/auth/client.js +36 -0
- package/generated/auth/delegatedClient.d.ts +5 -0
- package/generated/auth/delegatedClient.js +66 -0
- package/generated/auth/types.d.ts +996 -39
- package/generated/exchanges/types.d.ts +17 -1
- package/generated/feeSponsors/types.d.ts +6 -6
- package/generated/keys/types.d.ts +73 -61
- package/generated/networks/types.d.ts +39 -3
- package/generated/payouts/types.d.ts +8 -8
- package/generated/permissions/types.d.ts +2 -2
- package/generated/policies/types.d.ts +951 -198
- package/generated/signers/client.d.ts +10 -0
- package/generated/signers/client.js +50 -0
- package/generated/signers/delegatedClient.d.ts +4 -0
- package/generated/signers/delegatedClient.js +54 -0
- package/generated/signers/types.d.ts +216 -112
- package/generated/staking/types.d.ts +451 -5
- package/generated/swaps/types.d.ts +641 -43
- package/generated/wallets/client.d.ts +1 -0
- package/generated/wallets/client.js +12 -0
- package/generated/wallets/delegatedClient.d.ts +1 -0
- package/generated/wallets/delegatedClient.js +12 -0
- package/generated/wallets/types.d.ts +736 -110
- package/package.json +1 -1
|
@@ -5,6 +5,8 @@ export type CreateAllocationBody = {
|
|
|
5
5
|
protocol: "0fns";
|
|
6
6
|
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
7
7
|
externalId?: string | undefined;
|
|
8
|
+
/** The provider handling this allocation. */
|
|
9
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
8
10
|
sourceAsset: {
|
|
9
11
|
kind: "Erc20";
|
|
10
12
|
contract: string;
|
|
@@ -17,14 +19,76 @@ export type CreateAllocationBody = {
|
|
|
17
19
|
};
|
|
18
20
|
/** The slippage tolerance for this trade in [basis point](https://en.wikipedia.org/wiki/Basis_point) (BPS). Slippage tolerance defines the maximum price difference you're willing to accept during a trade from the estimated quote, ensuring you still receive at least a minimum number of tokens if the price shifts. One basis point equals one-hundredth of a percentage point, or 0.01%. */
|
|
19
21
|
slippageBps: number;
|
|
22
|
+
} | {
|
|
23
|
+
/** Wallet id. */
|
|
24
|
+
walletId: string;
|
|
25
|
+
protocol: "SkySusds";
|
|
26
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
27
|
+
externalId?: string | undefined;
|
|
28
|
+
/** The provider handling this allocation. */
|
|
29
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
30
|
+
/** USDS amount in smallest unit, e.g. "1000000000000000000" = 1 USDS */
|
|
31
|
+
amount: string;
|
|
32
|
+
} | {
|
|
33
|
+
/** Wallet id. */
|
|
34
|
+
walletId: string;
|
|
35
|
+
protocol: "GauntletUsdcPrime";
|
|
36
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
37
|
+
externalId?: string | undefined;
|
|
38
|
+
/** The provider handling this allocation. */
|
|
39
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
40
|
+
/** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
|
|
41
|
+
amount: string;
|
|
42
|
+
} | {
|
|
43
|
+
/** Wallet id. */
|
|
44
|
+
walletId: string;
|
|
45
|
+
protocol: "SteakhouseUsdt";
|
|
46
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
47
|
+
externalId?: string | undefined;
|
|
48
|
+
/** The provider handling this allocation. */
|
|
49
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
50
|
+
/** USDT amount in smallest unit, e.g. "1000000" = 1 USDT */
|
|
51
|
+
amount: string;
|
|
52
|
+
} | {
|
|
53
|
+
/** Wallet id. */
|
|
54
|
+
walletId: string;
|
|
55
|
+
protocol: "GauntletUsdcPrimeBase";
|
|
56
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
57
|
+
externalId?: string | undefined;
|
|
58
|
+
/** The provider handling this allocation. */
|
|
59
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
60
|
+
/** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
|
|
61
|
+
amount: string;
|
|
62
|
+
} | {
|
|
63
|
+
/** Wallet id. */
|
|
64
|
+
walletId: string;
|
|
65
|
+
protocol: "SteakhouseUsdcBase";
|
|
66
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
67
|
+
externalId?: string | undefined;
|
|
68
|
+
/** The provider handling this allocation. */
|
|
69
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
70
|
+
/** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
|
|
71
|
+
amount: string;
|
|
72
|
+
} | {
|
|
73
|
+
/** Wallet id. */
|
|
74
|
+
walletId: string;
|
|
75
|
+
protocol: "SentoraPyusdMain";
|
|
76
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
77
|
+
externalId?: string | undefined;
|
|
78
|
+
/** The provider handling this allocation. */
|
|
79
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
80
|
+
/** PYUSD amount in smallest unit, e.g. "1000000" = 1 PYUSD */
|
|
81
|
+
amount: string;
|
|
20
82
|
};
|
|
21
83
|
export type CreateAllocationResponse = {
|
|
22
84
|
/** Unique identifier for the allocation investment. */
|
|
23
85
|
id: string;
|
|
24
86
|
/** Wallet id. */
|
|
25
87
|
walletId: string;
|
|
26
|
-
/** The DeFi protocol used for allocation generation.
|
|
27
|
-
protocol: "0fns";
|
|
88
|
+
/** The DeFi protocol used for allocation generation. */
|
|
89
|
+
protocol: "0fns" | "SkySusds" | "GauntletUsdcPrime" | "SteakhouseUsdt" | "GauntletUsdcPrimeBase" | "SteakhouseUsdcBase" | "SentoraPyusdMain";
|
|
90
|
+
/** The provider handling this allocation. */
|
|
91
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
28
92
|
/** The total amount currently invested in this allocation. */
|
|
29
93
|
amount: ({
|
|
30
94
|
kind: "Native";
|
|
@@ -33,9 +97,13 @@ export type CreateAllocationResponse = {
|
|
|
33
97
|
kind: "Erc20";
|
|
34
98
|
contract: string;
|
|
35
99
|
amount: string;
|
|
100
|
+
} | {
|
|
101
|
+
kind: "Spl";
|
|
102
|
+
mint: string;
|
|
103
|
+
amount: string;
|
|
36
104
|
}) & {
|
|
37
105
|
metadata: {
|
|
38
|
-
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia" | "XrpLedger" | "XrpLedgerTestnet";
|
|
106
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinTestnet4" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "IconTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Movement" | "MovementTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "TezosShadownet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia" | "XrpLedger" | "XrpLedgerTestnet";
|
|
39
107
|
name?: string | undefined;
|
|
40
108
|
symbol?: string | undefined;
|
|
41
109
|
decimals: number;
|
|
@@ -50,9 +118,13 @@ export type CreateAllocationResponse = {
|
|
|
50
118
|
kind: "Erc20";
|
|
51
119
|
contract: string;
|
|
52
120
|
amount: string;
|
|
121
|
+
} | {
|
|
122
|
+
kind: "Spl";
|
|
123
|
+
mint: string;
|
|
124
|
+
amount: string;
|
|
53
125
|
}) & {
|
|
54
126
|
metadata: {
|
|
55
|
-
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia" | "XrpLedger" | "XrpLedgerTestnet";
|
|
127
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinTestnet4" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "IconTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Movement" | "MovementTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "TezosShadownet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia" | "XrpLedger" | "XrpLedgerTestnet";
|
|
56
128
|
name?: string | undefined;
|
|
57
129
|
symbol?: string | undefined;
|
|
58
130
|
decimals: number;
|
|
@@ -80,7 +152,7 @@ export type CreateAllocationResponse = {
|
|
|
80
152
|
tokenId?: string | undefined;
|
|
81
153
|
};
|
|
82
154
|
/** The full request used for initiating this allocation action. */
|
|
83
|
-
requestBody: {
|
|
155
|
+
requestBody: ({
|
|
84
156
|
/** The type of action being performed on the allocation investment: Deposit to add funds or Withdraw to remove funds. */
|
|
85
157
|
kind: "Deposit" | "Withdraw";
|
|
86
158
|
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
@@ -98,12 +170,21 @@ export type CreateAllocationResponse = {
|
|
|
98
170
|
/** The slippage tolerance for this trade in [basis point](https://en.wikipedia.org/wiki/Basis_point) (BPS). Slippage tolerance defines the maximum price difference you're willing to accept during a trade from the estimated quote, ensuring you still receive at least a minimum number of tokens if the price shifts. One basis point equals one-hundredth of a percentage point, or 0.01%. */
|
|
99
171
|
slippageBps: number;
|
|
100
172
|
} | {
|
|
173
|
+
/** The type of action being performed on the allocation investment: Deposit to add funds or Withdraw to remove funds. */
|
|
174
|
+
kind: "Deposit" | "Withdraw";
|
|
175
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
176
|
+
externalId?: string | undefined;
|
|
177
|
+
/** Underlying token amount in smallest unit, e.g. "1000000" = 1 USDC. Applies to both deposits and withdrawals. */
|
|
178
|
+
amount: string;
|
|
179
|
+
}) | ({
|
|
101
180
|
/** Wallet id. */
|
|
102
181
|
walletId: string;
|
|
103
182
|
/** Ofns protocol */
|
|
104
183
|
protocol: "0fns";
|
|
105
184
|
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
106
185
|
externalId?: string | undefined;
|
|
186
|
+
/** The provider handling this allocation. */
|
|
187
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
107
188
|
sourceAsset: {
|
|
108
189
|
kind: "Erc20";
|
|
109
190
|
contract: string;
|
|
@@ -116,7 +197,67 @@ export type CreateAllocationResponse = {
|
|
|
116
197
|
};
|
|
117
198
|
/** The slippage tolerance for this trade in [basis point](https://en.wikipedia.org/wiki/Basis_point) (BPS). Slippage tolerance defines the maximum price difference you're willing to accept during a trade from the estimated quote, ensuring you still receive at least a minimum number of tokens if the price shifts. One basis point equals one-hundredth of a percentage point, or 0.01%. */
|
|
118
199
|
slippageBps: number;
|
|
119
|
-
}
|
|
200
|
+
} | {
|
|
201
|
+
/** Wallet id. */
|
|
202
|
+
walletId: string;
|
|
203
|
+
protocol: "SkySusds";
|
|
204
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
205
|
+
externalId?: string | undefined;
|
|
206
|
+
/** The provider handling this allocation. */
|
|
207
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
208
|
+
/** USDS amount in smallest unit, e.g. "1000000000000000000" = 1 USDS */
|
|
209
|
+
amount: string;
|
|
210
|
+
} | {
|
|
211
|
+
/** Wallet id. */
|
|
212
|
+
walletId: string;
|
|
213
|
+
protocol: "GauntletUsdcPrime";
|
|
214
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
215
|
+
externalId?: string | undefined;
|
|
216
|
+
/** The provider handling this allocation. */
|
|
217
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
218
|
+
/** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
|
|
219
|
+
amount: string;
|
|
220
|
+
} | {
|
|
221
|
+
/** Wallet id. */
|
|
222
|
+
walletId: string;
|
|
223
|
+
protocol: "SteakhouseUsdt";
|
|
224
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
225
|
+
externalId?: string | undefined;
|
|
226
|
+
/** The provider handling this allocation. */
|
|
227
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
228
|
+
/** USDT amount in smallest unit, e.g. "1000000" = 1 USDT */
|
|
229
|
+
amount: string;
|
|
230
|
+
} | {
|
|
231
|
+
/** Wallet id. */
|
|
232
|
+
walletId: string;
|
|
233
|
+
protocol: "GauntletUsdcPrimeBase";
|
|
234
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
235
|
+
externalId?: string | undefined;
|
|
236
|
+
/** The provider handling this allocation. */
|
|
237
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
238
|
+
/** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
|
|
239
|
+
amount: string;
|
|
240
|
+
} | {
|
|
241
|
+
/** Wallet id. */
|
|
242
|
+
walletId: string;
|
|
243
|
+
protocol: "SteakhouseUsdcBase";
|
|
244
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
245
|
+
externalId?: string | undefined;
|
|
246
|
+
/** The provider handling this allocation. */
|
|
247
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
248
|
+
/** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
|
|
249
|
+
amount: string;
|
|
250
|
+
} | {
|
|
251
|
+
/** Wallet id. */
|
|
252
|
+
walletId: string;
|
|
253
|
+
protocol: "SentoraPyusdMain";
|
|
254
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
255
|
+
externalId?: string | undefined;
|
|
256
|
+
/** The provider handling this allocation. */
|
|
257
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
258
|
+
/** PYUSD amount in smallest unit, e.g. "1000000" = 1 PYUSD */
|
|
259
|
+
amount: string;
|
|
260
|
+
});
|
|
120
261
|
/** The failure reason, if any. Only present when status is Failed. */
|
|
121
262
|
failureReason?: string | undefined;
|
|
122
263
|
dateCreated: string;
|
|
@@ -142,6 +283,13 @@ export type CreateAllocationActionBody = {
|
|
|
142
283
|
};
|
|
143
284
|
/** The slippage tolerance for this trade in [basis point](https://en.wikipedia.org/wiki/Basis_point) (BPS). Slippage tolerance defines the maximum price difference you're willing to accept during a trade from the estimated quote, ensuring you still receive at least a minimum number of tokens if the price shifts. One basis point equals one-hundredth of a percentage point, or 0.01%. */
|
|
144
285
|
slippageBps: number;
|
|
286
|
+
} | {
|
|
287
|
+
/** The type of action being performed on the allocation investment: Deposit to add funds or Withdraw to remove funds. */
|
|
288
|
+
kind: "Deposit" | "Withdraw";
|
|
289
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
290
|
+
externalId?: string | undefined;
|
|
291
|
+
/** Underlying token amount in smallest unit, e.g. "1000000" = 1 USDC. Applies to both deposits and withdrawals. */
|
|
292
|
+
amount: string;
|
|
145
293
|
};
|
|
146
294
|
export type CreateAllocationActionParams = {
|
|
147
295
|
/** Unique identifier for the allocation investment. */
|
|
@@ -152,8 +300,10 @@ export type CreateAllocationActionResponse = {
|
|
|
152
300
|
id: string;
|
|
153
301
|
/** Wallet id. */
|
|
154
302
|
walletId: string;
|
|
155
|
-
/** The DeFi protocol used for allocation generation.
|
|
156
|
-
protocol: "0fns";
|
|
303
|
+
/** The DeFi protocol used for allocation generation. */
|
|
304
|
+
protocol: "0fns" | "SkySusds" | "GauntletUsdcPrime" | "SteakhouseUsdt" | "GauntletUsdcPrimeBase" | "SteakhouseUsdcBase" | "SentoraPyusdMain";
|
|
305
|
+
/** The provider handling this allocation. */
|
|
306
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
157
307
|
/** The total amount currently invested in this allocation. */
|
|
158
308
|
amount: ({
|
|
159
309
|
kind: "Native";
|
|
@@ -162,9 +312,13 @@ export type CreateAllocationActionResponse = {
|
|
|
162
312
|
kind: "Erc20";
|
|
163
313
|
contract: string;
|
|
164
314
|
amount: string;
|
|
315
|
+
} | {
|
|
316
|
+
kind: "Spl";
|
|
317
|
+
mint: string;
|
|
318
|
+
amount: string;
|
|
165
319
|
}) & {
|
|
166
320
|
metadata: {
|
|
167
|
-
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia" | "XrpLedger" | "XrpLedgerTestnet";
|
|
321
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinTestnet4" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "IconTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Movement" | "MovementTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "TezosShadownet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia" | "XrpLedger" | "XrpLedgerTestnet";
|
|
168
322
|
name?: string | undefined;
|
|
169
323
|
symbol?: string | undefined;
|
|
170
324
|
decimals: number;
|
|
@@ -179,9 +333,13 @@ export type CreateAllocationActionResponse = {
|
|
|
179
333
|
kind: "Erc20";
|
|
180
334
|
contract: string;
|
|
181
335
|
amount: string;
|
|
336
|
+
} | {
|
|
337
|
+
kind: "Spl";
|
|
338
|
+
mint: string;
|
|
339
|
+
amount: string;
|
|
182
340
|
}) & {
|
|
183
341
|
metadata: {
|
|
184
|
-
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia" | "XrpLedger" | "XrpLedgerTestnet";
|
|
342
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinTestnet4" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "IconTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Movement" | "MovementTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "TezosShadownet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia" | "XrpLedger" | "XrpLedgerTestnet";
|
|
185
343
|
name?: string | undefined;
|
|
186
344
|
symbol?: string | undefined;
|
|
187
345
|
decimals: number;
|
|
@@ -209,7 +367,7 @@ export type CreateAllocationActionResponse = {
|
|
|
209
367
|
tokenId?: string | undefined;
|
|
210
368
|
};
|
|
211
369
|
/** The full request used for initiating this allocation action. */
|
|
212
|
-
requestBody: {
|
|
370
|
+
requestBody: ({
|
|
213
371
|
/** The type of action being performed on the allocation investment: Deposit to add funds or Withdraw to remove funds. */
|
|
214
372
|
kind: "Deposit" | "Withdraw";
|
|
215
373
|
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
@@ -227,12 +385,21 @@ export type CreateAllocationActionResponse = {
|
|
|
227
385
|
/** The slippage tolerance for this trade in [basis point](https://en.wikipedia.org/wiki/Basis_point) (BPS). Slippage tolerance defines the maximum price difference you're willing to accept during a trade from the estimated quote, ensuring you still receive at least a minimum number of tokens if the price shifts. One basis point equals one-hundredth of a percentage point, or 0.01%. */
|
|
228
386
|
slippageBps: number;
|
|
229
387
|
} | {
|
|
388
|
+
/** The type of action being performed on the allocation investment: Deposit to add funds or Withdraw to remove funds. */
|
|
389
|
+
kind: "Deposit" | "Withdraw";
|
|
390
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
391
|
+
externalId?: string | undefined;
|
|
392
|
+
/** Underlying token amount in smallest unit, e.g. "1000000" = 1 USDC. Applies to both deposits and withdrawals. */
|
|
393
|
+
amount: string;
|
|
394
|
+
}) | ({
|
|
230
395
|
/** Wallet id. */
|
|
231
396
|
walletId: string;
|
|
232
397
|
/** Ofns protocol */
|
|
233
398
|
protocol: "0fns";
|
|
234
399
|
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
235
400
|
externalId?: string | undefined;
|
|
401
|
+
/** The provider handling this allocation. */
|
|
402
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
236
403
|
sourceAsset: {
|
|
237
404
|
kind: "Erc20";
|
|
238
405
|
contract: string;
|
|
@@ -245,7 +412,67 @@ export type CreateAllocationActionResponse = {
|
|
|
245
412
|
};
|
|
246
413
|
/** The slippage tolerance for this trade in [basis point](https://en.wikipedia.org/wiki/Basis_point) (BPS). Slippage tolerance defines the maximum price difference you're willing to accept during a trade from the estimated quote, ensuring you still receive at least a minimum number of tokens if the price shifts. One basis point equals one-hundredth of a percentage point, or 0.01%. */
|
|
247
414
|
slippageBps: number;
|
|
248
|
-
}
|
|
415
|
+
} | {
|
|
416
|
+
/** Wallet id. */
|
|
417
|
+
walletId: string;
|
|
418
|
+
protocol: "SkySusds";
|
|
419
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
420
|
+
externalId?: string | undefined;
|
|
421
|
+
/** The provider handling this allocation. */
|
|
422
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
423
|
+
/** USDS amount in smallest unit, e.g. "1000000000000000000" = 1 USDS */
|
|
424
|
+
amount: string;
|
|
425
|
+
} | {
|
|
426
|
+
/** Wallet id. */
|
|
427
|
+
walletId: string;
|
|
428
|
+
protocol: "GauntletUsdcPrime";
|
|
429
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
430
|
+
externalId?: string | undefined;
|
|
431
|
+
/** The provider handling this allocation. */
|
|
432
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
433
|
+
/** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
|
|
434
|
+
amount: string;
|
|
435
|
+
} | {
|
|
436
|
+
/** Wallet id. */
|
|
437
|
+
walletId: string;
|
|
438
|
+
protocol: "SteakhouseUsdt";
|
|
439
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
440
|
+
externalId?: string | undefined;
|
|
441
|
+
/** The provider handling this allocation. */
|
|
442
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
443
|
+
/** USDT amount in smallest unit, e.g. "1000000" = 1 USDT */
|
|
444
|
+
amount: string;
|
|
445
|
+
} | {
|
|
446
|
+
/** Wallet id. */
|
|
447
|
+
walletId: string;
|
|
448
|
+
protocol: "GauntletUsdcPrimeBase";
|
|
449
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
450
|
+
externalId?: string | undefined;
|
|
451
|
+
/** The provider handling this allocation. */
|
|
452
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
453
|
+
/** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
|
|
454
|
+
amount: string;
|
|
455
|
+
} | {
|
|
456
|
+
/** Wallet id. */
|
|
457
|
+
walletId: string;
|
|
458
|
+
protocol: "SteakhouseUsdcBase";
|
|
459
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
460
|
+
externalId?: string | undefined;
|
|
461
|
+
/** The provider handling this allocation. */
|
|
462
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
463
|
+
/** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
|
|
464
|
+
amount: string;
|
|
465
|
+
} | {
|
|
466
|
+
/** Wallet id. */
|
|
467
|
+
walletId: string;
|
|
468
|
+
protocol: "SentoraPyusdMain";
|
|
469
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
470
|
+
externalId?: string | undefined;
|
|
471
|
+
/** The provider handling this allocation. */
|
|
472
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
473
|
+
/** PYUSD amount in smallest unit, e.g. "1000000" = 1 PYUSD */
|
|
474
|
+
amount: string;
|
|
475
|
+
});
|
|
249
476
|
/** The failure reason, if any. Only present when status is Failed. */
|
|
250
477
|
failureReason?: string | undefined;
|
|
251
478
|
dateCreated: string;
|
|
@@ -263,8 +490,10 @@ export type GetAllocationResponse = {
|
|
|
263
490
|
id: string;
|
|
264
491
|
/** Wallet id. */
|
|
265
492
|
walletId: string;
|
|
266
|
-
/** The DeFi protocol used for allocation generation.
|
|
267
|
-
protocol: "0fns";
|
|
493
|
+
/** The DeFi protocol used for allocation generation. */
|
|
494
|
+
protocol: "0fns" | "SkySusds" | "GauntletUsdcPrime" | "SteakhouseUsdt" | "GauntletUsdcPrimeBase" | "SteakhouseUsdcBase" | "SentoraPyusdMain";
|
|
495
|
+
/** The provider handling this allocation. */
|
|
496
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
268
497
|
/** The total amount currently invested in this allocation. */
|
|
269
498
|
amount: ({
|
|
270
499
|
kind: "Native";
|
|
@@ -273,9 +502,13 @@ export type GetAllocationResponse = {
|
|
|
273
502
|
kind: "Erc20";
|
|
274
503
|
contract: string;
|
|
275
504
|
amount: string;
|
|
505
|
+
} | {
|
|
506
|
+
kind: "Spl";
|
|
507
|
+
mint: string;
|
|
508
|
+
amount: string;
|
|
276
509
|
}) & {
|
|
277
510
|
metadata: {
|
|
278
|
-
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia" | "XrpLedger" | "XrpLedgerTestnet";
|
|
511
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinTestnet4" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "IconTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Movement" | "MovementTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "TezosShadownet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia" | "XrpLedger" | "XrpLedgerTestnet";
|
|
279
512
|
name?: string | undefined;
|
|
280
513
|
symbol?: string | undefined;
|
|
281
514
|
decimals: number;
|
|
@@ -290,9 +523,13 @@ export type GetAllocationResponse = {
|
|
|
290
523
|
kind: "Erc20";
|
|
291
524
|
contract: string;
|
|
292
525
|
amount: string;
|
|
526
|
+
} | {
|
|
527
|
+
kind: "Spl";
|
|
528
|
+
mint: string;
|
|
529
|
+
amount: string;
|
|
293
530
|
}) & {
|
|
294
531
|
metadata: {
|
|
295
|
-
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia" | "XrpLedger" | "XrpLedgerTestnet";
|
|
532
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinTestnet4" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "IconTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Movement" | "MovementTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "TezosShadownet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia" | "XrpLedger" | "XrpLedgerTestnet";
|
|
296
533
|
name?: string | undefined;
|
|
297
534
|
symbol?: string | undefined;
|
|
298
535
|
decimals: number;
|
|
@@ -320,7 +557,7 @@ export type GetAllocationResponse = {
|
|
|
320
557
|
tokenId?: string | undefined;
|
|
321
558
|
};
|
|
322
559
|
/** The full request used for initiating this allocation action. */
|
|
323
|
-
requestBody: {
|
|
560
|
+
requestBody: ({
|
|
324
561
|
/** The type of action being performed on the allocation investment: Deposit to add funds or Withdraw to remove funds. */
|
|
325
562
|
kind: "Deposit" | "Withdraw";
|
|
326
563
|
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
@@ -338,12 +575,21 @@ export type GetAllocationResponse = {
|
|
|
338
575
|
/** The slippage tolerance for this trade in [basis point](https://en.wikipedia.org/wiki/Basis_point) (BPS). Slippage tolerance defines the maximum price difference you're willing to accept during a trade from the estimated quote, ensuring you still receive at least a minimum number of tokens if the price shifts. One basis point equals one-hundredth of a percentage point, or 0.01%. */
|
|
339
576
|
slippageBps: number;
|
|
340
577
|
} | {
|
|
578
|
+
/** The type of action being performed on the allocation investment: Deposit to add funds or Withdraw to remove funds. */
|
|
579
|
+
kind: "Deposit" | "Withdraw";
|
|
580
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
581
|
+
externalId?: string | undefined;
|
|
582
|
+
/** Underlying token amount in smallest unit, e.g. "1000000" = 1 USDC. Applies to both deposits and withdrawals. */
|
|
583
|
+
amount: string;
|
|
584
|
+
}) | ({
|
|
341
585
|
/** Wallet id. */
|
|
342
586
|
walletId: string;
|
|
343
587
|
/** Ofns protocol */
|
|
344
588
|
protocol: "0fns";
|
|
345
589
|
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
346
590
|
externalId?: string | undefined;
|
|
591
|
+
/** The provider handling this allocation. */
|
|
592
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
347
593
|
sourceAsset: {
|
|
348
594
|
kind: "Erc20";
|
|
349
595
|
contract: string;
|
|
@@ -356,7 +602,67 @@ export type GetAllocationResponse = {
|
|
|
356
602
|
};
|
|
357
603
|
/** The slippage tolerance for this trade in [basis point](https://en.wikipedia.org/wiki/Basis_point) (BPS). Slippage tolerance defines the maximum price difference you're willing to accept during a trade from the estimated quote, ensuring you still receive at least a minimum number of tokens if the price shifts. One basis point equals one-hundredth of a percentage point, or 0.01%. */
|
|
358
604
|
slippageBps: number;
|
|
359
|
-
}
|
|
605
|
+
} | {
|
|
606
|
+
/** Wallet id. */
|
|
607
|
+
walletId: string;
|
|
608
|
+
protocol: "SkySusds";
|
|
609
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
610
|
+
externalId?: string | undefined;
|
|
611
|
+
/** The provider handling this allocation. */
|
|
612
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
613
|
+
/** USDS amount in smallest unit, e.g. "1000000000000000000" = 1 USDS */
|
|
614
|
+
amount: string;
|
|
615
|
+
} | {
|
|
616
|
+
/** Wallet id. */
|
|
617
|
+
walletId: string;
|
|
618
|
+
protocol: "GauntletUsdcPrime";
|
|
619
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
620
|
+
externalId?: string | undefined;
|
|
621
|
+
/** The provider handling this allocation. */
|
|
622
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
623
|
+
/** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
|
|
624
|
+
amount: string;
|
|
625
|
+
} | {
|
|
626
|
+
/** Wallet id. */
|
|
627
|
+
walletId: string;
|
|
628
|
+
protocol: "SteakhouseUsdt";
|
|
629
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
630
|
+
externalId?: string | undefined;
|
|
631
|
+
/** The provider handling this allocation. */
|
|
632
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
633
|
+
/** USDT amount in smallest unit, e.g. "1000000" = 1 USDT */
|
|
634
|
+
amount: string;
|
|
635
|
+
} | {
|
|
636
|
+
/** Wallet id. */
|
|
637
|
+
walletId: string;
|
|
638
|
+
protocol: "GauntletUsdcPrimeBase";
|
|
639
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
640
|
+
externalId?: string | undefined;
|
|
641
|
+
/** The provider handling this allocation. */
|
|
642
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
643
|
+
/** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
|
|
644
|
+
amount: string;
|
|
645
|
+
} | {
|
|
646
|
+
/** Wallet id. */
|
|
647
|
+
walletId: string;
|
|
648
|
+
protocol: "SteakhouseUsdcBase";
|
|
649
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
650
|
+
externalId?: string | undefined;
|
|
651
|
+
/** The provider handling this allocation. */
|
|
652
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
653
|
+
/** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
|
|
654
|
+
amount: string;
|
|
655
|
+
} | {
|
|
656
|
+
/** Wallet id. */
|
|
657
|
+
walletId: string;
|
|
658
|
+
protocol: "SentoraPyusdMain";
|
|
659
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
660
|
+
externalId?: string | undefined;
|
|
661
|
+
/** The provider handling this allocation. */
|
|
662
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
663
|
+
/** PYUSD amount in smallest unit, e.g. "1000000" = 1 PYUSD */
|
|
664
|
+
amount: string;
|
|
665
|
+
});
|
|
360
666
|
/** The failure reason, if any. Only present when status is Failed. */
|
|
361
667
|
failureReason?: string | undefined;
|
|
362
668
|
dateCreated: string;
|
|
@@ -394,7 +700,7 @@ export type ListAllocationActionsResponse = {
|
|
|
394
700
|
tokenId?: string | undefined;
|
|
395
701
|
};
|
|
396
702
|
/** The full request used for initiating this allocation action. */
|
|
397
|
-
requestBody: {
|
|
703
|
+
requestBody: ({
|
|
398
704
|
/** The type of action being performed on the allocation investment: Deposit to add funds or Withdraw to remove funds. */
|
|
399
705
|
kind: "Deposit" | "Withdraw";
|
|
400
706
|
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
@@ -412,12 +718,21 @@ export type ListAllocationActionsResponse = {
|
|
|
412
718
|
/** The slippage tolerance for this trade in [basis point](https://en.wikipedia.org/wiki/Basis_point) (BPS). Slippage tolerance defines the maximum price difference you're willing to accept during a trade from the estimated quote, ensuring you still receive at least a minimum number of tokens if the price shifts. One basis point equals one-hundredth of a percentage point, or 0.01%. */
|
|
413
719
|
slippageBps: number;
|
|
414
720
|
} | {
|
|
721
|
+
/** The type of action being performed on the allocation investment: Deposit to add funds or Withdraw to remove funds. */
|
|
722
|
+
kind: "Deposit" | "Withdraw";
|
|
723
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
724
|
+
externalId?: string | undefined;
|
|
725
|
+
/** Underlying token amount in smallest unit, e.g. "1000000" = 1 USDC. Applies to both deposits and withdrawals. */
|
|
726
|
+
amount: string;
|
|
727
|
+
}) | ({
|
|
415
728
|
/** Wallet id. */
|
|
416
729
|
walletId: string;
|
|
417
730
|
/** Ofns protocol */
|
|
418
731
|
protocol: "0fns";
|
|
419
732
|
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
420
733
|
externalId?: string | undefined;
|
|
734
|
+
/** The provider handling this allocation. */
|
|
735
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
421
736
|
sourceAsset: {
|
|
422
737
|
kind: "Erc20";
|
|
423
738
|
contract: string;
|
|
@@ -430,7 +745,67 @@ export type ListAllocationActionsResponse = {
|
|
|
430
745
|
};
|
|
431
746
|
/** The slippage tolerance for this trade in [basis point](https://en.wikipedia.org/wiki/Basis_point) (BPS). Slippage tolerance defines the maximum price difference you're willing to accept during a trade from the estimated quote, ensuring you still receive at least a minimum number of tokens if the price shifts. One basis point equals one-hundredth of a percentage point, or 0.01%. */
|
|
432
747
|
slippageBps: number;
|
|
433
|
-
}
|
|
748
|
+
} | {
|
|
749
|
+
/** Wallet id. */
|
|
750
|
+
walletId: string;
|
|
751
|
+
protocol: "SkySusds";
|
|
752
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
753
|
+
externalId?: string | undefined;
|
|
754
|
+
/** The provider handling this allocation. */
|
|
755
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
756
|
+
/** USDS amount in smallest unit, e.g. "1000000000000000000" = 1 USDS */
|
|
757
|
+
amount: string;
|
|
758
|
+
} | {
|
|
759
|
+
/** Wallet id. */
|
|
760
|
+
walletId: string;
|
|
761
|
+
protocol: "GauntletUsdcPrime";
|
|
762
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
763
|
+
externalId?: string | undefined;
|
|
764
|
+
/** The provider handling this allocation. */
|
|
765
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
766
|
+
/** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
|
|
767
|
+
amount: string;
|
|
768
|
+
} | {
|
|
769
|
+
/** Wallet id. */
|
|
770
|
+
walletId: string;
|
|
771
|
+
protocol: "SteakhouseUsdt";
|
|
772
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
773
|
+
externalId?: string | undefined;
|
|
774
|
+
/** The provider handling this allocation. */
|
|
775
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
776
|
+
/** USDT amount in smallest unit, e.g. "1000000" = 1 USDT */
|
|
777
|
+
amount: string;
|
|
778
|
+
} | {
|
|
779
|
+
/** Wallet id. */
|
|
780
|
+
walletId: string;
|
|
781
|
+
protocol: "GauntletUsdcPrimeBase";
|
|
782
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
783
|
+
externalId?: string | undefined;
|
|
784
|
+
/** The provider handling this allocation. */
|
|
785
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
786
|
+
/** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
|
|
787
|
+
amount: string;
|
|
788
|
+
} | {
|
|
789
|
+
/** Wallet id. */
|
|
790
|
+
walletId: string;
|
|
791
|
+
protocol: "SteakhouseUsdcBase";
|
|
792
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
793
|
+
externalId?: string | undefined;
|
|
794
|
+
/** The provider handling this allocation. */
|
|
795
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
796
|
+
/** USDC amount in smallest unit, e.g. "1000000" = 1 USDC */
|
|
797
|
+
amount: string;
|
|
798
|
+
} | {
|
|
799
|
+
/** Wallet id. */
|
|
800
|
+
walletId: string;
|
|
801
|
+
protocol: "SentoraPyusdMain";
|
|
802
|
+
/** An optional external identifier provided by the client to ensure idempotency and prevent duplicate operations. */
|
|
803
|
+
externalId?: string | undefined;
|
|
804
|
+
/** The provider handling this allocation. */
|
|
805
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
806
|
+
/** PYUSD amount in smallest unit, e.g. "1000000" = 1 PYUSD */
|
|
807
|
+
amount: string;
|
|
808
|
+
});
|
|
434
809
|
/** The failure reason, if any. Only present when status is Failed. */
|
|
435
810
|
failureReason?: string | undefined;
|
|
436
811
|
dateCreated: string;
|
|
@@ -454,8 +829,10 @@ export type ListAllocationsResponse = {
|
|
|
454
829
|
id: string;
|
|
455
830
|
/** Wallet id. */
|
|
456
831
|
walletId: string;
|
|
457
|
-
/** The DeFi protocol used for allocation generation.
|
|
458
|
-
protocol: "0fns";
|
|
832
|
+
/** The DeFi protocol used for allocation generation. */
|
|
833
|
+
protocol: "0fns" | "SkySusds" | "GauntletUsdcPrime" | "SteakhouseUsdt" | "GauntletUsdcPrimeBase" | "SteakhouseUsdcBase" | "SentoraPyusdMain";
|
|
834
|
+
/** The provider handling this allocation. */
|
|
835
|
+
provider?: ("M0" | "Yield.xyz") | undefined;
|
|
459
836
|
/** The total amount currently invested in this allocation. */
|
|
460
837
|
amount: ({
|
|
461
838
|
kind: "Native";
|
|
@@ -464,9 +841,13 @@ export type ListAllocationsResponse = {
|
|
|
464
841
|
kind: "Erc20";
|
|
465
842
|
contract: string;
|
|
466
843
|
amount: string;
|
|
844
|
+
} | {
|
|
845
|
+
kind: "Spl";
|
|
846
|
+
mint: string;
|
|
847
|
+
amount: string;
|
|
467
848
|
}) & {
|
|
468
849
|
metadata: {
|
|
469
|
-
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia" | "XrpLedger" | "XrpLedgerTestnet";
|
|
850
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinTestnet4" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "IconTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Movement" | "MovementTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "TezosShadownet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia" | "XrpLedger" | "XrpLedgerTestnet";
|
|
470
851
|
name?: string | undefined;
|
|
471
852
|
symbol?: string | undefined;
|
|
472
853
|
decimals: number;
|
|
@@ -481,9 +862,13 @@ export type ListAllocationsResponse = {
|
|
|
481
862
|
kind: "Erc20";
|
|
482
863
|
contract: string;
|
|
483
864
|
amount: string;
|
|
865
|
+
} | {
|
|
866
|
+
kind: "Spl";
|
|
867
|
+
mint: string;
|
|
868
|
+
amount: string;
|
|
484
869
|
}) & {
|
|
485
870
|
metadata: {
|
|
486
|
-
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia" | "XrpLedger" | "XrpLedgerTestnet";
|
|
871
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "Areum" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "BesuTestnet" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinTestnet4" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "IconTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Movement" | "MovementTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "Rayls" | "RaylsTestnet" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "TezosShadownet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "Xdc" | "XdcApothem" | "XLayer" | "XLayerSepolia" | "XrpLedger" | "XrpLedgerTestnet";
|
|
487
872
|
name?: string | undefined;
|
|
488
873
|
symbol?: string | undefined;
|
|
489
874
|
decimals: number;
|