Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ Flow (exact/upto): **Payer signs** a Permit2 permit + witness (destination, vali
| Network | Chain / Environment | PaymentPermit Address | x402ExactPermit2Proxy | x402BatchSettlement | x402UptoPermit2Proxy |
|-----------|---------------------|------------------------|------------------------|------------------------|------------------------|
| **TRON Mainnet** | Mainnet | [`TT8rEWbCoNX7vpEUauxb7rWJsTgs8vDLAn`](https://tronscan.org/#/contract/TT8rEWbCoNX7vpEUauxb7rWJsTgs8vDLAn) | [`TN49yaJmZMZoEdDCqjB4uPzQLHvYkGw95m`](https://tronscan.org/#/contract/TN49yaJmZMZoEdDCqjB4uPzQLHvYkGw95m) | [`TW9yNhTySkEHYfjnGQU2u4NAsdb1tW4fbm`](https://tronscan.org/#/contract/TW9yNhTySkEHYfjnGQU2u4NAsdb1tW4fbm) | [`TBLeFPkfDiweBbYmAPqnakaFBPDt9p93sR`](https://tronscan.org/#/contract/TBLeFPkfDiweBbYmAPqnakaFBPDt9p93sR) |
| **TRON Shasta** | Testnet | [`TR2XninQ3jsvRRLGTifFyUHTBysffooUjt`](https://shasta.tronscan.org/#/contract/TR2XninQ3jsvRRLGTifFyUHTBysffooUjt) | [`TGZkC38n14f2GpBWPMQLF2BpmcpWW3QNhg`](https://shasta.tronscan.org/#/contract/TGZkC38n14f2GpBWPMQLF2BpmcpWW3QNhg) | [`TA3MZHMLsgi8JMU1DL8H4gKp1YjJKATibf`](https://shasta.tronscan.org/#/contract/TA3MZHMLsgi8JMU1DL8H4gKp1YjJKATibf) | [`TMxpieW75DQiA9QaoTB1ifJWeQpuppSB1g`](https://shasta.tronscan.org/#/contract/TMxpieW75DQiA9QaoTB1ifJWeQpuppSB1g) |
| **TRON Nile** | Testnet | [`TFxDcGvS7zfQrS1YzcCMp673ta2NHHzsiH`](https://nile.tronscan.org/#/contract/TFxDcGvS7zfQrS1YzcCMp673ta2NHHzsiH) | [`TFGoaq2KjizijgjtkVxT7yjffW1A5T1j6F`](https://nile.tronscan.org/#/contract/TFGoaq2KjizijgjtkVxT7yjffW1A5T1j6F) | [`TWBwWHZWwH8TzrZnbxit1J645VGYY1K2fA`](https://nile.tronscan.org/#/contract/TWBwWHZWwH8TzrZnbxit1J645VGYY1K2fA) | [`TKvcqQ7S2bYyys5ZZNpjj9xGiPhiwzHq1K`](https://nile.tronscan.org/#/contract/TKvcqQ7S2bYyys5ZZNpjj9xGiPhiwzHq1K) |
| **TRON Shasta** | Testnet | [`TR2XninQ3jsvRRLGTifFyUHTBysffooUjt`](https://shasta.tronscan.org/#/contract/TR2XninQ3jsvRRLGTifFyUHTBysffooUjt) | — | — | — |
| **BSC Mainnet** | Mainnet | [`0x1825bB32db3443dEc2cc7508b2D818fc13EaD878`](https://bscscan.com/address/0x1825bB32db3443dEc2cc7508b2D818fc13EaD878) | [`0x402085c248EeA27D92E8b30b2C58ed07f9E20001`](https://bscscan.com/address/0x402085c248EeA27D92E8b30b2C58ed07f9E20001) | [`0x4020074e9dF2ce1deE5A9C1b5c3f541D02a10003`](https://bscscan.com/address/0x4020074e9dF2ce1deE5A9C1b5c3f541D02a10003) | [`0x4020A4f3b7b90ccA423B9fabCc0CE57C6C240002`](https://bscscan.com/address/0x4020A4f3b7b90ccA423B9fabCc0CE57C6C240002) |
| **BSC Testnet** | Testnet | [`0x1825bB32db3443dEc2cc7508b2D818fc13EaD878`](https://testnet.bscscan.com/address/0x1825bB32db3443dEc2cc7508b2D818fc13EaD878) | [`0x402085c248EeA27D92E8b30b2C58ed07f9E20001`](https://testnet.bscscan.com/address/0x402085c248EeA27D92E8b30b2C58ed07f9E20001) | [`0x4020074e9dF2ce1deE5A9C1b5c3f541D02a10003`](https://testnet.bscscan.com/address/0x4020074e9dF2ce1deE5A9C1b5c3f541D02a10003) | [`0x4020A4f3b7b90ccA423B9fabCc0CE57C6C240002`](https://testnet.bscscan.com/address/0x4020A4f3b7b90ccA423B9fabCc0CE57C6C240002) |

Expand All @@ -61,6 +61,7 @@ Flow (exact/upto): **Payer signs** a Permit2 permit + witness (destination, vali
| Network | Chain / Environment | ERC3009DepositCollector | Permit2DepositCollector |
|-----------|---------------------|--------------------------|--------------------------|
| **TRON Mainnet** | Mainnet | [`TTWA7aWMdx4jfcbp8XRAS2JAd2sUhyF9qj`](https://tronscan.org/#/contract/TTWA7aWMdx4jfcbp8XRAS2JAd2sUhyF9qj) | [`TAg5qqp1K9x5KeSTWnRa8LT79B5HUjzSHY`](https://tronscan.org/#/contract/TAg5qqp1K9x5KeSTWnRa8LT79B5HUjzSHY) |
| **TRON Shasta** | Testnet | [`TRd1KBfy1iUs6R45oZrtbLUjtcSKzXAvPG`](https://shasta.tronscan.org/#/contract/TRd1KBfy1iUs6R45oZrtbLUjtcSKzXAvPG) | [`TNmfrxbKCHqPUTj9zHVfg4Dq8WNZXPyf1x`](https://shasta.tronscan.org/#/contract/TNmfrxbKCHqPUTj9zHVfg4Dq8WNZXPyf1x) |
| **TRON Nile** | Testnet | [`TJUQ3BQt4YFg8EeevjiUa5LbfSGz5BxzRW`](https://nile.tronscan.org/#/contract/TJUQ3BQt4YFg8EeevjiUa5LbfSGz5BxzRW) | [`TEp6bCqSEKAr99sCiqANC84RtRwx7xGbA4`](https://nile.tronscan.org/#/contract/TEp6bCqSEKAr99sCiqANC84RtRwx7xGbA4) |
| **BSC Mainnet** | Mainnet | [`0x4020806089470a89826cB9fB1f4059150b550004`](https://bscscan.com/address/0x4020806089470a89826cB9fB1f4059150b550004) | [`0x4020425FAf3B746C082C2f942b4E5159887B0005`](https://bscscan.com/address/0x4020425FAf3B746C082C2f942b4E5159887B0005) |
| **BSC Testnet** | Testnet | [`0x4020806089470a89826cB9fB1f4059150b550004`](https://testnet.bscscan.com/address/0x4020806089470a89826cB9fB1f4059150b550004) | [`0x4020425FAf3B746C082C2f942b4E5159887B0005`](https://testnet.bscscan.com/address/0x4020425FAf3B746C082C2f942b4E5159887B0005) |
Expand Down
4 changes: 3 additions & 1 deletion deployTron/02_deploy_x402ExactPermit2Proxy.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DeployFunction } from 'hardhat-deploy/types';

// Permit2 address per Tron network (Shasta has no Permit2 deployed).
// Permit2 address per Tron network.
// Override with PERMIT2_ADDRESS to target a different one.
// tron (mainnet): TTJxU3P8rHycAyFY4kVtGNfmnMH4ezcuM9
// nile (testnet): TYQuuhGbEMxF7nZxUHV3uHJxAVVAegNU9h
// shasta (testnet): TJMkP7a3ucTMkvi17p7ChhTCw6zriFX3tg
const PERMIT2_BY_NETWORK: Record<string, string> = {
tron: '0xbe365314f2e77fd1257d60c346bb32dbda369403',
shasta: '0x5c045a33b71c50eecc94618451bf7436ded5564f',
nile: '0xf62f506D1FaA02e2354a9886B4A200496EE96F4b',
};

Expand Down
4 changes: 3 additions & 1 deletion deployTron/04_deploy_x402UptoPermit2Proxy.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DeployFunction } from 'hardhat-deploy/types';

// Permit2 address per Tron network (Shasta has no Permit2 deployed).
// Permit2 address per Tron network.
// Override with PERMIT2_ADDRESS to target a different one.
// tron (mainnet): TTJxU3P8rHycAyFY4kVtGNfmnMH4ezcuM9
// nile (testnet): TYQuuhGbEMxF7nZxUHV3uHJxAVVAegNU9h
// shasta (testnet): TJMkP7a3ucTMkvi17p7ChhTCw6zriFX3tg
const PERMIT2_BY_NETWORK: Record<string, string> = {
tron: '0xbe365314f2e77fd1257d60c346bb32dbda369403',
shasta: '0x5c045a33b71c50eecc94618451bf7436ded5564f',
nile: '0xf62f506D1FaA02e2354a9886B4A200496EE96F4b',
};

Expand Down
4 changes: 3 additions & 1 deletion deployTron/06_deploy_Permit2DepositCollector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ import { DeployFunction } from 'hardhat-deploy/types';
// eslint-disable-next-line @typescript-eslint/no-var-requires
const TronWeb = require('tronweb').TronWeb || require('tronweb');

// Permit2 address per Tron network (Shasta has no Permit2 deployed).
// Permit2 address per Tron network.
// Override with PERMIT2_ADDRESS to target a different one.
// tron (mainnet): TTJxU3P8rHycAyFY4kVtGNfmnMH4ezcuM9
// nile (testnet): TYQuuhGbEMxF7nZxUHV3uHJxAVVAegNU9h
// shasta (testnet): TJMkP7a3ucTMkvi17p7ChhTCw6zriFX3tg
const PERMIT2_BY_NETWORK: Record<string, string> = {
tron: '0xbe365314f2e77fd1257d60c346bb32dbda369403',
shasta: '0x5c045a33b71c50eecc94618451bf7436ded5564f',
nile: '0xf62f506D1FaA02e2354a9886B4A200496EE96F4b',
};

Expand Down
Loading