From 2932730a0cd56e3f19697eb11cc7d423143f6467 Mon Sep 17 00:00:00 2001 From: edvin Date: Thu, 22 Jun 2023 21:52:49 -0400 Subject: [PATCH] add events for nft lending marketplaces (bend, nftfi, x2y2) --- .../bend_LendPoolLoan_event_LoanCreated.json | 109 +++++++ ...end_LendPoolLoan_event_LoanLiquidated.json | 98 ++++++ .../bend_LendPoolLoan_event_LoanRedeemed.json | 98 ++++++ .../bend_LendPoolLoan_event_LoanRepaid.json | 98 ++++++ .../bend/bend_LendPool_event_Borrow.json | 120 +++++++ .../bend/bend_LendPool_event_Liquidate.json | 109 +++++++ .../bend/bend_LendPool_event_Redeem.json | 109 +++++++ .../bend/bend_LendPool_event_Repay.json | 98 ++++++ ...dCollectionOffer_event_LoanLiquidated.json | 109 +++++++ ...FixedCollectionOffer_event_LoanRepaid.json | 142 +++++++++ ...ixedCollectionOffer_event_LoanStarted.json | 224 +++++++++++++ ...xedOfferRedeploy_event_LoanLiquidated.json | 109 +++++++ ...anFixedOfferRedeploy_event_LoanRepaid.json | 142 +++++++++ ...nFixedOfferRedeploy_event_LoanStarted.json | 224 +++++++++++++ ...ctLoanFixedOffer_event_LoanLiquidated.json | 109 +++++++ ...DirectLoanFixedOffer_event_LoanRepaid.json | 142 +++++++++ ...irectLoanFixedOffer_event_LoanStarted.json | 224 +++++++++++++ .../nftfi_NFTfi_event_LoanLiquidated.json | 109 +++++++ .../nftfi/nftfi_NFTfi_event_LoanRepaid.json | 120 +++++++ .../nftfi/nftfi_NFTfi_event_LoanStarted.json | 153 +++++++++ .../x2y2_XY3_V2_event_LoanLiquidated.json | 109 +++++++ .../x2y2/x2y2_XY3_V2_event_LoanRepaid.json | 120 +++++++ .../x2y2/x2y2_XY3_V2_event_LoanStarted.json | 192 +++++++++++ .../x2y2_XY3_V3_event_LoanLiquidated.json | 109 +++++++ .../x2y2/x2y2_XY3_V3_event_LoanRepaid.json | 120 +++++++ .../x2y2/x2y2_XY3_V3_event_LoanStarted.json | 299 ++++++++++++++++++ .../x2y2/x2y2_XY3_event_LoanLiquidated.json | 109 +++++++ .../x2y2/x2y2_XY3_event_LoanRepaid.json | 120 +++++++ .../x2y2/x2y2_XY3_event_LoanStarted.json | 180 +++++++++++ 29 files changed, 4004 insertions(+) create mode 100644 dags/resources/stages/parse/table_definitions/bend/bend_LendPoolLoan_event_LoanCreated.json create mode 100644 dags/resources/stages/parse/table_definitions/bend/bend_LendPoolLoan_event_LoanLiquidated.json create mode 100644 dags/resources/stages/parse/table_definitions/bend/bend_LendPoolLoan_event_LoanRedeemed.json create mode 100644 dags/resources/stages/parse/table_definitions/bend/bend_LendPoolLoan_event_LoanRepaid.json create mode 100644 dags/resources/stages/parse/table_definitions/bend/bend_LendPool_event_Borrow.json create mode 100644 dags/resources/stages/parse/table_definitions/bend/bend_LendPool_event_Liquidate.json create mode 100644 dags/resources/stages/parse/table_definitions/bend/bend_LendPool_event_Redeem.json create mode 100644 dags/resources/stages/parse/table_definitions/bend/bend_LendPool_event_Repay.json create mode 100644 dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedCollectionOffer_event_LoanLiquidated.json create mode 100644 dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedCollectionOffer_event_LoanRepaid.json create mode 100644 dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedCollectionOffer_event_LoanStarted.json create mode 100644 dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOfferRedeploy_event_LoanLiquidated.json create mode 100644 dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOfferRedeploy_event_LoanRepaid.json create mode 100644 dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOfferRedeploy_event_LoanStarted.json create mode 100644 dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOffer_event_LoanLiquidated.json create mode 100644 dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOffer_event_LoanRepaid.json create mode 100644 dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOffer_event_LoanStarted.json create mode 100644 dags/resources/stages/parse/table_definitions/nftfi/nftfi_NFTfi_event_LoanLiquidated.json create mode 100644 dags/resources/stages/parse/table_definitions/nftfi/nftfi_NFTfi_event_LoanRepaid.json create mode 100644 dags/resources/stages/parse/table_definitions/nftfi/nftfi_NFTfi_event_LoanStarted.json create mode 100644 dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V2_event_LoanLiquidated.json create mode 100644 dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V2_event_LoanRepaid.json create mode 100644 dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V2_event_LoanStarted.json create mode 100644 dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V3_event_LoanLiquidated.json create mode 100644 dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V3_event_LoanRepaid.json create mode 100644 dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V3_event_LoanStarted.json create mode 100644 dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_event_LoanLiquidated.json create mode 100644 dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_event_LoanRepaid.json create mode 100644 dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_event_LoanStarted.json diff --git a/dags/resources/stages/parse/table_definitions/bend/bend_LendPoolLoan_event_LoanCreated.json b/dags/resources/stages/parse/table_definitions/bend/bend_LendPoolLoan_event_LoanCreated.json new file mode 100644 index 000000000..5f1be302e --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/bend/bend_LendPoolLoan_event_LoanCreated.json @@ -0,0 +1,109 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "onBehalfOf", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "loanId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "nftAsset", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftTokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "reserveAsset", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "borrowIndex", + "type": "uint256" + } + ], + "name": "LoanCreated", + "type": "event" + }, + "contract_address": "0x5f6ac80cdb9e87f3cfa6a90e5140b9a16a361d5c", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "bend", + "schema": [ + { + "description": "", + "name": "user", + "type": "STRING" + }, + { + "description": "", + "name": "onBehalfOf", + "type": "STRING" + }, + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "nftAsset", + "type": "STRING" + }, + { + "description": "", + "name": "nftTokenId", + "type": "STRING" + }, + { + "description": "", + "name": "reserveAsset", + "type": "STRING" + }, + { + "description": "", + "name": "amount", + "type": "STRING" + }, + { + "description": "", + "name": "borrowIndex", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "bend_LendPoolLoan_event_LoanCreated" + } +} diff --git a/dags/resources/stages/parse/table_definitions/bend/bend_LendPoolLoan_event_LoanLiquidated.json b/dags/resources/stages/parse/table_definitions/bend/bend_LendPoolLoan_event_LoanLiquidated.json new file mode 100644 index 000000000..5ccac46c9 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/bend/bend_LendPoolLoan_event_LoanLiquidated.json @@ -0,0 +1,98 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "loanId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "nftAsset", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftTokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "reserveAsset", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "borrowIndex", + "type": "uint256" + } + ], + "name": "LoanLiquidated", + "type": "event" + }, + "contract_address": "0x5f6ac80cdb9e87f3cfa6a90e5140b9a16a361d5c", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "bend", + "schema": [ + { + "description": "", + "name": "user", + "type": "STRING" + }, + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "nftAsset", + "type": "STRING" + }, + { + "description": "", + "name": "nftTokenId", + "type": "STRING" + }, + { + "description": "", + "name": "reserveAsset", + "type": "STRING" + }, + { + "description": "", + "name": "amount", + "type": "STRING" + }, + { + "description": "", + "name": "borrowIndex", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "bend_LendPoolLoan_event_LoanLiquidated" + } +} diff --git a/dags/resources/stages/parse/table_definitions/bend/bend_LendPoolLoan_event_LoanRedeemed.json b/dags/resources/stages/parse/table_definitions/bend/bend_LendPoolLoan_event_LoanRedeemed.json new file mode 100644 index 000000000..daa7145db --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/bend/bend_LendPoolLoan_event_LoanRedeemed.json @@ -0,0 +1,98 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "loanId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "nftAsset", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftTokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "reserveAsset", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountTaken", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "borrowIndex", + "type": "uint256" + } + ], + "name": "LoanRedeemed", + "type": "event" + }, + "contract_address": "0x5f6ac80cdb9e87f3cfa6a90e5140b9a16a361d5c", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "bend", + "schema": [ + { + "description": "", + "name": "user", + "type": "STRING" + }, + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "nftAsset", + "type": "STRING" + }, + { + "description": "", + "name": "nftTokenId", + "type": "STRING" + }, + { + "description": "", + "name": "reserveAsset", + "type": "STRING" + }, + { + "description": "", + "name": "amountTaken", + "type": "STRING" + }, + { + "description": "", + "name": "borrowIndex", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "bend_LendPoolLoan_event_LoanRedeemed" + } +} diff --git a/dags/resources/stages/parse/table_definitions/bend/bend_LendPoolLoan_event_LoanRepaid.json b/dags/resources/stages/parse/table_definitions/bend/bend_LendPoolLoan_event_LoanRepaid.json new file mode 100644 index 000000000..8edea04d6 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/bend/bend_LendPoolLoan_event_LoanRepaid.json @@ -0,0 +1,98 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "loanId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "nftAsset", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftTokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "reserveAsset", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "borrowIndex", + "type": "uint256" + } + ], + "name": "LoanRepaid", + "type": "event" + }, + "contract_address": "0x5f6ac80cdb9e87f3cfa6a90e5140b9a16a361d5c", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "bend", + "schema": [ + { + "description": "", + "name": "user", + "type": "STRING" + }, + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "nftAsset", + "type": "STRING" + }, + { + "description": "", + "name": "nftTokenId", + "type": "STRING" + }, + { + "description": "", + "name": "reserveAsset", + "type": "STRING" + }, + { + "description": "", + "name": "amount", + "type": "STRING" + }, + { + "description": "", + "name": "borrowIndex", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "bend_LendPoolLoan_event_LoanRepaid" + } +} diff --git a/dags/resources/stages/parse/table_definitions/bend/bend_LendPool_event_Borrow.json b/dags/resources/stages/parse/table_definitions/bend/bend_LendPool_event_Borrow.json new file mode 100644 index 000000000..4175ab077 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/bend/bend_LendPool_event_Borrow.json @@ -0,0 +1,120 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "reserve", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "nftAsset", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftTokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "onBehalfOf", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "borrowRate", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint16", + "name": "referral", + "type": "uint16" + } + ], + "name": "Borrow", + "type": "event" + }, + "contract_address": "0x290afb1f68131d39de177199b57fb613a31066a4", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "bend", + "schema": [ + { + "description": "", + "name": "user", + "type": "STRING" + }, + { + "description": "", + "name": "reserve", + "type": "STRING" + }, + { + "description": "", + "name": "amount", + "type": "STRING" + }, + { + "description": "", + "name": "nftAsset", + "type": "STRING" + }, + { + "description": "", + "name": "nftTokenId", + "type": "STRING" + }, + { + "description": "", + "name": "onBehalfOf", + "type": "STRING" + }, + { + "description": "", + "name": "borrowRate", + "type": "STRING" + }, + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "referral", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "bend_LendPool_event_Borrow" + } +} diff --git a/dags/resources/stages/parse/table_definitions/bend/bend_LendPool_event_Liquidate.json b/dags/resources/stages/parse/table_definitions/bend/bend_LendPool_event_Liquidate.json new file mode 100644 index 000000000..005348cc6 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/bend/bend_LendPool_event_Liquidate.json @@ -0,0 +1,109 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "reserve", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "repayAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "remainAmount", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "nftAsset", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftTokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanId", + "type": "uint256" + } + ], + "name": "Liquidate", + "type": "event" + }, + "contract_address": "0x290afb1f68131d39de177199b57fb613a31066a4", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "bend", + "schema": [ + { + "description": "", + "name": "user", + "type": "STRING" + }, + { + "description": "", + "name": "reserve", + "type": "STRING" + }, + { + "description": "", + "name": "repayAmount", + "type": "STRING" + }, + { + "description": "", + "name": "remainAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftAsset", + "type": "STRING" + }, + { + "description": "", + "name": "nftTokenId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "loanId", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "bend_LendPool_event_Liquidate" + } +} diff --git a/dags/resources/stages/parse/table_definitions/bend/bend_LendPool_event_Redeem.json b/dags/resources/stages/parse/table_definitions/bend/bend_LendPool_event_Redeem.json new file mode 100644 index 000000000..8303e3d5d --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/bend/bend_LendPool_event_Redeem.json @@ -0,0 +1,109 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "reserve", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "borrowAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "fineAmount", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "nftAsset", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftTokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanId", + "type": "uint256" + } + ], + "name": "Redeem", + "type": "event" + }, + "contract_address": "0x290afb1f68131d39de177199b57fb613a31066a4", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "bend", + "schema": [ + { + "description": "", + "name": "user", + "type": "STRING" + }, + { + "description": "", + "name": "reserve", + "type": "STRING" + }, + { + "description": "", + "name": "borrowAmount", + "type": "STRING" + }, + { + "description": "", + "name": "fineAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftAsset", + "type": "STRING" + }, + { + "description": "", + "name": "nftTokenId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "loanId", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "bend_LendPool_event_Redeem" + } +} diff --git a/dags/resources/stages/parse/table_definitions/bend/bend_LendPool_event_Repay.json b/dags/resources/stages/parse/table_definitions/bend/bend_LendPool_event_Repay.json new file mode 100644 index 000000000..16bfc1442 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/bend/bend_LendPool_event_Repay.json @@ -0,0 +1,98 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "reserve", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "nftAsset", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftTokenId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanId", + "type": "uint256" + } + ], + "name": "Repay", + "type": "event" + }, + "contract_address": "0x290afb1f68131d39de177199b57fb613a31066a4", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "bend", + "schema": [ + { + "description": "", + "name": "user", + "type": "STRING" + }, + { + "description": "", + "name": "reserve", + "type": "STRING" + }, + { + "description": "", + "name": "amount", + "type": "STRING" + }, + { + "description": "", + "name": "nftAsset", + "type": "STRING" + }, + { + "description": "", + "name": "nftTokenId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "loanId", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "bend_LendPool_event_Repay" + } +} diff --git a/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedCollectionOffer_event_LoanLiquidated.json b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedCollectionOffer_event_LoanLiquidated.json new file mode 100644 index 000000000..6440f5f86 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedCollectionOffer_event_LoanLiquidated.json @@ -0,0 +1,109 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "loanId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanPrincipalAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftCollateralId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanMaturityDate", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanLiquidationDate", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "nftCollateralContract", + "type": "address" + } + ], + "name": "LoanLiquidated", + "type": "event" + }, + "contract_address": "0xe52cec0e90115abeb3304baa36bc2655731f7934", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "nftfi", + "schema": [ + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "lender", + "type": "STRING" + }, + { + "description": "", + "name": "loanPrincipalAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralId", + "type": "STRING" + }, + { + "description": "", + "name": "loanMaturityDate", + "type": "STRING" + }, + { + "description": "", + "name": "loanLiquidationDate", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralContract", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "nftfi_DirectLoanFixedCollectionOffer_event_LoanLiquidated" + } +} diff --git a/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedCollectionOffer_event_LoanRepaid.json b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedCollectionOffer_event_LoanRepaid.json new file mode 100644 index 000000000..6249f38bb --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedCollectionOffer_event_LoanRepaid.json @@ -0,0 +1,142 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "loanId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanPrincipalAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftCollateralId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountPaidToLender", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "adminFee", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "revenueShare", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "revenueSharePartner", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "nftCollateralContract", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "loanERC20Denomination", + "type": "address" + } + ], + "name": "LoanRepaid", + "type": "event" + }, + "contract_address": "0xe52cec0e90115abeb3304baa36bc2655731f7934", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "nftfi", + "schema": [ + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "lender", + "type": "STRING" + }, + { + "description": "", + "name": "loanPrincipalAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralId", + "type": "STRING" + }, + { + "description": "", + "name": "amountPaidToLender", + "type": "STRING" + }, + { + "description": "", + "name": "adminFee", + "type": "STRING" + }, + { + "description": "", + "name": "revenueShare", + "type": "STRING" + }, + { + "description": "", + "name": "revenueSharePartner", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralContract", + "type": "STRING" + }, + { + "description": "", + "name": "loanERC20Denomination", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "nftfi_DirectLoanFixedCollectionOffer_event_LoanRepaid" + } +} diff --git a/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedCollectionOffer_event_LoanStarted.json b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedCollectionOffer_event_LoanStarted.json new file mode 100644 index 000000000..b6faefa5c --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedCollectionOffer_event_LoanStarted.json @@ -0,0 +1,224 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "loanId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "loanPrincipalAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maximumRepaymentAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "nftCollateralId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "loanERC20Denomination", + "type": "address" + }, + { + "internalType": "uint32", + "name": "loanDuration", + "type": "uint32" + }, + { + "internalType": "uint16", + "name": "loanInterestRateForDurationInBasisPoints", + "type": "uint16" + }, + { + "internalType": "uint16", + "name": "loanAdminFeeInBasisPoints", + "type": "uint16" + }, + { + "internalType": "address", + "name": "nftCollateralWrapper", + "type": "address" + }, + { + "internalType": "uint64", + "name": "loanStartTime", + "type": "uint64" + }, + { + "internalType": "address", + "name": "nftCollateralContract", + "type": "address" + }, + { + "internalType": "address", + "name": "borrower", + "type": "address" + } + ], + "indexed": false, + "internalType": "struct LoanData.LoanTerms", + "name": "loanTerms", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "revenueSharePartner", + "type": "address" + }, + { + "internalType": "uint16", + "name": "revenueShareInBasisPoints", + "type": "uint16" + }, + { + "internalType": "uint16", + "name": "referralFeeInBasisPoints", + "type": "uint16" + } + ], + "indexed": false, + "internalType": "struct LoanData.LoanExtras", + "name": "loanExtras", + "type": "tuple" + } + ], + "name": "LoanStarted", + "type": "event" + }, + "contract_address": "0xe52cec0e90115abeb3304baa36bc2655731f7934", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "nftfi", + "schema": [ + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "lender", + "type": "STRING" + }, + { + "description": "", + "fields": [ + { + "description": "", + "name": "loanPrincipalAmount", + "type": "STRING" + }, + { + "description": "", + "name": "maximumRepaymentAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralId", + "type": "STRING" + }, + { + "description": "", + "name": "loanERC20Denomination", + "type": "STRING" + }, + { + "description": "", + "name": "loanDuration", + "type": "STRING" + }, + { + "description": "", + "name": "loanInterestRateForDurationInBasisPoints", + "type": "STRING" + }, + { + "description": "", + "name": "loanAdminFeeInBasisPoints", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralWrapper", + "type": "STRING" + }, + { + "description": "", + "name": "loanStartTime", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralContract", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + } + ], + "name": "loanTerms", + "type": "RECORD" + }, + { + "description": "", + "fields": [ + { + "description": "", + "name": "revenueSharePartner", + "type": "STRING" + }, + { + "description": "", + "name": "revenueShareInBasisPoints", + "type": "STRING" + }, + { + "description": "", + "name": "referralFeeInBasisPoints", + "type": "STRING" + } + ], + "name": "loanExtras", + "type": "RECORD" + } + ], + "table_description": "", + "table_name": "nftfi_DirectLoanFixedCollectionOffer_event_LoanStarted" + } +} diff --git a/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOfferRedeploy_event_LoanLiquidated.json b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOfferRedeploy_event_LoanLiquidated.json new file mode 100644 index 000000000..04031e6b5 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOfferRedeploy_event_LoanLiquidated.json @@ -0,0 +1,109 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "loanId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanPrincipalAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftCollateralId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanMaturityDate", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanLiquidationDate", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "nftCollateralContract", + "type": "address" + } + ], + "name": "LoanLiquidated", + "type": "event" + }, + "contract_address": "0x8252df1d8b29057d1afe3062bf5a64d503152bc8", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "nftfi", + "schema": [ + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "lender", + "type": "STRING" + }, + { + "description": "", + "name": "loanPrincipalAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralId", + "type": "STRING" + }, + { + "description": "", + "name": "loanMaturityDate", + "type": "STRING" + }, + { + "description": "", + "name": "loanLiquidationDate", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralContract", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "nftfi_DirectLoanFixedOfferRedeploy_event_LoanLiquidated" + } +} diff --git a/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOfferRedeploy_event_LoanRepaid.json b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOfferRedeploy_event_LoanRepaid.json new file mode 100644 index 000000000..1cf701ca5 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOfferRedeploy_event_LoanRepaid.json @@ -0,0 +1,142 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "loanId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanPrincipalAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftCollateralId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountPaidToLender", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "adminFee", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "revenueShare", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "revenueSharePartner", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "nftCollateralContract", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "loanERC20Denomination", + "type": "address" + } + ], + "name": "LoanRepaid", + "type": "event" + }, + "contract_address": "0x8252df1d8b29057d1afe3062bf5a64d503152bc8", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "nftfi", + "schema": [ + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "lender", + "type": "STRING" + }, + { + "description": "", + "name": "loanPrincipalAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralId", + "type": "STRING" + }, + { + "description": "", + "name": "amountPaidToLender", + "type": "STRING" + }, + { + "description": "", + "name": "adminFee", + "type": "STRING" + }, + { + "description": "", + "name": "revenueShare", + "type": "STRING" + }, + { + "description": "", + "name": "revenueSharePartner", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralContract", + "type": "STRING" + }, + { + "description": "", + "name": "loanERC20Denomination", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "nftfi_DirectLoanFixedOfferRedeploy_event_LoanRepaid" + } +} diff --git a/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOfferRedeploy_event_LoanStarted.json b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOfferRedeploy_event_LoanStarted.json new file mode 100644 index 000000000..5ba070173 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOfferRedeploy_event_LoanStarted.json @@ -0,0 +1,224 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "loanId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "loanPrincipalAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maximumRepaymentAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "nftCollateralId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "loanERC20Denomination", + "type": "address" + }, + { + "internalType": "uint32", + "name": "loanDuration", + "type": "uint32" + }, + { + "internalType": "uint16", + "name": "loanInterestRateForDurationInBasisPoints", + "type": "uint16" + }, + { + "internalType": "uint16", + "name": "loanAdminFeeInBasisPoints", + "type": "uint16" + }, + { + "internalType": "address", + "name": "nftCollateralWrapper", + "type": "address" + }, + { + "internalType": "uint64", + "name": "loanStartTime", + "type": "uint64" + }, + { + "internalType": "address", + "name": "nftCollateralContract", + "type": "address" + }, + { + "internalType": "address", + "name": "borrower", + "type": "address" + } + ], + "indexed": false, + "internalType": "struct LoanData.LoanTerms", + "name": "loanTerms", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "revenueSharePartner", + "type": "address" + }, + { + "internalType": "uint16", + "name": "revenueShareInBasisPoints", + "type": "uint16" + }, + { + "internalType": "uint16", + "name": "referralFeeInBasisPoints", + "type": "uint16" + } + ], + "indexed": false, + "internalType": "struct LoanData.LoanExtras", + "name": "loanExtras", + "type": "tuple" + } + ], + "name": "LoanStarted", + "type": "event" + }, + "contract_address": "0x8252df1d8b29057d1afe3062bf5a64d503152bc8", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "nftfi", + "schema": [ + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "lender", + "type": "STRING" + }, + { + "description": "", + "fields": [ + { + "description": "", + "name": "loanPrincipalAmount", + "type": "STRING" + }, + { + "description": "", + "name": "maximumRepaymentAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralId", + "type": "STRING" + }, + { + "description": "", + "name": "loanERC20Denomination", + "type": "STRING" + }, + { + "description": "", + "name": "loanDuration", + "type": "STRING" + }, + { + "description": "", + "name": "loanInterestRateForDurationInBasisPoints", + "type": "STRING" + }, + { + "description": "", + "name": "loanAdminFeeInBasisPoints", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralWrapper", + "type": "STRING" + }, + { + "description": "", + "name": "loanStartTime", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralContract", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + } + ], + "name": "loanTerms", + "type": "RECORD" + }, + { + "description": "", + "fields": [ + { + "description": "", + "name": "revenueSharePartner", + "type": "STRING" + }, + { + "description": "", + "name": "revenueShareInBasisPoints", + "type": "STRING" + }, + { + "description": "", + "name": "referralFeeInBasisPoints", + "type": "STRING" + } + ], + "name": "loanExtras", + "type": "RECORD" + } + ], + "table_description": "", + "table_name": "nftfi_DirectLoanFixedOfferRedeploy_event_LoanStarted" + } +} diff --git a/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOffer_event_LoanLiquidated.json b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOffer_event_LoanLiquidated.json new file mode 100644 index 000000000..9796a28bb --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOffer_event_LoanLiquidated.json @@ -0,0 +1,109 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "loanId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanPrincipalAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftCollateralId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanMaturityDate", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanLiquidationDate", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "nftCollateralContract", + "type": "address" + } + ], + "name": "LoanLiquidated", + "type": "event" + }, + "contract_address": "0xf896527c49b44aab3cf22ae356fa3af8e331f280", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "nftfi", + "schema": [ + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "lender", + "type": "STRING" + }, + { + "description": "", + "name": "loanPrincipalAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralId", + "type": "STRING" + }, + { + "description": "", + "name": "loanMaturityDate", + "type": "STRING" + }, + { + "description": "", + "name": "loanLiquidationDate", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralContract", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "nftfi_DirectLoanFixedOffer_event_LoanLiquidated" + } +} diff --git a/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOffer_event_LoanRepaid.json b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOffer_event_LoanRepaid.json new file mode 100644 index 000000000..315de1234 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOffer_event_LoanRepaid.json @@ -0,0 +1,142 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "loanId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanPrincipalAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftCollateralId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountPaidToLender", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "adminFee", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "revenueShare", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "revenueSharePartner", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "nftCollateralContract", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "loanERC20Denomination", + "type": "address" + } + ], + "name": "LoanRepaid", + "type": "event" + }, + "contract_address": "0xf896527c49b44aab3cf22ae356fa3af8e331f280", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "nftfi", + "schema": [ + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "lender", + "type": "STRING" + }, + { + "description": "", + "name": "loanPrincipalAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralId", + "type": "STRING" + }, + { + "description": "", + "name": "amountPaidToLender", + "type": "STRING" + }, + { + "description": "", + "name": "adminFee", + "type": "STRING" + }, + { + "description": "", + "name": "revenueShare", + "type": "STRING" + }, + { + "description": "", + "name": "revenueSharePartner", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralContract", + "type": "STRING" + }, + { + "description": "", + "name": "loanERC20Denomination", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "nftfi_DirectLoanFixedOffer_event_LoanRepaid" + } +} diff --git a/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOffer_event_LoanStarted.json b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOffer_event_LoanStarted.json new file mode 100644 index 000000000..f30c47d7c --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_DirectLoanFixedOffer_event_LoanStarted.json @@ -0,0 +1,224 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "loanId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "loanPrincipalAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maximumRepaymentAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "nftCollateralId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "loanERC20Denomination", + "type": "address" + }, + { + "internalType": "uint32", + "name": "loanDuration", + "type": "uint32" + }, + { + "internalType": "uint16", + "name": "loanInterestRateForDurationInBasisPoints", + "type": "uint16" + }, + { + "internalType": "uint16", + "name": "loanAdminFeeInBasisPoints", + "type": "uint16" + }, + { + "internalType": "address", + "name": "nftCollateralWrapper", + "type": "address" + }, + { + "internalType": "uint64", + "name": "loanStartTime", + "type": "uint64" + }, + { + "internalType": "address", + "name": "nftCollateralContract", + "type": "address" + }, + { + "internalType": "address", + "name": "borrower", + "type": "address" + } + ], + "indexed": false, + "internalType": "struct LoanData.LoanTerms", + "name": "loanTerms", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "revenueSharePartner", + "type": "address" + }, + { + "internalType": "uint16", + "name": "revenueShareInBasisPoints", + "type": "uint16" + }, + { + "internalType": "uint16", + "name": "referralFeeInBasisPoints", + "type": "uint16" + } + ], + "indexed": false, + "internalType": "struct LoanData.LoanExtras", + "name": "loanExtras", + "type": "tuple" + } + ], + "name": "LoanStarted", + "type": "event" + }, + "contract_address": "0xf896527c49b44aab3cf22ae356fa3af8e331f280", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "nftfi", + "schema": [ + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "lender", + "type": "STRING" + }, + { + "description": "", + "fields": [ + { + "description": "", + "name": "loanPrincipalAmount", + "type": "STRING" + }, + { + "description": "", + "name": "maximumRepaymentAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralId", + "type": "STRING" + }, + { + "description": "", + "name": "loanERC20Denomination", + "type": "STRING" + }, + { + "description": "", + "name": "loanDuration", + "type": "STRING" + }, + { + "description": "", + "name": "loanInterestRateForDurationInBasisPoints", + "type": "STRING" + }, + { + "description": "", + "name": "loanAdminFeeInBasisPoints", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralWrapper", + "type": "STRING" + }, + { + "description": "", + "name": "loanStartTime", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralContract", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + } + ], + "name": "loanTerms", + "type": "RECORD" + }, + { + "description": "", + "fields": [ + { + "description": "", + "name": "revenueSharePartner", + "type": "STRING" + }, + { + "description": "", + "name": "revenueShareInBasisPoints", + "type": "STRING" + }, + { + "description": "", + "name": "referralFeeInBasisPoints", + "type": "STRING" + } + ], + "name": "loanExtras", + "type": "RECORD" + } + ], + "table_description": "", + "table_name": "nftfi_DirectLoanFixedOffer_event_LoanStarted" + } +} diff --git a/dags/resources/stages/parse/table_definitions/nftfi/nftfi_NFTfi_event_LoanLiquidated.json b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_NFTfi_event_LoanLiquidated.json new file mode 100644 index 000000000..390d4d3bc --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_NFTfi_event_LoanLiquidated.json @@ -0,0 +1,109 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "loanId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanPrincipalAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftCollateralId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanMaturityDate", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanLiquidationDate", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "nftCollateralContract", + "type": "address" + } + ], + "name": "LoanLiquidated", + "type": "event" + }, + "contract_address": "0x88341d1a8f672d2780c8dc725902aae72f143b0c", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "nftfi", + "schema": [ + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "lender", + "type": "STRING" + }, + { + "description": "", + "name": "loanPrincipalAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralId", + "type": "STRING" + }, + { + "description": "", + "name": "loanMaturityDate", + "type": "STRING" + }, + { + "description": "", + "name": "loanLiquidationDate", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralContract", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "nftfi_NFTfi_event_LoanLiquidated" + } +} diff --git a/dags/resources/stages/parse/table_definitions/nftfi/nftfi_NFTfi_event_LoanRepaid.json b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_NFTfi_event_LoanRepaid.json new file mode 100644 index 000000000..b7409e993 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_NFTfi_event_LoanRepaid.json @@ -0,0 +1,120 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "loanId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanPrincipalAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftCollateralId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountPaidToLender", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "adminFee", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "nftCollateralContract", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "loanERC20Denomination", + "type": "address" + } + ], + "name": "LoanRepaid", + "type": "event" + }, + "contract_address": "0x88341d1a8f672d2780c8dc725902aae72f143b0c", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "nftfi", + "schema": [ + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "lender", + "type": "STRING" + }, + { + "description": "", + "name": "loanPrincipalAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralId", + "type": "STRING" + }, + { + "description": "", + "name": "amountPaidToLender", + "type": "STRING" + }, + { + "description": "", + "name": "adminFee", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralContract", + "type": "STRING" + }, + { + "description": "", + "name": "loanERC20Denomination", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "nftfi_NFTfi_event_LoanRepaid" + } +} diff --git a/dags/resources/stages/parse/table_definitions/nftfi/nftfi_NFTfi_event_LoanStarted.json b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_NFTfi_event_LoanStarted.json new file mode 100644 index 000000000..a94ffe244 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/nftfi/nftfi_NFTfi_event_LoanStarted.json @@ -0,0 +1,153 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "loanId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanPrincipalAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "maximumRepaymentAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftCollateralId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanStartTime", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanDuration", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanInterestRateForDurationInBasisPoints", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "nftCollateralContract", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "loanERC20Denomination", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "interestIsProRated", + "type": "bool" + } + ], + "name": "LoanStarted", + "type": "event" + }, + "contract_address": "0x88341d1a8f672d2780c8dc725902aae72f143b0c", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "nftfi", + "schema": [ + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "lender", + "type": "STRING" + }, + { + "description": "", + "name": "loanPrincipalAmount", + "type": "STRING" + }, + { + "description": "", + "name": "maximumRepaymentAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralId", + "type": "STRING" + }, + { + "description": "", + "name": "loanStartTime", + "type": "STRING" + }, + { + "description": "", + "name": "loanDuration", + "type": "STRING" + }, + { + "description": "", + "name": "loanInterestRateForDurationInBasisPoints", + "type": "STRING" + }, + { + "description": "", + "name": "nftCollateralContract", + "type": "STRING" + }, + { + "description": "", + "name": "loanERC20Denomination", + "type": "STRING" + }, + { + "description": "", + "name": "interestIsProRated", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "nftfi_NFTfi_event_LoanStarted" + } +} diff --git a/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V2_event_LoanLiquidated.json b/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V2_event_LoanLiquidated.json new file mode 100644 index 000000000..3818312d2 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V2_event_LoanLiquidated.json @@ -0,0 +1,109 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "loanId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "borrowAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftTokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanMaturityDate", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanLiquidationDate", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "nftAsset", + "type": "address" + } + ], + "name": "LoanLiquidated", + "type": "event" + }, + "contract_address": "0xfa4d5258804d7723eb6a934c11b1bd423bc31623", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "x2y2", + "schema": [ + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "lender", + "type": "STRING" + }, + { + "description": "", + "name": "borrowAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftTokenId", + "type": "STRING" + }, + { + "description": "", + "name": "loanMaturityDate", + "type": "STRING" + }, + { + "description": "", + "name": "loanLiquidationDate", + "type": "STRING" + }, + { + "description": "", + "name": "nftAsset", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "x2y2_XY3_V2_event_LoanLiquidated" + } +} diff --git a/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V2_event_LoanRepaid.json b/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V2_event_LoanRepaid.json new file mode 100644 index 000000000..41ce51d6b --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V2_event_LoanRepaid.json @@ -0,0 +1,120 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "loanId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "borrowAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftTokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "repayAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "adminFee", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "nftAsset", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "borrowAsset", + "type": "address" + } + ], + "name": "LoanRepaid", + "type": "event" + }, + "contract_address": "0xfa4d5258804d7723eb6a934c11b1bd423bc31623", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "x2y2", + "schema": [ + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "lender", + "type": "STRING" + }, + { + "description": "", + "name": "borrowAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftTokenId", + "type": "STRING" + }, + { + "description": "", + "name": "repayAmount", + "type": "STRING" + }, + { + "description": "", + "name": "adminFee", + "type": "STRING" + }, + { + "description": "", + "name": "nftAsset", + "type": "STRING" + }, + { + "description": "", + "name": "borrowAsset", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "x2y2_XY3_V2_event_LoanRepaid" + } +} diff --git a/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V2_event_LoanStarted.json b/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V2_event_LoanStarted.json new file mode 100644 index 000000000..05e923d6c --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V2_event_LoanStarted.json @@ -0,0 +1,192 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "loanId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nonce", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "borrowAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "repayAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "nftTokenId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "borrowAsset", + "type": "address" + }, + { + "internalType": "uint32", + "name": "loanDuration", + "type": "uint32" + }, + { + "internalType": "uint16", + "name": "adminShare", + "type": "uint16" + }, + { + "internalType": "uint64", + "name": "loanStart", + "type": "uint64" + }, + { + "internalType": "address", + "name": "nftAsset", + "type": "address" + }, + { + "internalType": "bool", + "name": "isCollection", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct LoanDetail", + "name": "loanDetail", + "type": "tuple" + }, + { + "indexed": false, + "internalType": "address", + "name": "target", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes4", + "name": "selector", + "type": "bytes4" + } + ], + "name": "LoanStarted", + "type": "event" + }, + "contract_address": "0xfa4d5258804d7723eb6a934c11b1bd423bc31623", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "x2y2", + "schema": [ + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "lender", + "type": "STRING" + }, + { + "description": "", + "name": "nonce", + "type": "STRING" + }, + { + "description": "", + "fields": [ + { + "description": "", + "name": "borrowAmount", + "type": "STRING" + }, + { + "description": "", + "name": "repayAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftTokenId", + "type": "STRING" + }, + { + "description": "", + "name": "borrowAsset", + "type": "STRING" + }, + { + "description": "", + "name": "loanDuration", + "type": "STRING" + }, + { + "description": "", + "name": "adminShare", + "type": "STRING" + }, + { + "description": "", + "name": "loanStart", + "type": "STRING" + }, + { + "description": "", + "name": "nftAsset", + "type": "STRING" + }, + { + "description": "", + "name": "isCollection", + "type": "STRING" + } + ], + "name": "loanDetail", + "type": "RECORD" + }, + { + "description": "", + "name": "target", + "type": "STRING" + }, + { + "description": "", + "name": "selector", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "x2y2_XY3_V2_event_LoanStarted" + } +} diff --git a/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V3_event_LoanLiquidated.json b/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V3_event_LoanLiquidated.json new file mode 100644 index 000000000..ba7df8dfa --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V3_event_LoanLiquidated.json @@ -0,0 +1,109 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "loanId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "borrowAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftTokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanMaturityDate", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanLiquidationDate", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "nftAsset", + "type": "address" + } + ], + "name": "LoanLiquidated", + "type": "event" + }, + "contract_address": "0xb81965ddfdda3923f292a47a1be83ba3a36b5133", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "x2y2", + "schema": [ + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "lender", + "type": "STRING" + }, + { + "description": "", + "name": "borrowAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftTokenId", + "type": "STRING" + }, + { + "description": "", + "name": "loanMaturityDate", + "type": "STRING" + }, + { + "description": "", + "name": "loanLiquidationDate", + "type": "STRING" + }, + { + "description": "", + "name": "nftAsset", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "x2y2_XY3_V3_event_LoanLiquidated" + } +} diff --git a/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V3_event_LoanRepaid.json b/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V3_event_LoanRepaid.json new file mode 100644 index 000000000..49845e5c4 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V3_event_LoanRepaid.json @@ -0,0 +1,120 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "loanId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "borrowAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftTokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "repayAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "adminFee", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "nftAsset", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "borrowAsset", + "type": "address" + } + ], + "name": "LoanRepaid", + "type": "event" + }, + "contract_address": "0xb81965ddfdda3923f292a47a1be83ba3a36b5133", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "x2y2", + "schema": [ + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "lender", + "type": "STRING" + }, + { + "description": "", + "name": "borrowAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftTokenId", + "type": "STRING" + }, + { + "description": "", + "name": "repayAmount", + "type": "STRING" + }, + { + "description": "", + "name": "adminFee", + "type": "STRING" + }, + { + "description": "", + "name": "nftAsset", + "type": "STRING" + }, + { + "description": "", + "name": "borrowAsset", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "x2y2_XY3_V3_event_LoanRepaid" + } +} diff --git a/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V3_event_LoanStarted.json b/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V3_event_LoanStarted.json new file mode 100644 index 000000000..0c8fac29c --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_V3_event_LoanStarted.json @@ -0,0 +1,299 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "loanId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "borrowAsset", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "nftAsset", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint8", + "name": "offerType", + "type": "uint8" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "offerHash", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint16", + "name": "amount", + "type": "uint16" + }, + { + "components": [ + { + "internalType": "enum StatusType", + "name": "state", + "type": "uint8" + }, + { + "internalType": "uint64", + "name": "reserved", + "type": "uint64" + }, + { + "internalType": "uint32", + "name": "loanDuration", + "type": "uint32" + }, + { + "internalType": "uint16", + "name": "adminShare", + "type": "uint16" + }, + { + "internalType": "uint64", + "name": "loanStart", + "type": "uint64" + }, + { + "internalType": "uint8", + "name": "borrowAssetIndex", + "type": "uint8" + }, + { + "internalType": "uint32", + "name": "nftAssetIndex", + "type": "uint32" + }, + { + "internalType": "uint112", + "name": "borrowAmount", + "type": "uint112" + }, + { + "internalType": "uint112", + "name": "repayAmount", + "type": "uint112" + }, + { + "internalType": "uint256", + "name": "nftTokenId", + "type": "uint256" + } + ], + "indexed": false, + "internalType": "struct LoanDetail", + "name": "loanDetail", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "target", + "type": "address" + }, + { + "internalType": "bytes4", + "name": "selector", + "type": "bytes4" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + }, + { + "internalType": "uint256", + "name": "referral", + "type": "uint256" + }, + { + "internalType": "address", + "name": "onBehalf", + "type": "address" + }, + { + "internalType": "bytes32[]", + "name": "proof", + "type": "bytes32[]" + } + ], + "indexed": false, + "internalType": "struct CallData", + "name": "extraData", + "type": "tuple" + } + ], + "name": "LoanStarted", + "type": "event" + }, + "contract_address": "0xb81965ddfdda3923f292a47a1be83ba3a36b5133", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "x2y2", + "schema": [ + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "lender", + "type": "STRING" + }, + { + "description": "", + "name": "borrowAsset", + "type": "STRING" + }, + { + "description": "", + "name": "nftAsset", + "type": "STRING" + }, + { + "description": "", + "name": "offerType", + "type": "STRING" + }, + { + "description": "", + "name": "offerHash", + "type": "STRING" + }, + { + "description": "", + "name": "amount", + "type": "STRING" + }, + { + "description": "", + "fields": [ + { + "description": "", + "name": "state", + "type": "STRING" + }, + { + "description": "", + "name": "reserved", + "type": "STRING" + }, + { + "description": "", + "name": "loanDuration", + "type": "STRING" + }, + { + "description": "", + "name": "adminShare", + "type": "STRING" + }, + { + "description": "", + "name": "loanStart", + "type": "STRING" + }, + { + "description": "", + "name": "borrowAssetIndex", + "type": "STRING" + }, + { + "description": "", + "name": "nftAssetIndex", + "type": "STRING" + }, + { + "description": "", + "name": "borrowAmount", + "type": "STRING" + }, + { + "description": "", + "name": "repayAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftTokenId", + "type": "STRING" + } + ], + "name": "loanDetail", + "type": "RECORD" + }, + { + "description": "", + "fields": [ + { + "description": "", + "name": "target", + "type": "STRING" + }, + { + "description": "", + "name": "selector", + "type": "STRING" + }, + { + "description": "", + "name": "data", + "type": "STRING" + }, + { + "description": "", + "name": "referral", + "type": "STRING" + }, + { + "description": "", + "name": "onBehalf", + "type": "STRING" + }, + { + "description": "", + "name": "proof", + "type": "STRING" + } + ], + "name": "extraData", + "type": "RECORD" + } + ], + "table_description": "", + "table_name": "x2y2_XY3_V3_event_LoanStarted" + } +} diff --git a/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_event_LoanLiquidated.json b/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_event_LoanLiquidated.json new file mode 100644 index 000000000..be8203868 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_event_LoanLiquidated.json @@ -0,0 +1,109 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "loanId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "borrowAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftTokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanMaturityDate", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "loanLiquidationDate", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "nftAsset", + "type": "address" + } + ], + "name": "LoanLiquidated", + "type": "event" + }, + "contract_address": "0xc28f7ee92cd6619e8eec6a70923079fbafb86196", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "x2y2", + "schema": [ + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "lender", + "type": "STRING" + }, + { + "description": "", + "name": "borrowAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftTokenId", + "type": "STRING" + }, + { + "description": "", + "name": "loanMaturityDate", + "type": "STRING" + }, + { + "description": "", + "name": "loanLiquidationDate", + "type": "STRING" + }, + { + "description": "", + "name": "nftAsset", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "x2y2_XY3_event_LoanLiquidated" + } +} diff --git a/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_event_LoanRepaid.json b/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_event_LoanRepaid.json new file mode 100644 index 000000000..ced579309 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_event_LoanRepaid.json @@ -0,0 +1,120 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "loanId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "borrowAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nftTokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "repayAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "adminFee", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "nftAsset", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "borrowAsset", + "type": "address" + } + ], + "name": "LoanRepaid", + "type": "event" + }, + "contract_address": "0xc28f7ee92cd6619e8eec6a70923079fbafb86196", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "x2y2", + "schema": [ + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "lender", + "type": "STRING" + }, + { + "description": "", + "name": "borrowAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftTokenId", + "type": "STRING" + }, + { + "description": "", + "name": "repayAmount", + "type": "STRING" + }, + { + "description": "", + "name": "adminFee", + "type": "STRING" + }, + { + "description": "", + "name": "nftAsset", + "type": "STRING" + }, + { + "description": "", + "name": "borrowAsset", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "x2y2_XY3_event_LoanRepaid" + } +} diff --git a/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_event_LoanStarted.json b/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_event_LoanStarted.json new file mode 100644 index 000000000..56ad1d673 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/x2y2/x2y2_XY3_event_LoanStarted.json @@ -0,0 +1,180 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "loanId", + "type": "uint32" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "lender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "nonce", + "type": "uint256" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "borrowAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "repayAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "nftTokenId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "borrowAsset", + "type": "address" + }, + { + "internalType": "uint32", + "name": "loanDuration", + "type": "uint32" + }, + { + "internalType": "uint16", + "name": "adminShare", + "type": "uint16" + }, + { + "internalType": "uint64", + "name": "loanStart", + "type": "uint64" + }, + { + "internalType": "address", + "name": "nftAsset", + "type": "address" + }, + { + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "internalType": "bool", + "name": "isCollection", + "type": "bool" + } + ], + "indexed": false, + "internalType": "struct LoanDetail", + "name": "loanDetail", + "type": "tuple" + } + ], + "name": "LoanStarted", + "type": "event" + }, + "contract_address": "0xc28f7ee92cd6619e8eec6a70923079fbafb86196", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "x2y2", + "schema": [ + { + "description": "", + "name": "loanId", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "lender", + "type": "STRING" + }, + { + "description": "", + "name": "nonce", + "type": "STRING" + }, + { + "description": "", + "fields": [ + { + "description": "", + "name": "borrowAmount", + "type": "STRING" + }, + { + "description": "", + "name": "repayAmount", + "type": "STRING" + }, + { + "description": "", + "name": "nftTokenId", + "type": "STRING" + }, + { + "description": "", + "name": "borrowAsset", + "type": "STRING" + }, + { + "description": "", + "name": "loanDuration", + "type": "STRING" + }, + { + "description": "", + "name": "adminShare", + "type": "STRING" + }, + { + "description": "", + "name": "loanStart", + "type": "STRING" + }, + { + "description": "", + "name": "nftAsset", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "isCollection", + "type": "STRING" + } + ], + "name": "loanDetail", + "type": "RECORD" + } + ], + "table_description": "", + "table_name": "x2y2_XY3_event_LoanStarted" + } +}