nado-protocol 0.1.0__py3-none-any.whl → 0.1.2__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.0.dist-info → nado_protocol-0.1.2.dist-info}/METADATA +4 -2
  42. nado_protocol-0.1.2.dist-info/RECORD +78 -0
  43. {nado_protocol-0.1.0.dist-info → nado_protocol-0.1.2.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.0.dist-info/RECORD +0 -78
  48. {nado_protocol-0.1.0.dist-info → nado_protocol-0.1.2.dist-info}/WHEEL +0 -0
@@ -0,0 +1,78 @@
1
+ nado_protocol/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ nado_protocol/client/__init__.py,sha256=kI_dXpRXe8EYpArsaT0aOvr4_LHDj8Tdaa8Qb3a4BEk,7703
3
+ nado_protocol/client/apis/__init__.py,sha256=0wEscoemkmvyyTlUAaIM2vSO9LD_yCCVf3loHwasG_4,680
4
+ nado_protocol/client/apis/base.py,sha256=89g6va4wcqbV7XLO0UBkKmmM2C2oDcYSzRjzaUnFcGQ,1807
5
+ nado_protocol/client/apis/market/__init__.py,sha256=uILwdGeWOzQRT7x8bxvof6_u4GpsG9tL9I0VBuDPSoE,1102
6
+ nado_protocol/client/apis/market/execute.py,sha256=t5OaJxlC_E2ZzNqUZuzXpvil__gFaZvjKwP2oEjiyys,6463
7
+ nado_protocol/client/apis/market/query.py,sha256=CmL_btMtqp0iJFqUt_gszkhe-i4LlcNvt3ogtdDaUXk,13509
8
+ nado_protocol/client/apis/perp/__init__.py,sha256=KUGZ86Xo-NB-9uhqEyXkrqoGDhWeex0-AQwCfWfvpsg,742
9
+ nado_protocol/client/apis/perp/query.py,sha256=r4E0tJo7-z9J3HOMufo6BZ9yTYtpCb-ANZeM05lf7rU,1420
10
+ nado_protocol/client/apis/rewards/__init__.py,sha256=F7fTCEdGR2J2fMd5AhC1JruJSMKUZcoOvYotdSYWU7M,205
11
+ nado_protocol/client/apis/rewards/execute.py,sha256=WHWpWB5523WQzXiEV-xD3xVDtSdrvIfQ0IiSN-0ItoA,5298
12
+ nado_protocol/client/apis/rewards/query.py,sha256=DT1evscywPyXTEvNA5FC-L1JuLqf9YRl7pcj_Ad9JxI,507
13
+ nado_protocol/client/apis/spot/__init__.py,sha256=QdoWAVrvfNAP-YDwM5Z-4N1lS6dgNzNgNqUp78IHMqU,1021
14
+ nado_protocol/client/apis/spot/base.py,sha256=SagkZZ9Ehi7pSxM5lD-glOMEQj9aT3PGGW4UtGnVpuw,1177
15
+ nado_protocol/client/apis/spot/execute.py,sha256=u_O9vjoshv8Zfg8nIsnd8_X7PUO5CShFC-vyNOBvOFI,4772
16
+ nado_protocol/client/apis/spot/query.py,sha256=6YcnfTlVnEHpUkB3eM8zvbYGBxSAw2Xy4yezMDTsZ9U,2954
17
+ nado_protocol/client/apis/subaccount/__init__.py,sha256=vT857P7_DkIWvV0D5izFg52i-qp800-hlwLzSpIk4Cc,1301
18
+ nado_protocol/client/apis/subaccount/execute.py,sha256=sbiR9VhRl713Cfus_fAzXQiYR6VZWzPROaTowQDGaA4,2005
19
+ nado_protocol/client/apis/subaccount/query.py,sha256=_GhPUacgVdZvb1dy0_0UIT6pJlqaZSGET33ryN-a88s,5800
20
+ nado_protocol/client/context.py,sha256=-H4FSuV-CG7nAConYq4RYjzH9baGU57DQVGDOyfV2X4,3448
21
+ nado_protocol/contracts/__init__.py,sha256=XJhf8OmABtSwTvgEeA0ZTMLakvwsqkItMY-MOyfDqV4,13503
22
+ nado_protocol/contracts/abis/Endpoint.json,sha256=8bhbVCW8twMCeqNYXTOREBTBGHEl9fKCenJAEXYiOAY,10931
23
+ nado_protocol/contracts/abis/FQuerier.json,sha256=tEyNwMyU9TPFWA9lJ8kIUHuVICqwIqDkFSnVvKQ3rNQ,42323
24
+ nado_protocol/contracts/abis/IAirdrop.json,sha256=DHFQBab7D3ehHVpqLNXM62SgjyID8C6EE4p2wH9t9vo,1496
25
+ nado_protocol/contracts/abis/IClearinghouse.json,sha256=GKyU4wDrCjCO8lkzAh3Rehs2sqzdJ5Zdwp2magRodVg,15549
26
+ nado_protocol/contracts/abis/IEndpoint.json,sha256=G5rHWDHpey2kGt5xp-aExzo7vyiXDyyk9e6CKVupT4w,4140
27
+ nado_protocol/contracts/abis/IFoundationRewardsAirdrop.json,sha256=CZXya7fyBA4YNq514RcbCjpf9pcytfy5lvtFNl3AVB0,1503
28
+ nado_protocol/contracts/abis/IPerpEngine.json,sha256=7BnmSrZkTA-2x6TYXOeGRSYb59b6p3xXqDYENvw8CMc,12066
29
+ nado_protocol/contracts/abis/IProductEngine.json,sha256=kue-r5zHk_4Xoalqfo5MZ8QbH-RcEnP3SFm2oiq_DWM,4749
30
+ nado_protocol/contracts/abis/ISpotEngine.json,sha256=PHUyEwRClfB8raaV3fc8i4q6c-aathos12wbiDNJRnI,12894
31
+ nado_protocol/contracts/abis/IStaking.json,sha256=XhC143Lnmcv1ZBhiABXwc67_HyvbWsCuiNmJ0hzdq0s,5557
32
+ nado_protocol/contracts/abis/MockERC20.json,sha256=YaaVbvWsPuHyt1v6LIP34-oF8Df9yVe3UqLW3wTroD8,5697
33
+ nado_protocol/contracts/deployments/deployment.testing.json,sha256=jAPIL2cTWF9eEashUrBMrqOPBW5aUZyv4PEKDj-m6XY,704
34
+ nado_protocol/contracts/deployments/deployment.testnet.json,sha256=fvWxrTq4e_ipDdsDXKS4gecCvTsCTCHvT0H9TD7bB5k,768
35
+ nado_protocol/contracts/eip712/__init__.py,sha256=q8eJd5oY7AQ5iLsS1CfbZr6vBWLSPVZv2dfMnRzfqQo,416
36
+ nado_protocol/contracts/eip712/domain.py,sha256=dZ5aKq2Y45-vzZUMQLuUTbFhH9-R-YEg4G2sVqXQFbQ,1179
37
+ nado_protocol/contracts/eip712/sign.py,sha256=WeipHcWaEP_vnmXpRH7_Ksm9uKDH2E4IkYYRI0_p2cY,2410
38
+ nado_protocol/contracts/eip712/types.py,sha256=uTfYD9hjoTozsUL2WTc_-2OREijbfv9FDBYuD1UjVHo,5117
39
+ nado_protocol/contracts/loader.py,sha256=_0W3ImcARs1bTu1lLMpHMrRNuEVYjrRWctvnEbKWoVg,1500
40
+ nado_protocol/contracts/types.py,sha256=GXzqSfbbTZQPw4jalEZR1oE_klI0zVZKRwXVzuRSq4M,4192
41
+ nado_protocol/engine_client/__init__.py,sha256=RE_MxQaQVIp0K5EDhR1_uTjLJgEJBx2fLnhepc3cuAg,1137
42
+ nado_protocol/engine_client/execute.py,sha256=Tmd1yvLTlvFFaSYqwOWTkzSxdE6QllGB8LHgsOim3Tc,15314
43
+ nado_protocol/engine_client/query.py,sha256=zCBLeBOY1wkRM42EMsluBRtVw2TuaqJHp4UuIdHWh4c,16265
44
+ nado_protocol/engine_client/types/__init__.py,sha256=pPjKLDJHclcbqROhU8B8OoxUjZkJI9a2qq5fUCVK7j4,2721
45
+ nado_protocol/engine_client/types/execute.py,sha256=prlArTgTCGmnw1JozRP3Sa50brfXwTkTKt6v_n3bwv8,18731
46
+ nado_protocol/engine_client/types/models.py,sha256=hf9HD8rct2XZIqPznfydBq7jqKiJ3vcdrL44GCjtnGQ,3873
47
+ nado_protocol/engine_client/types/query.py,sha256=HgRGJZudba-DDh4CH4Lk0idfAeCOSG9Y2ElKgaBc5iE,11822
48
+ nado_protocol/engine_client/types/stream.py,sha256=F_AKqU4pClzUcM6D9Dc79f6RmraahJzj2-hQSXtQ0vQ,159
49
+ nado_protocol/indexer_client/__init__.py,sha256=ea2exePtguCxJsBlisOQPtnFk8hRmFugeQAuSAaPhoc,922
50
+ nado_protocol/indexer_client/query.py,sha256=onhEAoKtBIB_fPJcNLKJg8PnEiQ5qLtTGDwHRryLXhE,16124
51
+ nado_protocol/indexer_client/types/__init__.py,sha256=r3-jxMjrFNbA1nMRSGZjsE3qypmyWab6k20_gasdwL4,3548
52
+ nado_protocol/indexer_client/types/models.py,sha256=50VVbO9G0PaDNLgtdUd60KS6g6dkUMZ1mw47DadMIsQ,7500
53
+ nado_protocol/indexer_client/types/query.py,sha256=_alTQ0SqQmZXGpNm3hsfCq4241m4szIskxkORBmeCv4,18859
54
+ nado_protocol/trigger_client/__init__.py,sha256=kD_WJWGOCDwX7GvGF5VGZibWR2uPYRcWpIWht31PYR4,545
55
+ nado_protocol/trigger_client/execute.py,sha256=IxvlHGWMX49X0HJC6VfG3QVPLs4O_vRykujau-GOa-4,4602
56
+ nado_protocol/trigger_client/query.py,sha256=bRJDoBn2vMX8tihi_ZlX4o6zpioPtN9dCuYT8l317h4,2068
57
+ nado_protocol/trigger_client/types/__init__.py,sha256=Rj953ymGSNnVdOpDrwRuXmC_jhuPZU17BaSgBrc9cbk,183
58
+ nado_protocol/trigger_client/types/execute.py,sha256=Ij_gCl3ZzhouWF7JxEY_U6hUbe9teOYp1ZfN0PDcOpM,2896
59
+ nado_protocol/trigger_client/types/models.py,sha256=umoevs0T59Ar6LJVzv6A6xzpH4NMDy07Bh25BOgod10,846
60
+ nado_protocol/trigger_client/types/query.py,sha256=D9IZpN-LYJGqswv7pJi0WPjeXD1K9wgeEnpAmRYTP7E,2073
61
+ nado_protocol/utils/__init__.py,sha256=_nsvXmdiO3YmjSk7UG7df9qDoC8bd1H8_Au0lF-TwTA,1418
62
+ nado_protocol/utils/backend.py,sha256=UqmHN_jmTAOnRiUQcUTZUyTGeM7FwjauwSH5h8UxiLQ,3781
63
+ nado_protocol/utils/bytes32.py,sha256=FHeHs9Sf-S7GdFTF6ikuz_sEkM-fpRW-g3kbZawlMd4,5299
64
+ nado_protocol/utils/enum.py,sha256=_Ij7Ai1H_Bj0OPBjmLhGvQjATXYyqD0DLqpUC-br99s,99
65
+ nado_protocol/utils/exceptions.py,sha256=j5U-7JEQRnMTe_nFOrF2x-9kaYKgTrPBG9XkwXVm0cI,1644
66
+ nado_protocol/utils/execute.py,sha256=zK3j2oTzFQlm-075thB_53iePjXpBnKF02RMEAqzl8I,11794
67
+ nado_protocol/utils/expiration.py,sha256=8g0KI8v-Vnoj8rr-8ik3RxmGp9fXdiVbCVGof_2CDm4,532
68
+ nado_protocol/utils/interest.py,sha256=pl5N2s7sux9Z0orPthdmFkldljIPwFTpLx1XC9k1oQk,2498
69
+ nado_protocol/utils/math.py,sha256=hGbClWHRY5D0fIo5tHyT3_riWvf8WfsXJtqMs8pIQTs,1290
70
+ nado_protocol/utils/model.py,sha256=feU7cp0mSgNp-Z0dmC6VSFA6Mkjv3rNfoXdqsoZ7uGU,2087
71
+ nado_protocol/utils/nonce.py,sha256=DHNn5mzXdJRope8QLcDCMFe7Bk4PXLoR9VaFopfse7I,886
72
+ nado_protocol/utils/order.py,sha256=7Tul8pxg1Soxj9tI3HEgZV4bz-bW_b3CGARJKqu3_NM,11251
73
+ nado_protocol/utils/subaccount.py,sha256=WJ7lgU2RekuzJAZH-hhCTbIBlRsl2oHozBm7OEMRV74,495
74
+ nado_protocol/utils/time.py,sha256=tEwmrkc5VdzKLlgkJIAq2ce-nhrduJZNtVPydrrnTHs,360
75
+ nado_protocol-0.1.2.dist-info/METADATA,sha256=hd4DCyh5XQcyT8zvvrSURNsDbAhnGdesth57PVJL1FE,4152
76
+ nado_protocol-0.1.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
77
+ nado_protocol-0.1.2.dist-info/entry_points.txt,sha256=7xMbwQYtf2zfvzWdBaw5d5hp5TTv5Xia5WPsqxkvKuU,300
78
+ nado_protocol-0.1.2.dist-info/RECORD,,
@@ -3,7 +3,6 @@ client-sanity=sanity.nado_client:run
3
3
  contracts-sanity=sanity.contracts:run
4
4
  engine-sanity=sanity.engine_client:run
5
5
  indexer-sanity=sanity.indexer_client:run
6
- isolated-sanity=sanity.isolated:run
7
6
  rewards-sanity=sanity.rewards:run
8
7
  signing-sanity=sanity.signing:run
9
8
  test=pytest:main
@@ -1,185 +0,0 @@
1
- [
2
- {
3
- "anonymous": false,
4
- "inputs": [
5
- {
6
- "indexed": true,
7
- "internalType": "address",
8
- "name": "owner",
9
- "type": "address"
10
- },
11
- {
12
- "indexed": true,
13
- "internalType": "address",
14
- "name": "spender",
15
- "type": "address"
16
- },
17
- {
18
- "indexed": false,
19
- "internalType": "uint256",
20
- "name": "value",
21
- "type": "uint256"
22
- }
23
- ],
24
- "name": "Approval",
25
- "type": "event"
26
- },
27
- {
28
- "anonymous": false,
29
- "inputs": [
30
- {
31
- "indexed": true,
32
- "internalType": "address",
33
- "name": "from",
34
- "type": "address"
35
- },
36
- {
37
- "indexed": true,
38
- "internalType": "address",
39
- "name": "to",
40
- "type": "address"
41
- },
42
- {
43
- "indexed": false,
44
- "internalType": "uint256",
45
- "name": "value",
46
- "type": "uint256"
47
- }
48
- ],
49
- "name": "Transfer",
50
- "type": "event"
51
- },
52
- {
53
- "inputs": [
54
- {
55
- "internalType": "address",
56
- "name": "owner",
57
- "type": "address"
58
- },
59
- {
60
- "internalType": "address",
61
- "name": "spender",
62
- "type": "address"
63
- }
64
- ],
65
- "name": "allowance",
66
- "outputs": [
67
- {
68
- "internalType": "uint256",
69
- "name": "",
70
- "type": "uint256"
71
- }
72
- ],
73
- "stateMutability": "view",
74
- "type": "function"
75
- },
76
- {
77
- "inputs": [
78
- {
79
- "internalType": "address",
80
- "name": "spender",
81
- "type": "address"
82
- },
83
- {
84
- "internalType": "uint256",
85
- "name": "amount",
86
- "type": "uint256"
87
- }
88
- ],
89
- "name": "approve",
90
- "outputs": [
91
- {
92
- "internalType": "bool",
93
- "name": "",
94
- "type": "bool"
95
- }
96
- ],
97
- "stateMutability": "nonpayable",
98
- "type": "function"
99
- },
100
- {
101
- "inputs": [
102
- {
103
- "internalType": "address",
104
- "name": "account",
105
- "type": "address"
106
- }
107
- ],
108
- "name": "balanceOf",
109
- "outputs": [
110
- {
111
- "internalType": "uint256",
112
- "name": "",
113
- "type": "uint256"
114
- }
115
- ],
116
- "stateMutability": "view",
117
- "type": "function"
118
- },
119
- {
120
- "inputs": [],
121
- "name": "totalSupply",
122
- "outputs": [
123
- {
124
- "internalType": "uint256",
125
- "name": "",
126
- "type": "uint256"
127
- }
128
- ],
129
- "stateMutability": "view",
130
- "type": "function"
131
- },
132
- {
133
- "inputs": [
134
- {
135
- "internalType": "address",
136
- "name": "to",
137
- "type": "address"
138
- },
139
- {
140
- "internalType": "uint256",
141
- "name": "amount",
142
- "type": "uint256"
143
- }
144
- ],
145
- "name": "transfer",
146
- "outputs": [
147
- {
148
- "internalType": "bool",
149
- "name": "",
150
- "type": "bool"
151
- }
152
- ],
153
- "stateMutability": "nonpayable",
154
- "type": "function"
155
- },
156
- {
157
- "inputs": [
158
- {
159
- "internalType": "address",
160
- "name": "from",
161
- "type": "address"
162
- },
163
- {
164
- "internalType": "address",
165
- "name": "to",
166
- "type": "address"
167
- },
168
- {
169
- "internalType": "uint256",
170
- "name": "amount",
171
- "type": "uint256"
172
- }
173
- ],
174
- "name": "transferFrom",
175
- "outputs": [
176
- {
177
- "internalType": "bool",
178
- "name": "",
179
- "type": "bool"
180
- }
181
- ],
182
- "stateMutability": "nonpayable",
183
- "type": "function"
184
- }
185
- ]