@optimex-xyz/market-maker-sdk 0.5.5 → 0.6.0-staging-7b0e931

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ # MIT License
2
+
3
+ Copyright (c) 2025 Rebilac Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -652,14 +652,14 @@ GET /v1/market-maker/tokens
652
652
  "name": "Bitcoin Testnet",
653
653
  "symbol": "tBTC",
654
654
  "type": "BTC",
655
- "logo_uri": "https://storage.googleapis.com/bitfi-static-35291d79/images/tokens/btc_network.svg"
655
+ "logo_uri": "https://storage.googleapis.com/Optimex-static-35291d79/images/tokens/btc_network.svg"
656
656
  },
657
657
  {
658
658
  "network_id": "ethereum_sepolia",
659
659
  "name": "Ethereum Sepolia",
660
660
  "symbol": "ETH",
661
661
  "type": "EVM",
662
- "logo_uri": "https://storage.googleapis.com/bitfi-static-35291d79/images/tokens/eth_network.svg"
662
+ "logo_uri": "https://storage.googleapis.com/Optimex-static-35291d79/images/tokens/eth_network.svg"
663
663
  }
664
664
  ],
665
665
  "tokens": [
@@ -674,8 +674,8 @@ GET /v1/market-maker/tokens
674
674
  "token_symbol": "tBTC",
675
675
  "token_address": "native",
676
676
  "token_decimals": 8,
677
- "token_logo_uri": "https://storage.googleapis.com/bitfi-static-35291d79/images/tokens/tbtc.svg",
678
- "network_logo_uri": "https://storage.googleapis.com/bitfi-static-35291d79/images/tokens/btc_network.svg",
677
+ "token_logo_uri": "https://storage.googleapis.com/Optimex-static-35291d79/images/tokens/tbtc.svg",
678
+ "network_logo_uri": "https://storage.googleapis.com/Optimex-static-35291d79/images/tokens/btc_network.svg",
679
679
  "active": true,
680
680
  "created_at": "2024-10-28T07:24:33.179Z",
681
681
  "updated_at": "2024-11-07T04:40:46.454Z"
@@ -691,8 +691,8 @@ GET /v1/market-maker/tokens
691
691
  "token_symbol": "ETH",
692
692
  "token_address": "native",
693
693
  "token_decimals": 18,
694
- "token_logo_uri": "https://storage.googleapis.com/bitfi-static-35291d79/images/tokens/eth.svg",
695
- "network_logo_uri": "https://storage.googleapis.com/bitfi-static-35291d79/images/tokens/eth_network.svg",
694
+ "token_logo_uri": "https://storage.googleapis.com/Optimex-static-35291d79/images/tokens/eth.svg",
695
+ "network_logo_uri": "https://storage.googleapis.com/Optimex-static-35291d79/images/tokens/eth_network.svg",
696
696
  "active": true,
697
697
  "created_at": "2024-11-22T08:36:59.175Z",
698
698
  "updated_at": "2024-11-22T08:36:59.175Z"
package/dist/index.d.mts CHANGED
@@ -4732,7 +4732,6 @@ declare const TradeDetailResponseSchema: z.ZodObject<{
4732
4732
  amountAfterFees: z.ZodString;
4733
4733
  fromUserAddress: z.ZodString;
4734
4734
  userReceivingAddress: z.ZodString;
4735
- scriptTimeout: z.ZodNumber;
4736
4735
  protocolFeeInBps: z.ZodString;
4737
4736
  affiliateFeeInBps: z.ZodString;
4738
4737
  totalFee: z.ZodString;
@@ -4761,7 +4760,6 @@ declare const TradeDetailResponseSchema: z.ZodObject<{
4761
4760
  pmmFailureStats: z.ZodRecord<z.ZodString, z.ZodNumber>;
4762
4761
  commitedSignature: z.ZodString;
4763
4762
  minAmountOut: z.ZodNull;
4764
- tradeTimeout: z.ZodNumber;
4765
4763
  userDepositTx: z.ZodString;
4766
4764
  depositVault: z.ZodString;
4767
4765
  paymentBundle: z.ZodObject<{
@@ -4793,6 +4791,8 @@ declare const TradeDetailResponseSchema: z.ZodObject<{
4793
4791
  state: z.ZodString;
4794
4792
  lastUpdateMsg: z.ZodString;
4795
4793
  version: z.ZodNumber;
4794
+ scriptTimeout: z.ZodNumber;
4795
+ tradeTimeout: z.ZodNumber;
4796
4796
  }, "strip", z.ZodTypeAny, {
4797
4797
  version: number;
4798
4798
  tradeId: string;
package/dist/index.d.ts CHANGED
@@ -4732,7 +4732,6 @@ declare const TradeDetailResponseSchema: z.ZodObject<{
4732
4732
  amountAfterFees: z.ZodString;
4733
4733
  fromUserAddress: z.ZodString;
4734
4734
  userReceivingAddress: z.ZodString;
4735
- scriptTimeout: z.ZodNumber;
4736
4735
  protocolFeeInBps: z.ZodString;
4737
4736
  affiliateFeeInBps: z.ZodString;
4738
4737
  totalFee: z.ZodString;
@@ -4761,7 +4760,6 @@ declare const TradeDetailResponseSchema: z.ZodObject<{
4761
4760
  pmmFailureStats: z.ZodRecord<z.ZodString, z.ZodNumber>;
4762
4761
  commitedSignature: z.ZodString;
4763
4762
  minAmountOut: z.ZodNull;
4764
- tradeTimeout: z.ZodNumber;
4765
4763
  userDepositTx: z.ZodString;
4766
4764
  depositVault: z.ZodString;
4767
4765
  paymentBundle: z.ZodObject<{
@@ -4793,6 +4791,8 @@ declare const TradeDetailResponseSchema: z.ZodObject<{
4793
4791
  state: z.ZodString;
4794
4792
  lastUpdateMsg: z.ZodString;
4795
4793
  version: z.ZodNumber;
4794
+ scriptTimeout: z.ZodNumber;
4795
+ tradeTimeout: z.ZodNumber;
4796
4796
  }, "strip", z.ZodTypeAny, {
4797
4797
  version: number;
4798
4798
  tradeId: string;
package/dist/index.js CHANGED
@@ -3717,7 +3717,6 @@ var TradeDetailResponseSchema = import_zod.z.object({
3717
3717
  amountAfterFees: import_zod.z.string(),
3718
3718
  fromUserAddress: import_zod.z.string(),
3719
3719
  userReceivingAddress: import_zod.z.string(),
3720
- scriptTimeout: import_zod.z.number(),
3721
3720
  protocolFeeInBps: import_zod.z.string(),
3722
3721
  affiliateFeeInBps: import_zod.z.string(),
3723
3722
  totalFee: import_zod.z.string(),
@@ -3737,7 +3736,6 @@ var TradeDetailResponseSchema = import_zod.z.object({
3737
3736
  pmmFailureStats: import_zod.z.record(import_zod.z.number()),
3738
3737
  commitedSignature: import_zod.z.string(),
3739
3738
  minAmountOut: import_zod.z.null(),
3740
- tradeTimeout: import_zod.z.number(),
3741
3739
  userDepositTx: import_zod.z.string(),
3742
3740
  depositVault: import_zod.z.string(),
3743
3741
  paymentBundle: PaymentBundleSchema,
@@ -3747,7 +3745,9 @@ var TradeDetailResponseSchema = import_zod.z.object({
3747
3745
  tradeMakePaymentTx: import_zod.z.string(),
3748
3746
  state: import_zod.z.string(),
3749
3747
  lastUpdateMsg: import_zod.z.string(),
3750
- version: import_zod.z.number()
3748
+ version: import_zod.z.number(),
3749
+ scriptTimeout: import_zod.z.number(),
3750
+ tradeTimeout: import_zod.z.number()
3751
3751
  }),
3752
3752
  traceId: import_zod.z.string()
3753
3753
  });
package/dist/index.mjs CHANGED
@@ -3652,7 +3652,6 @@ var TradeDetailResponseSchema = z.object({
3652
3652
  amountAfterFees: z.string(),
3653
3653
  fromUserAddress: z.string(),
3654
3654
  userReceivingAddress: z.string(),
3655
- scriptTimeout: z.number(),
3656
3655
  protocolFeeInBps: z.string(),
3657
3656
  affiliateFeeInBps: z.string(),
3658
3657
  totalFee: z.string(),
@@ -3672,7 +3671,6 @@ var TradeDetailResponseSchema = z.object({
3672
3671
  pmmFailureStats: z.record(z.number()),
3673
3672
  commitedSignature: z.string(),
3674
3673
  minAmountOut: z.null(),
3675
- tradeTimeout: z.number(),
3676
3674
  userDepositTx: z.string(),
3677
3675
  depositVault: z.string(),
3678
3676
  paymentBundle: PaymentBundleSchema,
@@ -3682,7 +3680,9 @@ var TradeDetailResponseSchema = z.object({
3682
3680
  tradeMakePaymentTx: z.string(),
3683
3681
  state: z.string(),
3684
3682
  lastUpdateMsg: z.string(),
3685
- version: z.number()
3683
+ version: z.number(),
3684
+ scriptTimeout: z.number(),
3685
+ tradeTimeout: z.number()
3686
3686
  }),
3687
3687
  traceId: z.string()
3688
3688
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimex-xyz/market-maker-sdk",
3
- "version": "0.5.5",
3
+ "version": "0.6.0-staging-7b0e931",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"