forked from blockchain-etl/ethereum-etl-airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Abracadabra tokens and staking (blockchain-etl#633)
* add Spell token events * add Staked Spell sSpell token events * add sSpell calls * fix sSpell dataset name * fix sSpell table name * add SPELL token calls * change target dataset and table name * add mSpell staking contract events * add mSpell staking contract calls * change mSpell target dataset and table name
- Loading branch information
1 parent
68cd8f6
commit c39cb98
Showing
20 changed files
with
936 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
dags/resources/stages/parse/table_definitions/abracadabra/Spell_call_mint.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"parser": { | ||
"abi": { | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "to", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "amount", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "mint", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
"contract_address": "0x090185f2135308bad17527004364ebcc2d37e5f6", | ||
"field_mapping": {}, | ||
"type": "trace" | ||
}, | ||
"table": { | ||
"dataset_name": "abracadabra", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "to", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "amount", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "Spell_call_mint" | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
dags/resources/stages/parse/table_definitions/abracadabra/Spell_call_transfer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"parser": { | ||
"abi": { | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "to", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "amount", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "transfer", | ||
"outputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "", | ||
"type": "bool" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
"contract_address": "0x090185f2135308bad17527004364ebcc2d37e5f6", | ||
"field_mapping": {}, | ||
"type": "trace" | ||
}, | ||
"table": { | ||
"dataset_name": "abracadabra", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "to", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "amount", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "Spell_call_transfer" | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
dags/resources/stages/parse/table_definitions/abracadabra/Spell_call_transferFrom.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"parser": { | ||
"abi": { | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "from", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "to", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "amount", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "transferFrom", | ||
"outputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "", | ||
"type": "bool" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
"contract_address": "0x090185f2135308bad17527004364ebcc2d37e5f6", | ||
"field_mapping": {}, | ||
"type": "trace" | ||
}, | ||
"table": { | ||
"dataset_name": "abracadabra", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "from", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "to", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "amount", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "Spell_call_transferFrom" | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
dags/resources/stages/parse/table_definitions/abracadabra/Spell_event_Approval.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"parser": { | ||
"abi": { | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_owner", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_spender", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "_value", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "Approval", | ||
"type": "event" | ||
}, | ||
"contract_address": "0x090185f2135308bad17527004364ebcc2d37e5f6", | ||
"field_mapping": {}, | ||
"type": "log" | ||
}, | ||
"table": { | ||
"dataset_name": "abracadabra", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "_owner", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "_spender", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "_value", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "Spell_event_Approval" | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
...esources/stages/parse/table_definitions/abracadabra/Spell_event_OwnershipTransferred.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"parser": { | ||
"abi": { | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "previousOwner", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "newOwner", | ||
"type": "address" | ||
} | ||
], | ||
"name": "OwnershipTransferred", | ||
"type": "event" | ||
}, | ||
"contract_address": "0x090185f2135308bad17527004364ebcc2d37e5f6", | ||
"field_mapping": {}, | ||
"type": "log" | ||
}, | ||
"table": { | ||
"dataset_name": "abracadabra", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "previousOwner", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "newOwner", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "Spell_event_OwnershipTransferred" | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
dags/resources/stages/parse/table_definitions/abracadabra/Spell_event_Transfer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"parser": { | ||
"abi": { | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_from", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "_to", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "_value", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "Transfer", | ||
"type": "event" | ||
}, | ||
"contract_address": "0x090185f2135308bad17527004364ebcc2d37e5f6", | ||
"field_mapping": {}, | ||
"type": "log" | ||
}, | ||
"table": { | ||
"dataset_name": "abracadabra", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "_from", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "_to", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "_value", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "Spell_event_Transfer" | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
dags/resources/stages/parse/table_definitions/abracadabra/mSpellStaking_call_deposit.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"parser": { | ||
"abi": { | ||
"inputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_amount", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "deposit", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
"contract_address": "0xbd2fbaf2dc95bd78cf1cd3c5235b33d1165e6797", | ||
"field_mapping": {}, | ||
"type": "trace" | ||
}, | ||
"table": { | ||
"dataset_name": "abracadabra", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "_amount", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "mSpellStaking_call_deposit" | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
dags/resources/stages/parse/table_definitions/abracadabra/mSpellStaking_call_withdraw.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"parser": { | ||
"abi": { | ||
"inputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_amount", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "withdraw", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
"contract_address": "0xbd2fbaf2dc95bd78cf1cd3c5235b33d1165e6797", | ||
"field_mapping": {}, | ||
"type": "trace" | ||
}, | ||
"table": { | ||
"dataset_name": "abracadabra", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "_amount", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "mSpellStaking_call_withdraw" | ||
} | ||
} |
Oops, something went wrong.