bitbadges 0.45.5 → 0.45.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -8
- package/dist/cjs/api-indexer/standards-info.d.ts +4 -0
- package/dist/cjs/api-indexer/standards-info.d.ts.map +1 -1
- package/dist/cjs/api-indexer/verify-standards.d.ts.map +1 -1
- package/dist/cjs/api-indexer/verify-standards.js +11 -0
- package/dist/cjs/api-indexer/verify-standards.js.map +1 -1
- package/dist/cjs/builder/agent/tokenTypeInference.d.ts.map +1 -1
- package/dist/cjs/builder/agent/tokenTypeInference.js +1 -0
- package/dist/cjs/builder/agent/tokenTypeInference.js.map +1 -1
- package/dist/cjs/builder/capabilities.spec.d.ts +2 -0
- package/dist/cjs/builder/capabilities.spec.d.ts.map +1 -0
- package/dist/cjs/builder/capabilities.spec.js +24 -0
- package/dist/cjs/builder/capabilities.spec.js.map +1 -0
- package/dist/cjs/builder/index.js +0 -0
- package/dist/cjs/builder/lifecycle-catalog.d.ts +4010 -0
- package/dist/cjs/builder/lifecycle-catalog.d.ts.map +1 -0
- package/dist/cjs/builder/lifecycle-catalog.js +92 -0
- package/dist/cjs/builder/lifecycle-catalog.js.map +1 -0
- package/dist/cjs/builder/lifecycle-catalog.spec.d.ts +2 -0
- package/dist/cjs/builder/lifecycle-catalog.spec.d.ts.map +1 -0
- package/dist/cjs/builder/lifecycle-catalog.spec.js +29 -0
- package/dist/cjs/builder/lifecycle-catalog.spec.js.map +1 -0
- package/dist/cjs/builder/lifecycle-fixtures.json +6895 -0
- package/dist/cjs/builder/lifecycle.d.ts +322 -0
- package/dist/cjs/builder/lifecycle.d.ts.map +1 -0
- package/dist/cjs/builder/lifecycle.js +197 -0
- package/dist/cjs/builder/lifecycle.js.map +1 -0
- package/dist/cjs/builder/lifecycle.spec.d.ts +2 -0
- package/dist/cjs/builder/lifecycle.spec.d.ts.map +1 -0
- package/dist/cjs/builder/lifecycle.spec.js +131 -0
- package/dist/cjs/builder/lifecycle.spec.js.map +1 -0
- package/dist/cjs/builder/lifecycleIntent.d.ts +369 -0
- package/dist/cjs/builder/lifecycleIntent.d.ts.map +1 -0
- package/dist/cjs/builder/lifecycleIntent.js +63 -0
- package/dist/cjs/builder/lifecycleIntent.js.map +1 -0
- package/dist/cjs/builder/lifecycleIntent.spec.d.ts +2 -0
- package/dist/cjs/builder/lifecycleIntent.spec.d.ts.map +1 -0
- package/dist/cjs/builder/lifecycleIntent.spec.js +102 -0
- package/dist/cjs/builder/lifecycleIntent.spec.js.map +1 -0
- package/dist/cjs/builder/presets/prediction-market.d.ts.map +1 -1
- package/dist/cjs/builder/presets/prediction-market.js +22 -21
- package/dist/cjs/builder/presets/prediction-market.js.map +1 -1
- package/dist/cjs/builder/resources/skillInstructions.d.ts +14 -0
- package/dist/cjs/builder/resources/skillInstructions.d.ts.map +1 -1
- package/dist/cjs/builder/resources/skillInstructions.js +315 -448
- package/dist/cjs/builder/resources/skillInstructions.js.map +1 -1
- package/dist/cjs/builder/resources/taskBundles.d.ts +18 -0
- package/dist/cjs/builder/resources/taskBundles.d.ts.map +1 -0
- package/dist/cjs/builder/resources/taskBundles.js +27 -0
- package/dist/cjs/builder/resources/taskBundles.js.map +1 -0
- package/dist/cjs/builder/resources/taskBundles.spec.d.ts +2 -0
- package/dist/cjs/builder/resources/taskBundles.spec.d.ts.map +1 -0
- package/dist/cjs/builder/resources/taskBundles.spec.js +33 -0
- package/dist/cjs/builder/resources/taskBundles.spec.js.map +1 -0
- package/dist/cjs/builder/server-transport.spec.d.ts +2 -0
- package/dist/cjs/builder/server-transport.spec.d.ts.map +1 -0
- package/dist/cjs/builder/server-transport.spec.js +27 -0
- package/dist/cjs/builder/server-transport.spec.js.map +1 -0
- package/dist/cjs/builder/server.d.ts.map +1 -1
- package/dist/cjs/builder/server.js +13 -13
- package/dist/cjs/builder/server.js.map +1 -1
- package/dist/cjs/builder/session/artifactBinding.d.ts +8 -0
- package/dist/cjs/builder/session/artifactBinding.d.ts.map +1 -0
- package/dist/cjs/builder/session/artifactBinding.js +15 -0
- package/dist/cjs/builder/session/artifactBinding.js.map +1 -0
- package/dist/cjs/builder/session/artifactBinding.spec.d.ts +2 -0
- package/dist/cjs/builder/session/artifactBinding.spec.d.ts.map +1 -0
- package/dist/cjs/builder/session/artifactBinding.spec.js +119 -0
- package/dist/cjs/builder/session/artifactBinding.spec.js.map +1 -0
- package/dist/cjs/builder/session/fileStore.d.ts.map +1 -1
- package/dist/cjs/builder/session/fileStore.js +3 -0
- package/dist/cjs/builder/session/fileStore.js.map +1 -1
- package/dist/cjs/builder/session/fileStore.spec.d.ts +2 -0
- package/dist/cjs/builder/session/fileStore.spec.d.ts.map +1 -0
- package/dist/cjs/builder/session/fileStore.spec.js +11 -0
- package/dist/cjs/builder/session/fileStore.spec.js.map +1 -0
- package/dist/cjs/builder/session/index.d.ts +1 -0
- package/dist/cjs/builder/session/index.d.ts.map +1 -1
- package/dist/cjs/builder/session/index.js +1 -0
- package/dist/cjs/builder/session/index.js.map +1 -1
- package/dist/cjs/builder/standards.d.ts +43 -0
- package/dist/cjs/builder/standards.d.ts.map +1 -0
- package/dist/cjs/builder/standards.js +286 -0
- package/dist/cjs/builder/standards.js.map +1 -0
- package/dist/cjs/builder/standards.spec.d.ts +2 -0
- package/dist/cjs/builder/standards.spec.d.ts.map +1 -0
- package/dist/cjs/builder/standards.spec.js +100 -0
- package/dist/cjs/builder/standards.spec.js.map +1 -0
- package/dist/cjs/builder/tools/builders/buildClaim.d.ts +9 -1
- package/dist/cjs/builder/tools/builders/buildClaim.d.ts.map +1 -1
- package/dist/cjs/builder/tools/builders/buildClaim.js +23 -9
- package/dist/cjs/builder/tools/builders/buildClaim.js.map +1 -1
- package/dist/cjs/builder/tools/builders/buildClaim.spec.d.ts +2 -0
- package/dist/cjs/builder/tools/builders/buildClaim.spec.d.ts.map +1 -0
- package/dist/cjs/builder/tools/builders/buildClaim.spec.js +33 -0
- package/dist/cjs/builder/tools/builders/buildClaim.spec.js.map +1 -0
- package/dist/cjs/builder/tools/builders/buildStandard.d.ts +2848 -0
- package/dist/cjs/builder/tools/builders/buildStandard.d.ts.map +1 -0
- package/dist/cjs/builder/tools/builders/buildStandard.js +54 -0
- package/dist/cjs/builder/tools/builders/buildStandard.js.map +1 -0
- package/dist/cjs/builder/tools/builders/buildStandard.spec.d.ts +2 -0
- package/dist/cjs/builder/tools/builders/buildStandard.spec.d.ts.map +1 -0
- package/dist/cjs/builder/tools/builders/buildStandard.spec.js +32 -0
- package/dist/cjs/builder/tools/builders/buildStandard.spec.js.map +1 -0
- package/dist/cjs/builder/tools/builders/index.d.ts +1 -0
- package/dist/cjs/builder/tools/builders/index.d.ts.map +1 -1
- package/dist/cjs/builder/tools/builders/index.js +3 -0
- package/dist/cjs/builder/tools/builders/index.js.map +1 -1
- package/dist/cjs/builder/tools/errors.d.ts +11 -0
- package/dist/cjs/builder/tools/errors.d.ts.map +1 -0
- package/dist/cjs/builder/tools/errors.js +18 -0
- package/dist/cjs/builder/tools/errors.js.map +1 -0
- package/dist/cjs/builder/tools/queries/buildTransfer.d.ts +2 -2
- package/dist/cjs/builder/tools/queries/simulateTransaction.js +1 -1
- package/dist/cjs/builder/tools/queries/simulateTransaction.js.map +1 -1
- package/dist/cjs/builder/tools/queries/simulateTransaction.spec.d.ts +2 -0
- package/dist/cjs/builder/tools/queries/simulateTransaction.spec.d.ts.map +1 -0
- package/dist/cjs/builder/tools/queries/simulateTransaction.spec.js +50 -0
- package/dist/cjs/builder/tools/queries/simulateTransaction.spec.js.map +1 -0
- package/dist/cjs/builder/tools/queries/verifyOwnership.d.ts +4 -4
- package/dist/cjs/builder/tools/registry.d.ts +26 -0
- package/dist/cjs/builder/tools/registry.d.ts.map +1 -1
- package/dist/cjs/builder/tools/registry.js +120 -8
- package/dist/cjs/builder/tools/registry.js.map +1 -1
- package/dist/cjs/builder/tools/registry.spec.js +23 -2
- package/dist/cjs/builder/tools/registry.spec.js.map +1 -1
- package/dist/cjs/builder/tools/standardActionExecutor.spec.d.ts +2 -0
- package/dist/cjs/builder/tools/standardActionExecutor.spec.d.ts.map +1 -0
- package/dist/cjs/builder/tools/standardActionExecutor.spec.js +23 -0
- package/dist/cjs/builder/tools/standardActionExecutor.spec.js.map +1 -0
- package/dist/cjs/builder/tools/standardActions.d.ts +17 -0
- package/dist/cjs/builder/tools/standardActions.d.ts.map +1 -0
- package/dist/cjs/builder/tools/standardActions.js +179 -0
- package/dist/cjs/builder/tools/standardActions.js.map +1 -0
- package/dist/cjs/builder/tools/standardActions.spec.d.ts +2 -0
- package/dist/cjs/builder/tools/standardActions.spec.d.ts.map +1 -0
- package/dist/cjs/builder/tools/standardActions.spec.js +63 -0
- package/dist/cjs/builder/tools/standardActions.spec.js.map +1 -0
- package/dist/cjs/builder/tools/utilities/fetchDocs.d.ts.map +1 -1
- package/dist/cjs/builder/tools/utilities/fetchDocs.js +4 -1
- package/dist/cjs/builder/tools/utilities/fetchDocs.js.map +1 -1
- package/dist/cjs/builder/tools/utilities/validateTransaction.js +1 -1
- package/dist/cjs/builder/tools/utilities/validateTransaction.js.map +1 -1
- package/dist/cjs/builder/tools/utilities/validateTransaction.spec.js +2 -6
- package/dist/cjs/builder/tools/utilities/validateTransaction.spec.js.map +1 -1
- package/dist/cjs/cli/auth/brand.d.ts +2 -0
- package/dist/cjs/cli/auth/brand.d.ts.map +1 -0
- package/dist/cjs/cli/auth/brand.js +5 -0
- package/dist/cjs/cli/auth/brand.js.map +1 -0
- package/dist/cjs/cli/auth/browser-bridge.d.ts +2 -0
- package/dist/cjs/cli/auth/browser-bridge.d.ts.map +1 -1
- package/dist/cjs/cli/auth/browser-bridge.js +87 -21
- package/dist/cjs/cli/auth/browser-bridge.js.map +1 -1
- package/dist/cjs/cli/auth/browser-bridge.spec.js +92 -4
- package/dist/cjs/cli/auth/browser-bridge.spec.js.map +1 -1
- package/dist/cjs/cli/commands/auctions.js +1 -1
- package/dist/cjs/cli/commands/auctions.js.map +1 -1
- package/dist/cjs/cli/commands/build.d.ts.map +1 -1
- package/dist/cjs/cli/commands/build.js +34 -2
- package/dist/cjs/cli/commands/build.js.map +1 -1
- package/dist/cjs/cli/commands/build.spec.js +2 -0
- package/dist/cjs/cli/commands/build.spec.js.map +1 -1
- package/dist/cjs/cli/commands/capabilities.d.ts +3 -0
- package/dist/cjs/cli/commands/capabilities.d.ts.map +1 -0
- package/dist/cjs/cli/commands/capabilities.js +18 -0
- package/dist/cjs/cli/commands/capabilities.js.map +1 -0
- package/dist/cjs/cli/commands/credit-tokens.d.ts.map +1 -1
- package/dist/cjs/cli/commands/credit-tokens.js +57 -15
- package/dist/cjs/cli/commands/credit-tokens.js.map +1 -1
- package/dist/cjs/cli/commands/credit-tokens.spec.js +1 -1
- package/dist/cjs/cli/commands/credit-tokens.spec.js.map +1 -1
- package/dist/cjs/cli/commands/crowdfunds.js +3 -3
- package/dist/cjs/cli/commands/crowdfunds.js.map +1 -1
- package/dist/cjs/cli/commands/dev.d.ts.map +1 -1
- package/dist/cjs/cli/commands/dev.js +6 -0
- package/dist/cjs/cli/commands/dev.js.map +1 -1
- package/dist/cjs/cli/commands/docs.d.ts.map +1 -1
- package/dist/cjs/cli/commands/docs.js +10 -11
- package/dist/cjs/cli/commands/docs.js.map +1 -1
- package/dist/cjs/cli/commands/docs.spec.js +3 -1
- package/dist/cjs/cli/commands/docs.spec.js.map +1 -1
- package/dist/cjs/cli/commands/prediction-markets.d.ts.map +1 -1
- package/dist/cjs/cli/commands/prediction-markets.js +35 -3
- package/dist/cjs/cli/commands/prediction-markets.js.map +1 -1
- package/dist/cjs/cli/commands/prediction-markets.spec.js +11 -0
- package/dist/cjs/cli/commands/prediction-markets.spec.js.map +1 -1
- package/dist/cjs/cli/commands/requests.d.ts +3 -0
- package/dist/cjs/cli/commands/requests.d.ts.map +1 -0
- package/dist/cjs/cli/commands/requests.js +44 -0
- package/dist/cjs/cli/commands/requests.js.map +1 -0
- package/dist/cjs/cli/commands/skills.d.ts.map +1 -1
- package/dist/cjs/cli/commands/skills.js +18 -7
- package/dist/cjs/cli/commands/skills.js.map +1 -1
- package/dist/cjs/cli/commands/skills.spec.d.ts +2 -0
- package/dist/cjs/cli/commands/skills.spec.d.ts.map +1 -0
- package/dist/cjs/cli/commands/skills.spec.js +43 -0
- package/dist/cjs/cli/commands/skills.spec.js.map +1 -0
- package/dist/cjs/cli/commands/smart-tokens.d.ts.map +1 -1
- package/dist/cjs/cli/commands/smart-tokens.js +49 -49
- package/dist/cjs/cli/commands/smart-tokens.js.map +1 -1
- package/dist/cjs/cli/commands/spendable-credits.d.ts +3 -0
- package/dist/cjs/cli/commands/spendable-credits.d.ts.map +1 -0
- package/dist/cjs/cli/commands/spendable-credits.js +79 -0
- package/dist/cjs/cli/commands/spendable-credits.js.map +1 -0
- package/dist/cjs/cli/commands/standards-catalog.d.ts +3 -0
- package/dist/cjs/cli/commands/standards-catalog.d.ts.map +1 -0
- package/dist/cjs/cli/commands/standards-catalog.js +18 -0
- package/dist/cjs/cli/commands/standards-catalog.js.map +1 -0
- package/dist/cjs/cli/commands/standards.d.ts +3 -0
- package/dist/cjs/cli/commands/standards.d.ts.map +1 -0
- package/dist/cjs/cli/commands/standards.js +24 -0
- package/dist/cjs/cli/commands/standards.js.map +1 -0
- package/dist/cjs/cli/commands/subscriptions-boundaries.spec.js +92 -4
- package/dist/cjs/cli/commands/subscriptions-boundaries.spec.js.map +1 -1
- package/dist/cjs/cli/commands/subscriptions-preservation.spec.d.ts +2 -0
- package/dist/cjs/cli/commands/subscriptions-preservation.spec.d.ts.map +1 -0
- package/dist/cjs/cli/commands/subscriptions-preservation.spec.js +112 -0
- package/dist/cjs/cli/commands/subscriptions-preservation.spec.js.map +1 -0
- package/dist/cjs/cli/commands/subscriptions.d.ts.map +1 -1
- package/dist/cjs/cli/commands/subscriptions.js +86 -65
- package/dist/cjs/cli/commands/subscriptions.js.map +1 -1
- package/dist/cjs/cli/commands/swap-browser-signer.spec.js +12 -1
- package/dist/cjs/cli/commands/swap-browser-signer.spec.js.map +1 -1
- package/dist/cjs/cli/commands/tool.d.ts +1 -0
- package/dist/cjs/cli/commands/tool.d.ts.map +1 -1
- package/dist/cjs/cli/commands/tool.js +8 -2
- package/dist/cjs/cli/commands/tool.js.map +1 -1
- package/dist/cjs/cli/commands/tool.spec.d.ts +2 -0
- package/dist/cjs/cli/commands/tool.spec.d.ts.map +1 -0
- package/dist/cjs/cli/commands/tool.spec.js +20 -0
- package/dist/cjs/cli/commands/tool.spec.js.map +1 -0
- package/dist/cjs/cli/index.js +19 -4
- package/dist/cjs/cli/index.js.map +1 -1
- package/dist/cjs/cli/integration/cli-build-pipeline.spec.js +17 -2
- package/dist/cjs/cli/integration/cli-build-pipeline.spec.js.map +1 -1
- package/dist/cjs/cli/utils/browser-broadcast.spec.js +17 -1
- package/dist/cjs/cli/utils/browser-broadcast.spec.js.map +1 -1
- package/dist/cjs/cli/utils/browser-review.d.ts +918 -0
- package/dist/cjs/cli/utils/browser-review.d.ts.map +1 -0
- package/dist/cjs/cli/utils/browser-review.js +106 -0
- package/dist/cjs/cli/utils/browser-review.js.map +1 -0
- package/dist/cjs/cli/utils/browser-review.spec.d.ts +2 -0
- package/dist/cjs/cli/utils/browser-review.spec.d.ts.map +1 -0
- package/dist/cjs/cli/utils/browser-review.spec.js +64 -0
- package/dist/cjs/cli/utils/browser-review.spec.js.map +1 -0
- package/dist/cjs/cli/utils/collection-options.d.ts.map +1 -1
- package/dist/cjs/cli/utils/collection-options.js +3 -13
- package/dist/cjs/cli/utils/collection-options.js.map +1 -1
- package/dist/cjs/cli/utils/collection-options.spec.js +6 -12
- package/dist/cjs/cli/utils/collection-options.spec.js.map +1 -1
- package/dist/cjs/cli/utils/deploy-options.d.ts.map +1 -1
- package/dist/cjs/cli/utils/deploy-options.js +33 -11
- package/dist/cjs/cli/utils/deploy-options.js.map +1 -1
- package/dist/cjs/cli/utils/docs-cache.d.ts +1 -0
- package/dist/cjs/cli/utils/docs-cache.d.ts.map +1 -1
- package/dist/cjs/cli/utils/docs-cache.js +29 -50
- package/dist/cjs/cli/utils/docs-cache.js.map +1 -1
- package/dist/cjs/cli/utils/docs-cache.spec.d.ts +2 -0
- package/dist/cjs/cli/utils/docs-cache.spec.d.ts.map +1 -0
- package/dist/cjs/cli/utils/docs-cache.spec.js +29 -0
- package/dist/cjs/cli/utils/docs-cache.spec.js.map +1 -0
- package/dist/cjs/cli/utils/first-run.d.ts.map +1 -1
- package/dist/cjs/cli/utils/first-run.js +7 -3
- package/dist/cjs/cli/utils/first-run.js.map +1 -1
- package/dist/cjs/cli/utils/json-options.d.ts +3 -0
- package/dist/cjs/cli/utils/json-options.d.ts.map +1 -0
- package/dist/cjs/cli/utils/json-options.js +25 -0
- package/dist/cjs/cli/utils/json-options.js.map +1 -0
- package/dist/cjs/cli/utils/json-options.spec.d.ts +2 -0
- package/dist/cjs/cli/utils/json-options.spec.d.ts.map +1 -0
- package/dist/cjs/cli/utils/json-options.spec.js +41 -0
- package/dist/cjs/cli/utils/json-options.spec.js.map +1 -0
- package/dist/cjs/cli/utils/normalizeMsg.d.ts.map +1 -1
- package/dist/cjs/cli/utils/normalizeMsg.js +2 -0
- package/dist/cjs/cli/utils/normalizeMsg.js.map +1 -1
- package/dist/cjs/cli/utils/normalizeMsg.spec.js +10 -0
- package/dist/cjs/cli/utils/normalizeMsg.spec.js.map +1 -1
- package/dist/cjs/cli/utils/signing-requests.d.ts +50 -0
- package/dist/cjs/cli/utils/signing-requests.d.ts.map +1 -0
- package/dist/cjs/cli/utils/signing-requests.js +196 -0
- package/dist/cjs/cli/utils/signing-requests.js.map +1 -0
- package/dist/cjs/cli/utils/signing-requests.spec.d.ts +2 -0
- package/dist/cjs/cli/utils/signing-requests.spec.d.ts.map +1 -0
- package/dist/cjs/cli/utils/signing-requests.spec.js +187 -0
- package/dist/cjs/cli/utils/signing-requests.spec.js.map +1 -0
- package/dist/cjs/core/action-versions.spec.d.ts +2 -0
- package/dist/cjs/core/action-versions.spec.d.ts.map +1 -0
- package/dist/cjs/core/action-versions.spec.js +46 -0
- package/dist/cjs/core/action-versions.spec.js.map +1 -0
- package/dist/cjs/core/agent-review-ux.spec.d.ts +2 -0
- package/dist/cjs/core/agent-review-ux.spec.d.ts.map +1 -0
- package/dist/cjs/core/agent-review-ux.spec.js +85 -0
- package/dist/cjs/core/agent-review-ux.spec.js.map +1 -0
- package/dist/cjs/core/auctions.d.ts +1 -1
- package/dist/cjs/core/auctions.d.ts.map +1 -1
- package/dist/cjs/core/auctions.js +3 -3
- package/dist/cjs/core/auctions.js.map +1 -1
- package/dist/cjs/core/audit-backing.spec.d.ts +2 -0
- package/dist/cjs/core/audit-backing.spec.d.ts.map +1 -0
- package/dist/cjs/core/audit-backing.spec.js +51 -0
- package/dist/cjs/core/audit-backing.spec.js.map +1 -0
- package/dist/cjs/core/audit.d.ts.map +1 -1
- package/dist/cjs/core/audit.js +10 -28
- package/dist/cjs/core/audit.js.map +1 -1
- package/dist/cjs/core/bounties.d.ts.map +1 -1
- package/dist/cjs/core/bounties.js +12 -11
- package/dist/cjs/core/bounties.js.map +1 -1
- package/dist/cjs/core/bounties.spec.js +15 -14
- package/dist/cjs/core/bounties.spec.js.map +1 -1
- package/dist/cjs/core/browser-receipt.d.ts +29 -0
- package/dist/cjs/core/browser-receipt.d.ts.map +1 -0
- package/dist/cjs/core/browser-receipt.js +156 -0
- package/dist/cjs/core/browser-receipt.js.map +1 -0
- package/dist/cjs/core/browser-receipt.spec.d.ts +2 -0
- package/dist/cjs/core/browser-receipt.spec.d.ts.map +1 -0
- package/dist/cjs/core/browser-receipt.spec.js +106 -0
- package/dist/cjs/core/browser-receipt.spec.js.map +1 -0
- package/dist/cjs/core/browser-signing.d.ts +2397 -16
- package/dist/cjs/core/browser-signing.d.ts.map +1 -1
- package/dist/cjs/core/browser-signing.js +29 -2
- package/dist/cjs/core/browser-signing.js.map +1 -1
- package/dist/cjs/core/builders/address-list.d.ts.map +1 -1
- package/dist/cjs/core/builders/address-list.js +2 -0
- package/dist/cjs/core/builders/address-list.js.map +1 -1
- package/dist/cjs/core/builders/auction.d.ts.map +1 -1
- package/dist/cjs/core/builders/auction.js +2 -0
- package/dist/cjs/core/builders/auction.js.map +1 -1
- package/dist/cjs/core/builders/bid.d.ts.map +1 -1
- package/dist/cjs/core/builders/bid.js +2 -0
- package/dist/cjs/core/builders/bid.js.map +1 -1
- package/dist/cjs/core/builders/bounty.d.ts.map +1 -1
- package/dist/cjs/core/builders/bounty.js +2 -0
- package/dist/cjs/core/builders/bounty.js.map +1 -1
- package/dist/cjs/core/builders/credit-token.d.ts.map +1 -1
- package/dist/cjs/core/builders/credit-token.js +2 -0
- package/dist/cjs/core/builders/credit-token.js.map +1 -1
- package/dist/cjs/core/builders/crowdfund.d.ts.map +1 -1
- package/dist/cjs/core/builders/crowdfund.js +2 -0
- package/dist/cjs/core/builders/crowdfund.js.map +1 -1
- package/dist/cjs/core/builders/custom-2fa.d.ts.map +1 -1
- package/dist/cjs/core/builders/custom-2fa.js +2 -0
- package/dist/cjs/core/builders/custom-2fa.js.map +1 -1
- package/dist/cjs/core/builders/index.d.ts +2 -0
- package/dist/cjs/core/builders/index.d.ts.map +1 -1
- package/dist/cjs/core/builders/index.js +7 -1
- package/dist/cjs/core/builders/index.js.map +1 -1
- package/dist/cjs/core/builders/input-examples.json +136 -0
- package/dist/cjs/core/builders/input-schemas.d.ts +2926 -0
- package/dist/cjs/core/builders/input-schemas.d.ts.map +1 -0
- package/dist/cjs/core/builders/input-schemas.generated.json +838 -0
- package/dist/cjs/core/builders/input-schemas.js +42 -0
- package/dist/cjs/core/builders/input-schemas.js.map +1 -0
- package/dist/cjs/core/builders/input-schemas.spec.d.ts +2 -0
- package/dist/cjs/core/builders/input-schemas.spec.d.ts.map +1 -0
- package/dist/cjs/core/builders/input-schemas.spec.js +19 -0
- package/dist/cjs/core/builders/input-schemas.spec.js.map +1 -0
- package/dist/cjs/core/builders/intent.d.ts.map +1 -1
- package/dist/cjs/core/builders/intent.js +2 -0
- package/dist/cjs/core/builders/intent.js.map +1 -1
- package/dist/cjs/core/builders/listing.d.ts.map +1 -1
- package/dist/cjs/core/builders/listing.js +2 -0
- package/dist/cjs/core/builders/listing.js.map +1 -1
- package/dist/cjs/core/builders/payment-request.d.ts.map +1 -1
- package/dist/cjs/core/builders/payment-request.js +2 -0
- package/dist/cjs/core/builders/payment-request.js.map +1 -1
- package/dist/cjs/core/builders/pm-buy-intent.d.ts.map +1 -1
- package/dist/cjs/core/builders/pm-buy-intent.js +2 -0
- package/dist/cjs/core/builders/pm-buy-intent.js.map +1 -1
- package/dist/cjs/core/builders/pm-sell-intent.d.ts.map +1 -1
- package/dist/cjs/core/builders/pm-sell-intent.js +2 -0
- package/dist/cjs/core/builders/pm-sell-intent.js.map +1 -1
- package/dist/cjs/core/builders/prediction-market.d.ts.map +1 -1
- package/dist/cjs/core/builders/prediction-market.js +4 -2
- package/dist/cjs/core/builders/prediction-market.js.map +1 -1
- package/dist/cjs/core/builders/product-catalog.d.ts +1 -0
- package/dist/cjs/core/builders/product-catalog.d.ts.map +1 -1
- package/dist/cjs/core/builders/product-catalog.js +8 -1
- package/dist/cjs/core/builders/product-catalog.js.map +1 -1
- package/dist/cjs/core/builders/product-catalog.spec.d.ts +2 -0
- package/dist/cjs/core/builders/product-catalog.spec.d.ts.map +1 -0
- package/dist/cjs/core/builders/product-catalog.spec.js +40 -0
- package/dist/cjs/core/builders/product-catalog.spec.js.map +1 -0
- package/dist/cjs/core/builders/quests.d.ts.map +1 -1
- package/dist/cjs/core/builders/quests.js +2 -0
- package/dist/cjs/core/builders/quests.js.map +1 -1
- package/dist/cjs/core/builders/smart-token.d.ts.map +1 -1
- package/dist/cjs/core/builders/smart-token.js +2 -0
- package/dist/cjs/core/builders/smart-token.js.map +1 -1
- package/dist/cjs/core/builders/spendable-credit.d.ts +21 -0
- package/dist/cjs/core/builders/spendable-credit.d.ts.map +1 -0
- package/dist/cjs/core/builders/spendable-credit.js +99 -0
- package/dist/cjs/core/builders/spendable-credit.js.map +1 -0
- package/dist/cjs/core/builders/spendable-credit.spec.d.ts +2 -0
- package/dist/cjs/core/builders/spendable-credit.spec.d.ts.map +1 -0
- package/dist/cjs/core/builders/spendable-credit.spec.js +80 -0
- package/dist/cjs/core/builders/spendable-credit.spec.js.map +1 -0
- package/dist/cjs/core/builders/subscription.d.ts.map +1 -1
- package/dist/cjs/core/builders/subscription.js +2 -0
- package/dist/cjs/core/builders/subscription.js.map +1 -1
- package/dist/cjs/core/builders/vault.d.ts.map +1 -1
- package/dist/cjs/core/builders/vault.js +2 -0
- package/dist/cjs/core/builders/vault.js.map +1 -1
- package/dist/cjs/core/credit-tokens.d.ts +33 -0
- package/dist/cjs/core/credit-tokens.d.ts.map +1 -1
- package/dist/cjs/core/credit-tokens.js +66 -13
- package/dist/cjs/core/credit-tokens.js.map +1 -1
- package/dist/cjs/core/credit-tokens.spec.js +68 -7
- package/dist/cjs/core/credit-tokens.spec.js.map +1 -1
- package/dist/cjs/core/crowdfunds.d.ts +1 -1
- package/dist/cjs/core/crowdfunds.d.ts.map +1 -1
- package/dist/cjs/core/crowdfunds.js +6 -6
- package/dist/cjs/core/crowdfunds.js.map +1 -1
- package/dist/cjs/core/index.d.ts +4 -0
- package/dist/cjs/core/index.d.ts.map +1 -1
- package/dist/cjs/core/index.js +4 -0
- package/dist/cjs/core/index.js.map +1 -1
- package/dist/cjs/core/intent.d.ts +423 -0
- package/dist/cjs/core/intent.d.ts.map +1 -0
- package/dist/cjs/core/intent.js +239 -0
- package/dist/cjs/core/intent.js.map +1 -0
- package/dist/cjs/core/intent.spec.d.ts +2 -0
- package/dist/cjs/core/intent.spec.d.ts.map +1 -0
- package/dist/cjs/core/intent.spec.js +105 -0
- package/dist/cjs/core/intent.spec.js.map +1 -0
- package/dist/cjs/core/interpret-shared.d.ts.map +1 -1
- package/dist/cjs/core/interpret-shared.js +20 -5
- package/dist/cjs/core/interpret-shared.js.map +1 -1
- package/dist/cjs/core/interpret-transaction.d.ts.map +1 -1
- package/dist/cjs/core/interpret-transaction.js +6 -3
- package/dist/cjs/core/interpret-transaction.js.map +1 -1
- package/dist/cjs/core/payment-requests.d.ts.map +1 -1
- package/dist/cjs/core/payment-requests.js +15 -7
- package/dist/cjs/core/payment-requests.js.map +1 -1
- package/dist/cjs/core/payment-requests.spec.js +25 -0
- package/dist/cjs/core/payment-requests.spec.js.map +1 -1
- package/dist/cjs/core/prediction-markets.d.ts +39 -0
- package/dist/cjs/core/prediction-markets.d.ts.map +1 -1
- package/dist/cjs/core/prediction-markets.js +186 -27
- package/dist/cjs/core/prediction-markets.js.map +1 -1
- package/dist/cjs/core/prediction-redemption.spec.d.ts +2 -0
- package/dist/cjs/core/prediction-redemption.spec.d.ts.map +1 -0
- package/dist/cjs/core/prediction-redemption.spec.js +123 -0
- package/dist/cjs/core/prediction-redemption.spec.js.map +1 -0
- package/dist/cjs/core/products.d.ts +1 -0
- package/dist/cjs/core/products.d.ts.map +1 -1
- package/dist/cjs/core/products.js +3 -2
- package/dist/cjs/core/products.js.map +1 -1
- package/dist/cjs/core/review-normalize.d.ts.map +1 -1
- package/dist/cjs/core/review-normalize.js +6 -3
- package/dist/cjs/core/review-normalize.js.map +1 -1
- package/dist/cjs/core/smart-tokens.d.ts +26 -3
- package/dist/cjs/core/smart-tokens.d.ts.map +1 -1
- package/dist/cjs/core/smart-tokens.js +183 -36
- package/dist/cjs/core/smart-tokens.js.map +1 -1
- package/dist/cjs/core/smart-tokens.spec.js +40 -0
- package/dist/cjs/core/smart-tokens.spec.js.map +1 -1
- package/dist/cjs/core/spendable-credits-evm.spec.d.ts +2 -0
- package/dist/cjs/core/spendable-credits-evm.spec.d.ts.map +1 -0
- package/dist/cjs/core/spendable-credits-evm.spec.js +97 -0
- package/dist/cjs/core/spendable-credits-evm.spec.js.map +1 -0
- package/dist/cjs/core/spendable-credits.d.ts +124 -0
- package/dist/cjs/core/spendable-credits.d.ts.map +1 -0
- package/dist/cjs/core/spendable-credits.js +258 -0
- package/dist/cjs/core/spendable-credits.js.map +1 -0
- package/dist/cjs/core/spendable-credits.spec.d.ts +2 -0
- package/dist/cjs/core/spendable-credits.spec.d.ts.map +1 -0
- package/dist/cjs/core/spendable-credits.spec.js +160 -0
- package/dist/cjs/core/spendable-credits.spec.js.map +1 -0
- package/dist/cjs/core/standard-inspection.d.ts +20 -0
- package/dist/cjs/core/standard-inspection.d.ts.map +1 -0
- package/dist/cjs/core/standard-inspection.js +158 -0
- package/dist/cjs/core/standard-inspection.js.map +1 -0
- package/dist/cjs/core/standard-inspection.spec.d.ts +2 -0
- package/dist/cjs/core/standard-inspection.spec.d.ts.map +1 -0
- package/dist/cjs/core/standard-inspection.spec.js +58 -0
- package/dist/cjs/core/standard-inspection.spec.js.map +1 -0
- package/dist/cjs/core/subscription-access.spec.d.ts +2 -0
- package/dist/cjs/core/subscription-access.spec.d.ts.map +1 -0
- package/dist/cjs/core/subscription-access.spec.js +37 -0
- package/dist/cjs/core/subscription-access.spec.js.map +1 -0
- package/dist/cjs/core/subscriptions.d.ts +35 -0
- package/dist/cjs/core/subscriptions.d.ts.map +1 -1
- package/dist/cjs/core/subscriptions.js +43 -7
- package/dist/cjs/core/subscriptions.js.map +1 -1
- package/dist/cjs/core/subscriptions.spec.js +27 -0
- package/dist/cjs/core/subscriptions.spec.js.map +1 -1
- package/dist/cjs/core/uintRanges.d.ts.map +1 -1
- package/dist/cjs/core/uintRanges.js +7 -7
- package/dist/cjs/core/uintRanges.js.map +1 -1
- package/dist/cjs/core/uintRanges.spec.js +21 -12
- package/dist/cjs/core/uintRanges.spec.js.map +1 -1
- package/dist/cjs/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/api-indexer/standards-info.d.ts +4 -0
- package/dist/esm/api-indexer/standards-info.d.ts.map +1 -1
- package/dist/esm/api-indexer/verify-standards.d.ts.map +1 -1
- package/dist/esm/api-indexer/verify-standards.js +11 -0
- package/dist/esm/api-indexer/verify-standards.js.map +1 -1
- package/dist/esm/builder/agent/tokenTypeInference.d.ts.map +1 -1
- package/dist/esm/builder/agent/tokenTypeInference.js +1 -0
- package/dist/esm/builder/agent/tokenTypeInference.js.map +1 -1
- package/dist/esm/builder/capabilities.spec.d.ts +2 -0
- package/dist/esm/builder/capabilities.spec.d.ts.map +1 -0
- package/dist/esm/builder/capabilities.spec.js +22 -0
- package/dist/esm/builder/capabilities.spec.js.map +1 -0
- package/dist/esm/builder/lifecycle-catalog.d.ts +4010 -0
- package/dist/esm/builder/lifecycle-catalog.d.ts.map +1 -0
- package/dist/esm/builder/lifecycle-catalog.js +83 -0
- package/dist/esm/builder/lifecycle-catalog.js.map +1 -0
- package/dist/esm/builder/lifecycle-catalog.spec.d.ts +2 -0
- package/dist/esm/builder/lifecycle-catalog.spec.d.ts.map +1 -0
- package/dist/esm/builder/lifecycle-catalog.spec.js +27 -0
- package/dist/esm/builder/lifecycle-catalog.spec.js.map +1 -0
- package/dist/esm/builder/lifecycle-fixtures.json +6895 -0
- package/dist/esm/builder/lifecycle.d.ts +322 -0
- package/dist/esm/builder/lifecycle.d.ts.map +1 -0
- package/dist/esm/builder/lifecycle.js +192 -0
- package/dist/esm/builder/lifecycle.js.map +1 -0
- package/dist/esm/builder/lifecycle.spec.d.ts +2 -0
- package/dist/esm/builder/lifecycle.spec.d.ts.map +1 -0
- package/dist/esm/builder/lifecycle.spec.js +129 -0
- package/dist/esm/builder/lifecycle.spec.js.map +1 -0
- package/dist/esm/builder/lifecycleIntent.d.ts +369 -0
- package/dist/esm/builder/lifecycleIntent.d.ts.map +1 -0
- package/dist/esm/builder/lifecycleIntent.js +59 -0
- package/dist/esm/builder/lifecycleIntent.js.map +1 -0
- package/dist/esm/builder/lifecycleIntent.spec.d.ts +2 -0
- package/dist/esm/builder/lifecycleIntent.spec.d.ts.map +1 -0
- package/dist/esm/builder/lifecycleIntent.spec.js +67 -0
- package/dist/esm/builder/lifecycleIntent.spec.js.map +1 -0
- package/dist/esm/builder/presets/prediction-market.d.ts.map +1 -1
- package/dist/esm/builder/presets/prediction-market.js +22 -21
- package/dist/esm/builder/presets/prediction-market.js.map +1 -1
- package/dist/esm/builder/resources/skillInstructions.d.ts +14 -0
- package/dist/esm/builder/resources/skillInstructions.d.ts.map +1 -1
- package/dist/esm/builder/resources/skillInstructions.js +315 -448
- package/dist/esm/builder/resources/skillInstructions.js.map +1 -1
- package/dist/esm/builder/resources/taskBundles.d.ts +18 -0
- package/dist/esm/builder/resources/taskBundles.d.ts.map +1 -0
- package/dist/esm/builder/resources/taskBundles.js +23 -0
- package/dist/esm/builder/resources/taskBundles.js.map +1 -0
- package/dist/esm/builder/resources/taskBundles.spec.d.ts +2 -0
- package/dist/esm/builder/resources/taskBundles.spec.d.ts.map +1 -0
- package/dist/esm/builder/resources/taskBundles.spec.js +31 -0
- package/dist/esm/builder/resources/taskBundles.spec.js.map +1 -0
- package/dist/esm/builder/server-transport.spec.d.ts +2 -0
- package/dist/esm/builder/server-transport.spec.d.ts.map +1 -0
- package/dist/esm/builder/server-transport.spec.js +25 -0
- package/dist/esm/builder/server-transport.spec.js.map +1 -0
- package/dist/esm/builder/server.d.ts.map +1 -1
- package/dist/esm/builder/server.js +13 -13
- package/dist/esm/builder/server.js.map +1 -1
- package/dist/esm/builder/session/artifactBinding.d.ts +8 -0
- package/dist/esm/builder/session/artifactBinding.d.ts.map +1 -0
- package/dist/esm/builder/session/artifactBinding.js +11 -0
- package/dist/esm/builder/session/artifactBinding.js.map +1 -0
- package/dist/esm/builder/session/artifactBinding.spec.d.ts +2 -0
- package/dist/esm/builder/session/artifactBinding.spec.d.ts.map +1 -0
- package/dist/esm/builder/session/artifactBinding.spec.js +84 -0
- package/dist/esm/builder/session/artifactBinding.spec.js.map +1 -0
- package/dist/esm/builder/session/fileStore.d.ts.map +1 -1
- package/dist/esm/builder/session/fileStore.js +3 -0
- package/dist/esm/builder/session/fileStore.js.map +1 -1
- package/dist/esm/builder/session/fileStore.spec.d.ts +2 -0
- package/dist/esm/builder/session/fileStore.spec.d.ts.map +1 -0
- package/dist/esm/builder/session/fileStore.spec.js +9 -0
- package/dist/esm/builder/session/fileStore.spec.js.map +1 -0
- package/dist/esm/builder/session/index.d.ts +1 -0
- package/dist/esm/builder/session/index.d.ts.map +1 -1
- package/dist/esm/builder/session/index.js +1 -0
- package/dist/esm/builder/session/index.js.map +1 -1
- package/dist/esm/builder/standards.d.ts +43 -0
- package/dist/esm/builder/standards.d.ts.map +1 -0
- package/dist/esm/builder/standards.js +283 -0
- package/dist/esm/builder/standards.js.map +1 -0
- package/dist/esm/builder/standards.spec.d.ts +2 -0
- package/dist/esm/builder/standards.spec.d.ts.map +1 -0
- package/dist/esm/builder/standards.spec.js +98 -0
- package/dist/esm/builder/standards.spec.js.map +1 -0
- package/dist/esm/builder/tools/builders/buildClaim.d.ts +9 -1
- package/dist/esm/builder/tools/builders/buildClaim.d.ts.map +1 -1
- package/dist/esm/builder/tools/builders/buildClaim.js +23 -9
- package/dist/esm/builder/tools/builders/buildClaim.js.map +1 -1
- package/dist/esm/builder/tools/builders/buildClaim.spec.d.ts +2 -0
- package/dist/esm/builder/tools/builders/buildClaim.spec.d.ts.map +1 -0
- package/dist/esm/builder/tools/builders/buildClaim.spec.js +31 -0
- package/dist/esm/builder/tools/builders/buildClaim.spec.js.map +1 -0
- package/dist/esm/builder/tools/builders/buildStandard.d.ts +2848 -0
- package/dist/esm/builder/tools/builders/buildStandard.d.ts.map +1 -0
- package/dist/esm/builder/tools/builders/buildStandard.js +18 -0
- package/dist/esm/builder/tools/builders/buildStandard.js.map +1 -0
- package/dist/esm/builder/tools/builders/buildStandard.spec.d.ts +2 -0
- package/dist/esm/builder/tools/builders/buildStandard.spec.d.ts.map +1 -0
- package/dist/esm/builder/tools/builders/buildStandard.spec.js +30 -0
- package/dist/esm/builder/tools/builders/buildStandard.spec.js.map +1 -0
- package/dist/esm/builder/tools/builders/index.d.ts +1 -0
- package/dist/esm/builder/tools/builders/index.d.ts.map +1 -1
- package/dist/esm/builder/tools/builders/index.js +1 -0
- package/dist/esm/builder/tools/builders/index.js.map +1 -1
- package/dist/esm/builder/tools/errors.d.ts +11 -0
- package/dist/esm/builder/tools/errors.d.ts.map +1 -0
- package/dist/esm/builder/tools/errors.js +15 -0
- package/dist/esm/builder/tools/errors.js.map +1 -0
- package/dist/esm/builder/tools/queries/buildTransfer.d.ts +2 -2
- package/dist/esm/builder/tools/queries/simulateTransaction.js +1 -1
- package/dist/esm/builder/tools/queries/simulateTransaction.js.map +1 -1
- package/dist/esm/builder/tools/queries/simulateTransaction.spec.d.ts +2 -0
- package/dist/esm/builder/tools/queries/simulateTransaction.spec.d.ts.map +1 -0
- package/dist/esm/builder/tools/queries/simulateTransaction.spec.js +15 -0
- package/dist/esm/builder/tools/queries/simulateTransaction.spec.js.map +1 -0
- package/dist/esm/builder/tools/queries/verifyOwnership.d.ts +4 -4
- package/dist/esm/builder/tools/registry.d.ts +26 -0
- package/dist/esm/builder/tools/registry.d.ts.map +1 -1
- package/dist/esm/builder/tools/registry.js +115 -5
- package/dist/esm/builder/tools/registry.js.map +1 -1
- package/dist/esm/builder/tools/registry.spec.js +23 -2
- package/dist/esm/builder/tools/registry.spec.js.map +1 -1
- package/dist/esm/builder/tools/standardActionExecutor.spec.d.ts +2 -0
- package/dist/esm/builder/tools/standardActionExecutor.spec.d.ts.map +1 -0
- package/dist/esm/builder/tools/standardActionExecutor.spec.js +21 -0
- package/dist/esm/builder/tools/standardActionExecutor.spec.js.map +1 -0
- package/dist/esm/builder/tools/standardActions.d.ts +17 -0
- package/dist/esm/builder/tools/standardActions.d.ts.map +1 -0
- package/dist/esm/builder/tools/standardActions.js +175 -0
- package/dist/esm/builder/tools/standardActions.js.map +1 -0
- package/dist/esm/builder/tools/standardActions.spec.d.ts +2 -0
- package/dist/esm/builder/tools/standardActions.spec.d.ts.map +1 -0
- package/dist/esm/builder/tools/standardActions.spec.js +61 -0
- package/dist/esm/builder/tools/standardActions.spec.js.map +1 -0
- package/dist/esm/builder/tools/utilities/fetchDocs.d.ts.map +1 -1
- package/dist/esm/builder/tools/utilities/fetchDocs.js +4 -1
- package/dist/esm/builder/tools/utilities/fetchDocs.js.map +1 -1
- package/dist/esm/builder/tools/utilities/validateTransaction.js +1 -1
- package/dist/esm/builder/tools/utilities/validateTransaction.js.map +1 -1
- package/dist/esm/builder/tools/utilities/validateTransaction.spec.js +2 -6
- package/dist/esm/builder/tools/utilities/validateTransaction.spec.js.map +1 -1
- package/dist/esm/cli/auth/brand.d.ts +2 -0
- package/dist/esm/cli/auth/brand.d.ts.map +1 -0
- package/dist/esm/cli/auth/brand.js +2 -0
- package/dist/esm/cli/auth/brand.js.map +1 -0
- package/dist/esm/cli/auth/browser-bridge.d.ts +2 -0
- package/dist/esm/cli/auth/browser-bridge.d.ts.map +1 -1
- package/dist/esm/cli/auth/browser-bridge.js +86 -21
- package/dist/esm/cli/auth/browser-bridge.js.map +1 -1
- package/dist/esm/cli/auth/browser-bridge.spec.js +93 -5
- package/dist/esm/cli/auth/browser-bridge.spec.js.map +1 -1
- package/dist/esm/cli/commands/auctions.js +1 -1
- package/dist/esm/cli/commands/auctions.js.map +1 -1
- package/dist/esm/cli/commands/build.d.ts.map +1 -1
- package/dist/esm/cli/commands/build.js +34 -2
- package/dist/esm/cli/commands/build.js.map +1 -1
- package/dist/esm/cli/commands/build.spec.js +2 -0
- package/dist/esm/cli/commands/build.spec.js.map +1 -1
- package/dist/esm/cli/commands/capabilities.d.ts +3 -0
- package/dist/esm/cli/commands/capabilities.d.ts.map +1 -0
- package/dist/esm/cli/commands/capabilities.js +15 -0
- package/dist/esm/cli/commands/capabilities.js.map +1 -0
- package/dist/esm/cli/commands/credit-tokens.d.ts.map +1 -1
- package/dist/esm/cli/commands/credit-tokens.js +58 -16
- package/dist/esm/cli/commands/credit-tokens.js.map +1 -1
- package/dist/esm/cli/commands/credit-tokens.spec.js +1 -1
- package/dist/esm/cli/commands/credit-tokens.spec.js.map +1 -1
- package/dist/esm/cli/commands/crowdfunds.js +3 -3
- package/dist/esm/cli/commands/crowdfunds.js.map +1 -1
- package/dist/esm/cli/commands/dev.d.ts.map +1 -1
- package/dist/esm/cli/commands/dev.js +6 -0
- package/dist/esm/cli/commands/dev.js.map +1 -1
- package/dist/esm/cli/commands/docs.d.ts.map +1 -1
- package/dist/esm/cli/commands/docs.js +10 -11
- package/dist/esm/cli/commands/docs.js.map +1 -1
- package/dist/esm/cli/commands/docs.spec.js +3 -1
- package/dist/esm/cli/commands/docs.spec.js.map +1 -1
- package/dist/esm/cli/commands/prediction-markets.d.ts.map +1 -1
- package/dist/esm/cli/commands/prediction-markets.js +37 -5
- package/dist/esm/cli/commands/prediction-markets.js.map +1 -1
- package/dist/esm/cli/commands/prediction-markets.spec.js +11 -0
- package/dist/esm/cli/commands/prediction-markets.spec.js.map +1 -1
- package/dist/esm/cli/commands/requests.d.ts +3 -0
- package/dist/esm/cli/commands/requests.d.ts.map +1 -0
- package/dist/esm/cli/commands/requests.js +41 -0
- package/dist/esm/cli/commands/requests.js.map +1 -0
- package/dist/esm/cli/commands/skills.d.ts.map +1 -1
- package/dist/esm/cli/commands/skills.js +18 -7
- package/dist/esm/cli/commands/skills.js.map +1 -1
- package/dist/esm/cli/commands/skills.spec.d.ts +2 -0
- package/dist/esm/cli/commands/skills.spec.d.ts.map +1 -0
- package/dist/esm/cli/commands/skills.spec.js +41 -0
- package/dist/esm/cli/commands/skills.spec.js.map +1 -0
- package/dist/esm/cli/commands/smart-tokens.d.ts.map +1 -1
- package/dist/esm/cli/commands/smart-tokens.js +52 -52
- package/dist/esm/cli/commands/smart-tokens.js.map +1 -1
- package/dist/esm/cli/commands/spendable-credits.d.ts +3 -0
- package/dist/esm/cli/commands/spendable-credits.d.ts.map +1 -0
- package/dist/esm/cli/commands/spendable-credits.js +76 -0
- package/dist/esm/cli/commands/spendable-credits.js.map +1 -0
- package/dist/esm/cli/commands/standards-catalog.d.ts +3 -0
- package/dist/esm/cli/commands/standards-catalog.d.ts.map +1 -0
- package/dist/esm/cli/commands/standards-catalog.js +15 -0
- package/dist/esm/cli/commands/standards-catalog.js.map +1 -0
- package/dist/esm/cli/commands/standards.d.ts +3 -0
- package/dist/esm/cli/commands/standards.d.ts.map +1 -0
- package/dist/esm/cli/commands/standards.js +21 -0
- package/dist/esm/cli/commands/standards.js.map +1 -0
- package/dist/esm/cli/commands/subscriptions-boundaries.spec.js +92 -4
- package/dist/esm/cli/commands/subscriptions-boundaries.spec.js.map +1 -1
- package/dist/esm/cli/commands/subscriptions-preservation.spec.d.ts +2 -0
- package/dist/esm/cli/commands/subscriptions-preservation.spec.d.ts.map +1 -0
- package/dist/esm/cli/commands/subscriptions-preservation.spec.js +77 -0
- package/dist/esm/cli/commands/subscriptions-preservation.spec.js.map +1 -0
- package/dist/esm/cli/commands/subscriptions.d.ts.map +1 -1
- package/dist/esm/cli/commands/subscriptions.js +87 -66
- package/dist/esm/cli/commands/subscriptions.js.map +1 -1
- package/dist/esm/cli/commands/swap-browser-signer.spec.js +12 -1
- package/dist/esm/cli/commands/swap-browser-signer.spec.js.map +1 -1
- package/dist/esm/cli/commands/tool.d.ts +1 -0
- package/dist/esm/cli/commands/tool.d.ts.map +1 -1
- package/dist/esm/cli/commands/tool.js +7 -2
- package/dist/esm/cli/commands/tool.js.map +1 -1
- package/dist/esm/cli/commands/tool.spec.d.ts +2 -0
- package/dist/esm/cli/commands/tool.spec.d.ts.map +1 -0
- package/dist/esm/cli/commands/tool.spec.js +18 -0
- package/dist/esm/cli/commands/tool.spec.js.map +1 -0
- package/dist/esm/cli/index.js +19 -4
- package/dist/esm/cli/index.js.map +1 -1
- package/dist/esm/cli/integration/cli-build-pipeline.spec.js +17 -2
- package/dist/esm/cli/integration/cli-build-pipeline.spec.js.map +1 -1
- package/dist/esm/cli/utils/browser-broadcast.spec.js +17 -1
- package/dist/esm/cli/utils/browser-broadcast.spec.js.map +1 -1
- package/dist/esm/cli/utils/browser-review.d.ts +918 -0
- package/dist/esm/cli/utils/browser-review.d.ts.map +1 -0
- package/dist/esm/cli/utils/browser-review.js +100 -0
- package/dist/esm/cli/utils/browser-review.js.map +1 -0
- package/dist/esm/cli/utils/browser-review.spec.d.ts +2 -0
- package/dist/esm/cli/utils/browser-review.spec.d.ts.map +1 -0
- package/dist/esm/cli/utils/browser-review.spec.js +62 -0
- package/dist/esm/cli/utils/browser-review.spec.js.map +1 -0
- package/dist/esm/cli/utils/collection-options.d.ts.map +1 -1
- package/dist/esm/cli/utils/collection-options.js +3 -13
- package/dist/esm/cli/utils/collection-options.js.map +1 -1
- package/dist/esm/cli/utils/collection-options.spec.js +6 -12
- package/dist/esm/cli/utils/collection-options.spec.js.map +1 -1
- package/dist/esm/cli/utils/deploy-options.d.ts.map +1 -1
- package/dist/esm/cli/utils/deploy-options.js +33 -11
- package/dist/esm/cli/utils/deploy-options.js.map +1 -1
- package/dist/esm/cli/utils/docs-cache.d.ts +1 -0
- package/dist/esm/cli/utils/docs-cache.d.ts.map +1 -1
- package/dist/esm/cli/utils/docs-cache.js +29 -50
- package/dist/esm/cli/utils/docs-cache.js.map +1 -1
- package/dist/esm/cli/utils/docs-cache.spec.d.ts +2 -0
- package/dist/esm/cli/utils/docs-cache.spec.d.ts.map +1 -0
- package/dist/esm/cli/utils/docs-cache.spec.js +27 -0
- package/dist/esm/cli/utils/docs-cache.spec.js.map +1 -0
- package/dist/esm/cli/utils/first-run.d.ts.map +1 -1
- package/dist/esm/cli/utils/first-run.js +7 -3
- package/dist/esm/cli/utils/first-run.js.map +1 -1
- package/dist/esm/cli/utils/json-options.d.ts +3 -0
- package/dist/esm/cli/utils/json-options.d.ts.map +1 -0
- package/dist/esm/cli/utils/json-options.js +22 -0
- package/dist/esm/cli/utils/json-options.js.map +1 -0
- package/dist/esm/cli/utils/json-options.spec.d.ts +2 -0
- package/dist/esm/cli/utils/json-options.spec.d.ts.map +1 -0
- package/dist/esm/cli/utils/json-options.spec.js +39 -0
- package/dist/esm/cli/utils/json-options.spec.js.map +1 -0
- package/dist/esm/cli/utils/normalizeMsg.d.ts.map +1 -1
- package/dist/esm/cli/utils/normalizeMsg.js +2 -0
- package/dist/esm/cli/utils/normalizeMsg.js.map +1 -1
- package/dist/esm/cli/utils/normalizeMsg.spec.js +10 -0
- package/dist/esm/cli/utils/normalizeMsg.spec.js.map +1 -1
- package/dist/esm/cli/utils/signing-requests.d.ts +50 -0
- package/dist/esm/cli/utils/signing-requests.d.ts.map +1 -0
- package/dist/esm/cli/utils/signing-requests.js +156 -0
- package/dist/esm/cli/utils/signing-requests.js.map +1 -0
- package/dist/esm/cli/utils/signing-requests.spec.d.ts +2 -0
- package/dist/esm/cli/utils/signing-requests.spec.d.ts.map +1 -0
- package/dist/esm/cli/utils/signing-requests.spec.js +152 -0
- package/dist/esm/cli/utils/signing-requests.spec.js.map +1 -0
- package/dist/esm/core/action-versions.spec.d.ts +2 -0
- package/dist/esm/core/action-versions.spec.d.ts.map +1 -0
- package/dist/esm/core/action-versions.spec.js +44 -0
- package/dist/esm/core/action-versions.spec.js.map +1 -0
- package/dist/esm/core/agent-review-ux.spec.d.ts +2 -0
- package/dist/esm/core/agent-review-ux.spec.d.ts.map +1 -0
- package/dist/esm/core/agent-review-ux.spec.js +83 -0
- package/dist/esm/core/agent-review-ux.spec.js.map +1 -0
- package/dist/esm/core/auctions.d.ts +1 -1
- package/dist/esm/core/auctions.d.ts.map +1 -1
- package/dist/esm/core/auctions.js +3 -3
- package/dist/esm/core/auctions.js.map +1 -1
- package/dist/esm/core/audit-backing.spec.d.ts +2 -0
- package/dist/esm/core/audit-backing.spec.d.ts.map +1 -0
- package/dist/esm/core/audit-backing.spec.js +49 -0
- package/dist/esm/core/audit-backing.spec.js.map +1 -0
- package/dist/esm/core/audit.d.ts.map +1 -1
- package/dist/esm/core/audit.js +10 -28
- package/dist/esm/core/audit.js.map +1 -1
- package/dist/esm/core/bounties.d.ts.map +1 -1
- package/dist/esm/core/bounties.js +12 -11
- package/dist/esm/core/bounties.js.map +1 -1
- package/dist/esm/core/bounties.spec.js +15 -14
- package/dist/esm/core/bounties.spec.js.map +1 -1
- package/dist/esm/core/browser-receipt.d.ts +29 -0
- package/dist/esm/core/browser-receipt.d.ts.map +1 -0
- package/dist/esm/core/browser-receipt.js +153 -0
- package/dist/esm/core/browser-receipt.js.map +1 -0
- package/dist/esm/core/browser-receipt.spec.d.ts +2 -0
- package/dist/esm/core/browser-receipt.spec.d.ts.map +1 -0
- package/dist/esm/core/browser-receipt.spec.js +104 -0
- package/dist/esm/core/browser-receipt.spec.js.map +1 -0
- package/dist/esm/core/browser-signing.d.ts +2397 -16
- package/dist/esm/core/browser-signing.d.ts.map +1 -1
- package/dist/esm/core/browser-signing.js +27 -1
- package/dist/esm/core/browser-signing.js.map +1 -1
- package/dist/esm/core/builders/address-list.d.ts.map +1 -1
- package/dist/esm/core/builders/address-list.js +2 -0
- package/dist/esm/core/builders/address-list.js.map +1 -1
- package/dist/esm/core/builders/auction.d.ts.map +1 -1
- package/dist/esm/core/builders/auction.js +2 -0
- package/dist/esm/core/builders/auction.js.map +1 -1
- package/dist/esm/core/builders/bid.d.ts.map +1 -1
- package/dist/esm/core/builders/bid.js +2 -0
- package/dist/esm/core/builders/bid.js.map +1 -1
- package/dist/esm/core/builders/bounty.d.ts.map +1 -1
- package/dist/esm/core/builders/bounty.js +2 -0
- package/dist/esm/core/builders/bounty.js.map +1 -1
- package/dist/esm/core/builders/credit-token.d.ts.map +1 -1
- package/dist/esm/core/builders/credit-token.js +2 -0
- package/dist/esm/core/builders/credit-token.js.map +1 -1
- package/dist/esm/core/builders/crowdfund.d.ts.map +1 -1
- package/dist/esm/core/builders/crowdfund.js +2 -0
- package/dist/esm/core/builders/crowdfund.js.map +1 -1
- package/dist/esm/core/builders/custom-2fa.d.ts.map +1 -1
- package/dist/esm/core/builders/custom-2fa.js +2 -0
- package/dist/esm/core/builders/custom-2fa.js.map +1 -1
- package/dist/esm/core/builders/index.d.ts +2 -0
- package/dist/esm/core/builders/index.d.ts.map +1 -1
- package/dist/esm/core/builders/index.js +2 -0
- package/dist/esm/core/builders/index.js.map +1 -1
- package/dist/esm/core/builders/input-examples.json +136 -0
- package/dist/esm/core/builders/input-schemas.d.ts +2926 -0
- package/dist/esm/core/builders/input-schemas.d.ts.map +1 -0
- package/dist/esm/core/builders/input-schemas.generated.json +838 -0
- package/dist/esm/core/builders/input-schemas.js +34 -0
- package/dist/esm/core/builders/input-schemas.js.map +1 -0
- package/dist/esm/core/builders/input-schemas.spec.d.ts +2 -0
- package/dist/esm/core/builders/input-schemas.spec.d.ts.map +1 -0
- package/dist/esm/core/builders/input-schemas.spec.js +17 -0
- package/dist/esm/core/builders/input-schemas.spec.js.map +1 -0
- package/dist/esm/core/builders/intent.d.ts.map +1 -1
- package/dist/esm/core/builders/intent.js +2 -0
- package/dist/esm/core/builders/intent.js.map +1 -1
- package/dist/esm/core/builders/listing.d.ts.map +1 -1
- package/dist/esm/core/builders/listing.js +2 -0
- package/dist/esm/core/builders/listing.js.map +1 -1
- package/dist/esm/core/builders/payment-request.d.ts.map +1 -1
- package/dist/esm/core/builders/payment-request.js +2 -0
- package/dist/esm/core/builders/payment-request.js.map +1 -1
- package/dist/esm/core/builders/pm-buy-intent.d.ts.map +1 -1
- package/dist/esm/core/builders/pm-buy-intent.js +2 -0
- package/dist/esm/core/builders/pm-buy-intent.js.map +1 -1
- package/dist/esm/core/builders/pm-sell-intent.d.ts.map +1 -1
- package/dist/esm/core/builders/pm-sell-intent.js +2 -0
- package/dist/esm/core/builders/pm-sell-intent.js.map +1 -1
- package/dist/esm/core/builders/prediction-market.d.ts.map +1 -1
- package/dist/esm/core/builders/prediction-market.js +4 -2
- package/dist/esm/core/builders/prediction-market.js.map +1 -1
- package/dist/esm/core/builders/product-catalog.d.ts +1 -0
- package/dist/esm/core/builders/product-catalog.d.ts.map +1 -1
- package/dist/esm/core/builders/product-catalog.js +8 -1
- package/dist/esm/core/builders/product-catalog.js.map +1 -1
- package/dist/esm/core/builders/product-catalog.spec.d.ts +2 -0
- package/dist/esm/core/builders/product-catalog.spec.d.ts.map +1 -0
- package/dist/esm/core/builders/product-catalog.spec.js +38 -0
- package/dist/esm/core/builders/product-catalog.spec.js.map +1 -0
- package/dist/esm/core/builders/quests.d.ts.map +1 -1
- package/dist/esm/core/builders/quests.js +2 -0
- package/dist/esm/core/builders/quests.js.map +1 -1
- package/dist/esm/core/builders/smart-token.d.ts.map +1 -1
- package/dist/esm/core/builders/smart-token.js +2 -0
- package/dist/esm/core/builders/smart-token.js.map +1 -1
- package/dist/esm/core/builders/spendable-credit.d.ts +21 -0
- package/dist/esm/core/builders/spendable-credit.d.ts.map +1 -0
- package/dist/esm/core/builders/spendable-credit.js +96 -0
- package/dist/esm/core/builders/spendable-credit.js.map +1 -0
- package/dist/esm/core/builders/spendable-credit.spec.d.ts +2 -0
- package/dist/esm/core/builders/spendable-credit.spec.d.ts.map +1 -0
- package/dist/esm/core/builders/spendable-credit.spec.js +78 -0
- package/dist/esm/core/builders/spendable-credit.spec.js.map +1 -0
- package/dist/esm/core/builders/subscription.d.ts.map +1 -1
- package/dist/esm/core/builders/subscription.js +2 -0
- package/dist/esm/core/builders/subscription.js.map +1 -1
- package/dist/esm/core/builders/vault.d.ts.map +1 -1
- package/dist/esm/core/builders/vault.js +2 -0
- package/dist/esm/core/builders/vault.js.map +1 -1
- package/dist/esm/core/credit-tokens.d.ts +33 -0
- package/dist/esm/core/credit-tokens.d.ts.map +1 -1
- package/dist/esm/core/credit-tokens.js +65 -13
- package/dist/esm/core/credit-tokens.js.map +1 -1
- package/dist/esm/core/credit-tokens.spec.js +69 -8
- package/dist/esm/core/credit-tokens.spec.js.map +1 -1
- package/dist/esm/core/crowdfunds.d.ts +1 -1
- package/dist/esm/core/crowdfunds.d.ts.map +1 -1
- package/dist/esm/core/crowdfunds.js +6 -6
- package/dist/esm/core/crowdfunds.js.map +1 -1
- package/dist/esm/core/index.d.ts +4 -0
- package/dist/esm/core/index.d.ts.map +1 -1
- package/dist/esm/core/index.js +4 -0
- package/dist/esm/core/index.js.map +1 -1
- package/dist/esm/core/intent.d.ts +423 -0
- package/dist/esm/core/intent.d.ts.map +1 -0
- package/dist/esm/core/intent.js +231 -0
- package/dist/esm/core/intent.js.map +1 -0
- package/dist/esm/core/intent.spec.d.ts +2 -0
- package/dist/esm/core/intent.spec.d.ts.map +1 -0
- package/dist/esm/core/intent.spec.js +103 -0
- package/dist/esm/core/intent.spec.js.map +1 -0
- package/dist/esm/core/interpret-shared.d.ts.map +1 -1
- package/dist/esm/core/interpret-shared.js +20 -5
- package/dist/esm/core/interpret-shared.js.map +1 -1
- package/dist/esm/core/interpret-transaction.d.ts.map +1 -1
- package/dist/esm/core/interpret-transaction.js +6 -3
- package/dist/esm/core/interpret-transaction.js.map +1 -1
- package/dist/esm/core/payment-requests-v2-schema.spec.js +1 -1
- package/dist/esm/core/payment-requests-v2-validation.spec.js +1 -1
- package/dist/esm/core/payment-requests-v2.spec.js +1 -1
- package/dist/esm/core/payment-requests.d.ts.map +1 -1
- package/dist/esm/core/payment-requests.js +15 -7
- package/dist/esm/core/payment-requests.js.map +1 -1
- package/dist/esm/core/payment-requests.spec.js +25 -0
- package/dist/esm/core/payment-requests.spec.js.map +1 -1
- package/dist/esm/core/prediction-markets.d.ts +39 -0
- package/dist/esm/core/prediction-markets.d.ts.map +1 -1
- package/dist/esm/core/prediction-markets.js +185 -27
- package/dist/esm/core/prediction-markets.js.map +1 -1
- package/dist/esm/core/prediction-redemption.spec.d.ts +2 -0
- package/dist/esm/core/prediction-redemption.spec.d.ts.map +1 -0
- package/dist/esm/core/prediction-redemption.spec.js +121 -0
- package/dist/esm/core/prediction-redemption.spec.js.map +1 -0
- package/dist/esm/core/products.d.ts +1 -0
- package/dist/esm/core/products.d.ts.map +1 -1
- package/dist/esm/core/products.js +3 -2
- package/dist/esm/core/products.js.map +1 -1
- package/dist/esm/core/review-normalize.d.ts.map +1 -1
- package/dist/esm/core/review-normalize.js +6 -3
- package/dist/esm/core/review-normalize.js.map +1 -1
- package/dist/esm/core/smart-tokens.d.ts +26 -3
- package/dist/esm/core/smart-tokens.d.ts.map +1 -1
- package/dist/esm/core/smart-tokens.js +181 -36
- package/dist/esm/core/smart-tokens.js.map +1 -1
- package/dist/esm/core/smart-tokens.spec.js +41 -1
- package/dist/esm/core/smart-tokens.spec.js.map +1 -1
- package/dist/esm/core/spendable-credits-evm.spec.d.ts +2 -0
- package/dist/esm/core/spendable-credits-evm.spec.d.ts.map +1 -0
- package/dist/esm/core/spendable-credits-evm.spec.js +95 -0
- package/dist/esm/core/spendable-credits-evm.spec.js.map +1 -0
- package/dist/esm/core/spendable-credits.d.ts +124 -0
- package/dist/esm/core/spendable-credits.d.ts.map +1 -0
- package/dist/esm/core/spendable-credits.js +249 -0
- package/dist/esm/core/spendable-credits.js.map +1 -0
- package/dist/esm/core/spendable-credits.spec.d.ts +2 -0
- package/dist/esm/core/spendable-credits.spec.d.ts.map +1 -0
- package/dist/esm/core/spendable-credits.spec.js +158 -0
- package/dist/esm/core/spendable-credits.spec.js.map +1 -0
- package/dist/esm/core/standard-inspection.d.ts +20 -0
- package/dist/esm/core/standard-inspection.d.ts.map +1 -0
- package/dist/esm/core/standard-inspection.js +155 -0
- package/dist/esm/core/standard-inspection.js.map +1 -0
- package/dist/esm/core/standard-inspection.spec.d.ts +2 -0
- package/dist/esm/core/standard-inspection.spec.d.ts.map +1 -0
- package/dist/esm/core/standard-inspection.spec.js +56 -0
- package/dist/esm/core/standard-inspection.spec.js.map +1 -0
- package/dist/esm/core/subscription-access.spec.d.ts +2 -0
- package/dist/esm/core/subscription-access.spec.d.ts.map +1 -0
- package/dist/esm/core/subscription-access.spec.js +35 -0
- package/dist/esm/core/subscription-access.spec.js.map +1 -0
- package/dist/esm/core/subscriptions.d.ts +35 -0
- package/dist/esm/core/subscriptions.d.ts.map +1 -1
- package/dist/esm/core/subscriptions.js +38 -5
- package/dist/esm/core/subscriptions.js.map +1 -1
- package/dist/esm/core/subscriptions.spec.js +28 -1
- package/dist/esm/core/subscriptions.spec.js.map +1 -1
- package/dist/esm/core/uintRanges.d.ts.map +1 -1
- package/dist/esm/core/uintRanges.js +7 -7
- package/dist/esm/core/uintRanges.js.map +1 -1
- package/dist/esm/core/uintRanges.spec.js +21 -12
- package/dist/esm/core/uintRanges.spec.js.map +1 -1
- package/dist/esm/tsconfig-esm.build.tsbuildinfo +1 -1
- package/package.json +12 -5
|
@@ -13,6 +13,44 @@ exports.formatSkillInstructionsForDisplay = formatSkillInstructionsForDisplay;
|
|
|
13
13
|
exports.SKILL_INSTRUCTIONS = [
|
|
14
14
|
{
|
|
15
15
|
id: 'smart-token',
|
|
16
|
+
contract: {
|
|
17
|
+
"version": 1,
|
|
18
|
+
"prerequisites": [
|
|
19
|
+
"Confirm signer and network before handoff.",
|
|
20
|
+
"Record exact user requirements separately from external metadata."
|
|
21
|
+
],
|
|
22
|
+
"postconditions": ["Generated artifact matches the confirmed input parameters and explicit user intent.", "Structural checks and lifecycle evidence remain separately scoped; unsigned output is not deployed."],
|
|
23
|
+
"examplePostconditions": [
|
|
24
|
+
"Prepare a new collection",
|
|
25
|
+
"Disallow forceful post-mint transfers",
|
|
26
|
+
"Only deposit and withdrawal approvals",
|
|
27
|
+
"One backing base unit converts to one token unit",
|
|
28
|
+
"No pool creation",
|
|
29
|
+
"Deposit uses backed-minting path",
|
|
30
|
+
"Withdrawal uses backed path",
|
|
31
|
+
"Deposit and withdrawal rules are immutable"
|
|
32
|
+
],
|
|
33
|
+
"clarifications": [
|
|
34
|
+
"Confirm recipient, asset identity and intended manager powers."
|
|
35
|
+
],
|
|
36
|
+
"unsupported": [
|
|
37
|
+
"Unsigned builder proposal only; signer and manager must be bound before deployment.",
|
|
38
|
+
"Artifact constraints only. No chain execution, wallet signing, live balance checks or external service verification.",
|
|
39
|
+
"Recipient payment excludes protocol fees and transaction gas."
|
|
40
|
+
],
|
|
41
|
+
"goldenScenarioIds": [
|
|
42
|
+
"backed-token"
|
|
43
|
+
],
|
|
44
|
+
"example": {
|
|
45
|
+
"tool": "build_smart_token",
|
|
46
|
+
"input": {
|
|
47
|
+
"uri": "ipfs://METADATA_COLLECTION",
|
|
48
|
+
"backingCoin": "BADGE",
|
|
49
|
+
"symbol": "vBADGE",
|
|
50
|
+
"tradable": false
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
16
54
|
name: 'Smart Token',
|
|
17
55
|
category: 'token-type',
|
|
18
56
|
description: 'IBC-backed smart token with 1:1 backing and two required approvals (backing + unbacking)',
|
|
@@ -821,6 +859,49 @@ IMPORTANT: predeterminedBalances and approvalAmounts are INCOMPATIBLE — use on
|
|
|
821
859
|
},
|
|
822
860
|
{
|
|
823
861
|
id: 'subscription',
|
|
862
|
+
contract: {
|
|
863
|
+
"version": 1,
|
|
864
|
+
"prerequisites": [
|
|
865
|
+
"Confirm signer and network before handoff.",
|
|
866
|
+
"Record exact user requirements separately from external metadata."
|
|
867
|
+
],
|
|
868
|
+
"postconditions": ["Generated artifact matches the confirmed input parameters and explicit user intent.", "Structural checks and lifecycle evidence remain separately scoped; unsigned output is not deployed."],
|
|
869
|
+
"examplePostconditions": [
|
|
870
|
+
"Prepare a new collection",
|
|
871
|
+
"Disallow forceful post-mint transfers",
|
|
872
|
+
"No initial holder-transfer approval",
|
|
873
|
+
"Membership originates at Mint",
|
|
874
|
+
"Exactly 5 BADGE to the merchant; initiator pays",
|
|
875
|
+
"Exactly 30 days in milliseconds",
|
|
876
|
+
"One period per mint",
|
|
877
|
+
"Mint approval permissions remain locked for every token and time",
|
|
878
|
+
"Do not bypass recipient incoming approvals"
|
|
879
|
+
],
|
|
880
|
+
"clarifications": [
|
|
881
|
+
"Calendar month or 30 days?"
|
|
882
|
+
],
|
|
883
|
+
"unsupported": [
|
|
884
|
+
"Unsigned builder proposal only; signer and manager must be bound before deployment.",
|
|
885
|
+
"Artifact constraints only. No chain execution, wallet signing, live balance checks or external service verification.",
|
|
886
|
+
"Initial holder-transfer restriction is checked; the builder retains manager ability to add non-mint transfer approvals. This is not immutable non-transferability.",
|
|
887
|
+
"Recipient payment excludes protocol fees and transaction gas."
|
|
888
|
+
],
|
|
889
|
+
"goldenScenarioIds": [
|
|
890
|
+
"subscription-fixed-price"
|
|
891
|
+
],
|
|
892
|
+
"example": {
|
|
893
|
+
"tool": "build_subscription",
|
|
894
|
+
"input": {
|
|
895
|
+
"uri": "ipfs://METADATA_COLLECTION",
|
|
896
|
+
"interval": "30d",
|
|
897
|
+
"price": 5,
|
|
898
|
+
"denom": "BADGE",
|
|
899
|
+
"recipient": "bb1zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zql3w7",
|
|
900
|
+
"transferable": false,
|
|
901
|
+
"updatableMint": false
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
},
|
|
824
905
|
name: 'Subscription',
|
|
825
906
|
category: 'token-type',
|
|
826
907
|
description: 'Time-based subscription token with recurring payment approvals and auto-deletion on expiry',
|
|
@@ -1758,9 +1839,125 @@ add_preset_approval({ presetId: "tradable.transferable", params: {} })
|
|
|
1758
1839
|
- Typically used with NFT collections
|
|
1759
1840
|
- The currency denom determines how prices are displayed in marketplaces
|
|
1760
1841
|
- Legacy names "Tradable" and "DefaultDisplayCurrency" still work for existing collections`
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
id: 'spendable-credit',
|
|
1845
|
+
contract: {
|
|
1846
|
+
"version": 1,
|
|
1847
|
+
"prerequisites": [
|
|
1848
|
+
"Confirm signer and network before handoff.",
|
|
1849
|
+
"Record exact user requirements separately from external metadata."
|
|
1850
|
+
],
|
|
1851
|
+
"postconditions": ["Generated artifact matches the confirmed input parameters and explicit user intent.", "Structural checks and lifecycle evidence remain separately scoped; unsigned output is not deployed."],
|
|
1852
|
+
"examplePostconditions": [
|
|
1853
|
+
"Prepare a new collection",
|
|
1854
|
+
"Disallow forceful post-mint transfers",
|
|
1855
|
+
"Only purchase and consumption paths",
|
|
1856
|
+
"Payment goes to the service provider",
|
|
1857
|
+
"Ten credits per pack",
|
|
1858
|
+
"At most three packs per purchase",
|
|
1859
|
+
"Only holder-initiated consumption",
|
|
1860
|
+
"Consumption sends credits to burn address",
|
|
1861
|
+
"Purchase expiry is inclusive",
|
|
1862
|
+
"Consumption shares expiry",
|
|
1863
|
+
"Purchase and consumption terms cannot be changed"
|
|
1864
|
+
],
|
|
1865
|
+
"clarifications": [
|
|
1866
|
+
"Confirm recipient, asset identity and intended manager powers."
|
|
1867
|
+
],
|
|
1868
|
+
"unsupported": [
|
|
1869
|
+
"Unsigned builder proposal only; signer and manager must be bound before deployment.",
|
|
1870
|
+
"Artifact constraints only. No chain execution, wallet signing, live balance checks or external service verification.",
|
|
1871
|
+
"Recipient payment excludes protocol fees and transaction gas."
|
|
1872
|
+
],
|
|
1873
|
+
"goldenScenarioIds": [
|
|
1874
|
+
"spendable-service-credits"
|
|
1875
|
+
],
|
|
1876
|
+
"example": {
|
|
1877
|
+
"tool": "build_spendable_credit",
|
|
1878
|
+
"input": {
|
|
1879
|
+
"uri": "ipfs://METADATA_COLLECTION",
|
|
1880
|
+
"paymentDenom": "BADGE",
|
|
1881
|
+
"provider": "bb1xvenxvenxvenxvenxvenxvenxvenxvenlrd2nm",
|
|
1882
|
+
"serviceId": "image-generation",
|
|
1883
|
+
"purchaseOptions": [
|
|
1884
|
+
{
|
|
1885
|
+
"pricePerPack": "1000000",
|
|
1886
|
+
"creditsPerPack": "10",
|
|
1887
|
+
"purchaseType": "scaled",
|
|
1888
|
+
"maxPacks": "3"
|
|
1889
|
+
}
|
|
1890
|
+
],
|
|
1891
|
+
"expiresAt": "1896048000000"
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
},
|
|
1895
|
+
name: 'Spendable Credit',
|
|
1896
|
+
category: 'token-type',
|
|
1897
|
+
description: 'Immutable whole service credits: purchase fixed or scaled packs, then consume on chain for a provider-issued request. Nontransferable; requires provider receipt verification.',
|
|
1898
|
+
referenceCollectionIds: [],
|
|
1899
|
+
summary: `Required standards: ["Spendable Credit"]
|
|
1900
|
+
|
|
1901
|
+
- Build with build_standard type spendable-credit or bb build spendable-credit.
|
|
1902
|
+
- Provider, serviceId, payment asset, expiry and approvals are immutable.
|
|
1903
|
+
- Purchase options are fixed or scaled whole packs, with optional per-purchase maximum; omitted maximum uses safe uint64 limits.
|
|
1904
|
+
- Only the holder may consume whole credits. No peer transfer, wrapper, merchant debit or automatic refund.
|
|
1905
|
+
- Service requires confirmed receipt verification and durable authenticated request deduplication, never a sign-in balance.`,
|
|
1906
|
+
instructions: `## Spendable Credit Configuration
|
|
1907
|
+
|
|
1908
|
+
Use the dedicated builder; do not retrofit consumption into Credit Token collections.
|
|
1909
|
+
Set provider (valid bb1 address), serviceId, paymentDenom and metadata. Supply purchaseOptions with pricePerPack (payment base units), creditsPerPack (whole credits), purchaseType (fixed or scaled), and optional maxPacks. Legacy top-level pricePerPack and creditsPerPack represent one unlimited scaled option; do not combine both forms. Optional expiresAt is inclusive Unix milliseconds and limits purchase and consumption.
|
|
1910
|
+
|
|
1911
|
+
The profile freezes approvals, uses only token 1 and permanent ownership times, prevents peer transfers and wrappers, and permits only paid mint plus holder-authorized burn. Do not add custom approvals or permission overrides: strict inspection must reject them.
|
|
1912
|
+
|
|
1913
|
+
Read terms with bb spendable-credits show. Quote with bb spendable-credits quote COLLECTION --units PACKS, and purchase with bb spendable-credits purchase COLLECTION --creator WALLET --units PACKS. Multiple options require --approval-id. Packs must be whole; do not round user payments or fractional service units. Per-purchase caps do not limit lifetime purchases.
|
|
1914
|
+
|
|
1915
|
+
Consume with bb spendable-credits consume COLLECTION --creator WALLET --units CREDITS --request-id REQUEST. First obtain an authenticated provider-issued request. The provider must fetch a successful confirmed native execution, verify holder, collection, provider, service, exact units and request ID, and atomically deduplicate request and receipt. EVM receipt status alone is insufficient; verified native tokenization execution is required. Never put private request credentials in transaction memos or public URLs.
|
|
1916
|
+
|
|
1917
|
+
After ambiguous submission, reconcile the same transaction rather than burn again. A burn does not atomically deliver an external service: providers need idempotent fulfillment, durable retries and a disclosed failure policy. Expired credits cannot be spent, but prior confirmed receipts remain claimable. There is no standing debit consent to revoke.
|
|
1918
|
+
|
|
1919
|
+
See docs/spendable-credits.md and examples/spendable-credit-provider for the authenticated durable integration. The increment-only Credit Token standard remains available when the provider tracks usage separately.`
|
|
1761
1920
|
},
|
|
1762
1921
|
{
|
|
1763
1922
|
id: 'credit-token',
|
|
1923
|
+
contract: {
|
|
1924
|
+
"version": 1,
|
|
1925
|
+
"prerequisites": [
|
|
1926
|
+
"Confirm signer and network before handoff.",
|
|
1927
|
+
"Record exact user requirements separately from external metadata."
|
|
1928
|
+
],
|
|
1929
|
+
"postconditions": ["Generated artifact matches the confirmed input parameters and explicit user intent.", "Structural checks and lifecycle evidence remain separately scoped; unsigned output is not deployed."],
|
|
1930
|
+
"examplePostconditions": [
|
|
1931
|
+
"Prepare a new collection",
|
|
1932
|
+
"Disallow forceful post-mint transfers",
|
|
1933
|
+
"Only the purchase approval exists",
|
|
1934
|
+
"One BADGE base unit per multiplier",
|
|
1935
|
+
"37 credit units per multiplier",
|
|
1936
|
+
"Allow whole multiples of the purchase",
|
|
1937
|
+
"Purchase terms cannot be changed",
|
|
1938
|
+
"Credits cannot enter liquidity pools"
|
|
1939
|
+
],
|
|
1940
|
+
"clarifications": [
|
|
1941
|
+
"Confirm recipient, asset identity and intended manager powers."
|
|
1942
|
+
],
|
|
1943
|
+
"unsupported": [
|
|
1944
|
+
"Unsigned builder proposal only; signer and manager must be bound before deployment.",
|
|
1945
|
+
"Artifact constraints only. No chain execution, wallet signing, live balance checks or external service verification.",
|
|
1946
|
+
"Recipient payment excludes protocol fees and transaction gas."
|
|
1947
|
+
],
|
|
1948
|
+
"goldenScenarioIds": [
|
|
1949
|
+
"purchasable-credits"
|
|
1950
|
+
],
|
|
1951
|
+
"example": {
|
|
1952
|
+
"tool": "build_credit_token",
|
|
1953
|
+
"input": {
|
|
1954
|
+
"uri": "ipfs://METADATA_COLLECTION",
|
|
1955
|
+
"paymentDenom": "BADGE",
|
|
1956
|
+
"recipient": "bb1zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zql3w7",
|
|
1957
|
+
"tokensPerUnit": 37
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
},
|
|
1764
1961
|
name: 'Credit Token',
|
|
1765
1962
|
category: 'token-type',
|
|
1766
1963
|
description: 'Increment-only, non-transferable credit token purchased with any ICS20 denom. Users pay X of a denom and receive Y tokens as credits/proof of payment. For a 1:1 backed token with on-chain transferability, use the Smart Token standard instead.',
|
|
@@ -1780,7 +1977,7 @@ add_preset_approval({ presetId: "tradable.transferable", params: {} })
|
|
|
1780
1977
|
|
|
1781
1978
|
### Concept
|
|
1782
1979
|
|
|
1783
|
-
A Credit Token is an increment-only, non-transferable fungible token that users purchase with an ICS20 denom (USDC, ATOM, BADGE, etc.). Tokens serve as
|
|
1980
|
+
A Credit Token is an increment-only, non-transferable fungible token that users purchase with an ICS20 denom (USDC, ATOM, BADGE, etc.). Tokens serve as cumulative proof of payment; remaining usage is tracked separately by the provider. For holder-authorized on-chain consumption with verified service receipts, use Spendable Credit. This is a one-way system — tokens can only be minted (incremented), never sold back, burned, or transferred between users. For a 1:1 backed token with on-chain transferability, use the Smart Token standard instead.
|
|
1784
1981
|
|
|
1785
1982
|
### Payment Flow
|
|
1786
1983
|
|
|
@@ -1788,14 +1985,20 @@ When a user mints credit tokens, the payment (coinTransfers) goes directly to a
|
|
|
1788
1985
|
|
|
1789
1986
|
### Usage Pattern: totalUsed / totalCreditsPaidFor
|
|
1790
1987
|
|
|
1988
|
+
### Exact Purchase Quotes
|
|
1989
|
+
|
|
1990
|
+
Use \`bb credit-tokens quote <id> --units <integer>\` before \`bb credit-tokens purchase\`. Units are an integer multiplier of raw approval terms, not display credits. Quotes show exact payment and mint base amounts, recipient, ratio, and display amounts when decimal metadata is known. Unknown display metadata is null. Oversized requests are rejected, never capped silently; legacy tiers require exactly one pack. Multiple tiers require explicit \`--tier\` selection. MCP exposes the same operation as \`standard_credit_tokens_quote\`.
|
|
1991
|
+
|
|
1992
|
+
Quotes do not establish eligibility, reserve capacity, include fees, or authorize spending. Re-read and simulate before signing. Purchased credits are not remaining credits: the service provider owns authenticated usage accounting, and the generic quote returns remainingCredits: null.
|
|
1993
|
+
|
|
1791
1994
|
Credit tokens are designed for systems that track consumption off-chain. The on-chain token balance represents \`totalCreditsPaidFor\` — the total credits ever purchased. An off-chain system tracks \`totalUsed\`. The remaining budget is simply \`balance - totalUsed\`.
|
|
1792
1995
|
|
|
1793
|
-
**Example: BitBadges API Credits (
|
|
1996
|
+
**Example: BitBadges API Credits (mainnet collection 84; local collection 23, APITOKEN)**
|
|
1794
1997
|
- User purchases 10 USDC → receives 1,000,000 APITOKEN (on-chain balance = 1,000,000)
|
|
1795
1998
|
- User makes API calls (including the AI Builder) → backend tracks \`totalUsed\` (e.g., 250,000 APITOKEN used)
|
|
1796
1999
|
- Remaining budget = on-chain balance (1,000,000) - totalUsed (250,000) = 750,000
|
|
1797
|
-
- User purchases 5 more USDC → on-chain balance increments to
|
|
1798
|
-
- Remaining budget =
|
|
2000
|
+
- User purchases 5 more USDC → on-chain balance increments to 1,500,000
|
|
2001
|
+
- Remaining budget = 1,500,000 - 250,000 = 1,250,000
|
|
1799
2002
|
- The balance only ever goes up (increment-only). The off-chain \`totalUsed\` only ever goes up. Budget = balance - totalUsed.
|
|
1800
2003
|
|
|
1801
2004
|
### Required Structure
|
|
@@ -2303,466 +2506,64 @@ Without this, the escrow has no funds and claims will fail.
|
|
|
2303
2506
|
category: 'token-type',
|
|
2304
2507
|
description: 'Binary prediction market with YES/NO outcome tokens, liquidity pool trading, and vote-based settlement',
|
|
2305
2508
|
summary: `Required standards: ["Prediction Market"]
|
|
2509
|
+
- Use bb build prediction-market; YES token 1 and NO token 2 are collateralized pairs.
|
|
2510
|
+
- Deposit 1 collateral base unit to mint 1 YES and 1 NO base unit; pair redemption reverses this.
|
|
2511
|
+
- Winner burns 1 raw unit for 1 collateral base unit. Push burns 2 raw units for 1 collateral base unit.
|
|
2512
|
+
- New markets support repeated consuming redemptions. Frozen legacy markets may allow only one claim per initiator.
|
|
2513
|
+
- The verifier controls mutable voting challenges. This is NOT an immutable, mutually exclusive outcome oracle.
|
|
2514
|
+
- Quote before proposing; never silently discard odd push dust or burn losing positions.
|
|
2515
|
+
- Preserve frozen permissions, no-forceful-transfer invariant and escrow-funded payout routing.`,
|
|
2516
|
+
instructions: `## Prediction Markets
|
|
2306
2517
|
|
|
2307
|
-
|
|
2308
|
-
- Token ID 1 = YES, Token ID 2 = NO (via alias paths with 6 decimals)
|
|
2309
|
-
- mintEscrowAddress holds all deposited USDC
|
|
2310
|
-
- invariants: \\\`noForcefulPostMintTransfers: true\\\` — locks non-mint approvals (redeem, settlement, transferable) from using \\\`overridesFromOutgoingApprovals\\\` or \\\`overridesToIncomingApprovals\\\`. Non-mint approvals rely on \\\`defaultBalances.autoApproveSelfInitiatedOutgoingTransfers: true\\\` for outgoing-side auth and on the burn destination for incoming-side auth
|
|
2311
|
-
- All permissions frozen after creation
|
|
2312
|
-
- 7 approvals: paired mint, freely transferable, pre-settlement redeem, yes-wins, no-wins, push-yes, push-no
|
|
2313
|
-
- Alias paths for YES (token 1) and NO (token 2) with 6 decimals
|
|
2314
|
-
- Settlement via votingChallenges with 1-of-1 multisig verifier
|
|
2315
|
-
- Liquidity pool: MsgCreateBalancerPool with badgeslp:collectionId:uyes and badgeslp:collectionId:uno, equal weights
|
|
2316
|
-
- DON'T use Smart Token standard — this uses mintEscrowAddress, not invariant paths
|
|
2317
|
-
- DON'T forget votingChallenges on settlement approvals
|
|
2318
|
-
- DON'T set maxNumTransfers on mint/redeem (should be unlimited = 0)
|
|
2319
|
-
- DON'T forget to freeze all permissions
|
|
2320
|
-
- DON'T forget predeterminedBalances with BOTH token IDs in paired mint/redeem
|
|
2321
|
-
- DON'T set overrideFromWithApproverAddress on the deposit coinTransfer (filler pays, not escrow)`,
|
|
2322
|
-
instructions: `## Prediction Market Configuration
|
|
2323
|
-
|
|
2324
|
-
### Mental Model
|
|
2325
|
-
|
|
2326
|
-
Binary prediction market: "Will X happen by Y?" Users deposit USDC to mint paired YES+NO tokens. Trade YES↔NO on a liquidity pool. Verifier settles by voting. Winner redeems 1:1.
|
|
2518
|
+
### CLI First
|
|
2327
2519
|
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
- Token ID 1 = YES, Token ID 2 = NO (via alias paths with 6 decimals)
|
|
2331
|
-
- Standard: 'Prediction Market'
|
|
2332
|
-
- mintEscrowAddress holds all deposited USDC
|
|
2333
|
-
- All permissions frozen after creation
|
|
2520
|
+
Use the canonical builder rather than hand-writing approval ratios:
|
|
2334
2521
|
|
|
2335
|
-
|
|
2522
|
+
~~~sh
|
|
2523
|
+
bb build prediction-market --verifier "$VERIFIER" --denom USDC --name "Example market" --description "Define the event, evidence and resolver policy" --image "ipfs://image" > market.json
|
|
2524
|
+
bb check market.json
|
|
2525
|
+
bb deploy market.json --browser
|
|
2526
|
+
bb prediction-markets show "$COLLECTION_ID"
|
|
2527
|
+
bb prediction-markets deposit "$COLLECTION_ID" --creator "$HOLDER" --amount 1000000 > deposit.json
|
|
2528
|
+
bb deploy deposit.json --browser
|
|
2529
|
+
~~~
|
|
2336
2530
|
|
|
2337
|
-
|
|
2531
|
+
Creation returns seven frozen approvals: paired mint, transferable, pair redeem, YES winner, NO winner, push YES and push NO. YES is token 1 and NO token 2. Alias paths uyes/uno expose display units; amounts supplied to deposit, quote and redeem are always integer base units. For six-decimal collateral, 1000000 base units equals one display coin. Payout amounts exclude network and protocol fees.
|
|
2338
2532
|
|
|
2339
|
-
|
|
2340
|
-
[
|
|
2341
|
-
{
|
|
2342
|
-
"denom": "uyes",
|
|
2343
|
-
"symbol": "uyes",
|
|
2344
|
-
"conversion": {
|
|
2345
|
-
"sideA": { "amount": "1" },
|
|
2346
|
-
"sideB": [{ "amount": "1", "tokenIds": [{ "start": "1", "end": "1" }], "ownershipTimes": [{ "start": "1", "end": "18446744073709551615" }] }]
|
|
2347
|
-
},
|
|
2348
|
-
"denomUnits": [{ "symbol": "YES", "decimals": "6", "isDefaultDisplay": true }]
|
|
2349
|
-
},
|
|
2350
|
-
{
|
|
2351
|
-
"denom": "uno",
|
|
2352
|
-
"symbol": "uno",
|
|
2353
|
-
"conversion": {
|
|
2354
|
-
"sideA": { "amount": "1" },
|
|
2355
|
-
"sideB": [{ "amount": "1", "tokenIds": [{ "start": "2", "end": "2" }], "ownershipTimes": [{ "start": "1", "end": "18446744073709551615" }] }]
|
|
2356
|
-
},
|
|
2357
|
-
"denomUnits": [{ "symbol": "NO", "decimals": "6", "isDefaultDisplay": true }]
|
|
2358
|
-
}
|
|
2359
|
-
]
|
|
2360
|
-
\`\`\`
|
|
2533
|
+
### Exact Redemptions
|
|
2361
2534
|
|
|
2362
|
-
|
|
2535
|
+
~~~sh
|
|
2536
|
+
bb prediction-markets quote "$COLLECTION_ID" --state yes-wins --yes-amount 250000 --yes-balance 1000000
|
|
2537
|
+
bb prediction-markets redeem "$COLLECTION_ID" --creator "$HOLDER" --state yes-wins --yes-amount 250000 > redeem.json
|
|
2538
|
+
bb deploy redeem.json --browser
|
|
2539
|
+
bb prediction-markets quote "$COLLECTION_ID" --state push --yes-balance 5 --no-balance 3
|
|
2540
|
+
bb prediction-markets redeem "$COLLECTION_ID" --creator "$HOLDER" --state active --pair-amount 1 > pair.json
|
|
2541
|
+
~~~
|
|
2363
2542
|
|
|
2364
|
-
|
|
2543
|
+
Explicit --yes-amount / --no-amount selects a partial redemption. It must match a whole payout lot and fit the supplied balance. An explicit side amount of 0 skips that side, retaining its full balance. Pair amounts must be positive. Without an explicit amount, a supplied balance selects the maximum complete lots. The push example burns 4 YES and 2 NO, receives 3 collateral base units and retains one raw unit of each side. Explicit --yes-amount 5 for push fails; it is never rounded. Retained complementary YES/NO dust can be paired and redeemed for one collateral unit. A single unmatched raw unit cannot pay half a collateral base unit and remains transferable.
|
|
2365
2544
|
|
|
2366
|
-
|
|
2545
|
+
Winner redemption leaves losing positions untouched. Pair redemption is an independently available consuming route; the canonical frozen recipe does not stop pair deposits or pair redemptions at resolution. Do not describe this as an enforced trading deadline.
|
|
2367
2546
|
|
|
2368
|
-
|
|
2547
|
+
New settlements have an overall MAX_UINT64 transfer-count ceiling with no per-initiator limit. Repeated and later-acquired positions can redeem while the selected approval remains eligible and escrow is funded. Existing deployed approvals are never rewritten. Legacy per-initiator one-shot approvals may be exhausted after an earlier partial claim; quote reports the policy and unknown eligibility when tracker state has not been loaded. Current balances, votes, tracker counts, approval windows, escrow liquidity and fees still require fresh validation/simulation before signing.
|
|
2369
2548
|
|
|
2370
|
-
|
|
2371
|
-
add_preset_approval({ presetId: "prediction-market.paired-mint", params: { usdcDenom } })
|
|
2372
|
-
add_preset_approval({ presetId: "prediction-market.transferable", params: {} })
|
|
2373
|
-
add_preset_approval({ presetId: "prediction-market.pre-settlement-redeem", params: { usdcDenom } })
|
|
2374
|
-
add_preset_approval({ presetId: "prediction-market.yes-wins", params: { usdcDenom, verifierAddress } })
|
|
2375
|
-
add_preset_approval({ presetId: "prediction-market.no-wins", params: { usdcDenom, verifierAddress } })
|
|
2376
|
-
add_preset_approval({ presetId: "prediction-market.push-yes", params: { usdcDenom, verifierAddress } })
|
|
2377
|
-
add_preset_approval({ presetId: "prediction-market.push-no", params: { usdcDenom, verifierAddress } })
|
|
2378
|
-
\`\`\`
|
|
2549
|
+
### Verifier Trust
|
|
2379
2550
|
|
|
2380
|
-
|
|
2551
|
+
~~~sh
|
|
2552
|
+
bb prediction-markets resolve "$COLLECTION_ID" --creator "$VERIFIER" --outcome yes > resolution.json
|
|
2553
|
+
bb deploy resolution.json --browser
|
|
2554
|
+
~~~
|
|
2381
2555
|
|
|
2382
|
-
|
|
2556
|
+
YES/NO emit one vote; push emits votes for both push approvals. Independent voting challenges authorize payouts. They do not supply an immutable single terminal outcome or cross-approval exclusion. The resolver must follow the stated event policy; do not claim trustless finality or guaranteed collateral solvency under inconsistent resolver decisions. Frozen collection permissions do not freeze votes. A stronger finality model requires a separate proven primitive or oracle design.
|
|
2383
2557
|
|
|
2384
|
-
|
|
2385
|
-
{
|
|
2386
|
-
"approvalId": "paired-mint",
|
|
2387
|
-
"fromListId": "Mint",
|
|
2388
|
-
"toListId": "All",
|
|
2389
|
-
"initiatedByListId": "All",
|
|
2390
|
-
"tokenIds": [{ "start": "1", "end": "2" }],
|
|
2391
|
-
"approvalCriteria": {
|
|
2392
|
-
"overridesFromOutgoingApprovals": true,
|
|
2393
|
-
"predeterminedBalances": {
|
|
2394
|
-
"manualBalances": [],
|
|
2395
|
-
"incrementedBalances": {
|
|
2396
|
-
"startBalances": [
|
|
2397
|
-
{ "amount": "1", "tokenIds": [{ "start": "1", "end": "1" }], "ownershipTimes": [{ "start": "1", "end": "18446744073709551615" }] },
|
|
2398
|
-
{ "amount": "1", "tokenIds": [{ "start": "2", "end": "2" }], "ownershipTimes": [{ "start": "1", "end": "18446744073709551615" }] }
|
|
2399
|
-
],
|
|
2400
|
-
"incrementTokenIdsBy": "0",
|
|
2401
|
-
"incrementOwnershipTimesBy": "0",
|
|
2402
|
-
"durationFromTimestamp": "0",
|
|
2403
|
-
"allowOverrideTimestamp": false,
|
|
2404
|
-
"recurringOwnershipTimes": { "startTime": "0", "intervalLength": "0", "chargePeriodLength": "0" }
|
|
2405
|
-
},
|
|
2406
|
-
"orderCalculationMethod": {
|
|
2407
|
-
"useOverallNumTransfers": true,
|
|
2408
|
-
"usePerToAddressNumTransfers": false,
|
|
2409
|
-
"usePerFromAddressNumTransfers": false,
|
|
2410
|
-
"usePerInitiatedByAddressNumTransfers": false,
|
|
2411
|
-
"useMerkleChallengeLeafIndex": false,
|
|
2412
|
-
"challengeTrackerId": ""
|
|
2413
|
-
}
|
|
2414
|
-
},
|
|
2415
|
-
"coinTransfers": [{
|
|
2416
|
-
"to": "Mint",
|
|
2417
|
-
"overrideFromWithApproverAddress": false,
|
|
2418
|
-
"overrideToWithInitiator": false,
|
|
2419
|
-
"coins": [{ "amount": "1000000", "denom": "<USDC_IBC_DENOM>" }]
|
|
2420
|
-
}]
|
|
2421
|
-
}
|
|
2422
|
-
}
|
|
2423
|
-
\`\`\`
|
|
2558
|
+
### SDK and MCP
|
|
2424
2559
|
|
|
2425
|
-
|
|
2426
|
-
>
|
|
2427
|
-
> DO NOT use the creator's address or any hardcoded address — use \`"Mint"\` which auto-resolves to the escrow.
|
|
2560
|
+
quotePredictionMarketRedemption(collection, request) returns exact payout, burn legs, retained positions, observed approval IDs/versions, policy and eligibility caveats. buildPredictionMarketRedeemTx with collection uses the same quote and refuses a known exhausted allowance. The lower-level overload cannot discover deployed terms; prefer the collection-aware path.
|
|
2428
2561
|
|
|
2429
|
-
|
|
2562
|
+
MCP standard_prediction_markets_quote and standard_prediction_markets_redeem mirror CLI arguments and only return reads or unsigned proposals. Use the CLI for browser signing. Approval presets remain available for advanced composition, with the same conserving ratios and amount scaling; run validation on the complete collection after composing.
|
|
2430
2563
|
|
|
2431
|
-
|
|
2564
|
+
### Checks
|
|
2432
2565
|
|
|
2433
|
-
|
|
2434
|
-
{
|
|
2435
|
-
"approvalId": "transferable",
|
|
2436
|
-
"fromListId": "!Mint",
|
|
2437
|
-
"toListId": "All",
|
|
2438
|
-
"initiatedByListId": "All",
|
|
2439
|
-
"tokenIds": [{ "start": "1", "end": "2" }],
|
|
2440
|
-
"approvalCriteria": {
|
|
2441
|
-
"overridesFromOutgoingApprovals": false,
|
|
2442
|
-
"overridesToIncomingApprovals": false,
|
|
2443
|
-
"mustPrioritize": false
|
|
2444
|
-
}
|
|
2445
|
-
}
|
|
2446
|
-
\`\`\`
|
|
2447
|
-
|
|
2448
|
-
> This approval has NO coinTransfers, NO votingChallenges, and mustPrioritize: false. It allows auto-scanning so tokens can be freely transferred to pool addresses and between users.
|
|
2449
|
-
|
|
2450
|
-
#### 3. Pre-Settlement Redeem (burn 1 YES + 1 NO → 1 USDC from escrow)
|
|
2451
|
-
|
|
2452
|
-
\`\`\`json
|
|
2453
|
-
{
|
|
2454
|
-
"approvalId": "pre-settlement-redeem",
|
|
2455
|
-
"fromListId": "!Mint",
|
|
2456
|
-
"toListId": "<BURN_ADDRESS>",
|
|
2457
|
-
"initiatedByListId": "All",
|
|
2458
|
-
"tokenIds": [{ "start": "1", "end": "2" }],
|
|
2459
|
-
"approvalCriteria": {
|
|
2460
|
-
"predeterminedBalances": {
|
|
2461
|
-
"manualBalances": [],
|
|
2462
|
-
"incrementedBalances": {
|
|
2463
|
-
"startBalances": [
|
|
2464
|
-
{ "amount": "1", "tokenIds": [{ "start": "1", "end": "1" }], "ownershipTimes": [{ "start": "1", "end": "18446744073709551615" }] },
|
|
2465
|
-
{ "amount": "1", "tokenIds": [{ "start": "2", "end": "2" }], "ownershipTimes": [{ "start": "1", "end": "18446744073709551615" }] }
|
|
2466
|
-
],
|
|
2467
|
-
"incrementTokenIdsBy": "0",
|
|
2468
|
-
"incrementOwnershipTimesBy": "0",
|
|
2469
|
-
"durationFromTimestamp": "0",
|
|
2470
|
-
"allowOverrideTimestamp": false,
|
|
2471
|
-
"recurringOwnershipTimes": { "startTime": "0", "intervalLength": "0", "chargePeriodLength": "0" }
|
|
2472
|
-
},
|
|
2473
|
-
"orderCalculationMethod": {
|
|
2474
|
-
"useOverallNumTransfers": true,
|
|
2475
|
-
"usePerToAddressNumTransfers": false,
|
|
2476
|
-
"usePerFromAddressNumTransfers": false,
|
|
2477
|
-
"usePerInitiatedByAddressNumTransfers": false,
|
|
2478
|
-
"useMerkleChallengeLeafIndex": false,
|
|
2479
|
-
"challengeTrackerId": ""
|
|
2480
|
-
}
|
|
2481
|
-
},
|
|
2482
|
-
"coinTransfers": [{
|
|
2483
|
-
"to": "",
|
|
2484
|
-
"overrideFromWithApproverAddress": true,
|
|
2485
|
-
"overrideToWithInitiator": true,
|
|
2486
|
-
"coins": [{ "amount": "1000000", "denom": "<USDC_IBC_DENOM>" }]
|
|
2487
|
-
}],
|
|
2488
|
-
"maxNumTransfers": {
|
|
2489
|
-
"overallMaxNumTransfers": "18446744073709551615",
|
|
2490
|
-
"perFromAddressMaxNumTransfers": "0",
|
|
2491
|
-
"perToAddressMaxNumTransfers": "0",
|
|
2492
|
-
"perInitiatedByAddressMaxNumTransfers": "0",
|
|
2493
|
-
"amountTrackerId": "pre-settlement-redeem",
|
|
2494
|
-
"resetTimeIntervals": { "startTime": "0", "intervalLength": "0" }
|
|
2495
|
-
}
|
|
2496
|
-
}
|
|
2497
|
-
}
|
|
2498
|
-
\`\`\`
|
|
2499
|
-
|
|
2500
|
-
#### 4. YES Wins (burn YES → 1 USDC)
|
|
2501
|
-
|
|
2502
|
-
\`\`\`json
|
|
2503
|
-
{
|
|
2504
|
-
"approvalId": "yes-wins",
|
|
2505
|
-
"fromListId": "!Mint",
|
|
2506
|
-
"toListId": "<BURN_ADDRESS>",
|
|
2507
|
-
"initiatedByListId": "All",
|
|
2508
|
-
"tokenIds": [{ "start": "1", "end": "1" }],
|
|
2509
|
-
"approvalCriteria": {
|
|
2510
|
-
"predeterminedBalances": {
|
|
2511
|
-
"manualBalances": [],
|
|
2512
|
-
"incrementedBalances": {
|
|
2513
|
-
"startBalances": [
|
|
2514
|
-
{ "amount": "1", "tokenIds": [{ "start": "1", "end": "1" }], "ownershipTimes": [{ "start": "1", "end": "18446744073709551615" }] }
|
|
2515
|
-
],
|
|
2516
|
-
"incrementTokenIdsBy": "0",
|
|
2517
|
-
"incrementOwnershipTimesBy": "0",
|
|
2518
|
-
"durationFromTimestamp": "0",
|
|
2519
|
-
"allowOverrideTimestamp": false,
|
|
2520
|
-
"recurringOwnershipTimes": { "startTime": "0", "intervalLength": "0", "chargePeriodLength": "0" }
|
|
2521
|
-
},
|
|
2522
|
-
"orderCalculationMethod": {
|
|
2523
|
-
"useOverallNumTransfers": true,
|
|
2524
|
-
"usePerToAddressNumTransfers": false,
|
|
2525
|
-
"usePerFromAddressNumTransfers": false,
|
|
2526
|
-
"usePerInitiatedByAddressNumTransfers": false,
|
|
2527
|
-
"useMerkleChallengeLeafIndex": false,
|
|
2528
|
-
"challengeTrackerId": ""
|
|
2529
|
-
}
|
|
2530
|
-
},
|
|
2531
|
-
"coinTransfers": [{
|
|
2532
|
-
"to": "",
|
|
2533
|
-
"overrideFromWithApproverAddress": true,
|
|
2534
|
-
"overrideToWithInitiator": true,
|
|
2535
|
-
"coins": [{ "amount": "1000000", "denom": "<USDC_IBC_DENOM>" }]
|
|
2536
|
-
}],
|
|
2537
|
-
"maxNumTransfers": {
|
|
2538
|
-
"overallMaxNumTransfers": "18446744073709551615",
|
|
2539
|
-
"perFromAddressMaxNumTransfers": "0",
|
|
2540
|
-
"perToAddressMaxNumTransfers": "0",
|
|
2541
|
-
"perInitiatedByAddressMaxNumTransfers": "0",
|
|
2542
|
-
"amountTrackerId": "yes-wins",
|
|
2543
|
-
"resetTimeIntervals": { "startTime": "0", "intervalLength": "0" }
|
|
2544
|
-
},
|
|
2545
|
-
"votingChallenges": [{
|
|
2546
|
-
"proposalId": "yes-wins-proposal",
|
|
2547
|
-
"quorumThreshold": "100",
|
|
2548
|
-
"voters": [{ "address": "<VERIFIER_ADDRESS>", "weight": "1" }]
|
|
2549
|
-
}]
|
|
2550
|
-
}
|
|
2551
|
-
}
|
|
2552
|
-
\`\`\`
|
|
2553
|
-
|
|
2554
|
-
#### 5. NO Wins (burn NO → 1 USDC)
|
|
2555
|
-
|
|
2556
|
-
Same as YES Wins but with token ID 2, separate proposalId, and separate amountTrackerId:
|
|
2557
|
-
|
|
2558
|
-
\`\`\`json
|
|
2559
|
-
{
|
|
2560
|
-
"approvalId": "no-wins",
|
|
2561
|
-
"fromListId": "!Mint",
|
|
2562
|
-
"toListId": "<BURN_ADDRESS>",
|
|
2563
|
-
"initiatedByListId": "All",
|
|
2564
|
-
"tokenIds": [{ "start": "2", "end": "2" }],
|
|
2565
|
-
"approvalCriteria": {
|
|
2566
|
-
"predeterminedBalances": {
|
|
2567
|
-
"manualBalances": [],
|
|
2568
|
-
"incrementedBalances": {
|
|
2569
|
-
"startBalances": [
|
|
2570
|
-
{ "amount": "1", "tokenIds": [{ "start": "2", "end": "2" }], "ownershipTimes": [{ "start": "1", "end": "18446744073709551615" }] }
|
|
2571
|
-
],
|
|
2572
|
-
"incrementTokenIdsBy": "0",
|
|
2573
|
-
"incrementOwnershipTimesBy": "0",
|
|
2574
|
-
"durationFromTimestamp": "0",
|
|
2575
|
-
"allowOverrideTimestamp": false,
|
|
2576
|
-
"recurringOwnershipTimes": { "startTime": "0", "intervalLength": "0", "chargePeriodLength": "0" }
|
|
2577
|
-
},
|
|
2578
|
-
"orderCalculationMethod": {
|
|
2579
|
-
"useOverallNumTransfers": true,
|
|
2580
|
-
"usePerToAddressNumTransfers": false,
|
|
2581
|
-
"usePerFromAddressNumTransfers": false,
|
|
2582
|
-
"usePerInitiatedByAddressNumTransfers": false,
|
|
2583
|
-
"useMerkleChallengeLeafIndex": false,
|
|
2584
|
-
"challengeTrackerId": ""
|
|
2585
|
-
}
|
|
2586
|
-
},
|
|
2587
|
-
"coinTransfers": [{
|
|
2588
|
-
"to": "",
|
|
2589
|
-
"overrideFromWithApproverAddress": true,
|
|
2590
|
-
"overrideToWithInitiator": true,
|
|
2591
|
-
"coins": [{ "amount": "1000000", "denom": "<USDC_IBC_DENOM>" }]
|
|
2592
|
-
}],
|
|
2593
|
-
"maxNumTransfers": {
|
|
2594
|
-
"overallMaxNumTransfers": "18446744073709551615",
|
|
2595
|
-
"perFromAddressMaxNumTransfers": "0",
|
|
2596
|
-
"perToAddressMaxNumTransfers": "0",
|
|
2597
|
-
"perInitiatedByAddressMaxNumTransfers": "0",
|
|
2598
|
-
"amountTrackerId": "no-wins",
|
|
2599
|
-
"resetTimeIntervals": { "startTime": "0", "intervalLength": "0" }
|
|
2600
|
-
},
|
|
2601
|
-
"votingChallenges": [{
|
|
2602
|
-
"proposalId": "no-wins-proposal",
|
|
2603
|
-
"quorumThreshold": "100",
|
|
2604
|
-
"voters": [{ "address": "<VERIFIER_ADDRESS>", "weight": "1" }]
|
|
2605
|
-
}]
|
|
2606
|
-
}
|
|
2607
|
-
}
|
|
2608
|
-
\`\`\`
|
|
2609
|
-
|
|
2610
|
-
#### 6. Push YES (burn YES → 0.5 USDC — fallback if market is indeterminate)
|
|
2611
|
-
|
|
2612
|
-
\`\`\`json
|
|
2613
|
-
{
|
|
2614
|
-
"approvalId": "push-yes",
|
|
2615
|
-
"fromListId": "!Mint",
|
|
2616
|
-
"toListId": "<BURN_ADDRESS>",
|
|
2617
|
-
"initiatedByListId": "All",
|
|
2618
|
-
"tokenIds": [{ "start": "1", "end": "1" }],
|
|
2619
|
-
"approvalCriteria": {
|
|
2620
|
-
"predeterminedBalances": {
|
|
2621
|
-
"manualBalances": [],
|
|
2622
|
-
"incrementedBalances": {
|
|
2623
|
-
"startBalances": [
|
|
2624
|
-
{ "amount": "1", "tokenIds": [{ "start": "1", "end": "1" }], "ownershipTimes": [{ "start": "1", "end": "18446744073709551615" }] }
|
|
2625
|
-
],
|
|
2626
|
-
"incrementTokenIdsBy": "0",
|
|
2627
|
-
"incrementOwnershipTimesBy": "0",
|
|
2628
|
-
"durationFromTimestamp": "0",
|
|
2629
|
-
"allowOverrideTimestamp": false,
|
|
2630
|
-
"recurringOwnershipTimes": { "startTime": "0", "intervalLength": "0", "chargePeriodLength": "0" }
|
|
2631
|
-
},
|
|
2632
|
-
"orderCalculationMethod": {
|
|
2633
|
-
"useOverallNumTransfers": true,
|
|
2634
|
-
"usePerToAddressNumTransfers": false,
|
|
2635
|
-
"usePerFromAddressNumTransfers": false,
|
|
2636
|
-
"usePerInitiatedByAddressNumTransfers": false,
|
|
2637
|
-
"useMerkleChallengeLeafIndex": false,
|
|
2638
|
-
"challengeTrackerId": ""
|
|
2639
|
-
}
|
|
2640
|
-
},
|
|
2641
|
-
"coinTransfers": [{
|
|
2642
|
-
"to": "",
|
|
2643
|
-
"overrideFromWithApproverAddress": true,
|
|
2644
|
-
"overrideToWithInitiator": true,
|
|
2645
|
-
"coins": [{ "amount": "500000", "denom": "<USDC_IBC_DENOM>" }]
|
|
2646
|
-
}],
|
|
2647
|
-
"maxNumTransfers": {
|
|
2648
|
-
"overallMaxNumTransfers": "18446744073709551615",
|
|
2649
|
-
"perFromAddressMaxNumTransfers": "0",
|
|
2650
|
-
"perToAddressMaxNumTransfers": "0",
|
|
2651
|
-
"perInitiatedByAddressMaxNumTransfers": "0",
|
|
2652
|
-
"amountTrackerId": "push-yes",
|
|
2653
|
-
"resetTimeIntervals": { "startTime": "0", "intervalLength": "0" }
|
|
2654
|
-
},
|
|
2655
|
-
"votingChallenges": [{
|
|
2656
|
-
"proposalId": "push-yes-proposal",
|
|
2657
|
-
"quorumThreshold": "100",
|
|
2658
|
-
"voters": [{ "address": "<VERIFIER_ADDRESS>", "weight": "1" }]
|
|
2659
|
-
}]
|
|
2660
|
-
}
|
|
2661
|
-
}
|
|
2662
|
-
\`\`\`
|
|
2663
|
-
|
|
2664
|
-
#### 7. Push NO (burn NO → 0.5 USDC — fallback if market is indeterminate)
|
|
2665
|
-
|
|
2666
|
-
Same as Push YES but with token ID 2 and a separate proposalId:
|
|
2667
|
-
|
|
2668
|
-
\`\`\`json
|
|
2669
|
-
{
|
|
2670
|
-
"approvalId": "push-no",
|
|
2671
|
-
"fromListId": "!Mint",
|
|
2672
|
-
"toListId": "<BURN_ADDRESS>",
|
|
2673
|
-
"initiatedByListId": "All",
|
|
2674
|
-
"tokenIds": [{ "start": "2", "end": "2" }],
|
|
2675
|
-
"approvalCriteria": {
|
|
2676
|
-
"predeterminedBalances": {
|
|
2677
|
-
"manualBalances": [],
|
|
2678
|
-
"incrementedBalances": {
|
|
2679
|
-
"startBalances": [
|
|
2680
|
-
{ "amount": "1", "tokenIds": [{ "start": "2", "end": "2" }], "ownershipTimes": [{ "start": "1", "end": "18446744073709551615" }] }
|
|
2681
|
-
],
|
|
2682
|
-
"incrementTokenIdsBy": "0",
|
|
2683
|
-
"incrementOwnershipTimesBy": "0",
|
|
2684
|
-
"durationFromTimestamp": "0",
|
|
2685
|
-
"allowOverrideTimestamp": false,
|
|
2686
|
-
"recurringOwnershipTimes": { "startTime": "0", "intervalLength": "0", "chargePeriodLength": "0" }
|
|
2687
|
-
},
|
|
2688
|
-
"orderCalculationMethod": {
|
|
2689
|
-
"useOverallNumTransfers": true,
|
|
2690
|
-
"usePerToAddressNumTransfers": false,
|
|
2691
|
-
"usePerFromAddressNumTransfers": false,
|
|
2692
|
-
"usePerInitiatedByAddressNumTransfers": false,
|
|
2693
|
-
"useMerkleChallengeLeafIndex": false,
|
|
2694
|
-
"challengeTrackerId": ""
|
|
2695
|
-
}
|
|
2696
|
-
},
|
|
2697
|
-
"coinTransfers": [{
|
|
2698
|
-
"to": "",
|
|
2699
|
-
"overrideFromWithApproverAddress": true,
|
|
2700
|
-
"overrideToWithInitiator": true,
|
|
2701
|
-
"coins": [{ "amount": "500000", "denom": "<USDC_IBC_DENOM>" }]
|
|
2702
|
-
}],
|
|
2703
|
-
"maxNumTransfers": {
|
|
2704
|
-
"overallMaxNumTransfers": "18446744073709551615",
|
|
2705
|
-
"perFromAddressMaxNumTransfers": "0",
|
|
2706
|
-
"perToAddressMaxNumTransfers": "0",
|
|
2707
|
-
"perInitiatedByAddressMaxNumTransfers": "0",
|
|
2708
|
-
"amountTrackerId": "push-no",
|
|
2709
|
-
"resetTimeIntervals": { "startTime": "0", "intervalLength": "0" }
|
|
2710
|
-
},
|
|
2711
|
-
"votingChallenges": [{
|
|
2712
|
-
"proposalId": "push-no-proposal",
|
|
2713
|
-
"quorumThreshold": "100",
|
|
2714
|
-
"voters": [{ "address": "<VERIFIER_ADDRESS>", "weight": "1" }]
|
|
2715
|
-
}]
|
|
2716
|
-
}
|
|
2717
|
-
}
|
|
2718
|
-
\`\`\`
|
|
2719
|
-
|
|
2720
|
-
### Settlement Flow
|
|
2721
|
-
|
|
2722
|
-
1. Verifier sends MsgCastVote with 100% yes on the proposalId of the winning approval
|
|
2723
|
-
2. Once quorum reached, that approval becomes active for transfers
|
|
2724
|
-
3. Holders burn winning token to receive USDC from escrow
|
|
2725
|
-
|
|
2726
|
-
### Liquidity Pool
|
|
2727
|
-
|
|
2728
|
-
After creating the collection and minting initial pairs:
|
|
2729
|
-
- Create pool: MsgCreateBalancerPool with badgeslp:collectionId:uyes and badgeslp:collectionId:uno, equal weights
|
|
2730
|
-
- Market price discovery: YES_price = NO_reserve / (YES_reserve + NO_reserve)
|
|
2731
|
-
|
|
2732
|
-
### Steps for AI Builder
|
|
2733
|
-
|
|
2734
|
-
1. Use per-field tools to initialize the collection (set_standards, set_valid_token_ids, etc.)
|
|
2735
|
-
2. \`set_token_metadata\` for YES (token 1) and NO (token 2)
|
|
2736
|
-
3. \`set_invariants\` with \`{ "noCustomOwnershipTimes": true, "disablePoolCreation": false }\` — MUST set disablePoolCreation to false
|
|
2737
|
-
4. Add 7 approvals via \`add_approval\`:
|
|
2738
|
-
- \`paired-mint\`: Mint → All (deposit USDC, receive YES+NO). coinTransfer \`to\` MUST be \`"Mint"\` — the chain auto-resolves this to the collection's mintEscrowAddress at execution time. No overrides on deposit.
|
|
2739
|
-
- \`transferable\`: !Mint → All (free transfers between users/pools, NO coinTransfers, NO mustPrioritize, overridesFromOutgoingApprovals: false, overridesToIncomingApprovals: false)
|
|
2740
|
-
- \`pre-settlement-redeem\`: !Mint → burn (redeem pair for USDC). coinTransfer \`to: ""\` with \`overrideFromWithApproverAddress: true\` + \`overrideToWithInitiator: true\` (escrow pays redeemer).
|
|
2741
|
-
- \`yes-wins\`, \`no-wins\`, \`push-yes\`, \`push-no\`: settlement (vote-gated). Same payout pattern: \`to: ""\` with both overrides true.
|
|
2742
|
-
5. \`set_mint_escrow_coins\` — NOT needed upfront (coins come from deposits)
|
|
2743
|
-
6. Add alias paths via \`add_alias_path\` for YES and NO
|
|
2744
|
-
7. \`set_permissions\` with preset \`"fully-immutable"\` to freeze everything (NOT "locked-approvals" — that leaves some permissions neutral)
|
|
2745
|
-
7. After collection creation: mint initial pairs + create pool
|
|
2746
|
-
|
|
2747
|
-
### Common Mistakes
|
|
2748
|
-
|
|
2749
|
-
- DON'T forget both alias paths (uyes and uno)
|
|
2750
|
-
- DON'T set the alias denom/symbol the same as the denomUnit symbol — the chain rejects duplicate denom unit symbols. Use base denoms like "uyes"/"uno" with display denomUnits "YES"/"NO" (6 decimals)
|
|
2751
|
-
- DON'T use Smart Token standard — this uses mintEscrowAddress, not invariant paths
|
|
2752
|
-
- DON'T forget votingChallenges on settlement approvals
|
|
2753
|
-
- DON'T set maxNumTransfers on the paired mint approval (deposits should be unlimited = 0)
|
|
2754
|
-
- DO set maxNumTransfers.overallMaxNumTransfers to "18446744073709551615" (max uint64) on ALL approvals that use overrideFromWithApproverAddress: true (redeem + settlement). The chain REQUIRES a non-zero maxNumTransfers when overrideFromWithApproverAddress is true. Use max uint64 for effectively unlimited.
|
|
2755
|
-
- DON'T disable overrideFromWithApproverAddress to work around maxNumTransfers errors — that breaks payout routing. Always keep overrideFromWithApproverAddress: true on redemption/settlement approvals and set maxNumTransfers to max uint64.
|
|
2756
|
-
- DON'T forget to freeze all permissions
|
|
2757
|
-
- DON'T forget predeterminedBalances with BOTH token IDs in paired mint/redeem
|
|
2758
|
-
- DON'T set overrideFromWithApproverAddress on the deposit coinTransfer (filler pays, not escrow)
|
|
2759
|
-
- DON'T leave the "to" field empty on the paired mint coinTransfer — use \`"Mint"\` which auto-resolves to the collection's mintEscrowAddress at execution time.
|
|
2760
|
-
- DON'T use the creator's address or any hardcoded address as "to" on the deposit — use \`"Mint"\` for auto-routing to escrow.
|
|
2761
|
-
- DON'T hardcode the creator address as the coinTransfer "to" on redemption/settlement — use overrideToWithInitiator: true so the person redeeming receives the payout
|
|
2762
|
-
- DON'T use "1" for startBalance amounts — YES/NO tokens have 6 decimals, so 1 display token = 1,000,000 base units. Use "1000000" for each startBalance amount.
|
|
2763
|
-
- DON'T use \`set_permissions\` preset "locked-approvals" — use "fully-immutable" to freeze ALL permissions including validTokenIds
|
|
2764
|
-
- DON'T use lowercase "prediction-market" as the standard — the correct name is "Prediction Market" (title case with space)
|
|
2765
|
-
- DON'T set invariants.disablePoolCreation to true — prediction markets REQUIRE liquidity pools for YES/NO trading. Set it to false.`
|
|
2566
|
+
Never infer finality from a deadline, an indexed status or a successful earlier vote alone. Do not invent an approval ID or silently fall back to an unrelated transfer approval when a payout approval is missing. Use current observed approval versions. Do not convert base-unit balances through floating-point numbers. Unknown state is not zero balance or an unused allowance.`
|
|
2766
2567
|
},
|
|
2767
2568
|
{
|
|
2768
2569
|
id: 'bounty',
|
|
@@ -2963,6 +2764,47 @@ Before publication, review and validate the generated collection and simulate ac
|
|
|
2963
2764
|
},
|
|
2964
2765
|
{
|
|
2965
2766
|
id: 'payment-request',
|
|
2767
|
+
contract: {
|
|
2768
|
+
"version": 1,
|
|
2769
|
+
"prerequisites": [
|
|
2770
|
+
"Confirm signer and network before handoff.",
|
|
2771
|
+
"Record exact user requirements separately from external metadata."
|
|
2772
|
+
],
|
|
2773
|
+
"postconditions": ["Generated artifact matches the confirmed input parameters and explicit user intent.", "Structural checks and lifecycle evidence remain separately scoped; unsigned output is not deployed."],
|
|
2774
|
+
"examplePostconditions": [
|
|
2775
|
+
"Prepare a new collection",
|
|
2776
|
+
"Disallow forceful post-mint transfers",
|
|
2777
|
+
"Only pay and deny paths",
|
|
2778
|
+
"Only the specified payer initiates payment",
|
|
2779
|
+
"Exactly 7 BADGE paid directly to merchant",
|
|
2780
|
+
"One fulfillment allowed",
|
|
2781
|
+
"Payment deadline is fixed time plus 30 days",
|
|
2782
|
+
"No escrow funded on creation",
|
|
2783
|
+
"Approval terms cannot be changed"
|
|
2784
|
+
],
|
|
2785
|
+
"clarifications": [
|
|
2786
|
+
"Confirm recipient, asset identity and intended manager powers."
|
|
2787
|
+
],
|
|
2788
|
+
"unsupported": [
|
|
2789
|
+
"Unsigned builder proposal only; signer and manager must be bound before deployment.",
|
|
2790
|
+
"Artifact constraints only. No chain execution, wallet signing, live balance checks or external service verification.",
|
|
2791
|
+
"Recipient payment excludes protocol fees and transaction gas."
|
|
2792
|
+
],
|
|
2793
|
+
"goldenScenarioIds": [
|
|
2794
|
+
"invoice-direct-payment"
|
|
2795
|
+
],
|
|
2796
|
+
"example": {
|
|
2797
|
+
"tool": "build_payment_request",
|
|
2798
|
+
"input": {
|
|
2799
|
+
"uri": "ipfs://METADATA_COLLECTION",
|
|
2800
|
+
"amount": 7,
|
|
2801
|
+
"denom": "BADGE",
|
|
2802
|
+
"payer": "bb1xvenxvenxvenxvenxvenxvenxvenxvenlrd2nm",
|
|
2803
|
+
"recipient": "bb1zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zql3w7",
|
|
2804
|
+
"expiration": "30d"
|
|
2805
|
+
}
|
|
2806
|
+
}
|
|
2807
|
+
},
|
|
2966
2808
|
name: 'PaymentRequest',
|
|
2967
2809
|
category: 'token-type',
|
|
2968
2810
|
description: 'Agent-initiated payment request with no escrow. The agent (or any address) creates a collection requesting payment from a targeted human payer. The payer approves AND pays from their own wallet in a single action. Inverse of Bounty.',
|
|
@@ -3505,7 +3347,32 @@ A multi-product storefront where each product is a separate token ID. Buyers pay
|
|
|
3505
3347
|
|
|
3506
3348
|
Each product gets its own purchase approval. There's also an optional global burn approval.
|
|
3507
3349
|
|
|
3508
|
-
### Preferred path:
|
|
3350
|
+
### Preferred path: CLI
|
|
3351
|
+
|
|
3352
|
+
Use \`bb build product-catalog --json catalog.json --creator <address> --output-file proposal.json\`.
|
|
3353
|
+
Inspect \`bb dev capabilities build_product_catalog\` for the current input schema. Each products entry accepts
|
|
3354
|
+
name, price (display units), denom, maxSupply, burn and metadata. Optional product.storeAddress
|
|
3355
|
+
overrides the catalog's default storeAddress for that product only; BitBadges and EVM account
|
|
3356
|
+
addresses are accepted. One purchase still pays exactly one recipient.
|
|
3357
|
+
|
|
3358
|
+
Use \`bb products show <collectionId>\` to inspect the deployed catalog, then
|
|
3359
|
+
\`bb products purchase <collectionId> --token-id <id> --creator <buyer>\` to build a purchase.
|
|
3360
|
+
Review, simulate and explicitly request browser signing as documented by the CLI lifecycle.
|
|
3361
|
+
|
|
3362
|
+
### Catalog lifecycle
|
|
3363
|
+
|
|
3364
|
+
Catalogs created by this builder freeze products, prices, recipients, supply caps and metadata.
|
|
3365
|
+
Publish a new collection for new terms. Do not rebuild an existing catalog using this creation
|
|
3366
|
+
builder: changing token IDs, approval IDs or tracker IDs can detach receipts and purchase counts.
|
|
3367
|
+
The frontend catalog form is creation-only; its reorder/delete actions apply only to unsigned drafts
|
|
3368
|
+
and move each product's metadata with its terms. Custom mutable collections require an advanced
|
|
3369
|
+
update that preserves identities and obeys their existing permissions.
|
|
3370
|
+
|
|
3371
|
+
Payments are direct to the seller, not held for conditional release. Burning a product receipt
|
|
3372
|
+
does not refund payment, restock the product or prove delivery. Cancellations, refunds and timed
|
|
3373
|
+
licenses are not built-in catalog actions; they need a separately reviewed design before creation.
|
|
3374
|
+
|
|
3375
|
+
### Advanced path: presets (one call per product + optional burn)
|
|
3509
3376
|
|
|
3510
3377
|
Call \`products.purchase\` once per product (productIndex 1..N). Add \`products.burn\` once if you need the global burn/redeem:
|
|
3511
3378
|
|