@lukso/lsp-smart-contracts 0.14.0 → 0.15.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -192
- package/artifacts/LSP0ERC725Account.json +3 -3
- package/artifacts/LSP0ERC725AccountInit.json +3 -3
- package/artifacts/LSP11BasicSocialRecovery.json +2 -2
- package/artifacts/LSP11BasicSocialRecoveryInit.json +2 -2
- package/artifacts/LSP1UniversalReceiverDelegateUP.json +3 -3
- package/artifacts/LSP1UniversalReceiverDelegateVault.json +3 -3
- package/artifacts/LSP23LinkedContractsFactory.json +3 -3
- package/artifacts/LSP4DigitalAssetMetadata.json +1 -1
- package/artifacts/LSP4DigitalAssetMetadataInitAbstract.json +1 -1
- package/artifacts/LSP6KeyManager.json +3 -3
- package/artifacts/LSP6KeyManagerInit.json +3 -3
- package/artifacts/LSP7CappedSupply.json +53 -6
- package/artifacts/LSP7CappedSupplyInitAbstract.json +53 -6
- package/artifacts/LSP7DigitalAsset.json +52 -5
- package/artifacts/LSP7DigitalAssetInitAbstract.json +52 -5
- package/artifacts/LSP7Mintable.json +54 -7
- package/artifacts/LSP7MintableInit.json +54 -7
- package/artifacts/LSP8CappedSupply.json +43 -6
- package/artifacts/LSP8CappedSupplyInitAbstract.json +43 -6
- package/artifacts/LSP8IdentifiableDigitalAsset.json +43 -6
- package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +43 -6
- package/artifacts/LSP8Mintable.json +45 -8
- package/artifacts/LSP8MintableInit.json +45 -8
- package/artifacts/LSP9Vault.json +3 -3
- package/artifacts/LSP9VaultInit.json +3 -3
- package/artifacts/UniversalProfile.json +3 -3
- package/artifacts/UniversalProfileInit.json +3 -3
- package/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol +1 -17
- package/contracts/LSP0ERC725Account/LSP0Constants.sol +1 -23
- package/contracts/LSP0ERC725Account/LSP0ERC725Account.sol +1 -53
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +1 -873
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInit.sol +1 -47
- package/contracts/LSP0ERC725Account/LSP0ERC725AccountInitAbstract.sol +1 -49
- package/contracts/LSP10ReceivedVaults/LSP10Constants.sol +1 -7
- package/contracts/LSP10ReceivedVaults/LSP10Utils.sol +1 -208
- package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryCore.sol +4 -2
- package/contracts/LSP12IssuedAssets/LSP12Constants.sol +4 -0
- package/contracts/LSP14Ownable2Step/ILSP14Ownable2Step.sol +1 -75
- package/contracts/LSP14Ownable2Step/LSP14Constants.sol +1 -12
- package/contracts/LSP14Ownable2Step/LSP14Errors.sol +1 -29
- package/contracts/LSP14Ownable2Step/LSP14Ownable2Step.sol +1 -212
- package/contracts/LSP16UniversalFactory/LSP16UniversalFactory.sol +1 -417
- package/contracts/LSP17ContractExtension/LSP17Constants.sol +1 -14
- package/contracts/LSP17ContractExtension/LSP17Errors.sol +1 -14
- package/contracts/LSP17ContractExtension/LSP17Extendable.sol +1 -117
- package/contracts/LSP17ContractExtension/LSP17Extension.sol +1 -55
- package/contracts/LSP17ContractExtension/LSP17Utils.sol +1 -16
- package/contracts/LSP17Extensions/Extension4337.sol +1 -123
- package/contracts/LSP17Extensions/OnERC721ReceivedExtension.sol +1 -13
- package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiver.sol +1 -37
- package/contracts/LSP1UniversalReceiver/ILSP1UniversalReceiverDelegate.sol +1 -21
- package/contracts/LSP1UniversalReceiver/LSP1Constants.sol +1 -11
- package/contracts/LSP1UniversalReceiver/LSP1Errors.sol +1 -7
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP/LSP1UniversalReceiverDelegateUP.sol +1 -292
- package/contracts/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault/LSP1UniversalReceiverDelegateVault.sol +1 -217
- package/contracts/LSP1UniversalReceiver/LSP1Utils.sol +1 -84
- package/contracts/LSP20CallVerification/ILSP20CallVerifier.sol +1 -36
- package/contracts/LSP20CallVerification/LSP20CallVerification.sol +1 -117
- package/contracts/LSP20CallVerification/LSP20Constants.sol +1 -14
- package/contracts/LSP20CallVerification/LSP20Errors.sol +1 -18
- package/contracts/LSP23LinkedContractsFactory/ILSP23LinkedContractsFactory.sol +1 -189
- package/contracts/LSP23LinkedContractsFactory/IPostDeploymentModule.sol +1 -15
- package/contracts/LSP23LinkedContractsFactory/LSP23Errors.sol +1 -21
- package/contracts/LSP23LinkedContractsFactory/LSP23LinkedContractsFactory.sol +1 -393
- package/contracts/LSP23LinkedContractsFactory/modules/README.md +23 -0
- package/contracts/LSP23LinkedContractsFactory/modules/UniversalProfileInitPostDeploymentModule.sol +1 -60
- package/contracts/LSP23LinkedContractsFactory/modules/UniversalProfilePostDeploymentModule.sol +1 -58
- package/contracts/LSP25ExecuteRelayCall/ILSP25ExecuteRelayCall.sol +1 -65
- package/contracts/LSP25ExecuteRelayCall/LSP25Constants.sol +1 -5
- package/contracts/LSP25ExecuteRelayCall/LSP25Errors.sol +1 -14
- package/contracts/LSP25ExecuteRelayCall/LSP25MultiChannelNonce.sol +1 -141
- package/contracts/LSP2ERC725YJSONSchema/LSP2Utils.sol +1 -445
- package/contracts/LSP3ProfileMetadata/LSP3Constants.sol +1 -8
- package/contracts/LSP4DigitalAssetMetadata/LSP4Constants.sol +1 -30
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadata.sol +1 -59
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataCore.sol +1 -44
- package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataInitAbstract.sol +1 -65
- package/contracts/LSP4DigitalAssetMetadata/LSP4Errors.sol +1 -20
- package/contracts/LSP5ReceivedAssets/LSP5Constants.sol +1 -7
- package/contracts/LSP5ReceivedAssets/LSP5Utils.sol +1 -206
- package/contracts/LSP6KeyManager/ILSP6KeyManager.sol +1 -60
- package/contracts/LSP6KeyManager/LSP6Constants.sol +1 -61
- package/contracts/LSP6KeyManager/LSP6Errors.sol +1 -222
- package/contracts/LSP6KeyManager/LSP6KeyManager.sol +1 -23
- package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +1 -694
- package/contracts/LSP6KeyManager/LSP6KeyManagerInit.sol +1 -29
- package/contracts/LSP6KeyManager/LSP6KeyManagerInitAbstract.sol +1 -21
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +1 -411
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteRelayCallModule.sol +1 -24
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6OwnershipModule.sol +1 -27
- package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +1 -848
- package/contracts/LSP6KeyManager/LSP6Utils.sol +1 -293
- package/contracts/LSP7DigitalAsset/ILSP7DigitalAsset.sol +1 -302
- package/contracts/LSP7DigitalAsset/LSP7Constants.sol +1 -13
- package/contracts/LSP7DigitalAsset/LSP7DigitalAsset.sol +1 -193
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetCore.sol +1 -728
- package/contracts/LSP7DigitalAsset/LSP7DigitalAssetInitAbstract.sol +1 -189
- package/contracts/LSP7DigitalAsset/LSP7Errors.sol +1 -87
- package/contracts/LSP7DigitalAsset/extensions/LSP7Burnable.sol +1 -23
- package/contracts/LSP7DigitalAsset/extensions/LSP7BurnableInitAbstract.sol +1 -24
- package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupply.sol +1 -80
- package/contracts/LSP7DigitalAsset/extensions/LSP7CappedSupplyInitAbstract.sol +1 -83
- package/contracts/LSP7DigitalAsset/presets/ILSP7Mintable.sol +1 -29
- package/contracts/LSP7DigitalAsset/presets/LSP7Mintable.sol +1 -50
- package/contracts/LSP7DigitalAsset/presets/LSP7MintableInit.sol +1 -41
- package/contracts/LSP7DigitalAsset/presets/LSP7MintableInitAbstract.sol +1 -54
- package/contracts/LSP8IdentifiableDigitalAsset/ILSP8IdentifiableDigitalAsset.sol +1 -325
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Constants.sol +1 -38
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8Errors.sol +1 -102
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.sol +1 -236
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +1 -787
- package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetInitAbstract.sol +1 -243
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Burnable.sol +1 -27
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8BurnableInitAbstract.sol +1 -21
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupply.sol +1 -82
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CappedSupplyInitAbstract.sol +1 -85
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Enumerable.sol +1 -66
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8EnumerableInitAbstract.sol +1 -61
- package/contracts/LSP8IdentifiableDigitalAsset/presets/ILSP8Mintable.sol +1 -30
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8Mintable.sol +1 -57
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInit.sol +1 -40
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8MintableInitAbstract.sol +1 -59
- package/contracts/LSP9Vault/ILSP9Vault.sol +1 -16
- package/contracts/LSP9Vault/LSP9Constants.sol +1 -26
- package/contracts/LSP9Vault/LSP9Errors.sol +1 -6
- package/contracts/LSP9Vault/LSP9Vault.sol +1 -63
- package/contracts/LSP9Vault/LSP9VaultCore.sol +1 -684
- package/contracts/LSP9Vault/LSP9VaultInit.sol +1 -33
- package/contracts/LSP9Vault/LSP9VaultInitAbstract.sol +1 -65
- package/contracts/UniversalProfile.sol +1 -37
- package/contracts/UniversalProfileInit.sol +1 -39
- package/contracts/UniversalProfileInitAbstract.sol +1 -44
- package/dist/constants.cjs +75 -0
- package/dist/constants.d.cts +121 -0
- package/dist/constants.d.mts +121 -0
- package/dist/constants.d.ts +107 -40105
- package/dist/constants.mjs +70 -0
- package/package.json +58 -116
- package/types/@lukso/lsp0-contracts/contracts/LSP0ERC725Account.ts +694 -0
- package/types/@lukso/lsp0-contracts/contracts/LSP0ERC725AccountInit.ts +740 -0
- package/types/@lukso/lsp1delegate-contracts/contracts/LSP1UniversalReceiverDelegateUP.ts +139 -0
- package/types/@lukso/lsp1delegate-contracts/contracts/LSP1UniversalReceiverDelegateVault.ts +139 -0
- package/types/@lukso/lsp23-contracts/contracts/LSP23LinkedContractsFactory.ts +448 -0
- package/types/@lukso/lsp4-contracts/contracts/LSP4DigitalAssetMetadata.ts +274 -0
- package/types/@lukso/lsp4-contracts/contracts/LSP4DigitalAssetMetadataInitAbstract.ts +309 -0
- package/types/@lukso/lsp6-contracts/contracts/LSP6KeyManager.ts +355 -0
- package/types/@lukso/lsp6-contracts/contracts/LSP6KeyManagerInit.ts +398 -0
- package/types/@lukso/lsp7-contracts/contracts/LSP7DigitalAsset.ts +698 -0
- package/types/@lukso/lsp7-contracts/contracts/LSP7DigitalAssetInitAbstract.ts +729 -0
- package/types/@lukso/lsp7-contracts/contracts/extensions/LSP7CappedSupply.ts +712 -0
- package/types/@lukso/lsp7-contracts/contracts/extensions/LSP7CappedSupplyInitAbstract.ts +743 -0
- package/types/@lukso/lsp7-contracts/contracts/presets/LSP7Mintable.ts +717 -0
- package/types/@lukso/lsp7-contracts/contracts/presets/LSP7MintableInit.ts +779 -0
- package/types/@lukso/lsp8-contracts/contracts/LSP8IdentifiableDigitalAsset.ts +778 -0
- package/types/@lukso/lsp8-contracts/contracts/LSP8IdentifiableDigitalAssetInitAbstract.ts +813 -0
- package/types/@lukso/lsp8-contracts/contracts/extensions/LSP8CappedSupply.ts +792 -0
- package/types/@lukso/lsp8-contracts/contracts/extensions/LSP8CappedSupplyInitAbstract.ts +824 -0
- package/types/@lukso/lsp8-contracts/contracts/presets/LSP8Mintable.ts +797 -0
- package/types/@lukso/lsp8-contracts/contracts/presets/LSP8MintableInit.ts +860 -0
- package/types/@lukso/lsp9-contracts/contracts/LSP9Vault.ts +672 -0
- package/types/@lukso/lsp9-contracts/contracts/LSP9VaultInit.ts +714 -0
- package/types/@lukso/universalprofile-contracts/contracts/UniversalProfile.ts +694 -0
- package/types/@lukso/universalprofile-contracts/contracts/UniversalProfileInit.ts +740 -0
- package/types/common.ts +131 -0
- package/types/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecovery.ts +596 -0
- package/types/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInit.ts +646 -0
- package/types/index.ts +18446 -0
- package/LICENSE +0 -201
- package/artifacts/Create2Factory.json +0 -107
- package/artifacts/LSP16UniversalFactory.json +0 -271
- package/artifacts/LSP7CompatibleERC20.json +0 -935
- package/artifacts/LSP7CompatibleERC20InitAbstract.json +0 -948
- package/artifacts/LSP7CompatibleERC20Mintable.json +0 -989
- package/artifacts/LSP7CompatibleERC20MintableInit.json +0 -1009
- package/artifacts/LSP8CompatibleERC721.json +0 -1191
- package/artifacts/LSP8CompatibleERC721InitAbstract.json +0 -1204
- package/artifacts/LSP8CompatibleERC721Mintable.json +0 -1261
- package/artifacts/LSP8CompatibleERC721MintableInit.json +0 -1281
- package/artifacts/UniversalReceiverAddressStore.json +0 -209
- package/contracts/Factories/Create2Factory.sol +0 -88
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20.sol +0 -260
- package/contracts/LSP7DigitalAsset/extensions/LSP7CompatibleERC20InitAbstract.sol +0 -273
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20Mintable.sol +0 -37
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInit.sol +0 -44
- package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInitAbstract.sol +0 -43
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +0 -512
- package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +0 -514
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721Mintable.sol +0 -54
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInit.sol +0 -47
- package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInitAbstract.sol +0 -52
- package/contracts/Legacy/Registries/AddressRegistry.sol +0 -52
- package/contracts/Legacy/Registries/AddressRegistryRequiresERC725.sol +0 -37
- package/contracts/Legacy/UniversalReceiverAddressStore.sol +0 -64
- package/contracts/Version.sol +0 -17
- package/devdocs/Create2Factory.json +0 -16
- package/devdocs/LSP0ERC725Account.json +0 -260
- package/devdocs/LSP0ERC725AccountInit.json +0 -263
- package/devdocs/LSP11BasicSocialRecovery.json +0 -159
- package/devdocs/LSP11BasicSocialRecoveryInit.json +0 -159
- package/devdocs/LSP16UniversalFactory.json +0 -116
- package/devdocs/LSP1UniversalReceiverDelegateUP.json +0 -34
- package/devdocs/LSP1UniversalReceiverDelegateVault.json +0 -33
- package/devdocs/LSP23LinkedContractsFactory.json +0 -81
- package/devdocs/LSP4DigitalAssetMetadata.json +0 -112
- package/devdocs/LSP4DigitalAssetMetadataInitAbstract.json +0 -104
- package/devdocs/LSP6KeyManager.json +0 -305
- package/devdocs/LSP6KeyManagerInit.json +0 -308
- package/devdocs/LSP7CappedSupply.json +0 -306
- package/devdocs/LSP7CappedSupplyInitAbstract.json +0 -299
- package/devdocs/LSP7CompatibleERC20.json +0 -346
- package/devdocs/LSP7CompatibleERC20InitAbstract.json +0 -338
- package/devdocs/LSP7CompatibleERC20Mintable.json +0 -349
- package/devdocs/LSP7CompatibleERC20MintableInit.json +0 -352
- package/devdocs/LSP7DigitalAsset.json +0 -294
- package/devdocs/LSP7DigitalAssetInitAbstract.json +0 -285
- package/devdocs/LSP7Mintable.json +0 -296
- package/devdocs/LSP7MintableInit.json +0 -298
- package/devdocs/LSP8CappedSupply.json +0 -356
- package/devdocs/LSP8CappedSupplyInitAbstract.json +0 -349
- package/devdocs/LSP8CompatibleERC721.json +0 -437
- package/devdocs/LSP8CompatibleERC721InitAbstract.json +0 -428
- package/devdocs/LSP8CompatibleERC721Mintable.json +0 -446
- package/devdocs/LSP8CompatibleERC721MintableInit.json +0 -449
- package/devdocs/LSP8IdentifiableDigitalAsset.json +0 -346
- package/devdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +0 -335
- package/devdocs/LSP8Mintable.json +0 -356
- package/devdocs/LSP8MintableInit.json +0 -359
- package/devdocs/LSP9Vault.json +0 -236
- package/devdocs/LSP9VaultInit.json +0 -239
- package/devdocs/UniversalProfile.json +0 -260
- package/devdocs/UniversalProfileInit.json +0 -263
- package/devdocs/UniversalReceiverAddressStore.json +0 -9
- package/dist/constants.cjs.js +0 -40758
- package/dist/constants.es.js +0 -40737
- package/userdocs/Create2Factory.json +0 -5
- package/userdocs/LSP0ERC725Account.json +0 -91
- package/userdocs/LSP0ERC725AccountInit.json +0 -94
- package/userdocs/LSP11BasicSocialRecovery.json +0 -29
- package/userdocs/LSP11BasicSocialRecoveryInit.json +0 -29
- package/userdocs/LSP16UniversalFactory.json +0 -30
- package/userdocs/LSP1UniversalReceiverDelegateUP.json +0 -19
- package/userdocs/LSP1UniversalReceiverDelegateVault.json +0 -19
- package/userdocs/LSP23LinkedContractsFactory.json +0 -29
- package/userdocs/LSP4DigitalAssetMetadata.json +0 -26
- package/userdocs/LSP4DigitalAssetMetadataInitAbstract.json +0 -23
- package/userdocs/LSP6KeyManager.json +0 -154
- package/userdocs/LSP6KeyManagerInit.json +0 -157
- package/userdocs/LSP7CappedSupply.json +0 -60
- package/userdocs/LSP7CappedSupplyInitAbstract.json +0 -57
- package/userdocs/LSP7CompatibleERC20.json +0 -47
- package/userdocs/LSP7CompatibleERC20InitAbstract.json +0 -44
- package/userdocs/LSP7CompatibleERC20Mintable.json +0 -47
- package/userdocs/LSP7CompatibleERC20MintableInit.json +0 -47
- package/userdocs/LSP7DigitalAsset.json +0 -47
- package/userdocs/LSP7DigitalAssetInitAbstract.json +0 -44
- package/userdocs/LSP7Mintable.json +0 -47
- package/userdocs/LSP7MintableInit.json +0 -47
- package/userdocs/LSP8CappedSupply.json +0 -66
- package/userdocs/LSP8CappedSupplyInitAbstract.json +0 -63
- package/userdocs/LSP8CompatibleERC721.json +0 -80
- package/userdocs/LSP8CompatibleERC721InitAbstract.json +0 -77
- package/userdocs/LSP8CompatibleERC721Mintable.json +0 -83
- package/userdocs/LSP8CompatibleERC721MintableInit.json +0 -83
- package/userdocs/LSP8IdentifiableDigitalAsset.json +0 -53
- package/userdocs/LSP8IdentifiableDigitalAssetInitAbstract.json +0 -50
- package/userdocs/LSP8Mintable.json +0 -56
- package/userdocs/LSP8MintableInit.json +0 -56
- package/userdocs/LSP9Vault.json +0 -93
- package/userdocs/LSP9VaultInit.json +0 -93
- package/userdocs/UniversalProfile.json +0 -91
- package/userdocs/UniversalProfileInit.json +0 -94
- package/userdocs/UniversalReceiverAddressStore.json +0 -5
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"details": "Factory contract to deploy different types of contracts using the CREATE2 opcode standardized as LSP16 - UniversalFactory: https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-16-UniversalFactory.md The UniversalFactory will be deployed using Nick's Factory (0x4e59b44847b379578588920ca78fbf26c0b4956c) The deployed address can be found in the LSP16 specification. Please refer to the LSP16 Specification to obtain the exact bytecode and salt that should be used to produce the address of the UniversalFactory on different chains. This factory contract is designed to deploy contracts at the same address on multiple chains. The UniversalFactory can deploy 2 types of contracts: - non-initializable (normal deployment) - initializable (external call after deployment, e.g: proxy contracts) The `providedSalt` parameter given by the deployer is not used directly as the salt by the CREATE2 opcode. Instead, it is used along with these parameters: - `initializable` boolean - `initializeCalldata` (when the contract is initializable and `initializable` is set to `true`). These three parameters are concatenated together and hashed to generate the final salt for CREATE2. See {generateSalt} function for more details. The constructor and `initializeCalldata` SHOULD NOT include any network-specific parameters (e.g: chain-id, a local token contract address), otherwise the deployed contract will not be recreated at the same address across different networks, thus defeating the purpose of the UniversalFactory. One way to solve this problem is to set an EOA owner in the `initializeCalldata`/constructor that can later call functions that set these parameters as variables in the contract. The UniversalFactory must be deployed at the same address on different chains to successfully deploy contracts at the same address across different chains.",
|
|
3
|
-
"errors": {
|
|
4
|
-
"ContractInitializationFailed()": [
|
|
5
|
-
{
|
|
6
|
-
"details": "Reverts when there is no revert reason bubbled up by the created contract when initializing"
|
|
7
|
-
}
|
|
8
|
-
],
|
|
9
|
-
"InvalidValueSum()": [
|
|
10
|
-
{
|
|
11
|
-
"details": "Reverts when `msg.value` sent to {deployCreate2AndInitialize(..)} function is not equal to the sum of the `initializeCalldataMsgValue` and `constructorMsgValue`"
|
|
12
|
-
}
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
"events": {
|
|
16
|
-
"ContractCreated(address,bytes32,bytes32,bool,bytes)": {
|
|
17
|
-
"details": "Emitted whenever a contract is created.",
|
|
18
|
-
"params": {
|
|
19
|
-
"createdContract": "The address of the contract created.",
|
|
20
|
-
"generatedSalt": "The salt used by the `CREATE2` opcode for contract deployment.",
|
|
21
|
-
"initializeCalldata": "The bytes provided as initializeCalldata (Empty string when `initialized` is set to false).",
|
|
22
|
-
"initialized": "The Boolean that specifies if the contract must be initialized or not.",
|
|
23
|
-
"providedSalt": "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment."
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"kind": "dev",
|
|
28
|
-
"methods": {
|
|
29
|
-
"computeAddress(bytes32,bytes32,bool,bytes)": {
|
|
30
|
-
"details": "Computes the address of a contract to be deployed using CREATE2, based on the input parameters. Any change in one of these parameters will result in a different address. When the `initializable` boolean is set to `false`, `initializeCalldata` will not affect the function output.",
|
|
31
|
-
"params": {
|
|
32
|
-
"byteCodeHash": "The keccak256 hash of the bytecode to be deployed",
|
|
33
|
-
"initializable": "A boolean that indicates whether an external call should be made to initialize the contract after deployment",
|
|
34
|
-
"initializeCalldata": "The calldata to be executed on the created contract if `initializable` is set to `true`",
|
|
35
|
-
"providedSalt": "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
|
|
36
|
-
},
|
|
37
|
-
"returns": {
|
|
38
|
-
"_0": "The address where the contract will be deployed"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"computeERC1167Address(address,bytes32,bool,bytes)": {
|
|
42
|
-
"details": "Computes the address of an ERC1167 proxy contract based on the input parameters. Any change in one of these parameters will result in a different address. When the `initializable` boolean is set to `false`, `initializeCalldata` will not affect the function output.",
|
|
43
|
-
"params": {
|
|
44
|
-
"implementationContract": "The contract to create a clone of according to ERC1167",
|
|
45
|
-
"initializable": "A boolean that indicates whether an external call should be made to initialize the proxy contract after deployment",
|
|
46
|
-
"initializeCalldata": "The calldata to be executed on the created contract if `initializable` is set to `true`",
|
|
47
|
-
"providedSalt": "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
|
|
48
|
-
},
|
|
49
|
-
"returns": {
|
|
50
|
-
"_0": "The address where the ERC1167 proxy contract will be deployed"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"deployCreate2(bytes,bytes32)": {
|
|
54
|
-
"details": "Deploys a contract using the CREATE2 opcode. The address where the contract will be deployed can be known in advance via the {computeAddress} function. This function deploys contracts without initialization (external call after deployment). The `providedSalt` parameter is not used directly as the salt by the CREATE2 opcode. Instead, it is hashed with keccak256: `keccak256(abi.encodePacked(false, providedSalt))`. See {generateSalt} function for more details. Using the same `byteCode` and `providedSalt` multiple times will revert, as the contract cannot be deployed twice at the same address. If the constructor of the contract to deploy is payable, value can be sent to this function to fund the created contract. However, sending value to this function while the constructor is not payable will result in a revert.",
|
|
55
|
-
"params": {
|
|
56
|
-
"byteCode": "The bytecode of the contract to be deployed",
|
|
57
|
-
"providedSalt": "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
|
|
58
|
-
},
|
|
59
|
-
"returns": {
|
|
60
|
-
"_0": "The address of the deployed contract"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"deployCreate2AndInitialize(bytes,bytes32,bytes,uint256,uint256)": {
|
|
64
|
-
"details": "Deploys a contract using the CREATE2 opcode. The address where the contract will be deployed can be known in advance via the {computeAddress} function. This function deploys contracts with initialization (external call after deployment). The `providedSalt` parameter is not used directly as the salt by the CREATE2 opcode. Instead, it is hashed with keccak256: `keccak256(abi.encodePacked(true, initializeCalldata, providedSalt))`. See {generateSalt} function for more details. Using the same `byteCode`, `providedSalt` and `initializeCalldata` multiple times will revert, as the contract cannot be deployed twice at the same address. If the constructor or the initialize function of the contract to deploy is payable, value can be sent along with the deployment/initialization to fund the created contract. However, sending value to this function while the constructor/initialize function is not payable will result in a revert. Will revert if the `msg.value` sent to the function is not equal to the sum of `constructorMsgValue` and `initializeCalldataMsgValue`.",
|
|
65
|
-
"params": {
|
|
66
|
-
"byteCode": "The bytecode of the contract to be deployed",
|
|
67
|
-
"constructorMsgValue": "The value sent to the contract during deployment",
|
|
68
|
-
"initializeCalldata": "The calldata to be executed on the created contract",
|
|
69
|
-
"initializeCalldataMsgValue": "The value sent to the contract during initialization",
|
|
70
|
-
"providedSalt": "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
|
|
71
|
-
},
|
|
72
|
-
"returns": {
|
|
73
|
-
"_0": "The address of the deployed contract"
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
"deployERC1167Proxy(address,bytes32)": {
|
|
77
|
-
"details": "Deploys an ERC1167 minimal proxy contract using the CREATE2 opcode. The address where the contract will be deployed can be known in advance via the {computeERC1167Address} function. This function deploys contracts without initialization (external call after deployment). The `providedSalt` parameter is not used directly as the salt by the CREATE2 opcode. Instead, it is hashed with keccak256: `keccak256(abi.encodePacked(false, providedSalt))`. See {generateSalt} function for more details. See {generateSalt} function for more details. Using the same `implementationContract` and `providedSalt` multiple times will revert, as the contract cannot be deployed twice at the same address. Sending value to the contract created is not possible since the constructor of the ERC1167 minimal proxy is not payable.",
|
|
78
|
-
"params": {
|
|
79
|
-
"implementationContract": "The contract address to use as the base implementation behind the proxy that will be deployed",
|
|
80
|
-
"providedSalt": "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
|
|
81
|
-
},
|
|
82
|
-
"returns": {
|
|
83
|
-
"_0": "The address of the minimal proxy deployed"
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
"deployERC1167ProxyAndInitialize(address,bytes32,bytes)": {
|
|
87
|
-
"details": "Deploys an ERC1167 minimal proxy contract using the CREATE2 opcode. The address where the contract will be deployed can be known in advance via the {computeERC1167Address} function. This function deploys contracts with initialization (external call after deployment). The `providedSalt` parameter is not used directly as the salt by the CREATE2 opcode. Instead, it is hashed with keccak256: `keccak256(abi.encodePacked(true, initializeCalldata, providedSalt))`. See {generateSalt} function for more details. Using the same `implementationContract`, `providedSalt` and `initializeCalldata` multiple times will revert, as the contract cannot be deployed twice at the same address. If the initialize function of the contract to deploy is payable, value can be sent along to fund the created contract while initializing. However, sending value to this function while the initialize function is not payable will result in a revert.",
|
|
88
|
-
"params": {
|
|
89
|
-
"implementationContract": "The contract address to use as the base implementation behind the proxy that will be deployed",
|
|
90
|
-
"initializeCalldata": "The calldata to be executed on the created contract",
|
|
91
|
-
"providedSalt": "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
|
|
92
|
-
},
|
|
93
|
-
"returns": {
|
|
94
|
-
"_0": "The address of the minimal proxy deployed"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
"generateSalt(bytes32,bool,bytes)": {
|
|
98
|
-
"details": "Generates the salt used to deploy the contract by hashing the following parameters (concatenated together) with keccak256: 1. the `providedSalt` 2. the `initializable` boolean 3. the `initializeCalldata`, only if the contract is initializable (the `initializable` boolean is set to `true`) - The `providedSalt` parameter is not used directly as the salt by the CREATE2 opcode. Instead, it is used along with these parameters: 1. `initializable` boolean 2. `initializeCalldata` (when the contract is initializable and `initializable` is set to `true`). - This approach ensures that in order to reproduce an initializable contract at the same address on another chain, not only the `providedSalt` is required to be the same, but also the initialize parameters within the `initializeCalldata` must also be the same. This maintains consistent deployment behaviour. Users are required to initialize contracts with the same parameters across different chains to ensure contracts are deployed at the same address across different chains. 1. Example (for initializable contracts) - For an existing contract A on chain 1 owned by X, to replicate the same contract at the same address with the same owner X on chain 2, the salt used to generate the address should include the initializeCalldata that assigns X as the owner of contract A. - For instance, if another user, Y, tries to deploy the contract at the same address on chain 2 using the same providedSalt, but with a different initializeCalldata to make Y the owner instead of X, the generated address would be different, preventing Y from deploying the contract with different ownership at the same address. - However, for non-initializable contracts, if the constructor has arguments that specify the deployment behavior, they will be included in the bytecode. Any change in the constructor arguments will lead to a different contract's bytecode which will result in a different address on other chains. 2. Example (for non-initializable contracts) - If a contract is deployed with specific constructor arguments on chain 1, these arguments are embedded within the bytecode. For instance, if contract B is deployed with a specific `tokenName` and `tokenSymbol` on chain 1, and a user wants to deploy the same contract with the same `tokenName` and `tokenSymbol` on chain 2, they must use the same constructor arguments to produce the same bytecode. This ensures that the same deployment behaviour is maintained across different chains, as long as the same bytecode is used. - If another user Z, tries to deploy the same contract B at the same address on chain 2 using the same `providedSalt` but different constructor arguments (a different `tokenName` and/or `tokenSymbol`), the generated address will be different. This prevents user Z from deploying the contract with different constructor arguments at the same address on chain 2. - The providedSalt was hashed to produce the salt used by CREATE2 opcode to prevent users from deploying initializable contracts using non-initializable functions such as {deployCreate2} without having the initialization call. - In other words, if the providedSalt was not hashed and was used as it is as the salt by the CREATE2 opcode, malicious users can check the generated salt used for the already deployed initializable contract on chain 1, and deploy the contract from {deployCreate2} function on chain 2, with passing the generated salt of the deployed contract as providedSalt that will produce the same address but without the initialization, where the malicious user can initialize after.",
|
|
99
|
-
"params": {
|
|
100
|
-
"initializable": "The Boolean that specifies if the contract must be initialized or not",
|
|
101
|
-
"initializeCalldata": "The calldata to be executed on the created contract if `initializable` is set to `true`",
|
|
102
|
-
"providedSalt": "The salt provided by the deployer, which will be used to generate the final salt that will be used by the `CREATE2` opcode for contract deployment"
|
|
103
|
-
},
|
|
104
|
-
"returns": {
|
|
105
|
-
"_0": "The generated salt which will be used for CREATE2 deployment"
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
"stateVariables": {
|
|
110
|
-
"_EMPTY_BYTE": {
|
|
111
|
-
"details": "placeholder for the `initializeCallData` param when the `initializable` boolean is set to `false`."
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
"title": "LSP16 Universal Factory",
|
|
115
|
-
"version": 1
|
|
116
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"author": "Fabian Vogelsteller, Yamen Merhi, Jean Cavallera",
|
|
3
|
-
"details": "The {LSP1UniversalReceiverDelegateUP} follows the [LSP-1-UniversalReceiver] standard and is designed for [LSP-0-ERC725Account] contracts. The {LSP1UniversalReceiverDelegateUP} is a contract called by the {universalReceiver(...)} function of the [LSP-0-ERC725Account] contract that: - Writes the data keys representing assets received from type [LSP-7-DigitalAsset] and [LSP-8-IdentifiableDigitalAsset] into the account storage, and removes them when the balance is zero according to the [LSP-5-ReceivedAssets] Standard. - Writes the data keys representing the owned vaults from type [LSP-9-Vault] into your account storage, and removes them when transferring ownership to other accounts according to the [LSP-10-ReceivedVaults] Standard.",
|
|
4
|
-
"errors": {
|
|
5
|
-
"CannotRegisterEOAsAsAssets(address)": [
|
|
6
|
-
{
|
|
7
|
-
"details": "Reverts when EOA calls the {universalReceiver(..)} function with an asset/vault typeId.",
|
|
8
|
-
"params": {
|
|
9
|
-
"caller": "The address of the EOA"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
]
|
|
13
|
-
},
|
|
14
|
-
"kind": "dev",
|
|
15
|
-
"methods": {
|
|
16
|
-
"supportsInterface(bytes4)": {
|
|
17
|
-
"details": "See {IERC165-supportsInterface}."
|
|
18
|
-
},
|
|
19
|
-
"universalReceiverDelegate(address,uint256,bytes32,bytes)": {
|
|
20
|
-
"custom:info": "- If some issues occured with generating the `dataKeys` or `dataValues` the `returnedMessage` will be an error message, otherwise it will be empty. - If an error occured when trying to use `setDataBatch(dataKeys,dataValues)`, it will return the raw error data back to the caller.",
|
|
21
|
-
"custom:requirements": "- This contract should be allowed to use the {setDataBatch(...)} function in order to update the LSP5 and LSP10 Data Keys. - Cannot accept native tokens",
|
|
22
|
-
"custom:warning": "When the data stored in the ERC725Y storage of the LSP0 contract is corrupted (_e.g: ([LSP-5-ReceivedAssets]'s Array length not 16 bytes long, the token received is already registered in `LSP5ReceivetAssets[]`, the token being sent is not sent as full balance, etc...), the function call will still pass and return (**not revert!**) and not modify any data key on the storage of the [LSP-0-ERC725Account].",
|
|
23
|
-
"details": "1. Writes the data keys of the received [LSP-7-DigitalAsset], [LSP-8-IdentifiableDigitalAsset] and [LSP-9-Vault] contract addresses into the account storage according to the [LSP-5-ReceivedAssets] and [LSP-10-ReceivedVaults] Standard. 2. The data keys representing an asset/vault are cleared when the asset/vault is no longer owned by the account.",
|
|
24
|
-
"params": {
|
|
25
|
-
"typeId": "Unique identifier for a specific notification."
|
|
26
|
-
},
|
|
27
|
-
"returns": {
|
|
28
|
-
"_0": "The result of the reaction for `typeId`."
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"title": "Implementation of a UniversalReceiverDelegate for the [LSP-0-ERC725Account]",
|
|
33
|
-
"version": 1
|
|
34
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"author": "Fabian Vogelsteller, Yamen Merhi, Jean Cavallera",
|
|
3
|
-
"details": "The {LSP1UniversalReceiverDelegateVault} follows the [LSP-1-UniversalReceiver] standard and is designed for [LSP9Vault] contracts. The {LSP1UniversalReceiverDelegateVault} is a contract called by the {universalReceiver(...)} function of the [LSP-9-Vault] contract that: - Writes the data keys representing assets received from type [LSP-7-DigitalAsset] and [LSP-8-IdentifiableDigitalAsset] into the account storage, and removes them when the balance is zero according to the [LSP-5-ReceivedAssets] Standard.",
|
|
4
|
-
"errors": {
|
|
5
|
-
"CannotRegisterEOAsAsAssets(address)": [
|
|
6
|
-
{
|
|
7
|
-
"details": "Reverts when EOA calls the {universalReceiver(..)} function with an asset/vault typeId.",
|
|
8
|
-
"params": {
|
|
9
|
-
"caller": "The address of the EOA"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
]
|
|
13
|
-
},
|
|
14
|
-
"kind": "dev",
|
|
15
|
-
"methods": {
|
|
16
|
-
"supportsInterface(bytes4)": {
|
|
17
|
-
"details": "See {IERC165-supportsInterface}."
|
|
18
|
-
},
|
|
19
|
-
"universalReceiverDelegate(address,uint256,bytes32,bytes)": {
|
|
20
|
-
"custom:info": "- If some issues occured with generating the `dataKeys` or `dataValues` the `returnedMessage` will be an error message, otherwise it will be empty. - If an error occured when trying to use `setDataBatch(dataKeys,dataValues)`, it will return the raw error data back to the caller.",
|
|
21
|
-
"custom:requirements": "Cannot accept native tokens.",
|
|
22
|
-
"details": "Handles two cases: Writes the received [LSP-7-DigitalAsset] or [LSP-8-IdentifiableDigitalAsset] assets into the vault storage according to the [LSP-5-ReceivedAssets] standard.",
|
|
23
|
-
"params": {
|
|
24
|
-
"typeId": "Unique identifier for a specific notification."
|
|
25
|
-
},
|
|
26
|
-
"returns": {
|
|
27
|
-
"_0": "The result of the reaction for `typeId`."
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"title": "Implementation of a UniversalReceiverDelegate for the [LSP9Vault]",
|
|
32
|
-
"version": 1
|
|
33
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"errors": {
|
|
3
|
-
"InvalidValueSum()": [
|
|
4
|
-
{
|
|
5
|
-
"details": "Reverts when the `msg.value` sent is not equal to the sum of value used for the deployment of the contract & its owner contract."
|
|
6
|
-
}
|
|
7
|
-
],
|
|
8
|
-
"PrimaryContractProxyInitFailureError(bytes)": [
|
|
9
|
-
{
|
|
10
|
-
"details": "Reverts when the deployment & intialization of the contract has failed.",
|
|
11
|
-
"params": {
|
|
12
|
-
"errorData": "Potentially information about why the deployment & intialization have failed."
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
],
|
|
16
|
-
"SecondaryContractProxyInitFailureError(bytes)": [
|
|
17
|
-
{
|
|
18
|
-
"details": "Reverts when the deployment & intialization of the secondary contract has failed.",
|
|
19
|
-
"params": {
|
|
20
|
-
"errorData": "Potentially information about why the deployment & intialization have failed."
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
},
|
|
25
|
-
"kind": "dev",
|
|
26
|
-
"methods": {
|
|
27
|
-
"computeAddresses((bytes32,uint256,bytes),(uint256,bytes,bool,bytes),address,bytes)": {
|
|
28
|
-
"details": "Computes the addresses of a primary contract and a secondary linked contract",
|
|
29
|
-
"params": {
|
|
30
|
-
"postDeploymentModule": "The optional module to be executed after deployment",
|
|
31
|
-
"postDeploymentModuleCalldata": "The data to be passed to the post deployment module",
|
|
32
|
-
"primaryContractDeployment": "Contains the needed parameter to deploy the primary contract. (`salt`, `fundingAmount`, `creationBytecode`)",
|
|
33
|
-
"secondaryContractDeployment": "Contains the needed parameter to deploy the secondary contract. (`fundingAmount`, `creationBytecode`, `addPrimaryContractAddress`, `extraConstructorParams`)"
|
|
34
|
-
},
|
|
35
|
-
"returns": {
|
|
36
|
-
"primaryContractAddress": "The address of the deployed primary contract.",
|
|
37
|
-
"secondaryContractAddress": "The address of the deployed secondary contract."
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"computeERC1167Addresses((bytes32,uint256,address,bytes),(uint256,address,bytes,bool,bytes),address,bytes)": {
|
|
41
|
-
"details": "Computes the addresses of a primary and a secondary linked contracts ERC1167 proxies to be created",
|
|
42
|
-
"params": {
|
|
43
|
-
"postDeploymentModule": "The optional module to be executed after deployment.",
|
|
44
|
-
"postDeploymentModuleCalldata": "The data to be passed to the post deployment module.",
|
|
45
|
-
"primaryContractDeploymentInit": "Contains the needed parameters to deploy a primary proxy contract. (`salt`, `fundingAmount`, `implementationContract`, `initializationCalldata`)",
|
|
46
|
-
"secondaryContractDeploymentInit": "Contains the needed parameters to deploy the secondary proxy contract. (`fundingAmount`, `implementationContract`, `initializationCalldata`, `addPrimaryContractAddress`, `extraInitializationParams`)"
|
|
47
|
-
},
|
|
48
|
-
"returns": {
|
|
49
|
-
"primaryContractAddress": "The address of the deployed primary contract proxy",
|
|
50
|
-
"secondaryContractAddress": "The address of the deployed secondary contract proxy"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"deployContracts((bytes32,uint256,bytes),(uint256,bytes,bool,bytes),address,bytes)": {
|
|
54
|
-
"details": "Deploys a primary and a secondary linked contract.",
|
|
55
|
-
"params": {
|
|
56
|
-
"postDeploymentModule": "The optional module to be executed after deployment",
|
|
57
|
-
"postDeploymentModuleCalldata": "The data to be passed to the post deployment module",
|
|
58
|
-
"primaryContractDeployment": "Contains the needed parameter to deploy a contract. (`salt`, `fundingAmount`, `creationBytecode`)",
|
|
59
|
-
"secondaryContractDeployment": "Contains the needed parameter to deploy the secondary contract. (`fundingAmount`, `creationBytecode`, `addPrimaryContractAddress`, `extraConstructorParams`)"
|
|
60
|
-
},
|
|
61
|
-
"returns": {
|
|
62
|
-
"primaryContractAddress": "The address of the primary contract.",
|
|
63
|
-
"secondaryContractAddress": "The address of the secondary contract."
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
"deployERC1167Proxies((bytes32,uint256,address,bytes),(uint256,address,bytes,bool,bytes),address,bytes)": {
|
|
67
|
-
"details": "Deploys ERC1167 proxies of a primary contract and a secondary linked contract",
|
|
68
|
-
"params": {
|
|
69
|
-
"postDeploymentModule": "The optional module to be executed after deployment.",
|
|
70
|
-
"postDeploymentModuleCalldata": "The data to be passed to the post deployment module.",
|
|
71
|
-
"primaryContractDeploymentInit": "Contains the needed parameters to deploy a proxy contract. (`salt`, `fundingAmount`, `implementationContract`, `initializationCalldata`)",
|
|
72
|
-
"secondaryContractDeploymentInit": "Contains the needed parameters to deploy the secondary proxy contract. (`fundingAmount`, `implementationContract`, `initializationCalldata`, `addPrimaryContractAddress`, `extraInitializationParams`)"
|
|
73
|
-
},
|
|
74
|
-
"returns": {
|
|
75
|
-
"primaryContractAddress": "The address of the deployed primary contract proxy",
|
|
76
|
-
"secondaryContractAddress": "The address of the deployed secondary contract proxy"
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"version": 1
|
|
81
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"author": "Matthew Stevens",
|
|
3
|
-
"details": "Standard Implementation of the LSP4 standard.",
|
|
4
|
-
"errors": {
|
|
5
|
-
"ERC725Y_DataKeysValuesEmptyArray()": [
|
|
6
|
-
{
|
|
7
|
-
"details": "Reverts when one of the array parameter provided to {setDataBatch} function is an empty array."
|
|
8
|
-
}
|
|
9
|
-
],
|
|
10
|
-
"ERC725Y_DataKeysValuesLengthMismatch()": [
|
|
11
|
-
{
|
|
12
|
-
"details": "Reverts when there is not the same number of elements in the `datakeys` and `dataValues` array parameters provided when calling the {setDataBatch} function."
|
|
13
|
-
}
|
|
14
|
-
],
|
|
15
|
-
"ERC725Y_MsgValueDisallowed()": [
|
|
16
|
-
{
|
|
17
|
-
"details": "Reverts when sending value to the {setData} or {setDataBatch} function."
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"LSP4TokenNameNotEditable()": [
|
|
21
|
-
{
|
|
22
|
-
"details": "Reverts when trying to edit the data key `LSP4TokenName` after the digital asset contract has been deployed / initialized. The `LSP4TokenName` data key is located inside the ERC725Y data key-value store of the digital asset contract. It can be set only once inside the constructor/initializer when the digital asset contract is being deployed / initialized."
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
"LSP4TokenSymbolNotEditable()": [
|
|
26
|
-
{
|
|
27
|
-
"details": "Reverts when trying to edit the data key `LSP4TokenSymbol` after the digital asset contract has been deployed / initialized. The `LSP4TokenSymbol` data key is located inside the ERC725Y data key-value store of the digital asset contract. It can be set only once inside the constructor/initializer when the digital asset contract is being deployed / initialized."
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
"LSP4TokenTypeNotEditable()": [
|
|
31
|
-
{
|
|
32
|
-
"details": "Reverts when trying to edit the data key `LSP4TokenType` after the digital asset contract has been deployed / initialized. The `LSP4TokenType` data key is located inside the ERC725Y data key-value store of the digital asset contract. It can be set only once inside the constructor / initializer when the digital asset contract is being deployed / initialized."
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
"OwnableCallerNotTheOwner(address)": [
|
|
36
|
-
{
|
|
37
|
-
"details": "Reverts when only the owner is allowed to call the function.",
|
|
38
|
-
"params": {
|
|
39
|
-
"callerAddress": "The address that tried to make the call."
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
"OwnableCannotSetZeroAddressAsOwner()": [
|
|
44
|
-
{
|
|
45
|
-
"details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
},
|
|
49
|
-
"kind": "dev",
|
|
50
|
-
"methods": {
|
|
51
|
-
"constructor": {
|
|
52
|
-
"params": {
|
|
53
|
-
"initialOwner_": "The owner of the token contract.",
|
|
54
|
-
"lsp4TokenType_": "The type of token this digital asset contract represents (`0` = Token, `1` = NFT, `2` = Collection).",
|
|
55
|
-
"name_": "The name of the token.",
|
|
56
|
-
"symbol_": "The symbol of the token."
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"getData(bytes32)": {
|
|
60
|
-
"details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
|
|
61
|
-
"params": {
|
|
62
|
-
"dataKey": "The data key for which to retrieve the value."
|
|
63
|
-
},
|
|
64
|
-
"returns": {
|
|
65
|
-
"dataValue": "The bytes value stored under the specified data key."
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"getDataBatch(bytes32[])": {
|
|
69
|
-
"details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
|
|
70
|
-
"params": {
|
|
71
|
-
"dataKeys": "The array of keys which values to retrieve"
|
|
72
|
-
},
|
|
73
|
-
"returns": {
|
|
74
|
-
"dataValues": "The array of data stored at multiple keys"
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"owner()": {
|
|
78
|
-
"details": "Returns the address of the current owner."
|
|
79
|
-
},
|
|
80
|
-
"renounceOwnership()": {
|
|
81
|
-
"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
|
|
82
|
-
},
|
|
83
|
-
"setData(bytes32,bytes)": {
|
|
84
|
-
"custom:events": "{DataChanged} event.",
|
|
85
|
-
"custom:requirements": "- SHOULD only be callable by the {owner}.",
|
|
86
|
-
"custom:warning": "**Note for developers:** despite the fact that this function is set as `payable`, if the function is not intended to receive value (= native tokens), **an additional check should be implemented to ensure that `msg.value` sent was equal to 0**.",
|
|
87
|
-
"details": "Sets a single bytes value `dataValue` in the ERC725Y storage for a specific data key `dataKey`. The function is marked as payable to enable flexibility on child contracts. For instance to implement a fee mechanism for setting specific data.",
|
|
88
|
-
"params": {
|
|
89
|
-
"dataKey": "The data key for which to set a new value.",
|
|
90
|
-
"dataValue": "The new bytes value to set."
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
"setDataBatch(bytes32[],bytes[])": {
|
|
94
|
-
"custom:events": "{DataChanged} event **for each data key/value pair set**.",
|
|
95
|
-
"custom:requirements": "- SHOULD only be callable by the {owner} of the contract.",
|
|
96
|
-
"custom:warning": "**Note for developers:** despite the fact that this function is set as `payable`, if the function is not intended to receive value (= native tokens), **an additional check should be implemented to ensure that `msg.value` sent was equal to 0**.",
|
|
97
|
-
"details": "Batch data setting function that behaves the same as {setData} but allowing to set multiple data key/value pairs in the ERC725Y storage in the same transaction.",
|
|
98
|
-
"params": {
|
|
99
|
-
"dataKeys": "An array of data keys to set bytes values for.",
|
|
100
|
-
"dataValues": "An array of bytes values to set for each `dataKeys`."
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
"supportsInterface(bytes4)": {
|
|
104
|
-
"details": "See {IERC165-supportsInterface}."
|
|
105
|
-
},
|
|
106
|
-
"transferOwnership(address)": {
|
|
107
|
-
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
"title": "Implementation of a LSP4DigitalAssetMetadata contract that stores the **Token-Metadata** (`LSP4TokenName` and `LSP4TokenSymbol`) in its ERC725Y data store.",
|
|
111
|
-
"version": 1
|
|
112
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"author": "Matthew Stevens",
|
|
3
|
-
"details": "Inheritable Proxy Implementation of the LSP4 standard.",
|
|
4
|
-
"errors": {
|
|
5
|
-
"ERC725Y_DataKeysValuesEmptyArray()": [
|
|
6
|
-
{
|
|
7
|
-
"details": "Reverts when one of the array parameter provided to {setDataBatch} function is an empty array."
|
|
8
|
-
}
|
|
9
|
-
],
|
|
10
|
-
"ERC725Y_DataKeysValuesLengthMismatch()": [
|
|
11
|
-
{
|
|
12
|
-
"details": "Reverts when there is not the same number of elements in the `datakeys` and `dataValues` array parameters provided when calling the {setDataBatch} function."
|
|
13
|
-
}
|
|
14
|
-
],
|
|
15
|
-
"ERC725Y_MsgValueDisallowed()": [
|
|
16
|
-
{
|
|
17
|
-
"details": "Reverts when sending value to the {setData} or {setDataBatch} function."
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"LSP4TokenNameNotEditable()": [
|
|
21
|
-
{
|
|
22
|
-
"details": "Reverts when trying to edit the data key `LSP4TokenName` after the digital asset contract has been deployed / initialized. The `LSP4TokenName` data key is located inside the ERC725Y data key-value store of the digital asset contract. It can be set only once inside the constructor/initializer when the digital asset contract is being deployed / initialized."
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
"LSP4TokenSymbolNotEditable()": [
|
|
26
|
-
{
|
|
27
|
-
"details": "Reverts when trying to edit the data key `LSP4TokenSymbol` after the digital asset contract has been deployed / initialized. The `LSP4TokenSymbol` data key is located inside the ERC725Y data key-value store of the digital asset contract. It can be set only once inside the constructor/initializer when the digital asset contract is being deployed / initialized."
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
"LSP4TokenTypeNotEditable()": [
|
|
31
|
-
{
|
|
32
|
-
"details": "Reverts when trying to edit the data key `LSP4TokenType` after the digital asset contract has been deployed / initialized. The `LSP4TokenType` data key is located inside the ERC725Y data key-value store of the digital asset contract. It can be set only once inside the constructor / initializer when the digital asset contract is being deployed / initialized."
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
"OwnableCallerNotTheOwner(address)": [
|
|
36
|
-
{
|
|
37
|
-
"details": "Reverts when only the owner is allowed to call the function.",
|
|
38
|
-
"params": {
|
|
39
|
-
"callerAddress": "The address that tried to make the call."
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
"OwnableCannotSetZeroAddressAsOwner()": [
|
|
44
|
-
{
|
|
45
|
-
"details": "Reverts when trying to set `address(0)` as the contract owner when deploying the contract, initializing it or transferring ownership of the contract."
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
},
|
|
49
|
-
"kind": "dev",
|
|
50
|
-
"methods": {
|
|
51
|
-
"getData(bytes32)": {
|
|
52
|
-
"details": "Get in the ERC725Y storage the bytes data stored at a specific data key `dataKey`.",
|
|
53
|
-
"params": {
|
|
54
|
-
"dataKey": "The data key for which to retrieve the value."
|
|
55
|
-
},
|
|
56
|
-
"returns": {
|
|
57
|
-
"dataValue": "The bytes value stored under the specified data key."
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"getDataBatch(bytes32[])": {
|
|
61
|
-
"details": "Get in the ERC725Y storage the bytes data stored at multiple data keys `dataKeys`.",
|
|
62
|
-
"params": {
|
|
63
|
-
"dataKeys": "The array of keys which values to retrieve"
|
|
64
|
-
},
|
|
65
|
-
"returns": {
|
|
66
|
-
"dataValues": "The array of data stored at multiple keys"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"owner()": {
|
|
70
|
-
"details": "Returns the address of the current owner."
|
|
71
|
-
},
|
|
72
|
-
"renounceOwnership()": {
|
|
73
|
-
"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
|
|
74
|
-
},
|
|
75
|
-
"setData(bytes32,bytes)": {
|
|
76
|
-
"custom:events": "{DataChanged} event.",
|
|
77
|
-
"custom:requirements": "- SHOULD only be callable by the {owner}.",
|
|
78
|
-
"custom:warning": "**Note for developers:** despite the fact that this function is set as `payable`, if the function is not intended to receive value (= native tokens), **an additional check should be implemented to ensure that `msg.value` sent was equal to 0**.",
|
|
79
|
-
"details": "Sets a single bytes value `dataValue` in the ERC725Y storage for a specific data key `dataKey`. The function is marked as payable to enable flexibility on child contracts. For instance to implement a fee mechanism for setting specific data.",
|
|
80
|
-
"params": {
|
|
81
|
-
"dataKey": "The data key for which to set a new value.",
|
|
82
|
-
"dataValue": "The new bytes value to set."
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
"setDataBatch(bytes32[],bytes[])": {
|
|
86
|
-
"custom:events": "{DataChanged} event **for each data key/value pair set**.",
|
|
87
|
-
"custom:requirements": "- SHOULD only be callable by the {owner} of the contract.",
|
|
88
|
-
"custom:warning": "**Note for developers:** despite the fact that this function is set as `payable`, if the function is not intended to receive value (= native tokens), **an additional check should be implemented to ensure that `msg.value` sent was equal to 0**.",
|
|
89
|
-
"details": "Batch data setting function that behaves the same as {setData} but allowing to set multiple data key/value pairs in the ERC725Y storage in the same transaction.",
|
|
90
|
-
"params": {
|
|
91
|
-
"dataKeys": "An array of data keys to set bytes values for.",
|
|
92
|
-
"dataValues": "An array of bytes values to set for each `dataKeys`."
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
"supportsInterface(bytes4)": {
|
|
96
|
-
"details": "See {IERC165-supportsInterface}."
|
|
97
|
-
},
|
|
98
|
-
"transferOwnership(address)": {
|
|
99
|
-
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
"title": "Implementation of a LSP4DigitalAssetMetadata contract that stores the **Token-Metadata** (`LSP4TokenName` and `LSP4TokenSymbol`) in its ERC725Y data store.",
|
|
103
|
-
"version": 1
|
|
104
|
-
}
|