Skip to content

v0.7.4

Choose a tag to compare

@mordamax mordamax released this 07 May 13:25
· 140 commits to main since this release
c33d67f

host-api-test-sdk 0.7.4

Resource allocation (RFC-0010)

Products can now request resource allowances from the host — statement store, bulletin, smart contract, and auto-signing. The test host auto-allocates all requested resources.

// product side
const result = await hostApi.requestResourceAllocation({
  tag: "v1",
  value: [
    { tag: "StatementStoreAllowance", value: undefined },
    { tag: "BulletInAllowance", value: undefined },
    { tag: "SmartContractAllowance", value: 0 },  // derivation index
    { tag: "AutoSigning", value: undefined },
  ],
});
// Each resource gets an outcome: Allocated | Rejected | NotAvailable

Authorized statement proofs

handleStatementStoreCreateProofAuthorized creates statement proofs using the host's internal allowance account — no product account ID required. Useful for products that obtained a StatementStoreAllowance via resource allocation.

Updated dependencies

@novasamatech/* → ^0.7.7.