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
package/dist/index.d.ts
CHANGED
|
@@ -156,6 +156,38 @@ declare enum VaultId {
|
|
|
156
156
|
DnHype = "DnHype",
|
|
157
157
|
DnPump = "DnPump"
|
|
158
158
|
}
|
|
159
|
+
interface DeBridgeDlnCreateTxRequest {
|
|
160
|
+
srcChainId: number;
|
|
161
|
+
srcChainTokenIn: string;
|
|
162
|
+
srcChainTokenInAmount: string;
|
|
163
|
+
dstChainId: number;
|
|
164
|
+
dstChainTokenOut: string;
|
|
165
|
+
dstChainTokenOutAmount?: string | null;
|
|
166
|
+
dstChainTokenOutRecipient?: string | null;
|
|
167
|
+
additionalTakerRewardBps?: number | null;
|
|
168
|
+
srcIntermediaryTokenAddress?: string | null;
|
|
169
|
+
dstIntermediaryTokenAddress?: string | null;
|
|
170
|
+
dstIntermediaryTokenSpenderAddress?: string | null;
|
|
171
|
+
intermediaryTokenUsdPrice?: number | null;
|
|
172
|
+
senderAddress?: string | null;
|
|
173
|
+
srcChainOrderAuthorityAddress?: string | null;
|
|
174
|
+
srcAllowedCancelBeneficiary?: string | null;
|
|
175
|
+
referralCode?: string | null;
|
|
176
|
+
affiliateFeePercentage?: number | null;
|
|
177
|
+
affiliateFeeRecipient?: string | null;
|
|
178
|
+
srcChainTokenInSenderPermit?: string | null;
|
|
179
|
+
dstChainOrderAuthorityAddress?: string | null;
|
|
180
|
+
enableEstimate?: boolean | null;
|
|
181
|
+
allowedTaker?: string | null;
|
|
182
|
+
externalCall?: string | null;
|
|
183
|
+
dlnHook?: string | null;
|
|
184
|
+
prependOperatingExpenses?: boolean | null;
|
|
185
|
+
metadata?: string | null;
|
|
186
|
+
otc?: boolean | null;
|
|
187
|
+
ptp?: boolean | null;
|
|
188
|
+
skipSolanaRecipientValidation?: boolean | null;
|
|
189
|
+
srcChainPriorityLevel?: string | null;
|
|
190
|
+
}
|
|
159
191
|
type BuildTransactionRequest = {
|
|
160
192
|
type: "HyperbeatVaultApprove";
|
|
161
193
|
data: {
|
|
@@ -187,6 +219,20 @@ type BuildTransactionRequest = {
|
|
|
187
219
|
token: string;
|
|
188
220
|
amount: string;
|
|
189
221
|
};
|
|
222
|
+
} | {
|
|
223
|
+
type: "Erc20Approve";
|
|
224
|
+
data: {
|
|
225
|
+
chain_id: number;
|
|
226
|
+
token: string;
|
|
227
|
+
spender: string;
|
|
228
|
+
amount: string;
|
|
229
|
+
decimals: number;
|
|
230
|
+
};
|
|
231
|
+
} | {
|
|
232
|
+
type: "DeBridgeDlnOrderTx";
|
|
233
|
+
data: {
|
|
234
|
+
request: DeBridgeDlnCreateTxRequest;
|
|
235
|
+
};
|
|
190
236
|
};
|
|
191
237
|
interface BuildTransactionResponse {
|
|
192
238
|
raw_transaction: string;
|
|
@@ -803,4 +849,4 @@ declare function useCoinbaseOnramp(): {
|
|
|
803
849
|
};
|
|
804
850
|
|
|
805
851
|
export { ACCESS_TOKEN_KEY, BACKUP_WALLET_INFO, BACKUP_WALLET_TYPE_KEY, BorrowedAsset, CollateralAsset, CrossMarginOperationType, CrossMarginPositionStatus, Network, STORAGE_STATE_KEY, SWITCHED_ACCOUNT_ADDRESS, SocialType, Storage, VaultId, WALLET_TYPE_KEY, WalletClient, WalletProvider, WalletProviderBackup, WalletType, injectStyles, isVersionedTransaction, theme, useActiveWallet, useCoinbaseOnramp, useConnect, useLoginModal, useWallet, useWalletBackup, useWalletBackupStatus, useWalletStatus };
|
|
806
|
-
export type { AccountInfo, ApiResponse, BigDecimalString, BorrowedAssetGeneralInfo, BuildTransactionRequest, BuildTransactionResponse, CoinbaseOnrampRequest, CollateralAssetGeneralInfo, CollateralAssetInfo, CrossMarginAdjustMarginRequest, CrossMarginAdjustMarginResponse, CrossMarginBorrowQuoteRequest, CrossMarginBorrowQuoteResponse, CrossMarginBorrowRequest, CrossMarginBorrowResponse, CrossMarginGeneralInfoResponse, CrossMarginRepayQuoteRequest, CrossMarginRepayQuoteResponse, CrossMarginRepayRequest, CrossMarginRepayResponse, IModalManager, LoginModalProps, LoginType, MiddleAccount, MiddleAccountRequest, OrderState, SignMessageResponse, SignRequestV1, SignRequestV2, SignTransactionResponse, SignTransactionReturnType, Social, SocialInfo, SupportedTransactionVersions, TransactionOrVersionedTransaction, TransferRequest, UnsignedTx, UserClosedPositionInfo, UserHistoryResponse, UserOpenPositionInfo, UserOpenPositionsResponse, UserOperationInfo, UserSession, Wallet, WalletInfo, WalletProviderConfig };
|
|
852
|
+
export type { AccountInfo, ApiResponse, BigDecimalString, BorrowedAssetGeneralInfo, BuildTransactionRequest, BuildTransactionResponse, CoinbaseOnrampRequest, CollateralAssetGeneralInfo, CollateralAssetInfo, CrossMarginAdjustMarginRequest, CrossMarginAdjustMarginResponse, CrossMarginBorrowQuoteRequest, CrossMarginBorrowQuoteResponse, CrossMarginBorrowRequest, CrossMarginBorrowResponse, CrossMarginGeneralInfoResponse, CrossMarginRepayQuoteRequest, CrossMarginRepayQuoteResponse, CrossMarginRepayRequest, CrossMarginRepayResponse, DeBridgeDlnCreateTxRequest, IModalManager, LoginModalProps, LoginType, MiddleAccount, MiddleAccountRequest, OrderState, SignMessageResponse, SignRequestV1, SignRequestV2, SignTransactionResponse, SignTransactionReturnType, Social, SocialInfo, SupportedTransactionVersions, TransactionOrVersionedTransaction, TransferRequest, UnsignedTx, UserClosedPositionInfo, UserHistoryResponse, UserOpenPositionInfo, UserOpenPositionsResponse, UserOperationInfo, UserSession, Wallet, WalletInfo, WalletProviderConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "superstack-wallet-sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.6",
|
|
4
4
|
"description": "A wallet SDK for superstack",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -93,6 +93,5 @@
|
|
|
93
93
|
"ts-jest": "^29.1.2",
|
|
94
94
|
"tslib": "^2.6.2",
|
|
95
95
|
"typescript": "^5.3.3"
|
|
96
|
-
}
|
|
97
|
-
"packageManager": "pnpm@10.16.0+sha512.8066e7b034217b700a9a4dbb3a005061d641ba130a89915213a10b3ca4919c19c037bec8066afdc559b89635fdb806b16ea673f2468fbb28aabfa13c53e3f769"
|
|
96
|
+
}
|
|
98
97
|
}
|