v0.7.4
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 | NotAvailableAuthorized 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.