@optimex-xyz/market-maker-sdk 0.5.2 → 0.5.4
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 +16 -5
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -2
- package/dist/index.mjs +10 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -104,12 +104,23 @@ sequenceDiagram
|
|
|
104
104
|
|
|
105
105
|
### 2.1. API Environments
|
|
106
106
|
|
|
107
|
-
| Environment
|
|
108
|
-
|
|
|
109
|
-
| `dev`
|
|
110
|
-
| `production` |
|
|
107
|
+
| Environment | Description |
|
|
108
|
+
| ---------------- | -------------------------------------------------------------------- |
|
|
109
|
+
| `dev` | Development environment with test networks and staging services |
|
|
110
|
+
| `pre-production` | Pre-production environment with mainnet networks for testing before release |
|
|
111
|
+
| `production` | Production environment with mainnet networks and production services |
|
|
111
112
|
|
|
112
|
-
|
|
113
|
+
- Solver URLs: Each environment has dedicated API endpoints
|
|
114
|
+
|
|
115
|
+
- RPC Endpoints: L2 RPC endpoints
|
|
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,12 +79,20 @@ var environments = {
|
|
|
79
79
|
ethereum_sepolia: "0x7387DcCfE2f1D5F80b4ECDF91eF58541517e90D2"
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
|
+
prelive: {
|
|
83
|
+
backendUrl: "https://pre-api.optimex.xyz",
|
|
84
|
+
rpcUrl: "https://rpc-bitfi-p00c4t1rul.t.conduit.xyz",
|
|
85
|
+
routerAddress: "0x272599CE3602A49B580A5C4a4d3C1067E30248D2",
|
|
86
|
+
paymentAddressMap: {
|
|
87
|
+
ethereum: "0x0A497AC4261E37FA4062762C23Cf3cB642C839b8"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
82
90
|
production: {
|
|
83
91
|
backendUrl: "https://api.optimex.xyz",
|
|
84
|
-
rpcUrl: "https://bitfi-
|
|
92
|
+
rpcUrl: "https://rpc-bitfi-p00c4t1rul.t.conduit.xyz",
|
|
85
93
|
routerAddress: "0x272599CE3602A49B580A5C4a4d3C1067E30248D2",
|
|
86
94
|
paymentAddressMap: {
|
|
87
|
-
ethereum: "
|
|
95
|
+
ethereum: "0x0A497AC4261E37FA4062762C23Cf3cB642C839b8"
|
|
88
96
|
}
|
|
89
97
|
}
|
|
90
98
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -14,12 +14,20 @@ var environments = {
|
|
|
14
14
|
ethereum_sepolia: "0x7387DcCfE2f1D5F80b4ECDF91eF58541517e90D2"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
+
prelive: {
|
|
18
|
+
backendUrl: "https://pre-api.optimex.xyz",
|
|
19
|
+
rpcUrl: "https://rpc-bitfi-p00c4t1rul.t.conduit.xyz",
|
|
20
|
+
routerAddress: "0x272599CE3602A49B580A5C4a4d3C1067E30248D2",
|
|
21
|
+
paymentAddressMap: {
|
|
22
|
+
ethereum: "0x0A497AC4261E37FA4062762C23Cf3cB642C839b8"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
17
25
|
production: {
|
|
18
26
|
backendUrl: "https://api.optimex.xyz",
|
|
19
|
-
rpcUrl: "https://bitfi-
|
|
27
|
+
rpcUrl: "https://rpc-bitfi-p00c4t1rul.t.conduit.xyz",
|
|
20
28
|
routerAddress: "0x272599CE3602A49B580A5C4a4d3C1067E30248D2",
|
|
21
29
|
paymentAddressMap: {
|
|
22
|
-
ethereum: "
|
|
30
|
+
ethereum: "0x0A497AC4261E37FA4062762C23Cf3cB642C839b8"
|
|
23
31
|
}
|
|
24
32
|
}
|
|
25
33
|
};
|