Skip to content

@odatano/nightgate 0.30.0

Choose a tag to compare

@maxalexweber1 maxalexweber1 released this 01 Oct 18:53
· 50 commits to main since this release
7efb689

@odatano/nightgate 0.30.0

An information market for offer files and contract lineages as packages. Schema delta: three new tables.

  • Contract lineages as npm packages from ODATANO/NIGHTGATE-CONTRACTS: @odatano/contract-attestation-vault, -attestation-vault-32, -holder-registry, -shielded-token, -token-factory (new lineage: shielded tokens on demand, named by their issuer), -counter, companion code in @odatano/contract-kit. Config entries take { "package": "<name>" }; prover keys come from the package's release assets (nightgate-fetch-keys <name> prefetches). contracts/ left this package; ./browser/attestation-vault[-32] re-exports the packages for one release line. Vault and holder-registry digests unchanged; counter and shielded-token recompiled.

  • postSwapOffer(offer, expiresAt?, tags?), listSwapOffers(givesType?, wantsType?, tag?, limit?), retireSwapOffer(offerId): a posted maker half is checked like a sponsored half, terms read from the half; closed by a landed input nullifier, expiry or the poster. sponsorSwap(offerId) fills from the board.

  • NIGHTGATE_SPONSOR_SHARE_MINTED_TOKEN_TYPES / policy file shareMintedTokenTypes: types a landed sponsored mint created count as listed for every grant (table LearnedTokenTypes).

  • Contract holder-registry: registerHolder(coin, claim_key) proves holding by passing a coin of the type through the contract; the chain carries holderEntry(type, claim_key) only.

  • grantDisclosureToHolders(payloadHash, tokenType, registryAddress, content?, contentType?, expiresAt?), revokeHolderDisclosure(holderGrantId), claimDisclosure(payloadHash, tokenType, claimSecret): content stored encrypted, must hash to the payload; a claim reads the registry live.

  • Codes SWAP_OFFER_INVALID (400), SWAP_OFFER_NOT_OPEN (409). Worker RPC describeSwapHalf; swap results carry input nullifiers.

  • @odatano/nightgate-tx 0.10.0: holderClaimKey(secret), HOLDER_REGISTRY_CIRCUITS; depends on @odatano/contract-kit and the vault packages.

Full Changelog: v0.29.2...v0.30.0