Skip to content

Instantly share code, notes, and snippets.

View pasevin's full-sized avatar
💭
I may be slow to respond.

Aleksandr Pasevin pasevin

💭
I may be slow to respond.
View GitHub Profile

ERC-3643 / T-REX Teardown

1. Mental model

In normal ERC-20:

flowchart LR
  A[Wallet A] -->|transfer| T[ERC-20 Token]
 T --> B[Wallet B]
# SubQuery Deployments
| Network | IPFS CID | Deployed | Project |
| -------------------------- | ---------------------------------------------- | -------- | -------------------------------------------------------------------------------------------------------- |
| **arbitrum-mainnet** | QmWfHZewmgdLj3U2FRvS3NDm65vzYjumqVZxZHfk4Wc5WL | ✅ | [https://app.subquery.network/explorer/project/0x82](https://app.subquery.network/explorer/project/0x82) |
| **arbitrum-sepolia** | QmSjbjPd7V3PABfqngdFtq9vXhqRLRU6eGkPjhyPcUvio2 | ✅ | [https://app.subquery.network/explorer/project/0x83](https://app.subquery.network/explorer/project/0x83) |
| **avalanche-fuji** | QmXaULcS7HrWztaCzQbhJRiff7ErkVNifWBZV6sNfX38k8 | ✅ | [https://app.subquery.network/explorer/project/0x84](https://app.subquery.network/explorer/project/0x84) |
| **avala
{
"abi": [
{
"type": "constructor",
"inputs": [
{
"name": "_logic",
"type": "address",
"internalType": "address"
},
@pasevin
pasevin / contracts...artifacts...build-info...6de49643a2c642b203204c927fd67bd8.json
Created October 23, 2024 14:09
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
This file has been truncated, but you can view the full file.
{
"id": "6de49643a2c642b203204c927fd67bd8",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.26",
"solcLongVersion": "0.8.26+commit.8a97fa7a",
"input": {
"language": "Solidity",
"sources": {
"contracts/MyUpgradeableV2.sol": {
@pasevin
pasevin / contracts...artifacts...MyUpgradeable.json
Created October 23, 2024 13:52
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
@pasevin
pasevin / contracts...artifacts...build-info...381327ec55246b4a7859639e37859500.json
Created October 23, 2024 13:48
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
This file has been truncated, but you can view the full file.
{
"id": "381327ec55246b4a7859639e37859500",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.26",
"solcLongVersion": "0.8.26+commit.8a97fa7a",
"input": {
"language": "Solidity",
"sources": {
"contracts/MyUpgradeable.sol": {
@pasevin
pasevin / contracts...artifacts...build-info...2630c44b7716e737c9df9225c9ed5367.json
Created October 23, 2024 13:43
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
This file has been truncated, but you can view the full file.
{
"id": "2630c44b7716e737c9df9225c9ed5367",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.26",
"solcLongVersion": "0.8.26+commit.8a97fa7a",
"input": {
"language": "Solidity",
"sources": {
"contracts/InputTester.sol": {
@pasevin
pasevin / contracts...artifacts...InputTester.json
Created October 23, 2024 13:33
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
This file has been truncated, but you can view the full file.
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
This file has been truncated, but you can view the full file.
{
"id": "b5afe1d4f024079d687bf9184b1ad401",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.4",
"solcLongVersion": "0.8.4+commit.c7e474f2",
"input": {
"language": "Solidity",
"sources": {
"contracts/Greeter.sol": {
This file has been truncated, but you can view the full file.
{
"id": "569487d9d330123e48bbd19f3a1946a8",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.4",
"solcLongVersion": "0.8.4+commit.c7e474f2",
"input": {
"language": "Solidity",
"sources": {
"contracts/Greeter.sol": {