superstack-wallet-sdk 0.4.11 → 0.4.13
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/client.js +1 -1
- package/dist/esm/src/client.js.map +1 -1
- package/dist/esm/src/index.js +1 -1
- package/dist/esm/src/index.js.map +1 -1
- package/dist/esm/src/types.js +1 -1
- package/dist/esm/src/types.js.map +1 -1
- package/dist/esm/types/client.d.ts +8 -3
- package/dist/esm/types/types.d.ts +44 -4
- package/dist/index.cjs +123 -123
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +53 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -144,11 +144,51 @@ interface TransferRequest {
|
|
|
144
144
|
token?: string;
|
|
145
145
|
network: Network;
|
|
146
146
|
chain_id: number;
|
|
147
|
-
need_send_tx: boolean;
|
|
148
147
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
148
|
+
declare enum VaultId {
|
|
149
|
+
HyperbeatUltraHype = "HyperbeatUltraHype",
|
|
150
|
+
HyperbeatUltraUbtc = "HyperbeatUltraUbtc",
|
|
151
|
+
HyperbeatUsdt = "HyperbeatUsdt",
|
|
152
|
+
HyperbeatUsdc = "HyperbeatUsdc",
|
|
153
|
+
HyperbeatXaut = "HyperbeatXaut",
|
|
154
|
+
VentualsVlp = "VentualsVlp",
|
|
155
|
+
DnHype = "DnHype",
|
|
156
|
+
DnPump = "DnPump"
|
|
157
|
+
}
|
|
158
|
+
type BuildTransactionRequest = {
|
|
159
|
+
type: "HyperbeatVaultApprove";
|
|
160
|
+
data: {
|
|
161
|
+
vault_id: VaultId;
|
|
162
|
+
token: string;
|
|
163
|
+
amount: string;
|
|
164
|
+
};
|
|
165
|
+
} | {
|
|
166
|
+
type: "HyperbeatVaultDepositInstant";
|
|
167
|
+
data: {
|
|
168
|
+
vault_id: VaultId;
|
|
169
|
+
token: string;
|
|
170
|
+
amount: string;
|
|
171
|
+
min_receive_amount?: string | null;
|
|
172
|
+
referrer_id?: string | null;
|
|
173
|
+
};
|
|
174
|
+
} | {
|
|
175
|
+
type: "HyperbeatVaultRedeemInstant";
|
|
176
|
+
data: {
|
|
177
|
+
vault_id: VaultId;
|
|
178
|
+
token: string;
|
|
179
|
+
amount: string;
|
|
180
|
+
min_receive_amount?: string | null;
|
|
181
|
+
};
|
|
182
|
+
} | {
|
|
183
|
+
type: "HyperbeatVaultRedeemRequest";
|
|
184
|
+
data: {
|
|
185
|
+
vault_id: VaultId;
|
|
186
|
+
token: string;
|
|
187
|
+
amount: string;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
interface BuildTransactionResponse {
|
|
191
|
+
raw_transaction: string;
|
|
152
192
|
}
|
|
153
193
|
|
|
154
194
|
interface PhantomWalletAdapterConfig {
|
|
@@ -353,8 +393,13 @@ declare class WalletClient {
|
|
|
353
393
|
token?: string;
|
|
354
394
|
network: Network;
|
|
355
395
|
chain_id: number;
|
|
356
|
-
|
|
357
|
-
|
|
396
|
+
}): Promise<BuildTransactionResponse>;
|
|
397
|
+
/**
|
|
398
|
+
* Build a transaction using the server-side build transaction API
|
|
399
|
+
* @param request Build transaction request
|
|
400
|
+
* @returns Build transaction response with raw transaction
|
|
401
|
+
*/
|
|
402
|
+
buildTransaction(request: BuildTransactionRequest): Promise<BuildTransactionResponse>;
|
|
358
403
|
}
|
|
359
404
|
type SignTransactionReturnType<serializer extends viem.SerializeTransactionFn<viem.TransactionSerializable> = viem.SerializeTransactionFn<viem.TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]> = viem.TransactionSerialized<viem.GetTransactionType<transaction>>;
|
|
360
405
|
|
|
@@ -567,5 +612,5 @@ declare function useCoinbaseOnramp(): {
|
|
|
567
612
|
getCoinbaseOnrampUrl: (amount: number, blockchain?: "solana" | "ethereum", redirectUrl?: string) => Promise<string>;
|
|
568
613
|
};
|
|
569
614
|
|
|
570
|
-
export { ACCESS_TOKEN_KEY, Network, STORAGE_STATE_KEY, SocialType, Storage, WALLET_TYPE_KEY, WalletClient, WalletProvider, WalletType, injectStyles, isVersionedTransaction, theme, useActiveWallet, useCoinbaseOnramp, useConnect, useLoginModal, useWallet, useWalletStatus };
|
|
571
|
-
export type { AccountInfo, ApiResponse, CoinbaseOnrampRequest, IModalManager, LoginModalProps, LoginType, MiddleAccount, MiddleAccountRequest, OrderState, SignMessageResponse, SignRequestV1, SignRequestV2, SignTransactionResponse, SignTransactionReturnType, Social, SocialInfo, SupportedTransactionVersions, TransactionOrVersionedTransaction, TransferRequest,
|
|
615
|
+
export { ACCESS_TOKEN_KEY, Network, STORAGE_STATE_KEY, SocialType, Storage, VaultId, WALLET_TYPE_KEY, WalletClient, WalletProvider, WalletType, injectStyles, isVersionedTransaction, theme, useActiveWallet, useCoinbaseOnramp, useConnect, useLoginModal, useWallet, useWalletStatus };
|
|
616
|
+
export type { AccountInfo, ApiResponse, BuildTransactionRequest, BuildTransactionResponse, CoinbaseOnrampRequest, IModalManager, LoginModalProps, LoginType, MiddleAccount, MiddleAccountRequest, OrderState, SignMessageResponse, SignRequestV1, SignRequestV2, SignTransactionResponse, SignTransactionReturnType, Social, SocialInfo, SupportedTransactionVersions, TransactionOrVersionedTransaction, TransferRequest, UnsignedTx, UserSession, Wallet, WalletInfo, WalletProviderConfig };
|