diff --git a/package-lock.json b/package-lock.json index 7dd70eeca..39e4e2e0c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22644,6 +22644,7 @@ "@lukso/lsp14-contracts": "~0.15.0-rc.5", "@lukso/lsp17contractextension-contracts": "~0.15.0-rc.5", "@lukso/lsp20-contracts": "~0.15.0-rc.5", + "@lukso/lsp6-contracts": "~0.15.0-rc.5", "@openzeppelin/contracts": "^4.9.3" } }, @@ -22752,6 +22753,8 @@ "@erc725/smart-contracts": "^7.0.0", "@lukso/lsp1-contracts": "~0.15.0-rc.5", "@lukso/lsp17contractextension-contracts": "~0.15.0-rc.5", + "@lukso/lsp2-contracts": "~0.15.0-rc.5", + "@lukso/lsp4-contracts": "~0.15.0-rc.5", "@openzeppelin/contracts": "^4.9.3" } }, diff --git a/packages/lsp-smart-contracts/constants.ts b/packages/lsp-smart-contracts/constants.ts index 53c7b08aa..6e5e705f7 100644 --- a/packages/lsp-smart-contracts/constants.ts +++ b/packages/lsp-smart-contracts/constants.ts @@ -17,6 +17,8 @@ export type { LSP4DigitalAssetMetadataJSON, LSP4DigitalAssetMetadata, AttributeMetadata, + AssetFile, + DigitalAsset, } from '@lukso/lsp4-contracts'; export type { LSP6PermissionName } from '@lukso/lsp6-contracts'; diff --git a/packages/lsp0-contracts/compatibility-abis/LSP0ERC725Account-v0.12.0.json b/packages/lsp0-contracts/compatibility-abis/LSP0ERC725Account-v0.12.0.json new file mode 100644 index 000000000..75371cd7d --- /dev/null +++ b/packages/lsp0-contracts/compatibility-abis/LSP0ERC725Account-v0.12.0.json @@ -0,0 +1,667 @@ +[ + { + "inputs": [ + { + "internalType": "address", + "name": "initialOwner", + "type": "address" + } + ], + "stateMutability": "payable", + "type": "constructor" + }, + { + "inputs": [], + "name": "ERC725X_ContractDeploymentFailed", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725X_CreateOperationsRequireEmptyRecipientAddress", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725X_ExecuteParametersEmptyArray", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725X_ExecuteParametersLengthMismatch", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "balance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "ERC725X_InsufficientBalance", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725X_MsgValueDisallowedInDelegateCall", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725X_MsgValueDisallowedInStaticCall", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725X_NoContractBytecodeProvided", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "operationTypeProvided", + "type": "uint256" + } + ], + "name": "ERC725X_UnknownOperationType", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725Y_DataKeysValuesEmptyArray", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725Y_DataKeysValuesLengthMismatch", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "caller", + "type": "address" + } + ], + "name": "LSP14CallerNotPendingOwner", + "type": "error" + }, + { + "inputs": [], + "name": "LSP14CannotTransferOwnershipToSelf", + "type": "error" + }, + { + "inputs": [], + "name": "LSP14MustAcceptOwnershipInSeparateTransaction", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "renounceOwnershipStart", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "renounceOwnershipEnd", + "type": "uint256" + } + ], + "name": "LSP14NotInRenounceOwnershipInterval", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "postCall", + "type": "bool" + }, + { + "internalType": "bytes4", + "name": "returnedStatus", + "type": "bytes4" + } + ], + "name": "LSP20CallVerificationFailed", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "postCall", + "type": "bool" + } + ], + "name": "LSP20CallingVerifierFailed", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "logicVerifier", + "type": "address" + } + ], + "name": "LSP20EOACannotVerifyCall", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "functionSelector", + "type": "bytes4" + } + ], + "name": "NoExtensionFoundForFunctionSelector", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "operationType", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "contractAddress", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "salt", + "type": "bytes32" + } + ], + "name": "ContractCreated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "name": "DataChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "operationType", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "target", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes4", + "name": "selector", + "type": "bytes4" + } + ], + "name": "Executed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [], + "name": "OwnershipRenounced", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferStarted", + "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": [], + "name": "RenounceOwnershipStarted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "typeId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "receivedData", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "returnedValue", + "type": "bytes" + } + ], + "name": "UniversalReceiver", + "type": "event" + }, + { + "stateMutability": "payable", + "type": "fallback" + }, + { + "inputs": [], + "name": "RENOUNCE_OWNERSHIP_CONFIRMATION_DELAY", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "RENOUNCE_OWNERSHIP_CONFIRMATION_PERIOD", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "acceptOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes[]", + "name": "data", + "type": "bytes[]" + } + ], + "name": "batchCalls", + "outputs": [ + { + "internalType": "bytes[]", + "name": "results", + "type": "bytes[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "operationType", + "type": "uint256" + }, + { + "internalType": "address", + "name": "target", + "type": "address" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "execute", + "outputs": [ + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "operationsType", + "type": "uint256[]" + }, + { + "internalType": "address[]", + "name": "targets", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "values", + "type": "uint256[]" + }, + { + "internalType": "bytes[]", + "name": "datas", + "type": "bytes[]" + } + ], + "name": "executeBatch", + "outputs": [ + { + "internalType": "bytes[]", + "name": "", + "type": "bytes[]" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + } + ], + "name": "getData", + "outputs": [ + { + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "dataKeys", + "type": "bytes32[]" + } + ], + "name": "getDataBatch", + "outputs": [ + { + "internalType": "bytes[]", + "name": "dataValues", + "type": "bytes[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataHash", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "signature", + "type": "bytes" + } + ], + "name": "isValidSignature", + "outputs": [ + { + "internalType": "bytes4", + "name": "returnedStatus", + "type": "bytes4" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pendingOwner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "name": "setData", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "dataKeys", + "type": "bytes32[]" + }, + { + "internalType": "bytes[]", + "name": "dataValues", + "type": "bytes[]" + } + ], + "name": "setDataBatch", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "pendingNewOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "typeId", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "receivedData", + "type": "bytes" + } + ], + "name": "universalReceiver", + "outputs": [ + { + "internalType": "bytes", + "name": "returnedValues", + "type": "bytes" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "stateMutability": "payable", + "type": "receive" + } +] diff --git a/packages/lsp0-contracts/compatibility-abis/README.md b/packages/lsp0-contracts/compatibility-abis/README.md new file mode 100644 index 000000000..969d89bed --- /dev/null +++ b/packages/lsp0-contracts/compatibility-abis/README.md @@ -0,0 +1,13 @@ +# Compatibility ABIs for LSP0 + +This folder contains the historical ABI of LSP0ERC725Account from release `0.12.0`. + +This is to enable dApps and projects to be backward compatible in their interfaces to display and interact with LSP0 token contracts deployed with these old versions, by consuming their old ABIs. + +## List of ABI changes from `0.12.0` to `latest`: + +- `version()` endpoint in `0.12.0`, _vs_ `VERSION()` endpoint in the new releases. + +- `Executed` event, where: + - in `0.12.0`, the `value` parameter was `indexed` ✅ but not the `selector` parameter ❌. + - in the new releases, the `value` parameter is not `indexed` anymore ❌, but the `selector` is ✅ (other way around). diff --git a/packages/lsp0-contracts/package.json b/packages/lsp0-contracts/package.json index 2283f71c9..d4c59445f 100644 --- a/packages/lsp0-contracts/package.json +++ b/packages/lsp0-contracts/package.json @@ -20,6 +20,7 @@ "contracts/**/*.sol", "!contracts/Mocks/**/*.sol", "artifacts/*.json", + "compatibility-abis", "dist", "types", "!types/factories", diff --git a/packages/lsp10-contracts/constants.ts b/packages/lsp10-contracts/constants.ts index d5b009d48..a822f8e67 100644 --- a/packages/lsp10-contracts/constants.ts +++ b/packages/lsp10-contracts/constants.ts @@ -1,4 +1,4 @@ -import { LSP2ArrayKey } from '@lukso/lsp2-contracts'; +import type { LSP2ArrayKey } from '@lukso/lsp2-contracts'; export const LSP10DataKeys = { // keccak256('LSP10VaultsMap') + bytes2(0) diff --git a/packages/lsp12-contracts/constants.ts b/packages/lsp12-contracts/constants.ts index 28a5871d8..a4452901c 100644 --- a/packages/lsp12-contracts/constants.ts +++ b/packages/lsp12-contracts/constants.ts @@ -1,4 +1,4 @@ -import { LSP2ArrayKey } from '@lukso/lsp2-contracts'; +import type { LSP2ArrayKey } from '@lukso/lsp2-contracts'; export const LSP12DataKeys = { // LSP12IssuedAssetsMap:
+ bytes2(0) diff --git a/packages/lsp17-contracts/package.json b/packages/lsp17-contracts/package.json index 4d9572478..04548218d 100644 --- a/packages/lsp17-contracts/package.json +++ b/packages/lsp17-contracts/package.json @@ -47,6 +47,7 @@ "@erc725/smart-contracts": "^7.0.0", "@openzeppelin/contracts": "^4.9.3", "@account-abstraction/contracts": "^0.6.0", + "@lukso/lsp6-contracts": "~0.15.0-rc.5", "@lukso/lsp14-contracts": "~0.15.0-rc.5", "@lukso/lsp17contractextension-contracts": "~0.15.0-rc.5", "@lukso/lsp20-contracts": "~0.15.0-rc.5" diff --git a/packages/lsp3-contracts/constants.ts b/packages/lsp3-contracts/constants.ts index 147cbbe03..9e82c3ec7 100644 --- a/packages/lsp3-contracts/constants.ts +++ b/packages/lsp3-contracts/constants.ts @@ -1,4 +1,4 @@ -import { Verification } from '@lukso/lsp2-contracts'; +import type { Verification } from '@lukso/lsp2-contracts'; export type LSP3ProfileMetadataJSON = { LSP3Profile: LSP3ProfileMetadata; @@ -7,10 +7,10 @@ export type LSP3ProfileMetadataJSON = { export type LSP3ProfileMetadata = { name: string; description: string; + links?: LinkMetadata[]; + tags?: string[]; profileImage?: ImageMetadata[]; backgroundImage?: ImageMetadata[]; - tags?: string[]; - links?: LinkMetadata[]; avatar?: AssetMetadata[]; }; @@ -26,10 +26,17 @@ export type LinkMetadata = { url: string; }; -export type AssetMetadata = { - verification?: Verification; +export type AssetMetadata = AssetFile | DigitalAsset; + +export type AssetFile = { url: string; - fileType: string; + verification?: Verification; + fileType?: string; +}; + +export type DigitalAsset = { + address: string; + tokenId?: string; }; export const LSP3SupportedStandard = { diff --git a/packages/lsp4-contracts/constants.ts b/packages/lsp4-contracts/constants.ts index cd19eabce..05a44e7a9 100644 --- a/packages/lsp4-contracts/constants.ts +++ b/packages/lsp4-contracts/constants.ts @@ -1,21 +1,17 @@ -import { Verification, LSP2ArrayKey } from '@lukso/lsp2-contracts'; +import type { Verification, LSP2ArrayKey } from '@lukso/lsp2-contracts'; export type LSP4DigitalAssetMetadataJSON = { LSP4Metadata: LSP4DigitalAssetMetadata; }; export type LSP4DigitalAssetMetadata = { + name: string; description: string; links: LinkMetadata[]; images: ImageMetadata[][]; assets: AssetMetadata[]; icon: ImageMetadata[]; - attributes: AttributeMetadata[]; -}; - -export type LinkMetadata = { - title: string; - url: string; + attributes?: AttributeMetadata[]; }; export type ImageMetadata = { @@ -25,10 +21,9 @@ export type ImageMetadata = { url: string; }; -export type AssetMetadata = { - verification?: Verification; +export type LinkMetadata = { + title: string; url: string; - fileType: string; }; export type AttributeMetadata = { @@ -37,6 +32,19 @@ export type AttributeMetadata = { type: string | number | boolean; }; +export type AssetMetadata = AssetFile | DigitalAsset; + +export type AssetFile = { + url: string; + verification?: Verification; + fileType?: string; +}; + +export type DigitalAsset = { + address: string; + tokenId?: string; +}; + export const LSP4SupportedStandard = { key: '0xeafec4d89fa9619884b60000a4d96624a38f7ac2d8d9a604ecf07c12c77e480c', value: '0xa4d96624', diff --git a/packages/lsp5-contracts/constants.ts b/packages/lsp5-contracts/constants.ts index 79b72d960..9fcb66d01 100644 --- a/packages/lsp5-contracts/constants.ts +++ b/packages/lsp5-contracts/constants.ts @@ -1,4 +1,4 @@ -import { LSP2ArrayKey } from '@lukso/lsp2-contracts'; +import type { LSP2ArrayKey } from '@lukso/lsp2-contracts'; export const LSP5DataKeys = { // LSP5ReceivedAssetsMap:
+ bytes2(0) diff --git a/packages/lsp6-contracts/constants.ts b/packages/lsp6-contracts/constants.ts index 9b372d0c7..a3dab1e0c 100644 --- a/packages/lsp6-contracts/constants.ts +++ b/packages/lsp6-contracts/constants.ts @@ -1,4 +1,4 @@ -import { LSP2ArrayKey } from '@lukso/lsp2-contracts'; +import type { LSP2ArrayKey } from '@lukso/lsp2-contracts'; export const INTERFACE_ID_LSP6 = '0x23f34c62'; diff --git a/packages/lsp7-contracts/compatibility-abis/LSP7DigitalAsset-v0.12.0.json b/packages/lsp7-contracts/compatibility-abis/LSP7DigitalAsset-v0.12.0.json index 468d3c394..e661c310e 100644 --- a/packages/lsp7-contracts/compatibility-abis/LSP7DigitalAsset-v0.12.0.json +++ b/packages/lsp7-contracts/compatibility-abis/LSP7DigitalAsset-v0.12.0.json @@ -1,736 +1,727 @@ -{ - "_format": "hh-sol-artifact-1", - "contractName": "LSP7DigitalAsset", - "sourceName": "contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol", - "abi": [ - { - "inputs": [], - "name": "ERC725Y_DataKeysValuesEmptyArray", - "type": "error" - }, - { - "inputs": [], - "name": "ERC725Y_DataKeysValuesLengthMismatch", - "type": "error" - }, - { - "inputs": [], - "name": "ERC725Y_MsgValueDisallowed", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "storedData", - "type": "bytes" - } - ], - "name": "InvalidExtensionAddress", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "InvalidFunctionSelector", - "type": "error" - }, - { - "inputs": [], - "name": "LSP4TokenNameNotEditable", - "type": "error" - }, - { - "inputs": [], - "name": "LSP4TokenSymbolNotEditable", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "authorizedAmount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "LSP7AmountExceedsAuthorizedAmount", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "balance", - "type": "uint256" - }, - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "LSP7AmountExceedsBalance", - "type": "error" - }, - { - "inputs": [], - "name": "LSP7CannotSendToSelf", - "type": "error" - }, - { - "inputs": [], - "name": "LSP7CannotSendWithAddressZero", - "type": "error" - }, - { - "inputs": [], - "name": "LSP7CannotUseAddressZeroAsOperator", - "type": "error" - }, - { - "inputs": [], - "name": "LSP7DecreasedAllowanceBelowZero", - "type": "error" - }, - { - "inputs": [], - "name": "LSP7InvalidTransferBatch", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenReceiver", - "type": "address" - } - ], - "name": "LSP7NotifyTokenReceiverContractMissingLSP1Interface", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenReceiver", - "type": "address" - } - ], - "name": "LSP7NotifyTokenReceiverIsEOA", - "type": "error" - }, - { - "inputs": [], - "name": "LSP7TokenContractCannotHoldValue", - "type": "error" - }, - { - "inputs": [], - "name": "LSP7TokenOwnerCannotBeOperator", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "functionSelector", - "type": "bytes4" - } - ], - "name": "NoExtensionFoundForFunctionSelector", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - } - ], - "name": "OperatorAllowanceCannotBeIncreasedFromZero", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "callerAddress", - "type": "address" - } - ], - "name": "OwnableCallerNotTheOwner", - "type": "error" - }, - { - "inputs": [], - "name": "OwnableCannotSetZeroAddressAsOwner", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "tokenOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "AuthorizedOperator", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "name": "DataChanged", - "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": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "tokenOwner", - "type": "address" - }, - { - "indexed": false, - "internalType": "bool", - "name": "notified", - "type": "bool" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "RevokedOperator", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bool", - "name": "force", - "type": "bool" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "stateMutability": "payable", - "type": "fallback" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "authorizeOperator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - } - ], - "name": "authorizedAmountFor", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "uint256", - "name": "subtractedAmount", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "decreaseAllowance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - } - ], - "name": "getData", - "outputs": [ - { - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "dataKeys", - "type": "bytes32[]" - } - ], - "name": "getDataBatch", - "outputs": [ - { - "internalType": "bytes[]", - "name": "dataValues", - "type": "bytes[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - } - ], - "name": "getOperatorsOf", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "uint256", - "name": "addedAmount", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "increaseAllowance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "bool", - "name": "notify", - "type": "bool" - }, - { - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "revokeOperator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "name": "setData", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "dataKeys", - "type": "bytes32[]" - }, - { - "internalType": "bytes[]", - "name": "dataValues", - "type": "bytes[]" - } - ], - "name": "setDataBatch", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "force", - "type": "bool" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "transfer", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "from", - "type": "address[]" - }, - { - "internalType": "address[]", - "name": "to", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "amount", - "type": "uint256[]" - }, - { - "internalType": "bool[]", - "name": "force", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "transferBatch", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "version", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } - ], - "bytecode": "0x", - "deployedBytecode": "0x", - "linkReferences": {}, - "deployedLinkReferences": {} -} +[ + { + "inputs": [], + "name": "ERC725Y_DataKeysValuesEmptyArray", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725Y_DataKeysValuesLengthMismatch", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725Y_MsgValueDisallowed", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "storedData", + "type": "bytes" + } + ], + "name": "InvalidExtensionAddress", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "InvalidFunctionSelector", + "type": "error" + }, + { + "inputs": [], + "name": "LSP4TokenNameNotEditable", + "type": "error" + }, + { + "inputs": [], + "name": "LSP4TokenSymbolNotEditable", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + }, + { + "internalType": "uint256", + "name": "authorizedAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "LSP7AmountExceedsAuthorizedAmount", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "balance", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "LSP7AmountExceedsBalance", + "type": "error" + }, + { + "inputs": [], + "name": "LSP7CannotSendToSelf", + "type": "error" + }, + { + "inputs": [], + "name": "LSP7CannotSendWithAddressZero", + "type": "error" + }, + { + "inputs": [], + "name": "LSP7CannotUseAddressZeroAsOperator", + "type": "error" + }, + { + "inputs": [], + "name": "LSP7DecreasedAllowanceBelowZero", + "type": "error" + }, + { + "inputs": [], + "name": "LSP7InvalidTransferBatch", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenReceiver", + "type": "address" + } + ], + "name": "LSP7NotifyTokenReceiverContractMissingLSP1Interface", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenReceiver", + "type": "address" + } + ], + "name": "LSP7NotifyTokenReceiverIsEOA", + "type": "error" + }, + { + "inputs": [], + "name": "LSP7TokenContractCannotHoldValue", + "type": "error" + }, + { + "inputs": [], + "name": "LSP7TokenOwnerCannotBeOperator", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "functionSelector", + "type": "bytes4" + } + ], + "name": "NoExtensionFoundForFunctionSelector", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "name": "OperatorAllowanceCannotBeIncreasedFromZero", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "callerAddress", + "type": "address" + } + ], + "name": "OwnableCallerNotTheOwner", + "type": "error" + }, + { + "inputs": [], + "name": "OwnableCannotSetZeroAddressAsOwner", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "AuthorizedOperator", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "name": "DataChanged", + "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": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenOwner", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "notified", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "RevokedOperator", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bool", + "name": "force", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "Transfer", + "type": "event" + }, + { + "stateMutability": "payable", + "type": "fallback" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "authorizeOperator", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + } + ], + "name": "authorizedAmountFor", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "decimals", + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "uint256", + "name": "subtractedAmount", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "decreaseAllowance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + } + ], + "name": "getData", + "outputs": [ + { + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "dataKeys", + "type": "bytes32[]" + } + ], + "name": "getDataBatch", + "outputs": [ + { + "internalType": "bytes[]", + "name": "dataValues", + "type": "bytes[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + } + ], + "name": "getOperatorsOf", + "outputs": [ + { + "internalType": "address[]", + "name": "", + "type": "address[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "uint256", + "name": "addedAmount", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "increaseAllowance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bool", + "name": "notify", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "revokeOperator", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "name": "setData", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "dataKeys", + "type": "bytes32[]" + }, + { + "internalType": "bytes[]", + "name": "dataValues", + "type": "bytes[]" + } + ], + "name": "setDataBatch", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "force", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "transfer", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "from", + "type": "address[]" + }, + { + "internalType": "address[]", + "name": "to", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "amount", + "type": "uint256[]" + }, + { + "internalType": "bool[]", + "name": "force", + "type": "bool[]" + }, + { + "internalType": "bytes[]", + "name": "data", + "type": "bytes[]" + } + ], + "name": "transferBatch", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "stateMutability": "payable", + "type": "receive" + } +] diff --git a/packages/lsp7-contracts/compatibility-abis/LSP7DigitalAsset-v0.13.0.json b/packages/lsp7-contracts/compatibility-abis/LSP7DigitalAsset-v0.13.0.json deleted file mode 100644 index 2e4b363cf..000000000 --- a/packages/lsp7-contracts/compatibility-abis/LSP7DigitalAsset-v0.13.0.json +++ /dev/null @@ -1,758 +0,0 @@ -{ - "_format": "hh-sol-artifact-1", - "contractName": "LSP7DigitalAsset", - "sourceName": "contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol", - "abi": [ - { - "inputs": [], - "name": "ERC725Y_DataKeysValuesEmptyArray", - "type": "error" - }, - { - "inputs": [], - "name": "ERC725Y_DataKeysValuesLengthMismatch", - "type": "error" - }, - { - "inputs": [], - "name": "ERC725Y_MsgValueDisallowed", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "storedData", - "type": "bytes" - } - ], - "name": "InvalidExtensionAddress", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "InvalidFunctionSelector", - "type": "error" - }, - { - "inputs": [], - "name": "LSP4TokenNameNotEditable", - "type": "error" - }, - { - "inputs": [], - "name": "LSP4TokenSymbolNotEditable", - "type": "error" - }, - { - "inputs": [], - "name": "LSP4TokenTypeNotEditable", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "authorizedAmount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "LSP7AmountExceedsAuthorizedAmount", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "balance", - "type": "uint256" - }, - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "LSP7AmountExceedsBalance", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "callIndex", - "type": "uint256" - } - ], - "name": "LSP7BatchCallFailed", - "type": "error" - }, - { - "inputs": [], - "name": "LSP7CannotSendToSelf", - "type": "error" - }, - { - "inputs": [], - "name": "LSP7CannotSendWithAddressZero", - "type": "error" - }, - { - "inputs": [], - "name": "LSP7CannotUseAddressZeroAsOperator", - "type": "error" - }, - { - "inputs": [], - "name": "LSP7DecreasedAllowanceBelowZero", - "type": "error" - }, - { - "inputs": [], - "name": "LSP7InvalidTransferBatch", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenReceiver", - "type": "address" - } - ], - "name": "LSP7NotifyTokenReceiverContractMissingLSP1Interface", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenReceiver", - "type": "address" - } - ], - "name": "LSP7NotifyTokenReceiverIsEOA", - "type": "error" - }, - { - "inputs": [], - "name": "LSP7TokenContractCannotHoldValue", - "type": "error" - }, - { - "inputs": [], - "name": "LSP7TokenOwnerCannotBeOperator", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "functionSelector", - "type": "bytes4" - } - ], - "name": "NoExtensionFoundForFunctionSelector", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - } - ], - "name": "OperatorAllowanceCannotBeIncreasedFromZero", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "callerAddress", - "type": "address" - } - ], - "name": "OwnableCallerNotTheOwner", - "type": "error" - }, - { - "inputs": [], - "name": "OwnableCannotSetZeroAddressAsOwner", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "name": "DataChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "tokenOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "OperatorAuthorizationChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "tokenOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "bool", - "name": "notified", - "type": "bool" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "OperatorRevoked", - "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": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bool", - "name": "force", - "type": "bool" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "stateMutability": "payable", - "type": "fallback" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "authorizeOperator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - } - ], - "name": "authorizedAmountFor", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "batchCalls", - "outputs": [ - { - "internalType": "bytes[]", - "name": "results", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "uint256", - "name": "subtractedAmount", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "decreaseAllowance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - } - ], - "name": "getData", - "outputs": [ - { - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "dataKeys", - "type": "bytes32[]" - } - ], - "name": "getDataBatch", - "outputs": [ - { - "internalType": "bytes[]", - "name": "dataValues", - "type": "bytes[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - } - ], - "name": "getOperatorsOf", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "uint256", - "name": "addedAmount", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "increaseAllowance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "bool", - "name": "notify", - "type": "bool" - }, - { - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "revokeOperator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "name": "setData", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "dataKeys", - "type": "bytes32[]" - }, - { - "internalType": "bytes[]", - "name": "dataValues", - "type": "bytes[]" - } - ], - "name": "setDataBatch", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "force", - "type": "bool" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "transfer", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "from", - "type": "address[]" - }, - { - "internalType": "address[]", - "name": "to", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "amount", - "type": "uint256[]" - }, - { - "internalType": "bool[]", - "name": "force", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "transferBatch", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } - ], - "bytecode": "0x", - "deployedBytecode": "0x", - "linkReferences": {}, - "deployedLinkReferences": {} -} diff --git a/packages/lsp7-contracts/compatibility-abis/LSP7DigitalAsset-v0.14.0.json b/packages/lsp7-contracts/compatibility-abis/LSP7DigitalAsset-v0.14.0.json index 2e4b363cf..805d65ea8 100644 --- a/packages/lsp7-contracts/compatibility-abis/LSP7DigitalAsset-v0.14.0.json +++ b/packages/lsp7-contracts/compatibility-abis/LSP7DigitalAsset-v0.14.0.json @@ -1,758 +1,749 @@ -{ - "_format": "hh-sol-artifact-1", - "contractName": "LSP7DigitalAsset", - "sourceName": "contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol", - "abi": [ - { - "inputs": [], - "name": "ERC725Y_DataKeysValuesEmptyArray", - "type": "error" - }, - { - "inputs": [], - "name": "ERC725Y_DataKeysValuesLengthMismatch", - "type": "error" - }, - { - "inputs": [], - "name": "ERC725Y_MsgValueDisallowed", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "storedData", - "type": "bytes" - } - ], - "name": "InvalidExtensionAddress", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "InvalidFunctionSelector", - "type": "error" - }, - { - "inputs": [], - "name": "LSP4TokenNameNotEditable", - "type": "error" - }, - { - "inputs": [], - "name": "LSP4TokenSymbolNotEditable", - "type": "error" - }, - { - "inputs": [], - "name": "LSP4TokenTypeNotEditable", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "authorizedAmount", - "type": "uint256" - }, - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "LSP7AmountExceedsAuthorizedAmount", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "balance", - "type": "uint256" - }, - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "LSP7AmountExceedsBalance", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "callIndex", - "type": "uint256" - } - ], - "name": "LSP7BatchCallFailed", - "type": "error" - }, - { - "inputs": [], - "name": "LSP7CannotSendToSelf", - "type": "error" - }, - { - "inputs": [], - "name": "LSP7CannotSendWithAddressZero", - "type": "error" - }, - { - "inputs": [], - "name": "LSP7CannotUseAddressZeroAsOperator", - "type": "error" - }, - { - "inputs": [], - "name": "LSP7DecreasedAllowanceBelowZero", - "type": "error" - }, - { - "inputs": [], - "name": "LSP7InvalidTransferBatch", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenReceiver", - "type": "address" - } - ], - "name": "LSP7NotifyTokenReceiverContractMissingLSP1Interface", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenReceiver", - "type": "address" - } - ], - "name": "LSP7NotifyTokenReceiverIsEOA", - "type": "error" - }, - { - "inputs": [], - "name": "LSP7TokenContractCannotHoldValue", - "type": "error" - }, - { - "inputs": [], - "name": "LSP7TokenOwnerCannotBeOperator", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "functionSelector", - "type": "bytes4" - } - ], - "name": "NoExtensionFoundForFunctionSelector", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - } - ], - "name": "OperatorAllowanceCannotBeIncreasedFromZero", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "callerAddress", - "type": "address" - } - ], - "name": "OwnableCallerNotTheOwner", - "type": "error" - }, - { - "inputs": [], - "name": "OwnableCannotSetZeroAddressAsOwner", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "name": "DataChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "tokenOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "OperatorAuthorizationChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "tokenOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "bool", - "name": "notified", - "type": "bool" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "OperatorRevoked", - "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": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bool", - "name": "force", - "type": "bool" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "stateMutability": "payable", - "type": "fallback" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "authorizeOperator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - } - ], - "name": "authorizedAmountFor", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "batchCalls", - "outputs": [ - { - "internalType": "bytes[]", - "name": "results", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "uint256", - "name": "subtractedAmount", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "decreaseAllowance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - } - ], - "name": "getData", - "outputs": [ - { - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "dataKeys", - "type": "bytes32[]" - } - ], - "name": "getDataBatch", - "outputs": [ - { - "internalType": "bytes[]", - "name": "dataValues", - "type": "bytes[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - } - ], - "name": "getOperatorsOf", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "uint256", - "name": "addedAmount", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "increaseAllowance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "bool", - "name": "notify", - "type": "bool" - }, - { - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "revokeOperator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "name": "setData", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "dataKeys", - "type": "bytes32[]" - }, - { - "internalType": "bytes[]", - "name": "dataValues", - "type": "bytes[]" - } - ], - "name": "setDataBatch", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "force", - "type": "bool" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "transfer", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "from", - "type": "address[]" - }, - { - "internalType": "address[]", - "name": "to", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "amount", - "type": "uint256[]" - }, - { - "internalType": "bool[]", - "name": "force", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "transferBatch", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } - ], - "bytecode": "0x", - "deployedBytecode": "0x", - "linkReferences": {}, - "deployedLinkReferences": {} -} +[ + { + "inputs": [], + "name": "ERC725Y_DataKeysValuesEmptyArray", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725Y_DataKeysValuesLengthMismatch", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725Y_MsgValueDisallowed", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "storedData", + "type": "bytes" + } + ], + "name": "InvalidExtensionAddress", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "InvalidFunctionSelector", + "type": "error" + }, + { + "inputs": [], + "name": "LSP4TokenNameNotEditable", + "type": "error" + }, + { + "inputs": [], + "name": "LSP4TokenSymbolNotEditable", + "type": "error" + }, + { + "inputs": [], + "name": "LSP4TokenTypeNotEditable", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + }, + { + "internalType": "uint256", + "name": "authorizedAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "LSP7AmountExceedsAuthorizedAmount", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "balance", + "type": "uint256" + }, + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "LSP7AmountExceedsBalance", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "callIndex", + "type": "uint256" + } + ], + "name": "LSP7BatchCallFailed", + "type": "error" + }, + { + "inputs": [], + "name": "LSP7CannotSendToSelf", + "type": "error" + }, + { + "inputs": [], + "name": "LSP7CannotSendWithAddressZero", + "type": "error" + }, + { + "inputs": [], + "name": "LSP7CannotUseAddressZeroAsOperator", + "type": "error" + }, + { + "inputs": [], + "name": "LSP7DecreasedAllowanceBelowZero", + "type": "error" + }, + { + "inputs": [], + "name": "LSP7InvalidTransferBatch", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenReceiver", + "type": "address" + } + ], + "name": "LSP7NotifyTokenReceiverContractMissingLSP1Interface", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenReceiver", + "type": "address" + } + ], + "name": "LSP7NotifyTokenReceiverIsEOA", + "type": "error" + }, + { + "inputs": [], + "name": "LSP7TokenContractCannotHoldValue", + "type": "error" + }, + { + "inputs": [], + "name": "LSP7TokenOwnerCannotBeOperator", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "functionSelector", + "type": "bytes4" + } + ], + "name": "NoExtensionFoundForFunctionSelector", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + } + ], + "name": "OperatorAllowanceCannotBeIncreasedFromZero", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "callerAddress", + "type": "address" + } + ], + "name": "OwnableCallerNotTheOwner", + "type": "error" + }, + { + "inputs": [], + "name": "OwnableCannotSetZeroAddressAsOwner", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "name": "DataChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "OperatorAuthorizationChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "bool", + "name": "notified", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "OperatorRevoked", + "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": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bool", + "name": "force", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "Transfer", + "type": "event" + }, + { + "stateMutability": "payable", + "type": "fallback" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "authorizeOperator", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + } + ], + "name": "authorizedAmountFor", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes[]", + "name": "data", + "type": "bytes[]" + } + ], + "name": "batchCalls", + "outputs": [ + { + "internalType": "bytes[]", + "name": "results", + "type": "bytes[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "decimals", + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "uint256", + "name": "subtractedAmount", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "decreaseAllowance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + } + ], + "name": "getData", + "outputs": [ + { + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "dataKeys", + "type": "bytes32[]" + } + ], + "name": "getDataBatch", + "outputs": [ + { + "internalType": "bytes[]", + "name": "dataValues", + "type": "bytes[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + } + ], + "name": "getOperatorsOf", + "outputs": [ + { + "internalType": "address[]", + "name": "", + "type": "address[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "uint256", + "name": "addedAmount", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "increaseAllowance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bool", + "name": "notify", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "revokeOperator", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "name": "setData", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "dataKeys", + "type": "bytes32[]" + }, + { + "internalType": "bytes[]", + "name": "dataValues", + "type": "bytes[]" + } + ], + "name": "setDataBatch", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "force", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "transfer", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "from", + "type": "address[]" + }, + { + "internalType": "address[]", + "name": "to", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "amount", + "type": "uint256[]" + }, + { + "internalType": "bool[]", + "name": "force", + "type": "bool[]" + }, + { + "internalType": "bytes[]", + "name": "data", + "type": "bytes[]" + } + ], + "name": "transferBatch", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "stateMutability": "payable", + "type": "receive" + } +] diff --git a/packages/lsp7-contracts/compatibility-abis/README.md b/packages/lsp7-contracts/compatibility-abis/README.md index e5e76208c..4f2aacc55 100644 --- a/packages/lsp7-contracts/compatibility-abis/README.md +++ b/packages/lsp7-contracts/compatibility-abis/README.md @@ -1,9 +1,26 @@ # Compatibility ABIs for LSP7 -This folder contains historical ABIs from previous release versions. - -- `v0.14.0`: LSP7 interface ID was `0xb3c4928f`. -- `v0.13.0`: LSP7 interface ID was `0xb3c4928f`. -- `v0.12.0`: LSP7 interface ID was `0xdaa746b7`. +This folder contains historical ABIs of LSP7DigitalAsset from previous release versions. This is to enable dApps and projects to be backward compatible in their interfaces to display and interact with LSP7 token contracts deployed with these old versions, by consuming their old ABIs. + +**🧬 Interface ID changes** + +- `0.14.0`: LSP7 interface ID was `0xb3c4928f`. +- `0.12.0`: LSP7 interface ID was `0xdaa746b7`. + +## List of ABI changes from `0.12.0` to `0.14.0`: + +- event `AuthorizedOperator` renamed to `OperatorAuthorizationChanged` +- event `RevokedOperator` renamed to `OperatorRevoked` +- new function `batchCalls(bytes[])` function. +- new custom errors: `LSP4TokenTypeNotEditable()` and `LSP7BatchCallFailed(uint256)` +- `version()` endpoint removed from `0.12.0` + +- `0.14.0`: LSP7 interface ID was `0xb3c4928f`. + +## List of ABI changes from `0.14.0` to `latest`: + +- removed custom error `LSP7CannotSendToSelf()`. +- new custom errors `LSP7DecreaseAllowanceNotAuthorized` and `LSP7RevokeOperatorNotAuthorized`. +- new function parameter `tokenOwner` in functions `decreaseAllowance(...)` and `revokedOperator(...)` diff --git a/packages/lsp7-contracts/constants.ts b/packages/lsp7-contracts/constants.ts index 2a4de93cc..5c74075b0 100644 --- a/packages/lsp7-contracts/constants.ts +++ b/packages/lsp7-contracts/constants.ts @@ -1,6 +1,9 @@ export const INTERFACE_ID_LSP7 = '0xc52d6008'; -export const INTERFACE_ID_LSP7_PREVIOUS = { '0xb3c4928f': 'v0.14.0', '0xdaa746b7': 'v0.12.0' }; +export const INTERFACE_ID_LSP7_PREVIOUS = { + 'v0.14.0': '0xb3c4928f', + 'v0.12.0': '0xdaa746b7', +}; export const LSP7_TYPE_IDS = { // keccak256('LSP7Tokens_SenderNotification') diff --git a/packages/lsp7-contracts/package.json b/packages/lsp7-contracts/package.json index 63a6ec28f..bc1476ef7 100644 --- a/packages/lsp7-contracts/package.json +++ b/packages/lsp7-contracts/package.json @@ -50,6 +50,8 @@ "@erc725/smart-contracts": "^7.0.0", "@openzeppelin/contracts": "^4.9.3", "@lukso/lsp1-contracts": "~0.15.0-rc.5", + "@lukso/lsp2-contracts": "~0.15.0-rc.5", + "@lukso/lsp4-contracts": "~0.15.0-rc.5", "@lukso/lsp17contractextension-contracts": "~0.15.0-rc.5" } } diff --git a/packages/lsp8-contracts/compatibility-abis/LSP8IdentifiableDigitalAsset-v0.12.0.json b/packages/lsp8-contracts/compatibility-abis/LSP8IdentifiableDigitalAsset-v0.12.0.json index cbd0ef255..5b3525849 100644 --- a/packages/lsp8-contracts/compatibility-abis/LSP8IdentifiableDigitalAsset-v0.12.0.json +++ b/packages/lsp8-contracts/compatibility-abis/LSP8IdentifiableDigitalAsset-v0.12.0.json @@ -1,748 +1,739 @@ -{ - "_format": "hh-sol-artifact-1", - "contractName": "LSP8IdentifiableDigitalAsset", - "sourceName": "contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol", - "abi": [ - { - "inputs": [], - "name": "ERC725Y_DataKeysValuesEmptyArray", - "type": "error" - }, - { - "inputs": [], - "name": "ERC725Y_DataKeysValuesLengthMismatch", - "type": "error" - }, - { - "inputs": [], - "name": "ERC725Y_MsgValueDisallowed", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "storedData", - "type": "bytes" - } - ], - "name": "InvalidExtensionAddress", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "InvalidFunctionSelector", - "type": "error" - }, - { - "inputs": [], - "name": "LSP4TokenNameNotEditable", - "type": "error" - }, - { - "inputs": [], - "name": "LSP4TokenSymbolNotEditable", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8CannotSendToAddressZero", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8CannotSendToSelf", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8CannotUseAddressZeroAsOperator", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8InvalidTransferBatch", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - } - ], - "name": "LSP8NonExistentTokenId", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - } - ], - "name": "LSP8NonExistingOperator", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "caller", - "type": "address" - } - ], - "name": "LSP8NotTokenOperator", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "caller", - "type": "address" - } - ], - "name": "LSP8NotTokenOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenReceiver", - "type": "address" - } - ], - "name": "LSP8NotifyTokenReceiverContractMissingLSP1Interface", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenReceiver", - "type": "address" - } - ], - "name": "LSP8NotifyTokenReceiverIsEOA", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - } - ], - "name": "LSP8OperatorAlreadyAuthorized", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8TokenContractCannotHoldValue", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8TokenIdTypeNotEditable", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8TokenOwnerCannotBeOperator", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "functionSelector", - "type": "bytes4" - } - ], - "name": "NoExtensionFoundForFunctionSelector", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "callerAddress", - "type": "address" - } - ], - "name": "OwnableCallerNotTheOwner", - "type": "error" - }, - { - "inputs": [], - "name": "OwnableCannotSetZeroAddressAsOwner", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "tokenOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "AuthorizedOperator", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "name": "DataChanged", - "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": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "tokenOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bool", - "name": "notified", - "type": "bool" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "RevokedOperator", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bool", - "name": "force", - "type": "bool" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "stateMutability": "payable", - "type": "fallback" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "authorizeOperator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - } - ], - "name": "getData", - "outputs": [ - { - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "dataKeys", - "type": "bytes32[]" - } - ], - "name": "getDataBatch", - "outputs": [ - { - "internalType": "bytes[]", - "name": "dataValues", - "type": "bytes[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - } - ], - "name": "getOperatorsOf", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - } - ], - "name": "isOperatorFor", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "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": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "internalType": "bool", - "name": "notify", - "type": "bool" - }, - { - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "revokeOperator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "name": "setData", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "dataKeys", - "type": "bytes32[]" - }, - { - "internalType": "bytes[]", - "name": "dataValues", - "type": "bytes[]" - } - ], - "name": "setDataBatch", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - } - ], - "name": "tokenIdsOf", - "outputs": [ - { - "internalType": "bytes32[]", - "name": "", - "type": "bytes32[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - } - ], - "name": "tokenOwnerOf", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "internalType": "bool", - "name": "force", - "type": "bool" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "transfer", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "from", - "type": "address[]" - }, - { - "internalType": "address[]", - "name": "to", - "type": "address[]" - }, - { - "internalType": "bytes32[]", - "name": "tokenId", - "type": "bytes32[]" - }, - { - "internalType": "bool[]", - "name": "force", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "transferBatch", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "version", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } - ], - "bytecode": "0x", - "deployedBytecode": "0x", - "linkReferences": {}, - "deployedLinkReferences": {} -} +[ + { + "inputs": [], + "name": "ERC725Y_DataKeysValuesEmptyArray", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725Y_DataKeysValuesLengthMismatch", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725Y_MsgValueDisallowed", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "storedData", + "type": "bytes" + } + ], + "name": "InvalidExtensionAddress", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "InvalidFunctionSelector", + "type": "error" + }, + { + "inputs": [], + "name": "LSP4TokenNameNotEditable", + "type": "error" + }, + { + "inputs": [], + "name": "LSP4TokenSymbolNotEditable", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8CannotSendToAddressZero", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8CannotSendToSelf", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8CannotUseAddressZeroAsOperator", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8InvalidTransferBatch", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "LSP8NonExistentTokenId", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "LSP8NonExistingOperator", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "caller", + "type": "address" + } + ], + "name": "LSP8NotTokenOperator", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "caller", + "type": "address" + } + ], + "name": "LSP8NotTokenOwner", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenReceiver", + "type": "address" + } + ], + "name": "LSP8NotifyTokenReceiverContractMissingLSP1Interface", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenReceiver", + "type": "address" + } + ], + "name": "LSP8NotifyTokenReceiverIsEOA", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "LSP8OperatorAlreadyAuthorized", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8TokenContractCannotHoldValue", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8TokenIdTypeNotEditable", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8TokenOwnerCannotBeOperator", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "functionSelector", + "type": "bytes4" + } + ], + "name": "NoExtensionFoundForFunctionSelector", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "callerAddress", + "type": "address" + } + ], + "name": "OwnableCallerNotTheOwner", + "type": "error" + }, + { + "inputs": [], + "name": "OwnableCannotSetZeroAddressAsOwner", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "AuthorizedOperator", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "name": "DataChanged", + "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": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "notified", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "RevokedOperator", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "force", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "Transfer", + "type": "event" + }, + { + "stateMutability": "payable", + "type": "fallback" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "authorizeOperator", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + } + ], + "name": "getData", + "outputs": [ + { + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "dataKeys", + "type": "bytes32[]" + } + ], + "name": "getDataBatch", + "outputs": [ + { + "internalType": "bytes[]", + "name": "dataValues", + "type": "bytes[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "getOperatorsOf", + "outputs": [ + { + "internalType": "address[]", + "name": "", + "type": "address[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "isOperatorFor", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "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": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "bool", + "name": "notify", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "revokeOperator", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "name": "setData", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "dataKeys", + "type": "bytes32[]" + }, + { + "internalType": "bytes[]", + "name": "dataValues", + "type": "bytes[]" + } + ], + "name": "setDataBatch", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + } + ], + "name": "tokenIdsOf", + "outputs": [ + { + "internalType": "bytes32[]", + "name": "", + "type": "bytes32[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "tokenOwnerOf", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "bool", + "name": "force", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "transfer", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "from", + "type": "address[]" + }, + { + "internalType": "address[]", + "name": "to", + "type": "address[]" + }, + { + "internalType": "bytes32[]", + "name": "tokenId", + "type": "bytes32[]" + }, + { + "internalType": "bool[]", + "name": "force", + "type": "bool[]" + }, + { + "internalType": "bytes[]", + "name": "data", + "type": "bytes[]" + } + ], + "name": "transferBatch", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "stateMutability": "payable", + "type": "receive" + } +] diff --git a/packages/lsp8-contracts/compatibility-abis/LSP8IdentifiableDigitalAsset-v0.13.0.json b/packages/lsp8-contracts/compatibility-abis/LSP8IdentifiableDigitalAsset-v0.13.0.json index f2ea99f00..ec89d9d0b 100644 --- a/packages/lsp8-contracts/compatibility-abis/LSP8IdentifiableDigitalAsset-v0.13.0.json +++ b/packages/lsp8-contracts/compatibility-abis/LSP8IdentifiableDigitalAsset-v0.13.0.json @@ -1,899 +1,890 @@ -{ - "_format": "hh-sol-artifact-1", - "contractName": "LSP8IdentifiableDigitalAsset", - "sourceName": "contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol", - "abi": [ - { - "inputs": [], - "name": "ERC725Y_DataKeysValuesEmptyArray", - "type": "error" - }, - { - "inputs": [], - "name": "ERC725Y_DataKeysValuesLengthMismatch", - "type": "error" - }, - { - "inputs": [], - "name": "ERC725Y_MsgValueDisallowed", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "storedData", - "type": "bytes" - } - ], - "name": "InvalidExtensionAddress", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "InvalidFunctionSelector", - "type": "error" - }, - { - "inputs": [], - "name": "LSP4TokenNameNotEditable", - "type": "error" - }, - { - "inputs": [], - "name": "LSP4TokenSymbolNotEditable", - "type": "error" - }, - { - "inputs": [], - "name": "LSP4TokenTypeNotEditable", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "callIndex", - "type": "uint256" - } - ], - "name": "LSP8BatchCallFailed", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8CannotSendToAddressZero", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8CannotSendToSelf", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8CannotUseAddressZeroAsOperator", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8InvalidTransferBatch", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - } - ], - "name": "LSP8NonExistentTokenId", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - } - ], - "name": "LSP8NonExistingOperator", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "caller", - "type": "address" - } - ], - "name": "LSP8NotTokenOperator", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "caller", - "type": "address" - } - ], - "name": "LSP8NotTokenOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenReceiver", - "type": "address" - } - ], - "name": "LSP8NotifyTokenReceiverContractMissingLSP1Interface", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenReceiver", - "type": "address" - } - ], - "name": "LSP8NotifyTokenReceiverIsEOA", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - } - ], - "name": "LSP8OperatorAlreadyAuthorized", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8TokenContractCannotHoldValue", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8TokenIdSchemaNotEditable", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8TokenIdsDataEmptyArray", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8TokenIdsDataLengthMismatch", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8TokenOwnerCannotBeOperator", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "functionSelector", - "type": "bytes4" - } - ], - "name": "NoExtensionFoundForFunctionSelector", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "callerAddress", - "type": "address" - } - ], - "name": "OwnableCallerNotTheOwner", - "type": "error" - }, - { - "inputs": [], - "name": "OwnableCannotSetZeroAddressAsOwner", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "name": "DataChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "tokenOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "OperatorAuthorizationChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "tokenOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bool", - "name": "notified", - "type": "bool" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "OperatorRevoked", - "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": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "name": "TokenIdDataChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bool", - "name": "force", - "type": "bool" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "stateMutability": "payable", - "type": "fallback" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "authorizeOperator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "batchCalls", - "outputs": [ - { - "internalType": "bytes[]", - "name": "results", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - } - ], - "name": "getData", - "outputs": [ - { - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "dataKeys", - "type": "bytes32[]" - } - ], - "name": "getDataBatch", - "outputs": [ - { - "internalType": "bytes[]", - "name": "dataValues", - "type": "bytes[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - } - ], - "name": "getOperatorsOf", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - } - ], - "name": "getTokenIdData", - "outputs": [ - { - "internalType": "bytes", - "name": "dataValues", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "tokenIds", - "type": "bytes32[]" - }, - { - "internalType": "bytes32[]", - "name": "dataKeys", - "type": "bytes32[]" - } - ], - "name": "getTokenIdDataBatch", - "outputs": [ - { - "internalType": "bytes[]", - "name": "dataValues", - "type": "bytes[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - } - ], - "name": "isOperatorFor", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "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": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "internalType": "bool", - "name": "notify", - "type": "bool" - }, - { - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "revokeOperator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "name": "setData", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "dataKeys", - "type": "bytes32[]" - }, - { - "internalType": "bytes[]", - "name": "dataValues", - "type": "bytes[]" - } - ], - "name": "setDataBatch", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "name": "setTokenIdData", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "tokenIds", - "type": "bytes32[]" - }, - { - "internalType": "bytes32[]", - "name": "dataKeys", - "type": "bytes32[]" - }, - { - "internalType": "bytes[]", - "name": "dataValues", - "type": "bytes[]" - } - ], - "name": "setTokenIdDataBatch", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - } - ], - "name": "tokenIdsOf", - "outputs": [ - { - "internalType": "bytes32[]", - "name": "", - "type": "bytes32[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - } - ], - "name": "tokenOwnerOf", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "internalType": "bool", - "name": "force", - "type": "bool" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "transfer", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "from", - "type": "address[]" - }, - { - "internalType": "address[]", - "name": "to", - "type": "address[]" - }, - { - "internalType": "bytes32[]", - "name": "tokenId", - "type": "bytes32[]" - }, - { - "internalType": "bool[]", - "name": "force", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "transferBatch", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } - ], - "bytecode": "0x", - "deployedBytecode": "0x", - "linkReferences": {}, - "deployedLinkReferences": {} -} +[ + { + "inputs": [], + "name": "ERC725Y_DataKeysValuesEmptyArray", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725Y_DataKeysValuesLengthMismatch", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725Y_MsgValueDisallowed", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "storedData", + "type": "bytes" + } + ], + "name": "InvalidExtensionAddress", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "InvalidFunctionSelector", + "type": "error" + }, + { + "inputs": [], + "name": "LSP4TokenNameNotEditable", + "type": "error" + }, + { + "inputs": [], + "name": "LSP4TokenSymbolNotEditable", + "type": "error" + }, + { + "inputs": [], + "name": "LSP4TokenTypeNotEditable", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "callIndex", + "type": "uint256" + } + ], + "name": "LSP8BatchCallFailed", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8CannotSendToAddressZero", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8CannotSendToSelf", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8CannotUseAddressZeroAsOperator", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8InvalidTransferBatch", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "LSP8NonExistentTokenId", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "LSP8NonExistingOperator", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "caller", + "type": "address" + } + ], + "name": "LSP8NotTokenOperator", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "caller", + "type": "address" + } + ], + "name": "LSP8NotTokenOwner", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenReceiver", + "type": "address" + } + ], + "name": "LSP8NotifyTokenReceiverContractMissingLSP1Interface", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenReceiver", + "type": "address" + } + ], + "name": "LSP8NotifyTokenReceiverIsEOA", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "LSP8OperatorAlreadyAuthorized", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8TokenContractCannotHoldValue", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8TokenIdSchemaNotEditable", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8TokenIdsDataEmptyArray", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8TokenIdsDataLengthMismatch", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8TokenOwnerCannotBeOperator", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "functionSelector", + "type": "bytes4" + } + ], + "name": "NoExtensionFoundForFunctionSelector", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "callerAddress", + "type": "address" + } + ], + "name": "OwnableCallerNotTheOwner", + "type": "error" + }, + { + "inputs": [], + "name": "OwnableCannotSetZeroAddressAsOwner", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "name": "DataChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "OperatorAuthorizationChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "notified", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "OperatorRevoked", + "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": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "name": "TokenIdDataChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "force", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "Transfer", + "type": "event" + }, + { + "stateMutability": "payable", + "type": "fallback" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "authorizeOperator", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes[]", + "name": "data", + "type": "bytes[]" + } + ], + "name": "batchCalls", + "outputs": [ + { + "internalType": "bytes[]", + "name": "results", + "type": "bytes[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + } + ], + "name": "getData", + "outputs": [ + { + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "dataKeys", + "type": "bytes32[]" + } + ], + "name": "getDataBatch", + "outputs": [ + { + "internalType": "bytes[]", + "name": "dataValues", + "type": "bytes[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "getOperatorsOf", + "outputs": [ + { + "internalType": "address[]", + "name": "", + "type": "address[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + } + ], + "name": "getTokenIdData", + "outputs": [ + { + "internalType": "bytes", + "name": "dataValues", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "tokenIds", + "type": "bytes32[]" + }, + { + "internalType": "bytes32[]", + "name": "dataKeys", + "type": "bytes32[]" + } + ], + "name": "getTokenIdDataBatch", + "outputs": [ + { + "internalType": "bytes[]", + "name": "dataValues", + "type": "bytes[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "isOperatorFor", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "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": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "bool", + "name": "notify", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "revokeOperator", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "name": "setData", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "dataKeys", + "type": "bytes32[]" + }, + { + "internalType": "bytes[]", + "name": "dataValues", + "type": "bytes[]" + } + ], + "name": "setDataBatch", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "name": "setTokenIdData", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "tokenIds", + "type": "bytes32[]" + }, + { + "internalType": "bytes32[]", + "name": "dataKeys", + "type": "bytes32[]" + }, + { + "internalType": "bytes[]", + "name": "dataValues", + "type": "bytes[]" + } + ], + "name": "setTokenIdDataBatch", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + } + ], + "name": "tokenIdsOf", + "outputs": [ + { + "internalType": "bytes32[]", + "name": "", + "type": "bytes32[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "tokenOwnerOf", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "bool", + "name": "force", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "transfer", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "from", + "type": "address[]" + }, + { + "internalType": "address[]", + "name": "to", + "type": "address[]" + }, + { + "internalType": "bytes32[]", + "name": "tokenId", + "type": "bytes32[]" + }, + { + "internalType": "bool[]", + "name": "force", + "type": "bool[]" + }, + { + "internalType": "bytes[]", + "name": "data", + "type": "bytes[]" + } + ], + "name": "transferBatch", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "stateMutability": "payable", + "type": "receive" + } +] diff --git a/packages/lsp8-contracts/compatibility-abis/LSP8IdentifiableDigitalAsset-v0.14.0.json b/packages/lsp8-contracts/compatibility-abis/LSP8IdentifiableDigitalAsset-v0.14.0.json index c51a5a550..32e9b36f9 100644 --- a/packages/lsp8-contracts/compatibility-abis/LSP8IdentifiableDigitalAsset-v0.14.0.json +++ b/packages/lsp8-contracts/compatibility-abis/LSP8IdentifiableDigitalAsset-v0.14.0.json @@ -1,899 +1,890 @@ -{ - "_format": "hh-sol-artifact-1", - "contractName": "LSP8IdentifiableDigitalAsset", - "sourceName": "contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol", - "abi": [ - { - "inputs": [], - "name": "ERC725Y_DataKeysValuesEmptyArray", - "type": "error" - }, - { - "inputs": [], - "name": "ERC725Y_DataKeysValuesLengthMismatch", - "type": "error" - }, - { - "inputs": [], - "name": "ERC725Y_MsgValueDisallowed", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "storedData", - "type": "bytes" - } - ], - "name": "InvalidExtensionAddress", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "InvalidFunctionSelector", - "type": "error" - }, - { - "inputs": [], - "name": "LSP4TokenNameNotEditable", - "type": "error" - }, - { - "inputs": [], - "name": "LSP4TokenSymbolNotEditable", - "type": "error" - }, - { - "inputs": [], - "name": "LSP4TokenTypeNotEditable", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "callIndex", - "type": "uint256" - } - ], - "name": "LSP8BatchCallFailed", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8CannotSendToAddressZero", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8CannotSendToSelf", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8CannotUseAddressZeroAsOperator", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8InvalidTransferBatch", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - } - ], - "name": "LSP8NonExistentTokenId", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - } - ], - "name": "LSP8NonExistingOperator", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "caller", - "type": "address" - } - ], - "name": "LSP8NotTokenOperator", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "caller", - "type": "address" - } - ], - "name": "LSP8NotTokenOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenReceiver", - "type": "address" - } - ], - "name": "LSP8NotifyTokenReceiverContractMissingLSP1Interface", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenReceiver", - "type": "address" - } - ], - "name": "LSP8NotifyTokenReceiverIsEOA", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - } - ], - "name": "LSP8OperatorAlreadyAuthorized", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8TokenContractCannotHoldValue", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8TokenIdFormatNotEditable", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8TokenIdsDataEmptyArray", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8TokenIdsDataLengthMismatch", - "type": "error" - }, - { - "inputs": [], - "name": "LSP8TokenOwnerCannotBeOperator", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "functionSelector", - "type": "bytes4" - } - ], - "name": "NoExtensionFoundForFunctionSelector", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "callerAddress", - "type": "address" - } - ], - "name": "OwnableCallerNotTheOwner", - "type": "error" - }, - { - "inputs": [], - "name": "OwnableCannotSetZeroAddressAsOwner", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "name": "DataChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "tokenOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "OperatorAuthorizationChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "tokenOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bool", - "name": "notified", - "type": "bool" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "OperatorRevoked", - "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": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "name": "TokenIdDataChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bool", - "name": "force", - "type": "bool" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "stateMutability": "payable", - "type": "fallback" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "authorizeOperator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "batchCalls", - "outputs": [ - { - "internalType": "bytes[]", - "name": "results", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - } - ], - "name": "getData", - "outputs": [ - { - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "dataKeys", - "type": "bytes32[]" - } - ], - "name": "getDataBatch", - "outputs": [ - { - "internalType": "bytes[]", - "name": "dataValues", - "type": "bytes[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "tokenIds", - "type": "bytes32[]" - }, - { - "internalType": "bytes32[]", - "name": "dataKeys", - "type": "bytes32[]" - } - ], - "name": "getDataBatchForTokenIds", - "outputs": [ - { - "internalType": "bytes[]", - "name": "dataValues", - "type": "bytes[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - } - ], - "name": "getDataForTokenId", - "outputs": [ - { - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - } - ], - "name": "getOperatorsOf", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - } - ], - "name": "isOperatorFor", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "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": [ - { - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "internalType": "bool", - "name": "notify", - "type": "bool" - }, - { - "internalType": "bytes", - "name": "operatorNotificationData", - "type": "bytes" - } - ], - "name": "revokeOperator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "name": "setData", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "dataKeys", - "type": "bytes32[]" - }, - { - "internalType": "bytes[]", - "name": "dataValues", - "type": "bytes[]" - } - ], - "name": "setDataBatch", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "tokenIds", - "type": "bytes32[]" - }, - { - "internalType": "bytes32[]", - "name": "dataKeys", - "type": "bytes32[]" - }, - { - "internalType": "bytes[]", - "name": "dataValues", - "type": "bytes[]" - } - ], - "name": "setDataBatchForTokenIds", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataKey", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "dataValue", - "type": "bytes" - } - ], - "name": "setDataForTokenId", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenOwner", - "type": "address" - } - ], - "name": "tokenIdsOf", - "outputs": [ - { - "internalType": "bytes32[]", - "name": "", - "type": "bytes32[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - } - ], - "name": "tokenOwnerOf", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "tokenId", - "type": "bytes32" - }, - { - "internalType": "bool", - "name": "force", - "type": "bool" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "transfer", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "from", - "type": "address[]" - }, - { - "internalType": "address[]", - "name": "to", - "type": "address[]" - }, - { - "internalType": "bytes32[]", - "name": "tokenId", - "type": "bytes32[]" - }, - { - "internalType": "bool[]", - "name": "force", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "transferBatch", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } - ], - "bytecode": "0x", - "deployedBytecode": "0x", - "linkReferences": {}, - "deployedLinkReferences": {} -} +[ + { + "inputs": [], + "name": "ERC725Y_DataKeysValuesEmptyArray", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725Y_DataKeysValuesLengthMismatch", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725Y_MsgValueDisallowed", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "storedData", + "type": "bytes" + } + ], + "name": "InvalidExtensionAddress", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "InvalidFunctionSelector", + "type": "error" + }, + { + "inputs": [], + "name": "LSP4TokenNameNotEditable", + "type": "error" + }, + { + "inputs": [], + "name": "LSP4TokenSymbolNotEditable", + "type": "error" + }, + { + "inputs": [], + "name": "LSP4TokenTypeNotEditable", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "callIndex", + "type": "uint256" + } + ], + "name": "LSP8BatchCallFailed", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8CannotSendToAddressZero", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8CannotSendToSelf", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8CannotUseAddressZeroAsOperator", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8InvalidTransferBatch", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "LSP8NonExistentTokenId", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "LSP8NonExistingOperator", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "caller", + "type": "address" + } + ], + "name": "LSP8NotTokenOperator", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "caller", + "type": "address" + } + ], + "name": "LSP8NotTokenOwner", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenReceiver", + "type": "address" + } + ], + "name": "LSP8NotifyTokenReceiverContractMissingLSP1Interface", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenReceiver", + "type": "address" + } + ], + "name": "LSP8NotifyTokenReceiverIsEOA", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "LSP8OperatorAlreadyAuthorized", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8TokenContractCannotHoldValue", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8TokenIdFormatNotEditable", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8TokenIdsDataEmptyArray", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8TokenIdsDataLengthMismatch", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8TokenOwnerCannotBeOperator", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "functionSelector", + "type": "bytes4" + } + ], + "name": "NoExtensionFoundForFunctionSelector", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "callerAddress", + "type": "address" + } + ], + "name": "OwnableCallerNotTheOwner", + "type": "error" + }, + { + "inputs": [], + "name": "OwnableCannotSetZeroAddressAsOwner", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "name": "DataChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "OperatorAuthorizationChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "notified", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "OperatorRevoked", + "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": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "name": "TokenIdDataChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "force", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "Transfer", + "type": "event" + }, + { + "stateMutability": "payable", + "type": "fallback" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "authorizeOperator", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes[]", + "name": "data", + "type": "bytes[]" + } + ], + "name": "batchCalls", + "outputs": [ + { + "internalType": "bytes[]", + "name": "results", + "type": "bytes[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + } + ], + "name": "getData", + "outputs": [ + { + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "dataKeys", + "type": "bytes32[]" + } + ], + "name": "getDataBatch", + "outputs": [ + { + "internalType": "bytes[]", + "name": "dataValues", + "type": "bytes[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "tokenIds", + "type": "bytes32[]" + }, + { + "internalType": "bytes32[]", + "name": "dataKeys", + "type": "bytes32[]" + } + ], + "name": "getDataBatchForTokenIds", + "outputs": [ + { + "internalType": "bytes[]", + "name": "dataValues", + "type": "bytes[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + } + ], + "name": "getDataForTokenId", + "outputs": [ + { + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "getOperatorsOf", + "outputs": [ + { + "internalType": "address[]", + "name": "", + "type": "address[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "isOperatorFor", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "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": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "bool", + "name": "notify", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "revokeOperator", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "name": "setData", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "dataKeys", + "type": "bytes32[]" + }, + { + "internalType": "bytes[]", + "name": "dataValues", + "type": "bytes[]" + } + ], + "name": "setDataBatch", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "tokenIds", + "type": "bytes32[]" + }, + { + "internalType": "bytes32[]", + "name": "dataKeys", + "type": "bytes32[]" + }, + { + "internalType": "bytes[]", + "name": "dataValues", + "type": "bytes[]" + } + ], + "name": "setDataBatchForTokenIds", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "name": "setDataForTokenId", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + } + ], + "name": "tokenIdsOf", + "outputs": [ + { + "internalType": "bytes32[]", + "name": "", + "type": "bytes32[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "tokenOwnerOf", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "bool", + "name": "force", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "transfer", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "from", + "type": "address[]" + }, + { + "internalType": "address[]", + "name": "to", + "type": "address[]" + }, + { + "internalType": "bytes32[]", + "name": "tokenId", + "type": "bytes32[]" + }, + { + "internalType": "bool[]", + "name": "force", + "type": "bool[]" + }, + { + "internalType": "bytes[]", + "name": "data", + "type": "bytes[]" + } + ], + "name": "transferBatch", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "stateMutability": "payable", + "type": "receive" + } +] diff --git a/packages/lsp8-contracts/compatibility-abis/LSP8IdentifiableDigitalAsset.json b/packages/lsp8-contracts/compatibility-abis/LSP8IdentifiableDigitalAsset.json new file mode 100644 index 000000000..321230718 --- /dev/null +++ b/packages/lsp8-contracts/compatibility-abis/LSP8IdentifiableDigitalAsset.json @@ -0,0 +1,927 @@ +[ + { + "inputs": [], + "name": "ERC725Y_DataKeysValuesEmptyArray", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725Y_DataKeysValuesLengthMismatch", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725Y_MsgValueDisallowed", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "storedData", + "type": "bytes" + } + ], + "name": "InvalidExtensionAddress", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "InvalidFunctionSelector", + "type": "error" + }, + { + "inputs": [], + "name": "LSP4TokenNameNotEditable", + "type": "error" + }, + { + "inputs": [], + "name": "LSP4TokenSymbolNotEditable", + "type": "error" + }, + { + "inputs": [], + "name": "LSP4TokenTypeNotEditable", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "callIndex", + "type": "uint256" + } + ], + "name": "LSP8BatchCallFailed", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8CannotSendToAddressZero", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8CannotUseAddressZeroAsOperator", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8InvalidTransferBatch", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "LSP8NonExistentTokenId", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "LSP8NonExistingOperator", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "caller", + "type": "address" + } + ], + "name": "LSP8NotTokenOperator", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "caller", + "type": "address" + } + ], + "name": "LSP8NotTokenOwner", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenReceiver", + "type": "address" + } + ], + "name": "LSP8NotifyTokenReceiverContractMissingLSP1Interface", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenReceiver", + "type": "address" + } + ], + "name": "LSP8NotifyTokenReceiverIsEOA", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "LSP8OperatorAlreadyAuthorized", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "caller", + "type": "address" + }, + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "LSP8RevokeOperatorNotAuthorized", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8TokenContractCannotHoldValue", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8TokenIdFormatNotEditable", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8TokenIdsDataEmptyArray", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8TokenIdsDataLengthMismatch", + "type": "error" + }, + { + "inputs": [], + "name": "LSP8TokenOwnerCannotBeOperator", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "oldOwner", + "type": "address" + }, + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "LSP8TokenOwnerChanged", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "functionSelector", + "type": "bytes4" + } + ], + "name": "NoExtensionFoundForFunctionSelector", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "callerAddress", + "type": "address" + } + ], + "name": "OwnableCallerNotTheOwner", + "type": "error" + }, + { + "inputs": [], + "name": "OwnableCannotSetZeroAddressAsOwner", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "name": "DataChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "OperatorAuthorizationChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "notified", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "OperatorRevoked", + "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": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "name": "TokenIdDataChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "force", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "Transfer", + "type": "event" + }, + { + "stateMutability": "payable", + "type": "fallback" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "authorizeOperator", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes[]", + "name": "data", + "type": "bytes[]" + } + ], + "name": "batchCalls", + "outputs": [ + { + "internalType": "bytes[]", + "name": "results", + "type": "bytes[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + } + ], + "name": "getData", + "outputs": [ + { + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "dataKeys", + "type": "bytes32[]" + } + ], + "name": "getDataBatch", + "outputs": [ + { + "internalType": "bytes[]", + "name": "dataValues", + "type": "bytes[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "tokenIds", + "type": "bytes32[]" + }, + { + "internalType": "bytes32[]", + "name": "dataKeys", + "type": "bytes32[]" + } + ], + "name": "getDataBatchForTokenIds", + "outputs": [ + { + "internalType": "bytes[]", + "name": "dataValues", + "type": "bytes[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + } + ], + "name": "getDataForTokenId", + "outputs": [ + { + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "getOperatorsOf", + "outputs": [ + { + "internalType": "address[]", + "name": "", + "type": "address[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "isOperatorFor", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "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": [ + { + "internalType": "address", + "name": "operator", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "bool", + "name": "notify", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "operatorNotificationData", + "type": "bytes" + } + ], + "name": "revokeOperator", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "name": "setData", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "dataKeys", + "type": "bytes32[]" + }, + { + "internalType": "bytes[]", + "name": "dataValues", + "type": "bytes[]" + } + ], + "name": "setDataBatch", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "tokenIds", + "type": "bytes32[]" + }, + { + "internalType": "bytes32[]", + "name": "dataKeys", + "type": "bytes32[]" + }, + { + "internalType": "bytes[]", + "name": "dataValues", + "type": "bytes[]" + } + ], + "name": "setDataBatchForTokenIds", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "name": "setDataForTokenId", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenOwner", + "type": "address" + } + ], + "name": "tokenIdsOf", + "outputs": [ + { + "internalType": "bytes32[]", + "name": "", + "type": "bytes32[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + } + ], + "name": "tokenOwnerOf", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "tokenId", + "type": "bytes32" + }, + { + "internalType": "bool", + "name": "force", + "type": "bool" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "transfer", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "from", + "type": "address[]" + }, + { + "internalType": "address[]", + "name": "to", + "type": "address[]" + }, + { + "internalType": "bytes32[]", + "name": "tokenId", + "type": "bytes32[]" + }, + { + "internalType": "bool[]", + "name": "force", + "type": "bool[]" + }, + { + "internalType": "bytes[]", + "name": "data", + "type": "bytes[]" + } + ], + "name": "transferBatch", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "stateMutability": "payable", + "type": "receive" + } +] diff --git a/packages/lsp8-contracts/compatibility-abis/README.md b/packages/lsp8-contracts/compatibility-abis/README.md index 264218f70..3a09faad3 100644 --- a/packages/lsp8-contracts/compatibility-abis/README.md +++ b/packages/lsp8-contracts/compatibility-abis/README.md @@ -2,8 +2,42 @@ This folder contains historical ABIs from previous release versions. +**🧬 Interface ID changes** + - `v0.14.0`: LSP8 interface ID was `0x3a271706`. - `v0.13.0`: LSP8 interface ID was `0xecad9f75`. - `v0.12.0`: LSP8 interface ID was `0x30dc5278`. This is to enable dApps and projects to be backward compatible in their interfaces to display and interact with LSP8 token contracts deployed with these old versions, by consuming their old ABIs. + +## List of ABI changes from `0.12.0` to `0.13.0`: + +**Events** + +- event `AuthorizedOperator` renamed to `OperatorAuthorizationChanged` +- event `RevokedOperator` renamed to `OperatorRevoked` + +**Functions** + +- new function `batchCalls(bytes[])`. +- new function `getTokenIdData(bytes32)`, `getTokenIdDataBatch(bytes32[])`, `setTokenIdData(bytes32,bytes)` and `setTokenIdDataBatch(bytes32[],bytes[])`. +- `version()` endpoint removed from `0.12.0`. + +**Errors** + +- new custom errors: `LSP4TokenTypeNotEditable()`, `LSP8BatchCallFailed(uint256)`, `LSP8TokenIdsDataEmptyArray()` and `LSP8TokenIdsDataLengthMismatch()`. +- custom error `LSP8TokenIdTypeNotEditable` renamed to `LSP8TokenIdSchemaNotEditable` + +## List of ABI changes from `0.13.0` to `0.14.0`: + +- custom error `LSP8TokenIdSchemaNotEditable` renamed to `LSP8TokenIdFormatNotEditable`. +- functions renamed as follow: + - `getTokenIdData(bytes32)` --> `getDataForTokenId(bytes32)` + - `getTokenIdDataBatch(bytes32[])` --> `getDataBatchForTokenId(bytes32[])` + - `setTokenIdData(bytes32,bytes)` --> `setDataForTokenId(bytes32,bytes)` + - `setTokenIdDataBatch(bytes32[],bytes[])` --> `setDataBatchForTokenId(bytes32[],bytes[])` + +## List of ABI changes from `0.14.0` to `latest`: + +- removed custom error `LSP8CannotSendToSelf()`. +- new custom errors `LSP8TokenOwnerChanged` and `LSP8RevokeOperatorNotAuthorized`. diff --git a/packages/lsp8-contracts/constants.ts b/packages/lsp8-contracts/constants.ts index c703d2b85..48bf0d567 100644 --- a/packages/lsp8-contracts/constants.ts +++ b/packages/lsp8-contracts/constants.ts @@ -1,8 +1,8 @@ export const INTERFACE_ID_LSP8 = '0x3a271706'; export const INTERFACE_ID_LSP8_PREVIOUS = { - '0xecad9f75': 'v0.13.0', - '0x30dc5278': 'v0.12.0', + 'v0.14.0': '0xecad9f75', + 'v0.12.0': '0x30dc5278', }; export const LSP8DataKeys = { diff --git a/packages/universalprofile-contracts/compatibility-abis/README.md b/packages/universalprofile-contracts/compatibility-abis/README.md new file mode 100644 index 000000000..2661a5433 --- /dev/null +++ b/packages/universalprofile-contracts/compatibility-abis/README.md @@ -0,0 +1,5 @@ +# Compatibility ABIs for UniversalProfile + +This folder contains historical ABIs from previous release versions. + +This is to enable dApps and projects to be backward compatible in their interfaces to display and interact with UnviersalProfile token contracts deployed with these old versions, by consuming their old ABIs. diff --git a/packages/universalprofile-contracts/compatibility-abis/UniversalProfile-v0.12.0.json b/packages/universalprofile-contracts/compatibility-abis/UniversalProfile-v0.12.0.json new file mode 100644 index 000000000..75371cd7d --- /dev/null +++ b/packages/universalprofile-contracts/compatibility-abis/UniversalProfile-v0.12.0.json @@ -0,0 +1,667 @@ +[ + { + "inputs": [ + { + "internalType": "address", + "name": "initialOwner", + "type": "address" + } + ], + "stateMutability": "payable", + "type": "constructor" + }, + { + "inputs": [], + "name": "ERC725X_ContractDeploymentFailed", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725X_CreateOperationsRequireEmptyRecipientAddress", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725X_ExecuteParametersEmptyArray", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725X_ExecuteParametersLengthMismatch", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "balance", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "ERC725X_InsufficientBalance", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725X_MsgValueDisallowedInDelegateCall", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725X_MsgValueDisallowedInStaticCall", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725X_NoContractBytecodeProvided", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "operationTypeProvided", + "type": "uint256" + } + ], + "name": "ERC725X_UnknownOperationType", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725Y_DataKeysValuesEmptyArray", + "type": "error" + }, + { + "inputs": [], + "name": "ERC725Y_DataKeysValuesLengthMismatch", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "caller", + "type": "address" + } + ], + "name": "LSP14CallerNotPendingOwner", + "type": "error" + }, + { + "inputs": [], + "name": "LSP14CannotTransferOwnershipToSelf", + "type": "error" + }, + { + "inputs": [], + "name": "LSP14MustAcceptOwnershipInSeparateTransaction", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "renounceOwnershipStart", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "renounceOwnershipEnd", + "type": "uint256" + } + ], + "name": "LSP14NotInRenounceOwnershipInterval", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "postCall", + "type": "bool" + }, + { + "internalType": "bytes4", + "name": "returnedStatus", + "type": "bytes4" + } + ], + "name": "LSP20CallVerificationFailed", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "postCall", + "type": "bool" + } + ], + "name": "LSP20CallingVerifierFailed", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "logicVerifier", + "type": "address" + } + ], + "name": "LSP20EOACannotVerifyCall", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "functionSelector", + "type": "bytes4" + } + ], + "name": "NoExtensionFoundForFunctionSelector", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "operationType", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "contractAddress", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "salt", + "type": "bytes32" + } + ], + "name": "ContractCreated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "name": "DataChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "operationType", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "target", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes4", + "name": "selector", + "type": "bytes4" + } + ], + "name": "Executed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [], + "name": "OwnershipRenounced", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferStarted", + "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": [], + "name": "RenounceOwnershipStarted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "typeId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "receivedData", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "returnedValue", + "type": "bytes" + } + ], + "name": "UniversalReceiver", + "type": "event" + }, + { + "stateMutability": "payable", + "type": "fallback" + }, + { + "inputs": [], + "name": "RENOUNCE_OWNERSHIP_CONFIRMATION_DELAY", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "RENOUNCE_OWNERSHIP_CONFIRMATION_PERIOD", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "acceptOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes[]", + "name": "data", + "type": "bytes[]" + } + ], + "name": "batchCalls", + "outputs": [ + { + "internalType": "bytes[]", + "name": "results", + "type": "bytes[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "operationType", + "type": "uint256" + }, + { + "internalType": "address", + "name": "target", + "type": "address" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "execute", + "outputs": [ + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256[]", + "name": "operationsType", + "type": "uint256[]" + }, + { + "internalType": "address[]", + "name": "targets", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "values", + "type": "uint256[]" + }, + { + "internalType": "bytes[]", + "name": "datas", + "type": "bytes[]" + } + ], + "name": "executeBatch", + "outputs": [ + { + "internalType": "bytes[]", + "name": "", + "type": "bytes[]" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + } + ], + "name": "getData", + "outputs": [ + { + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "dataKeys", + "type": "bytes32[]" + } + ], + "name": "getDataBatch", + "outputs": [ + { + "internalType": "bytes[]", + "name": "dataValues", + "type": "bytes[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataHash", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "signature", + "type": "bytes" + } + ], + "name": "isValidSignature", + "outputs": [ + { + "internalType": "bytes4", + "name": "returnedStatus", + "type": "bytes4" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pendingOwner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataKey", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "dataValue", + "type": "bytes" + } + ], + "name": "setData", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "dataKeys", + "type": "bytes32[]" + }, + { + "internalType": "bytes[]", + "name": "dataValues", + "type": "bytes[]" + } + ], + "name": "setDataBatch", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "pendingNewOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "typeId", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "receivedData", + "type": "bytes" + } + ], + "name": "universalReceiver", + "outputs": [ + { + "internalType": "bytes", + "name": "returnedValues", + "type": "bytes" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "version", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "stateMutability": "payable", + "type": "receive" + } +] diff --git a/packages/universalprofile-contracts/package.json b/packages/universalprofile-contracts/package.json index e153f0cbf..9e38db13a 100644 --- a/packages/universalprofile-contracts/package.json +++ b/packages/universalprofile-contracts/package.json @@ -30,6 +30,7 @@ "contracts/**/*.sol", "!contracts/Mocks/**/*.sol", "artifacts/*.json", + "compatibility-abis", "dist", "./README.md" ],