t402 1.9.0__py3-none-any.whl → 1.9.1__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.
- t402/__init__.py +2 -1
- t402/bridge/client.py +13 -5
- t402/bridge/constants.py +3 -1
- t402/bridge/router.py +1 -1
- t402/bridge/scan.py +3 -1
- t402/chains.py +268 -1
- t402/cli.py +31 -9
- t402/common.py +2 -0
- t402/cosmos_paywall_template.py +2 -0
- t402/encoding.py +9 -3
- t402/erc4337/accounts.py +56 -51
- t402/erc4337/bundlers.py +105 -99
- t402/erc4337/paymasters.py +100 -109
- t402/erc4337/types.py +39 -26
- t402/evm_paywall_template.py +1 -1
- t402/fastapi/middleware.py +1 -3
- t402/mcp/server.py +79 -46
- t402/near_paywall_template.py +2 -0
- t402/networks.py +34 -1
- t402/paywall.py +1 -3
- t402/schemes/__init__.py +124 -0
- t402/schemes/aptos/__init__.py +70 -0
- t402/schemes/aptos/constants.py +349 -0
- t402/schemes/aptos/exact_direct/__init__.py +44 -0
- t402/schemes/aptos/exact_direct/client.py +202 -0
- t402/schemes/aptos/exact_direct/facilitator.py +426 -0
- t402/schemes/aptos/exact_direct/server.py +272 -0
- t402/schemes/aptos/types.py +237 -0
- t402/schemes/evm/__init__.py +46 -1
- t402/schemes/evm/exact/__init__.py +11 -0
- t402/schemes/evm/exact/client.py +3 -1
- t402/schemes/evm/exact/facilitator.py +894 -0
- t402/schemes/evm/exact/server.py +1 -1
- t402/schemes/evm/exact_legacy/__init__.py +38 -0
- t402/schemes/evm/exact_legacy/client.py +291 -0
- t402/schemes/evm/exact_legacy/facilitator.py +777 -0
- t402/schemes/evm/exact_legacy/server.py +231 -0
- t402/schemes/evm/upto/__init__.py +12 -0
- t402/schemes/evm/upto/client.py +6 -2
- t402/schemes/evm/upto/facilitator.py +625 -0
- t402/schemes/evm/upto/server.py +243 -0
- t402/schemes/evm/upto/types.py +3 -1
- t402/schemes/interfaces.py +6 -2
- t402/schemes/near/__init__.py +112 -0
- t402/schemes/near/constants.py +189 -0
- t402/schemes/near/exact_direct/__init__.py +21 -0
- t402/schemes/near/exact_direct/client.py +204 -0
- t402/schemes/near/exact_direct/facilitator.py +455 -0
- t402/schemes/near/exact_direct/server.py +303 -0
- t402/schemes/near/types.py +419 -0
- t402/schemes/polkadot/__init__.py +72 -0
- t402/schemes/polkadot/constants.py +155 -0
- t402/schemes/polkadot/exact_direct/__init__.py +43 -0
- t402/schemes/polkadot/exact_direct/client.py +235 -0
- t402/schemes/polkadot/exact_direct/facilitator.py +428 -0
- t402/schemes/polkadot/exact_direct/server.py +292 -0
- t402/schemes/polkadot/types.py +385 -0
- t402/schemes/registry.py +6 -2
- t402/schemes/stacks/__init__.py +68 -0
- t402/schemes/stacks/constants.py +122 -0
- t402/schemes/stacks/exact_direct/__init__.py +43 -0
- t402/schemes/stacks/exact_direct/client.py +222 -0
- t402/schemes/stacks/exact_direct/facilitator.py +424 -0
- t402/schemes/stacks/exact_direct/server.py +292 -0
- t402/schemes/stacks/types.py +380 -0
- t402/schemes/svm/__init__.py +29 -0
- t402/schemes/svm/exact/__init__.py +35 -0
- t402/schemes/svm/exact/client.py +23 -0
- t402/schemes/svm/exact/facilitator.py +24 -0
- t402/schemes/svm/exact/server.py +20 -0
- t402/schemes/tezos/__init__.py +84 -0
- t402/schemes/tezos/constants.py +372 -0
- t402/schemes/tezos/exact_direct/__init__.py +22 -0
- t402/schemes/tezos/exact_direct/client.py +226 -0
- t402/schemes/tezos/exact_direct/facilitator.py +491 -0
- t402/schemes/tezos/exact_direct/server.py +277 -0
- t402/schemes/tezos/types.py +220 -0
- t402/schemes/ton/__init__.py +9 -2
- t402/schemes/ton/exact/__init__.py +7 -0
- t402/schemes/ton/exact/facilitator.py +730 -0
- t402/schemes/ton/exact/server.py +1 -1
- t402/schemes/tron/__init__.py +11 -2
- t402/schemes/tron/exact/__init__.py +9 -0
- t402/schemes/tron/exact/facilitator.py +673 -0
- t402/schemes/tron/exact/server.py +1 -1
- t402/stacks_paywall_template.py +2 -0
- t402/svm.py +45 -11
- t402/svm_paywall_template.py +1 -1
- t402/ton.py +5 -1
- t402/ton_paywall_template.py +1 -192
- t402/tron.py +2 -0
- t402/tron_paywall_template.py +2 -0
- t402/types.py +3 -1
- t402/wdk/errors.py +15 -5
- t402/wdk/signer.py +11 -2
- {t402-1.9.0.dist-info → t402-1.9.1.dist-info}/METADATA +42 -1
- t402-1.9.1.dist-info/RECORD +125 -0
- t402-1.9.0.dist-info/RECORD +0 -72
- {t402-1.9.0.dist-info → t402-1.9.1.dist-info}/WHEEL +0 -0
- {t402-1.9.0.dist-info → t402-1.9.1.dist-info}/entry_points.txt +0 -0
t402/schemes/ton/exact/server.py
CHANGED
|
@@ -99,7 +99,7 @@ class ExactTonServerScheme:
|
|
|
99
99
|
amount_decimal = Decimal(str(price))
|
|
100
100
|
|
|
101
101
|
# Convert to atomic units
|
|
102
|
-
atomic_amount = int(amount_decimal * Decimal(10
|
|
102
|
+
atomic_amount = int(amount_decimal * Decimal(10**decimals))
|
|
103
103
|
|
|
104
104
|
# Build extra metadata
|
|
105
105
|
extra = {
|
t402/schemes/tron/__init__.py
CHANGED
|
@@ -9,14 +9,23 @@ Supported schemes:
|
|
|
9
9
|
from t402.schemes.tron.exact import (
|
|
10
10
|
ExactTronClientScheme,
|
|
11
11
|
ExactTronServerScheme,
|
|
12
|
+
ExactTronFacilitatorScheme,
|
|
13
|
+
ExactTronFacilitatorConfig,
|
|
12
14
|
TronSigner,
|
|
15
|
+
FacilitatorTronSigner,
|
|
13
16
|
SCHEME_EXACT,
|
|
14
17
|
)
|
|
15
18
|
|
|
16
19
|
__all__ = [
|
|
17
|
-
#
|
|
20
|
+
# Client
|
|
18
21
|
"ExactTronClientScheme",
|
|
19
|
-
"ExactTronServerScheme",
|
|
20
22
|
"TronSigner",
|
|
23
|
+
# Server
|
|
24
|
+
"ExactTronServerScheme",
|
|
25
|
+
# Facilitator
|
|
26
|
+
"ExactTronFacilitatorScheme",
|
|
27
|
+
"ExactTronFacilitatorConfig",
|
|
28
|
+
"FacilitatorTronSigner",
|
|
29
|
+
# Constants
|
|
21
30
|
"SCHEME_EXACT",
|
|
22
31
|
]
|
|
@@ -15,6 +15,11 @@ from t402.schemes.tron.exact.client import (
|
|
|
15
15
|
from t402.schemes.tron.exact.server import (
|
|
16
16
|
ExactTronServerScheme,
|
|
17
17
|
)
|
|
18
|
+
from t402.schemes.tron.exact.facilitator import (
|
|
19
|
+
ExactTronFacilitatorScheme,
|
|
20
|
+
ExactTronFacilitatorConfig,
|
|
21
|
+
FacilitatorTronSigner,
|
|
22
|
+
)
|
|
18
23
|
|
|
19
24
|
__all__ = [
|
|
20
25
|
# Client
|
|
@@ -22,6 +27,10 @@ __all__ = [
|
|
|
22
27
|
"TronSigner",
|
|
23
28
|
# Server
|
|
24
29
|
"ExactTronServerScheme",
|
|
30
|
+
# Facilitator
|
|
31
|
+
"ExactTronFacilitatorScheme",
|
|
32
|
+
"ExactTronFacilitatorConfig",
|
|
33
|
+
"FacilitatorTronSigner",
|
|
25
34
|
# Constants
|
|
26
35
|
"SCHEME_EXACT",
|
|
27
36
|
]
|