Skip to content

Commit

Permalink
Added contracts V2 with multiple upgraded contracts, reworked repo st…
Browse files Browse the repository at this point in the history
…ructure, deployment scripts and tests, added Gnosis to the config, fixed critical dependency vulnerabilities
  • Loading branch information
u-hubar committed Nov 2, 2023
1 parent 827aa41 commit 1452a00
Show file tree
Hide file tree
Showing 130 changed files with 17,409 additions and 19,687 deletions.
800 changes: 800 additions & 0 deletions abi/ContentAssetStorageV2.json

Large diffs are not rendered by default.

18 changes: 15 additions & 3 deletions abi/HubController.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,21 @@
"type": "address[]"
},
{
"internalType": "bytes[]",
"name": "setParametersEncodedData",
"type": "bytes[]"
"components": [
{
"internalType": "string",
"name": "contractName",
"type": "string"
},
{
"internalType": "bytes[]",
"name": "encodedData",
"type": "bytes[]"
}
],
"internalType": "struct GeneralStructs.ForwardCallInputArgs[]",
"name": "forwardCallsData",
"type": "tuple[]"
},
{
"internalType": "address[]",
Expand Down
356 changes: 356 additions & 0 deletions abi/HubV2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,356 @@
[
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "contractName",
"type": "string"
},
{
"indexed": false,
"internalType": "address",
"name": "newContractAddress",
"type": "address"
}
],
"name": "AssetStorageChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "contractName",
"type": "string"
},
{
"indexed": false,
"internalType": "address",
"name": "newContractAddress",
"type": "address"
}
],
"name": "ContractChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "contractName",
"type": "string"
},
{
"indexed": false,
"internalType": "address",
"name": "newContractAddress",
"type": "address"
}
],
"name": "NewAssetStorage",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "contractName",
"type": "string"
},
{
"indexed": false,
"internalType": "address",
"name": "newContractAddress",
"type": "address"
}
],
"name": "NewContract",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [],
"name": "getAllAssetStorages",
"outputs": [
{
"components": [
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "address",
"name": "addr",
"type": "address"
}
],
"internalType": "struct UnorderedNamedContractDynamicSetStructs.Contract[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getAllContracts",
"outputs": [
{
"components": [
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "address",
"name": "addr",
"type": "address"
}
],
"internalType": "struct UnorderedNamedContractDynamicSetStructs.Contract[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "assetStorageName",
"type": "string"
}
],
"name": "getAssetStorageAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "contractName",
"type": "string"
}
],
"name": "getContractAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "assetStorageAddress",
"type": "address"
}
],
"name": "isAssetStorage",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "assetStorageName",
"type": "string"
}
],
"name": "isAssetStorage",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "selectedContractAddress",
"type": "address"
}
],
"name": "isContract",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "contractName",
"type": "string"
}
],
"name": "isContract",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "assetStorageName",
"type": "string"
},
{
"internalType": "address",
"name": "assetStorageAddress",
"type": "address"
}
],
"name": "setAssetStorageAddress",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "contractName",
"type": "string"
},
{
"internalType": "address",
"name": "newContractAddress",
"type": "address"
}
],
"name": "setContractAddress",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "version",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
}
]
Loading

0 comments on commit 1452a00

Please sign in to comment.