superstack-wallet-sdk 0.5.5 → 0.5.6
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/dist/esm/src/types.js.map +1 -1
- package/dist/esm/types/types.d.ts +46 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +47 -1
- package/package.json +2 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sources":["../../../../src/types.ts"],"sourcesContent":[null],"names":["isVersionedTransaction","transaction","Network","WalletType","SocialType","VaultId","BorrowedAsset","CollateralAsset","CrossMarginPositionStatus","CrossMarginOperationType"],"mappings":"AAkBM,SAAUA,EACdC,GAEA,MAAO,YAAaA,CACtB,KAgBYC,EAKAC,EAKAC,EAqKAC,
|
|
1
|
+
{"version":3,"file":"types.js","sources":["../../../../src/types.ts"],"sourcesContent":[null],"names":["isVersionedTransaction","transaction","Network","WalletType","SocialType","VaultId","BorrowedAsset","CollateralAsset","CrossMarginPositionStatus","CrossMarginOperationType"],"mappings":"AAkBM,SAAUA,EACdC,GAEA,MAAO,YAAaA,CACtB,KAgBYC,EAKAC,EAKAC,EAqKAC,EA2GAC,EAIAC,EAIAC,EAOAC,GAzSZ,SAAYP,GACVA,EAAA,OAAA,SACAA,EAAA,SAAA,UACD,CAHD,CAAYA,IAAAA,EAAO,CAAA,IAKnB,SAAYC,GACVA,EAAA,QAAA,UACAA,EAAA,SAAA,UACD,CAHD,CAAYA,IAAAA,EAAU,CAAA,IAKtB,SAAYC,GACVA,EAAA,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,QAAA,UACAA,EAAA,QAAA,UACAA,EAAA,MAAA,QACAA,EAAA,IAAA,KACD,CAPD,CAAYA,IAAAA,EAAU,CAAA,IAqKtB,SAAYC,GACVA,EAAA,mBAAA,qBACAA,EAAA,mBAAA,qBACAA,EAAA,cAAA,gBACAA,EAAA,cAAA,gBACAA,EAAA,cAAA,gBACAA,EAAA,YAAA,cACAA,EAAA,OAAA,SACAA,EAAA,OAAA,QACD,CATD,CAAYA,IAAAA,EAAO,CAAA,IA2GnB,SAAYC,GACVA,EAAA,mBAAA,oBACD,CAFD,CAAYA,IAAAA,EAAa,CAAA,IAIzB,SAAYC,GACVA,EAAA,iBAAA,kBACD,CAFD,CAAYA,IAAAA,EAAe,CAAA,IAI3B,SAAYC,GACVA,EAAA,KAAA,OACAA,EAAA,OAAA,SACAA,EAAA,oBAAA,sBACAA,EAAA,cAAA,eACD,CALD,CAAYA,IAAAA,EAAyB,CAAA,IAOrC,SAAYC,GACVA,EAAA,OAAA,SACAA,EAAA,MAAA,QACAA,EAAA,UAAA,YACAA,EAAA,aAAA,eACAA,EAAA,YAAA,aACD,CAND,CAAYA,IAAAA,EAAwB,CAAA"}
|
|
@@ -152,6 +152,38 @@ export declare enum VaultId {
|
|
|
152
152
|
DnHype = "DnHype",
|
|
153
153
|
DnPump = "DnPump"
|
|
154
154
|
}
|
|
155
|
+
export interface DeBridgeDlnCreateTxRequest {
|
|
156
|
+
srcChainId: number;
|
|
157
|
+
srcChainTokenIn: string;
|
|
158
|
+
srcChainTokenInAmount: string;
|
|
159
|
+
dstChainId: number;
|
|
160
|
+
dstChainTokenOut: string;
|
|
161
|
+
dstChainTokenOutAmount?: string | null;
|
|
162
|
+
dstChainTokenOutRecipient?: string | null;
|
|
163
|
+
additionalTakerRewardBps?: number | null;
|
|
164
|
+
srcIntermediaryTokenAddress?: string | null;
|
|
165
|
+
dstIntermediaryTokenAddress?: string | null;
|
|
166
|
+
dstIntermediaryTokenSpenderAddress?: string | null;
|
|
167
|
+
intermediaryTokenUsdPrice?: number | null;
|
|
168
|
+
senderAddress?: string | null;
|
|
169
|
+
srcChainOrderAuthorityAddress?: string | null;
|
|
170
|
+
srcAllowedCancelBeneficiary?: string | null;
|
|
171
|
+
referralCode?: string | null;
|
|
172
|
+
affiliateFeePercentage?: number | null;
|
|
173
|
+
affiliateFeeRecipient?: string | null;
|
|
174
|
+
srcChainTokenInSenderPermit?: string | null;
|
|
175
|
+
dstChainOrderAuthorityAddress?: string | null;
|
|
176
|
+
enableEstimate?: boolean | null;
|
|
177
|
+
allowedTaker?: string | null;
|
|
178
|
+
externalCall?: string | null;
|
|
179
|
+
dlnHook?: string | null;
|
|
180
|
+
prependOperatingExpenses?: boolean | null;
|
|
181
|
+
metadata?: string | null;
|
|
182
|
+
otc?: boolean | null;
|
|
183
|
+
ptp?: boolean | null;
|
|
184
|
+
skipSolanaRecipientValidation?: boolean | null;
|
|
185
|
+
srcChainPriorityLevel?: string | null;
|
|
186
|
+
}
|
|
155
187
|
export type BuildTransactionRequest = {
|
|
156
188
|
type: "HyperbeatVaultApprove";
|
|
157
189
|
data: {
|
|
@@ -183,6 +215,20 @@ export type BuildTransactionRequest = {
|
|
|
183
215
|
token: string;
|
|
184
216
|
amount: string;
|
|
185
217
|
};
|
|
218
|
+
} | {
|
|
219
|
+
type: "Erc20Approve";
|
|
220
|
+
data: {
|
|
221
|
+
chain_id: number;
|
|
222
|
+
token: string;
|
|
223
|
+
spender: string;
|
|
224
|
+
amount: string;
|
|
225
|
+
decimals: number;
|
|
226
|
+
};
|
|
227
|
+
} | {
|
|
228
|
+
type: "DeBridgeDlnOrderTx";
|
|
229
|
+
data: {
|
|
230
|
+
request: DeBridgeDlnCreateTxRequest;
|
|
231
|
+
};
|
|
186
232
|
};
|
|
187
233
|
export interface BuildTransactionResponse {
|
|
188
234
|
raw_transaction: string;
|