Skip to content

Commit

Permalink
Replace contracts with ABI
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchiavini committed Nov 21, 2023
1 parent e89e439 commit de1e9de
Show file tree
Hide file tree
Showing 41 changed files with 4,765 additions and 4,476 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,4 @@ jobs:
- name: Run Tests
run: pytest
env:
ETHERSCAN_TOKEN: ${{ secrets.ETHERSKEM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WEB3_INFURA_PROJECT_ID: ${{ secrets.INFURA_TOKEN }}
WEB3_ALCHEMY_PROJECT_ID: ${{secrets.ALCHEMY_API_KEY}}
DRPC_KEY: ${{ secrets.DRPC_KEY }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ __pycache__/
.DS_Store
venv/
bvenv/
.env
2 changes: 1 addition & 1 deletion contracts/mainnet/MetaRegistry.vy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @version 0.3.7
# @version 0.3.10
"""
@title Curve Meta Registry
@license MIT
Expand Down
309 changes: 309 additions & 0 deletions contracts/mainnet/abi/AddressProvider.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,309 @@
[
{
"name": "NewAddressIdentifier",
"inputs": [
{
"type": "uint256",
"name": "id",
"indexed": true
},
{
"type": "address",
"name": "addr",
"indexed": false
},
{
"type": "string",
"name": "description",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"name": "AddressModified",
"inputs": [
{
"type": "uint256",
"name": "id",
"indexed": true
},
{
"type": "address",
"name": "new_address",
"indexed": false
},
{
"type": "uint256",
"name": "version",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"name": "CommitNewAdmin",
"inputs": [
{
"type": "uint256",
"name": "deadline",
"indexed": true
},
{
"type": "address",
"name": "admin",
"indexed": true
}
],
"anonymous": false,
"type": "event"
},
{
"name": "NewAdmin",
"inputs": [
{
"type": "address",
"name": "admin",
"indexed": true
}
],
"anonymous": false,
"type": "event"
},
{
"outputs": [],
"inputs": [
{
"type": "address",
"name": "_admin"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"name": "get_registry",
"outputs": [
{
"type": "address",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 1061
},
{
"name": "max_id",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 1258
},
{
"name": "get_address",
"outputs": [
{
"type": "address",
"name": ""
}
],
"inputs": [
{
"type": "uint256",
"name": "_id"
}
],
"stateMutability": "view",
"type": "function",
"gas": 1308
},
{
"name": "add_new_id",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [
{
"type": "address",
"name": "_address"
},
{
"type": "string",
"name": "_description"
}
],
"stateMutability": "nonpayable",
"type": "function",
"gas": 291275
},
{
"name": "set_address",
"outputs": [
{
"type": "bool",
"name": ""
}
],
"inputs": [
{
"type": "uint256",
"name": "_id"
},
{
"type": "address",
"name": "_address"
}
],
"stateMutability": "nonpayable",
"type": "function",
"gas": 182430
},
{
"name": "unset_address",
"outputs": [
{
"type": "bool",
"name": ""
}
],
"inputs": [
{
"type": "uint256",
"name": "_id"
}
],
"stateMutability": "nonpayable",
"type": "function",
"gas": 101348
},
{
"name": "commit_transfer_ownership",
"outputs": [
{
"type": "bool",
"name": ""
}
],
"inputs": [
{
"type": "address",
"name": "_new_admin"
}
],
"stateMutability": "nonpayable",
"type": "function",
"gas": 74048
},
{
"name": "apply_transfer_ownership",
"outputs": [
{
"type": "bool",
"name": ""
}
],
"inputs": [],
"stateMutability": "nonpayable",
"type": "function",
"gas": 60125
},
{
"name": "revert_transfer_ownership",
"outputs": [
{
"type": "bool",
"name": ""
}
],
"inputs": [],
"stateMutability": "nonpayable",
"type": "function",
"gas": 21400
},
{
"name": "admin",
"outputs": [
{
"type": "address",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 1331
},
{
"name": "transfer_ownership_deadline",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 1361
},
{
"name": "future_admin",
"outputs": [
{
"type": "address",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 1391
},
{
"name": "get_id_info",
"outputs": [
{
"type": "address",
"name": "addr"
},
{
"type": "bool",
"name": "is_active"
},
{
"type": "uint256",
"name": "version"
},
{
"type": "uint256",
"name": "last_modified"
},
{
"type": "string",
"name": "description"
}
],
"inputs": [
{
"type": "uint256",
"name": "arg0"
}
],
"stateMutability": "view",
"type": "function",
"gas": 12168
}
]
Loading

0 comments on commit de1e9de

Please sign in to comment.