@numen-crypto/contract 0.12.1 → 0.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.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -237,6 +237,7 @@ declare const WalletOverviewSchema: z.ZodObject<{
|
|
|
237
237
|
usdValue: string;
|
|
238
238
|
isZero: boolean;
|
|
239
239
|
}>, "many">;
|
|
240
|
+
withdrawalFeeRate: z.ZodString;
|
|
240
241
|
}, "strip", z.ZodTypeAny, {
|
|
241
242
|
totalUsd: string;
|
|
242
243
|
assets: {
|
|
@@ -249,6 +250,7 @@ declare const WalletOverviewSchema: z.ZodObject<{
|
|
|
249
250
|
usdValue: string;
|
|
250
251
|
isZero: boolean;
|
|
251
252
|
}[];
|
|
253
|
+
withdrawalFeeRate: string;
|
|
252
254
|
}, {
|
|
253
255
|
totalUsd: string;
|
|
254
256
|
assets: {
|
|
@@ -261,6 +263,7 @@ declare const WalletOverviewSchema: z.ZodObject<{
|
|
|
261
263
|
usdValue: string;
|
|
262
264
|
isZero: boolean;
|
|
263
265
|
}[];
|
|
266
|
+
withdrawalFeeRate: string;
|
|
264
267
|
}>;
|
|
265
268
|
type WalletOverview = z.infer<typeof WalletOverviewSchema>;
|
|
266
269
|
|
|
@@ -1236,6 +1239,7 @@ declare const WithdrawalSchema: z.ZodObject<{
|
|
|
1236
1239
|
id: z.ZodString;
|
|
1237
1240
|
asset: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
|
|
1238
1241
|
amount: z.ZodString;
|
|
1242
|
+
fee: z.ZodString;
|
|
1239
1243
|
address: z.ZodString;
|
|
1240
1244
|
status: z.ZodEnum<["AWAITING_CONFIRM", "AWAITING_COOLOFF", "QUEUED", "SENT", "CONFIRMED", "FAILED", "CANCELLED"]>;
|
|
1241
1245
|
createdAt: z.ZodString;
|
|
@@ -1246,6 +1250,7 @@ declare const WithdrawalSchema: z.ZodObject<{
|
|
|
1246
1250
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
1247
1251
|
amount: string;
|
|
1248
1252
|
address: string;
|
|
1253
|
+
fee: string;
|
|
1249
1254
|
}, {
|
|
1250
1255
|
status: "FAILED" | "CANCELLED" | "AWAITING_CONFIRM" | "AWAITING_COOLOFF" | "QUEUED" | "SENT" | "CONFIRMED";
|
|
1251
1256
|
id: string;
|
|
@@ -1253,6 +1258,7 @@ declare const WithdrawalSchema: z.ZodObject<{
|
|
|
1253
1258
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
1254
1259
|
amount: string;
|
|
1255
1260
|
address: string;
|
|
1261
|
+
fee: string;
|
|
1256
1262
|
}>;
|
|
1257
1263
|
type Withdrawal = z.infer<typeof WithdrawalSchema>;
|
|
1258
1264
|
|
|
@@ -1674,6 +1680,7 @@ declare namespace GetWalletCommand {
|
|
|
1674
1680
|
usdValue: string;
|
|
1675
1681
|
isZero: boolean;
|
|
1676
1682
|
}>, "many">;
|
|
1683
|
+
withdrawalFeeRate: zod.ZodString;
|
|
1677
1684
|
}, "strip", zod.ZodTypeAny, {
|
|
1678
1685
|
totalUsd: string;
|
|
1679
1686
|
assets: {
|
|
@@ -1686,6 +1693,7 @@ declare namespace GetWalletCommand {
|
|
|
1686
1693
|
usdValue: string;
|
|
1687
1694
|
isZero: boolean;
|
|
1688
1695
|
}[];
|
|
1696
|
+
withdrawalFeeRate: string;
|
|
1689
1697
|
}, {
|
|
1690
1698
|
totalUsd: string;
|
|
1691
1699
|
assets: {
|
|
@@ -1698,6 +1706,7 @@ declare namespace GetWalletCommand {
|
|
|
1698
1706
|
usdValue: string;
|
|
1699
1707
|
isZero: boolean;
|
|
1700
1708
|
}[];
|
|
1709
|
+
withdrawalFeeRate: string;
|
|
1701
1710
|
}>;
|
|
1702
1711
|
type Response = WalletOverview;
|
|
1703
1712
|
}
|
|
@@ -2871,6 +2880,7 @@ declare namespace ListWithdrawalsCommand {
|
|
|
2871
2880
|
id: z.ZodString;
|
|
2872
2881
|
asset: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
|
|
2873
2882
|
amount: z.ZodString;
|
|
2883
|
+
fee: z.ZodString;
|
|
2874
2884
|
address: z.ZodString;
|
|
2875
2885
|
status: z.ZodEnum<["AWAITING_CONFIRM", "AWAITING_COOLOFF", "QUEUED", "SENT", "CONFIRMED", "FAILED", "CANCELLED"]>;
|
|
2876
2886
|
createdAt: z.ZodString;
|
|
@@ -2881,6 +2891,7 @@ declare namespace ListWithdrawalsCommand {
|
|
|
2881
2891
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
2882
2892
|
amount: string;
|
|
2883
2893
|
address: string;
|
|
2894
|
+
fee: string;
|
|
2884
2895
|
}, {
|
|
2885
2896
|
status: "FAILED" | "CANCELLED" | "AWAITING_CONFIRM" | "AWAITING_COOLOFF" | "QUEUED" | "SENT" | "CONFIRMED";
|
|
2886
2897
|
id: string;
|
|
@@ -2888,6 +2899,7 @@ declare namespace ListWithdrawalsCommand {
|
|
|
2888
2899
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
2889
2900
|
amount: string;
|
|
2890
2901
|
address: string;
|
|
2902
|
+
fee: string;
|
|
2891
2903
|
}>, "many">;
|
|
2892
2904
|
}, "strip", z.ZodTypeAny, {
|
|
2893
2905
|
items: {
|
|
@@ -2897,6 +2909,7 @@ declare namespace ListWithdrawalsCommand {
|
|
|
2897
2909
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
2898
2910
|
amount: string;
|
|
2899
2911
|
address: string;
|
|
2912
|
+
fee: string;
|
|
2900
2913
|
}[];
|
|
2901
2914
|
}, {
|
|
2902
2915
|
items: {
|
|
@@ -2906,6 +2919,7 @@ declare namespace ListWithdrawalsCommand {
|
|
|
2906
2919
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
2907
2920
|
amount: string;
|
|
2908
2921
|
address: string;
|
|
2922
|
+
fee: string;
|
|
2909
2923
|
}[];
|
|
2910
2924
|
}>;
|
|
2911
2925
|
type Response = z.infer<typeof ResponseSchema>;
|
package/dist/index.d.ts
CHANGED
|
@@ -237,6 +237,7 @@ declare const WalletOverviewSchema: z.ZodObject<{
|
|
|
237
237
|
usdValue: string;
|
|
238
238
|
isZero: boolean;
|
|
239
239
|
}>, "many">;
|
|
240
|
+
withdrawalFeeRate: z.ZodString;
|
|
240
241
|
}, "strip", z.ZodTypeAny, {
|
|
241
242
|
totalUsd: string;
|
|
242
243
|
assets: {
|
|
@@ -249,6 +250,7 @@ declare const WalletOverviewSchema: z.ZodObject<{
|
|
|
249
250
|
usdValue: string;
|
|
250
251
|
isZero: boolean;
|
|
251
252
|
}[];
|
|
253
|
+
withdrawalFeeRate: string;
|
|
252
254
|
}, {
|
|
253
255
|
totalUsd: string;
|
|
254
256
|
assets: {
|
|
@@ -261,6 +263,7 @@ declare const WalletOverviewSchema: z.ZodObject<{
|
|
|
261
263
|
usdValue: string;
|
|
262
264
|
isZero: boolean;
|
|
263
265
|
}[];
|
|
266
|
+
withdrawalFeeRate: string;
|
|
264
267
|
}>;
|
|
265
268
|
type WalletOverview = z.infer<typeof WalletOverviewSchema>;
|
|
266
269
|
|
|
@@ -1236,6 +1239,7 @@ declare const WithdrawalSchema: z.ZodObject<{
|
|
|
1236
1239
|
id: z.ZodString;
|
|
1237
1240
|
asset: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
|
|
1238
1241
|
amount: z.ZodString;
|
|
1242
|
+
fee: z.ZodString;
|
|
1239
1243
|
address: z.ZodString;
|
|
1240
1244
|
status: z.ZodEnum<["AWAITING_CONFIRM", "AWAITING_COOLOFF", "QUEUED", "SENT", "CONFIRMED", "FAILED", "CANCELLED"]>;
|
|
1241
1245
|
createdAt: z.ZodString;
|
|
@@ -1246,6 +1250,7 @@ declare const WithdrawalSchema: z.ZodObject<{
|
|
|
1246
1250
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
1247
1251
|
amount: string;
|
|
1248
1252
|
address: string;
|
|
1253
|
+
fee: string;
|
|
1249
1254
|
}, {
|
|
1250
1255
|
status: "FAILED" | "CANCELLED" | "AWAITING_CONFIRM" | "AWAITING_COOLOFF" | "QUEUED" | "SENT" | "CONFIRMED";
|
|
1251
1256
|
id: string;
|
|
@@ -1253,6 +1258,7 @@ declare const WithdrawalSchema: z.ZodObject<{
|
|
|
1253
1258
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
1254
1259
|
amount: string;
|
|
1255
1260
|
address: string;
|
|
1261
|
+
fee: string;
|
|
1256
1262
|
}>;
|
|
1257
1263
|
type Withdrawal = z.infer<typeof WithdrawalSchema>;
|
|
1258
1264
|
|
|
@@ -1674,6 +1680,7 @@ declare namespace GetWalletCommand {
|
|
|
1674
1680
|
usdValue: string;
|
|
1675
1681
|
isZero: boolean;
|
|
1676
1682
|
}>, "many">;
|
|
1683
|
+
withdrawalFeeRate: zod.ZodString;
|
|
1677
1684
|
}, "strip", zod.ZodTypeAny, {
|
|
1678
1685
|
totalUsd: string;
|
|
1679
1686
|
assets: {
|
|
@@ -1686,6 +1693,7 @@ declare namespace GetWalletCommand {
|
|
|
1686
1693
|
usdValue: string;
|
|
1687
1694
|
isZero: boolean;
|
|
1688
1695
|
}[];
|
|
1696
|
+
withdrawalFeeRate: string;
|
|
1689
1697
|
}, {
|
|
1690
1698
|
totalUsd: string;
|
|
1691
1699
|
assets: {
|
|
@@ -1698,6 +1706,7 @@ declare namespace GetWalletCommand {
|
|
|
1698
1706
|
usdValue: string;
|
|
1699
1707
|
isZero: boolean;
|
|
1700
1708
|
}[];
|
|
1709
|
+
withdrawalFeeRate: string;
|
|
1701
1710
|
}>;
|
|
1702
1711
|
type Response = WalletOverview;
|
|
1703
1712
|
}
|
|
@@ -2871,6 +2880,7 @@ declare namespace ListWithdrawalsCommand {
|
|
|
2871
2880
|
id: z.ZodString;
|
|
2872
2881
|
asset: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
|
|
2873
2882
|
amount: z.ZodString;
|
|
2883
|
+
fee: z.ZodString;
|
|
2874
2884
|
address: z.ZodString;
|
|
2875
2885
|
status: z.ZodEnum<["AWAITING_CONFIRM", "AWAITING_COOLOFF", "QUEUED", "SENT", "CONFIRMED", "FAILED", "CANCELLED"]>;
|
|
2876
2886
|
createdAt: z.ZodString;
|
|
@@ -2881,6 +2891,7 @@ declare namespace ListWithdrawalsCommand {
|
|
|
2881
2891
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
2882
2892
|
amount: string;
|
|
2883
2893
|
address: string;
|
|
2894
|
+
fee: string;
|
|
2884
2895
|
}, {
|
|
2885
2896
|
status: "FAILED" | "CANCELLED" | "AWAITING_CONFIRM" | "AWAITING_COOLOFF" | "QUEUED" | "SENT" | "CONFIRMED";
|
|
2886
2897
|
id: string;
|
|
@@ -2888,6 +2899,7 @@ declare namespace ListWithdrawalsCommand {
|
|
|
2888
2899
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
2889
2900
|
amount: string;
|
|
2890
2901
|
address: string;
|
|
2902
|
+
fee: string;
|
|
2891
2903
|
}>, "many">;
|
|
2892
2904
|
}, "strip", z.ZodTypeAny, {
|
|
2893
2905
|
items: {
|
|
@@ -2897,6 +2909,7 @@ declare namespace ListWithdrawalsCommand {
|
|
|
2897
2909
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
2898
2910
|
amount: string;
|
|
2899
2911
|
address: string;
|
|
2912
|
+
fee: string;
|
|
2900
2913
|
}[];
|
|
2901
2914
|
}, {
|
|
2902
2915
|
items: {
|
|
@@ -2906,6 +2919,7 @@ declare namespace ListWithdrawalsCommand {
|
|
|
2906
2919
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
2907
2920
|
amount: string;
|
|
2908
2921
|
address: string;
|
|
2922
|
+
fee: string;
|
|
2909
2923
|
}[];
|
|
2910
2924
|
}>;
|
|
2911
2925
|
type Response = z.infer<typeof ResponseSchema>;
|
package/dist/index.js
CHANGED
|
@@ -117,7 +117,8 @@ var AssetBalanceSchema = z.object({
|
|
|
117
117
|
});
|
|
118
118
|
var WalletOverviewSchema = z.object({
|
|
119
119
|
totalUsd: MoneyStringSchema,
|
|
120
|
-
assets: z.array(AssetBalanceSchema)
|
|
120
|
+
assets: z.array(AssetBalanceSchema),
|
|
121
|
+
withdrawalFeeRate: MoneyStringSchema
|
|
121
122
|
});
|
|
122
123
|
var TransactionTypeSchema = z.enum([
|
|
123
124
|
"DEPOSIT",
|
|
@@ -351,6 +352,7 @@ var WithdrawalSchema = z.object({
|
|
|
351
352
|
id: z.string().uuid(),
|
|
352
353
|
asset: AssetSymbolSchema,
|
|
353
354
|
amount: MoneyStringSchema,
|
|
355
|
+
fee: MoneyStringSchema,
|
|
354
356
|
address: z.string(),
|
|
355
357
|
status: WithdrawalStatusSchema,
|
|
356
358
|
createdAt: z.string().datetime()
|