Modularized Diamond Standard hardhat
Modularied Diamond standard Foundry Hardhat
af89517ade } }, block_hash: Some(0x2e3d3b9c7e7cb4be6a47e87fbbe8783303df4f034f185fce3d37d5656769c0ef), block_number: Some(19710643), block_timestamp: None, transaction_hash: Some(0x9b0d193b2f4540b1d5bf72e207d63304fc1a548dd6922474c3d48d364db5317a), transaction_index: Some(0), log_index: Some(8), removed: false } | |
Uniswap token logs: Log { inner: Log { address: 0x9e22b4f836a461ddc7765e5fad693688e76e6069, data: LogData { topics: [0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, 0x000000000000000000000000cf5109bfe92d627e4eb43d6405b2de6793c90f3e, 0x0000000000000000000000000b98dd25600bb9a521b1d54c03cf303028c0503d], data: 0x00000000000000000000000000000000000000000000000074781f6f07fcff40 } }, block_hash: Some(0x2e3d3b9c7e7cb4be6a47e87fbbe8783303df4f034f185fce3d37d5656769c0ef), block_number: Some(19710643), block_timestamp: None, transaction_hash: Some(0x9b0d193b2f4540b1d5bf72e207d63304fc1a548dd6922474c3d48d364db5317a), transaction_index: Some(0), log_index: Some(9), removed: false } | |
Uniswap token lo |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import { | |
IERC721Enumerable | |
} from "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; | |
enum Existence { | |
Transient, | |
Permanent |
import {ethers} from "hardhat"; | |
import ethSigUtil from 'eth-sig-util'; | |
import axios from 'axios'; | |
const EIP712Domain = [ | |
{ name: 'name', type: 'string' }, | |
{ name: 'version', type: 'string' }, | |
{ name: 'chainId', type: 'uint256' }, |
0x42d2c5a3b4dc09930b8a5fd0741736424b213a78 |
/// This is how you'd write end-to-end (E2E) or integration tests for ink! contracts. | |
/// | |
/// When running these you need to make sure that you: | |
/// - Compile the tests with the `e2e-tests` feature flag enabled (`--features e2e-tests`) | |
/// - Are running a Substrate node which contains `pallet-contracts` in the background | |
#[cfg(all(test, feature = "e2e-tests"))] | |
mod e2e_tests { | |
/// Imports all the definitions from the outer scope so we can use them here. | |
use super::*; |
contract Campaign { | |
struct Request { | |
string description; | |
uint256 value; | |
address recipient; | |
bool complete; | |
uint256 approvalCount; | |
mapping(address => bool) approvals; | |
} | |
pragma solidity ^0.4.18; | |
contract WFIL { | |
string public name = "Wrapped FIL"; | |
string public symbol = "WFIL"; | |
uint8 public decimals = 18; | |
address private admin; | |
function WFIL() public { | |
admin = msg.sender; |
[ | |
{ | |
"inputs": [], | |
"name": "INVALID_INPUT", | |
"type": "error" | |
}, | |
{ | |
"inputs": [], | |
"name": "INVALID_POOL", | |
"type": "error" |
async function getPermitSignature(signer: any, token: any, spender: any, value: any, deadline: any) { | |
const [nonce, name, version, chainId] = await Promise.all([ | |
token.nonces(signer.address), | |
token.name(), | |
"1", | |
80001, | |
]) | |
console.log(nonce, name, version, chainId) | |