Skip to content

Instantly share code, notes, and snippets.

Error creating coin: ContractFunctionExecutionError: The contract function "deploy" reverted with the following signature:
0xf0b986c0
Unable to decode signature "0xf0b986c0" as it was not found on the provided ABI.
Make sure you are using the correct ABI and that the error exists on it.
You can look up the decoded signature here: https://openchain.xyz/signatures?query=0xf0b986c0.
Contract Call:
address: 0x777777751622c0d3258f214F9DF38E35BF45baF3
function: deploy(address payoutRecipient, address[] owners, string uri, string name, string symbol, bytes poolConfig, address platformReferrer, uint256 orderSize)
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.24;
import { Keys_Map, Value_Map, Meta_Map } from "codegen/index.sol";
library Map {
function has(bytes32 key, bytes32 value) internal view returns (bool) {
return Meta_Map.get(key, value).stored;
}
@0xhank
0xhank / Component.ts
Created July 20, 2023 21:29
Component Class Syntactic Sugar
import {
ComponentValue,
EntityID,
Has,
HasValue,
Component as MUDComponent,
Metadata,
NotValue,
Schema,
Type,
@0xhank
0xhank / Component.ts
Created July 19, 2023 20:00
Component Class
import {
ComponentValue,
EntityID,
Has,
HasValue,
Component as MUDComponent,
Metadata,
NotValue,
Schema,
Type,
// Abandon Planet
import {
PlanetLevel,
PlanetLevelNames,
} from "https://cdn.skypack.dev/@darkforest_eth/types";
import { getPlanetName } from "https://cdn.skypack.dev/@darkforest_eth/procedural";
const pg = { getPlanetName: getPlanetName };
const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
// Abandon Planet
import {
PlanetLevel,
PlanetLevelNames,
} from "https://cdn.skypack.dev/@darkforest_eth/types";
import { getPlanetName } from "https://cdn.skypack.dev/@darkforest_eth/procedural";
const pg = { getPlanetName: getPlanetName };
const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
class Plugin {