Skip to content

Commit

Permalink
Merge pull request #950 from lukso-network/build/old-token-interface-ids
Browse files Browse the repository at this point in the history
build: add constants for old LSP7/8 interface IDs
  • Loading branch information
CJ42 authored Apr 4, 2024
2 parents 39108d2 + 50007d0 commit fb9fd88
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/lsp-smart-contracts/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ export { LSP8_TOKEN_ID_FORMAT } from '@lukso/lsp8-contracts';
export { LSP20_SUCCESS_VALUES } from '@lukso/lsp20-contracts';
export { LSP25_VERSION } from '@lukso/lsp25-contracts';

// Old interface Ids of previous releases of LSP7/8 Tokens
// for backward compatibilities for dApps and interfaces
export { INTERFACE_ID_LSP7_PREVIOUS } from '@lukso/lsp7-contracts';
export { INTERFACE_ID_LSP8_PREVIOUS } from '@lukso/lsp8-contracts';

// ERC165 interface IDs of each LSP
import { INTERFACE_ID_LSP0 } from '@lukso/lsp0-contracts';
import { INTERFACE_ID_LSP1 } from '@lukso/lsp1-contracts';
Expand Down
2 changes: 2 additions & 0 deletions packages/lsp7-contracts/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export const INTERFACE_ID_LSP7 = '0xc52d6008';

export const INTERFACE_ID_LSP7_PREVIOUS = { '0xb3c4928f': 'v0.14.0', '0xdaa746b7': 'v0.12.0' };

export const LSP7_TYPE_IDS = {
// keccak256('LSP7Tokens_SenderNotification')
LSP7Tokens_SenderNotification:
Expand Down
5 changes: 5 additions & 0 deletions packages/lsp8-contracts/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
export const INTERFACE_ID_LSP8 = '0x3a271706';

export const INTERFACE_ID_LSP8_PREVIOUS = {
'0xecad9f75': 'v0.13.0',
'0x30dc5278': 'v0.12.0',
};

export const LSP8DataKeys = {
LSP8TokenIdFormat: '0xf675e9361af1c1664c1868cfa3eb97672d6b1a513aa5b81dec34c9ee330e818d',
LSP8TokenMetadataBaseURI: '0x1a7628600c3bac7101f53697f48df381ddc36b9015e7d7c9c5633d1252aa2843',
Expand Down

0 comments on commit fb9fd88

Please sign in to comment.