const receipt: ContractReceipt = await (await nftFactory.newNFT()).wait()
console.log(receipt.events?.filter((x) => x.event == 'NFTCreated'))
ποΈ
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
npx create-next-app@latest --ts -e with-tailwindcss next13-dapp-boilerplate |
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
const HeroCode = dynamic(() => import("../components/HeroCode"), { | |
ssr: false, | |
}); |
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
{ | |
AllowlistVotingSetup: '0x25104F3333ba2ef4385B976C9ed7E584a66554d2', | |
DAO: '0x824608Be5A9d505DDd31953746970e49469a8257', | |
DAOFactory: '0x1366b420364dC3E89aE15680CFf14E86AC51E4b1', | |
DAORegistry: '0x9a15A8Aa288E75c33697340f68d97e2656C79970', | |
DAORegistry_Implementation: '0xcBeCf57f0791C6aF7b2aEF66C3c7b2Fe56655b91', | |
DAORegistry_Proxy: '0x9a15A8Aa288E75c33697340f68d97e2656C79970', | |
DAO_Implementation: '0xEFaF1b96BD75b50f8FA922cA0ccC42dc1eF61Aac', | |
DAO_Proxy: '0x824608Be5A9d505DDd31953746970e49469a8257', | |
ENSRegistry: '0xb2356433A008A3B7196F3247a0c3B04C6De046Cf', |
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 default { | |
'31337': { | |
hardhat: { | |
name: 'hardhat', | |
chainId: '31337', | |
contracts: {}, | |
}, | |
}, | |
'80001': { | |
mumbai: { |
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
# Transfer 8.6 $NATION to the multisig | |
load aragonos as ar | |
# not sure if NATION is in the token list so setting an environment var also we have 3 voting apps so we need to explisitly set it here | |
set $USDC 0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83 | |
set $VOTING 0x2b7528b8f770db7c26cb2c8d4cd53265b4fa2720 | |
ar:connect testtttttt $VOTING ( | |
act agent $USDC transfer(address,uint256) @me 1e17 | |
) |
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
import React, { useEffect, useState } from 'react' | |
import { Form, Formik } from 'formik' | |
const NewVoteCard = () => { | |
return ( | |
<div className="card w-96 shadow-xl p-4"> | |
<Formik initialValues={{}} onSubmit={() => {}}> | |
{({ values, errors }) => ( | |
<Form> | |
<div>form</div> |
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
let to, calldata, action | |
// to be executed from voting | |
to = target.address | |
calldata = target.interface.encodeFunctionData('increment', []) | |
action = { to, calldata } | |
const votingScript = encodeCallScript([action]) | |
// to be executed from tokenManager | |
to = voting.address |
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
``` | |
console.log('here ', target.interface.encodeFunctionData('increment', [])) | |
``` |
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
import * as dotenv from 'dotenv' | |
dotenv.config() | |
import { HardhatUserConfig } from 'hardhat/config' | |
import '@nomiclabs/hardhat-ethers' | |
import '@nomiclabs/hardhat-etherscan' | |
import '@nomicfoundation/hardhat-network-helpers' | |
const { MUMBAI_RPC_URL, PRIVATE_KEY, POLYGONSCAN_KEY } = process.env | |
const config: HardhatUserConfig = { |