wan-ton-sdk 0.0.6

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 (119) hide show
  1. package/Bridge.compile.ts +8 -0
  2. package/Bridge.ts +645 -0
  3. package/Bridge.ts.org +647 -0
  4. package/Fake.compile.ts +8 -0
  5. package/GroupApprove.compile.ts +6 -0
  6. package/GroupApprove.ts +274 -0
  7. package/JettonMinter.compile.ts +5 -0
  8. package/JettonMinter.ts +135 -0
  9. package/JettonWallet.compile.ts +5 -0
  10. package/JettonWallet.ts +127 -0
  11. package/README.md +24 -0
  12. package/Signature.compile.ts +6 -0
  13. package/Signature.ts +105 -0
  14. package/address.compile.ts +8 -0
  15. package/client/1.json +1730 -0
  16. package/client/client.ts +73 -0
  17. package/client/log/.ba8901062aebb86bf525b42c65ff84f9485419e4-audit.json +15 -0
  18. package/client/log/wan-ton-sdk.out.2024-12-19 +0 -0
  19. package/code/decode.spec.ts +81 -0
  20. package/code/encode-decode.ts +622 -0
  21. package/code/log/.ba8901062aebb86bf525b42c65ff84f9485419e4-audit.json +20 -0
  22. package/code/log/wan-ton-sdk.out.2025-01-15 +0 -0
  23. package/code/log/wan-ton-sdk.out.2025-01-20 +0 -0
  24. package/code/userLock.ts +291 -0
  25. package/common.ts +62 -0
  26. package/config/config-ex.ts +25 -0
  27. package/config/config.ts +1 -0
  28. package/const/const-value.ts +33 -0
  29. package/contractAccess/bridgeAccess.ts +60 -0
  30. package/contractAccess/groupApproveAccess.ts +59 -0
  31. package/data/EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs.json +7348 -0
  32. package/db/Db.spec.ts +193 -0
  33. package/db/Db.ts +736 -0
  34. package/db/DbAccess.spec.ts +23 -0
  35. package/db/DbAccess.ts +174 -0
  36. package/db/common.ts +94 -0
  37. package/db/log/.ba8901062aebb86bf525b42c65ff84f9485419e4-audit.json +15 -0
  38. package/db/log/wan-ton-sdk.out.2025-04-21 +0 -0
  39. package/event/getEvents.ts +441 -0
  40. package/event/log/.ba8901062aebb86bf525b42c65ff84f9485419e4-audit.json +15 -0
  41. package/event/log/wan-ton-sdk.out.2024-12-19 +0 -0
  42. package/example/0:1.txt +1 -0
  43. package/example/AddToken-ex.ts +148 -0
  44. package/example/README.md +21 -0
  45. package/example/addSmg-ex.ts +78 -0
  46. package/example/addTokenPair-ex.ts +73 -0
  47. package/example/compileContract-ex.ts +10 -0
  48. package/example/converTranToTonTran.ts +43 -0
  49. package/example/createDb-ex.ts +8 -0
  50. package/example/dbFeedTrans-ex.ts +20 -0
  51. package/example/delTokenPair-ex.ts +63 -0
  52. package/example/deploy-ex.ts +68 -0
  53. package/example/getAllEvents-ex.ts +61 -0
  54. package/example/getAllTrans.ts +32 -0
  55. package/example/getContractState-ex.ts +33 -0
  56. package/example/getEventByHash-ex.ts +39 -0
  57. package/example/getEvents-ex.ts +55 -0
  58. package/example/getJettonInfo-ex.ts +44 -0
  59. package/example/getTokenPair-ex.ts +47 -0
  60. package/example/getTransByRange-ex.ts +81 -0
  61. package/example/getTransaction-ex.ts +62 -0
  62. package/example/isTranSuccess-ex.ts +33 -0
  63. package/example/locateTx-ex.ts +44 -0
  64. package/example/log/.ba8901062aebb86bf525b42c65ff84f9485419e4-audit.json +55 -0
  65. package/example/log/wan-ton-sdk.out.2025-04-21 +447 -0
  66. package/example/log/wan-ton-sdk.out.2025-04-22 +1918 -0
  67. package/example/log/wan-ton-sdk.out.2025-04-23 +4216 -0
  68. package/example/log/wan-ton-sdk.out.2025-04-24.gz +0 -0
  69. package/example/log/wan-ton-sdk.out.2025-04-25 +46814 -0
  70. package/example/log/wan-ton-sdk.out.2025-04-27.gz +0 -0
  71. package/example/log/wan-ton-sdk.out.2025-04-28 +4966 -0
  72. package/example/log/wan-ton-sdk.out.2025-04-29 +1328 -0
  73. package/example/log/wan-ton-sdk.out.2025-04-30 +9 -0
  74. package/example/mintToken-ex.ts +82 -0
  75. package/example/setFee-ex.ts +82 -0
  76. package/example/setFeeProxy.ts +70 -0
  77. package/example/smgRelease-ex.ts +173 -0
  78. package/example/upgradeBridgeSc-ex.ts +49 -0
  79. package/example/userLock-ex.ts +78 -0
  80. package/fee/fee.ts +23 -0
  81. package/index.ts +67 -0
  82. package/jest.config.ts +9 -0
  83. package/log/.ba8901062aebb86bf525b42c65ff84f9485419e4-audit.json +20 -0
  84. package/log/wan-ton-sdk.out.2025-04-21 +0 -0
  85. package/log/wan-ton-sdk.out.2025-04-30 +10 -0
  86. package/opcodes.ts +58 -0
  87. package/package.json +34 -0
  88. package/publish.sh +78 -0
  89. package/sign/buildHash.ts +47 -0
  90. package/sign/log/.ba8901062aebb86bf525b42c65ff84f9485419e4-audit.json +15 -0
  91. package/sign/log/wan-ton-sdk.out.2025-04-14 +3 -0
  92. package/sign/rawTrans.spec.ts +117 -0
  93. package/sign/rawTrans.ts +122 -0
  94. package/sign/tools-secp256k1.js +210 -0
  95. package/testData/JettonMinter.compile.func.ts +8 -0
  96. package/testData/JettonWallet.compile.func.ts +8 -0
  97. package/testData/addressList.json +6 -0
  98. package/testData/bridge.compile.func.ts +8 -0
  99. package/testData/bridge.compiled.json +1 -0
  100. package/testData/contractAddress.json +7 -0
  101. package/testData/jettonTokenInfo.json +14 -0
  102. package/testData/prvlist.json +6 -0
  103. package/testData/smg.json +5 -0
  104. package/testData/tokenInfo.json +23 -0
  105. package/transResult/transResult.ts +621 -0
  106. package/tsconfig.json +19 -0
  107. package/utils/.compiled.json +1 -0
  108. package/utils/compileContract.ts +60 -0
  109. package/utils/log/.ba8901062aebb86bf525b42c65ff84f9485419e4-audit.json +15 -0
  110. package/utils/log/wan-ton-sdk.out.2025-01-08 +0 -0
  111. package/utils/logger.spec.ts +14 -0
  112. package/utils/logger.ts +96 -0
  113. package/utils/utils.spec.ts +21 -0
  114. package/utils/utils.ts +295 -0
  115. package/wallet/balance.ts +29 -0
  116. package/wallet/jetton.spec.ts +27 -0
  117. package/wallet/jetton.ts +159 -0
  118. package/wallet/walletContract.spec.ts +111 -0
  119. package/wallet/walletContract.ts +105 -0
