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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "./SimpleERC20.sol"; | |
import "./UniswapV2PairLike.sol"; | |
contract TestUniswapV2Pair { | |
SimpleERC20 public tokenA; | |
SimpleERC20 public tokenB; | |
UniswapV2PairLike public pair; |
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
/** | |
** Account-Abstraction (EIP-4337) singleton EntryPoint implementation. | |
** Only one instance required on each chain. | |
**/ | |
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity ^0.8.12; | |
/* solhint-disable avoid-low-level-calls */ | |
/* solhint-disable no-inline-assembly */ |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.26; | |
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) | |
library ECDSA { | |
enum RecoverError { | |
NoError, | |
InvalidSignature, | |
InvalidSignatureLength, |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.26; | |
import "./ECDSA.sol"; | |
contract MultiSigWallet { | |
using ECDSA for bytes32; | |
address[2] public owners; | |
mapping(bytes32 => bool) public executed; |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
contract AbstractWallet is Ownable { | |
constructor() Ownable(msg.sender) { | |
} | |
mapping(address => bool) public authorizedAddresses; |
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
// just | |
npm install -g @nrwl/cli@latest | |
npm install -g lerna@latest | |
// or even | |
rm -rf node_modules package-lock.json | |
npm install |
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
pragma solidity ^0.8.0; | |
contract ExampleContract { | |
struct PassKeyId { | |
uint256 pubKeyX; | |
uint256 pubKeyY; | |
string keyId; | |
} | |
// You can declare a variable of type PassKeyId |
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
/* solhint-disable */ | |
// SPDX-License-Identifier: MIT | |
// from OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol) | |
pragma solidity ^0.8.19; | |
/** | |
* @dev Provides a set of functions to operate with Base64 strings. | |
* | |
* _Available since v4.5._ |
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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.8.17; | |
// | |
// Heavily inspired from | |
// https://github.com/maxrobot/elliptic-solidity/blob/master/contracts/Secp256r1.sol | |
// https://github.com/tdrerup/elliptic-curve-solidity/blob/master/contracts/curves/EllipticCurve.sol | |
// modified to use precompile 0x05 modexp | |
// and modified jacobian double | |
// optimisations to avoid to an from from affine and jacobian coordinates | |
// |
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
odules/babel-loader/lib/index.js:51:103 { | |
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], | |
library: 'digital envelope routines', | |
reason: 'unsupported', | |
code: 'ERR_OSSL_EVP_UNSUPPORTED' | |
} |
NewerOlder