Skip to content

Commit

Permalink
build: add constants for old LSP7/8 interface IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ42 committed Apr 3, 2024
1 parent de15120 commit de9f76b
Show file tree
Hide file tree
Showing 3 changed files with 9 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
2 changes: 2 additions & 0 deletions packages/lsp8-contracts/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export const INTERFACE_ID_LSP8 = '0x3a271706';

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

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

0 comments on commit de9f76b

Please sign in to comment.