@@ -0,0 +1,447 @@
1
+ 2025-04-21T03:11:09.374Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
2
+ 2025-04-21T03:11:11.055Z [info]: http endpoint is => https://ton.access.orbs.network/55033c0ff5Bd3F8B62C092Ab4D238bEE463E5503/1/testnet/toncenter-api-v2/jsonRPC
3
+ 2025-04-21T03:12:14.967Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
4
+ 2025-04-21T03:12:16.963Z [info]: http endpoint is => https://ton.access.orbs.network/55033c0ff5Bd3F8B62C092Ab4D238bEE463E5503/1/testnet/toncenter-api-v2/jsonRPC
5
+ 2025-04-21T03:16:38.930Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
6
+ 2025-04-21T03:16:40.535Z [info]: http endpoint is => https://ton.access.orbs.network/4411c0ff5Bd3F8B62C092Ab4D238bEE463E64411/1/testnet/toncenter-api-v2/jsonRPC
7
+ 2025-04-21T03:20:56.972Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
8
+ 2025-04-21T03:20:59.803Z [info]: http endpoint is => https://ton.access.orbs.network/4412c0ff5Bd3F8B62C092Ab4D238bEE463E64412/1/testnet/toncenter-api-v2/jsonRPC
9
+ 2025-04-21T03:21:45.344Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
10
+ 2025-04-21T03:21:48.381Z [info]: http endpoint is => https://ton.access.orbs.network/4410c0ff5Bd3F8B62C092Ab4D238bEE463E64410/1/testnet/toncenter-api-v2/jsonRPC
11
+ 2025-04-21T03:26:17.323Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
12
+ 2025-04-21T03:26:18.905Z [info]: http endpoint is => https://ton.access.orbs.network/4410c0ff5Bd3F8B62C092Ab4D238bEE463E64410/1/testnet/toncenter-api-v2/jsonRPC
13
+ 2025-04-21T03:27:48.603Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
14
+ 2025-04-21T03:27:52.471Z [info]: http endpoint is => https://ton.access.orbs.network/55033c0ff5Bd3F8B62C092Ab4D238bEE463E5503/1/testnet/toncenter-api-v2/jsonRPC
15
+ 2025-04-21T03:30:40.715Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
16
+ 2025-04-21T03:30:43.689Z [info]: http endpoint is => https://ton.access.orbs.network/55013c0ff5Bd3F8B62C092Ab4D238bEE463E5501/1/testnet/toncenter-api-v2/jsonRPC
17
+ 2025-04-21T03:36:12.770Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
18
+ 2025-04-21T03:36:16.855Z [info]: http endpoint is => https://ton.access.orbs.network/4411c0ff5Bd3F8B62C092Ab4D238bEE463E64411/1/testnet/toncenter-api-v2/jsonRPC
19
+ 2025-04-21T03:37:44.428Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
20
+ 2025-04-21T03:37:46.106Z [info]: http endpoint is => https://ton.access.orbs.network/55013c0ff5Bd3F8B62C092Ab4D238bEE463E5501/1/testnet/toncenter-api-v2/jsonRPC
21
+ 2025-04-21T03:40:18.727Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
22
+ 2025-04-21T03:40:20.840Z [info]: http endpoint is => https://ton.access.orbs.network/4412c0ff5Bd3F8B62C092Ab4D238bEE463E64412/1/testnet/toncenter-api-v2/jsonRPC
23
+ 2025-04-21T03:43:21.237Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
24
+ 2025-04-21T03:43:22.353Z [info]: http endpoint is => https://ton.access.orbs.network/4410c0ff5Bd3F8B62C092Ab4D238bEE463E64410/1/testnet/toncenter-api-v2/jsonRPC
25
+ 2025-04-21T03:47:42.696Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
26
+ 2025-04-21T03:47:46.059Z [info]: http endpoint is => https://ton.access.orbs.network/55023c0ff5Bd3F8B62C092Ab4D238bEE463E5502/1/testnet/toncenter-api-v2/jsonRPC
27
+ 2025-04-21T03:50:37.134Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
28
+ 2025-04-21T03:50:39.250Z [info]: http endpoint is => https://ton.access.orbs.network/55033c0ff5Bd3F8B62C092Ab4D238bEE463E5503/1/testnet/toncenter-api-v2/jsonRPC
29
+ 2025-04-21T03:53:40.970Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
30
+ 2025-04-21T03:53:43.823Z [info]: http endpoint is => https://ton.access.orbs.network/55013c0ff5Bd3F8B62C092Ab4D238bEE463E5501/1/testnet/toncenter-api-v2/jsonRPC
31
+ 2025-04-21T03:55:46.421Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
32
+ 2025-04-21T03:55:48.985Z [info]: http endpoint is => https://ton.access.orbs.network/55013c0ff5Bd3F8B62C092Ab4D238bEE463E5501/1/testnet/toncenter-api-v2/jsonRPC
33
+ 2025-04-21T03:59:27.695Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
34
+ 2025-04-21T03:59:28.992Z [info]: http endpoint is => https://ton.access.orbs.network/4412c0ff5Bd3F8B62C092Ab4D238bEE463E64412/1/testnet/toncenter-api-v2/jsonRPC
35
+ 2025-04-21T04:00:14.977Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
36
+ 2025-04-21T04:00:19.116Z [info]: http endpoint is => https://ton.access.orbs.network/4410c0ff5Bd3F8B62C092Ab4D238bEE463E64410/1/testnet/toncenter-api-v2/jsonRPC
37
+ 2025-04-21T04:01:37.424Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
38
+ 2025-04-21T04:01:42.072Z [info]: http endpoint is => https://ton.access.orbs.network/4410c0ff5Bd3F8B62C092Ab4D238bEE463E64410/1/testnet/toncenter-api-v2/jsonRPC
39
+ 2025-04-21T04:02:09.513Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
40
+ 2025-04-21T04:02:12.182Z [info]: http endpoint is => https://ton.access.orbs.network/4412c0ff5Bd3F8B62C092Ab4D238bEE463E64412/1/testnet/toncenter-api-v2/jsonRPC
41
+ 2025-04-21T04:04:19.393Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
42
+ 2025-04-21T04:04:21.403Z [info]: http endpoint is => https://ton.access.orbs.network/55033c0ff5Bd3F8B62C092Ab4D238bEE463E5503/1/testnet/toncenter-api-v2/jsonRPC
43
+ 2025-04-21T04:09:11.211Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
44
+ 2025-04-21T04:09:16.322Z [info]: http endpoint is => https://ton.access.orbs.network/55013c0ff5Bd3F8B62C092Ab4D238bEE463E5501/1/testnet/toncenter-api-v2/jsonRPC
45
+ 2025-04-21T04:11:21.076Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
46
+ 2025-04-21T04:11:22.707Z [info]: http endpoint is => https://ton.access.orbs.network/4412c0ff5Bd3F8B62C092Ab4D238bEE463E64412/1/testnet/toncenter-api-v2/jsonRPC
47
+ 2025-04-21T04:14:58.293Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
48
+ 2025-04-21T04:14:59.802Z [info]: http endpoint is => https://ton.access.orbs.network/55033c0ff5Bd3F8B62C092Ab4D238bEE463E5503/1/testnet/toncenter-api-v2/jsonRPC
49
+ 2025-04-21T04:16:01.559Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
50
+ 2025-04-21T04:16:03.500Z [info]: http endpoint is => https://ton.access.orbs.network/4412c0ff5Bd3F8B62C092Ab4D238bEE463E64412/1/testnet/toncenter-api-v2/jsonRPC
51
+ 2025-04-21T10:09:25.296Z [info]: getClient config {"network":"testnet","tonClientTimeout":60000000}
52
+ 2025-04-21T10:09:28.865Z [info]: http endpoint is => https://ton.access.orbs.network/55033c0ff5Bd3F8B62C092Ab4D238bEE463E5503/1/testnet/toncenter-api-v2/jsonRPC
53
+ 2025-04-21T10:09:28.878Z [info]: writeContract contractAddress EQDlYDH0PmST2okwTluXJ2mUDMDCzPzXF1gGz24U6H2tE24h
54
+ 2025-04-21T10:09:36.009Z [info]: writeContract contractAddress EQDlYDH0PmST2okwTluXJ2mUDMDCzPzXF1gGz24U6H2tE24h
55
+ 2025-04-21T10:09:36.011Z [info]: Entering enCode Function OP_CROSS_SmgRelease
56
+ 2025-04-21T10:09:44.319Z [info]: err=> AxiosError: Request failed with status code 500
57
+ at settle (/home/jacob/wanchain/two-way-bridge-contracts-opBnb/ton-bridge/node_modules/.store/axios@1.8.4/node_modules/axios/lib/core/settle.js:19:12)
58
+ at IncomingMessage.handleStreamEnd (/home/jacob/wanchain/two-way-bridge-contracts-opBnb/ton-bridge/node_modules/.store/axios@1.8.4/node_modules/axios/lib/adapters/http.js:599:11)
59
+ at IncomingMessage.emit (node:events:529:35)
60
+ at IncomingMessage.emit (node:domain:489:12)
61
+ at endReadableNT (node:internal/streams/readable:1368:12)
62
+ at processTicksAndRejections (node:internal/process/task_queues:82:21)
63
+ at Axios.request (/home/jacob/wanchain/two-way-bridge-contracts-opBnb/ton-bridge/node_modules/.store/axios@1.8.4/node_modules/axios/lib/core/Axios.js:45:41)
64
+ at processTicksAndRejections (node:internal/process/task_queues:95:5)
65
+ at async HttpApi.doCall (/home/jacob/wanchain/two-way-bridge-contracts-opBnb/ton-bridge/node_modules/.store/@ton+ton@13.11.2/node_modules/@ton/ton/dist/client/api/HttpApi.js:263:19)
66
+ at async HttpApi.sendBoc (/home/jacob/wanchain/two-way-bridge-contracts-opBnb/ton-bridge/node_modules/.store/@ton+ton@13.11.2/node_modules/@ton/ton/dist/client/api/HttpApi.js:238:9)
67
+ at async TonClient.sendFile (/home/jacob/wanchain/two-way-bridge-contracts-opBnb/ton-bridge/node_modules/.store/@ton+ton@13.11.2/node_modules/@ton/ton/dist/client/TonClient.js:188:9)
68
+ at async Object.external (/home/jacob/wanchain/two-way-bridge-contracts-opBnb/ton-bridge/node_modules/.store/@ton+ton@13.11.2/node_modules/@ton/ton/dist/client/TonClient.js:387:13)
69
+ at async WalletContractV4.send (/home/jacob/wanchain/two-way-bridge-contracts-opBnb/ton-bridge/node_modules/.store/@ton+ton@13.11.2/node_modules/@ton/ton/dist/wallets/WalletContractV4.js:62:9)
70
+ at async Object.send (/home/jacob/wanchain/two-way-bridge-contracts-opBnb/ton-bridge/node_modules/.store/@ton+ton@13.11.2/node_modules/@ton/ton/dist/wallets/WalletContractV4.js:107:17)
71
+ at async Object.internal (/home/jacob/wanchain/two-way-bridge-contracts-opBnb/ton-bridge/node_modules/.store/@ton+ton@13.11.2/node_modules/@ton/ton/dist/client/TonClient.js:417:13)
72
+ at async Bridge.sendSetTokenPairFee (/home/jacob/wanchain/two-way-bridge-contracts-opBnb/ton-bridge/wrappers/Bridge.ts:108:9) {
73
+ code: 'ERR_BAD_RESPONSE',
74
+ config: {
75
+ transitional: {
76
+ silentJSONParsing: true,
77
+ forcedJSONParsing: true,
78
+ clarifyTimeoutError: false
79
+ },
80
+ adapter: [ 'xhr', 'http', 'fetch' ],
81
+ transformRequest: [ [Function: transformRequest] ],
82
+ transformResponse: [ [Function: transformResponse] ],
83
+ timeout: 60000000,
84
+ xsrfCookieName: 'XSRF-TOKEN',
85
+ xsrfHeaderName: 'X-XSRF-TOKEN',
86
+ maxContentLength: -1,
87
+ maxBodyLength: -1,
88
+ env: { FormData: [Function [FormData]], Blob: [class Blob] },
89
+ validateStatus: [Function: validateStatus],
90
+ headers: Object [AxiosHeaders] {
91
+ Accept: 'application/json, text/plain, */*',
92
+ 'Content-Type': 'application/json',
93
+ 'X-Ton-Client-Version': '13.11.2',
94
+ 'X-API-Key': '73ee18f6b52a360e9db390f146a8c6af161549495d6e9794ae3efd2e412fa7a2',
95
+ 'User-Agent': 'axios/1.8.4',
96
+ 'Content-Length': '341',
97
+ 'Accept-Encoding': 'gzip, compress, deflate, br'
98
+ },
99
+ method: 'post',
100
+ url: 'https://testnet.toncenter.com/api/v2/jsonRPC',
101
+ data: '{"id":"1","jsonrpc":"2.0","method":"sendBoc","params":{"boc":"te6cckEBAgEAvgAB4YgBJ91mOd9lOHuRHS4q/OvwsLFdoxWA9yiAOjZvbP6fXqAFrOcyZdOmYRHGkgCPSuSKfW5tTL5TRnGmfQbMEeXgqZYw67wq6ApLAJBpQS8Gy0gfTsEzL6S1khb9vU9MlYDgYU1NGLtAMMz4AAAHsAAMAQCQYgBysBj6HzJJ7USYJy3Lk7TKBmBhZn5ri6wDZ7cKdD7WiaAvrwgAAAAAAAAAAAAAAAAAADAAAAUAAAAAJOxZjwAAA6wBMS0Aq2gOVA=="}}',
102
+ allowAbsoluteUrls: true
103
+ },
104
+ request: <ref *1> ClientRequest {
105
+ _events: [Object: null prototype] {
106
+ abort: [Function (anonymous)],
107
+ aborted: [Function (anonymous)],
108
+ connect: [Function (anonymous)],
109
+ error: [Function (anonymous)],
110
+ socket: [Function (anonymous)],
111
+ timeout: [Function (anonymous)],
112
+ finish: [Function: requestOnFinish]
113
+ },
114
+ _eventsCount: 7,
115
+ _maxListeners: undefined,
116
+ outputData: [],
117
+ outputSize: 0,
118
+ writable: true,
119
+ destroyed: false,
120
+ _last: true,
121
+ chunkedEncoding: false,
122
+ shouldKeepAlive: false,
123
+ maxRequestsOnConnectionReached: false,
124
+ _defaultKeepAlive: true,
125
+ useChunkedEncodingByDefault: true,
126
+ sendDate: false,
127
+ _removedConnection: false,
128
+ _removedContLen: false,
129
+ _removedTE: false,
130
+ strictContentLength: false,
131
+ _contentLength: '341',
132
+ _hasBody: true,
133
+ _trailer: '',
134
+ finished: true,
135
+ _headerSent: true,
136
+ _closed: false,
137
+ socket: TLSSocket {
138
+ _tlsOptions: [Object],
139
+ _secureEstablished: true,
140
+ _securePending: false,
141
+ _newSessionPending: false,
142
+ _controlReleased: true,
143
+ secureConnecting: false,
144
+ _SNICallback: null,
145
+ servername: 'testnet.toncenter.com',
146
+ alpnProtocol: false,
147
+ authorized: true,
148
+ authorizationError: null,
149
+ encrypted: true,
150
+ _events: [Object: null prototype],
151
+ _eventsCount: 10,
152
+ connecting: false,
153
+ _hadError: false,
154
+ _parent: null,
155
+ _host: 'testnet.toncenter.com',
156
+ _closeAfterHandlingError: false,
157
+ _readableState: [ReadableState],
158
+ _maxListeners: undefined,
159
+ _writableState: [WritableState],
160
+ allowHalfOpen: false,
161
+ _sockname: null,
162
+ _pendingData: null,
163
+ _pendingEncoding: '',
164
+ server: undefined,
165
+ _server: null,
166
+ ssl: [TLSWrap],
167
+ _requestCert: true,
168
+ _rejectUnauthorized: true,
169
+ parser: null,
170
+ _httpMessage: [Circular *1],
171
+ timeout: 60000000,
172
+ [Symbol(res)]: [TLSWrap],
173
+ [Symbol(verified)]: true,
174
+ [Symbol(pendingSession)]: null,
175
+ [Symbol(async_id_symbol)]: 314,
176
+ [Symbol(kHandle)]: [TLSWrap],
177
+ [Symbol(lastWriteQueueSize)]: 0,
178
+ [Symbol(timeout)]: Timeout {
179
+ _idleTimeout: 60000000,
180
+ _idlePrev: [TimersList],
181
+ _idleNext: [TimersList],
182
+ _idleStart: 22138,
183
+ _onTimeout: [Function: bound ],
184
+ _timerArgs: undefined,
185
+ _repeat: null,
186
+ _destroyed: false,
187
+ [Symbol(refed)]: false,
188
+ [Symbol(kHasPrimitive)]: false,
189
+ [Symbol(asyncId)]: 322,
190
+ [Symbol(triggerId)]: 317
191
+ },
192
+ [Symbol(kBuffer)]: null,
193
+ [Symbol(kBufferCb)]: null,
194
+ [Symbol(kBufferGen)]: null,
195
+ [Symbol(kCapture)]: false,
196
+ [Symbol(kSetNoDelay)]: false,
197
+ [Symbol(kSetKeepAlive)]: true,
198
+ [Symbol(kSetKeepAliveInitialDelay)]: 60,
199
+ [Symbol(kBytesRead)]: 0,
200
+ [Symbol(kBytesWritten)]: 0,
201
+ [Symbol(connect-options)]: [Object]
202
+ },
203
+ _header: 'POST /api/v2/jsonRPC HTTP/1.1\r\n' +
204
+ 'Accept: application/json, text/plain, */*\r\n' +
205
+ 'Content-Type: application/json\r\n' +
206
+ 'X-Ton-Client-Version: 13.11.2\r\n' +
207
+ 'X-API-Key: 73ee18f6b52a360e9db390f146a8c6af161549495d6e9794ae3efd2e412fa7a2\r\n' +
208
+ 'User-Agent: axios/1.8.4\r\n' +
209
+ 'Content-Length: 341\r\n' +
210
+ 'Accept-Encoding: gzip, compress, deflate, br\r\n' +
211
+ 'Host: testnet.toncenter.com\r\n' +
212
+ 'Connection: close\r\n' +
213
+ '\r\n',
214
+ _keepAliveTimeout: 0,
215
+ _onPendingData: [Function: nop],
216
+ agent: Agent {
217
+ _events: [Object: null prototype],
218
+ _eventsCount: 2,
219
+ _maxListeners: undefined,
220
+ defaultPort: 443,
221
+ protocol: 'https:',
222
+ options: [Object: null prototype],
223
+ requests: [Object: null prototype] {},
224
+ sockets: [Object: null prototype],
225
+ freeSockets: [Object: null prototype] {},
226
+ keepAliveMsecs: 1000,
227
+ keepAlive: false,
228
+ maxSockets: Infinity,
229
+ maxFreeSockets: 256,
230
+ scheduling: 'lifo',
231
+ maxTotalSockets: Infinity,
232
+ totalSocketCount: 1,
233
+ maxCachedSessions: 100,
234
+ _sessionCache: [Object],
235
+ [Symbol(kCapture)]: false
236
+ },
237
+ socketPath: undefined,
238
+ method: 'POST',
239
+ maxHeaderSize: undefined,
240
+ insecureHTTPParser: undefined,
241
+ joinDuplicateHeaders: undefined,
242
+ path: '/api/v2/jsonRPC',
243
+ _ended: true,
244
+ res: IncomingMessage {
245
+ _readableState: [ReadableState],
246
+ _events: [Object: null prototype],
247
+ _eventsCount: 4,
248
+ _maxListeners: undefined,
249
+ socket: [TLSSocket],
250
+ httpVersionMajor: 1,
251
+ httpVersionMinor: 1,
252
+ httpVersion: '1.1',
253
+ complete: true,
254
+ rawHeaders: [Array],
255
+ rawTrailers: [],
256
+ joinDuplicateHeaders: undefined,
257
+ aborted: false,
258
+ upgrade: false,
259
+ url: '',
260
+ method: null,
261
+ statusCode: 500,
262
+ statusMessage: 'Internal Server Error',
263
+ client: [TLSSocket],
264
+ _consuming: true,
265
+ _dumped: false,
266
+ req: [Circular *1],
267
+ responseUrl: 'https://testnet.toncenter.com/api/v2/jsonRPC',
268
+ redirects: [],
269
+ [Symbol(kCapture)]: false,
270
+ [Symbol(kHeaders)]: [Object],
271
+ [Symbol(kHeadersCount)]: 26,
272
+ [Symbol(kTrailers)]: null,
273
+ [Symbol(kTrailersCount)]: 0
274
+ },
275
+ aborted: false,
276
+ timeoutCb: null,
277
+ upgradeOrConnect: false,
278
+ parser: null,
279
+ maxHeadersCount: null,
280
+ reusedSocket: false,
281
+ host: 'testnet.toncenter.com',
282
+ protocol: 'https:',
283
+ _redirectable: Writable {
284
+ _writableState: [WritableState],
285
+ _events: [Object: null prototype],
286
+ _eventsCount: 3,
287
+ _maxListeners: undefined,
288
+ _options: [Object],
289
+ _ended: true,
290
+ _ending: true,
291
+ _redirectCount: 0,
292
+ _redirects: [],
293
+ _requestBodyLength: 341,
294
+ _requestBodyBuffers: [],
295
+ _onNativeResponse: [Function (anonymous)],
296
+ _currentRequest: [Circular *1],
297
+ _currentUrl: 'https://testnet.toncenter.com/api/v2/jsonRPC',
298
+ _timeout: null,
299
+ [Symbol(kCapture)]: false
300
+ },
301
+ [Symbol(kCapture)]: false,
302
+ [Symbol(kBytesWritten)]: 0,
303
+ [Symbol(kNeedDrain)]: false,
304
+ [Symbol(corked)]: 0,
305
+ [Symbol(kOutHeaders)]: [Object: null prototype] {
306
+ accept: [Array],
307
+ 'content-type': [Array],
308
+ 'x-ton-client-version': [Array],
309
+ 'x-api-key': [Array],
310
+ 'user-agent': [Array],
311
+ 'content-length': [Array],
312
+ 'accept-encoding': [Array],
313
+ host: [Array]
314
+ },
315
+ [Symbol(errored)]: null,
316
+ [Symbol(kHighWaterMark)]: 16384,
317
+ [Symbol(kRejectNonStandardBodyWrites)]: false,
318
+ [Symbol(kUniqueHeaders)]: null
319
+ },
320
+ response: {
321
+ status: 500,
322
+ statusText: 'Internal Server Error',
323
+ headers: Object [AxiosHeaders] {
324
+ date: 'Mon, 21 Apr 2025 10:09:43 GMT',
325
+ 'content-type': 'application/json',
326
+ 'content-length': '615',
327
+ connection: 'close',
328
+ 'access-control-allow-origin': '*',
329
+ 'access-control-allow-methods': 'GET, POST, OPTIONS',
330
+ 'access-control-allow-headers': 'User-Agent,Keep-Alive,Content-Type,X-API-Key,X-Ton-Client-Version',
331
+ 'cf-cache-status': 'DYNAMIC',
332
+ 'report-to': '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=YVLASGJzeD3SZS1ZLO%2FppX2%2BU8mq6WES9eOgPVH0S7y7EpfKgpQtw7WIpMz3c6ev8GJufa67WLOLrsvKzMwBeF%2FbgqJWMDtUGUhPjYNrvoIuQIoZHktHnH%2FnlQiuqulZamih9mjvtA%3D%3D"}],"group":"cf-nel","max_age":604800}',
333
+ nel: '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}',
334
+ server: 'cloudflare',
335
+ 'cf-ray': '933c16652fce9666-KIX',
336
+ 'server-timing': 'cfL4;desc="?proto=TCP&rtt=203127&min_rtt=1249&rtt_var=119568&sent=3&recv=6&lost=0&retrans=0&sent_bytes=219&recv_bytes=1433&delivery_rate=1146517&cwnd=250&unsent_bytes=0&cid=fa82a441b8e09ee4&ts=1003&x=0"'
337
+ },
338
+ config: {
339
+ transitional: [Object],
340
+ adapter: [Array],
341
+ transformRequest: [Array],
342
+ transformResponse: [Array],
343
+ timeout: 60000000,
344
+ xsrfCookieName: 'XSRF-TOKEN',
345
+ xsrfHeaderName: 'X-XSRF-TOKEN',
346
+ maxContentLength: -1,
347
+ maxBodyLength: -1,
348
+ env: [Object],
349
+ validateStatus: [Function: validateStatus],
350
+ headers: [Object [AxiosHeaders]],
351
+ method: 'post',
352
+ url: 'https://testnet.toncenter.com/api/v2/jsonRPC',
353
+ data: '{"id":"1","jsonrpc":"2.0","method":"sendBoc","params":{"boc":"te6cckEBAgEAvgAB4YgBJ91mOd9lOHuRHS4q/OvwsLFdoxWA9yiAOjZvbP6fXqAFrOcyZdOmYRHGkgCPSuSKfW5tTL5TRnGmfQbMEeXgqZYw67wq6ApLAJBpQS8Gy0gfTsEzL6S1khb9vU9MlYDgYU1NGLtAMMz4AAAHsAAMAQCQYgBysBj6HzJJ7USYJy3Lk7TKBmBhZn5ri6wDZ7cKdD7WiaAvrwgAAAAAAAAAAAAAAAAAADAAAAUAAAAAJOxZjwAAA6wBMS0Aq2gOVA=="}}',
354
+ allowAbsoluteUrls: true
355
+ },
356
+ request: <ref *1> ClientRequest {
357
+ _events: [Object: null prototype],
358
+ _eventsCount: 7,
359
+ _maxListeners: undefined,
360
+ outputData: [],
361
+ outputSize: 0,
362
+ writable: true,
363
+ destroyed: false,
364
+ _last: true,
365
+ chunkedEncoding: false,
366
+ shouldKeepAlive: false,
367
+ maxRequestsOnConnectionReached: false,
368
+ _defaultKeepAlive: true,
369
+ useChunkedEncodingByDefault: true,
370
+ sendDate: false,
371
+ _removedConnection: false,
372
+ _removedContLen: false,
373
+ _removedTE: false,
374
+ strictContentLength: false,
375
+ _contentLength: '341',
376
+ _hasBody: true,
377
+ _trailer: '',
378
+ finished: true,
379
+ _headerSent: true,
380
+ _closed: false,
381
+ socket: [TLSSocket],
382
+ _header: 'POST /api/v2/jsonRPC HTTP/1.1\r\n' +
383
+ 'Accept: application/json, text/plain, */*\r\n' +
384
+ 'Content-Type: application/json\r\n' +
385
+ 'X-Ton-Client-Version: 13.11.2\r\n' +
386
+ 'X-API-Key: 73ee18f6b52a360e9db390f146a8c6af161549495d6e9794ae3efd2e412fa7a2\r\n' +
387
+ 'User-Agent: axios/1.8.4\r\n' +
388
+ 'Content-Length: 341\r\n' +
389
+ 'Accept-Encoding: gzip, compress, deflate, br\r\n' +
390
+ 'Host: testnet.toncenter.com\r\n' +
391
+ 'Connection: close\r\n' +
392
+ '\r\n',
393
+ _keepAliveTimeout: 0,
394
+ _onPendingData: [Function: nop],
395
+ agent: [Agent],
396
+ socketPath: undefined,
397
+ method: 'POST',
398
+ maxHeaderSize: undefined,
399
+ insecureHTTPParser: undefined,
400
+ joinDuplicateHeaders: undefined,
401
+ path: '/api/v2/jsonRPC',
402
+ _ended: true,
403
+ res: [IncomingMessage],
404
+ aborted: false,
405
+ timeoutCb: null,
406
+ upgradeOrConnect: false,
407
+ parser: null,
408
+ maxHeadersCount: null,
409
+ reusedSocket: false,
410
+ host: 'testnet.toncenter.com',
411
+ protocol: 'https:',
412
+ _redirectable: [Writable],
413
+ [Symbol(kCapture)]: false,
414
+ [Symbol(kBytesWritten)]: 0,
415
+ [Symbol(kNeedDrain)]: false,
416
+ [Symbol(corked)]: 0,
417
+ [Symbol(kOutHeaders)]: [Object: null prototype],
418
+ [Symbol(errored)]: null,
419
+ [Symbol(kHighWaterMark)]: 16384,
420
+ [Symbol(kRejectNonStandardBodyWrites)]: false,
421
+ [Symbol(kUniqueHeaders)]: null
422
+ },
423
+ data: {
424
+ ok: false,
425
+ error: 'LITE_SERVER_UNKNOWN: cannot apply external message to current state : External message was not accepted\n' +
426
+ 'Cannot run message on account: inbound external message rejected by transaction 93EEB31CEFB29C3DC88E97157E75F85858AED18AC07B94401D1B37B67F4FAF50:\n' +
427
+ 'exitcode=33, steps=23, gas_used=0\n' +
428
+ 'VM Log (truncated):\n' +
429
+ '...te NOW\n' +
430
+ 'execute LEQ\n' +
431
+ 'execute THROWIF 36\n' +
432
+ 'execute PUSH c4\n' +
433
+ 'execute CTOS\n' +
434
+ 'execute LDU 32\n' +
435
+ 'execute LDU 32\n' +
436
+ 'execute LDU 256\n' +
437
+ 'execute LDDICT\n' +
438
+ 'execute ENDS\n' +
439
+ 'execute XCPU s4,s3\n' +
440
+ 'execute EQUAL\n' +
441
+ 'execute THROWIFNOT 33\n' +
442
+ 'default exception handler, terminating vm with exit code 33\n',
443
+ code: 500
444
+ }
445
+ },
446
+ status: 500
447
+ }