Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion funding-splits/distribution/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules
query-sponsorship-events.js
*.js
13 changes: 7 additions & 6 deletions funding-splits/distribution/FUNDING_SPLITS_HIN.csv
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
ethereum_address,sponsorship_count,distribution_count,impact_percentage
0xA7D1CB88740642DC95774511Cc73f015396Be869,4,0,44.44444444444444
0x883753Beab357A2c29f3766C6ad158e72A78ce51,1,0,11.11111111111111
0xFf7e232A44C74b306623f0d20dd6995775773842,1,0,11.11111111111111
0xEbcF2690AF9e7D17e7dfB7118f65321Fc68d4b97,1,0,11.11111111111111
0x29d6744eF3C98a00CAE8071D6DC292c53d6c5C75,1,0,11.11111111111111
0x015B5dF1673499E32D11Cf786A43D1c42b3d725C,1,0,11.11111111111111
0xA7D1CB88740642DC95774511Cc73f015396Be869,4,2,42.857142857142854
0x883753Beab357A2c29f3766C6ad158e72A78ce51,1,0,7.142857142857143
0xFf7e232A44C74b306623f0d20dd6995775773842,1,0,7.142857142857143
0xEbcF2690AF9e7D17e7dfB7118f65321Fc68d4b97,1,1,14.285714285714286
0x29d6744eF3C98a00CAE8071D6DC292c53d6c5C75,1,1,14.285714285714286
0x015B5dF1673499E32D11Cf786A43D1c42b3d725C,1,0,7.142857142857143
0xAD5f3A0433B25fC3933830D2FA008f6780386D97,0,1,7.142857142857143
7 changes: 7 additions & 0 deletions funding-splits/distribution/FUNDING_SPLITS_TGL.csv
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
ethereum_address,sponsorship_count,distribution_count,impact_percentage
0xA7D1CB88740642DC95774511Cc73f015396Be869,4,2,42.857142857142854
0x883753Beab357A2c29f3766C6ad158e72A78ce51,1,0,7.142857142857143
0xFf7e232A44C74b306623f0d20dd6995775773842,1,0,7.142857142857143
0xEbcF2690AF9e7D17e7dfB7118f65321Fc68d4b97,1,1,14.285714285714286
0x29d6744eF3C98a00CAE8071D6DC292c53d6c5C75,1,1,14.285714285714286
0x015B5dF1673499E32D11Cf786A43D1c42b3d725C,1,0,7.142857142857143
0xAD5f3A0433B25fC3933830D2FA008f6780386D97,0,1,7.142857142857143
2 changes: 1 addition & 1 deletion funding-splits/distribution/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ npx tsc
## Run the JavaScript

```bash
node ./query-sponsorship-events.js
node ./query-events.js
```
230 changes: 230 additions & 0 deletions funding-splits/distribution/abis/DistributionQueue.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,230 @@
{
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "_attestationHandler",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "OnlyAttestationHandler",
"type": "error"
},
{
"inputs": [],
"name": "OnlyOwner",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "attestationHandler",
"type": "address"
}
],
"name": "AttestationHandlerUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
},
{
"internalType": "address",
"name": "distributor",
"type": "address"
},
{
"internalType": "enum DistributionStatus",
"name": "status",
"type": "uint8"
}
],
"indexed": false,
"internalType": "struct Distribution",
"name": "distribution",
"type": "tuple"
}
],
"name": "DistributionAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
},
{
"internalType": "address",
"name": "distributor",
"type": "address"
},
{
"internalType": "enum DistributionStatus",
"name": "status",
"type": "uint8"
}
],
"indexed": false,
"internalType": "struct Distribution",
"name": "distribution",
"type": "tuple"
}
],
"name": "DistributionStatusUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "OwnerUpdated",
"type": "event"
},
{
"inputs": [],
"name": "addDistribution",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "attestationHandler",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getQueueCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "queue",
"outputs": [
{
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
},
{
"internalType": "address",
"name": "distributor",
"type": "address"
},
{
"internalType": "enum DistributionStatus",
"name": "status",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_attestationHandler",
"type": "address"
}
],
"name": "updateAttestationHandler",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "queueIndex",
"type": "uint256"
},
{
"internalType": "enum DistributionStatus",
"name": "_distributionStatus",
"type": "uint8"
}
],
"name": "updateDistributionStatus",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"name": "updateOwner",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
}
Loading