These contracts are now managed at: https://github.com/meemproject/meem-packages
Join us in building the future of digital content where creators set the rules: https://meem.wtf
Check out the Developer Documentation for the latest documentation on working with the Meem smart contracts.
Proxy contract: 0x82aC441F3276ede5db366704866d2E0fD9c2cFA8
Diamond inspector: https://louper.dev/diamond/0x82aC441F3276ede5db366704866d2E0fD9c2cFA8?network=matic
Proxy contract: 0x87e5882fa0ea7e391b7e31E8b23a8a38F35C84Ac
Diamond inspector: https://louper.dev/diamond/0x87e5882fa0ea7e391b7e31E8b23a8a38F35C84Ac?network=rinkeby
By default all commands will use the local network. For other networks use the --network <network_name>
flag. See the hardhat.config.ts file for network names.
Copy the .env.example
file to .env
yarn
yarn watch
yarn test
This will start up a local node using hardhat
yarn network
NEVER SEND ETH TO THESE ADDRESSES EXCEPT ON YOUR LOCAL NETWORK
Options for deploy/upgrade scripts:
--network <network name>
(optional, default is local)--gwei <amount>
(optional)
You should only do this the first time. After that you should use upgrade to keep the same address
yarn deployDiamond
Upgrade individual facets
yarn upgradeFacet --proxy <DiamondProxyAddress> --facet <FacetName>
For example:
yarn upgradeFacet --proxy 0x26291175Fa0Ea3C8583fEdEB56805eA68289b105 --facet MeemFacet
Generate the abi/Meem.json
file which combines all facets into a single definition. This ABI can then be used in other applications to make requests to the contract.
yarn createMeemABI
This will open a hardhat console where you can interact directly with the smart contract
yarn console
const meem = await (await ethers.getContractFactory('MeemFacet')).attach('<Contract_address>')