-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #703 from lukso-network/develop
chore(release): v0.11.0
- Loading branch information
Showing
227 changed files
with
47,239 additions
and
4,286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,7 @@ jobs: | |
"lsp9init", | ||
"lsp11", | ||
"lsp11init", | ||
"lsp17", | ||
"lsp20", | ||
"lsp20init", | ||
"lsp23", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = { | ||
skipFiles: ['Mocks', 'Legacy'], | ||
skipFiles: ['Mocks', 'Legacy', 'Create2Factory'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,53 +16,25 @@ import { | |
import {ILSP14Ownable2Step} from "../LSP14Ownable2Step/ILSP14Ownable2Step.sol"; | ||
|
||
/** | ||
* @title Interface of the LSP0 - ERC725Account standard, an account based smart contract that represents an identity on-chain. | ||
* https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-0-ERC725Account.md | ||
* @title Interface of the [LSP-0-ERC725Account] standard, an account based smart contract that represents an identity on-chain. | ||
* | ||
* @author Fabian Vogelsteller <[email protected]>, Jean Cavallera (CJ42) | ||
* @dev A smart contract account including basic functionalities such as: | ||
* | ||
* - Detecting supported standards using ERC165 | ||
* https://eips.ethereum.org/EIPS/eip-165 | ||
* | ||
* - Executing several operation on other addresses including creating contracts using ERC725X | ||
* https://github.com/ERC725Alliance/ERC725/blob/develop/docs/ERC-725.md | ||
* | ||
* - Storing data in a generic way using ERC725Y | ||
* https://github.com/ERC725Alliance/ERC725/blob/develop/docs/ERC-725.md | ||
* | ||
* - Validating signatures using ERC1271 | ||
* https://eips.ethereum.org/EIPS/eip-1271 | ||
* | ||
* - Receiving notification and react on them using LSP1 | ||
* https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-1-UniversalReceiver.md | ||
* | ||
* - Secure ownership management using LSP14 | ||
* https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-14-Ownable2Step.md | ||
* | ||
* - Extending the account with new functions and interfaceIds of future standards using LSP17 | ||
* https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-17-ContractExtension.md | ||
* | ||
* - Verifying calls on the owner to allow unified and standard interaction with the account using LSP20 | ||
* https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-20-CallVerification.md | ||
* | ||
* This interface implicitly inherits: IERC165, IERC725X, IERC725Y, IERC1271, ILSP1UniversalReceiver, ILSP14Ownable2Step | ||
*/ | ||
interface ILSP0ERC725Account { | ||
/** | ||
* @notice Emitted when receiving native tokens | ||
* @param sender The address of the sender | ||
* @param value The amount of native tokens received | ||
* @notice `value` native tokens received from `sender`. | ||
* @dev Emitted when receiving native tokens. | ||
* @param sender The address that sent some native tokens to this contract. | ||
* @param value The amount of native tokens received. | ||
*/ | ||
event ValueReceived(address indexed sender, uint256 indexed value); | ||
|
||
/** | ||
* @dev Allows a caller to batch different function calls in one call. | ||
* Perform a delegatecall on self, to call different functions with preserving the context | ||
* It is not possible to send value along the functions call due to the use of delegatecall. | ||
* @notice Executing the following batch of abi-encoded function calls on the contract: `data`. | ||
* | ||
* @dev Allows a caller to batch different function calls in one call. Perform a `delegatecall` on self, to call different functions with preserving the context. | ||
* @param data An array of ABI encoded function calls to be called on the contract. | ||
* @return results An array of values returned by the executed functions. | ||
* @return results An array of abi-encoded data returned by the functions executed. | ||
*/ | ||
function batchCalls( | ||
bytes[] calldata data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,44 +8,29 @@ import { | |
} from "@erc725/smart-contracts/contracts/custom/OwnableUnset.sol"; | ||
|
||
/** | ||
* @title Deployable Implementation of LSP0-ERC725Account Standard | ||
* https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-0-ERC725Account.md | ||
* @title Deployable Implementation of [LSP-0-ERC725Account] Standard. | ||
* | ||
* @author Fabian Vogelsteller <[email protected]>, Jean Cavallera (CJ42) | ||
* @dev A smart contract account including basic functionalities such as: | ||
* | ||
* - Detecting supported standards using ERC165 | ||
* https://eips.ethereum.org/EIPS/eip-165 | ||
* | ||
* - Executing several operation on other addresses including creating contracts using ERC725X | ||
* https://github.com/ERC725Alliance/ERC725/blob/develop/docs/ERC-725.md | ||
* | ||
* - Storing data in a generic way using ERC725Y | ||
* https://github.com/ERC725Alliance/ERC725/blob/develop/docs/ERC-725.md | ||
* | ||
* - Validating signatures using ERC1271 | ||
* https://eips.ethereum.org/EIPS/eip-1271 | ||
* | ||
* - Receiving notification and react on them using LSP1 | ||
* https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-1-UniversalReceiver.md | ||
* | ||
* - Secure ownership management using LSP14 | ||
* https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-14-Ownable2Step.md | ||
* | ||
* - Extending the account with new functions and interfaceIds of future standards using LSP17 | ||
* https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-17-ContractExtension.md | ||
* | ||
* - Verifying calls on the owner to allow unified and standard interaction with the account using LSP20 | ||
* https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-20-CallVerification.md | ||
* @dev A smart contract account including basic functionalities such as: | ||
* - Detecting supported standards using [ERC-165] | ||
* - Executing several operation on other addresses including creating contracts using [ERC-725X] | ||
* - A generic data key-value store using [ERC-725Y] | ||
* - Validating signatures using [ERC-1271] | ||
* - Receiving notification and react on them using [LSP-1-UniversalReceiver] | ||
* - Safer ownership management through 2-steps transfer using [LSP-14-Ownable2Step] | ||
* - Extending the account with new functions and interfaceIds of future standards using [LSP-17-ContractExtension] | ||
* - Verifying calls on the owner to make it easier to interact with the account directly using [LSP-20-CallVerification] | ||
*/ | ||
contract LSP0ERC725Account is LSP0ERC725AccountCore { | ||
/** | ||
* @notice Deploying the contract with owner set to: `initialOwner` | ||
* @dev Set `initialOwner` as the contract owner. | ||
* The `constructor` also allows funding the contract on deployment. | ||
* @notice Deploying a LSP0ERC725Account contract with owner set to address `initialOwner`. | ||
* @dev Set `initialOwner` as the contract owner. The `constructor` also allows funding the contract on deployment. | ||
* @param initialOwner The owner of the contract. | ||
* | ||
* @custom:events {ValueReceived} event when funding the contract on deployment. | ||
* @custom:events | ||
* - {ValueReceived} event when funding the contract on deployment. | ||
* - {OwnershipTransferred} event when `initialOwner` is set as the contract {owner}. | ||
*/ | ||
constructor(address initialOwner) payable { | ||
if (msg.value != 0) { | ||
|
Oops, something went wrong.