Skip to content

Commit

Permalink
(feat) Start of a token manager which can cope with Tether
Browse files Browse the repository at this point in the history
  • Loading branch information
rrw-zilliqa committed Jan 14, 2025
1 parent 011c1e0 commit 03eaa0a
Show file tree
Hide file tree
Showing 27 changed files with 1,577 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"transactions": [
{
"hash": null,
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0x2ee8e8d7c113bb7c180f4755f06ed50be53bede5",
"function": "registerToken(address,(address,address,uint256))",
"arguments": [
"0x80D55c03180349Fff4a229102F62328220A96444",
"(0x8DEAdC20f7218994c86b59eE1D5c7979fFcAa893, 0x4fa6148C9DAbC7A737422fb1b3AB9088c878d26C, 32769)"
],
"transaction": {
"from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e",
"to": "0x2ee8e8d7c113bb7c180f4755f06ed50be53bede5",
"gas": "0xfdb5",
"value": "0x0",
"input": "0x8bc76f7400000000000000000000000080d55c03180349fff4a229102f62328220a964440000000000000000000000008deadc20f7218994c86b59ee1d5c7979ffcaa8930000000000000000000000004fa6148c9dabc7a737422fb1b3ab9088c878d26c0000000000000000000000000000000000000000000000000000000000008001",
"nonce": "0x34",
"chainId": "0x1"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1736811703,
"chain": 1,
"commit": "011c1e0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"transactions": [
{
"hash": null,
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0x2ee8e8d7c113bb7c180f4755f06ed50be53bede5",
"function": "registerToken(address,(address,address,uint256))",
"arguments": [
"0x80D55c03180349Fff4a229102F62328220A96444",
"(0x8DEAdC20f7218994c86b59eE1D5c7979fFcAa893, 0x4fa6148C9DAbC7A737422fb1b3AB9088c878d26C, 32769)"
],
"transaction": {
"from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e",
"to": "0x2ee8e8d7c113bb7c180f4755f06ed50be53bede5",
"gas": "0xfdb5",
"value": "0x0",
"input": "0x8bc76f7400000000000000000000000080d55c03180349fff4a229102f62328220a964440000000000000000000000008deadc20f7218994c86b59ee1d5c7979ffcaa8930000000000000000000000004fa6148c9dabc7a737422fb1b3ab9088c878d26c0000000000000000000000000000000000000000000000000000000000008001",
"nonce": "0x34",
"chainId": "0x1"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1736811703,
"chain": 1,
"commit": "011c1e0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"transactions": [
{
"hash": "0x30243cd9ad5fa4c93722e66ed929acca10bf6f8df9124429677719a57a78e6ee",
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0x2ee8e8d7c113bb7c180f4755f06ed50be53bede5",
"function": "registerToken(address,(address,address,uint256))",
"arguments": [
"0x80D55c03180349Fff4a229102F62328220A96444",
"(0x8DEAdC20f7218994c86b59eE1D5c7979fFcAa893, 0x4fa6148C9DAbC7A737422fb1b3AB9088c878d26C, 32769)"
],
"transaction": {
"from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e",
"to": "0x2ee8e8d7c113bb7c180f4755f06ed50be53bede5",
"gas": "0xfdb5",
"value": "0x0",
"input": "0x8bc76f7400000000000000000000000080d55c03180349fff4a229102f62328220a964440000000000000000000000008deadc20f7218994c86b59ee1d5c7979ffcaa8930000000000000000000000004fa6148c9dabc7a737422fb1b3ab9088c878d26c0000000000000000000000000000000000000000000000000000000000008001",
"nonce": "0x34",
"chainId": "0x1"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"status": "0x1",
"cumulativeGasUsed": "0x378de5",
"logs": [
{
"address": "0x2ee8e8d7c113bb7c180f4755f06ed50be53bede5",
"topics": [
"0xacee94c8a79111860852775471f35a102ad3dc32ff2716802bd1000ceb51f5a8",
"0x00000000000000000000000080d55c03180349fff4a229102f62328220a96444"
],
"data": "0x0000000000000000000000008deadc20f7218994c86b59ee1d5c7979ffcaa8930000000000000000000000004fa6148c9dabc7a737422fb1b3ab9088c878d26c0000000000000000000000000000000000000000000000000000000000008001",
"blockHash": "0xc7c5031c5887c5e65d76cac605b6f02870e7d1c0ecf612ef4f540279f584dfa4",
"blockNumber": "0x149e0e3",
"transactionHash": "0x30243cd9ad5fa4c93722e66ed929acca10bf6f8df9124429677719a57a78e6ee",
"transactionIndex": "0x32",
"logIndex": "0x4b",
"removed": false
}
],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000200000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000800000800000000000000",
"type": "0x2",
"transactionHash": "0x30243cd9ad5fa4c93722e66ed929acca10bf6f8df9124429677719a57a78e6ee",
"transactionIndex": "0x32",
"blockHash": "0xc7c5031c5887c5e65d76cac605b6f02870e7d1c0ecf612ef4f540279f584dfa4",
"blockNumber": "0x149e0e3",
"gasUsed": "0xad7a",
"effectiveGasPrice": "0xa74c1323",
"from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e",
"to": "0x2ee8e8d7c113bb7c180f4755f06ed50be53bede5",
"contractAddress": null
}
],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1736811725,
"chain": 1,
"commit": "011c1e0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"transactions": [
{
"hash": "0x30243cd9ad5fa4c93722e66ed929acca10bf6f8df9124429677719a57a78e6ee",
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0x2ee8e8d7c113bb7c180f4755f06ed50be53bede5",
"function": "registerToken(address,(address,address,uint256))",
"arguments": [
"0x80D55c03180349Fff4a229102F62328220A96444",
"(0x8DEAdC20f7218994c86b59eE1D5c7979fFcAa893, 0x4fa6148C9DAbC7A737422fb1b3AB9088c878d26C, 32769)"
],
"transaction": {
"from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e",
"to": "0x2ee8e8d7c113bb7c180f4755f06ed50be53bede5",
"gas": "0xfdb5",
"value": "0x0",
"input": "0x8bc76f7400000000000000000000000080d55c03180349fff4a229102f62328220a964440000000000000000000000008deadc20f7218994c86b59ee1d5c7979ffcaa8930000000000000000000000004fa6148c9dabc7a737422fb1b3ab9088c878d26c0000000000000000000000000000000000000000000000000000000000008001",
"nonce": "0x34",
"chainId": "0x1"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"status": "0x1",
"cumulativeGasUsed": "0x378de5",
"logs": [
{
"address": "0x2ee8e8d7c113bb7c180f4755f06ed50be53bede5",
"topics": [
"0xacee94c8a79111860852775471f35a102ad3dc32ff2716802bd1000ceb51f5a8",
"0x00000000000000000000000080d55c03180349fff4a229102f62328220a96444"
],
"data": "0x0000000000000000000000008deadc20f7218994c86b59ee1d5c7979ffcaa8930000000000000000000000004fa6148c9dabc7a737422fb1b3ab9088c878d26c0000000000000000000000000000000000000000000000000000000000008001",
"blockHash": "0xc7c5031c5887c5e65d76cac605b6f02870e7d1c0ecf612ef4f540279f584dfa4",
"blockNumber": "0x149e0e3",
"transactionHash": "0x30243cd9ad5fa4c93722e66ed929acca10bf6f8df9124429677719a57a78e6ee",
"transactionIndex": "0x32",
"logIndex": "0x4b",
"removed": false
}
],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000200000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000800000800000000000000",
"type": "0x2",
"transactionHash": "0x30243cd9ad5fa4c93722e66ed929acca10bf6f8df9124429677719a57a78e6ee",
"transactionIndex": "0x32",
"blockHash": "0xc7c5031c5887c5e65d76cac605b6f02870e7d1c0ecf612ef4f540279f584dfa4",
"blockNumber": "0x149e0e3",
"gasUsed": "0xad7a",
"effectiveGasPrice": "0xa74c1323",
"from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e",
"to": "0x2ee8e8d7c113bb7c180f4755f06ed50be53bede5",
"contractAddress": null
}
],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1736811725,
"chain": 1,
"commit": "011c1e0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"transactions": [
{
"hash": null,
"transactionType": "CREATE",
"contractName": "ApproveCombiner",
"contractAddress": "0x1da187692773bdb43737d90d6c218b40b042e9c9",
"function": null,
"arguments": [
"0xdAC17F958D2ee523a2206206994597C13D831ec7"
],
"transaction": {
"from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e",
"gas": "0x393a5",
"value": "0x0",
"input": "0x60803461007357601f61026638819003918201601f19168301916001600160401b038311848410176100775780849260209460405283398101031261007357516001600160a01b03811690819003610073575f80546001600160a01b0319169190911790556040516101da908161008c8239f35b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe608060408181526004361015610013575f80fd5b5f91823560e01c908163095ea7b31461005f5750636115092314610035575f80fd5b3461005b578160031936011261005b57905490516001600160a01b039091168152602090f35b5080fd5b82843461014f578160031936011261014f576004356001600160a01b03818116929183900361005b578154169163095ea7b360e01b808652816004870152826024870152602095868160448187895af180156101455791604491889493610128575b5084875196879485938452600484015260243560248401525af190811561011d57506100f0575b505160018152f35b61010f90833d8511610116575b6101078183610152565b810190610188565b50826100e8565b503d6100fd565b8351903d90823e3d90fd5b61013e90853d8711610116576101078183610152565b50886100c1565b86513d86823e3d90fd5b80fd5b90601f8019910116810190811067ffffffffffffffff82111761017457604052565b634e487b7160e01b5f52604160045260245ffd5b908160209103126101a0575180151581036101a05790565b5f80fdfea2646970667358221220c8b006115e280352a64b04910e3637db42be74242e06c6a7375d1ec7ce4528eb64736f6c63430008140033000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7",
"nonce": "0x41",
"chainId": "0x1"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1736856205,
"chain": 1,
"commit": "011c1e0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"transactions": [
{
"hash": null,
"transactionType": "CREATE",
"contractName": "ApproveCombiner",
"contractAddress": "0x1da187692773bdb43737d90d6c218b40b042e9c9",
"function": null,
"arguments": [
"0xdAC17F958D2ee523a2206206994597C13D831ec7"
],
"transaction": {
"from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e",
"gas": "0x393a5",
"value": "0x0",
"input": "0x60803461007357601f61026638819003918201601f19168301916001600160401b038311848410176100775780849260209460405283398101031261007357516001600160a01b03811690819003610073575f80546001600160a01b0319169190911790556040516101da908161008c8239f35b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe608060408181526004361015610013575f80fd5b5f91823560e01c908163095ea7b31461005f5750636115092314610035575f80fd5b3461005b578160031936011261005b57905490516001600160a01b039091168152602090f35b5080fd5b82843461014f578160031936011261014f576004356001600160a01b03818116929183900361005b578154169163095ea7b360e01b808652816004870152826024870152602095868160448187895af180156101455791604491889493610128575b5084875196879485938452600484015260243560248401525af190811561011d57506100f0575b505160018152f35b61010f90833d8511610116575b6101078183610152565b810190610188565b50826100e8565b503d6100fd565b8351903d90823e3d90fd5b61013e90853d8711610116576101078183610152565b50886100c1565b86513d86823e3d90fd5b80fd5b90601f8019910116810190811067ffffffffffffffff82111761017457604052565b634e487b7160e01b5f52604160045260245ffd5b908160209103126101a0575180151581036101a05790565b5f80fdfea2646970667358221220c8b006115e280352a64b04910e3637db42be74242e06c6a7375d1ec7ce4528eb64736f6c63430008140033000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7",
"nonce": "0x41",
"chainId": "0x1"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1736856205,
"chain": 1,
"commit": "011c1e0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"transactions": [
{
"hash": "0xbf7d3dddac0ac202ea91432b81582073e518fdce7cdf6ef3a47b1de41f2c96c6",
"transactionType": "CREATE",
"contractName": "ApproveCombiner",
"contractAddress": "0x1da187692773bdb43737d90d6c218b40b042e9c9",
"function": null,
"arguments": [
"0xdAC17F958D2ee523a2206206994597C13D831ec7"
],
"transaction": {
"from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e",
"gas": "0x393a5",
"value": "0x0",
"input": "0x60803461007357601f61026638819003918201601f19168301916001600160401b038311848410176100775780849260209460405283398101031261007357516001600160a01b03811690819003610073575f80546001600160a01b0319169190911790556040516101da908161008c8239f35b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe608060408181526004361015610013575f80fd5b5f91823560e01c908163095ea7b31461005f5750636115092314610035575f80fd5b3461005b578160031936011261005b57905490516001600160a01b039091168152602090f35b5080fd5b82843461014f578160031936011261014f576004356001600160a01b03818116929183900361005b578154169163095ea7b360e01b808652816004870152826024870152602095868160448187895af180156101455791604491889493610128575b5084875196879485938452600484015260243560248401525af190811561011d57506100f0575b505160018152f35b61010f90833d8511610116575b6101078183610152565b810190610188565b50826100e8565b503d6100fd565b8351903d90823e3d90fd5b61013e90853d8711610116576101078183610152565b50886100c1565b86513d86823e3d90fd5b80fd5b90601f8019910116810190811067ffffffffffffffff82111761017457604052565b634e487b7160e01b5f52604160045260245ffd5b908160209103126101a0575180151581036101a05790565b5f80fdfea2646970667358221220c8b006115e280352a64b04910e3637db42be74242e06c6a7375d1ec7ce4528eb64736f6c63430008140033000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7",
"nonce": "0x41",
"chainId": "0x1"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"status": "0x1",
"cumulativeGasUsed": "0x6e6fcd",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"type": "0x2",
"transactionHash": "0xbf7d3dddac0ac202ea91432b81582073e518fdce7cdf6ef3a47b1de41f2c96c6",
"transactionIndex": "0x5f",
"blockHash": "0xd5ef7c42300f4a10e3d745ab498869e93b01a9830600aacf8d24d3e418c8e7d5",
"blockNumber": "0x149ef4a",
"gasUsed": "0x2c058",
"effectiveGasPrice": "0x122b0901d",
"from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e",
"to": null,
"contractAddress": "0x1da187692773bdb43737d90d6c218b40b042e9c9"
}
],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1736856235,
"chain": 1,
"commit": "011c1e0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"transactions": [
{
"hash": "0x46fd044e0b2b6ed0e5d041eccef6e2a513c0de90d18b1118ea8e31b144907d0a",
"transactionType": "CREATE",
"contractName": "ApproveCombiner",
"contractAddress": "0xb78387308fd5e722197ebd5f3320a27f7630a7c0",
"function": null,
"arguments": [
"0xdAC17F958D2ee523a2206206994597C13D831ec7"
],
"transaction": {
"from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e",
"gas": "0x393a5",
"value": "0x0",
"input": "0x60803461007357601f61026638819003918201601f19168301916001600160401b038311848410176100775780849260209460405283398101031261007357516001600160a01b03811690819003610073575f80546001600160a01b0319169190911790556040516101da908161008c8239f35b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe608060408181526004361015610013575f80fd5b5f91823560e01c908163095ea7b31461005f5750636115092314610035575f80fd5b3461005b578160031936011261005b57905490516001600160a01b039091168152602090f35b5080fd5b82843461014f578160031936011261014f576004356001600160a01b03818116929183900361005b578154169163095ea7b360e01b808652816004870152826024870152602095868160448187895af180156101455791604491889493610128575b5084875196879485938452600484015260243560248401525af190811561011d57506100f0575b505160018152f35b61010f90833d8511610116575b6101078183610152565b810190610188565b50826100e8565b503d6100fd565b8351903d90823e3d90fd5b61013e90853d8711610116576101078183610152565b50886100c1565b86513d86823e3d90fd5b80fd5b90601f8019910116810190811067ffffffffffffffff82111761017457604052565b634e487b7160e01b5f52604160045260245ffd5b908160209103126101a0575180151581036101a05790565b5f80fdfea2646970667358221220c8b006115e280352a64b04910e3637db42be74242e06c6a7375d1ec7ce4528eb64736f6c63430008140033000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7",
"nonce": "0x42",
"chainId": "0x1"
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"status": "0x1",
"cumulativeGasUsed": "0x107822f",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"type": "0x2",
"transactionHash": "0x46fd044e0b2b6ed0e5d041eccef6e2a513c0de90d18b1118ea8e31b144907d0a",
"transactionIndex": "0xba",
"blockHash": "0x05c80e1941f58ad0ef9f715f2dc52af27c4820b0f316fe353d62696b102ee80c",
"blockNumber": "0x149ef56",
"gasUsed": "0x2c058",
"effectiveGasPrice": "0x12eb781d6",
"from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e",
"to": null,
"contractAddress": "0xb78387308fd5e722197ebd5f3320a27f7630a7c0"
}
],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1736856379,
"chain": 1,
"commit": "011c1e0"
}
Loading

0 comments on commit 03eaa0a

Please sign in to comment.