interface IERC6551Registry {
/// @dev The registry SHALL emit the AccountCreated event upon successful account creation
event AccountCreated(
address account,
address implementation,
uint256 chainId,
address tokenContract,
This file contains hidden or 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.13; | |
import {ERC165Checker} from "openzeppelin-contracts/utils/introspection/ERC165Checker.sol"; | |
import {MerkleBase} from "../utils/MerkleBase.sol"; | |
import {MerkleProof} from "openzeppelin-contracts/utils/cryptography/MerkleProof.sol"; | |
import {MinPriorityQueue, Bid} from "../lib/MinPriorityQueue.sol"; | |
import {Minter} from "../modules/Minter.sol"; | |
import {ICryptoPunk} from "../punks/interfaces/ICryptoPunk.sol"; |
We can use multicall.
This file contains hidden or 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
export const signMessage = async ( | |
chainId: string, | |
address: string, | |
): Promise<StdSignature | undefined> => { | |
const anyWindow: any = window; | |
if (!anyWindow.getOfflineSigner) { | |
throw new Error('Keplr extension is not available'); | |
} | |
const signed = await window.keplr?.signArbitrary( |
OlderNewer