-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for some Stablecoins (#669)
* add Ethena USD USDe Events and Calls * add USDM calls and events * add prisma USD mkUSD events and calls * add alchemix alUSD * remove wrong blacklist function - add correct one * add whitelist call * add wUSDM events and calls
- Loading branch information
1 parent
ea9c1af
commit a116390
Showing
47 changed files
with
2,300 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
dags/resources/stages/parse/table_definitions/alchemix/alUSD_call_burn.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": "burn", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
"contract_address": "0xbc6da0fe9ad5f3b0d58160288917aa56653660e9", | ||
"field_mapping": {}, | ||
"type": "trace" | ||
}, | ||
"table": { | ||
"dataset_name": "alchemix", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "amount", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "alUSD_call_burn" | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
dags/resources/stages/parse/table_definitions/alchemix/alUSD_call_burnFrom.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": "account", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "amount", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "burnFrom", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
"contract_address": "0xbc6da0fe9ad5f3b0d58160288917aa56653660e9", | ||
"field_mapping": {}, | ||
"type": "trace" | ||
}, | ||
"table": { | ||
"dataset_name": "alchemix", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "account", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "amount", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "alUSD_call_burnFrom" | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
dags/resources/stages/parse/table_definitions/alchemix/alUSD_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": "_recipient", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "_amount", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "mint", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
"contract_address": "0xbc6da0fe9ad5f3b0d58160288917aa56653660e9", | ||
"field_mapping": {}, | ||
"type": "trace" | ||
}, | ||
"table": { | ||
"dataset_name": "alchemix", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "_recipient", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "_amount", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "alUSD_call_mint" | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
dags/resources/stages/parse/table_definitions/alchemix/alUSD_call_setBlacklist.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": "address", | ||
"name": "_toBlacklist", | ||
"type": "address" | ||
} | ||
], | ||
"name": "setBlacklist", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
"contract_address": "0xbc6da0fe9ad5f3b0d58160288917aa56653660e9", | ||
"field_mapping": {}, | ||
"type": "trace" | ||
}, | ||
"table": { | ||
"dataset_name": "alchemix", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "_toBlacklist", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "alUSD_call_setBlacklist" | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
dags/resources/stages/parse/table_definitions/alchemix/alUSD_call_setWhitelist.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": "_toWhitelist", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "_state", | ||
"type": "bool" | ||
} | ||
], | ||
"name": "setWhitelist", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
"contract_address": "0xbc6da0fe9ad5f3b0d58160288917aa56653660e9", | ||
"field_mapping": {}, | ||
"type": "trace" | ||
}, | ||
"table": { | ||
"dataset_name": "alchemix", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "_toWhitelist", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "_state", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "alUSD_call_setWhitelist" | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
dags/resources/stages/parse/table_definitions/alchemix/alUSD_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": "recipient", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "amount", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "transfer", | ||
"outputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "", | ||
"type": "bool" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
"contract_address": "0xbc6da0fe9ad5f3b0d58160288917aa56653660e9", | ||
"field_mapping": {}, | ||
"type": "trace" | ||
}, | ||
"table": { | ||
"dataset_name": "alchemix", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "recipient", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "amount", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "alUSD_call_transfer" | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
dags/resources/stages/parse/table_definitions/alchemix/alUSD_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": "sender", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "recipient", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "amount", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "transferFrom", | ||
"outputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "", | ||
"type": "bool" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
"contract_address": "0xbc6da0fe9ad5f3b0d58160288917aa56653660e9", | ||
"field_mapping": {}, | ||
"type": "trace" | ||
}, | ||
"table": { | ||
"dataset_name": "alchemix", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "sender", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "recipient", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "amount", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "alUSD_call_transferFrom" | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
dags/resources/stages/parse/table_definitions/alchemix/alUSD_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": "0xbc6da0fe9ad5f3b0d58160288917aa56653660e9", | ||
"field_mapping": {}, | ||
"type": "log" | ||
}, | ||
"table": { | ||
"dataset_name": "alchemix", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "owner", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "spender", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "value", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "alUSD_event_Approval" | ||
} | ||
} |
Oops, something went wrong.