tac-sdk 0.1.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.
Files changed (139) hide show
  1. tac_sdk-0.1.0/LICENSE +21 -0
  2. tac_sdk-0.1.0/MANIFEST.in +13 -0
  3. tac_sdk-0.1.0/PKG-INFO +63 -0
  4. tac_sdk-0.1.0/README.md +30 -0
  5. tac_sdk-0.1.0/abi/IOFT.json +467 -0
  6. tac_sdk-0.1.0/abi/__init__.py +0 -0
  7. tac_sdk-0.1.0/adapters/__init__.py +27 -0
  8. tac_sdk-0.1.0/adapters/base_contract_opener.py +624 -0
  9. tac_sdk-0.1.0/adapters/lite_client_opener.py +248 -0
  10. tac_sdk-0.1.0/adapters/opener_utils.py +15 -0
  11. tac_sdk-0.1.0/adapters/pytvm_sandbox_opener.py +65 -0
  12. tac_sdk-0.1.0/adapters/retryable_contract_opener.py +407 -0
  13. tac_sdk-0.1.0/adapters/ton_client4_opener.py +321 -0
  14. tac_sdk-0.1.0/adapters/ton_client_opener.py +411 -0
  15. tac_sdk-0.1.0/artifacts/__init__.py +1 -0
  16. tac_sdk-0.1.0/artifacts/artifacts.bundle.json +58502 -0
  17. tac_sdk-0.1.0/artifacts/networks/__init__.py +1 -0
  18. tac_sdk-0.1.0/artifacts/networks/dev/__init__.py +1 -0
  19. tac_sdk-0.1.0/artifacts/networks/dev/tac.json +13 -0
  20. tac_sdk-0.1.0/artifacts/networks/dev/ton.json +10 -0
  21. tac_sdk-0.1.0/artifacts/networks/mainnet/__init__.py +1 -0
  22. tac_sdk-0.1.0/artifacts/networks/mainnet/tac.json +13 -0
  23. tac_sdk-0.1.0/artifacts/networks/mainnet/ton.json +10 -0
  24. tac_sdk-0.1.0/artifacts/networks/testnet/__init__.py +1 -0
  25. tac_sdk-0.1.0/artifacts/networks/testnet/tac.json +13 -0
  26. tac_sdk-0.1.0/artifacts/networks/testnet/ton.json +10 -0
  27. tac_sdk-0.1.0/artifacts/sandbox_fixtures/__init__.py +1 -0
  28. tac_sdk-0.1.0/artifacts/sandbox_fixtures/dev.json +24 -0
  29. tac_sdk-0.1.0/artifacts/sandbox_fixtures/mainnet.json +24 -0
  30. tac_sdk-0.1.0/artifacts/sandbox_fixtures/testnet.json +24 -0
  31. tac_sdk-0.1.0/assets/__init__.py +7 -0
  32. tac_sdk-0.1.0/assets/_base.py +65 -0
  33. tac_sdk-0.1.0/assets/asset_cache.py +31 -0
  34. tac_sdk-0.1.0/assets/asset_factory.py +77 -0
  35. tac_sdk-0.1.0/assets/ft.py +530 -0
  36. tac_sdk-0.1.0/assets/nft.py +441 -0
  37. tac_sdk-0.1.0/assets/ton.py +173 -0
  38. tac_sdk-0.1.0/errors/__init__.py +105 -0
  39. tac_sdk-0.1.0/errors/errors.py +116 -0
  40. tac_sdk-0.1.0/errors/instances.py +204 -0
  41. tac_sdk-0.1.0/helpers/README.md +54 -0
  42. tac_sdk-0.1.0/helpers/__init__.py +71 -0
  43. tac_sdk-0.1.0/helpers/abi/IOFT.json +1635 -0
  44. tac_sdk-0.1.0/helpers/abi/WTAC.json +384 -0
  45. tac_sdk-0.1.0/helpers/abi/composerEth.json +524 -0
  46. tac_sdk-0.1.0/helpers/abi_loader.py +29 -0
  47. tac_sdk-0.1.0/helpers/bridge_structs.py +108 -0
  48. tac_sdk-0.1.0/helpers/eth_ton_helper.py +432 -0
  49. tac_sdk-0.1.0/helpers/layer_zero_bridge_helper.py +75 -0
  50. tac_sdk-0.1.0/helpers/lz_options.py +39 -0
  51. tac_sdk-0.1.0/helpers/oft_utils.py +67 -0
  52. tac_sdk-0.1.0/helpers/ton_eth_helper.py +316 -0
  53. tac_sdk-0.1.0/helpers/wtac_utils.py +55 -0
  54. tac_sdk-0.1.0/interfaces/__init__.py +76 -0
  55. tac_sdk-0.1.0/interfaces/asset.py +43 -0
  56. tac_sdk-0.1.0/interfaces/contract_opener.py +73 -0
  57. tac_sdk-0.1.0/interfaces/i_configuration.py +35 -0
  58. tac_sdk-0.1.0/interfaces/i_http_client.py +21 -0
  59. tac_sdk-0.1.0/interfaces/i_lite_sequencer_client.py +52 -0
  60. tac_sdk-0.1.0/interfaces/i_lite_sequencer_client_factory.py +10 -0
  61. tac_sdk-0.1.0/interfaces/i_logger.py +17 -0
  62. tac_sdk-0.1.0/interfaces/i_operation_tracker.py +85 -0
  63. tac_sdk-0.1.0/interfaces/i_simulator.py +20 -0
  64. tac_sdk-0.1.0/interfaces/i_tac_explorer_client.py +10 -0
  65. tac_sdk-0.1.0/interfaces/i_tac_sdk.py +179 -0
  66. tac_sdk-0.1.0/interfaces/i_tx_finalizer.py +12 -0
  67. tac_sdk-0.1.0/interfaces/itac_transaction_manager.py +18 -0
  68. tac_sdk-0.1.0/interfaces/iton_transaction_manager.py +52 -0
  69. tac_sdk-0.1.0/interfaces/sender_abstraction.py +35 -0
  70. tac_sdk-0.1.0/interfaces/wallet_instanse.py +20 -0
  71. tac_sdk-0.1.0/pyproject.toml +133 -0
  72. tac_sdk-0.1.0/requirements.txt +11 -0
  73. tac_sdk-0.1.0/sdk/__init__.py +97 -0
  74. tac_sdk-0.1.0/sdk/artifact_access.py +24 -0
  75. tac_sdk-0.1.0/sdk/artifacts_loader.py +99 -0
  76. tac_sdk-0.1.0/sdk/configuration.py +537 -0
  77. tac_sdk-0.1.0/sdk/consts.py +55 -0
  78. tac_sdk-0.1.0/sdk/fees.py +258 -0
  79. tac_sdk-0.1.0/sdk/lite_sequencer_client.py +260 -0
  80. tac_sdk-0.1.0/sdk/logger.py +34 -0
  81. tac_sdk-0.1.0/sdk/operation_tracker.py +384 -0
  82. tac_sdk-0.1.0/sdk/requests_http_client.py +70 -0
  83. tac_sdk-0.1.0/sdk/sandbox/__init__.py +3 -0
  84. tac_sdk-0.1.0/sdk/sandbox/pytvm_chain.py +244 -0
  85. tac_sdk-0.1.0/sdk/simulator.py +276 -0
  86. tac_sdk-0.1.0/sdk/start_tracking.py +238 -0
  87. tac_sdk-0.1.0/sdk/tac_explorer_client.py +27 -0
  88. tac_sdk-0.1.0/sdk/tac_sdk.py +321 -0
  89. tac_sdk-0.1.0/sdk/tac_transaction_manager.py +311 -0
  90. tac_sdk-0.1.0/sdk/ton_eth_helper.py +49 -0
  91. tac_sdk-0.1.0/sdk/ton_transaction_manager.py +478 -0
  92. tac_sdk-0.1.0/sdk/tx_finalizer.py +128 -0
  93. tac_sdk-0.1.0/sdk/utils.py +562 -0
  94. tac_sdk-0.1.0/sdk/validator.py +46 -0
  95. tac_sdk-0.1.0/sender/__init__.py +16 -0
  96. tac_sdk-0.1.0/sender/batch_sender.py +151 -0
  97. tac_sdk-0.1.0/sender/mock_sender.py +26 -0
  98. tac_sdk-0.1.0/sender/raw_sender.py +173 -0
  99. tac_sdk-0.1.0/sender/sender_factory.py +127 -0
  100. tac_sdk-0.1.0/sender/ton_connect_sender.py +116 -0
  101. tac_sdk-0.1.0/setup.cfg +4 -0
  102. tac_sdk-0.1.0/structs/__init__.py +3 -0
  103. tac_sdk-0.1.0/structs/internal_struct.py +311 -0
  104. tac_sdk-0.1.0/structs/struct.py +527 -0
  105. tac_sdk-0.1.0/tac_sdk.egg-info/PKG-INFO +63 -0
  106. tac_sdk-0.1.0/tac_sdk.egg-info/SOURCES.txt +137 -0
  107. tac_sdk-0.1.0/tac_sdk.egg-info/dependency_links.txt +1 -0
  108. tac_sdk-0.1.0/tac_sdk.egg-info/requires.txt +16 -0
  109. tac_sdk-0.1.0/tac_sdk.egg-info/top_level.txt +12 -0
  110. tac_sdk-0.1.0/tests/test_asset_cache_spec.py +58 -0
  111. tac_sdk-0.1.0/tests/test_asset_inputs_spec.py +119 -0
  112. tac_sdk-0.1.0/tests/test_base_contract_opener_pagination_spec.py +108 -0
  113. tac_sdk-0.1.0/tests/test_base_contract_opener_root_retry_spec.py +144 -0
  114. tac_sdk-0.1.0/tests/test_configuration_settings_fallback_spec.py +158 -0
  115. tac_sdk-0.1.0/tests/test_ft_spec.py +225 -0
  116. tac_sdk-0.1.0/tests/test_ft_wrappers_spec.py +117 -0
  117. tac_sdk-0.1.0/tests/test_helpers.py +216 -0
  118. tac_sdk-0.1.0/tests/test_nft_wrappers_spec.py +187 -0
  119. tac_sdk-0.1.0/tests/test_retryable_contract_opener_spec.py +399 -0
  120. tac_sdk-0.1.0/tests/test_sdk_spec.py +617 -0
  121. tac_sdk-0.1.0/tests/test_sender_spec.py +214 -0
  122. tac_sdk-0.1.0/tests/test_simulator_fee_parity_spec.py +116 -0
  123. tac_sdk-0.1.0/tests/test_ton_client_opener_params_spec.py +146 -0
  124. tac_sdk-0.1.0/tests/test_ton_eth_helper_spec.py +666 -0
  125. tac_sdk-0.1.0/tests/test_ton_get_method_runtime_spec.py +35 -0
  126. tac_sdk-0.1.0/tests/test_ton_transaction_manager_tracking_spec.py +183 -0
  127. tac_sdk-0.1.0/tests/test_track_transaction_tree_wait_spec.py +167 -0
  128. tac_sdk-0.1.0/ton_get_methods/__init__.py +19 -0
  129. tac_sdk-0.1.0/ton_get_methods/client.py +31 -0
  130. tac_sdk-0.1.0/ton_get_methods/runtime.py +200 -0
  131. tac_sdk-0.1.0/wrappers/__init__.py +29 -0
  132. tac_sdk-0.1.0/wrappers/content_utils.py +173 -0
  133. tac_sdk-0.1.0/wrappers/highload_query_id.py +67 -0
  134. tac_sdk-0.1.0/wrappers/highload_wallet_v3.py +132 -0
  135. tac_sdk-0.1.0/wrappers/jetton_minter.py +89 -0
  136. tac_sdk-0.1.0/wrappers/jetton_wallet.py +60 -0
  137. tac_sdk-0.1.0/wrappers/nft_collection.py +102 -0
  138. tac_sdk-0.1.0/wrappers/nft_item.py +86 -0
  139. tac_sdk-0.1.0/wrappers/settings.py +34 -0
