Skip to content

Commit

Permalink
Load core ABIs when service starts (#47)
Browse files Browse the repository at this point in the history
* Add AbisService and load abis on service startup

* Add tests to abi service
  • Loading branch information
falvaradorodriguez authored Jan 3, 2025
1 parent e17659c commit 7c68c8c
Show file tree
Hide file tree
Showing 25 changed files with 6,320 additions and 24 deletions.
File renamed without changes.
2,777 changes: 2,777 additions & 0 deletions app/datasources/abis/aave.py

Large diffs are not rendered by default.

110 changes: 110 additions & 0 deletions app/datasources/abis/admin_upgradeability_proxy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
initializable_admin_upgradeability_proxy_abi = [
{
"anonymous": False,
"inputs": [
{
"indexed": False,
"internalType": "address",
"name": "previousAdmin",
"type": "address",
},
{
"indexed": False,
"internalType": "address",
"name": "newAdmin",
"type": "address",
},
],
"name": "AdminChanged",
"type": "event",
},
{
"anonymous": False,
"inputs": [
{
"indexed": True,
"internalType": "address",
"name": "implementation",
"type": "address",
}
],
"name": "Upgraded",
"type": "event",
},
{"payable": True, "stateMutability": "payable", "type": "fallback"},
{
"constant": False,
"inputs": [],
"name": "admin",
"outputs": [{"internalType": "address", "name": "", "type": "address"}],
"payable": False,
"stateMutability": "nonpayable",
"type": "function",
},
{
"constant": False,
"inputs": [{"internalType": "address", "name": "newAdmin", "type": "address"}],
"name": "changeAdmin",
"outputs": [],
"payable": False,
"stateMutability": "nonpayable",
"type": "function",
},
{
"constant": False,
"inputs": [],
"name": "implementation",
"outputs": [{"internalType": "address", "name": "", "type": "address"}],
"payable": False,
"stateMutability": "nonpayable",
"type": "function",
},
{
"constant": False,
"inputs": [
{"internalType": "address", "name": "_logic", "type": "address"},
{"internalType": "address", "name": "_admin", "type": "address"},
{"internalType": "bytes", "name": "_data", "type": "bytes"},
],
"name": "initialize",
"outputs": [],
"payable": True,
"stateMutability": "payable",
"type": "function",
},
{
"constant": False,
"inputs": [
{"internalType": "address", "name": "_logic", "type": "address"},
{"internalType": "bytes", "name": "_data", "type": "bytes"},
],
"name": "initialize",
"outputs": [],
"payable": True,
"stateMutability": "payable",
"type": "function",
},
{
"constant": False,
"inputs": [
{"internalType": "address", "name": "newImplementation", "type": "address"}
],
"name": "upgradeTo",
"outputs": [],
"payable": False,
"stateMutability": "nonpayable",
"type": "function",
},
{
"constant": False,
"inputs": [
{"internalType": "address", "name": "newImplementation", "type": "address"},
{"internalType": "bytes", "name": "data", "type": "bytes"},
],
"name": "upgradeToAndCall",
"outputs": [],
"payable": True,
"stateMutability": "payable",
"type": "function",
},
]
Loading

0 comments on commit 7c68c8c

Please sign in to comment.