Skip to content

Commit

Permalink
add erc-20, bug fix closed communities threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
jac18281828 committed Apr 25, 2023
1 parent 3cb115e commit b20602d
Show file tree
Hide file tree
Showing 5 changed files with 839 additions and 61 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ ARG PROJECT=governance
RUN export DEBIAN_FRONTEND=noninteractive && \
apt update && \
apt install -y -q --no-install-recommends \
sudo git \
npm build-essential git curl \
sudo git curl gnupg2 coreutils \
npm build-essential \
ca-certificates apt-transport-https \
ripgrep && \
apt clean && \
Expand Down
297 changes: 288 additions & 9 deletions abi/CommunityBuilder.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,33 @@
"name": "NonZeroWeightRequired",
"type": "error"
},
{
"inputs": [],
"name": "NotInitialized",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "NotOwner",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "OwnerInitialized",
"type": "error"
},
{
"inputs": [
{
Expand Down Expand Up @@ -68,6 +95,38 @@
"name": "VoterRequired",
"type": "error"
},
{
"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": "beacon",
"type": "address"
}
],
"name": "BeaconUpgraded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -241,21 +300,110 @@
"anonymous": false,
"inputs": [
{
"indexed": true,
"indexed": false,
"internalType": "address",
"name": "previousOwner",
"name": "weightedClassFactory",
"type": "address"
},
{
"indexed": true,
"indexed": false,
"internalType": "address",
"name": "newOwner",
"name": "tokenClassFactory",
"type": "address"
}
],
"name": "Initialized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint8",
"name": "version",
"type": "uint8"
}
],
"name": "Initialized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "_to",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "UpgradeAuthorized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "weightedClassFactory",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "tokenClassFactory",
"type": "address"
},
{
"indexed": false,
"internalType": "uint8",
"name": "version",
"type": "uint8"
}
],
"name": "Upgraded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "implementation",
"type": "address"
}
],
"name": "Upgraded",
"type": "event"
},
{
"inputs": [],
"name": "DEFAULT_WEIGHT",
Expand Down Expand Up @@ -295,6 +443,30 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "project",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenThreshold",
"type": "uint256"
}
],
"name": "asClosedErc20Community",
"outputs": [
{
"internalType": "contract CommunityBuilder",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand All @@ -319,6 +491,25 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "project",
"type": "address"
}
],
"name": "asErc20Community",
"outputs": [
{
"internalType": "contract CommunityBuilder",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -369,14 +560,37 @@
"name": "build",
"outputs": [
{
"internalType": "address",
"internalType": "address payable",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_weighted",
"type": "address"
},
{
"internalType": "address",
"name": "_project",
"type": "address"
},
{
"internalType": "address",
"name": "_token",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "name",
Expand Down Expand Up @@ -405,9 +619,15 @@
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"name": "proxiableUUID",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
Expand Down Expand Up @@ -440,7 +660,7 @@
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"name": "_delegateOwner",
"type": "address"
}
],
Expand All @@ -449,6 +669,65 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_weighted",
"type": "address"
},
{
"internalType": "address",
"name": "_project",
"type": "address"
},
{
"internalType": "address",
"name": "_token",
"type": "address"
},
{
"internalType": "uint8",
"name": "_version",
"type": "uint8"
}
],
"name": "upgrade",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newImplementation",
"type": "address"
}
],
"name": "upgradeTo",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newImplementation",
"type": "address"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "upgradeToAndCall",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "version",
Expand Down
Loading

0 comments on commit b20602d

Please sign in to comment.