A Mighty Gawd

gawdsOnchain

How to investigate the internals of the almighty.

Contracts

Usage from JavaScript

Excerpt from the test suite:

describe("GawdsOnchain", function () {
  let gawds: GawdsOnchain;

  beforeEach(async function () {
    const contractName = "GawdsOnchain"
    const GawdsOnchain = await ethers.getContractFactory(contractName);
    gawds = await GawdsOnchain.deploy() as GawdsOnchain;
    await gawds.deployed();
  });

  async function debugGawd(id: number, contract: any) {
    console.log("--- gawd ---");
    console.log("ID:", id);
    console.log("Name:", await contract.getGawdName(id));
    console.log("Hash:", await contract.getGawdHash(id));
    console.log("Powers:", await contract.getGawdPowers(id));
    console.log("Sets:", await contract.getGawdSets(id));
    console.log("Dominant Power:", await contract.getDominantPower(id));
    console.log("Cult:", await contract.getCultName(id));

    console.log("--- traits ---");
    console.log("Realm:", await contract.getGawdRealm(id));
    console.log("Aura(s):", await contract.getGawdAuras(id));
    console.log("Composition:", await contract.getGawdComposition(id));
    console.log("Oculus:", await contract.getGawdOculus(id));
    console.log("Iris:", await contract.getGawdIris(id));
    console.log("Accent(s):", await contract.getGawdAccents(id));
    console.log("Conveyence:", await contract.getGawdConveyence(id));
  }
});

See also GawdOwners, which mirrors ownership data from Ethereum mainnet L1 to Polygon L2.

ABIs

  • GawdOwners.abi.json
  • GawdsOnchain.abi.json