tac_sdk-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 TAC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,13 @@
1
+ include README.md
2
+ include LICENSE
3
+ include requirements.txt
4
+ include pyproject.toml
5
+ include helpers/README.md
6
+ recursive-include abi *.json
7
+ recursive-include abi *.py
8
+ recursive-include artifacts *.json
9
+ recursive-include helpers/abi *.json
10
+ prune artifacts_submodules
11
+ prune .venv
12
+ prune dist
13
+ prune dist_pypi_check
tac_sdk-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,63 @@
1
+ Metadata-Version: 2.4
2
+ Name: tac-sdk
3
+ Version: 0.1.0
4
+ Summary: Python TAC SDK
5
+ License-Expression: MIT
6
+ Keywords: tac,ton,evm,bridge,sdk
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3 :: Only
9
+ Classifier: Programming Language :: Python :: 3.11
10
+ Classifier: Programming Language :: Python :: 3.12
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Topic :: Software Development :: Libraries
14
+ Requires-Python: >=3.11
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Requires-Dist: pytoniq
18
+ Requires-Dist: pytoniq-core
19
+ Requires-Dist: pycryptodomex
20
+ Requires-Dist: python-dotenv
21
+ Requires-Dist: requests
22
+ Requires-Dist: setuptools
23
+ Requires-Dist: web3
24
+ Requires-Dist: eth-account
25
+ Provides-Extra: dev
26
+ Requires-Dist: pytvm; extra == "dev"
27
+ Requires-Dist: pytest; extra == "dev"
28
+ Requires-Dist: pytest-asyncio; extra == "dev"
29
+ Requires-Dist: ruff; extra == "dev"
30
+ Requires-Dist: pyright; extra == "dev"
31
+ Requires-Dist: types-requests; extra == "dev"
32
+ Dynamic: license-file
33
+
34
+ # TAC SDK (Python)
35
+
36
+ Python SDK for TON <-> TAC cross-chain operations.
37
+
38
+ ## ETH <-> TON Bridge Helpers
39
+
40
+ See the dedicated helper docs: [helpers/README.md](helpers/README.md)
41
+
42
+ ## Installation
43
+
44
+ ```bash
45
+ pip install tac-sdk
46
+ ```
47
+
48
+ ## Quick start
49
+
50
+ ```python
51
+ import asyncio
52
+ from sdk.tac_sdk import TacSdk
53
+ from structs.struct import Network, SDKParams
54
+
55
+
56
+ async def main() -> None:
57
+ sdk = await TacSdk.create(SDKParams(network=Network.TESTNET))
58
+ token = await sdk.getFT("EQBLi0v_y-KiLlT1VzQJmmMbaoZnLcMAHrIEmzur13dwOmM1")
59
+ print(token.address)
60
+
61
+
62
+ asyncio.run(main())
63
+ ```
@@ -0,0 +1,30 @@
1
+ # TAC SDK (Python)
2
+
3
+ Python SDK for TON <-> TAC cross-chain operations.
4
+
5
+ ## ETH <-> TON Bridge Helpers
6
+
7
+ See the dedicated helper docs: [helpers/README.md](helpers/README.md)
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ pip install tac-sdk
13
+ ```
14
+
15
+ ## Quick start
16
+
17
+ ```python
18
+ import asyncio
19
+ from sdk.tac_sdk import TacSdk
20
+ from structs.struct import Network, SDKParams
21
+
22
+
23
+ async def main() -> None:
24
+ sdk = await TacSdk.create(SDKParams(network=Network.TESTNET))
25
+ token = await sdk.getFT("EQBLi0v_y-KiLlT1VzQJmmMbaoZnLcMAHrIEmzur13dwOmM1")
26
+ print(token.address)
27
+
28
+
29
+ asyncio.run(main())
30
+ ```
@@ -0,0 +1,467 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IOFT",
4
+ "sourceName": "@layerzerolabs/oft-evm/contracts/interfaces/IOFT.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "uint256",
10
+ "name": "amountSD",
11
+ "type": "uint256"
12
+ }
13
+ ],
14
+ "name": "AmountSDOverflowed",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [],
19
+ "name": "InvalidLocalDecimals",
20
+ "type": "error"
21
+ },
22
+ {
23
+ "inputs": [
24
+ {
25
+ "internalType": "uint256",
26
+ "name": "amountLD",
27
+ "type": "uint256"
28
+ },
29
+ {
30
+ "internalType": "uint256",
31
+ "name": "minAmountLD",
32
+ "type": "uint256"
33
+ }
34
+ ],
35
+ "name": "SlippageExceeded",
36
+ "type": "error"
37
+ },
38
+ {
39
+ "anonymous": false,
40
+ "inputs": [
41
+ {
42
+ "indexed": true,
43
+ "internalType": "bytes32",
44
+ "name": "guid",
45
+ "type": "bytes32"
46
+ },
47
+ {
48
+ "indexed": false,
49
+ "internalType": "uint32",
50
+ "name": "srcEid",
51
+ "type": "uint32"
52
+ },
53
+ {
54
+ "indexed": true,
55
+ "internalType": "address",
56
+ "name": "toAddress",
57
+ "type": "address"
58
+ },
59
+ {
60
+ "indexed": false,
61
+ "internalType": "uint256",
62
+ "name": "amountReceivedLD",
63
+ "type": "uint256"
64
+ }
65
+ ],
66
+ "name": "OFTReceived",
67
+ "type": "event"
68
+ },
69
+ {
70
+ "anonymous": false,
71
+ "inputs": [
72
+ {
73
+ "indexed": true,
74
+ "internalType": "bytes32",
75
+ "name": "guid",
76
+ "type": "bytes32"
77
+ },
78
+ {
79
+ "indexed": false,
80
+ "internalType": "uint32",
81
+ "name": "dstEid",
82
+ "type": "uint32"
83
+ },
84
+ {
85
+ "indexed": true,
86
+ "internalType": "address",
87
+ "name": "fromAddress",
88
+ "type": "address"
89
+ },
90
+ {
91
+ "indexed": false,
92
+ "internalType": "uint256",
93
+ "name": "amountSentLD",
94
+ "type": "uint256"
95
+ },
96
+ {
97
+ "indexed": false,
98
+ "internalType": "uint256",
99
+ "name": "amountReceivedLD",
100
+ "type": "uint256"
101
+ }
102
+ ],
103
+ "name": "OFTSent",
104
+ "type": "event"
105
+ },
106
+ {
107
+ "inputs": [],
108
+ "name": "approvalRequired",
109
+ "outputs": [
110
+ {
111
+ "internalType": "bool",
112
+ "name": "",
113
+ "type": "bool"
114
+ }
115
+ ],
116
+ "stateMutability": "view",
117
+ "type": "function"
118
+ },
119
+ {
120
+ "inputs": [],
121
+ "name": "oftVersion",
122
+ "outputs": [
123
+ {
124
+ "internalType": "bytes4",
125
+ "name": "interfaceId",
126
+ "type": "bytes4"
127
+ },
128
+ {
129
+ "internalType": "uint64",
130
+ "name": "version",
131
+ "type": "uint64"
132
+ }
133
+ ],
134
+ "stateMutability": "view",
135
+ "type": "function"
136
+ },
137
+ {
138
+ "inputs": [
139
+ {
140
+ "components": [
141
+ {
142
+ "internalType": "uint32",
143
+ "name": "dstEid",
144
+ "type": "uint32"
145
+ },
146
+ {
147
+ "internalType": "bytes32",
148
+ "name": "to",
149
+ "type": "bytes32"
150
+ },
151
+ {
152
+ "internalType": "uint256",
153
+ "name": "amountLD",
154
+ "type": "uint256"
155
+ },
156
+ {
157
+ "internalType": "uint256",
158
+ "name": "minAmountLD",
159
+ "type": "uint256"
160
+ },
161
+ {
162
+ "internalType": "bytes",
163
+ "name": "extraOptions",
164
+ "type": "bytes"
165
+ },
166
+ {
167
+ "internalType": "bytes",
168
+ "name": "composeMsg",
169
+ "type": "bytes"
170
+ },
171
+ {
172
+ "internalType": "bytes",
173
+ "name": "oftCmd",
174
+ "type": "bytes"
175
+ }
176
+ ],
177
+ "internalType": "struct SendParam",
178
+ "name": "_sendParam",
179
+ "type": "tuple"
180
+ }
181
+ ],
182
+ "name": "quoteOFT",
183
+ "outputs": [
184
+ {
185
+ "components": [
186
+ {
187
+ "internalType": "uint256",
188
+ "name": "minAmountLD",
189
+ "type": "uint256"
190
+ },
191
+ {
192
+ "internalType": "uint256",
193
+ "name": "maxAmountLD",
194
+ "type": "uint256"
195
+ }
196
+ ],
197
+ "internalType": "struct OFTLimit",
198
+ "name": "",
199
+ "type": "tuple"
200
+ },
201
+ {
202
+ "components": [
203
+ {
204
+ "internalType": "int256",
205
+ "name": "feeAmountLD",
206
+ "type": "int256"
207
+ },
208
+ {
209
+ "internalType": "string",
210
+ "name": "description",
211
+ "type": "string"
212
+ }
213
+ ],
214
+ "internalType": "struct OFTFeeDetail[]",
215
+ "name": "oftFeeDetails",
216
+ "type": "tuple[]"
217
+ },
218
+ {
219
+ "components": [
220
+ {
221
+ "internalType": "uint256",
222
+ "name": "amountSentLD",
223
+ "type": "uint256"
224
+ },
225
+ {
226
+ "internalType": "uint256",
227
+ "name": "amountReceivedLD",
228
+ "type": "uint256"
229
+ }
230
+ ],
231
+ "internalType": "struct OFTReceipt",
232
+ "name": "",
233
+ "type": "tuple"
234
+ }
235
+ ],
236
+ "stateMutability": "view",
237
+ "type": "function"
238
+ },
239
+ {
240
+ "inputs": [
241
+ {
242
+ "components": [
243
+ {
244
+ "internalType": "uint32",
245
+ "name": "dstEid",
246
+ "type": "uint32"
247
+ },
248
+ {
249
+ "internalType": "bytes32",
250
+ "name": "to",
251
+ "type": "bytes32"
252
+ },
253
+ {
254
+ "internalType": "uint256",
255
+ "name": "amountLD",
256
+ "type": "uint256"
257
+ },
258
+ {
259
+ "internalType": "uint256",
260
+ "name": "minAmountLD",
261
+ "type": "uint256"
262
+ },
263
+ {
264
+ "internalType": "bytes",
265
+ "name": "extraOptions",
266
+ "type": "bytes"
267
+ },
268
+ {
269
+ "internalType": "bytes",
270
+ "name": "composeMsg",
271
+ "type": "bytes"
272
+ },
273
+ {
274
+ "internalType": "bytes",
275
+ "name": "oftCmd",
276
+ "type": "bytes"
277
+ }
278
+ ],
279
+ "internalType": "struct SendParam",
280
+ "name": "_sendParam",
281
+ "type": "tuple"
282
+ },
283
+ {
284
+ "internalType": "bool",
285
+ "name": "_payInLzToken",
286
+ "type": "bool"
287
+ }
288
+ ],
289
+ "name": "quoteSend",
290
+ "outputs": [
291
+ {
292
+ "components": [
293
+ {
294
+ "internalType": "uint256",
295
+ "name": "nativeFee",
296
+ "type": "uint256"
297
+ },
298
+ {
299
+ "internalType": "uint256",
300
+ "name": "lzTokenFee",
301
+ "type": "uint256"
302
+ }
303
+ ],
304
+ "internalType": "struct MessagingFee",
305
+ "name": "",
306
+ "type": "tuple"
307
+ }
308
+ ],
309
+ "stateMutability": "view",
310
+ "type": "function"
311
+ },
312
+ {
313
+ "inputs": [
314
+ {
315
+ "components": [
316
+ {
317
+ "internalType": "uint32",
318
+ "name": "dstEid",
319
+ "type": "uint32"
320
+ },
321
+ {
322
+ "internalType": "bytes32",
323
+ "name": "to",
324
+ "type": "bytes32"
325
+ },
326
+ {
327
+ "internalType": "uint256",
328
+ "name": "amountLD",
329
+ "type": "uint256"
330
+ },
331
+ {
332
+ "internalType": "uint256",
333
+ "name": "minAmountLD",
334
+ "type": "uint256"
335
+ },
336
+ {
337
+ "internalType": "bytes",
338
+ "name": "extraOptions",
339
+ "type": "bytes"
340
+ },
341
+ {
342
+ "internalType": "bytes",
343
+ "name": "composeMsg",
344
+ "type": "bytes"
345
+ },
346
+ {
347
+ "internalType": "bytes",
348
+ "name": "oftCmd",
349
+ "type": "bytes"
350
+ }
351
+ ],
352
+ "internalType": "struct SendParam",
353
+ "name": "_sendParam",
354
+ "type": "tuple"
355
+ },
356
+ {
357
+ "components": [
358
+ {
359
+ "internalType": "uint256",
360
+ "name": "nativeFee",
361
+ "type": "uint256"
362
+ },
363
+ {
364
+ "internalType": "uint256",
365
+ "name": "lzTokenFee",
366
+ "type": "uint256"
367
+ }
368
+ ],
369
+ "internalType": "struct MessagingFee",
370
+ "name": "_fee",
371
+ "type": "tuple"
372
+ },
373
+ {
374
+ "internalType": "address",
375
+ "name": "_refundAddress",
376
+ "type": "address"
377
+ }
378
+ ],
379
+ "name": "send",
380
+ "outputs": [
381
+ {
382
+ "components": [
383
+ {
384
+ "internalType": "bytes32",
385
+ "name": "guid",
386
+ "type": "bytes32"
387
+ },
388
+ {
389
+ "internalType": "uint64",
390
+ "name": "nonce",
391
+ "type": "uint64"
392
+ },
393
+ {
394
+ "components": [
395
+ {
396
+ "internalType": "uint256",
397
+ "name": "nativeFee",
398
+ "type": "uint256"
399
+ },
400
+ {
401
+ "internalType": "uint256",
402
+ "name": "lzTokenFee",
403
+ "type": "uint256"
404
+ }
405
+ ],
406
+ "internalType": "struct MessagingFee",
407
+ "name": "fee",
408
+ "type": "tuple"
409
+ }
410
+ ],
411
+ "internalType": "struct MessagingReceipt",
412
+ "name": "",
413
+ "type": "tuple"
414
+ },
415
+ {
416
+ "components": [
417
+ {
418
+ "internalType": "uint256",
419
+ "name": "amountSentLD",
420
+ "type": "uint256"
421
+ },
422
+ {
423
+ "internalType": "uint256",
424
+ "name": "amountReceivedLD",
425
+ "type": "uint256"
426
+ }
427
+ ],
428
+ "internalType": "struct OFTReceipt",
429
+ "name": "",
430
+ "type": "tuple"
431
+ }
432
+ ],
433
+ "stateMutability": "payable",
434
+ "type": "function"
435
+ },
436
+ {
437
+ "inputs": [],
438
+ "name": "sharedDecimals",
439
+ "outputs": [
440
+ {
441
+ "internalType": "uint8",
442
+ "name": "",
443
+ "type": "uint8"
444
+ }
445
+ ],
446
+ "stateMutability": "view",
447
+ "type": "function"
448
+ },
449
+ {
450
+ "inputs": [],
451
+ "name": "token",
452
+ "outputs": [
453
+ {
454
+ "internalType": "address",
455
+ "name": "",
456
+ "type": "address"
457
+ }
458
+ ],
459
+ "stateMutability": "view",
460
+ "type": "function"
461
+ }
462
+ ],
463
+ "bytecode": "0x",
464
+ "deployedBytecode": "0x",
465
+ "linkReferences": {},
466
+ "deployedLinkReferences": {}
467
+ }
File without changes
@@ -0,0 +1,27 @@
1
+ from .base_contract_opener import base_contract_opener
2
+ from .lite_client_opener import lite_client_opener
3
+ from .opener_utils import get_http_endpoint, get_http_v4_endpoint
4
+ from .pytvm_sandbox_opener import pytvm_sandbox_opener
5
+ from .retryable_contract_opener import (
6
+ create_default_retryable_opener,
7
+ opener_config,
8
+ retryable_contract_opener,
9
+ )
10
+ from .ton_client4_opener import orbs_opener4, ton_client4_opener, ton_hub_api4_opener
11
+ from .ton_client_opener import orbs_opener, ton_client_opener
12
+
13
+ __all__ = [
14
+ "base_contract_opener",
15
+ "lite_client_opener",
16
+ "pytvm_sandbox_opener",
17
+ "retryable_contract_opener",
18
+ "opener_config",
19
+ "ton_client4_opener",
20
+ "ton_client_opener",
21
+ "orbs_opener",
22
+ "ton_hub_api4_opener",
23
+ "orbs_opener4",
24
+ "get_http_endpoint",
25
+ "get_http_v4_endpoint",
26
+ "create_default_retryable_opener",
27
+ ]