diff --git a/schemas/LSP10ReceivedVaults.json b/schemas/LSP10ReceivedVaults.json index 883cdf67..121ac6b6 100644 --- a/schemas/LSP10ReceivedVaults.json +++ b/schemas/LSP10ReceivedVaults.json @@ -3,8 +3,8 @@ "name": "LSP10VaultsMap:
", "key": "0x192448c3c0f88c7f238c0000
", "keyType": "Mapping", - "valueType": "bytes", - "valueContent": "Mixed" + "valueType": "(bytes4,bytes8)", + "valueContent": "(Bytes4,Number)" }, { "name": "LSP10Vaults[]", diff --git a/schemas/LSP3UniversalProfileMetadata.json b/schemas/LSP3UniversalProfileMetadata.json index 5a96f9b6..5666aeac 100644 --- a/schemas/LSP3UniversalProfileMetadata.json +++ b/schemas/LSP3UniversalProfileMetadata.json @@ -24,15 +24,15 @@ "name": "LSP12IssuedAssetsMap:
", "key": "0x74ac2555c10b9349e78f0000
", "keyType": "Mapping", - "valueType": "bytes", - "valueContent": "Mixed" + "valueType": "(bytes4,bytes8)", + "valueContent": "(Bytes4,Number)" }, { "name": "LSP5ReceivedAssetsMap:
", "key": "0x812c4334633eb816c80d0000
", "keyType": "Mapping", - "valueType": "bytes", - "valueContent": "Mixed" + "valueType": "(bytes4,bytes8)", + "valueContent": "(Bytes4,Number)" }, { "name": "LSP5ReceivedAssets[]", diff --git a/schemas/LSP4DigitalAsset.json b/schemas/LSP4DigitalAsset.json index c841ee23..f52555c2 100644 --- a/schemas/LSP4DigitalAsset.json +++ b/schemas/LSP4DigitalAsset.json @@ -38,7 +38,7 @@ "name": "LSP4CreatorsMap:
", "key": "0x6de85eaf5d982b4e5da00000
", "keyType": "Mapping", - "valueType": "bytes", - "valueContent": "Mixed" + "valueType": "(bytes4,bytes8)", + "valueContent": "(Bytes4,Number)" } ] diff --git a/schemas/LSP5ReceivedAssets.json b/schemas/LSP5ReceivedAssets.json index 9ab53127..8579140f 100644 --- a/schemas/LSP5ReceivedAssets.json +++ b/schemas/LSP5ReceivedAssets.json @@ -3,8 +3,8 @@ "name": "LSP5ReceivedAssetsMap:
", "key": "0x812c4334633eb816c80d0000
", "keyType": "Mapping", - "valueType": "bytes", - "valueContent": "Mixed" + "valueType": "(bytes4,bytes8)", + "valueContent": "(Bytes4,Number)" }, { "name": "LSP5ReceivedAssets[]", diff --git a/src/index.ts b/src/index.ts index 51febedd..777b9ce0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,7 +14,9 @@ /** * @file index.ts - * @author Robert McLeod <@robertdavid010>, Fabian Vogelsteller , Hugo Masclet <@Hugoo> + * @author Robert McLeod <@robertdavid010> + * @author Fabian Vogelsteller + * @author Hugo Masclet <@Hugoo> * @date 2020 */ diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 0c6ec276..63f05cb4 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -1,3 +1,17 @@ +/* + This file is part of @erc725/erc725.js. + @erc725/erc725.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + @erc725/erc725.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with @erc725/erc725.js. If not, see . +*/ + /* eslint-disable @typescript-eslint/ban-types */ import { numberToHex, keccak256 } from 'web3-utils'; diff --git a/src/lib/decodeData.test.ts b/src/lib/decodeData.test.ts index f376e20f..ea57ce5a 100644 --- a/src/lib/decodeData.test.ts +++ b/src/lib/decodeData.test.ts @@ -1,3 +1,17 @@ +/* + This file is part of @erc725/erc725.js. + @erc725/erc725.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + @erc725/erc725.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ + /* eslint-disable no-unused-expressions */ import { expect } from 'chai'; diff --git a/src/lib/decodeData.ts b/src/lib/decodeData.ts index bd3d05f8..de7b0e24 100644 --- a/src/lib/decodeData.ts +++ b/src/lib/decodeData.ts @@ -13,12 +13,15 @@ */ /** - * @file decodeData.ts + * @file lib/decodeData.ts + * @author Robert McLeod <@robertdavid010> * @author Hugo Masclet <@Hugoo> - * @date 2022 + * @author Callum Grindle <@CallumGrindle> + * @date 2020 */ import { isHex } from 'web3-utils'; + import { DecodeDataInput, DecodeDataOutput } from '../types/decodeData'; import { ERC725JSONSchema } from '../types/ERC725JSONSchema'; import { isDynamicKeyName } from './encodeKeyName'; diff --git a/src/lib/encodeKeyName.test.ts b/src/lib/encodeKeyName.test.ts index 58a45b46..356ec741 100644 --- a/src/lib/encodeKeyName.test.ts +++ b/src/lib/encodeKeyName.test.ts @@ -1,3 +1,22 @@ +/* + This file is part of @erc725/erc725.js. + @erc725/erc725.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + @erc725/erc725.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ +/** + * @file lib/encodeKeyName.ts + * @author Hugo Masclet <@Hugoo> + * @date 2021 + */ + import assert from 'assert'; import { keccak256 } from 'web3-utils'; diff --git a/src/lib/encodeKeyName.ts b/src/lib/encodeKeyName.ts index 06a28528..3f594fad 100644 --- a/src/lib/encodeKeyName.ts +++ b/src/lib/encodeKeyName.ts @@ -11,9 +11,8 @@ You should have received a copy of the GNU Lesser General Public License along with @erc725/erc725.js. If not, see . */ - /** - * @file encodeKeyName.ts + * @file lib/encodeKeyName.ts * @author Hugo Masclet <@Hugoo> * @date 2022 */ diff --git a/src/lib/encoder.test.ts b/src/lib/encoder.test.ts index 8020e6e0..89fb7f20 100644 --- a/src/lib/encoder.test.ts +++ b/src/lib/encoder.test.ts @@ -1,3 +1,17 @@ +/* + This file is part of @erc725/erc725.js. + @erc725/erc725.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + @erc725/erc725.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ + /* eslint-disable no-unused-expressions */ import { expect } from 'chai'; diff --git a/src/lib/encoder.ts b/src/lib/encoder.ts index 0949345a..6084c396 100644 --- a/src/lib/encoder.ts +++ b/src/lib/encoder.ts @@ -13,7 +13,10 @@ */ /** * @file lib/encoder.ts - * @author Robert McLeod <@robertdavid010>, Fabian Vogelsteller + * @author Robert McLeod <@robertdavid010> + * @author Fabian Vogelsteller + * @author Hugo Masclet <@Hugoo> + * @author Callum Grindle <@CallumGrindle> * @date 2020 */ diff --git a/src/lib/getDataFromExternalSources.test.ts b/src/lib/getDataFromExternalSources.test.ts index b354c99c..c8cd7659 100644 --- a/src/lib/getDataFromExternalSources.test.ts +++ b/src/lib/getDataFromExternalSources.test.ts @@ -1,3 +1,17 @@ +/* + This file is part of @erc725/erc725.js. + @erc725/erc725.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + @erc725/erc725.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ + /* eslint-disable no-unused-expressions */ import { expect } from 'chai'; diff --git a/src/lib/getDataFromExternalSources.ts b/src/lib/getDataFromExternalSources.ts index 91217edf..da0c75c1 100644 --- a/src/lib/getDataFromExternalSources.ts +++ b/src/lib/getDataFromExternalSources.ts @@ -1,3 +1,24 @@ +/* + This file is part of @erc725/erc725.js. + @erc725/erc725.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + @erc725/erc725.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with @erc725/erc725.js. If not, see . +*/ +/** + * @file lib/getDataFromExternalSources.ts + * @author Hugo Masclet <@Hugoo> + * @author Callum Grindle <@CallumGrindle> + * @author Reto Ryter <@rryter> + * @date 2021 + */ + import { DecodeDataOutput, GetDataExternalSourcesOutput, diff --git a/src/lib/getSchemaElement.test.ts b/src/lib/getSchemaElement.test.ts index be10add0..c038d8f3 100644 --- a/src/lib/getSchemaElement.test.ts +++ b/src/lib/getSchemaElement.test.ts @@ -1,3 +1,17 @@ +/* + This file is part of @erc725/erc725.js. + @erc725/erc725.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + @erc725/erc725.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ + import assert from 'assert'; import { ERC725JSONSchema } from '../types/ERC725JSONSchema'; diff --git a/src/lib/getSchemaElement.ts b/src/lib/getSchemaElement.ts index da054f1f..139f70d1 100644 --- a/src/lib/getSchemaElement.ts +++ b/src/lib/getSchemaElement.ts @@ -1,3 +1,22 @@ +/* + This file is part of @erc725/erc725.js. + @erc725/erc725.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + @erc725/erc725.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with @erc725/erc725.js. If not, see . +*/ +/** + * @file lib/getSchemaElement.ts + * @author Hugo Masclet <@Hugoo> + * @date 2021 + */ + import { isHex, isHexStrict } from 'web3-utils'; import { DynamicKeyParts } from '../types/dynamicKeys'; import { ERC725JSONSchema } from '../types/ERC725JSONSchema'; diff --git a/src/lib/provider-wrapper-utils.ts b/src/lib/provider-wrapper-utils.ts index 4a89b29a..82ca8a9c 100644 --- a/src/lib/provider-wrapper-utils.ts +++ b/src/lib/provider-wrapper-utils.ts @@ -1,3 +1,17 @@ +/* + This file is part of @erc725/erc725.js. + @erc725/erc725.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + @erc725/erc725.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with @erc725/erc725.js. If not, see . +*/ + import * as abi from 'web3-eth-abi'; import { JsonRpc } from '../types/JsonRpc'; diff --git a/src/lib/schemaParser.test.ts b/src/lib/schemaParser.test.ts index e91214ed..8731f547 100644 --- a/src/lib/schemaParser.test.ts +++ b/src/lib/schemaParser.test.ts @@ -1,3 +1,17 @@ +/* + This file is part of @erc725/erc725.js. + @erc725/erc725.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + @erc725/erc725.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ + import assert from 'assert'; import { ERC725JSONSchema } from '../types/ERC725JSONSchema'; diff --git a/src/lib/schemaParser.ts b/src/lib/schemaParser.ts index 4543cfc7..b38a0f7b 100644 --- a/src/lib/schemaParser.ts +++ b/src/lib/schemaParser.ts @@ -1,5 +1,18 @@ +/* + This file is part of @erc725/erc725.js. + @erc725/erc725.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + @erc725/erc725.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with @erc725/erc725.js. If not, see . +*/ /** - * @file schemaParser.ts + * @file lib/schemaParser.ts * @author Hugo Masclet <@Hugoo> * @date 2022 */ diff --git a/src/lib/utils.test.ts b/src/lib/utils.test.ts index e3b57a34..d1ae4a26 100644 --- a/src/lib/utils.test.ts +++ b/src/lib/utils.test.ts @@ -1,3 +1,17 @@ +/* + This file is part of @erc725/erc725.js. + @erc725/erc725.js is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + @erc725/erc725.js is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public License + along with web3.js. If not, see . +*/ + /* eslint-disable no-unused-expressions */ import { expect } from 'chai'; diff --git a/src/lib/utils.ts b/src/lib/utils.ts index aff24546..6026d107 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -13,7 +13,9 @@ */ /** * @file lib/utils.ts - * @author Robert McLeod <@robertdavid010>, Fabian Vogelsteller + * @author Robert McLeod <@robertdavid010> + * @author Fabian Vogelsteller + * @author Hugo Masclet <@Hugoo> * @date 2020 */