pytonapi 2.2.1__tar.gz → 2.3.0__tar.gz
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.
- {pytonapi-2.2.1/pytonapi.egg-info → pytonapi-2.3.0}/PKG-INFO +5 -5
- {pytonapi-2.2.1 → pytonapi-2.3.0}/README.md +2 -2
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pyproject.toml +2 -2
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/__meta__.py +1 -1
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/mixin.py +4 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/models/__init__.py +102 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/models/_enums.py +11 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/models/accounts.py +88 -1
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/models/blockchain.py +19 -2
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/models/emulation.py +2 -1
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/models/events.py +2 -1
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/models/gasless.py +1 -0
- pytonapi-2.3.0/pytonapi/rest/models/migration.py +70 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/models/nft.py +9 -0
- pytonapi-2.3.0/pytonapi/rest/models/rewards.py +94 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/resources/__init__.py +4 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/resources/accounts.py +25 -7
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/resources/blockchain.py +27 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/resources/jettons.py +14 -2
- pytonapi-2.3.0/pytonapi/rest/resources/migration.py +50 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/resources/rates.py +5 -5
- pytonapi-2.3.0/pytonapi/rest/resources/rewards.py +131 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0/pytonapi.egg-info}/PKG-INFO +5 -5
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi.egg-info/SOURCES.txt +4 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi.egg-info/requires.txt +1 -1
- {pytonapi-2.2.1 → pytonapi-2.3.0}/LICENSE +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/__init__.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/cli.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/client.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/exceptions.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/py.typed +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/__init__.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/client.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/limiter.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/models/connect.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/models/dns.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/models/extra_currency.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/models/jettons.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/models/lite_server.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/models/multisig.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/models/purchases.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/models/rates.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/models/staking.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/models/storage.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/models/traces.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/models/utilities.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/models/wallet.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/resources/_base.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/resources/connect.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/resources/dns.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/resources/emulation.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/resources/events.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/resources/extra_currency.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/resources/gasless.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/resources/lite_server.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/resources/multisig.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/resources/nft.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/resources/purchases.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/resources/staking.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/resources/storage.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/resources/traces.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/resources/utilities.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/resources/wallet.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/rest/rotator.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/streaming/__init__.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/streaming/base.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/streaming/models.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/streaming/sse.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/streaming/ws.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/types.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/utils.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/webhook/__init__.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/webhook/client.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/webhook/dispatcher.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi/webhook/models.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi.egg-info/dependency_links.txt +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi.egg-info/entry_points.txt +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/pytonapi.egg-info/top_level.txt +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/setup.cfg +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/tests/test_client.py +0 -0
- {pytonapi-2.2.1 → pytonapi-2.3.0}/tests/test_utils.py +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytonapi
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.0
|
|
4
4
|
Summary: Python SDK for TONAPI — REST API, streaming, and webhooks for TON blockchain.
|
|
5
5
|
Author: nessshon
|
|
6
6
|
Maintainer: nessshon
|
|
7
7
|
License-Expression: MIT
|
|
8
8
|
Project-URL: Homepage, https://github.com/nessshon/tonapi/
|
|
9
9
|
Project-URL: Examples, https://github.com/nessshon/tonapi/tree/main/examples/
|
|
10
|
-
Project-URL: Documentation, https://tonapi.ness.
|
|
10
|
+
Project-URL: Documentation, https://tonapi.ness.uz/
|
|
11
11
|
Keywords: AsyncIO,REST API,SDK,TON,TON blockchain,TONAPI,The Open Network,blockchain,crypto,streaming,webhooks
|
|
12
12
|
Classifier: Development Status :: 4 - Beta
|
|
13
13
|
Classifier: Environment :: Console
|
|
@@ -24,7 +24,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
24
24
|
Requires-Python: <3.15,>=3.10
|
|
25
25
|
Description-Content-Type: text/markdown
|
|
26
26
|
License-File: LICENSE
|
|
27
|
-
Requires-Dist: aiohttp>=3.
|
|
27
|
+
Requires-Dist: aiohttp>=3.14.3
|
|
28
28
|
Requires-Dist: pydantic<3.0,>=2.0
|
|
29
29
|
Provides-Extra: dev
|
|
30
30
|
Requires-Dist: environs>=11.0.0; extra == "dev"
|
|
@@ -83,8 +83,8 @@ pip install pytonapi
|
|
|
83
83
|
|
|
84
84
|
## Documentation
|
|
85
85
|
|
|
86
|
-
[Documentation](https://tonapi.ness.
|
|
87
|
-
[llms.txt](https://tonapi.ness.
|
|
86
|
+
[Documentation](https://tonapi.ness.uz/) — API reference, streaming, and webhooks guides.
|
|
87
|
+
[llms.txt](https://tonapi.ness.uz/llms.txt) — auto-generated machine-readable docs for AI tools.
|
|
88
88
|
|
|
89
89
|
## Examples
|
|
90
90
|
|
|
@@ -43,8 +43,8 @@ pip install pytonapi
|
|
|
43
43
|
|
|
44
44
|
## Documentation
|
|
45
45
|
|
|
46
|
-
[Documentation](https://tonapi.ness.
|
|
47
|
-
[llms.txt](https://tonapi.ness.
|
|
46
|
+
[Documentation](https://tonapi.ness.uz/) — API reference, streaming, and webhooks guides.
|
|
47
|
+
[llms.txt](https://tonapi.ness.uz/llms.txt) — auto-generated machine-readable docs for AI tools.
|
|
48
48
|
|
|
49
49
|
## Examples
|
|
50
50
|
|
|
@@ -13,7 +13,7 @@ maintainers = [
|
|
|
13
13
|
{ name = "nessshon" },
|
|
14
14
|
]
|
|
15
15
|
dependencies = [
|
|
16
|
-
"aiohttp>=3.
|
|
16
|
+
"aiohttp>=3.14.3",
|
|
17
17
|
"pydantic>=2.0,<3.0",
|
|
18
18
|
]
|
|
19
19
|
keywords = [
|
|
@@ -53,7 +53,7 @@ pytonapi = "pytonapi.cli:main"
|
|
|
53
53
|
[project.urls]
|
|
54
54
|
Homepage = "https://github.com/nessshon/tonapi/"
|
|
55
55
|
Examples = "https://github.com/nessshon/tonapi/tree/main/examples/"
|
|
56
|
-
Documentation = "https://tonapi.ness.
|
|
56
|
+
Documentation = "https://tonapi.ness.uz/"
|
|
57
57
|
|
|
58
58
|
[project.optional-dependencies]
|
|
59
59
|
dev = [
|
|
@@ -14,10 +14,12 @@ from pytonapi.rest.resources.extra_currency import ExtraCurrencyResource
|
|
|
14
14
|
from pytonapi.rest.resources.gasless import GaslessResource
|
|
15
15
|
from pytonapi.rest.resources.jettons import JettonsResource
|
|
16
16
|
from pytonapi.rest.resources.lite_server import LiteServerResource
|
|
17
|
+
from pytonapi.rest.resources.migration import MigrationResource
|
|
17
18
|
from pytonapi.rest.resources.multisig import MultisigResource
|
|
18
19
|
from pytonapi.rest.resources.nft import NFTResource
|
|
19
20
|
from pytonapi.rest.resources.purchases import PurchasesResource
|
|
20
21
|
from pytonapi.rest.resources.rates import RatesResource
|
|
22
|
+
from pytonapi.rest.resources.rewards import RewardsResource
|
|
21
23
|
from pytonapi.rest.resources.staking import StakingResource
|
|
22
24
|
from pytonapi.rest.resources.storage import StorageResource
|
|
23
25
|
from pytonapi.rest.resources.traces import TracesResource
|
|
@@ -43,10 +45,12 @@ class ResourcesMixin:
|
|
|
43
45
|
self.gasless = GaslessResource(client)
|
|
44
46
|
self.jettons = JettonsResource(client)
|
|
45
47
|
self.lite_server = LiteServerResource(client)
|
|
48
|
+
self.migration = MigrationResource(client)
|
|
46
49
|
self.multisig = MultisigResource(client)
|
|
47
50
|
self.nft = NFTResource(client)
|
|
48
51
|
self.purchases = PurchasesResource(client)
|
|
49
52
|
self.rates = RatesResource(client)
|
|
53
|
+
self.rewards = RewardsResource(client)
|
|
50
54
|
self.staking = StakingResource(client)
|
|
51
55
|
self.storage = StorageResource(client)
|
|
52
56
|
self.traces = TracesResource(client)
|
|
@@ -6,6 +6,7 @@ from pytonapi.rest.models._enums import (
|
|
|
6
6
|
BouncePhaseType,
|
|
7
7
|
ComputeSkipReason,
|
|
8
8
|
CurrencyType,
|
|
9
|
+
DefiAssetType,
|
|
9
10
|
ExecGetMethodArgType,
|
|
10
11
|
JettonVerificationType,
|
|
11
12
|
PoolImplementationType,
|
|
@@ -22,9 +23,16 @@ from pytonapi.rest.models.accounts import (
|
|
|
22
23
|
ActionSimplePreview,
|
|
23
24
|
AddExtensionAction,
|
|
24
25
|
AuctionBidAction,
|
|
26
|
+
BuyXTRAction,
|
|
25
27
|
ContractDeployAction,
|
|
28
|
+
DefiAsset,
|
|
29
|
+
DefiAssets,
|
|
30
|
+
DefiLiquidPoolAssets,
|
|
31
|
+
DefiLockedAsset,
|
|
32
|
+
DefiProvider,
|
|
26
33
|
DepositStakeAction,
|
|
27
34
|
DepositTokenStakeAction,
|
|
35
|
+
DepositXTRAction,
|
|
28
36
|
DnsExpiring,
|
|
29
37
|
DomainNames,
|
|
30
38
|
DomainRenewAction,
|
|
@@ -38,6 +46,8 @@ from pytonapi.rest.models.accounts import (
|
|
|
38
46
|
FlawedJettonTransferAction,
|
|
39
47
|
FoundAccounts,
|
|
40
48
|
GasRelayAction,
|
|
49
|
+
GasRelayFee,
|
|
50
|
+
JettonAssetInfo,
|
|
41
51
|
JettonBalance,
|
|
42
52
|
JettonBurnAction,
|
|
43
53
|
JettonMintAction,
|
|
@@ -52,6 +62,8 @@ from pytonapi.rest.models.accounts import (
|
|
|
52
62
|
Multisigs,
|
|
53
63
|
NftItemTransferAction,
|
|
54
64
|
NftPurchaseAction,
|
|
65
|
+
OraclePriceFeed,
|
|
66
|
+
OracleRequestAction,
|
|
55
67
|
Price,
|
|
56
68
|
Protocol,
|
|
57
69
|
PurchaseAction,
|
|
@@ -70,6 +82,7 @@ from pytonapi.rest.models.accounts import (
|
|
|
70
82
|
WithdrawStakeAction,
|
|
71
83
|
WithdrawStakeRequestAction,
|
|
72
84
|
WithdrawTokenStakeRequestAction,
|
|
85
|
+
WithdrawXTRAction,
|
|
73
86
|
)
|
|
74
87
|
from pytonapi.rest.models.blockchain import (
|
|
75
88
|
AccountStorageInfo,
|
|
@@ -81,6 +94,7 @@ from pytonapi.rest.models.blockchain import (
|
|
|
81
94
|
BlockchainConfig,
|
|
82
95
|
BlockchainLibrary,
|
|
83
96
|
BlockchainRawAccount,
|
|
97
|
+
BlockchainRawAccounts,
|
|
84
98
|
BlockCurrencyCollection,
|
|
85
99
|
BlockLimits,
|
|
86
100
|
BlockParamLimits,
|
|
@@ -97,6 +111,7 @@ from pytonapi.rest.models.blockchain import (
|
|
|
97
111
|
MethodExecutionResult,
|
|
98
112
|
MisbehaviourPunishmentConfig,
|
|
99
113
|
MsgForwardPrices,
|
|
114
|
+
NewConsensusConfig,
|
|
100
115
|
Oracle,
|
|
101
116
|
OracleBridgeParams,
|
|
102
117
|
RawBlockchainConfig,
|
|
@@ -139,11 +154,22 @@ from pytonapi.rest.models.jettons import (
|
|
|
139
154
|
ScaledUI,
|
|
140
155
|
)
|
|
141
156
|
from pytonapi.rest.models.lite_server import BlockRaw, InitStateRaw
|
|
157
|
+
from pytonapi.rest.models.migration import (
|
|
158
|
+
InsufficientFunds,
|
|
159
|
+
MigrationOutMessage,
|
|
160
|
+
MigrationPrepareConflict,
|
|
161
|
+
MigrationPrepareRequest,
|
|
162
|
+
MigrationPrepareResponse,
|
|
163
|
+
MigrationTransaction,
|
|
164
|
+
MigrationWallets,
|
|
165
|
+
MigrationWalletValue,
|
|
166
|
+
)
|
|
142
167
|
from pytonapi.rest.models.multisig import Multisig, MultisigOrder
|
|
143
168
|
from pytonapi.rest.models.nft import (
|
|
144
169
|
ImagePreview,
|
|
145
170
|
NftApprovedBy,
|
|
146
171
|
NftCollection,
|
|
172
|
+
NftCollectionMetadataStatus,
|
|
147
173
|
NftCollections,
|
|
148
174
|
NftItem,
|
|
149
175
|
NftItems,
|
|
@@ -153,6 +179,17 @@ from pytonapi.rest.models.nft import (
|
|
|
153
179
|
)
|
|
154
180
|
from pytonapi.rest.models.purchases import AccountPurchases, Purchase
|
|
155
181
|
from pytonapi.rest.models.rates import ChartPoints, MarketTonRates, TokenRates
|
|
182
|
+
from pytonapi.rest.models.rewards import (
|
|
183
|
+
BlockInfo,
|
|
184
|
+
NominatorRewardEntry,
|
|
185
|
+
RewardsStats,
|
|
186
|
+
RoundInfo,
|
|
187
|
+
RoundRewardsResponse,
|
|
188
|
+
ValidationRound,
|
|
189
|
+
ValidationRoundsResponse,
|
|
190
|
+
ValidatorRewardEntry,
|
|
191
|
+
ValidatorsResponse,
|
|
192
|
+
)
|
|
156
193
|
from pytonapi.rest.models.staking import AccountStaking, AccountStakingInfo, ApyHistory, PoolImplementation, PoolInfo
|
|
157
194
|
from pytonapi.rest.models.storage import StorageProvider
|
|
158
195
|
from pytonapi.rest.models.traces import Trace
|
|
@@ -178,9 +215,16 @@ _models_to_rebuild = [
|
|
|
178
215
|
ActionSimplePreview,
|
|
179
216
|
AddExtensionAction,
|
|
180
217
|
AuctionBidAction,
|
|
218
|
+
BuyXTRAction,
|
|
181
219
|
ContractDeployAction,
|
|
220
|
+
DefiAsset,
|
|
221
|
+
DefiAssets,
|
|
222
|
+
DefiLiquidPoolAssets,
|
|
223
|
+
DefiLockedAsset,
|
|
224
|
+
DefiProvider,
|
|
182
225
|
DepositStakeAction,
|
|
183
226
|
DepositTokenStakeAction,
|
|
227
|
+
DepositXTRAction,
|
|
184
228
|
DnsExpiring,
|
|
185
229
|
DomainNames,
|
|
186
230
|
DomainRenewAction,
|
|
@@ -194,6 +238,8 @@ _models_to_rebuild = [
|
|
|
194
238
|
FlawedJettonTransferAction,
|
|
195
239
|
FoundAccounts,
|
|
196
240
|
GasRelayAction,
|
|
241
|
+
GasRelayFee,
|
|
242
|
+
JettonAssetInfo,
|
|
197
243
|
JettonBalance,
|
|
198
244
|
JettonBurnAction,
|
|
199
245
|
JettonMintAction,
|
|
@@ -208,6 +254,8 @@ _models_to_rebuild = [
|
|
|
208
254
|
Multisigs,
|
|
209
255
|
NftItemTransferAction,
|
|
210
256
|
NftPurchaseAction,
|
|
257
|
+
OraclePriceFeed,
|
|
258
|
+
OracleRequestAction,
|
|
211
259
|
Price,
|
|
212
260
|
Protocol,
|
|
213
261
|
PurchaseAction,
|
|
@@ -226,6 +274,7 @@ _models_to_rebuild = [
|
|
|
226
274
|
WithdrawStakeAction,
|
|
227
275
|
WithdrawStakeRequestAction,
|
|
228
276
|
WithdrawTokenStakeRequestAction,
|
|
277
|
+
WithdrawXTRAction,
|
|
229
278
|
AccountStorageInfo,
|
|
230
279
|
ActionPhase,
|
|
231
280
|
BlockCurrencyCollection,
|
|
@@ -239,6 +288,7 @@ _models_to_rebuild = [
|
|
|
239
288
|
BlockchainConfig,
|
|
240
289
|
BlockchainLibrary,
|
|
241
290
|
BlockchainRawAccount,
|
|
291
|
+
BlockchainRawAccounts,
|
|
242
292
|
ComputePhase,
|
|
243
293
|
ConfigProposalSetup,
|
|
244
294
|
CreditPhase,
|
|
@@ -251,6 +301,7 @@ _models_to_rebuild = [
|
|
|
251
301
|
MethodExecutionResult,
|
|
252
302
|
MisbehaviourPunishmentConfig,
|
|
253
303
|
MsgForwardPrices,
|
|
304
|
+
NewConsensusConfig,
|
|
254
305
|
Oracle,
|
|
255
306
|
OracleBridgeParams,
|
|
256
307
|
RawBlockchainConfig,
|
|
@@ -297,10 +348,19 @@ _models_to_rebuild = [
|
|
|
297
348
|
ScaledUI,
|
|
298
349
|
BlockRaw,
|
|
299
350
|
InitStateRaw,
|
|
351
|
+
InsufficientFunds,
|
|
352
|
+
MigrationOutMessage,
|
|
353
|
+
MigrationPrepareConflict,
|
|
354
|
+
MigrationPrepareRequest,
|
|
355
|
+
MigrationPrepareResponse,
|
|
356
|
+
MigrationTransaction,
|
|
357
|
+
MigrationWalletValue,
|
|
358
|
+
MigrationWallets,
|
|
300
359
|
Multisig,
|
|
301
360
|
MultisigOrder,
|
|
302
361
|
ImagePreview,
|
|
303
362
|
NftCollection,
|
|
363
|
+
NftCollectionMetadataStatus,
|
|
304
364
|
NftCollections,
|
|
305
365
|
NftItem,
|
|
306
366
|
NftItems,
|
|
@@ -311,6 +371,15 @@ _models_to_rebuild = [
|
|
|
311
371
|
Purchase,
|
|
312
372
|
MarketTonRates,
|
|
313
373
|
TokenRates,
|
|
374
|
+
BlockInfo,
|
|
375
|
+
NominatorRewardEntry,
|
|
376
|
+
RewardsStats,
|
|
377
|
+
RoundInfo,
|
|
378
|
+
RoundRewardsResponse,
|
|
379
|
+
ValidationRound,
|
|
380
|
+
ValidationRoundsResponse,
|
|
381
|
+
ValidatorRewardEntry,
|
|
382
|
+
ValidatorsResponse,
|
|
314
383
|
AccountStaking,
|
|
315
384
|
AccountStakingInfo,
|
|
316
385
|
ApyHistory,
|
|
@@ -352,6 +421,7 @@ __all__ = [
|
|
|
352
421
|
"AuctionBidAction",
|
|
353
422
|
"Auctions",
|
|
354
423
|
"BlockCurrencyCollection",
|
|
424
|
+
"BlockInfo",
|
|
355
425
|
"BlockLimits",
|
|
356
426
|
"BlockParamLimits",
|
|
357
427
|
"BlockRaw",
|
|
@@ -363,7 +433,9 @@ __all__ = [
|
|
|
363
433
|
"BlockchainConfig",
|
|
364
434
|
"BlockchainLibrary",
|
|
365
435
|
"BlockchainRawAccount",
|
|
436
|
+
"BlockchainRawAccounts",
|
|
366
437
|
"BouncePhaseType",
|
|
438
|
+
"BuyXTRAction",
|
|
367
439
|
"ChartPoints",
|
|
368
440
|
"ComputePhase",
|
|
369
441
|
"ComputeSkipReason",
|
|
@@ -373,8 +445,15 @@ __all__ = [
|
|
|
373
445
|
"CurrencyType",
|
|
374
446
|
"DecodedMessage",
|
|
375
447
|
"DecodedRawMessage",
|
|
448
|
+
"DefiAsset",
|
|
449
|
+
"DefiAssetType",
|
|
450
|
+
"DefiAssets",
|
|
451
|
+
"DefiLiquidPoolAssets",
|
|
452
|
+
"DefiLockedAsset",
|
|
453
|
+
"DefiProvider",
|
|
376
454
|
"DepositStakeAction",
|
|
377
455
|
"DepositTokenStakeAction",
|
|
456
|
+
"DepositXTRAction",
|
|
378
457
|
"DnsExpiring",
|
|
379
458
|
"DnsRecord",
|
|
380
459
|
"DomainBid",
|
|
@@ -397,10 +476,13 @@ __all__ = [
|
|
|
397
476
|
"FoundAccounts",
|
|
398
477
|
"GasLimitPrices",
|
|
399
478
|
"GasRelayAction",
|
|
479
|
+
"GasRelayFee",
|
|
400
480
|
"GaslessConfig",
|
|
401
481
|
"GaslessTx",
|
|
402
482
|
"ImagePreview",
|
|
403
483
|
"InitStateRaw",
|
|
484
|
+
"InsufficientFunds",
|
|
485
|
+
"JettonAssetInfo",
|
|
404
486
|
"JettonBalance",
|
|
405
487
|
"JettonBridgeParams",
|
|
406
488
|
"JettonBridgePrices",
|
|
@@ -426,13 +508,22 @@ __all__ = [
|
|
|
426
508
|
"Metadata",
|
|
427
509
|
"Method",
|
|
428
510
|
"MethodExecutionResult",
|
|
511
|
+
"MigrationOutMessage",
|
|
512
|
+
"MigrationPrepareConflict",
|
|
513
|
+
"MigrationPrepareRequest",
|
|
514
|
+
"MigrationPrepareResponse",
|
|
515
|
+
"MigrationTransaction",
|
|
516
|
+
"MigrationWalletValue",
|
|
517
|
+
"MigrationWallets",
|
|
429
518
|
"MisbehaviourPunishmentConfig",
|
|
430
519
|
"MsgForwardPrices",
|
|
431
520
|
"Multisig",
|
|
432
521
|
"MultisigOrder",
|
|
433
522
|
"Multisigs",
|
|
523
|
+
"NewConsensusConfig",
|
|
434
524
|
"NftApprovedBy",
|
|
435
525
|
"NftCollection",
|
|
526
|
+
"NftCollectionMetadataStatus",
|
|
436
527
|
"NftCollections",
|
|
437
528
|
"NftItem",
|
|
438
529
|
"NftItemTransferAction",
|
|
@@ -440,8 +531,11 @@ __all__ = [
|
|
|
440
531
|
"NftOperation",
|
|
441
532
|
"NftOperations",
|
|
442
533
|
"NftPurchaseAction",
|
|
534
|
+
"NominatorRewardEntry",
|
|
443
535
|
"Oracle",
|
|
444
536
|
"OracleBridgeParams",
|
|
537
|
+
"OraclePriceFeed",
|
|
538
|
+
"OracleRequestAction",
|
|
445
539
|
"PictureDNS",
|
|
446
540
|
"PoolImplementation",
|
|
447
541
|
"PoolImplementationType",
|
|
@@ -455,7 +549,10 @@ __all__ = [
|
|
|
455
549
|
"ReducedBlocks",
|
|
456
550
|
"Refund",
|
|
457
551
|
"RemoveExtensionAction",
|
|
552
|
+
"RewardsStats",
|
|
458
553
|
"Risk",
|
|
554
|
+
"RoundInfo",
|
|
555
|
+
"RoundRewardsResponse",
|
|
459
556
|
"Sale",
|
|
460
557
|
"ScaledUI",
|
|
461
558
|
"Seqno",
|
|
@@ -484,8 +581,12 @@ __all__ = [
|
|
|
484
581
|
"TrustType",
|
|
485
582
|
"TvmStackRecord",
|
|
486
583
|
"UnSubscriptionAction",
|
|
584
|
+
"ValidationRound",
|
|
585
|
+
"ValidationRoundsResponse",
|
|
487
586
|
"Validator",
|
|
587
|
+
"ValidatorRewardEntry",
|
|
488
588
|
"Validators",
|
|
589
|
+
"ValidatorsResponse",
|
|
489
590
|
"ValidatorsSet",
|
|
490
591
|
"ValueFlow",
|
|
491
592
|
"VaultDepositInfo",
|
|
@@ -499,5 +600,6 @@ __all__ = [
|
|
|
499
600
|
"WithdrawStakeAction",
|
|
500
601
|
"WithdrawStakeRequestAction",
|
|
501
602
|
"WithdrawTokenStakeRequestAction",
|
|
603
|
+
"WithdrawXTRAction",
|
|
502
604
|
"WorkchainDescr",
|
|
503
605
|
]
|
|
@@ -36,6 +36,15 @@ class CurrencyType(str, Enum):
|
|
|
36
36
|
fiat = "fiat"
|
|
37
37
|
|
|
38
38
|
|
|
39
|
+
class DefiAssetType(str, Enum):
|
|
40
|
+
staking = "staking"
|
|
41
|
+
lending_supply = "lending_supply"
|
|
42
|
+
lending_borrow = "lending_borrow"
|
|
43
|
+
liquid_staking = "liquid_staking"
|
|
44
|
+
liquid_pool = "liquid_pool"
|
|
45
|
+
yield_token = "yield_token"
|
|
46
|
+
|
|
47
|
+
|
|
39
48
|
class ExecGetMethodArgType(str, Enum):
|
|
40
49
|
nan = "nan"
|
|
41
50
|
null = "null"
|
|
@@ -57,6 +66,8 @@ class PoolImplementationType(str, Enum):
|
|
|
57
66
|
whales = "whales"
|
|
58
67
|
tf = "tf"
|
|
59
68
|
liquidTF = "liquidTF"
|
|
69
|
+
ffvault = "ffvault"
|
|
70
|
+
hipo = "hipo"
|
|
60
71
|
|
|
61
72
|
|
|
62
73
|
class TransactionType(str, Enum):
|
|
@@ -9,6 +9,7 @@ from pydantic import BaseModel, ConfigDict, Field
|
|
|
9
9
|
from pytonapi.rest.models._enums import (
|
|
10
10
|
AccountStatus,
|
|
11
11
|
CurrencyType,
|
|
12
|
+
DefiAssetType,
|
|
12
13
|
ExecGetMethodArgType,
|
|
13
14
|
JettonVerificationType,
|
|
14
15
|
PoolImplementationType,
|
|
@@ -59,6 +60,7 @@ class ActionSimplePreview(BaseModel):
|
|
|
59
60
|
accounts: list[AccountAddress]
|
|
60
61
|
action_image: str | None = Field(default=None)
|
|
61
62
|
value: str | None = Field(default=None)
|
|
63
|
+
fiat_value: str | None = Field(default=None)
|
|
62
64
|
value_image: str | None = Field(default=None)
|
|
63
65
|
|
|
64
66
|
|
|
@@ -85,6 +87,11 @@ class AuctionBidAction(BaseModel):
|
|
|
85
87
|
nft: NftItem | None = Field(default=None)
|
|
86
88
|
|
|
87
89
|
|
|
90
|
+
class BuyXTRAction(BaseModel):
|
|
91
|
+
recipient: AccountAddress
|
|
92
|
+
amount: str
|
|
93
|
+
|
|
94
|
+
|
|
88
95
|
class ContractDeployAction(BaseModel):
|
|
89
96
|
address: str
|
|
90
97
|
interfaces: list[str]
|
|
@@ -95,6 +102,7 @@ class DepositStakeAction(BaseModel):
|
|
|
95
102
|
staker: AccountAddress
|
|
96
103
|
pool: AccountAddress
|
|
97
104
|
implementation: PoolImplementationType
|
|
105
|
+
stake_meta: Price | None = Field(default=None)
|
|
98
106
|
|
|
99
107
|
|
|
100
108
|
class Protocol(BaseModel):
|
|
@@ -108,6 +116,11 @@ class DepositTokenStakeAction(BaseModel):
|
|
|
108
116
|
stake_meta: Price | None = Field(default=None)
|
|
109
117
|
|
|
110
118
|
|
|
119
|
+
class DepositXTRAction(BaseModel):
|
|
120
|
+
recipient: AccountAddress
|
|
121
|
+
amount: str
|
|
122
|
+
|
|
123
|
+
|
|
111
124
|
class DomainRenewAction(BaseModel):
|
|
112
125
|
domain: str
|
|
113
126
|
contract_address: str
|
|
@@ -169,10 +182,17 @@ class FlawedJettonTransferAction(BaseModel):
|
|
|
169
182
|
refund: Refund | None = Field(default=None)
|
|
170
183
|
|
|
171
184
|
|
|
185
|
+
class GasRelayFee(BaseModel):
|
|
186
|
+
jetton: JettonPreview
|
|
187
|
+
amount: str
|
|
188
|
+
|
|
189
|
+
|
|
172
190
|
class GasRelayAction(BaseModel):
|
|
173
191
|
amount: int
|
|
174
192
|
relayer: AccountAddress
|
|
175
193
|
target: AccountAddress
|
|
194
|
+
is_battery: bool | None = Field(default=None)
|
|
195
|
+
relayer_fee: GasRelayFee | None = Field(default=None)
|
|
176
196
|
|
|
177
197
|
|
|
178
198
|
class JettonBurnAction(BaseModel):
|
|
@@ -197,6 +217,8 @@ class JettonSwapAction(BaseModel):
|
|
|
197
217
|
router: AccountAddress
|
|
198
218
|
ton_in: int | None = Field(default=None)
|
|
199
219
|
ton_out: int | None = Field(default=None)
|
|
220
|
+
gram_in: int | None = Field(default=None)
|
|
221
|
+
gram_out: int | None = Field(default=None)
|
|
200
222
|
jetton_master_in: JettonPreview | None = Field(default=None)
|
|
201
223
|
jetton_master_out: JettonPreview | None = Field(default=None)
|
|
202
224
|
|
|
@@ -244,6 +266,18 @@ class NftPurchaseAction(BaseModel):
|
|
|
244
266
|
buyer: AccountAddress
|
|
245
267
|
|
|
246
268
|
|
|
269
|
+
class OraclePriceFeed(BaseModel):
|
|
270
|
+
id: str
|
|
271
|
+
display_symbol: str
|
|
272
|
+
rate: float | None = Field(default=None)
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
class OracleRequestAction(BaseModel):
|
|
276
|
+
requester: AccountAddress
|
|
277
|
+
response_to: AccountAddress
|
|
278
|
+
price_feeds: list[OraclePriceFeed]
|
|
279
|
+
|
|
280
|
+
|
|
247
281
|
class Metadata(BaseModel):
|
|
248
282
|
encrypted_binary: str
|
|
249
283
|
decryption_key: str | None = Field(default=None)
|
|
@@ -270,8 +304,9 @@ class SetSignatureAllowedAction(BaseModel):
|
|
|
270
304
|
class SmartContractAction(BaseModel):
|
|
271
305
|
executor: AccountAddress
|
|
272
306
|
contract: AccountAddress
|
|
273
|
-
|
|
307
|
+
gram_attached: int
|
|
274
308
|
operation: str
|
|
309
|
+
ton_attached: int | None = Field(default=None)
|
|
275
310
|
payload: str | None = Field(default=None)
|
|
276
311
|
refund: Refund | None = Field(default=None)
|
|
277
312
|
|
|
@@ -314,6 +349,7 @@ class WithdrawStakeRequestAction(BaseModel):
|
|
|
314
349
|
pool: AccountAddress
|
|
315
350
|
implementation: PoolImplementationType
|
|
316
351
|
amount: int | None = Field(default=None)
|
|
352
|
+
stake_meta: Price | None = Field(default=None)
|
|
317
353
|
|
|
318
354
|
|
|
319
355
|
class WithdrawTokenStakeRequestAction(BaseModel):
|
|
@@ -322,6 +358,11 @@ class WithdrawTokenStakeRequestAction(BaseModel):
|
|
|
322
358
|
stake_meta: Price | None = Field(default=None)
|
|
323
359
|
|
|
324
360
|
|
|
361
|
+
class WithdrawXTRAction(BaseModel):
|
|
362
|
+
user: AccountAddress
|
|
363
|
+
amount: str
|
|
364
|
+
|
|
365
|
+
|
|
325
366
|
class Action(BaseModel):
|
|
326
367
|
type: str
|
|
327
368
|
status: str
|
|
@@ -359,6 +400,10 @@ class Action(BaseModel):
|
|
|
359
400
|
alias="WithdrawTokenStakeRequest", default=None
|
|
360
401
|
)
|
|
361
402
|
liquidity_deposit: LiquidityDepositAction | None = Field(alias="LiquidityDeposit", default=None)
|
|
403
|
+
oracle_request: OracleRequestAction | None = Field(alias="OracleRequest", default=None)
|
|
404
|
+
withdraw_xtr: WithdrawXTRAction | None = Field(alias="WithdrawXTR", default=None)
|
|
405
|
+
deposit_xtr: DepositXTRAction | None = Field(alias="DepositXTR", default=None)
|
|
406
|
+
buy_xtr: BuyXTRAction | None = Field(alias="BuyXTR", default=None)
|
|
362
407
|
|
|
363
408
|
model_config = ConfigDict(populate_by_name=True)
|
|
364
409
|
|
|
@@ -385,6 +430,40 @@ class Accounts(BaseModel):
|
|
|
385
430
|
accounts: list[Account]
|
|
386
431
|
|
|
387
432
|
|
|
433
|
+
class DefiLockedAsset(BaseModel):
|
|
434
|
+
type: str
|
|
435
|
+
jetton: JettonPreview | None = Field(default=None)
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
class DefiProvider(BaseModel):
|
|
439
|
+
name: str
|
|
440
|
+
description: str
|
|
441
|
+
link: str
|
|
442
|
+
icon: str
|
|
443
|
+
card: str
|
|
444
|
+
full: str
|
|
445
|
+
tag: str
|
|
446
|
+
miniapp_link: str | None = Field(default=None)
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
class DefiAsset(BaseModel):
|
|
450
|
+
type: DefiAssetType
|
|
451
|
+
amount: str
|
|
452
|
+
defi_provider: DefiProvider
|
|
453
|
+
locked_asset: DefiLockedAsset
|
|
454
|
+
pool_address: str | None = Field(default=None)
|
|
455
|
+
asset_address: str | None = Field(default=None)
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
class DefiAssets(BaseModel):
|
|
459
|
+
assets: list[DefiAsset]
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
class DefiLiquidPoolAssets(BaseModel):
|
|
463
|
+
asset0: DefiLockedAsset
|
|
464
|
+
asset1: DefiLockedAsset
|
|
465
|
+
|
|
466
|
+
|
|
388
467
|
class DnsExpiring(BaseModel):
|
|
389
468
|
items: list[t.Any]
|
|
390
469
|
|
|
@@ -406,11 +485,19 @@ class FoundAccounts(BaseModel):
|
|
|
406
485
|
addresses: list[t.Any]
|
|
407
486
|
|
|
408
487
|
|
|
488
|
+
class JettonAssetInfo(BaseModel):
|
|
489
|
+
token_type: DefiAssetType
|
|
490
|
+
defi_provider: DefiProvider
|
|
491
|
+
type: DefiAssetType | None = Field(default=None)
|
|
492
|
+
pool_assets: DefiLiquidPoolAssets | None = Field(default=None)
|
|
493
|
+
|
|
494
|
+
|
|
409
495
|
class JettonBalance(BaseModel):
|
|
410
496
|
balance: str
|
|
411
497
|
wallet_address: AccountAddress
|
|
412
498
|
jetton: JettonPreview
|
|
413
499
|
price: TokenRates | None = Field(default=None)
|
|
500
|
+
defi_asset: JettonAssetInfo | None = Field(default=None)
|
|
414
501
|
extensions: list[str] | None = Field(default=None)
|
|
415
502
|
lock: t.Any | None = Field(default=None)
|
|
416
503
|
|
|
@@ -172,6 +172,7 @@ class BlockchainConfig(BaseModel):
|
|
|
172
172
|
p25: t.Any | None = Field(alias="25", default=None)
|
|
173
173
|
p28: t.Any | None = Field(alias="28", default=None)
|
|
174
174
|
p29: t.Any | None = Field(alias="29", default=None)
|
|
175
|
+
p30: t.Any | None = Field(alias="30", default=None)
|
|
175
176
|
p31: t.Any | None = Field(alias="31", default=None)
|
|
176
177
|
p32: ValidatorsSet | None = Field(alias="32", default=None)
|
|
177
178
|
p33: ValidatorsSet | None = Field(alias="33", default=None)
|
|
@@ -210,6 +211,10 @@ class BlockchainRawAccount(BaseModel):
|
|
|
210
211
|
libraries: list[t.Any] | None = Field(default=None)
|
|
211
212
|
|
|
212
213
|
|
|
214
|
+
class BlockchainRawAccounts(BaseModel):
|
|
215
|
+
accounts: list[BlockchainRawAccount]
|
|
216
|
+
|
|
217
|
+
|
|
213
218
|
class ComputePhase(BaseModel):
|
|
214
219
|
skipped: bool
|
|
215
220
|
skip_reason: ComputeSkipReason | None = Field(default=None)
|
|
@@ -256,10 +261,12 @@ class GasLimitPrices(BaseModel):
|
|
|
256
261
|
class JettonBridgePrices(BaseModel):
|
|
257
262
|
bridge_burn_fee: int
|
|
258
263
|
bridge_mint_fee: int
|
|
259
|
-
|
|
264
|
+
wallet_min_gram_for_storage: int
|
|
260
265
|
wallet_gas_consumption: int
|
|
261
|
-
|
|
266
|
+
minter_min_gram_for_storage: int
|
|
262
267
|
discover_gas_consumption: int
|
|
268
|
+
wallet_min_tons_for_storage: int | None = Field(default=None)
|
|
269
|
+
minter_min_tons_for_storage: int | None = Field(default=None)
|
|
263
270
|
|
|
264
271
|
|
|
265
272
|
class Oracle(BaseModel):
|
|
@@ -342,6 +349,16 @@ class MsgForwardPrices(BaseModel):
|
|
|
342
349
|
next_frac: int
|
|
343
350
|
|
|
344
351
|
|
|
352
|
+
class NewConsensusConfig(BaseModel):
|
|
353
|
+
flags: int
|
|
354
|
+
use_quic: bool
|
|
355
|
+
slots_per_leader_window: int
|
|
356
|
+
target_rate_ms: int | None = Field(default=None)
|
|
357
|
+
first_block_timeout_ms: int | None = Field(default=None)
|
|
358
|
+
max_leader_window_desync: int | None = Field(default=None)
|
|
359
|
+
noncritical_params: dict[str, int] | None = Field(default=None)
|
|
360
|
+
|
|
361
|
+
|
|
345
362
|
class OracleBridgeParams(BaseModel):
|
|
346
363
|
bridge_addr: str
|
|
347
364
|
oracle_multisig_address: str
|
|
@@ -31,9 +31,10 @@ class JettonQuantity(BaseModel):
|
|
|
31
31
|
|
|
32
32
|
class Risk(BaseModel):
|
|
33
33
|
transfer_all_remaining_balance: bool
|
|
34
|
-
|
|
34
|
+
gram: int
|
|
35
35
|
jettons: list[JettonQuantity]
|
|
36
36
|
nfts: list[NftItem]
|
|
37
|
+
ton: int | None = Field(default=None)
|
|
37
38
|
total_equivalent: float | None = Field(default=None)
|
|
38
39
|
|
|
39
40
|
|