-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #129 from rstevens2022/adding-seaportv12
add seaport v1.2 events + calls on polygon
- Loading branch information
Showing
22 changed files
with
3,064 additions
and
0 deletions.
There are no files selected for viewing
154 changes: 154 additions & 0 deletions
154
airflow/dags/resources/stages/parse/table_definitions/seaport/SeaportV12_call_cancel.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,154 @@ | ||
{ | ||
"parser": { | ||
"abi": { | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "address", | ||
"name": "offerer", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "zone", | ||
"type": "address" | ||
}, | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "enumItemType", | ||
"name": "itemType", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "token", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "identifierOrCriteria", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "startAmount", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "endAmount", | ||
"type": "uint256" | ||
} | ||
], | ||
"internalType": "structOfferItem[]", | ||
"name": "offer", | ||
"type": "tuple[]" | ||
}, | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "enumItemType", | ||
"name": "itemType", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "token", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "identifierOrCriteria", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "startAmount", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "endAmount", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "addresspayable", | ||
"name": "recipient", | ||
"type": "address" | ||
} | ||
], | ||
"internalType": "structConsiderationItem[]", | ||
"name": "consideration", | ||
"type": "tuple[]" | ||
}, | ||
{ | ||
"internalType": "enumOrderType", | ||
"name": "orderType", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "startTime", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "endTime", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "zoneHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "salt", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "conduitKey", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "counter", | ||
"type": "uint256" | ||
} | ||
], | ||
"internalType": "structOrderComponents[]", | ||
"name": "orders", | ||
"type": "tuple[]" | ||
} | ||
], | ||
"name": "cancel", | ||
"outputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "cancelled", | ||
"type": "bool" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
"contract_address": "0x00000000000006c7676171937c444f6bde3d6282", | ||
"field_mapping": {}, | ||
"type": "trace" | ||
}, | ||
"table": { | ||
"dataset_name": "seaport", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "orders", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "SeaportV12_call_cancel" | ||
} | ||
} |
238 changes: 238 additions & 0 deletions
238
...esources/stages/parse/table_definitions/seaport/SeaportV12_call_fulfillAdvancedOrder.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,238 @@ | ||
{ | ||
"parser": { | ||
"abi": { | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "address", | ||
"name": "offerer", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "zone", | ||
"type": "address" | ||
}, | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "enumItemType", | ||
"name": "itemType", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "token", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "identifierOrCriteria", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "startAmount", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "endAmount", | ||
"type": "uint256" | ||
} | ||
], | ||
"internalType": "structOfferItem[]", | ||
"name": "offer", | ||
"type": "tuple[]" | ||
}, | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "enumItemType", | ||
"name": "itemType", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "token", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "identifierOrCriteria", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "startAmount", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "endAmount", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "addresspayable", | ||
"name": "recipient", | ||
"type": "address" | ||
} | ||
], | ||
"internalType": "structConsiderationItem[]", | ||
"name": "consideration", | ||
"type": "tuple[]" | ||
}, | ||
{ | ||
"internalType": "enumOrderType", | ||
"name": "orderType", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "startTime", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "endTime", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "zoneHash", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "salt", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "conduitKey", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "totalOriginalConsiderationItems", | ||
"type": "uint256" | ||
} | ||
], | ||
"internalType": "structOrderParameters", | ||
"name": "parameters", | ||
"type": "tuple" | ||
}, | ||
{ | ||
"internalType": "uint120", | ||
"name": "numerator", | ||
"type": "uint120" | ||
}, | ||
{ | ||
"internalType": "uint120", | ||
"name": "denominator", | ||
"type": "uint120" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "signature", | ||
"type": "bytes" | ||
}, | ||
{ | ||
"internalType": "bytes", | ||
"name": "extraData", | ||
"type": "bytes" | ||
} | ||
], | ||
"internalType": "structAdvancedOrder", | ||
"name": "advancedOrder", | ||
"type": "tuple" | ||
}, | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "orderIndex", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "enumSide", | ||
"name": "side", | ||
"type": "uint8" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "index", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "identifier", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "bytes32[]", | ||
"name": "criteriaProof", | ||
"type": "bytes32[]" | ||
} | ||
], | ||
"internalType": "structCriteriaResolver[]", | ||
"name": "criteriaResolvers", | ||
"type": "tuple[]" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "fulfillerConduitKey", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "recipient", | ||
"type": "address" | ||
} | ||
], | ||
"name": "fulfillAdvancedOrder", | ||
"outputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "fulfilled", | ||
"type": "bool" | ||
} | ||
], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
}, | ||
"contract_address": "0x00000000000006c7676171937c444f6bde3d6282", | ||
"field_mapping": {}, | ||
"type": "trace" | ||
}, | ||
"table": { | ||
"dataset_name": "seaport", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "advancedOrder", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "criteriaResolvers", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "fulfillerConduitKey", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "recipient", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "SeaportV12_call_fulfillAdvancedOrder" | ||
} | ||
} |
Oops, something went wrong.