From be5f7bb8fb06fc398e4eacbba81b4463adf33c43 Mon Sep 17 00:00:00 2001 From: mth <82212493+mfroissart-ledger@users.noreply.github.com> Date: Wed, 19 Jul 2023 13:45:41 +0200 Subject: [PATCH 1/5] Update 0x9757f2d2b135150bbeb65308d4a91804107cd8d6.abi.json add full proxy abi --- ...2b135150bbeb65308d4a91804107cd8d6.abi.json | 1488 +++++++++-------- 1 file changed, 786 insertions(+), 702 deletions(-) diff --git a/ethereum/rarible/abis/0x9757f2d2b135150bbeb65308d4a91804107cd8d6.abi.json b/ethereum/rarible/abis/0x9757f2d2b135150bbeb65308d4a91804107cd8d6.abi.json index 8fb5ea4e..ccb724d2 100644 --- a/ethereum/rarible/abis/0x9757f2d2b135150bbeb65308d4a91804107cd8d6.abi.json +++ b/ethereum/rarible/abis/0x9757f2d2b135150bbeb65308d4a91804107cd8d6.abi.json @@ -1,816 +1,900 @@ [ { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "hash", - "type": "bytes32" - }, + "inputs": [ + { + "internalType": "address", + "name": "_logic", + "type": "address" + }, + { + "internalType": "address", + "name": "admin_", + "type": "address" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "stateMutability": "payable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "previousAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "AdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "beacon", + "type": "address" + } + ], + "name": "BeaconUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "implementation", + "type": "address" + } + ], + "name": "Upgraded", + "type": "event" + }, + { + "stateMutability": "payable", + "type": "fallback" + }, + { + "inputs": [], + "name": "admin", + "outputs": [ + { + "internalType": "address", + "name": "admin_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "changeAdmin", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "implementation", + "outputs": [ + { + "internalType": "address", + "name": "implementation_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + } + ], + "name": "upgradeTo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "upgradeToAndCall", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "stateMutability": "payable", + "type": "receive" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "hash", + "type": "bytes32" + } + ], + "name": "Cancel", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "leftHash", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "rightHash", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "newLeftFill", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "newRightFill", + "type": "uint256" + } + ], + "name": "Match", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes4", + "name": "assetType", + "type": "bytes4" + }, + { + "indexed": false, + "internalType": "address", + "name": "matcher", + "type": "address" + } + ], + "name": "MatcherChange", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes4", + "name": "assetType", + "type": "bytes4" + }, + { + "indexed": false, + "internalType": "address", + "name": "proxy", + "type": "address" + } + ], + "name": "ProxyChange", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_transferProxy", + "type": "address" + }, + { + "internalType": "address", + "name": "_erc20TransferProxy", + "type": "address" + }, + { + "internalType": "uint256", + "name": "newProtocolFee", + "type": "uint256" + }, + { + "internalType": "address", + "name": "newDefaultFeeReceiver", + "type": "address" + }, + { + "internalType": "contract IRoyaltiesProvider", + "name": "newRoyaltiesProvider", + "type": "address" + } + ], + "name": "__ExchangeV2_init", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ { - "indexed": false, - "internalType": "address", - "name": "maker", - "type": "address" + "internalType": "address", + "name": "maker", + "type": "address" }, { - "components": [ + "components": [ + { + "components": [ { - "internalType": "bytes4", - "name": "assetClass", - "type": "bytes4" + "internalType": "bytes4", + "name": "assetClass", + "type": "bytes4" }, { - "internalType": "bytes", - "name": "data", - "type": "bytes" + "internalType": "bytes", + "name": "data", + "type": "bytes" } - ], - "indexed": false, - "internalType": "struct LibAsset.AssetType", - "name": "makeAssetType", - "type": "tuple" + ], + "internalType": "struct LibAsset.AssetType", + "name": "assetType", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "internalType": "struct LibAsset.Asset", + "name": "makeAsset", + "type": "tuple" }, { - "components": [ + "internalType": "address", + "name": "taker", + "type": "address" + }, + { + "components": [ + { + "components": [ { - "internalType": "bytes4", - "name": "assetClass", - "type": "bytes4" + "internalType": "bytes4", + "name": "assetClass", + "type": "bytes4" }, { - "internalType": "bytes", - "name": "data", - "type": "bytes" + "internalType": "bytes", + "name": "data", + "type": "bytes" } - ], - "indexed": false, - "internalType": "struct LibAsset.AssetType", - "name": "takeAssetType", - "type": "tuple" + ], + "internalType": "struct LibAsset.AssetType", + "name": "assetType", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "internalType": "struct LibAsset.Asset", + "name": "takeAsset", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "salt", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "start", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "end", + "type": "uint256" + }, + { + "internalType": "bytes4", + "name": "dataType", + "type": "bytes4" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" } - ], - "name": "Cancel", - "type": "event" + ], + "internalType": "struct LibOrder.Order", + "name": "order", + "type": "tuple" + } + ], + "name": "cancel", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, - "inputs": [ + "inputs": [ + { + "components": [ { - "indexed": false, - "internalType": "bytes32", - "name": "leftHash", - "type": "bytes32" + "internalType": "address", + "name": "bidMaker", + "type": "address" }, { - "indexed": false, - "internalType": "bytes32", - "name": "rightHash", - "type": "bytes32" + "internalType": "uint256", + "name": "bidNftAmount", + "type": "uint256" }, { - "indexed": false, - "internalType": "address", - "name": "leftMaker", - "type": "address" + "internalType": "bytes4", + "name": "nftAssetClass", + "type": "bytes4" }, { - "indexed": false, - "internalType": "address", - "name": "rightMaker", - "type": "address" + "internalType": "bytes", + "name": "nftData", + "type": "bytes" }, { - "indexed": false, - "internalType": "uint256", - "name": "newLeftFill", - "type": "uint256" + "internalType": "uint256", + "name": "bidPaymentAmount", + "type": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "newRightFill", - "type": "uint256" + "internalType": "address", + "name": "paymentToken", + "type": "address" }, { - "components": [ - { - "internalType": "bytes4", - "name": "assetClass", - "type": "bytes4" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "indexed": false, - "internalType": "struct LibAsset.AssetType", - "name": "leftAsset", - "type": "tuple" + "internalType": "uint256", + "name": "bidSalt", + "type": "uint256" }, { - "components": [ - { - "internalType": "bytes4", - "name": "assetClass", - "type": "bytes4" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "indexed": false, - "internalType": "struct LibAsset.AssetType", - "name": "rightAsset", - "type": "tuple" - } - ], - "name": "Match", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ + "internalType": "uint256", + "name": "bidStart", + "type": "uint256" + }, { - "indexed": true, - "internalType": "bytes4", - "name": "assetType", - "type": "bytes4" + "internalType": "uint256", + "name": "bidEnd", + "type": "uint256" }, { - "indexed": false, - "internalType": "address", - "name": "matcher", - "type": "address" - } - ], - "name": "MatcherChange", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ + "internalType": "bytes4", + "name": "bidDataType", + "type": "bytes4" + }, { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" + "internalType": "bytes", + "name": "bidData", + "type": "bytes" }, { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ + "internalType": "bytes", + "name": "bidSignature", + "type": "bytes" + }, + { + "internalType": "uint256", + "name": "sellOrderPaymentAmount", + "type": "uint256" + }, { - "indexed": true, - "internalType": "bytes4", - "name": "assetType", - "type": "bytes4" + "internalType": "uint256", + "name": "sellOrderNftAmount", + "type": "uint256" }, { - "indexed": false, - "internalType": "address", - "name": "proxy", - "type": "address" + "internalType": "bytes", + "name": "sellOrderData", + "type": "bytes" } - ], - "name": "ProxyChange", - "type": "event" + ], + "internalType": "struct LibDirectTransfer.AcceptBid", + "name": "direct", + "type": "tuple" + } + ], + "name": "directAcceptBid", + "outputs": [], + "stateMutability": "payable", + "type": "function" }, { - "anonymous": false, - "inputs": [ + "inputs": [ + { + "components": [ { - "components": [ - { - "components": [ - { - "internalType": "bytes4", - "name": "assetClass", - "type": "bytes4" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "internalType": "struct LibAsset.AssetType", - "name": "assetType", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "indexed": false, - "internalType": "struct LibAsset.Asset", - "name": "asset", - "type": "tuple" + "internalType": "address", + "name": "sellOrderMaker", + "type": "address" }, { - "indexed": false, - "internalType": "address", - "name": "from", - "type": "address" + "internalType": "uint256", + "name": "sellOrderNftAmount", + "type": "uint256" }, { - "indexed": false, - "internalType": "address", - "name": "to", - "type": "address" + "internalType": "bytes4", + "name": "nftAssetClass", + "type": "bytes4" }, { - "indexed": false, - "internalType": "bytes4", - "name": "transferDirection", - "type": "bytes4" + "internalType": "bytes", + "name": "nftData", + "type": "bytes" }, { - "indexed": false, - "internalType": "bytes4", - "name": "transferType", - "type": "bytes4" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "inputs": [ + "internalType": "uint256", + "name": "sellOrderPaymentAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "paymentToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "sellOrderSalt", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sellOrderStart", + "type": "uint256" + }, { - "internalType": "contract INftTransferProxy", - "name": "_transferProxy", - "type": "address" + "internalType": "uint256", + "name": "sellOrderEnd", + "type": "uint256" }, { - "internalType": "contract IERC20TransferProxy", - "name": "_erc20TransferProxy", - "type": "address" + "internalType": "bytes4", + "name": "sellOrderDataType", + "type": "bytes4" }, { - "internalType": "uint256", - "name": "newProtocolFee", - "type": "uint256" + "internalType": "bytes", + "name": "sellOrderData", + "type": "bytes" }, { - "internalType": "address", - "name": "newDefaultFeeReceiver", - "type": "address" + "internalType": "bytes", + "name": "sellOrderSignature", + "type": "bytes" }, { - "internalType": "contract IRoyaltiesProvider", - "name": "newRoyaltiesProvider", - "type": "address" + "internalType": "uint256", + "name": "buyOrderPaymentAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "buyOrderNftAmount", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "buyOrderData", + "type": "bytes" } - ], - "name": "__ExchangeV2_init", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ], + "internalType": "struct LibDirectTransfer.Purchase", + "name": "direct", + "type": "tuple" + } + ], + "name": "directPurchase", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "name": "fills", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" }, { - "inputs": [ + "inputs": [ + { + "components": [ { - "components": [ - { - "internalType": "address", - "name": "maker", - "type": "address" - }, - { - "components": [ - { - "components": [ - { - "internalType": "bytes4", - "name": "assetClass", - "type": "bytes4" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "internalType": "struct LibAsset.AssetType", - "name": "assetType", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "internalType": "struct LibAsset.Asset", - "name": "makeAsset", - "type": "tuple" - }, - { - "internalType": "address", - "name": "taker", - "type": "address" - }, - { - "components": [ - { - "components": [ - { - "internalType": "bytes4", - "name": "assetClass", - "type": "bytes4" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "internalType": "struct LibAsset.AssetType", - "name": "assetType", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "internalType": "struct LibAsset.Asset", - "name": "takeAsset", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "salt", - "type": "uint256" - }, + "internalType": "address", + "name": "maker", + "type": "address" + }, + { + "components": [ + { + "components": [ { - "internalType": "uint256", - "name": "start", - "type": "uint256" + "internalType": "bytes4", + "name": "assetClass", + "type": "bytes4" }, { - "internalType": "uint256", - "name": "end", - "type": "uint256" - }, + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "internalType": "struct LibAsset.AssetType", + "name": "assetType", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "internalType": "struct LibAsset.Asset", + "name": "makeAsset", + "type": "tuple" + }, + { + "internalType": "address", + "name": "taker", + "type": "address" + }, + { + "components": [ + { + "components": [ { - "internalType": "bytes4", - "name": "dataType", - "type": "bytes4" + "internalType": "bytes4", + "name": "assetClass", + "type": "bytes4" }, { - "internalType": "bytes", - "name": "data", - "type": "bytes" + "internalType": "bytes", + "name": "data", + "type": "bytes" } - ], - "internalType": "struct LibOrder.Order", - "name": "order", - "type": "tuple" - } - ], - "name": "cancel", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "defaultFeeReceiver", - "outputs": [ + ], + "internalType": "struct LibAsset.AssetType", + "name": "assetType", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "internalType": "struct LibAsset.Asset", + "name": "takeAsset", + "type": "tuple" + }, { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ + "internalType": "uint256", + "name": "salt", + "type": "uint256" + }, { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "feeReceivers", - "outputs": [ + "internalType": "uint256", + "name": "start", + "type": "uint256" + }, { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ + "internalType": "uint256", + "name": "end", + "type": "uint256" + }, { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "fills", - "outputs": [ + "internalType": "bytes4", + "name": "dataType", + "type": "bytes4" + }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "internalType": "bytes", + "name": "data", + "type": "bytes" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ + ], + "internalType": "struct LibOrder.Order", + "name": "orderLeft", + "type": "tuple" + }, + { + "internalType": "bytes", + "name": "signatureLeft", + "type": "bytes" + }, + { + "components": [ + { + "internalType": "address", + "name": "maker", + "type": "address" + }, { - "components": [ - { - "internalType": "address", - "name": "maker", - "type": "address" - }, - { - "components": [ - { - "components": [ - { - "internalType": "bytes4", - "name": "assetClass", - "type": "bytes4" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "internalType": "struct LibAsset.AssetType", - "name": "assetType", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "internalType": "struct LibAsset.Asset", - "name": "makeAsset", - "type": "tuple" - }, - { - "internalType": "address", - "name": "taker", - "type": "address" - }, - { - "components": [ - { - "components": [ - { - "internalType": "bytes4", - "name": "assetClass", - "type": "bytes4" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "internalType": "struct LibAsset.AssetType", - "name": "assetType", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "internalType": "struct LibAsset.Asset", - "name": "takeAsset", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "salt", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - }, + "components": [ + { + "components": [ { - "internalType": "bytes4", - "name": "dataType", - "type": "bytes4" + "internalType": "bytes4", + "name": "assetClass", + "type": "bytes4" }, { - "internalType": "bytes", - "name": "data", - "type": "bytes" + "internalType": "bytes", + "name": "data", + "type": "bytes" } - ], - "internalType": "struct LibOrder.Order", - "name": "orderLeft", - "type": "tuple" + ], + "internalType": "struct LibAsset.AssetType", + "name": "assetType", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "internalType": "struct LibAsset.Asset", + "name": "makeAsset", + "type": "tuple" }, { - "internalType": "bytes", - "name": "signatureLeft", - "type": "bytes" + "internalType": "address", + "name": "taker", + "type": "address" }, { - "components": [ + "components": [ + { + "components": [ { - "internalType": "address", - "name": "maker", - "type": "address" + "internalType": "bytes4", + "name": "assetClass", + "type": "bytes4" }, { - "components": [ - { - "components": [ - { - "internalType": "bytes4", - "name": "assetClass", - "type": "bytes4" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "internalType": "struct LibAsset.AssetType", - "name": "assetType", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "internalType": "struct LibAsset.Asset", - "name": "makeAsset", - "type": "tuple" - }, - { - "internalType": "address", - "name": "taker", - "type": "address" - }, - { - "components": [ - { - "components": [ - { - "internalType": "bytes4", - "name": "assetClass", - "type": "bytes4" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "internalType": "struct LibAsset.AssetType", - "name": "assetType", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "internalType": "struct LibAsset.Asset", - "name": "takeAsset", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "salt", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - }, - { - "internalType": "bytes4", - "name": "dataType", - "type": "bytes4" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" + "internalType": "bytes", + "name": "data", + "type": "bytes" } - ], - "internalType": "struct LibOrder.Order", - "name": "orderRight", - "type": "tuple" + ], + "internalType": "struct LibAsset.AssetType", + "name": "assetType", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "internalType": "struct LibAsset.Asset", + "name": "takeAsset", + "type": "tuple" }, { - "internalType": "bytes", - "name": "signatureRight", - "type": "bytes" - } - ], - "name": "matchOrders", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "protocolFee", - "outputs": [ + "internalType": "uint256", + "name": "salt", + "type": "uint256" + }, { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "royaltiesRegistry", - "outputs": [ + "internalType": "uint256", + "name": "start", + "type": "uint256" + }, { - "internalType": "contract IRoyaltiesProvider", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ + "internalType": "uint256", + "name": "end", + "type": "uint256" + }, { - "internalType": "bytes4", - "name": "assetType", - "type": "bytes4" + "internalType": "bytes4", + "name": "dataType", + "type": "bytes4" }, { - "internalType": "address", - "name": "matcher", - "type": "address" + "internalType": "bytes", + "name": "data", + "type": "bytes" } - ], - "name": "setAssetMatcher", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ], + "internalType": "struct LibOrder.Order", + "name": "orderRight", + "type": "tuple" + }, + { + "internalType": "bytes", + "name": "signatureRight", + "type": "bytes" + } + ], + "name": "matchOrders", + "outputs": [], + "stateMutability": "payable", + "type": "function" }, { - "inputs": [ - { - "internalType": "address payable", - "name": "newDefaultFeeReceiver", - "type": "address" - } - ], - "name": "setDefaultFeeReceiver", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "address", - "name": "wallet", - "type": "address" - } - ], - "name": "setFeeReceiver", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "inputs": [ - { - "internalType": "uint256", - "name": "newProtocolFee", - "type": "uint256" - } - ], - "name": "setProtocolFee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "inputs": [], + "name": "royaltiesRegistry", + "outputs": [ + { + "internalType": "contract IRoyaltiesProvider", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" }, { - "inputs": [ - { - "internalType": "contract IRoyaltiesProvider", - "name": "newRoyaltiesRegistry", - "type": "address" - } - ], - "name": "setRoyaltiesRegistry", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "inputs": [ + { + "internalType": "bytes4", + "name": "assetType", + "type": "bytes4" + }, + { + "internalType": "address", + "name": "matcher", + "type": "address" + } + ], + "name": "setAssetMatcher", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "inputs": [ - { - "internalType": "bytes4", - "name": "assetType", - "type": "bytes4" - }, - { - "internalType": "address", - "name": "proxy", - "type": "address" - } - ], - "name": "setTransferProxy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "inputs": [ + { + "internalType": "contract IRoyaltiesProvider", + "name": "newRoyaltiesRegistry", + "type": "address" + } + ], + "name": "setRoyaltiesRegistry", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "inputs": [ + { + "internalType": "bytes4", + "name": "assetType", + "type": "bytes4" + }, + { + "internalType": "address", + "name": "proxy", + "type": "address" + } + ], + "name": "setTransferProxy", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" } -] \ No newline at end of file + ] From bdf5fc8f2c79378d064a96752a1bbf7275609712 Mon Sep 17 00:00:00 2001 From: mth <82212493+mfroissart-ledger@users.noreply.github.com> Date: Wed, 19 Jul 2023 16:43:48 +0200 Subject: [PATCH 2/5] Update parsers.json add missing 'directPurchase' function on 0x9757F2d2b135150BBeb65308D4a91804107cd8D6 --- ethereum/rarible/parsers.json | 1067 +++++++++++++++++++++++++++------ 1 file changed, 877 insertions(+), 190 deletions(-) diff --git a/ethereum/rarible/parsers.json b/ethereum/rarible/parsers.json index 74a049f0..c5d6358f 100644 --- a/ethereum/rarible/parsers.json +++ b/ethereum/rarible/parsers.json @@ -3500,74 +3500,795 @@ "arguments": [ { "format": "ARGUMENTFORMAT_EIP55", - "name": "newDefaultFeeReceiver", + "name": "newRoyaltiesRegistry", + "value": { + "terminalValue": { + "path": { + "abi_path": "newRoyaltiesRegistry" + } + } + } + } + ], + "arguments_skipped": [], + "functionName": "setRoyaltiesRegistry", + "functionType": "unknown", + "options": {}, + "screens": { + "blue_screens": [ + { + "key_value_screen": { + "properties": [ + { + "static_entry": { + "label": "Function", + "value": "setRoyaltiesRegistry" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.newRoyaltiesRegistry", + "label": "newRoyaltiesRegistry" + } + } + ], + "skip_subheader": false, + "subtitle": " ", + "title": "APPROVE CONTRACT DATA" + } + } + ] + }, + "selector": "0x3be89922" + }, + { + "arguments": [ + { + "format": "ARGUMENTFORMAT_RAW", + "name": "assetType", + "value": { + "terminalValue": { + "path": { + "abi_path": "assetType" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_EIP55", + "name": "proxy", + "value": { + "terminalValue": { + "path": { + "abi_path": "proxy" + } + } + } + } + ], + "arguments_skipped": [], + "functionName": "setTransferProxy", + "functionType": "unknown", + "options": {}, + "screens": { + "blue_screens": [ + { + "key_value_screen": { + "properties": [ + { + "static_entry": { + "label": "Function", + "value": "setTransferProxy" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.assetType", + "label": "assetType" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.proxy", + "label": "proxy" + } + } + ], + "skip_subheader": false, + "subtitle": " ", + "title": "APPROVE CONTRACT DATA" + } + } + ] + }, + "selector": "0x30c642f1" + }, + { + "arguments": [ + { + "format": "ARGUMENTFORMAT_EIP55", + "name": "newOwner", + "value": { + "terminalValue": { + "path": { + "abi_path": "newOwner" + } + } + } + } + ], + "arguments_skipped": [], + "functionName": "transferOwnership", + "functionType": "unknown", + "options": {}, + "screens": { + "blue_screens": [ + { + "key_value_screen": { + "properties": [ + { + "static_entry": { + "label": "Function", + "value": "transferOwnership" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.newOwner", + "label": "newOwner" + } + } + ], + "skip_subheader": false, + "subtitle": " ", + "title": "APPROVE CONTRACT DATA" + } + } + ] + }, + "selector": "0xf2fde38b" + }, + { + "arguments": [], + "functionName": "admin", + "functionType": "unknown", + "options": {}, + "screens": { + "blue_screens": [ + { + "key_value_screen": { + "properties": [ + { + "static_entry": { + "label": "Function", + "value": "admin" + } + } + ], + "skip_subheader": false, + "subtitle": " ", + "title": "APPROVE CONTRACT DATA" + } + } + ] + }, + "selector": "0xf851a440", + "arguments_skipped": [] + }, + { + "arguments": [ + { + "format": "ARGUMENTFORMAT_EIP55", + "name": "newAdmin", + "value": { + "terminalValue": { + "path": { + "abi_path": "newAdmin" + } + } + } + } + ], + "functionName": "changeAdmin", + "functionType": "unknown", + "options": {}, + "screens": { + "blue_screens": [ + { + "key_value_screen": { + "properties": [ + { + "static_entry": { + "label": "Function", + "value": "changeAdmin" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.newAdmin", + "label": "newAdmin" + } + } + ], + "skip_subheader": false, + "subtitle": " ", + "title": "APPROVE CONTRACT DATA" + } + } + ] + }, + "selector": "0x8f283970", + "arguments_skipped": [] + }, + { + "arguments": [], + "functionName": "implementation", + "functionType": "unknown", + "options": {}, + "screens": { + "blue_screens": [ + { + "key_value_screen": { + "properties": [ + { + "static_entry": { + "label": "Function", + "value": "implementation" + } + } + ], + "skip_subheader": false, + "subtitle": " ", + "title": "APPROVE CONTRACT DATA" + } + } + ] + }, + "selector": "0x5c60da1b", + "arguments_skipped": [] + }, + { + "arguments": [ + { + "format": "ARGUMENTFORMAT_EIP55", + "name": "newImplementation", + "value": { + "terminalValue": { + "path": { + "abi_path": "newImplementation" + } + } + } + } + ], + "functionName": "upgradeTo", + "functionType": "unknown", + "options": {}, + "screens": { + "blue_screens": [ + { + "key_value_screen": { + "properties": [ + { + "static_entry": { + "label": "Function", + "value": "upgradeTo" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.newImplementation", + "label": "newImplementation" + } + } + ], + "skip_subheader": false, + "subtitle": " ", + "title": "APPROVE CONTRACT DATA" + } + } + ] + }, + "selector": "0x3659cfe6", + "arguments_skipped": [] + }, + { + "arguments": [ + { + "format": "ARGUMENTFORMAT_EIP55", + "name": "newImplementation", + "value": { + "terminalValue": { + "path": { + "abi_path": "newImplementation" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "data", + "value": { + "terminalValue": { + "path": { + "abi_path": "data" + } + } + } + } + ], + "functionName": "upgradeToAndCall", + "functionType": "unknown", + "options": {}, + "screens": { + "blue_screens": [ + { + "key_value_screen": { + "properties": [ + { + "static_entry": { + "label": "Function", + "value": "upgradeToAndCall" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.newImplementation", + "label": "newImplementation" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.data", + "label": "data" + } + } + ], + "skip_subheader": false, + "subtitle": " ", + "title": "APPROVE CONTRACT DATA" + } + } + ] + }, + "selector": "0x4f1ef286", + "arguments_skipped": [] + }, + { + "arguments": [ + { + "format": "ARGUMENTFORMAT_EIP55", + "name": "direct.bidMaker", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.bidMaker" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.bidNftAmount", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.bidNftAmount" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.nftAssetClass", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.nftAssetClass" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.nftData", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.nftData" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.bidPaymentAmount", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.bidPaymentAmount" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_EIP55", + "name": "direct.paymentToken", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.paymentToken" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.bidSalt", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.bidSalt" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.bidStart", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.bidStart" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.bidEnd", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.bidEnd" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.bidDataType", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.bidDataType" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.bidData", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.bidData" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.bidSignature", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.bidSignature" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.sellOrderPaymentAmount", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.sellOrderPaymentAmount" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.sellOrderNftAmount", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.sellOrderNftAmount" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.sellOrderData", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.sellOrderData" + } + } + } + } + ], + "functionName": "directAcceptBid", + "functionType": "unknown", + "options": {}, + "screens": { + "blue_screens": [ + { + "key_value_screen": { + "properties": [ + { + "static_entry": { + "label": "Function", + "value": "directAcceptBid" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.direct.bidMaker", + "label": "direct.bidMaker" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.direct.bidNftAmount", + "label": "direct.bidNftAmount" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.direct.nftAssetClass", + "label": "direct.nftAssetClass" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.direct.nftData", + "label": "direct.nftData" + } + } + ], + "skip_subheader": false, + "subtitle": " ", + "title": "APPROVE CONTRACT DATA" + } + }, + { + "key_value_screen": { + "properties": [ + { + "property_ref": { + "key": "sci.eth.arg.direct.bidPaymentAmount", + "label": "direct.bidPaymentAmount" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.direct.paymentToken", + "label": "direct.paymentToken" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.direct.bidSalt", + "label": "direct.bidSalt" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.direct.bidStart", + "label": "direct.bidStart" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.direct.bidEnd", + "label": "direct.bidEnd" + } + } + ], + "skip_subheader": false, + "subtitle": " ", + "title": "APPROVE CONTRACT DATA" + } + }, + { + "key_value_screen": { + "properties": [ + { + "property_ref": { + "key": "sci.eth.arg.direct.bidDataType", + "label": "direct.bidDataType" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.direct.bidData", + "label": "direct.bidData" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.direct.bidSignature", + "label": "direct.bidSignature" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.direct.sellOrderPaymentAmount", + "label": "direct.sellOrderPaymentAmount" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.direct.sellOrderNftAmount", + "label": "direct.sellOrderNftAmount" + } + } + ], + "skip_subheader": false, + "subtitle": " ", + "title": "APPROVE CONTRACT DATA" + } + }, + { + "key_value_screen": { + "properties": [ + { + "property_ref": { + "key": "sci.eth.arg.direct.sellOrderData", + "label": "direct.sellOrderData" + } + } + ], + "skip_subheader": false, + "subtitle": " ", + "title": "APPROVE CONTRACT DATA" + } + } + ] + }, + "selector": "0x67d49a3b", + "arguments_skipped": [] + }, + { + "arguments": [ + { + "format": "ARGUMENTFORMAT_EIP55", + "name": "direct.sellOrderMaker", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.sellOrderMaker" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.sellOrderNftAmount", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.sellOrderNftAmount" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.nftAssetClass", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.nftAssetClass" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.sellOrderPaymentAmount", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.sellOrderPaymentAmount" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_EIP55", + "name": "direct.paymentToken", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.paymentToken" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.sellOrderSalt", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.sellOrderSalt" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.sellOrderStart", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.sellOrderStart" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.sellOrderEnd", "value": { "terminalValue": { "path": { - "abi_path": "newDefaultFeeReceiver" + "abi_path": "direct.sellOrderEnd" } } } - } - ], - "arguments_skipped": [], - "functionName": "setDefaultFeeReceiver", - "functionType": "unknown", - "options": {}, - "screens": { - "blue_screens": [ - { - "key_value_screen": { - "properties": [ - { - "static_entry": { - "label": "Function", - "value": "setDefaultFeeReceiver" - } - }, - { - "property_ref": { - "key": "sci.eth.arg.newDefaultFeeReceiver", - "label": "newDefaultFeeReceiver" - } - } - ], - "skip_subheader": false, - "subtitle": " ", - "title": "APPROVE CONTRACT DATA" + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.sellOrderDataType", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.sellOrderDataType" + } } } - ] - }, - "selector": "0x1cdfe3d8" - }, - { - "arguments": [ + }, { - "format": "ARGUMENTFORMAT_EIP55", - "name": "token", + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.buyOrderPaymentAmount", "value": { "terminalValue": { "path": { - "abi_path": "token" + "abi_path": "direct.buyOrderPaymentAmount" } } } }, { - "format": "ARGUMENTFORMAT_EIP55", - "name": "wallet", + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.buyOrderNftAmount", "value": { "terminalValue": { "path": { - "abi_path": "wallet" + "abi_path": "direct.buyOrderNftAmount" } } } } ], - "arguments_skipped": [], - "functionName": "setFeeReceiver", + "functionName": "directPurchase", "functionType": "unknown", "options": {}, "screens": { @@ -3578,19 +4299,31 @@ { "static_entry": { "label": "Function", - "value": "setFeeReceiver" + "value": "directPurchase" } }, { "property_ref": { - "key": "sci.eth.arg.token", - "label": "token" + "key": "sci.eth.arg.direct.sellOrderMaker", + "label": "direct.sellOrderMaker" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.direct.sellOrderNftAmount", + "label": "direct.sellOrderNftAmount" } }, { "property_ref": { - "key": "sci.eth.arg.wallet", - "label": "wallet" + "key": "sci.eth.arg.direct.nftAssetClass", + "label": "direct.nftAssetClass" + } + }, + { + "static_entry": { + "label": "direct.nftData", + "value": "(Cannot be displayed)" } } ], @@ -3598,44 +4331,38 @@ "subtitle": " ", "title": "APPROVE CONTRACT DATA" } - } - ] - }, - "selector": "0xe66db25e" - }, - { - "arguments": [ - { - "format": "ARGUMENTFORMAT_RAW", - "name": "newProtocolFee", - "value": { - "terminalValue": { - "path": { - "abi_path": "newProtocolFee" - } - } - } - } - ], - "arguments_skipped": [], - "functionName": "setProtocolFee", - "functionType": "unknown", - "options": {}, - "screens": { - "blue_screens": [ + }, { "key_value_screen": { "properties": [ { - "static_entry": { - "label": "Function", - "value": "setProtocolFee" + "property_ref": { + "key": "sci.eth.arg.direct.sellOrderPaymentAmount", + "label": "direct.sellOrderPaymentAmount" } }, { "property_ref": { - "key": "sci.eth.arg.newProtocolFee", - "label": "newProtocolFee" + "key": "sci.eth.arg.direct.paymentToken", + "label": "direct.paymentToken" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.direct.sellOrderSalt", + "label": "direct.sellOrderSalt" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.direct.sellOrderStart", + "label": "direct.sellOrderStart" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.direct.sellOrderEnd", + "label": "direct.sellOrderEnd" } } ], @@ -3643,44 +4370,53 @@ "subtitle": " ", "title": "APPROVE CONTRACT DATA" } - } - ] - }, - "selector": "0x787dce3d" - }, - { - "arguments": [ - { - "format": "ARGUMENTFORMAT_EIP55", - "name": "newRoyaltiesRegistry", - "value": { - "terminalValue": { - "path": { - "abi_path": "newRoyaltiesRegistry" - } - } - } - } - ], - "arguments_skipped": [], - "functionName": "setRoyaltiesRegistry", - "functionType": "unknown", - "options": {}, - "screens": { - "blue_screens": [ + }, { "key_value_screen": { "properties": [ + { + "property_ref": { + "key": "sci.eth.arg.direct.sellOrderDataType", + "label": "direct.sellOrderDataType" + } + }, { "static_entry": { - "label": "Function", - "value": "setRoyaltiesRegistry" + "label": "direct.sellOrderData", + "value": "(Cannot be displayed)" + } + }, + { + "static_entry": { + "label": "direct.sellOrderSignature", + "value": "(Cannot be displayed)" } }, { "property_ref": { - "key": "sci.eth.arg.newRoyaltiesRegistry", - "label": "newRoyaltiesRegistry" + "key": "sci.eth.arg.direct.buyOrderPaymentAmount", + "label": "direct.buyOrderPaymentAmount" + } + }, + { + "property_ref": { + "key": "sci.eth.arg.direct.buyOrderNftAmount", + "label": "direct.buyOrderNftAmount" + } + } + ], + "skip_subheader": false, + "subtitle": " ", + "title": "APPROVE CONTRACT DATA" + } + }, + { + "key_value_screen": { + "properties": [ + { + "static_entry": { + "label": "direct.buyOrderData", + "value": "(Cannot be displayed)" } } ], @@ -3691,114 +4427,53 @@ } ] }, - "selector": "0x3be89922" - }, - { - "arguments": [ + "selector": "0x0d5f7d35", + "arguments_skipped": [ { "format": "ARGUMENTFORMAT_RAW", - "name": "assetType", + "name": "direct.nftData", "value": { "terminalValue": { "path": { - "abi_path": "assetType" + "abi_path": "direct.nftData" } } } }, { - "format": "ARGUMENTFORMAT_EIP55", - "name": "proxy", + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.sellOrderData", "value": { "terminalValue": { "path": { - "abi_path": "proxy" + "abi_path": "direct.sellOrderData" } } } - } - ], - "arguments_skipped": [], - "functionName": "setTransferProxy", - "functionType": "unknown", - "options": {}, - "screens": { - "blue_screens": [ - { - "key_value_screen": { - "properties": [ - { - "static_entry": { - "label": "Function", - "value": "setTransferProxy" - } - }, - { - "property_ref": { - "key": "sci.eth.arg.assetType", - "label": "assetType" - } - }, - { - "property_ref": { - "key": "sci.eth.arg.proxy", - "label": "proxy" - } - } - ], - "skip_subheader": false, - "subtitle": " ", - "title": "APPROVE CONTRACT DATA" + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.sellOrderSignature", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.sellOrderSignature" + } } } - ] - }, - "selector": "0x30c642f1" - }, - { - "arguments": [ + }, { - "format": "ARGUMENTFORMAT_EIP55", - "name": "newOwner", + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.buyOrderData", "value": { "terminalValue": { "path": { - "abi_path": "newOwner" + "abi_path": "direct.buyOrderData" } } } } - ], - "arguments_skipped": [], - "functionName": "transferOwnership", - "functionType": "unknown", - "options": {}, - "screens": { - "blue_screens": [ - { - "key_value_screen": { - "properties": [ - { - "static_entry": { - "label": "Function", - "value": "transferOwnership" - } - }, - { - "property_ref": { - "key": "sci.eth.arg.newOwner", - "label": "newOwner" - } - } - ], - "skip_subheader": false, - "subtitle": " ", - "title": "APPROVE CONTRACT DATA" - } - } - ] - }, - "selector": "0xf2fde38b" + ] } ] }, @@ -7416,8 +8091,20 @@ "selector": "0xf2fde38b" } ] + }, + { + "abi": [], + "address": "0x1cf0dF2A5A20Cd61d68d4489eEBbf85b8d39e18a", + "name": "0x1cf0dF2A5A20Cd61d68d4489eEBbf85b8d39e18a", + "parsers": [] + }, + { + "abi": [], + "address": "0xFDfF6b56CcE39482032b27140252FF4F16432785", + "name": "0xFDfF6b56CcE39482032b27140252FF4F16432785", + "parsers": [] } ], "id": "rarible", "name": "rarible" -} \ No newline at end of file +} From 5c2f6e609818d3d373900b42034c2232ff829ed2 Mon Sep 17 00:00:00 2001 From: mth <82212493+mfroissart-ledger@users.noreply.github.com> Date: Fri, 7 Jul 2023 11:05:57 +0200 Subject: [PATCH 3/5] Add direct staking contracts' ABIs --- ...fff73aa94b78a4df1a0e861797ba16819.abi.json | 34 +++++++ ...ff27e948f55b53bb19b3cc1947852e394.abi.json | 92 +++++++++++++++++++ 2 files changed, 126 insertions(+) create mode 100644 ethereum/kiln/abis/0x004c226fff73aa94b78a4df1a0e861797ba16819.abi.json create mode 100644 ethereum/kiln/abis/0x9b8c989ff27e948f55b53bb19b3cc1947852e394.abi.json diff --git a/ethereum/kiln/abis/0x004c226fff73aa94b78a4df1a0e861797ba16819.abi.json b/ethereum/kiln/abis/0x004c226fff73aa94b78a4df1a0e861797ba16819.abi.json new file mode 100644 index 00000000..75ee66c0 --- /dev/null +++ b/ethereum/kiln/abis/0x004c226fff73aa94b78a4df1a0e861797ba16819.abi.json @@ -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" + } +] \ No newline at end of file diff --git a/ethereum/kiln/abis/0x9b8c989ff27e948f55b53bb19b3cc1947852e394.abi.json b/ethereum/kiln/abis/0x9b8c989ff27e948f55b53bb19b3cc1947852e394.abi.json new file mode 100644 index 00000000..6ec193b2 --- /dev/null +++ b/ethereum/kiln/abis/0x9b8c989ff27e948f55b53bb19b3cc1947852e394.abi.json @@ -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" + } +] \ No newline at end of file From 758f04c2174910d0e27cd0a62ea05794acaf5273 Mon Sep 17 00:00:00 2001 From: mth <82212493+mfroissart-ledger@users.noreply.github.com> Date: Fri, 7 Jul 2023 11:06:34 +0200 Subject: [PATCH 4/5] Add direct staking contracts' parsers --- ethereum/kiln/parsers.json | 174 +++++++++++++++++++++++++++++++++++-- 1 file changed, 169 insertions(+), 5 deletions(-) diff --git a/ethereum/kiln/parsers.json b/ethereum/kiln/parsers.json index 748180c4..cf27ce44 100644 --- a/ethereum/kiln/parsers.json +++ b/ethereum/kiln/parsers.json @@ -26,6 +26,7 @@ } } ], + "arguments_skipped": [], "functionName": "deposit", "functionType": "stake", "options": { @@ -72,6 +73,7 @@ } } ], + "arguments_skipped": [], "functionName": "withdraw", "functionType": "withdraw", "options": {}, @@ -103,7 +105,8 @@ "selector": "0x0968f264" }, { - "arguments": [ + "arguments": [], + "arguments_skipped": [ { "format": "ARGUMENTFORMAT_RAW", "name": "_publicKeys", @@ -154,6 +157,7 @@ } } ], + "arguments_skipped": [], "functionName": "withdrawCLFee", "functionType": "withdraw", "options": {}, @@ -185,7 +189,8 @@ "selector": "0x2ba03a79" }, { - "arguments": [ + "arguments": [], + "arguments_skipped": [ { "format": "ARGUMENTFORMAT_RAW", "name": "_publicKeys", @@ -236,6 +241,7 @@ } } ], + "arguments_skipped": [], "functionName": "withdrawELFee", "functionType": "withdraw", "options": {}, @@ -267,7 +273,8 @@ "selector": "0xbf509bd4" }, { - "arguments": [ + "arguments": [], + "arguments_skipped": [ { "format": "ARGUMENTFORMAT_RAW", "name": "_publicKeys", @@ -305,7 +312,8 @@ "selector": "0xef5e4682" }, { - "arguments": [ + "arguments": [], + "arguments_skipped": [ { "format": "ARGUMENTFORMAT_RAW", "name": "_publicKeys", @@ -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" -} +} \ No newline at end of file From 486ae1453cdf4762cc578c4e10d777005884bf1e Mon Sep 17 00:00:00 2001 From: Pierre Collet Date: Wed, 19 Jul 2023 17:34:09 +0200 Subject: [PATCH 5/5] chore: format rarible 0x9757f2d2b135150bbeb65308d4a91804107cd8d6 abi & parsers.json --- ...2b135150bbeb65308d4a91804107cd8d6.abi.json | 1588 ++++++++--------- ethereum/rarible/parsers.json | 132 +- 2 files changed, 854 insertions(+), 866 deletions(-) diff --git a/ethereum/rarible/abis/0x9757f2d2b135150bbeb65308d4a91804107cd8d6.abi.json b/ethereum/rarible/abis/0x9757f2d2b135150bbeb65308d4a91804107cd8d6.abi.json index ccb724d2..445bc112 100644 --- a/ethereum/rarible/abis/0x9757f2d2b135150bbeb65308d4a91804107cd8d6.abi.json +++ b/ethereum/rarible/abis/0x9757f2d2b135150bbeb65308d4a91804107cd8d6.abi.json @@ -1,900 +1,900 @@ [ { - "inputs": [ - { - "internalType": "address", - "name": "_logic", - "type": "address" - }, - { - "internalType": "address", - "name": "admin_", - "type": "address" - }, - { - "internalType": "bytes", - "name": "_data", - "type": "bytes" - } - ], - "stateMutability": "payable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "previousAdmin", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "newAdmin", - "type": "address" - } - ], - "name": "AdminChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "beacon", - "type": "address" - } - ], - "name": "BeaconUpgraded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "implementation", - "type": "address" - } - ], - "name": "Upgraded", - "type": "event" - }, - { - "stateMutability": "payable", - "type": "fallback" - }, - { - "inputs": [], - "name": "admin", - "outputs": [ - { - "internalType": "address", - "name": "admin_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "function" + "inputs": [ + { + "internalType": "address", + "name": "_logic", + "type": "address" + }, + { + "internalType": "address", + "name": "admin_", + "type": "address" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "stateMutability": "payable", + "type": "constructor" }, { - "inputs": [ - { - "internalType": "address", - "name": "newAdmin", - "type": "address" - } - ], - "name": "changeAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "previousAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "AdminChanged", + "type": "event" }, { - "inputs": [], - "name": "implementation", - "outputs": [ - { - "internalType": "address", - "name": "implementation_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "beacon", + "type": "address" + } + ], + "name": "BeaconUpgraded", + "type": "event" }, { - "inputs": [ - { - "internalType": "address", - "name": "newImplementation", - "type": "address" - } - ], - "name": "upgradeTo", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "implementation", + "type": "address" + } + ], + "name": "Upgraded", + "type": "event" }, { - "inputs": [ - { - "internalType": "address", - "name": "newImplementation", - "type": "address" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "upgradeToAndCall", - "outputs": [], - "stateMutability": "payable", - "type": "function" + "stateMutability": "payable", + "type": "fallback" }, { - "stateMutability": "payable", - "type": "receive" + "inputs": [], + "name": "admin", + "outputs": [ + { + "internalType": "address", + "name": "admin_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "hash", - "type": "bytes32" - } - ], - "name": "Cancel", - "type": "event" + "inputs": [ + { + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "changeAdmin", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "leftHash", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "rightHash", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newLeftFill", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newRightFill", - "type": "uint256" - } - ], - "name": "Match", - "type": "event" + "inputs": [], + "name": "implementation", + "outputs": [ + { + "internalType": "address", + "name": "implementation_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes4", - "name": "assetType", - "type": "bytes4" - }, - { - "indexed": false, - "internalType": "address", - "name": "matcher", - "type": "address" - } - ], - "name": "MatcherChange", - "type": "event" + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + } + ], + "name": "upgradeTo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "upgradeToAndCall", + "outputs": [], + "stateMutability": "payable", + "type": "function" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes4", - "name": "assetType", - "type": "bytes4" - }, - { - "indexed": false, - "internalType": "address", - "name": "proxy", - "type": "address" - } - ], - "name": "ProxyChange", - "type": "event" + "stateMutability": "payable", + "type": "receive" }, { - "inputs": [ - { - "internalType": "address", - "name": "_transferProxy", - "type": "address" - }, - { - "internalType": "address", - "name": "_erc20TransferProxy", - "type": "address" - }, - { - "internalType": "uint256", - "name": "newProtocolFee", - "type": "uint256" - }, - { - "internalType": "address", - "name": "newDefaultFeeReceiver", - "type": "address" - }, - { - "internalType": "contract IRoyaltiesProvider", - "name": "newRoyaltiesProvider", - "type": "address" - } - ], - "name": "__ExchangeV2_init", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "hash", + "type": "bytes32" + } + ], + "name": "Cancel", + "type": "event" }, { - "inputs": [ - { - "components": [ - { - "internalType": "address", - "name": "maker", - "type": "address" - }, + "anonymous": false, + "inputs": [ { - "components": [ - { - "components": [ - { - "internalType": "bytes4", - "name": "assetClass", - "type": "bytes4" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "internalType": "struct LibAsset.AssetType", - "name": "assetType", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "internalType": "struct LibAsset.Asset", - "name": "makeAsset", - "type": "tuple" + "indexed": false, + "internalType": "bytes32", + "name": "leftHash", + "type": "bytes32" }, { - "internalType": "address", - "name": "taker", - "type": "address" + "indexed": false, + "internalType": "bytes32", + "name": "rightHash", + "type": "bytes32" }, { - "components": [ - { - "components": [ - { - "internalType": "bytes4", - "name": "assetClass", - "type": "bytes4" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "internalType": "struct LibAsset.AssetType", - "name": "assetType", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "internalType": "struct LibAsset.Asset", - "name": "takeAsset", - "type": "tuple" + "indexed": false, + "internalType": "uint256", + "name": "newLeftFill", + "type": "uint256" }, { - "internalType": "uint256", - "name": "salt", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - }, - { - "internalType": "bytes4", - "name": "dataType", - "type": "bytes4" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" + "indexed": false, + "internalType": "uint256", + "name": "newRightFill", + "type": "uint256" } - ], - "internalType": "struct LibOrder.Order", - "name": "order", - "type": "tuple" - } - ], - "name": "cancel", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ], + "name": "Match", + "type": "event" }, { - "inputs": [ - { - "components": [ + "anonymous": false, + "inputs": [ { - "internalType": "address", - "name": "bidMaker", - "type": "address" + "indexed": true, + "internalType": "bytes4", + "name": "assetType", + "type": "bytes4" }, { - "internalType": "uint256", - "name": "bidNftAmount", - "type": "uint256" - }, - { - "internalType": "bytes4", - "name": "nftAssetClass", - "type": "bytes4" - }, - { - "internalType": "bytes", - "name": "nftData", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "bidPaymentAmount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "paymentToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "bidSalt", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "bidStart", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "bidEnd", - "type": "uint256" - }, - { - "internalType": "bytes4", - "name": "bidDataType", - "type": "bytes4" - }, - { - "internalType": "bytes", - "name": "bidData", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "bidSignature", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "sellOrderPaymentAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "sellOrderNftAmount", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "sellOrderData", - "type": "bytes" + "indexed": false, + "internalType": "address", + "name": "matcher", + "type": "address" } - ], - "internalType": "struct LibDirectTransfer.AcceptBid", - "name": "direct", - "type": "tuple" - } - ], - "name": "directAcceptBid", - "outputs": [], - "stateMutability": "payable", - "type": "function" + ], + "name": "MatcherChange", + "type": "event" }, { - "inputs": [ - { - "components": [ - { - "internalType": "address", - "name": "sellOrderMaker", - "type": "address" - }, - { - "internalType": "uint256", - "name": "sellOrderNftAmount", - "type": "uint256" - }, - { - "internalType": "bytes4", - "name": "nftAssetClass", - "type": "bytes4" - }, - { - "internalType": "bytes", - "name": "nftData", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "sellOrderPaymentAmount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "paymentToken", - "type": "address" - }, + "anonymous": false, + "inputs": [ { - "internalType": "uint256", - "name": "sellOrderSalt", - "type": "uint256" + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" }, { - "internalType": "uint256", - "name": "sellOrderStart", - "type": "uint256" - }, + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "uint256", - "name": "sellOrderEnd", - "type": "uint256" + "indexed": true, + "internalType": "bytes4", + "name": "assetType", + "type": "bytes4" }, { - "internalType": "bytes4", - "name": "sellOrderDataType", - "type": "bytes4" - }, + "indexed": false, + "internalType": "address", + "name": "proxy", + "type": "address" + } + ], + "name": "ProxyChange", + "type": "event" + }, + { + "inputs": [ { - "internalType": "bytes", - "name": "sellOrderData", - "type": "bytes" + "internalType": "address", + "name": "_transferProxy", + "type": "address" }, { - "internalType": "bytes", - "name": "sellOrderSignature", - "type": "bytes" + "internalType": "address", + "name": "_erc20TransferProxy", + "type": "address" }, { - "internalType": "uint256", - "name": "buyOrderPaymentAmount", - "type": "uint256" + "internalType": "uint256", + "name": "newProtocolFee", + "type": "uint256" }, { - "internalType": "uint256", - "name": "buyOrderNftAmount", - "type": "uint256" + "internalType": "address", + "name": "newDefaultFeeReceiver", + "type": "address" }, { - "internalType": "bytes", - "name": "buyOrderData", - "type": "bytes" + "internalType": "contract IRoyaltiesProvider", + "name": "newRoyaltiesProvider", + "type": "address" } - ], - "internalType": "struct LibDirectTransfer.Purchase", - "name": "direct", - "type": "tuple" - } - ], - "name": "directPurchase", - "outputs": [], - "stateMutability": "payable", - "type": "function" + ], + "name": "__ExchangeV2_init", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "fills", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" + "inputs": [ + { + "components": [ + { + "internalType": "address", + "name": "maker", + "type": "address" + }, + { + "components": [ + { + "components": [ + { + "internalType": "bytes4", + "name": "assetClass", + "type": "bytes4" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "internalType": "struct LibAsset.AssetType", + "name": "assetType", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "internalType": "struct LibAsset.Asset", + "name": "makeAsset", + "type": "tuple" + }, + { + "internalType": "address", + "name": "taker", + "type": "address" + }, + { + "components": [ + { + "components": [ + { + "internalType": "bytes4", + "name": "assetClass", + "type": "bytes4" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "internalType": "struct LibAsset.AssetType", + "name": "assetType", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "internalType": "struct LibAsset.Asset", + "name": "takeAsset", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "salt", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "start", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "end", + "type": "uint256" + }, + { + "internalType": "bytes4", + "name": "dataType", + "type": "bytes4" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "internalType": "struct LibOrder.Order", + "name": "order", + "type": "tuple" + } + ], + "name": "cancel", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "inputs": [ - { - "components": [ + "inputs": [ { - "internalType": "address", - "name": "maker", - "type": "address" - }, - { - "components": [ - { - "components": [ + "components": [ { - "internalType": "bytes4", - "name": "assetClass", - "type": "bytes4" + "internalType": "address", + "name": "bidMaker", + "type": "address" }, { - "internalType": "bytes", - "name": "data", - "type": "bytes" + "internalType": "uint256", + "name": "bidNftAmount", + "type": "uint256" + }, + { + "internalType": "bytes4", + "name": "nftAssetClass", + "type": "bytes4" + }, + { + "internalType": "bytes", + "name": "nftData", + "type": "bytes" + }, + { + "internalType": "uint256", + "name": "bidPaymentAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "paymentToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "bidSalt", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "bidStart", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "bidEnd", + "type": "uint256" + }, + { + "internalType": "bytes4", + "name": "bidDataType", + "type": "bytes4" + }, + { + "internalType": "bytes", + "name": "bidData", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "bidSignature", + "type": "bytes" + }, + { + "internalType": "uint256", + "name": "sellOrderPaymentAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sellOrderNftAmount", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "sellOrderData", + "type": "bytes" } - ], - "internalType": "struct LibAsset.AssetType", - "name": "assetType", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "internalType": "struct LibAsset.Asset", - "name": "makeAsset", - "type": "tuple" - }, - { - "internalType": "address", - "name": "taker", - "type": "address" - }, + ], + "internalType": "struct LibDirectTransfer.AcceptBid", + "name": "direct", + "type": "tuple" + } + ], + "name": "directAcceptBid", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ { - "components": [ - { - "components": [ + "components": [ { - "internalType": "bytes4", - "name": "assetClass", - "type": "bytes4" + "internalType": "address", + "name": "sellOrderMaker", + "type": "address" }, { - "internalType": "bytes", - "name": "data", - "type": "bytes" + "internalType": "uint256", + "name": "sellOrderNftAmount", + "type": "uint256" + }, + { + "internalType": "bytes4", + "name": "nftAssetClass", + "type": "bytes4" + }, + { + "internalType": "bytes", + "name": "nftData", + "type": "bytes" + }, + { + "internalType": "uint256", + "name": "sellOrderPaymentAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "paymentToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "sellOrderSalt", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sellOrderStart", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "sellOrderEnd", + "type": "uint256" + }, + { + "internalType": "bytes4", + "name": "sellOrderDataType", + "type": "bytes4" + }, + { + "internalType": "bytes", + "name": "sellOrderData", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "sellOrderSignature", + "type": "bytes" + }, + { + "internalType": "uint256", + "name": "buyOrderPaymentAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "buyOrderNftAmount", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "buyOrderData", + "type": "bytes" } - ], - "internalType": "struct LibAsset.AssetType", - "name": "assetType", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "internalType": "struct LibAsset.Asset", - "name": "takeAsset", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "salt", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - }, + ], + "internalType": "struct LibDirectTransfer.Purchase", + "name": "direct", + "type": "tuple" + } + ], + "name": "directPurchase", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ { - "internalType": "bytes4", - "name": "dataType", - "type": "bytes4" - }, + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "name": "fills", + "outputs": [ { - "internalType": "bytes", - "name": "data", - "type": "bytes" + "internalType": "uint256", + "name": "", + "type": "uint256" } - ], - "internalType": "struct LibOrder.Order", - "name": "orderLeft", - "type": "tuple" - }, - { - "internalType": "bytes", - "name": "signatureLeft", - "type": "bytes" - }, - { - "components": [ - { - "internalType": "address", - "name": "maker", - "type": "address" - }, + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ { - "components": [ - { - "components": [ + "components": [ + { + "internalType": "address", + "name": "maker", + "type": "address" + }, + { + "components": [ + { + "components": [ + { + "internalType": "bytes4", + "name": "assetClass", + "type": "bytes4" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "internalType": "struct LibAsset.AssetType", + "name": "assetType", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "internalType": "struct LibAsset.Asset", + "name": "makeAsset", + "type": "tuple" + }, + { + "internalType": "address", + "name": "taker", + "type": "address" + }, { - "internalType": "bytes4", - "name": "assetClass", - "type": "bytes4" + "components": [ + { + "components": [ + { + "internalType": "bytes4", + "name": "assetClass", + "type": "bytes4" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "internalType": "struct LibAsset.AssetType", + "name": "assetType", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "internalType": "struct LibAsset.Asset", + "name": "takeAsset", + "type": "tuple" }, { - "internalType": "bytes", - "name": "data", - "type": "bytes" + "internalType": "uint256", + "name": "salt", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "start", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "end", + "type": "uint256" + }, + { + "internalType": "bytes4", + "name": "dataType", + "type": "bytes4" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" } - ], - "internalType": "struct LibAsset.AssetType", - "name": "assetType", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "internalType": "struct LibAsset.Asset", - "name": "makeAsset", - "type": "tuple" + ], + "internalType": "struct LibOrder.Order", + "name": "orderLeft", + "type": "tuple" }, { - "internalType": "address", - "name": "taker", - "type": "address" + "internalType": "bytes", + "name": "signatureLeft", + "type": "bytes" }, { - "components": [ - { - "components": [ + "components": [ + { + "internalType": "address", + "name": "maker", + "type": "address" + }, + { + "components": [ + { + "components": [ + { + "internalType": "bytes4", + "name": "assetClass", + "type": "bytes4" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "internalType": "struct LibAsset.AssetType", + "name": "assetType", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "internalType": "struct LibAsset.Asset", + "name": "makeAsset", + "type": "tuple" + }, + { + "internalType": "address", + "name": "taker", + "type": "address" + }, + { + "components": [ + { + "components": [ + { + "internalType": "bytes4", + "name": "assetClass", + "type": "bytes4" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "internalType": "struct LibAsset.AssetType", + "name": "assetType", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "internalType": "struct LibAsset.Asset", + "name": "takeAsset", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "salt", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "start", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "end", + "type": "uint256" + }, { - "internalType": "bytes4", - "name": "assetClass", - "type": "bytes4" + "internalType": "bytes4", + "name": "dataType", + "type": "bytes4" }, { - "internalType": "bytes", - "name": "data", - "type": "bytes" + "internalType": "bytes", + "name": "data", + "type": "bytes" } - ], - "internalType": "struct LibAsset.AssetType", - "name": "assetType", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "internalType": "struct LibAsset.Asset", - "name": "takeAsset", - "type": "tuple" - }, - { - "internalType": "uint256", - "name": "salt", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - }, - { - "internalType": "bytes4", - "name": "dataType", - "type": "bytes4" + ], + "internalType": "struct LibOrder.Order", + "name": "orderRight", + "type": "tuple" }, { - "internalType": "bytes", - "name": "data", - "type": "bytes" + "internalType": "bytes", + "name": "signatureRight", + "type": "bytes" } - ], - "internalType": "struct LibOrder.Order", - "name": "orderRight", - "type": "tuple" - }, - { - "internalType": "bytes", - "name": "signatureRight", - "type": "bytes" - } - ], - "name": "matchOrders", - "outputs": [], - "stateMutability": "payable", - "type": "function" + ], + "name": "matchOrders", + "outputs": [], + "stateMutability": "payable", + "type": "function" }, { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" }, { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "inputs": [], - "name": "royaltiesRegistry", - "outputs": [ - { - "internalType": "contract IRoyaltiesProvider", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" + "inputs": [], + "name": "royaltiesRegistry", + "outputs": [ + { + "internalType": "contract IRoyaltiesProvider", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" }, { - "inputs": [ - { - "internalType": "bytes4", - "name": "assetType", - "type": "bytes4" - }, - { - "internalType": "address", - "name": "matcher", - "type": "address" - } - ], - "name": "setAssetMatcher", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "inputs": [ + { + "internalType": "bytes4", + "name": "assetType", + "type": "bytes4" + }, + { + "internalType": "address", + "name": "matcher", + "type": "address" + } + ], + "name": "setAssetMatcher", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "inputs": [ - { - "internalType": "contract IRoyaltiesProvider", - "name": "newRoyaltiesRegistry", - "type": "address" - } - ], - "name": "setRoyaltiesRegistry", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "inputs": [ + { + "internalType": "contract IRoyaltiesProvider", + "name": "newRoyaltiesRegistry", + "type": "address" + } + ], + "name": "setRoyaltiesRegistry", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "inputs": [ - { - "internalType": "bytes4", - "name": "assetType", - "type": "bytes4" - }, - { - "internalType": "address", - "name": "proxy", - "type": "address" - } - ], - "name": "setTransferProxy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "inputs": [ + { + "internalType": "bytes4", + "name": "assetType", + "type": "bytes4" + }, + { + "internalType": "address", + "name": "proxy", + "type": "address" + } + ], + "name": "setTransferProxy", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" } - ] +] \ No newline at end of file diff --git a/ethereum/rarible/parsers.json b/ethereum/rarible/parsers.json index c5d6358f..f2967857 100644 --- a/ethereum/rarible/parsers.json +++ b/ethereum/rarible/parsers.json @@ -3650,6 +3650,7 @@ }, { "arguments": [], + "arguments_skipped": [], "functionName": "admin", "functionType": "unknown", "options": {}, @@ -3672,8 +3673,7 @@ } ] }, - "selector": "0xf851a440", - "arguments_skipped": [] + "selector": "0xf851a440" }, { "arguments": [ @@ -3689,6 +3689,7 @@ } } ], + "arguments_skipped": [], "functionName": "changeAdmin", "functionType": "unknown", "options": {}, @@ -3717,11 +3718,11 @@ } ] }, - "selector": "0x8f283970", - "arguments_skipped": [] + "selector": "0x8f283970" }, { "arguments": [], + "arguments_skipped": [], "functionName": "implementation", "functionType": "unknown", "options": {}, @@ -3744,8 +3745,7 @@ } ] }, - "selector": "0x5c60da1b", - "arguments_skipped": [] + "selector": "0x5c60da1b" }, { "arguments": [ @@ -3761,6 +3761,7 @@ } } ], + "arguments_skipped": [], "functionName": "upgradeTo", "functionType": "unknown", "options": {}, @@ -3789,8 +3790,7 @@ } ] }, - "selector": "0x3659cfe6", - "arguments_skipped": [] + "selector": "0x3659cfe6" }, { "arguments": [ @@ -3817,6 +3817,7 @@ } } ], + "arguments_skipped": [], "functionName": "upgradeToAndCall", "functionType": "unknown", "options": {}, @@ -3851,8 +3852,7 @@ } ] }, - "selector": "0x4f1ef286", - "arguments_skipped": [] + "selector": "0x4f1ef286" }, { "arguments": [ @@ -4022,6 +4022,7 @@ } } ], + "arguments_skipped": [], "functionName": "directAcceptBid", "functionType": "unknown", "options": {}, @@ -4161,8 +4162,7 @@ } ] }, - "selector": "0x67d49a3b", - "arguments_skipped": [] + "selector": "0x67d49a3b" }, { "arguments": [ @@ -4288,6 +4288,52 @@ } } ], + "arguments_skipped": [ + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.nftData", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.nftData" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.sellOrderData", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.sellOrderData" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.sellOrderSignature", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.sellOrderSignature" + } + } + } + }, + { + "format": "ARGUMENTFORMAT_RAW", + "name": "direct.buyOrderData", + "value": { + "terminalValue": { + "path": { + "abi_path": "direct.buyOrderData" + } + } + } + } + ], "functionName": "directPurchase", "functionType": "unknown", "options": {}, @@ -4427,53 +4473,7 @@ } ] }, - "selector": "0x0d5f7d35", - "arguments_skipped": [ - { - "format": "ARGUMENTFORMAT_RAW", - "name": "direct.nftData", - "value": { - "terminalValue": { - "path": { - "abi_path": "direct.nftData" - } - } - } - }, - { - "format": "ARGUMENTFORMAT_RAW", - "name": "direct.sellOrderData", - "value": { - "terminalValue": { - "path": { - "abi_path": "direct.sellOrderData" - } - } - } - }, - { - "format": "ARGUMENTFORMAT_RAW", - "name": "direct.sellOrderSignature", - "value": { - "terminalValue": { - "path": { - "abi_path": "direct.sellOrderSignature" - } - } - } - }, - { - "format": "ARGUMENTFORMAT_RAW", - "name": "direct.buyOrderData", - "value": { - "terminalValue": { - "path": { - "abi_path": "direct.buyOrderData" - } - } - } - } - ] + "selector": "0x0d5f7d35" } ] }, @@ -8091,20 +8091,8 @@ "selector": "0xf2fde38b" } ] - }, - { - "abi": [], - "address": "0x1cf0dF2A5A20Cd61d68d4489eEBbf85b8d39e18a", - "name": "0x1cf0dF2A5A20Cd61d68d4489eEBbf85b8d39e18a", - "parsers": [] - }, - { - "abi": [], - "address": "0xFDfF6b56CcE39482032b27140252FF4F16432785", - "name": "0xFDfF6b56CcE39482032b27140252FF4F16432785", - "parsers": [] } ], "id": "rarible", "name": "rarible" -} +} \ No newline at end of file