@xyo-network/solidity
Advanced tools
Comparing version 3.1.0 to 3.2.0
@@ -344,3 +344,3 @@ { | ||
"schemaVersion": "3.4.16", | ||
"updatedAt": "2024-08-04T04:02:47.703Z", | ||
"updatedAt": "2024-08-30T03:35:59.800Z", | ||
"devdoc": { | ||
@@ -347,0 +347,0 @@ "details": "Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execution may not be the actual sender (as far as an application is concerned). This contract is only required for intermediate, library-like contracts.", |
@@ -861,3 +861,3 @@ { | ||
"schemaVersion": "3.4.16", | ||
"updatedAt": "2024-08-04T04:02:47.707Z", | ||
"updatedAt": "2024-08-30T03:35:59.804Z", | ||
"devdoc": { | ||
@@ -864,0 +864,0 @@ "kind": "dev", |
@@ -1354,3 +1354,3 @@ { | ||
"schemaVersion": "3.4.16", | ||
"updatedAt": "2024-08-04T04:02:47.711Z", | ||
"updatedAt": "2024-08-30T03:35:59.808Z", | ||
"devdoc": { | ||
@@ -1357,0 +1357,0 @@ "kind": "dev", |
@@ -135,3 +135,3 @@ { | ||
"schemaVersion": "3.4.16", | ||
"updatedAt": "2024-08-04T04:02:47.712Z", | ||
"updatedAt": "2024-08-30T03:35:59.809Z", | ||
"devdoc": { | ||
@@ -138,0 +138,0 @@ "kind": "dev", |
@@ -328,3 +328,3 @@ { | ||
"schemaVersion": "3.4.16", | ||
"updatedAt": "2024-08-04T04:02:47.711Z", | ||
"updatedAt": "2024-08-30T03:35:59.808Z", | ||
"devdoc": { | ||
@@ -331,0 +331,0 @@ "events": { |
@@ -367,3 +367,3 @@ { | ||
"schemaVersion": "3.4.16", | ||
"updatedAt": "2024-08-04T04:02:47.712Z", | ||
"updatedAt": "2024-08-30T03:35:59.809Z", | ||
"devdoc": { | ||
@@ -370,0 +370,0 @@ "kind": "dev", |
@@ -181,3 +181,3 @@ { | ||
"schemaVersion": "3.4.16", | ||
"updatedAt": "2024-08-04T04:02:47.703Z", | ||
"updatedAt": "2024-08-30T03:35:59.800Z", | ||
"devdoc": { | ||
@@ -184,0 +184,0 @@ "details": "Interface of the ERC165 standard, as defined in the https://eips.ethereum.org/EIPS/eip-165[EIP]. Implementers can declare support of contract interfaces, which can then be queried by others ({ERC165Checker}). For an implementation, see {ERC165}.", |
@@ -1123,3 +1123,3 @@ { | ||
"schemaVersion": "3.4.16", | ||
"updatedAt": "2024-08-04T04:02:47.700Z", | ||
"updatedAt": "2024-08-30T03:35:59.797Z", | ||
"devdoc": { | ||
@@ -1126,0 +1126,0 @@ "details": "Interface of the ERC20 standard as defined in the EIP.", |
@@ -526,3 +526,3 @@ { | ||
"schemaVersion": "3.4.16", | ||
"updatedAt": "2024-08-04T04:02:47.701Z", | ||
"updatedAt": "2024-08-30T03:35:59.797Z", | ||
"devdoc": { | ||
@@ -529,0 +529,0 @@ "details": "Interface for the optional metadata functions from the ERC20 standard.", |
@@ -524,3 +524,3 @@ { | ||
"schemaVersion": "3.4.16", | ||
"updatedAt": "2024-08-04T04:02:47.701Z", | ||
"updatedAt": "2024-08-30T03:35:59.798Z", | ||
"devdoc": { | ||
@@ -527,0 +527,0 @@ "details": "Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't need to send a transaction, and thus is not required to hold Ether at all. ==== Security Considerations There are two important considerations concerning the use of `permit`. The first is that a valid permit signature expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be considered as an intention to spend the allowance in any specific way. The second is that because permits have built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be generally recommended is: ```solidity function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} doThing(..., value); } function doThing(..., uint256 value) public { token.safeTransferFrom(msg.sender, address(this), value); ... } ``` Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also {SafeERC20-safeTransferFrom}). Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so contracts should have entry points that don't rely on permit.", |
@@ -578,3 +578,3 @@ { | ||
"schemaVersion": "3.4.16", | ||
"updatedAt": "2024-08-04T04:02:47.711Z", | ||
"updatedAt": "2024-08-30T03:35:59.808Z", | ||
"devdoc": { | ||
@@ -581,0 +581,0 @@ "kind": "dev", |
@@ -613,3 +613,3 @@ { | ||
"schemaVersion": "3.4.16", | ||
"updatedAt": "2024-08-04T04:02:47.711Z", | ||
"updatedAt": "2024-08-30T03:35:59.808Z", | ||
"devdoc": { | ||
@@ -616,0 +616,0 @@ "kind": "dev", |
@@ -169,3 +169,3 @@ { | ||
"schemaVersion": "3.4.16", | ||
"updatedAt": "2024-08-04T04:02:47.712Z", | ||
"updatedAt": "2024-08-30T03:35:59.809Z", | ||
"devdoc": { | ||
@@ -172,0 +172,0 @@ "kind": "dev", |
@@ -612,3 +612,3 @@ { | ||
"schemaVersion": "3.4.16", | ||
"updatedAt": "2024-08-04T04:02:47.712Z", | ||
"updatedAt": "2024-08-30T03:35:59.809Z", | ||
"devdoc": { | ||
@@ -615,0 +615,0 @@ "kind": "dev", |
@@ -521,3 +521,3 @@ { | ||
"schemaVersion": "3.4.16", | ||
"updatedAt": "2024-08-04T04:02:47.711Z", | ||
"updatedAt": "2024-08-30T03:35:59.809Z", | ||
"devdoc": { | ||
@@ -524,0 +524,0 @@ "events": { |
@@ -169,3 +169,3 @@ { | ||
"schemaVersion": "3.4.16", | ||
"updatedAt": "2024-08-04T04:02:47.712Z", | ||
"updatedAt": "2024-08-30T03:35:59.810Z", | ||
"devdoc": { | ||
@@ -172,0 +172,0 @@ "kind": "dev", |
@@ -624,3 +624,3 @@ { | ||
"schemaVersion": "3.4.16", | ||
"updatedAt": "2024-08-04T04:02:47.714Z", | ||
"updatedAt": "2024-08-30T03:35:59.811Z", | ||
"devdoc": { | ||
@@ -627,0 +627,0 @@ "kind": "dev", |
@@ -1364,3 +1364,3 @@ { | ||
"schemaVersion": "3.4.16", | ||
"updatedAt": "2024-08-04T04:02:47.714Z", | ||
"updatedAt": "2024-08-30T03:35:59.811Z", | ||
"devdoc": { | ||
@@ -1367,0 +1367,0 @@ "kind": "dev", |
@@ -152,3 +152,3 @@ { | ||
"schemaVersion": "3.4.16", | ||
"updatedAt": "2024-08-04T04:02:47.713Z", | ||
"updatedAt": "2024-08-30T03:35:59.810Z", | ||
"devdoc": { | ||
@@ -155,0 +155,0 @@ "kind": "dev", |
@@ -485,3 +485,3 @@ { | ||
"schemaVersion": "3.4.16", | ||
"updatedAt": "2024-08-04T04:02:47.713Z", | ||
"updatedAt": "2024-08-30T03:35:59.811Z", | ||
"devdoc": { | ||
@@ -488,0 +488,0 @@ "kind": "dev", |
@@ -444,3 +444,3 @@ { | ||
"schemaVersion": "3.4.16", | ||
"updatedAt": "2024-08-04T04:02:47.713Z", | ||
"updatedAt": "2024-08-30T03:35:59.810Z", | ||
"devdoc": { | ||
@@ -447,0 +447,0 @@ "kind": "dev", |
{ | ||
"name": "@xyo-network/solidity", | ||
"dependencies": { | ||
"@openzeppelin/contracts": "^5.0.2" | ||
"version": "3.2.0", | ||
"bugs": { | ||
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-typechain/issues", | ||
"email": "support@xyo.network" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-typechain.git" | ||
}, | ||
"license": "LGPL-3.0-only", | ||
"author": { | ||
"name": "XYO Development Team", | ||
"email": "support@xyo.network", | ||
"name": "XYO Development Team", | ||
"url": "https://xyo.network" | ||
}, | ||
"bugs": { | ||
"email": "support@xyo.network", | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-typechain/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-typechain.git" | ||
}, | ||
"sideEffects": false, | ||
"workspaces": [ | ||
"packages/**/*" | ||
], | ||
"scripts": { | ||
"package-build": "truffle compile --config truffle-config.cjs", | ||
"package-clean": "rimraf build", | ||
"package-compile": "truffle compile --config truffle-config.cjs", | ||
"package-recompile": "yarn package-clean && yarn package-compile" | ||
}, | ||
"dependencies": { | ||
"@openzeppelin/contracts": "^5.0.2" | ||
}, | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^3.15.13", | ||
"@xylabs/ts-scripts-yarn3": "^4.0.7", | ||
"rimraf": "^5.0.10", | ||
@@ -29,11 +38,3 @@ "truffle": "^5.11.5" | ||
"access": "public" | ||
}, | ||
"license": "LGPL-3.0-only", | ||
"scripts": { | ||
"package-clean": "rimraf build", | ||
"package-compile": "truffle compile --config truffle-config.cjs", | ||
"package-recompile": "yarn package-clean && yarn package-compile" | ||
}, | ||
"sideEffects": false, | ||
"version": "3.1.0" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3337315