nado-protocol 0.1.1__py3-none-any.whl → 0.1.3__py3-none-any.whl

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 (48) hide show
  1. nado_protocol/client/__init__.py +11 -2
  2. nado_protocol/client/apis/market/execute.py +10 -26
  3. nado_protocol/client/apis/market/query.py +2 -2
  4. nado_protocol/client/apis/rewards/execute.py +27 -27
  5. nado_protocol/client/apis/rewards/query.py +5 -4
  6. nado_protocol/client/apis/subaccount/query.py +1 -1
  7. nado_protocol/client/context.py +0 -2
  8. nado_protocol/contracts/__init__.py +41 -33
  9. nado_protocol/contracts/abis/Endpoint.json +151 -228
  10. nado_protocol/contracts/abis/FQuerier.json +91 -508
  11. nado_protocol/contracts/abis/IAirdrop.json +76 -0
  12. nado_protocol/contracts/abis/IClearinghouse.json +277 -390
  13. nado_protocol/contracts/abis/IEndpoint.json +42 -80
  14. nado_protocol/contracts/abis/IPerpEngine.json +69 -422
  15. nado_protocol/contracts/abis/IProductEngine.json +87 -205
  16. nado_protocol/contracts/abis/ISpotEngine.json +173 -362
  17. nado_protocol/contracts/abis/MockERC20.json +1 -1
  18. nado_protocol/contracts/deployments/{deployment.test.json → deployment.testing.json} +2 -5
  19. nado_protocol/contracts/deployments/deployment.testnet.json +15 -0
  20. nado_protocol/contracts/eip712/types.py +15 -20
  21. nado_protocol/contracts/types.py +15 -13
  22. nado_protocol/engine_client/execute.py +18 -39
  23. nado_protocol/engine_client/query.py +1 -1
  24. nado_protocol/engine_client/types/__init__.py +4 -8
  25. nado_protocol/engine_client/types/execute.py +37 -103
  26. nado_protocol/engine_client/types/models.py +3 -59
  27. nado_protocol/engine_client/types/query.py +3 -6
  28. nado_protocol/indexer_client/query.py +4 -9
  29. nado_protocol/indexer_client/types/__init__.py +4 -5
  30. nado_protocol/indexer_client/types/models.py +16 -23
  31. nado_protocol/indexer_client/types/query.py +12 -11
  32. nado_protocol/trigger_client/execute.py +1 -1
  33. nado_protocol/trigger_client/types/execute.py +3 -1
  34. nado_protocol/utils/__init__.py +18 -1
  35. nado_protocol/utils/backend.py +5 -2
  36. nado_protocol/utils/exceptions.py +3 -3
  37. nado_protocol/utils/execute.py +26 -67
  38. nado_protocol/utils/expiration.py +7 -28
  39. nado_protocol/utils/nonce.py +0 -4
  40. nado_protocol/utils/order.py +356 -0
  41. {nado_protocol-0.1.1.dist-info → nado_protocol-0.1.3.dist-info}/METADATA +4 -2
  42. nado_protocol-0.1.3.dist-info/RECORD +78 -0
  43. {nado_protocol-0.1.1.dist-info → nado_protocol-0.1.3.dist-info}/entry_points.txt +0 -1
  44. nado_protocol/contracts/abis/IERC20.json +0 -185
  45. nado_protocol/contracts/abis/IOffchainBook.json +0 -536
  46. nado_protocol/contracts/abis/IVrtxAirdrop.json +0 -138
  47. nado_protocol-0.1.1.dist-info/RECORD +0 -78
  48. {nado_protocol-0.1.1.dist-info → nado_protocol-0.1.3.dist-info}/WHEEL +0 -0
@@ -85,19 +85,35 @@
85
85
  "type": "function"
86
86
  },
