@chipi-stack/types 13.11.0 → 13.13.0
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/index.d.mts +21 -18
- package/dist/index.d.ts +21 -18
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -165,12 +165,20 @@ interface PasskeyMetadata {
|
|
|
165
165
|
/**
|
|
166
166
|
* Transaction-related types
|
|
167
167
|
*/
|
|
168
|
-
|
|
168
|
+
type PasskeyEnabledParams = {
|
|
169
|
+
usePasskey: true;
|
|
170
|
+
externalUserId: string;
|
|
171
|
+
};
|
|
172
|
+
type PasskeyDisabledParams = {
|
|
173
|
+
usePasskey?: false;
|
|
174
|
+
externalUserId?: string;
|
|
175
|
+
};
|
|
176
|
+
type PasskeyParams = PasskeyEnabledParams | PasskeyDisabledParams;
|
|
177
|
+
type ExecuteTransactionParams = PasskeyParams & {
|
|
169
178
|
encryptKey?: string;
|
|
170
179
|
wallet: WalletData;
|
|
171
180
|
calls: Call[];
|
|
172
|
-
|
|
173
|
-
}
|
|
181
|
+
};
|
|
174
182
|
type TxType = string;
|
|
175
183
|
type TxStatus = "PENDING" | "PROCESSING" | "SUCCESS" | "FAILED" | "CANCELLED";
|
|
176
184
|
type SkuStatus = "PENDING" | "PROCESSING" | "SUCCESS" | "FAILED" | "CANCELLED";
|
|
@@ -232,7 +240,7 @@ interface RecordSendTransactionParams {
|
|
|
232
240
|
expectedAmount: string;
|
|
233
241
|
chain: Chain;
|
|
234
242
|
}
|
|
235
|
-
|
|
243
|
+
type TransferParams = PasskeyParams & {
|
|
236
244
|
encryptKey?: string;
|
|
237
245
|
wallet: WalletData;
|
|
238
246
|
token: ChainToken;
|
|
@@ -242,9 +250,8 @@ interface TransferParams {
|
|
|
242
250
|
};
|
|
243
251
|
recipient: string;
|
|
244
252
|
amount: string;
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
interface TransferHookInput {
|
|
253
|
+
};
|
|
254
|
+
type TransferHookInput = PasskeyParams & {
|
|
248
255
|
encryptKey?: string;
|
|
249
256
|
wallet: WalletData;
|
|
250
257
|
token: ChainToken;
|
|
@@ -254,33 +261,29 @@ interface TransferHookInput {
|
|
|
254
261
|
};
|
|
255
262
|
recipient: string;
|
|
256
263
|
amount: number;
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
interface ApproveParams {
|
|
264
|
+
};
|
|
265
|
+
type ApproveParams = PasskeyParams & {
|
|
260
266
|
encryptKey?: string;
|
|
261
267
|
wallet: WalletData;
|
|
262
268
|
contractAddress: string;
|
|
263
269
|
spender: string;
|
|
264
270
|
amount: string;
|
|
265
271
|
decimals?: number;
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
interface ApproveHookInput {
|
|
272
|
+
};
|
|
273
|
+
type ApproveHookInput = PasskeyParams & {
|
|
269
274
|
encryptKey?: string;
|
|
270
275
|
wallet: WalletData;
|
|
271
276
|
contractAddress: string;
|
|
272
277
|
spender: string;
|
|
273
278
|
decimals?: number;
|
|
274
279
|
amount: number;
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
interface CallAnyContractParams {
|
|
280
|
+
};
|
|
281
|
+
type CallAnyContractParams = PasskeyParams & {
|
|
278
282
|
encryptKey?: string;
|
|
279
283
|
wallet: WalletData;
|
|
280
284
|
contractAddress: string;
|
|
281
285
|
calls: Call[];
|
|
282
|
-
|
|
283
|
-
}
|
|
286
|
+
};
|
|
284
287
|
interface GetTransactionsParams {
|
|
285
288
|
page?: number;
|
|
286
289
|
limit?: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -165,12 +165,20 @@ interface PasskeyMetadata {
|
|
|
165
165
|
/**
|
|
166
166
|
* Transaction-related types
|
|
167
167
|
*/
|
|
168
|
-
|
|
168
|
+
type PasskeyEnabledParams = {
|
|
169
|
+
usePasskey: true;
|
|
170
|
+
externalUserId: string;
|
|
171
|
+
};
|
|
172
|
+
type PasskeyDisabledParams = {
|
|
173
|
+
usePasskey?: false;
|
|
174
|
+
externalUserId?: string;
|
|
175
|
+
};
|
|
176
|
+
type PasskeyParams = PasskeyEnabledParams | PasskeyDisabledParams;
|
|
177
|
+
type ExecuteTransactionParams = PasskeyParams & {
|
|
169
178
|
encryptKey?: string;
|
|
170
179
|
wallet: WalletData;
|
|
171
180
|
calls: Call[];
|
|
172
|
-
|
|
173
|
-
}
|
|
181
|
+
};
|
|
174
182
|
type TxType = string;
|
|
175
183
|
type TxStatus = "PENDING" | "PROCESSING" | "SUCCESS" | "FAILED" | "CANCELLED";
|
|
176
184
|
type SkuStatus = "PENDING" | "PROCESSING" | "SUCCESS" | "FAILED" | "CANCELLED";
|
|
@@ -232,7 +240,7 @@ interface RecordSendTransactionParams {
|
|
|
232
240
|
expectedAmount: string;
|
|
233
241
|
chain: Chain;
|
|
234
242
|
}
|
|
235
|
-
|
|
243
|
+
type TransferParams = PasskeyParams & {
|
|
236
244
|
encryptKey?: string;
|
|
237
245
|
wallet: WalletData;
|
|
238
246
|
token: ChainToken;
|
|
@@ -242,9 +250,8 @@ interface TransferParams {
|
|
|
242
250
|
};
|
|
243
251
|
recipient: string;
|
|
244
252
|
amount: string;
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
interface TransferHookInput {
|
|
253
|
+
};
|
|
254
|
+
type TransferHookInput = PasskeyParams & {
|
|
248
255
|
encryptKey?: string;
|
|
249
256
|
wallet: WalletData;
|
|
250
257
|
token: ChainToken;
|
|
@@ -254,33 +261,29 @@ interface TransferHookInput {
|
|
|
254
261
|
};
|
|
255
262
|
recipient: string;
|
|
256
263
|
amount: number;
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
interface ApproveParams {
|
|
264
|
+
};
|
|
265
|
+
type ApproveParams = PasskeyParams & {
|
|
260
266
|
encryptKey?: string;
|
|
261
267
|
wallet: WalletData;
|
|
262
268
|
contractAddress: string;
|
|
263
269
|
spender: string;
|
|
264
270
|
amount: string;
|
|
265
271
|
decimals?: number;
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
interface ApproveHookInput {
|
|
272
|
+
};
|
|
273
|
+
type ApproveHookInput = PasskeyParams & {
|
|
269
274
|
encryptKey?: string;
|
|
270
275
|
wallet: WalletData;
|
|
271
276
|
contractAddress: string;
|
|
272
277
|
spender: string;
|
|
273
278
|
decimals?: number;
|
|
274
279
|
amount: number;
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
interface CallAnyContractParams {
|
|
280
|
+
};
|
|
281
|
+
type CallAnyContractParams = PasskeyParams & {
|
|
278
282
|
encryptKey?: string;
|
|
279
283
|
wallet: WalletData;
|
|
280
284
|
contractAddress: string;
|
|
281
285
|
calls: Call[];
|
|
282
|
-
|
|
283
|
-
}
|
|
286
|
+
};
|
|
284
287
|
interface GetTransactionsParams {
|
|
285
288
|
page?: number;
|
|
286
289
|
limit?: number;
|