@optimex-xyz/market-maker-sdk 0.5.2 → 0.5.3

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/README.md CHANGED
@@ -104,12 +104,23 @@ sequenceDiagram
104
104
 
105
105
  ### 2.1. API Environments
106
106
 
107
- | Environment | Description |
108
- | ------------ | -------------------------------------------------------------------- |
109
- | `dev` | Development environment with test networks and staging services |
110
- | `production` | Production environment with mainnet networks and production services |
107
+ | Environment | Description | Base URL |
108
+ | ---------------- | -------------------------------------------------------------------- | ------------------------------------ |
109
+ | `dev` | Development environment with test networks and staging services | `https://api-dev.bitfi.com` |
110
+ | `pre-production` | Pre-production environment with mainnet networks for testing before release | `https://api-preprod.bitfi.com` |
111
+ | `production` | Production environment with mainnet networks and production services | `https://api.bitfi.com` |
111
112
 
112
- Each environment includes specific configuration for backend URLs, RPC endpoints, router addresses, and payment addresses.
113
+ - Solver URLs: Each environment has dedicated API endpoints
114
+
115
+ - RPC Endpoints: L2 RPC endpoints remain the same across all environments
116
+
117
+ - Router Addresses: Smart contract addresses for routing transactions
118
+
119
+ - **Note:** pre-production and production share the same router addresses
120
+
121
+ - Payment Addresses: Addresses used for fee collection and settlement
122
+
123
+ - **Note:** pre-production and production share the same payment addresses
113
124
 
114
125
  ## 3. PMM Backend APIs
115
126
 
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { DeferredTopicFilter, EventFragment, EventLog, TransactionRequest, Typed, ContractTransactionResponse, FunctionFragment, ContractTransaction, LogDescription, BaseContract, ContractRunner, Interface, AddressLike, BigNumberish, BytesLike, Result, Listener, ContractMethod, Provider, Signer as Signer$1, Wallet, TypedDataDomain } from 'ethers';
2
2
  import { z } from 'zod';
3
3
 
4
- type Environment = 'dev' | 'production';
4
+ type Environment = 'dev' | 'prelive' | 'production';
5
5
  interface EnvironmentConfig {
6
6
  backendUrl: string;
7
7
  rpcUrl: string;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { DeferredTopicFilter, EventFragment, EventLog, TransactionRequest, Typed, ContractTransactionResponse, FunctionFragment, ContractTransaction, LogDescription, BaseContract, ContractRunner, Interface, AddressLike, BigNumberish, BytesLike, Result, Listener, ContractMethod, Provider, Signer as Signer$1, Wallet, TypedDataDomain } from 'ethers';
2
2
  import { z } from 'zod';
3
3
 
4
- type Environment = 'dev' | 'production';
4
+ type Environment = 'dev' | 'prelive' | 'production';
5
5
  interface EnvironmentConfig {
6
6
  backendUrl: string;
7
7
  rpcUrl: string;
package/dist/index.js CHANGED
@@ -79,6 +79,14 @@ var environments = {
79
79
  ethereum_sepolia: "0x7387DcCfE2f1D5F80b4ECDF91eF58541517e90D2"
80
80
  }
81
81
  },
82
+ prelive: {
83
+ backendUrl: "https://pre-api.optimex.xyz",
84
+ rpcUrl: "https://bitfi-ledger-testnet.alt.technology",
85
+ routerAddress: "0x272599CE3602A49B580A5C4a4d3C1067E30248D2",
86
+ paymentAddressMap: {
87
+ ethereum: "x0A497AC4261E37FA4062762C23Cf3cB642C839b8"
88
+ }
89
+ },
82
90
  production: {
83
91
  backendUrl: "https://api.optimex.xyz",
84
92
  rpcUrl: "https://bitfi-ledger-testnet.alt.technology",
package/dist/index.mjs CHANGED
@@ -14,6 +14,14 @@ var environments = {
14
14
  ethereum_sepolia: "0x7387DcCfE2f1D5F80b4ECDF91eF58541517e90D2"
15
15
  }
16
16
  },
17
+ prelive: {
18
+ backendUrl: "https://pre-api.optimex.xyz",
19
+ rpcUrl: "https://bitfi-ledger-testnet.alt.technology",
20
+ routerAddress: "0x272599CE3602A49B580A5C4a4d3C1067E30248D2",
21
+ paymentAddressMap: {
22
+ ethereum: "x0A497AC4261E37FA4062762C23Cf3cB642C839b8"
23
+ }
24
+ },
17
25
  production: {
18
26
  backendUrl: "https://api.optimex.xyz",
19
27
  rpcUrl: "https://bitfi-ledger-testnet.alt.technology",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimex-xyz/market-maker-sdk",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"