Skip to content

Commit

Permalink
[Gauntlet] Blueberry ingestion - Finalize SoftVault and BErc20 (#661)
Browse files Browse the repository at this point in the history
* add blueberry bank events

* add hard vault events

* add blueberry staking

* add soft vaults

* fix contract address references

* add union

* add berc20 contracts

* add select in contract_address
  • Loading branch information
alifier authored Jan 31, 2024
1 parent 2875d82 commit a4171ba
Show file tree
Hide file tree
Showing 24 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"name": "AccrueInterest",
"type": "event"
},
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL bToken FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT bToken FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"name": "Approval",
"type": "event"
},
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL bToken FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT bToken FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"name": "Borrow",
"type": "event"
},
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL bToken FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT bToken FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"name": "Failure",
"type": "event"
},
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL bToken FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT bToken FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"name": "LiquidateBorrow",
"type": "event"
},
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL bToken FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT bToken FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"name": "Mint",
"type": "event"
},
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL bToken FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT bToken FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"name": "NewAdmin",
"type": "event"
},
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL bToken FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT bToken FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"name": "NewComptroller",
"type": "event"
},
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL bToken FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT bToken FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"name": "NewImplementation",
"type": "event"
},
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL bToken FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT bToken FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"name": "NewMarketInterestRateModel",
"type": "event"
},
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL bToken FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT bToken FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"name": "NewPendingAdmin",
"type": "event"
},
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL bToken FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT bToken FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"name": "NewReserveFactor",
"type": "event"
},
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL bToken FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT bToken FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"name": "Redeem",
"type": "event"
},
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL bToken FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT bToken FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"name": "RepayBorrow",
"type": "event"
},
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL bToken FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT bToken FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"name": "ReservesAdded",
"type": "event"
},
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL bToken FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT bToken FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"name": "ReservesReduced",
"type": "event"
},
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL bToken FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT bToken FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"name": "Transfer",
"type": "event"
},
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL bToken FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT bToken FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT bToken FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"name": "Approval",
"type": "event"
},
"contract_address": "SELECT softVault FROM ref('BlueberryBank_event_AddBank') UNION ALL softvault FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT softVault FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT softVault FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"name": "Deposited",
"type": "event"
},
"contract_address": "SELECT softVault FROM ref('BlueberryBank_event_AddBank') UNION ALL softvault FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT softVault FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT softVault FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "Initialized",
"type": "event"
},
"contract_address": "SELECT softVault FROM ref('BlueberryBank_event_AddBank') UNION ALL softvault FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT softVault FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT softVault FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"name": "OwnershipTransferStarted",
"type": "event"
},
"contract_address": "SELECT softVault FROM ref('BlueberryBank_event_AddBank') UNION ALL softvault FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT softVault FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT softVault FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"name": "OwnershipTransferred",
"type": "event"
},
"contract_address": "SELECT softVault FROM ref('BlueberryBank_event_AddBank') UNION ALL softvault FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT softVault FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT softVault FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"name": "Transfer",
"type": "event"
},
"contract_address": "SELECT softVault FROM ref('BlueberryBank_event_AddBank') UNION ALL softvault FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT softVault FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT softVault FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"name": "Withdrawn",
"type": "event"
},
"contract_address": "SELECT softVault FROM ref('BlueberryBank_event_AddBank') UNION ALL softvault FROM ref('BlueberryBank_event_ModifyBank')",
"contract_address": "SELECT softVault FROM ref('BlueberryBank_event_AddBank') UNION ALL SELECT softVault FROM ref('BlueberryBank_event_ModifyBank')",
"field_mapping": {},
"type": "log"
},
Expand Down

0 comments on commit a4171ba

Please sign in to comment.