@0xmonaco/types 0.8.22-develop.efb9dc9 → 1.0.2

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.
Files changed (2) hide show
  1. package/dist/wire/schema.d.ts +168 -42
  2. package/package.json +2 -2
@@ -1910,7 +1910,10 @@ export type webhooks = Record<string, never>;
1910
1910
  export interface components {
1911
1911
  schemas: {
1912
1912
  AccountBalance: {
1913
- /** @description Token contract address */
1913
+ /**
1914
+ * @description Token contract address
1915
+ * @example 0x6a86da986797d59a839d136db490292cd560c131
1916
+ */
1914
1917
  token?: string | null;
1915
1918
  /**
1916
1919
  * @description Token symbol
@@ -1980,7 +1983,10 @@ export interface components {
1980
1983
  * @example 123e4567-e89b-12d3-a456-426614174000
1981
1984
  */
1982
1985
  id?: string | null;
1983
- /** @description Wallet address */
1986
+ /**
1987
+ * @description Wallet address
1988
+ * @example 0x742d35Cc6634C0532925a3b8D4060f31E2C3d8B5
1989
+ */
1984
1990
  address?: string | null;
1985
1991
  /**
1986
1992
  * @description Display username
@@ -2617,7 +2623,10 @@ export interface components {
2617
2623
  message?: string | null;
2618
2624
  };
2619
2625
  Candle: {
2620
- /** @description Unix timestamp for the start of the candle period in milliseconds */
2626
+ /**
2627
+ * @description Unix timestamp for the start of the candle period in milliseconds
2628
+ * @example 1699800000000
2629
+ */
2621
2630
  timestamp?: string | null;
2622
2631
  /**
2623
2632
  * @description Opening price
@@ -2655,18 +2664,27 @@ export interface components {
2655
2664
  * @example 342
2656
2665
  */
2657
2666
  tradeCount?: number | null;
2658
- /** @description Unix timestamp for the end of the candle period in milliseconds */
2667
+ /**
2668
+ * @description Unix timestamp for the end of the candle period in milliseconds
2669
+ * @example 1699800059999
2670
+ */
2659
2671
  closeTimestampMs?: string | null;
2660
2672
  };
2661
2673
  ChallengeRequest: {
2662
- /** @description Ethereum wallet address */
2674
+ /**
2675
+ * @description Ethereum wallet address
2676
+ * @example 0x742d35Cc6634C0532925a3b8D4060f31E2C3d8B5
2677
+ */
2663
2678
  address: string;
2664
2679
  /**
2665
2680
  * @description Optional application identifier
2666
2681
  * @example monaco-frontend
2667
2682
  */
2668
2683
  clientId?: string | null;
2669
- /** @description Optional chain ID supplied by SDK clients */
2684
+ /**
2685
+ * @description Optional chain ID supplied by SDK clients
2686
+ * @example 1328
2687
+ */
2670
2688
  chainId?: string | null;
2671
2689
  /**
2672
2690
  * @description Lowercase hex (64 chars) ed25519 public key generated locally by the SDK. The returned challenge message will embed this key so the wallet's signature binds it; the same value must be submitted to /api/v1/auth/verify.
@@ -2759,7 +2777,10 @@ export interface components {
2759
2777
  sessionPublicKey?: string | null;
2760
2778
  };
2761
2779
  CreateDelegatedSessionResponse: {
2762
- /** @description Session expiry as a Unix timestamp (seconds) */
2780
+ /**
2781
+ * @description Session expiry as a Unix timestamp (seconds)
2782
+ * @example 1735689599
2783
+ */
2763
2784
  expiresAt?: string | null;
2764
2785
  /**
2765
2786
  * Format: uuid
@@ -2959,7 +2980,10 @@ export interface components {
2959
2980
  * @description Owner account UUID the agent acts on behalf of
2960
2981
  */
2961
2982
  ownerUserId?: string | null;
2962
- /** @description Agent wallet address (EVM) */
2983
+ /**
2984
+ * @description Agent wallet address (EVM)
2985
+ * @example 0x742d35cc6634c0532925a3b8d4060f31e2c3d8b5
2986
+ */
2963
2987
  agentAddress?: string | null;
2964
2988
  /** @description Human-friendly label for the agent */
2965
2989
  name?: string | null;
@@ -3164,7 +3188,10 @@ export interface components {
3164
3188
  * @example 5.67
3165
3189
  */
3166
3190
  applicationTakerFee?: string | null;
3167
- /** @description Total number of trades */
3191
+ /**
3192
+ * @description Total number of trades
3193
+ * @example 42
3194
+ */
3168
3195
  tradeCount?: string | null;
3169
3196
  };
3170
3197
  GetAvailableCollateralResponse: {
@@ -3181,7 +3208,10 @@ export interface components {
3181
3208
  marginAvailableCollateral?: string | null;
3182
3209
  };
3183
3210
  GetBalanceByAssetResponse: {
3184
- /** @description Token contract address */
3211
+ /**
3212
+ * @description Token contract address
3213
+ * @example 0x6a86da986797d59a839d136db490292cd560c131
3214
+ */
3185
3215
  token?: string | null;
3186
3216
  /**
3187
3217
  * @description Token symbol
@@ -3277,7 +3307,10 @@ export interface components {
3277
3307
  allowedOrigins?: string[] | null;
3278
3308
  /** @description Webhook URL for notifications */
3279
3309
  webhookUrl?: string | null;
3280
- /** @description Vault contract address for this application */
3310
+ /**
3311
+ * @description Vault contract address for this application
3312
+ * @example 0xA393B04EA77354570Ace35869F5EbB1e380DC232
3313
+ */
3281
3314
  vaultContractAddress?: string | null;
3282
3315
  /**
3283
3316
  * @description Application client ID, embedded in on-chain deposit calls
@@ -3861,9 +3894,15 @@ export interface components {
3861
3894
  * @example 231.81
3862
3895
  */
3863
3896
  volume?: string | null;
3864
- /** @description Number of trades in period */
3897
+ /**
3898
+ * @description Number of trades in period
3899
+ * @example 42
3900
+ */
3865
3901
  totalTrades?: string | null;
3866
- /** @description Number of orders in period */
3902
+ /**
3903
+ * @description Number of orders in period
3904
+ * @example 56
3905
+ */
3867
3906
  totalOrders?: string | null;
3868
3907
  /**
3869
3908
  * @description Total fees paid by user
@@ -3987,7 +4026,10 @@ export interface components {
3987
4026
  * @example 123e4567-e89b-12d3-a456-426614174000
3988
4027
  */
3989
4028
  id?: string | null;
3990
- /** @description Wallet address */
4029
+ /**
4030
+ * @description Wallet address
4031
+ * @example 0x742d35Cc6634C0532925a3b8D4060f31E2C3d8B5
4032
+ */
3991
4033
  address?: string | null;
3992
4034
  /**
3993
4035
  * @description Display username
@@ -4087,7 +4129,10 @@ export interface components {
4087
4129
  tradingMode?: string | null;
4088
4130
  };
4089
4131
  GetTraderCodeInfoResponse: {
4090
- /** @description The resolved TraderCode (normalized wallet address) */
4132
+ /**
4133
+ * @description The resolved TraderCode (normalized wallet address)
4134
+ * @example 0x0000000000000000000000000000000000000002
4135
+ */
4091
4136
  code?: string | null;
4092
4137
  };
4093
4138
  /** @description Recent trades for a trading pair. */
@@ -4112,13 +4157,25 @@ export interface components {
4112
4157
  };
4113
4158
  GetUserTradesResponse: {
4114
4159
  trades?: components["schemas"]["UserTrade"][] | null;
4115
- /** @description Current page number */
4160
+ /**
4161
+ * @description Current page number
4162
+ * @example 1
4163
+ */
4116
4164
  page?: string | null;
4117
- /** @description Items per page */
4165
+ /**
4166
+ * @description Items per page
4167
+ * @example 20
4168
+ */
4118
4169
  pageSize?: string | null;
4119
- /** @description Total number of trades */
4170
+ /**
4171
+ * @description Total number of trades
4172
+ * @example 150
4173
+ */
4120
4174
  total?: string | null;
4121
- /** @description Total number of pages */
4175
+ /**
4176
+ * @description Total number of pages
4177
+ * @example 8
4178
+ */
4122
4179
  totalPages?: string | null;
4123
4180
  };
4124
4181
  IndexComponent: {
@@ -4139,7 +4196,10 @@ export interface components {
4139
4196
  * @example 1000000000000000000
4140
4197
  */
4141
4198
  amount?: string | null;
4142
- /** @description On-chain address that will receive the withdrawal (EVM, 42 chars including 0x) */
4199
+ /**
4200
+ * @description On-chain address that will receive the withdrawal (EVM, 42 chars including 0x)
4201
+ * @example 0x742d35cc6634c0532925a3b8d4060f31e2c3d8b5
4202
+ */
4143
4203
  destination?: string | null;
4144
4204
  /**
4145
4205
  * @description Source ledger to withdraw from: "spot" (default) debits spot balance; "margin" directly debits withdrawable collateral from the parent margin account
@@ -4169,7 +4229,10 @@ export interface components {
4169
4229
  * @example 100.50
4170
4230
  */
4171
4231
  amount?: string | null;
4172
- /** @description Token contract address */
4232
+ /**
4233
+ * @description Token contract address
4234
+ * @example 0x6a86da986797d59a839d136db490292cd560c131
4235
+ */
4173
4236
  token?: string | null;
4174
4237
  /**
4175
4238
  * @description Available balance before this movement
@@ -4206,9 +4269,15 @@ export interface components {
4206
4269
  * @example USDC deposit
4207
4270
  */
4208
4271
  description?: string | null;
4209
- /** @description On-chain transaction hash (if applicable) */
4272
+ /**
4273
+ * @description On-chain transaction hash (if applicable)
4274
+ * @example 0xabc123...
4275
+ */
4210
4276
  txHash?: string | null;
4211
- /** @description Block number of the on-chain transaction */
4277
+ /**
4278
+ * @description Block number of the on-chain transaction
4279
+ * @example 18500000
4280
+ */
4212
4281
  blockNumber?: string | null;
4213
4282
  /**
4214
4283
  * @description Movement timestamp (ISO 8601)
@@ -4649,7 +4718,10 @@ export interface components {
4649
4718
  * @example 10000.00
4650
4719
  */
4651
4720
  amount?: string | null;
4652
- /** @description On-chain transaction hash */
4721
+ /**
4722
+ * @description On-chain transaction hash
4723
+ * @example 0xabc123def456...
4724
+ */
4653
4725
  txHash?: string | null;
4654
4726
  };
4655
4727
  OrderbookData: {
@@ -4716,7 +4788,10 @@ export interface components {
4716
4788
  * is confirmed on-chain; fetch it from GetWithdrawal once it becomes ready).
4717
4789
  */
4718
4790
  PendingWithdrawal: {
4719
- /** @description Allocated withdrawal index — matches executeWithdrawal.index on-chain */
4791
+ /**
4792
+ * @description Allocated withdrawal index — matches executeWithdrawal.index on-chain
4793
+ * @example 42
4794
+ */
4720
4795
  withdrawalIndex?: string | null;
4721
4796
  /**
4722
4797
  * Format: uuid
@@ -4734,7 +4809,10 @@ export interface components {
4734
4809
  * @example 1000000000000000000
4735
4810
  */
4736
4811
  amount?: string | null;
4737
- /** @description On-chain address that will receive the withdrawal (EVM, 42 chars including 0x) */
4812
+ /**
4813
+ * @description On-chain address that will receive the withdrawal (EVM, 42 chars including 0x)
4814
+ * @example 0x742d35cc6634c0532925a3b8d4060f31e2c3d8b5
4815
+ */
4738
4816
  destination?: string | null;
4739
4817
  /**
4740
4818
  * @description Withdrawal lifecycle status; always "pending" for entries in this response
@@ -5035,7 +5113,10 @@ export interface components {
5035
5113
  message?: string | null;
5036
5114
  };
5037
5115
  RewardsBalanceEntry: {
5038
- /** @description Reward token contract address (0x-prefixed). */
5116
+ /**
5117
+ * @description Reward token contract address (0x-prefixed).
5118
+ * @example 0x0000000000000000000000000000000000000002
5119
+ */
5039
5120
  token?: string | null;
5040
5121
  /**
5041
5122
  * @description Available rewards balance in RAW atomic units of the token.
@@ -5298,7 +5379,10 @@ export interface components {
5298
5379
  * @example 123e4567-e89b-12d3-a456-426614174000
5299
5380
  */
5300
5381
  id?: string | null;
5301
- /** @description Sub-account wallet address */
5382
+ /**
5383
+ * @description Sub-account wallet address
5384
+ * @example 0x742d35Cc6634C0532925a3b8D1B9d7c2bd34e8Dc
5385
+ */
5302
5386
  address?: string | null;
5303
5387
  /**
5304
5388
  * @description Sub-account display username
@@ -5330,7 +5414,10 @@ export interface components {
5330
5414
  * @example 123e4567-e89b-12d3-a456-426614174000
5331
5415
  */
5332
5416
  subAccountId?: string | null;
5333
- /** @description Token contract address */
5417
+ /**
5418
+ * @description Token contract address
5419
+ * @example 0x6a86da986797d59a839d136db490292cd560c131
5420
+ */
5334
5421
  token?: string | null;
5335
5422
  /**
5336
5423
  * @description Maximum daily spending limit in token units
@@ -5375,7 +5462,10 @@ export interface components {
5375
5462
  isActive?: boolean | null;
5376
5463
  };
5377
5464
  SubmitWhitelistRequest: {
5378
- /** @description Applicant wallet address */
5465
+ /**
5466
+ * @description Applicant wallet address
5467
+ * @example 0x742d35Cc6634C0532925a3b8D4060f31E2C3d8B5
5468
+ */
5379
5469
  walletAddress: string;
5380
5470
  /**
5381
5471
  * Format: email
@@ -5452,7 +5542,10 @@ export interface components {
5452
5542
  tradeId?: string | null;
5453
5543
  };
5454
5544
  TraderCodeResponse: {
5455
- /** @description Your TraderCode — your normalized wallet address (clients render it `Monaco - <address>`). */
5545
+ /**
5546
+ * @description Your TraderCode — your normalized wallet address (clients render it `Monaco - <address>`).
5547
+ * @example 0x0000000000000000000000000000000000000002
5548
+ */
5456
5549
  code?: string | null;
5457
5550
  /**
5458
5551
  * @description RFC 3339 timestamp when the code row was first derived
@@ -5484,7 +5577,10 @@ export interface components {
5484
5577
  * @example BTC
5485
5578
  */
5486
5579
  baseToken?: string | null;
5487
- /** @description Base token contract address */
5580
+ /**
5581
+ * @description Base token contract address
5582
+ * @example 0x1234567890abcdef1234567890abcdef12345678
5583
+ */
5488
5584
  baseTokenContract?: string | null;
5489
5585
  /**
5490
5586
  * Format: uuid
@@ -5540,7 +5636,10 @@ export interface components {
5540
5636
  * @example USDC
5541
5637
  */
5542
5638
  quoteToken?: string | null;
5543
- /** @description Quote token contract address */
5639
+ /**
5640
+ * @description Quote token contract address
5641
+ * @example 0x6a86da986797d59a839d136db490292cd560c131
5642
+ */
5544
5643
  quoteTokenContract?: string | null;
5545
5644
  /**
5546
5645
  * @description Trading pair symbol
@@ -5661,7 +5760,10 @@ export interface components {
5661
5760
  selectedTradingPairIds?: string[] | null;
5662
5761
  };
5663
5762
  TransferRewardsRequest: {
5664
- /** @description Reward token contract address (0x-prefixed) to transfer. */
5763
+ /**
5764
+ * @description Reward token contract address (0x-prefixed) to transfer.
5765
+ * @example 0x0000000000000000000000000000000000000002
5766
+ */
5665
5767
  token: string;
5666
5768
  /**
5667
5769
  * @description Amount to transfer, in RAW atomic units of the token.
@@ -5726,7 +5828,10 @@ export interface components {
5726
5828
  quantity?: string | null;
5727
5829
  };
5728
5830
  UpsertDelegatedAgentRequest: {
5729
- /** @description Agent wallet address (EVM, 42 chars including 0x) */
5831
+ /**
5832
+ * @description Agent wallet address (EVM, 42 chars including 0x)
5833
+ * @example 0x742d35cc6634c0532925a3b8d4060f31e2c3d8b5
5834
+ */
5730
5835
  agentAddress?: string | null;
5731
5836
  /**
5732
5837
  * @description Optional human-friendly label for the agent
@@ -5788,7 +5893,10 @@ export interface components {
5788
5893
  * @example 123e4567-e89b-12d3-a456-426614174000
5789
5894
  */
5790
5895
  id?: string | null;
5791
- /** @description Wallet address */
5896
+ /**
5897
+ * @description Wallet address
5898
+ * @example 0x742d35Cc6634C0532925a3b8D4060f31E2C3d8B5
5899
+ */
5792
5900
  address?: string | null;
5793
5901
  /**
5794
5902
  * @description Display username
@@ -5812,9 +5920,15 @@ export interface components {
5812
5920
  timestamp?: string | null;
5813
5921
  };
5814
5922
  VerifyRequest: {
5815
- /** @description Ethereum wallet address */
5923
+ /**
5924
+ * @description Ethereum wallet address
5925
+ * @example 0x742d35Cc6634C0532925a3b8D4060f31E2C3d8B5
5926
+ */
5816
5927
  address: string;
5817
- /** @description Wallet signature over the challenge message */
5928
+ /**
5929
+ * @description Wallet signature over the challenge message
5930
+ * @example 0x1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0
5931
+ */
5818
5932
  signature: string;
5819
5933
  /**
5820
5934
  * @description Challenge nonce
@@ -5826,14 +5940,20 @@ export interface components {
5826
5940
  * @example monaco-frontend
5827
5941
  */
5828
5942
  clientId?: string | null;
5829
- /** @description Optional chain ID supplied by SDK clients */
5943
+ /**
5944
+ * @description Optional chain ID supplied by SDK clients
5945
+ * @example 1328
5946
+ */
5830
5947
  chainId?: string | null;
5831
5948
  /**
5832
5949
  * @description Lowercase hex (64 chars) ed25519 public key generated locally by the SDK. Subsequent authenticated requests are signed with the matching private key. The wallet's signature on the challenge message proves the user authorized this specific public key.
5833
5950
  * @example 3b6a27bcceb6a42d62a3a8d02a6f0d73653215771de243a63ac048a18b59da29
5834
5951
  */
5835
5952
  sessionPublicKey: string;
5836
- /** @description Optional PitPass TraderCode captured at signup (e.g. from a `?ref=CODE` link). When a user verifies for the very first time with a valid code, a referral relationship is recorded atomically. Ignored for users who already exist, and silently ignored if the code is unknown — a bad code never blocks sign-in. */
5953
+ /**
5954
+ * @description Optional PitPass TraderCode captured at signup (e.g. from a `?ref=CODE` link). When a user verifies for the very first time with a valid code, a referral relationship is recorded atomically. Ignored for users who already exist, and silently ignored if the code is unknown — a bad code never blocks sign-in.
5955
+ * @example 0x1234567890abcdef1234567890abcdef12345678
5956
+ */
5837
5957
  referralCode?: string | null;
5838
5958
  };
5839
5959
  VerifyResponse: {
@@ -5846,9 +5966,15 @@ export interface components {
5846
5966
  user?: components["schemas"]["UserInfo"];
5847
5967
  };
5848
5968
  Withdrawal: {
5849
- /** @description Allocated withdrawal index — matches executeWithdrawal.index on-chain */
5969
+ /**
5970
+ * @description Allocated withdrawal index — matches executeWithdrawal.index on-chain
5971
+ * @example 42
5972
+ */
5850
5973
  withdrawalIndex?: string | null;
5851
- /** @description 0x-prefixed lowercase address of the vault contract the calldata is submitted to */
5974
+ /**
5975
+ * @description 0x-prefixed lowercase address of the vault contract the calldata is submitted to
5976
+ * @example 0x5fbdb2315678afecb367f032d93f642f64180aa3
5977
+ */
5852
5978
  vaultAddress?: string | null;
5853
5979
  /** @description 0x-prefixed ABI-encoded executeWithdrawal(...) calldata; submit as tx.data to the vault. Empty on InitiateWithdrawal (the merkle proof is not available until the withdrawal root is confirmed on-chain) — fetch it from GetWithdrawal once ready */
5854
5980
  calldata?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xmonaco/types",
3
- "version": "0.8.22-develop.efb9dc9",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,7 +20,7 @@
20
20
  "lint": "biome lint ."
21
21
  },
22
22
  "dependencies": {
23
- "@0xmonaco/contracts": "0.8.22-develop.efb9dc9",
23
+ "@0xmonaco/contracts": "1.0.2",
24
24
  "zod": "^4.1.12"
25
25
  },
26
26
  "peerDependencies": {