Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mathilde new parsers opensea - rarible - kiln #141

Merged
merged 5 commits into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes",
"name": "pubkey",
"type": "bytes"
}
],
"name": "ExitRequest",
"type": "event"
},
{
"inputs": [
{
"internalType": "bytes[]",
"name": "validators_",
"type": "bytes[]"
}
],
"name": "requestExit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "deposit_contract_address",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "LogDepositLeftover",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes",
"name": "pubkey",
"type": "bytes"
},
{
"indexed": false,
"internalType": "bytes",
"name": "withdrawal",
"type": "bytes"
}
],
"name": "LogDepositSent",
"type": "event"
},
{
"inputs": [
{
"internalType": "bytes[]",
"name": "pubkeys",
"type": "bytes[]"
},
{
"internalType": "bytes[]",
"name": "withdrawal_credentials",
"type": "bytes[]"
},
{
"internalType": "bytes[]",
"name": "signatures",
"type": "bytes[]"
},
{
"internalType": "bytes32[]",
"name": "deposit_data_roots",
"type": "bytes32[]"
}
],
"name": "batchDeposit",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "kDepositAmount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
]
174 changes: 169 additions & 5 deletions ethereum/kiln/parsers.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
}
}
],
"arguments_skipped": [],
"functionName": "deposit",
"functionType": "stake",
"options": {
Expand Down Expand Up @@ -72,6 +73,7 @@
}
}
],
"arguments_skipped": [],
"functionName": "withdraw",
"functionType": "withdraw",
"options": {},
Expand Down Expand Up @@ -103,7 +105,8 @@
"selector": "0x0968f264"
},
{
"arguments": [
"arguments": [],
"arguments_skipped": [
{
"format": "ARGUMENTFORMAT_RAW",
"name": "_publicKeys",
Expand Down Expand Up @@ -154,6 +157,7 @@
}
}
],
"arguments_skipped": [],
"functionName": "withdrawCLFee",
"functionType": "withdraw",
"options": {},
Expand Down Expand Up @@ -185,7 +189,8 @@
"selector": "0x2ba03a79"
},
{
"arguments": [
"arguments": [],
"arguments_skipped": [
{
"format": "ARGUMENTFORMAT_RAW",
"name": "_publicKeys",
Expand Down Expand Up @@ -236,6 +241,7 @@
}
}
],
"arguments_skipped": [],
"functionName": "withdrawELFee",
"functionType": "withdraw",
"options": {},
Expand Down Expand Up @@ -267,7 +273,8 @@
"selector": "0xbf509bd4"
},
{
"arguments": [
"arguments": [],
"arguments_skipped": [
{
"format": "ARGUMENTFORMAT_RAW",
"name": "_publicKeys",
Expand Down Expand Up @@ -305,7 +312,8 @@
"selector": "0xef5e4682"
},
{
"arguments": [
"arguments": [],
"arguments_skipped": [
{
"format": "ARGUMENTFORMAT_RAW",
"name": "_publicKeys",
Expand Down Expand Up @@ -343,8 +351,164 @@
"selector": "0xb6b06dec"
}
]
},
{
"abi": [],
"address": "0x004C226FFF73aA94b78a4Df1A0e861797BA16819",
"name": "0x004C226FFF73aA94b78a4Df1A0e861797BA16819",
"parsers": [
{
"arguments": [
{
"format": "ARGUMENTFORMAT_RAW",
"name": "validators_.0",
"value": {
"terminalValue": {
"path": {
"abi_path": "validators_.0"
}
}
}
}
],
"arguments_skipped": [],
"functionName": "requestExit",
"functionType": "unknown",
"options": {},
"screens": {
"blue_screens": [
{
"key_value_screen": {
"properties": [
{
"static_entry": {
"label": "Function",
"value": "requestExit"
}
},
{
"property_ref": {
"key": "sci.eth.arg.validators_.0",
"label": "validators_.0"
}
}
],
"skip_subheader": false,
"subtitle": " ",
"title": "APPROVE CONTRACT DATA"
}
}
]
},
"selector": "0x254209ba"
}
]
},
{
"abi": [],
"address": "0x9b8c989FF27e948F55B53Bb19B3cC1947852E394",
"name": "Direct staking - Batch deposit ",
"parsers": [
{
"arguments": [
{
"format": "ARGUMENTFORMAT_RAW",
"name": "withdrawal_credentials.0",
"value": {
"terminalValue": {
"path": {
"abi_path": "withdrawal_credentials.0"
}
}
}
}
],
"arguments_skipped": [
{
"format": "ARGUMENTFORMAT_RAW",
"name": "pubkeys.0",
"value": {
"terminalValue": {
"path": {
"abi_path": "pubkeys.0"
}
}
}
},
{
"format": "ARGUMENTFORMAT_RAW",
"name": "signatures.0",
"value": {
"terminalValue": {
"path": {
"abi_path": "signatures.0"
}
}
}
},
{
"format": "ARGUMENTFORMAT_RAW",
"name": "deposit_data_roots.0",
"value": {
"terminalValue": {
"path": {
"abi_path": "deposit_data_roots.0"
}
}
}
}
],
"functionName": "batchDeposit",
"functionType": "unknown",
"options": {},
"screens": {
"blue_screens": [
{
"key_value_screen": {
"properties": [
{
"static_entry": {
"label": "Function",
"value": "Batch deposit"
}
},
{
"property_ref": {
"key": "sci.eth.arg.withdrawal_credentials.0",
"label": "Withdr. credentials (1st addr)"
}
},
{
"static_entry": {
"label": "pubkeys",
"value": "(Cannot be displayed)"
}
},
{
"static_entry": {
"label": "signatures",
"value": "(Cannot be displayed)"
}
},
{
"static_entry": {
"label": "deposit_data_roots.0",
"value": "(Cannot be displayed)"
}
}
],
"skip_subheader": false,
"subtitle": " ",
"title": "APPROVE CONTRACT DATA"
}
}
]
},
"selector": "0xca0bfcce"
}
]
}
],
"id": "kiln",
"name": "Kiln"
}
}
Loading