Skip to content

Commit

Permalink
Update Aero multiple instance gauges (nansen-ai#299)
Browse files Browse the repository at this point in the history
* Update Aero multiple instance gauges

* remove self reference
  • Loading branch information
wderose authored Jun 24, 2024
1 parent 5f90024 commit 1d106d4
Show file tree
Hide file tree
Showing 10 changed files with 242 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"name": "ClaimFees",
"type": "event"
},
"contract_address": "0xf5601f95708256a118ef5971820327f362442d2d",
"contract_address": "SELECT b.pool FROM ref('Voter_event_GaugeCreated') a JOIN ref('CLFactory_event_PoolCreated') b ON a.pool = b.pool WHERE a.pool IS NOT NULL",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"name": "ClaimRewards",
"type": "event"
},
"contract_address": "0xf5601f95708256a118ef5971820327f362442d2d",
"contract_address": "SELECT b.pool FROM ref('Voter_event_GaugeCreated') a JOIN ref('CLFactory_event_PoolCreated') b ON a.pool = b.pool WHERE a.pool IS NOT NULL",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"name": "Deposit",
"type": "event"
},
"contract_address": "0xf5601f95708256a118ef5971820327f362442d2d",
"contract_address": "SELECT b.pool FROM ref('Voter_event_GaugeCreated') a JOIN ref('CLFactory_event_PoolCreated') b ON a.pool = b.pool WHERE a.pool IS NOT NULL",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"name": "NotifyReward",
"type": "event"
},
"contract_address": "0xf5601f95708256a118ef5971820327f362442d2d",
"contract_address": "SELECT b.pool FROM ref('Voter_event_GaugeCreated') a JOIN ref('CLFactory_event_PoolCreated') b ON a.pool = b.pool WHERE a.pool IS NOT NULL",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"name": "Withdraw",
"type": "event"
},
"contract_address": "0xf5601f95708256a118ef5971820327f362442d2d",
"contract_address": "SELECT b.pool FROM ref('Voter_event_GaugeCreated') a JOIN ref('CLFactory_event_PoolCreated') b ON a.pool = b.pool WHERE a.pool IS NOT NULL",
"field_mapping": {},
"type": "log"
},
Expand Down
54 changes: 54 additions & 0 deletions parse/table_definitions_base/aerodrome/Gauge_event_ClaimFees.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"parser": {
"abi": {
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "claimed0",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "claimed1",
"type": "uint256"
}
],
"name": "ClaimFees",
"type": "event"
},
"contract_address": "SELECT b.pool FROM ref('Voter_event_GaugeCreated') a JOIN ref('PoolFactory_event_PoolCreated') b ON a.pool = b.pool WHERE a.pool IS NOT NULL",
"field_mapping": {},
"type": "log"
},
"table": {
"dataset_name": "aerodrome",
"schema": [
{
"description": "",
"name": "from",
"type": "STRING"
},
{
"description": "",
"name": "claimed0",
"type": "STRING"
},
{
"description": "",
"name": "claimed1",
"type": "STRING"
}
],
"table_description": "",
"table_name": "Gauge_event_ClaimFees"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"parser": {
"abi": {
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "ClaimRewards",
"type": "event"
},
"contract_address": "SELECT b.pool FROM ref('Voter_event_GaugeCreated') a JOIN ref('PoolFactory_event_PoolCreated') b ON a.pool = b.pool WHERE a.pool IS NOT NULL",
"field_mapping": {},
"type": "log"
},
"table": {
"dataset_name": "aerodrome",
"schema": [
{
"description": "",
"name": "from",
"type": "STRING"
},
{
"description": "",
"name": "amount",
"type": "STRING"
}
],
"table_description": "",
"table_name": "Gauge_event_ClaimRewards"
}
}
54 changes: 54 additions & 0 deletions parse/table_definitions_base/aerodrome/Gauge_event_Deposit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"parser": {
"abi": {
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "Deposit",
"type": "event"
},
"contract_address": "SELECT b.pool FROM ref('Voter_event_GaugeCreated') a JOIN ref('PoolFactory_event_PoolCreated') b ON a.pool = b.pool WHERE a.pool IS NOT NULL",
"field_mapping": {},
"type": "log"
},
"table": {
"dataset_name": "aerodrome",
"schema": [
{
"description": "",
"name": "from",
"type": "STRING"
},
{
"description": "",
"name": "to",
"type": "STRING"
},
{
"description": "",
"name": "amount",
"type": "STRING"
}
],
"table_description": "",
"table_name": "Gauge_event_Deposit"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"parser": {
"abi": {
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "NotifyReward",
"type": "event"
},
"contract_address": "SELECT b.pool FROM ref('Voter_event_GaugeCreated') a JOIN ref('PoolFactory_event_PoolCreated') b ON a.pool = b.pool WHERE a.pool IS NOT NULL",
"field_mapping": {},
"type": "log"
},
"table": {
"dataset_name": "aerodrome",
"schema": [
{
"description": "",
"name": "from",
"type": "STRING"
},
{
"description": "",
"name": "amount",
"type": "STRING"
}
],
"table_description": "",
"table_name": "Gauge_event_NotifyReward"
}
}
43 changes: 43 additions & 0 deletions parse/table_definitions_base/aerodrome/Gauge_event_Withdraw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"parser": {
"abi": {
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "Withdraw",
"type": "event"
},
"contract_address": "SELECT b.pool FROM ref('Voter_event_GaugeCreated') a JOIN ref('PoolFactory_event_PoolCreated') b ON a.pool = b.pool WHERE a.pool IS NOT NULL",
"field_mapping": {},
"type": "log"
},
"table": {
"dataset_name": "aerodrome",
"schema": [
{
"description": "",
"name": "from",
"type": "STRING"
},
{
"description": "",
"name": "amount",
"type": "STRING"
}
],
"table_description": "",
"table_name": "Gauge_event_Withdraw"
}
}

0 comments on commit 1d106d4

Please sign in to comment.