87
87
  {
88
- "inputs": [
89
- {
90
- "internalType": "uint32",
91
- "name": "productId",
92
- "type": "uint32"
93
- }
94
- ],
95
- "name": "getBook",
88
+ "inputs": [],
89
+ "name": "getNlpPools",
96
90
  "outputs": [
97
91
  {
98
- "internalType": "address",
92
+ "components": [
93
+ {
94
+ "internalType": "uint64",
95
+ "name": "poolId",
96
+ "type": "uint64"
97
+ },
98
+ {
99
+ "internalType": "bytes32",
100
+ "name": "subaccount",
101
+ "type": "bytes32"
102
+ },
103
+ {
104
+ "internalType": "address",
105
+ "name": "owner",
106
+ "type": "address"
107
+ },
108
+ {
109
+ "internalType": "uint128",
110
+ "name": "balanceWeightX18",
111
+ "type": "uint128"
112
+ }
113
+ ],
114
+ "internalType": "struct IEndpoint.NlpPool[]",
99
115
  "name": "",
100
- "type": "address"
116
+ "type": "tuple[]"
101
117
  }
102
118
  ],
103
119
  "stateMutability": "view",
@@ -123,19 +139,13 @@
123
139
  "type": "function"
124
140
  },
125
141
  {
126
- "inputs": [
127
- {
128
- "internalType": "uint32",
129
- "name": "productId",
130
- "type": "uint32"
131
- }
132
- ],
133
- "name": "getPriceX18",
142
+ "inputs": [],
143
+ "name": "getOffchainExchange",
134
144
  "outputs": [
135
145
  {
136
- "internalType": "int128",
146
+ "internalType": "address",
137
147
  "name": "",
138
- "type": "int128"
148
+ "type": "address"
139
149
  }
140
150
  ],
141
151
  "stateMutability": "view",
@@ -145,28 +155,16 @@
145
155
  "inputs": [
146
156
  {
147
157
  "internalType": "uint32",
148
- "name": "healthGroup",
158
+ "name": "productId",
149
159
  "type": "uint32"
150
160
  }
151
161
  ],
152
- "name": "getPricesX18",
162
+ "name": "getPriceX18",
153
163
  "outputs": [
154
164
  {
155
- "components": [
156
- {
157
- "internalType": "int128",
158
- "name": "spotPriceX18",
159
- "type": "int128"
160
- },
161
- {
162
- "internalType": "int128",
163
- "name": "perpPriceX18",
164
- "type": "int128"
165
- }
166
- ],
167
- "internalType": "struct IEndpoint.Prices",
165
+ "internalType": "int128",
168
166
  "name": "",
169
- "type": "tuple"
167
+ "type": "int128"
170
168
  }
171
169
  ],
172
170
  "stateMutability": "view",
@@ -174,12 +172,12 @@
174
172
  },
175
173
  {
176
174
  "inputs": [],
177
- "name": "getTime",
175
+ "name": "getSequencer",
178
176
  "outputs": [
179
177
  {
180
- "internalType": "uint128",
178
+ "internalType": "address",
181
179
  "name": "",
182
- "type": "uint128"
180
+ "type": "address"
183
181
  }
184
182
  ],
185
183
  "stateMutability": "view",
@@ -187,33 +185,15 @@
187
185
  },
188
186
  {
189
187
  "inputs": [],
190
- "name": "getVersion",
188
+ "name": "getTime",
191
189
  "outputs": [
192
190
  {
193
- "internalType": "uint64",
191
+ "internalType": "uint128",
194
192
  "name": "",
195
- "type": "uint64"
196
- }
197
- ],
198
- "stateMutability": "nonpayable",
199
- "type": "function"
200
- },
201
- {
202
- "inputs": [
203
- {
204
- "internalType": "uint32",
205
- "name": "productId",
206
- "type": "uint32"
207
- },
208
- {
209
- "internalType": "address",
210
- "name": "book",
211
- "type": "address"
193
+ "type": "uint128"
212
194
  }
213
195
  ],
214
- "name": "setBook",
215
- "outputs": [],
216
- "stateMutability": "nonpayable",
196
+ "stateMutability": "view",
217
197
  "type": "function"
218
198
  },
219
199
  {
@@ -228,23 +208,5 @@
228
208
  "outputs": [],
229
209
  "stateMutability": "nonpayable",
230
210
  "type": "function"
231
- },
232
- {
233
- "inputs": [
234
- {
235
- "internalType": "uint64",
236
- "name": "idx",
237
- "type": "uint64"
238
- },
239
- {
240
- "internalType": "bytes[]",
241
- "name": "transactions",
242
- "type": "bytes[]"
243
- }
244
- ],
245
- "name": "submitTransactionsChecked",
246
- "outputs": [],
247
- "stateMutability": "nonpayable",
248
- "type": "function"
249
211
  }
250
- ]
212
+ ]