Skip to content

Instantly share code, notes, and snippets.

@0xhank
0xhank / test.spec.ts
Created April 3, 2026 13:24
context.ids updated with new element
import type { CDPSession, Page } from "@playwright/test"
import { expect, test } from "@playwright/test"
// Checkly runs each script in isolation via the `script` property (see program.ts).
// Imports from other files won't resolve at runtime on Checkly, so utils must be
// inlined here rather than imported from ../utils.ts.
// #region utils start
export const CHECKLY_EMAIL = "checkly@govdash.com"
export const CHECKLY_USER_ID = "user_in82x8nw6w391rmrkgeobfcqaakojpx3"
@0xhank
0xhank / test.spec.ts
Last active March 25, 2026 13:56
Fixes some issues with the ttft checkly test
import type { CDPSession, Page } from "@playwright/test"
import { expect, test } from "@playwright/test"
// Checkly runs each script in isolation via the `script` property (see program.ts).
// Imports from other files won't resolve at runtime on Checkly, so utils must be
// inlined here rather than imported from ../utils.ts.
// #region utils start
export const CHECKLY_EMAIL = "checkly@govdash.com"
export const CHECKLY_USER_ID = "user_in82x8nw6w391rmrkgeobfcqaakojpx3"
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 {