@numen-crypto/contract 0.12.0 → 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.d.cts CHANGED
@@ -22,6 +22,9 @@ declare const ERROR_CODE: {
22
22
  readonly TOTP_INVALID: "TOTP_INVALID";
23
23
  readonly CAPTCHA_REQUIRED: "CAPTCHA_REQUIRED";
24
24
  readonly CAPTCHA_INVALID: "CAPTCHA_INVALID";
25
+ readonly CONFIRMATION_CODE_REQUIRED: "CONFIRMATION_CODE_REQUIRED";
26
+ readonly CONFIRMATION_CODE_INVALID: "CONFIRMATION_CODE_INVALID";
27
+ readonly SAME_PASSWORD: "SAME_PASSWORD";
25
28
  readonly INSUFFICIENT_BALANCE: "INSUFFICIENT_BALANCE";
26
29
  readonly PURCHASE_LIMIT_EXCEEDED: "PURCHASE_LIMIT_EXCEEDED";
27
30
  readonly PURCHASE_CAP_EXCEEDED: "PURCHASE_CAP_EXCEEDED";
@@ -234,6 +237,7 @@ declare const WalletOverviewSchema: z.ZodObject<{
234
237
  usdValue: string;
235
238
  isZero: boolean;
236
239
  }>, "many">;
240
+ withdrawalFeeRate: z.ZodString;
237
241
  }, "strip", z.ZodTypeAny, {
238
242
  totalUsd: string;
239
243
  assets: {
@@ -246,6 +250,7 @@ declare const WalletOverviewSchema: z.ZodObject<{
246
250
  usdValue: string;
247
251
  isZero: boolean;
248
252
  }[];
253
+ withdrawalFeeRate: string;
249
254
  }, {
250
255
  totalUsd: string;
251
256
  assets: {
@@ -258,6 +263,7 @@ declare const WalletOverviewSchema: z.ZodObject<{
258
263
  usdValue: string;
259
264
  isZero: boolean;
260
265
  }[];
266
+ withdrawalFeeRate: string;
261
267
  }>;
262
268
  type WalletOverview = z.infer<typeof WalletOverviewSchema>;
263
269
 
@@ -1233,6 +1239,7 @@ declare const WithdrawalSchema: z.ZodObject<{
1233
1239
  id: z.ZodString;
1234
1240
  asset: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
1235
1241
  amount: z.ZodString;
1242
+ fee: z.ZodString;
1236
1243
  address: z.ZodString;
1237
1244
  status: z.ZodEnum<["AWAITING_CONFIRM", "AWAITING_COOLOFF", "QUEUED", "SENT", "CONFIRMED", "FAILED", "CANCELLED"]>;
1238
1245
  createdAt: z.ZodString;
@@ -1243,6 +1250,7 @@ declare const WithdrawalSchema: z.ZodObject<{
1243
1250
  asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1244
1251
  amount: string;
1245
1252
  address: string;
1253
+ fee: string;
1246
1254
  }, {
1247
1255
  status: "FAILED" | "CANCELLED" | "AWAITING_CONFIRM" | "AWAITING_COOLOFF" | "QUEUED" | "SENT" | "CONFIRMED";
1248
1256
  id: string;
@@ -1250,6 +1258,7 @@ declare const WithdrawalSchema: z.ZodObject<{
1250
1258
  asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1251
1259
  amount: string;
1252
1260
  address: string;
1261
+ fee: string;
1253
1262
  }>;
1254
1263
  type Withdrawal = z.infer<typeof WithdrawalSchema>;
1255
1264
 
@@ -1671,6 +1680,7 @@ declare namespace GetWalletCommand {
1671
1680
  usdValue: string;
1672
1681
  isZero: boolean;
1673
1682
  }>, "many">;
1683
+ withdrawalFeeRate: zod.ZodString;
1674
1684
  }, "strip", zod.ZodTypeAny, {
1675
1685
  totalUsd: string;
1676
1686
  assets: {
@@ -1683,6 +1693,7 @@ declare namespace GetWalletCommand {
1683
1693
  usdValue: string;
1684
1694
  isZero: boolean;
1685
1695
  }[];
1696
+ withdrawalFeeRate: string;
1686
1697
  }, {
1687
1698
  totalUsd: string;
1688
1699
  assets: {
@@ -1695,6 +1706,7 @@ declare namespace GetWalletCommand {
1695
1706
  usdValue: string;
1696
1707
  isZero: boolean;
1697
1708
  }[];
1709
+ withdrawalFeeRate: string;
1698
1710
  }>;
1699
1711
  type Response = WalletOverview;
1700
1712
  }
@@ -2868,6 +2880,7 @@ declare namespace ListWithdrawalsCommand {
2868
2880
  id: z.ZodString;
2869
2881
  asset: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
2870
2882
  amount: z.ZodString;
2883
+ fee: z.ZodString;
2871
2884
  address: z.ZodString;
2872
2885
  status: z.ZodEnum<["AWAITING_CONFIRM", "AWAITING_COOLOFF", "QUEUED", "SENT", "CONFIRMED", "FAILED", "CANCELLED"]>;
2873
2886
  createdAt: z.ZodString;
@@ -2878,6 +2891,7 @@ declare namespace ListWithdrawalsCommand {
2878
2891
  asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
2879
2892
  amount: string;
2880
2893
  address: string;
2894
+ fee: string;
2881
2895
  }, {
2882
2896
  status: "FAILED" | "CANCELLED" | "AWAITING_CONFIRM" | "AWAITING_COOLOFF" | "QUEUED" | "SENT" | "CONFIRMED";
2883
2897
  id: string;
@@ -2885,6 +2899,7 @@ declare namespace ListWithdrawalsCommand {
2885
2899
  asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
2886
2900
  amount: string;
2887
2901
  address: string;
2902
+ fee: string;
2888
2903
  }>, "many">;
2889
2904
  }, "strip", z.ZodTypeAny, {
2890
2905
  items: {
@@ -2894,6 +2909,7 @@ declare namespace ListWithdrawalsCommand {
2894
2909
  asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
2895
2910
  amount: string;
2896
2911
  address: string;
2912
+ fee: string;
2897
2913
  }[];
2898
2914
  }, {
2899
2915
  items: {
@@ -2903,6 +2919,7 @@ declare namespace ListWithdrawalsCommand {
2903
2919
  asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
2904
2920
  amount: string;
2905
2921
  address: string;
2922
+ fee: string;
2906
2923
  }[];
2907
2924
  }>;
2908
2925
  type Response = z.infer<typeof ResponseSchema>;
package/dist/index.d.ts CHANGED
@@ -22,6 +22,9 @@ declare const ERROR_CODE: {
22
22
  readonly TOTP_INVALID: "TOTP_INVALID";
23
23
  readonly CAPTCHA_REQUIRED: "CAPTCHA_REQUIRED";
24
24
  readonly CAPTCHA_INVALID: "CAPTCHA_INVALID";
25
+ readonly CONFIRMATION_CODE_REQUIRED: "CONFIRMATION_CODE_REQUIRED";
26
+ readonly CONFIRMATION_CODE_INVALID: "CONFIRMATION_CODE_INVALID";
27
+ readonly SAME_PASSWORD: "SAME_PASSWORD";
25
28
  readonly INSUFFICIENT_BALANCE: "INSUFFICIENT_BALANCE";
26
29
  readonly PURCHASE_LIMIT_EXCEEDED: "PURCHASE_LIMIT_EXCEEDED";
27
30
  readonly PURCHASE_CAP_EXCEEDED: "PURCHASE_CAP_EXCEEDED";
@@ -234,6 +237,7 @@ declare const WalletOverviewSchema: z.ZodObject<{
234
237
  usdValue: string;
235
238
  isZero: boolean;
236
239
  }>, "many">;
240
+ withdrawalFeeRate: z.ZodString;
237
241
  }, "strip", z.ZodTypeAny, {
238
242
  totalUsd: string;
239
243
  assets: {
@@ -246,6 +250,7 @@ declare const WalletOverviewSchema: z.ZodObject<{
246
250
  usdValue: string;
247
251
  isZero: boolean;
248
252
  }[];
253
+ withdrawalFeeRate: string;
249
254
  }, {
250
255
  totalUsd: string;
251
256
  assets: {
@@ -258,6 +263,7 @@ declare const WalletOverviewSchema: z.ZodObject<{
258
263
  usdValue: string;
259
264
  isZero: boolean;
260
265
  }[];
266
+ withdrawalFeeRate: string;
261
267
  }>;
262
268
  type WalletOverview = z.infer<typeof WalletOverviewSchema>;
263
269
 
@@ -1233,6 +1239,7 @@ declare const WithdrawalSchema: z.ZodObject<{
1233
1239
  id: z.ZodString;
1234
1240
  asset: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
1235
1241
  amount: z.ZodString;
1242
+ fee: z.ZodString;
1236
1243
  address: z.ZodString;
1237
1244
  status: z.ZodEnum<["AWAITING_CONFIRM", "AWAITING_COOLOFF", "QUEUED", "SENT", "CONFIRMED", "FAILED", "CANCELLED"]>;
1238
1245
  createdAt: z.ZodString;
@@ -1243,6 +1250,7 @@ declare const WithdrawalSchema: z.ZodObject<{
1243
1250
  asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1244
1251
  amount: string;
1245
1252
  address: string;
1253
+ fee: string;
1246
1254
  }, {
1247
1255
  status: "FAILED" | "CANCELLED" | "AWAITING_CONFIRM" | "AWAITING_COOLOFF" | "QUEUED" | "SENT" | "CONFIRMED";
1248
1256
  id: string;
@@ -1250,6 +1258,7 @@ declare const WithdrawalSchema: z.ZodObject<{
1250
1258
  asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
1251
1259
  amount: string;
1252
1260
  address: string;
1261
+ fee: string;
1253
1262
  }>;
1254
1263
  type Withdrawal = z.infer<typeof WithdrawalSchema>;
1255
1264
 
@@ -1671,6 +1680,7 @@ declare namespace GetWalletCommand {
1671
1680
  usdValue: string;
1672
1681
  isZero: boolean;
1673
1682
  }>, "many">;
1683
+ withdrawalFeeRate: zod.ZodString;
1674
1684
  }, "strip", zod.ZodTypeAny, {
1675
1685
  totalUsd: string;
1676
1686
  assets: {
@@ -1683,6 +1693,7 @@ declare namespace GetWalletCommand {
1683
1693
  usdValue: string;
1684
1694
  isZero: boolean;
1685
1695
  }[];
1696
+ withdrawalFeeRate: string;
1686
1697
  }, {
1687
1698
  totalUsd: string;
1688
1699
  assets: {
@@ -1695,6 +1706,7 @@ declare namespace GetWalletCommand {
1695
1706
  usdValue: string;
1696
1707
  isZero: boolean;
1697
1708
  }[];
1709
+ withdrawalFeeRate: string;
1698
1710
  }>;
1699
1711
  type Response = WalletOverview;
1700
1712
  }
@@ -2868,6 +2880,7 @@ declare namespace ListWithdrawalsCommand {
2868
2880
  id: z.ZodString;
2869
2881
  asset: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
2870
2882
  amount: z.ZodString;
2883
+ fee: z.ZodString;
2871
2884
  address: z.ZodString;
2872
2885
  status: z.ZodEnum<["AWAITING_CONFIRM", "AWAITING_COOLOFF", "QUEUED", "SENT", "CONFIRMED", "FAILED", "CANCELLED"]>;
2873
2886
  createdAt: z.ZodString;
@@ -2878,6 +2891,7 @@ declare namespace ListWithdrawalsCommand {
2878
2891
  asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
2879
2892
  amount: string;
2880
2893
  address: string;
2894
+ fee: string;
2881
2895
  }, {
2882
2896
  status: "FAILED" | "CANCELLED" | "AWAITING_CONFIRM" | "AWAITING_COOLOFF" | "QUEUED" | "SENT" | "CONFIRMED";
2883
2897
  id: string;
@@ -2885,6 +2899,7 @@ declare namespace ListWithdrawalsCommand {
2885
2899
  asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
2886
2900
  amount: string;
2887
2901
  address: string;
2902
+ fee: string;
2888
2903
  }>, "many">;
2889
2904
  }, "strip", z.ZodTypeAny, {
2890
2905
  items: {
@@ -2894,6 +2909,7 @@ declare namespace ListWithdrawalsCommand {
2894
2909
  asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
2895
2910
  amount: string;
2896
2911
  address: string;
2912
+ fee: string;
2897
2913
  }[];
2898
2914
  }, {
2899
2915
  items: {
@@ -2903,6 +2919,7 @@ declare namespace ListWithdrawalsCommand {
2903
2919
  asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
2904
2920
  amount: string;
2905
2921
  address: string;
2922
+ fee: string;
2906
2923
  }[];
2907
2924
  }>;
2908
2925
  type Response = z.infer<typeof ResponseSchema>;
package/dist/index.js CHANGED
@@ -22,6 +22,9 @@ var ERROR_CODE = {
22
22
  TOTP_INVALID: "TOTP_INVALID",
23
23
  CAPTCHA_REQUIRED: "CAPTCHA_REQUIRED",
24
24
  CAPTCHA_INVALID: "CAPTCHA_INVALID",
25
+ CONFIRMATION_CODE_REQUIRED: "CONFIRMATION_CODE_REQUIRED",
26
+ CONFIRMATION_CODE_INVALID: "CONFIRMATION_CODE_INVALID",
27
+ SAME_PASSWORD: "SAME_PASSWORD",
25
28
  INSUFFICIENT_BALANCE: "INSUFFICIENT_BALANCE",
26
29
  PURCHASE_LIMIT_EXCEEDED: "PURCHASE_LIMIT_EXCEEDED",
27
30
  PURCHASE_CAP_EXCEEDED: "PURCHASE_CAP_EXCEEDED",
@@ -114,7 +117,8 @@ var AssetBalanceSchema = z.object({
114
117
  });
115
118
  var WalletOverviewSchema = z.object({
116
119
  totalUsd: MoneyStringSchema,
117
- assets: z.array(AssetBalanceSchema)
120
+ assets: z.array(AssetBalanceSchema),
121
+ withdrawalFeeRate: MoneyStringSchema
118
122
  });
119
123
  var TransactionTypeSchema = z.enum([
120
124
  "DEPOSIT",
@@ -348,6 +352,7 @@ var WithdrawalSchema = z.object({
348
352
  id: z.string().uuid(),
349
353
  asset: AssetSymbolSchema,
350
354
  amount: MoneyStringSchema,
355
+ fee: MoneyStringSchema,
351
356
  address: z.string(),
352
357
  status: WithdrawalStatusSchema,
353
358
  createdAt: z.string().datetime()