x402/e2e/facilitators/python/test.config.json
Аркадий Стена e0ba324d0f
feat: add TVM exact-payment mechanism to Python SDK (#1944)
* feat: add TVM exact-payment mechanism to Python SDK

- add TVM exact client, server, and facilitator implementations
- add TVM signers, codecs, provider, and settlement helpers
- add unit and integration coverage for TON testnet/mainnet flows
- add Python examples and e2e wiring for TVM

* Enable TVM exact flows in Python e2e and tighten facilitator validation

Add TVM support to the Python e2e clients and servers, switch TVM usage to direct `ExactTvm*Scheme` registration after removing the old register helpers, and refresh docs/examples for testnet setup.
Also reject exact TVM settlements with excessively large attached TON amounts and cover the new validation with tests.

* fix: clarify minimum balance of the facilitator

* refactor(tvm): release settlement cache entry on confirmed settlement

  On-chain seqno advances after a successful relay, so any retry of the same settlement BOC will fail at the W5 contract's seqno check regardless of the dedup reservation. Drop the entry as soon as the confirmation worker records success, so the invariant becomes "every is_duplicate=False is paired with a release" and TTL pruning is left as a crash safety-net only.

* feat(tvm): add TonAPI provider support

* feat(tvm): update e2e tests  to make them compatible with new providers

* fix(tvm): update timeouts

* fix(tvm): increase http client timeout

* fix(tvm): align unit tests

* revert(e2e): remove .env-local config load

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-08 16:13:22 +02:00

49 lines
768 B
JSON

{
"name": "python",
"type": "facilitator",
"language": "python",
"protocolFamilies": [
"evm",
"svm",
"tvm"
],
"x402Versions": [
1,
2
],
"extensions": [
"bazaar",
"eip2612GasSponsoring",
"erc20ApprovalGasSponsoring"
],
"schemes": [
"exact",
"upto"
],
"evm": {
"assetTransferMethods": [
"eip3009",
"permit2"
]
},
"environment": {
"required": [
"PORT"
],
"optional": [
"EVM_NETWORK",
"SVM_NETWORK",
"TVM_NETWORK",
"EVM_RPC_URL",
"EVM_PRIVATE_KEY",
"SVM_PRIVATE_KEY",
"TVM_PRIVATE_KEY",
"TVM_PROVIDER",
"TONCENTER_API_KEY",
"TONCENTER_BASE_URL",
"TONAPI_API_KEY",
"TONAPI_BASE_URL"
]
}
}