bitbadges 0.35.1 → 0.35.2
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/dist/cjs/builder/agent/BitBadgesBuilderAgent.d.ts +2 -0
- package/dist/cjs/builder/agent/BitBadgesBuilderAgent.d.ts.map +1 -1
- package/dist/cjs/builder/agent/BitBadgesBuilderAgent.js +46 -2
- package/dist/cjs/builder/agent/BitBadgesBuilderAgent.js.map +1 -1
- package/dist/cjs/builder/agent/loop.d.ts.map +1 -1
- package/dist/cjs/builder/agent/loop.js +19 -2
- package/dist/cjs/builder/agent/loop.js.map +1 -1
- package/dist/cjs/builder/agent/prompt.d.ts +7 -6
- package/dist/cjs/builder/agent/prompt.d.ts.map +1 -1
- package/dist/cjs/builder/agent/prompt.js +128 -30
- package/dist/cjs/builder/agent/prompt.js.map +1 -1
- package/dist/cjs/builder/agent/types.d.ts +16 -0
- package/dist/cjs/builder/agent/types.d.ts.map +1 -1
- package/dist/cjs/builder/agent/validation.d.ts +2 -0
- package/dist/cjs/builder/agent/validation.d.ts.map +1 -1
- package/dist/cjs/builder/agent/validation.js +12 -1
- package/dist/cjs/builder/agent/validation.js.map +1 -1
- package/dist/cjs/builder/presets/address-list.d.ts +3 -0
- package/dist/cjs/builder/presets/address-list.d.ts.map +1 -0
- package/dist/cjs/builder/presets/address-list.js +66 -0
- package/dist/cjs/builder/presets/address-list.js.map +1 -0
- package/dist/cjs/builder/presets/auction.d.ts +3 -0
- package/dist/cjs/builder/presets/auction.d.ts.map +1 -0
- package/dist/cjs/builder/presets/auction.js +98 -0
- package/dist/cjs/builder/presets/auction.js.map +1 -0
- package/dist/cjs/builder/presets/bounty.d.ts +3 -0
- package/dist/cjs/builder/presets/bounty.d.ts.map +1 -0
- package/dist/cjs/builder/presets/bounty.js +183 -0
- package/dist/cjs/builder/presets/bounty.js.map +1 -0
- package/dist/cjs/builder/presets/credit-token.d.ts +3 -0
- package/dist/cjs/builder/presets/credit-token.d.ts.map +1 -0
- package/dist/cjs/builder/presets/credit-token.js +96 -0
- package/dist/cjs/builder/presets/credit-token.js.map +1 -0
- package/dist/cjs/builder/presets/crowdfund.d.ts +3 -0
- package/dist/cjs/builder/presets/crowdfund.d.ts.map +1 -0
- package/dist/cjs/builder/presets/crowdfund.js +263 -0
- package/dist/cjs/builder/presets/crowdfund.js.map +1 -0
- package/dist/cjs/builder/presets/custom-2fa.d.ts +3 -0
- package/dist/cjs/builder/presets/custom-2fa.d.ts.map +1 -0
- package/dist/cjs/builder/presets/custom-2fa.js +38 -0
- package/dist/cjs/builder/presets/custom-2fa.js.map +1 -0
- package/dist/cjs/builder/presets/index.d.ts +8 -0
- package/dist/cjs/builder/presets/index.d.ts.map +1 -0
- package/dist/cjs/builder/presets/index.js +115 -0
- package/dist/cjs/builder/presets/index.js.map +1 -0
- package/dist/cjs/builder/presets/payment-protocol.d.ts +3 -0
- package/dist/cjs/builder/presets/payment-protocol.d.ts.map +1 -0
- package/dist/cjs/builder/presets/payment-protocol.js +58 -0
- package/dist/cjs/builder/presets/payment-protocol.js.map +1 -0
- package/dist/cjs/builder/presets/prediction-market.d.ts +3 -0
- package/dist/cjs/builder/presets/prediction-market.d.ts.map +1 -0
- package/dist/cjs/builder/presets/prediction-market.js +283 -0
- package/dist/cjs/builder/presets/prediction-market.js.map +1 -0
- package/dist/cjs/builder/presets/products.d.ts +3 -0
- package/dist/cjs/builder/presets/products.d.ts.map +1 -0
- package/dist/cjs/builder/presets/products.js +132 -0
- package/dist/cjs/builder/presets/products.js.map +1 -0
- package/dist/cjs/builder/presets/subscription.d.ts +8 -0
- package/dist/cjs/builder/presets/subscription.d.ts.map +1 -0
- package/dist/cjs/builder/presets/subscription.js +75 -0
- package/dist/cjs/builder/presets/subscription.js.map +1 -0
- package/dist/cjs/builder/presets/tradable.d.ts +3 -0
- package/dist/cjs/builder/presets/tradable.d.ts.map +1 -0
- package/dist/cjs/builder/presets/tradable.js +32 -0
- package/dist/cjs/builder/presets/tradable.js.map +1 -0
- package/dist/cjs/builder/presets/types.d.ts +18 -0
- package/dist/cjs/builder/presets/types.d.ts.map +1 -0
- package/dist/cjs/builder/presets/types.js +3 -0
- package/dist/cjs/builder/presets/types.js.map +1 -0
- package/dist/cjs/builder/resources/skillInstructions.d.ts.map +1 -1
- package/dist/cjs/builder/resources/skillInstructions.js +253 -84
- package/dist/cjs/builder/resources/skillInstructions.js.map +1 -1
- package/dist/cjs/builder/session/reviewFlagSanitizer.d.ts +4 -0
- package/dist/cjs/builder/session/reviewFlagSanitizer.d.ts.map +1 -0
- package/dist/cjs/builder/session/reviewFlagSanitizer.js +65 -0
- package/dist/cjs/builder/session/reviewFlagSanitizer.js.map +1 -0
- package/dist/cjs/builder/session/reviewFlagSanitizer.spec.d.ts +2 -0
- package/dist/cjs/builder/session/reviewFlagSanitizer.spec.d.ts.map +1 -0
- package/dist/cjs/builder/session/reviewFlagSanitizer.spec.js +79 -0
- package/dist/cjs/builder/session/reviewFlagSanitizer.spec.js.map +1 -0
- package/dist/cjs/builder/session/sessionState.d.ts +4 -0
- package/dist/cjs/builder/session/sessionState.d.ts.map +1 -1
- package/dist/cjs/builder/session/sessionState.js +27 -1
- package/dist/cjs/builder/session/sessionState.js.map +1 -1
- package/dist/cjs/builder/tools/queries/index.d.ts +1 -0
- package/dist/cjs/builder/tools/queries/index.d.ts.map +1 -1
- package/dist/cjs/builder/tools/queries/index.js +1 -0
- package/dist/cjs/builder/tools/queries/index.js.map +1 -1
- package/dist/cjs/builder/tools/queries/listPresets.d.ts +28 -0
- package/dist/cjs/builder/tools/queries/listPresets.d.ts.map +1 -0
- package/dist/cjs/builder/tools/queries/listPresets.js +34 -0
- package/dist/cjs/builder/tools/queries/listPresets.js.map +1 -0
- package/dist/cjs/builder/tools/queries/simulateTransaction.d.ts +15 -7
- package/dist/cjs/builder/tools/queries/simulateTransaction.d.ts.map +1 -1
- package/dist/cjs/builder/tools/queries/simulateTransaction.js +56 -17
- package/dist/cjs/builder/tools/queries/simulateTransaction.js.map +1 -1
- package/dist/cjs/builder/tools/registry.d.ts.map +1 -1
- package/dist/cjs/builder/tools/registry.js +3 -1
- package/dist/cjs/builder/tools/registry.js.map +1 -1
- package/dist/cjs/builder/tools/session/addAliasPath.d.ts.map +1 -1
- package/dist/cjs/builder/tools/session/addAliasPath.js +12 -0
- package/dist/cjs/builder/tools/session/addAliasPath.js.map +1 -1
- package/dist/cjs/builder/tools/session/addPresetApproval.d.ts +72 -0
- package/dist/cjs/builder/tools/session/addPresetApproval.d.ts.map +1 -0
- package/dist/cjs/builder/tools/session/addPresetApproval.js +83 -0
- package/dist/cjs/builder/tools/session/addPresetApproval.js.map +1 -0
- package/dist/cjs/builder/tools/session/getTransaction.d.ts.map +1 -1
- package/dist/cjs/builder/tools/session/getTransaction.js +37 -1
- package/dist/cjs/builder/tools/session/getTransaction.js.map +1 -1
- package/dist/cjs/builder/tools/session/index.d.ts +1 -0
- package/dist/cjs/builder/tools/session/index.d.ts.map +1 -1
- package/dist/cjs/builder/tools/session/index.js +1 -0
- package/dist/cjs/builder/tools/session/index.js.map +1 -1
- package/dist/cjs/builder/tools/session/setPermissions.d.ts +2 -2
- package/dist/cjs/builder/tools/utilities/flagReviewItem.d.ts +75 -0
- package/dist/cjs/builder/tools/utilities/flagReviewItem.d.ts.map +1 -0
- package/dist/cjs/builder/tools/utilities/flagReviewItem.js +83 -0
- package/dist/cjs/builder/tools/utilities/flagReviewItem.js.map +1 -0
- package/dist/cjs/builder/tools/utilities/index.d.ts +1 -0
- package/dist/cjs/builder/tools/utilities/index.d.ts.map +1 -1
- package/dist/cjs/builder/tools/utilities/index.js +1 -0
- package/dist/cjs/builder/tools/utilities/index.js.map +1 -1
- package/dist/cjs/cli/commands/builder.js +12 -1
- package/dist/cjs/cli/commands/builder.js.map +1 -1
- package/dist/cjs/cli/utils/terminal.d.ts +24 -0
- package/dist/cjs/cli/utils/terminal.d.ts.map +1 -1
- package/dist/cjs/cli/utils/terminal.js +60 -0
- package/dist/cjs/cli/utils/terminal.js.map +1 -1
- package/dist/cjs/core/design-decisions/backing.d.ts +3 -0
- package/dist/cjs/core/design-decisions/backing.d.ts.map +1 -0
- package/dist/cjs/core/design-decisions/backing.js +38 -0
- package/dist/cjs/core/design-decisions/backing.js.map +1 -0
- package/dist/cjs/core/design-decisions/index.d.ts +9 -0
- package/dist/cjs/core/design-decisions/index.d.ts.map +1 -0
- package/dist/cjs/core/design-decisions/index.js +45 -0
- package/dist/cjs/core/design-decisions/index.js.map +1 -0
- package/dist/cjs/core/design-decisions/index.spec.d.ts +2 -0
- package/dist/cjs/core/design-decisions/index.spec.d.ts.map +1 -0
- package/dist/cjs/core/design-decisions/index.spec.js +161 -0
- package/dist/cjs/core/design-decisions/index.spec.js.map +1 -0
- package/dist/cjs/core/design-decisions/standards.d.ts +3 -0
- package/dist/cjs/core/design-decisions/standards.d.ts.map +1 -0
- package/dist/cjs/core/design-decisions/standards.js +58 -0
- package/dist/cjs/core/design-decisions/standards.js.map +1 -0
- package/dist/cjs/core/design-decisions/supply.d.ts +3 -0
- package/dist/cjs/core/design-decisions/supply.d.ts.map +1 -0
- package/dist/cjs/core/design-decisions/supply.js +33 -0
- package/dist/cjs/core/design-decisions/supply.js.map +1 -0
- package/dist/cjs/core/design-decisions/transferability.d.ts +3 -0
- package/dist/cjs/core/design-decisions/transferability.d.ts.map +1 -0
- package/dist/cjs/core/design-decisions/transferability.js +52 -0
- package/dist/cjs/core/design-decisions/transferability.js.map +1 -0
- package/dist/cjs/core/index.d.ts +2 -0
- package/dist/cjs/core/index.d.ts.map +1 -1
- package/dist/cjs/core/index.js +7 -1
- package/dist/cjs/core/index.js.map +1 -1
- package/dist/cjs/core/review-types.d.ts +17 -0
- package/dist/cjs/core/review-types.d.ts.map +1 -1
- package/dist/cjs/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/builder/agent/BitBadgesBuilderAgent.d.ts +2 -0
- package/dist/esm/builder/agent/BitBadgesBuilderAgent.d.ts.map +1 -1
- package/dist/esm/builder/agent/BitBadgesBuilderAgent.js +47 -3
- package/dist/esm/builder/agent/BitBadgesBuilderAgent.js.map +1 -1
- package/dist/esm/builder/agent/loop.d.ts.map +1 -1
- package/dist/esm/builder/agent/loop.js +19 -2
- package/dist/esm/builder/agent/loop.js.map +1 -1
- package/dist/esm/builder/agent/prompt.d.ts +7 -6
- package/dist/esm/builder/agent/prompt.d.ts.map +1 -1
- package/dist/esm/builder/agent/prompt.js +127 -29
- package/dist/esm/builder/agent/prompt.js.map +1 -1
- package/dist/esm/builder/agent/types.d.ts +16 -0
- package/dist/esm/builder/agent/types.d.ts.map +1 -1
- package/dist/esm/builder/agent/validation.d.ts +2 -0
- package/dist/esm/builder/agent/validation.d.ts.map +1 -1
- package/dist/esm/builder/agent/validation.js +12 -1
- package/dist/esm/builder/agent/validation.js.map +1 -1
- package/dist/esm/builder/presets/address-list.d.ts +3 -0
- package/dist/esm/builder/presets/address-list.d.ts.map +1 -0
- package/dist/esm/builder/presets/address-list.js +63 -0
- package/dist/esm/builder/presets/address-list.js.map +1 -0
- package/dist/esm/builder/presets/auction.d.ts +3 -0
- package/dist/esm/builder/presets/auction.d.ts.map +1 -0
- package/dist/esm/builder/presets/auction.js +95 -0
- package/dist/esm/builder/presets/auction.js.map +1 -0
- package/dist/esm/builder/presets/bounty.d.ts +3 -0
- package/dist/esm/builder/presets/bounty.d.ts.map +1 -0
- package/dist/esm/builder/presets/bounty.js +180 -0
- package/dist/esm/builder/presets/bounty.js.map +1 -0
- package/dist/esm/builder/presets/credit-token.d.ts +3 -0
- package/dist/esm/builder/presets/credit-token.d.ts.map +1 -0
- package/dist/esm/builder/presets/credit-token.js +93 -0
- package/dist/esm/builder/presets/credit-token.js.map +1 -0
- package/dist/esm/builder/presets/crowdfund.d.ts +3 -0
- package/dist/esm/builder/presets/crowdfund.d.ts.map +1 -0
- package/dist/esm/builder/presets/crowdfund.js +260 -0
- package/dist/esm/builder/presets/crowdfund.js.map +1 -0
- package/dist/esm/builder/presets/custom-2fa.d.ts +3 -0
- package/dist/esm/builder/presets/custom-2fa.d.ts.map +1 -0
- package/dist/esm/builder/presets/custom-2fa.js +35 -0
- package/dist/esm/builder/presets/custom-2fa.js.map +1 -0
- package/dist/esm/builder/presets/index.d.ts +8 -0
- package/dist/esm/builder/presets/index.d.ts.map +1 -0
- package/dist/esm/builder/presets/index.js +110 -0
- package/dist/esm/builder/presets/index.js.map +1 -0
- package/dist/esm/builder/presets/payment-protocol.d.ts +3 -0
- package/dist/esm/builder/presets/payment-protocol.d.ts.map +1 -0
- package/dist/esm/builder/presets/payment-protocol.js +55 -0
- package/dist/esm/builder/presets/payment-protocol.js.map +1 -0
- package/dist/esm/builder/presets/prediction-market.d.ts +3 -0
- package/dist/esm/builder/presets/prediction-market.d.ts.map +1 -0
- package/dist/esm/builder/presets/prediction-market.js +280 -0
- package/dist/esm/builder/presets/prediction-market.js.map +1 -0
- package/dist/esm/builder/presets/products.d.ts +3 -0
- package/dist/esm/builder/presets/products.d.ts.map +1 -0
- package/dist/esm/builder/presets/products.js +129 -0
- package/dist/esm/builder/presets/products.js.map +1 -0
- package/dist/esm/builder/presets/subscription.d.ts +8 -0
- package/dist/esm/builder/presets/subscription.d.ts.map +1 -0
- package/dist/esm/builder/presets/subscription.js +72 -0
- package/dist/esm/builder/presets/subscription.js.map +1 -0
- package/dist/esm/builder/presets/tradable.d.ts +3 -0
- package/dist/esm/builder/presets/tradable.d.ts.map +1 -0
- package/dist/esm/builder/presets/tradable.js +29 -0
- package/dist/esm/builder/presets/tradable.js.map +1 -0
- package/dist/esm/builder/presets/types.d.ts +18 -0
- package/dist/esm/builder/presets/types.d.ts.map +1 -0
- package/dist/esm/builder/presets/types.js +2 -0
- package/dist/esm/builder/presets/types.js.map +1 -0
- package/dist/esm/builder/resources/skillInstructions.d.ts.map +1 -1
- package/dist/esm/builder/resources/skillInstructions.js +253 -84
- package/dist/esm/builder/resources/skillInstructions.js.map +1 -1
- package/dist/esm/builder/session/reviewFlagSanitizer.d.ts +4 -0
- package/dist/esm/builder/session/reviewFlagSanitizer.d.ts.map +1 -0
- package/dist/esm/builder/session/reviewFlagSanitizer.js +61 -0
- package/dist/esm/builder/session/reviewFlagSanitizer.js.map +1 -0
- package/dist/esm/builder/session/reviewFlagSanitizer.spec.d.ts +2 -0
- package/dist/esm/builder/session/reviewFlagSanitizer.spec.d.ts.map +1 -0
- package/dist/esm/builder/session/reviewFlagSanitizer.spec.js +77 -0
- package/dist/esm/builder/session/reviewFlagSanitizer.spec.js.map +1 -0
- package/dist/esm/builder/session/sessionState.d.ts +4 -0
- package/dist/esm/builder/session/sessionState.d.ts.map +1 -1
- package/dist/esm/builder/session/sessionState.js +24 -1
- package/dist/esm/builder/session/sessionState.js.map +1 -1
- package/dist/esm/builder/tools/queries/index.d.ts +1 -0
- package/dist/esm/builder/tools/queries/index.d.ts.map +1 -1
- package/dist/esm/builder/tools/queries/index.js +1 -0
- package/dist/esm/builder/tools/queries/index.js.map +1 -1
- package/dist/esm/builder/tools/queries/listPresets.d.ts +28 -0
- package/dist/esm/builder/tools/queries/listPresets.d.ts.map +1 -0
- package/dist/esm/builder/tools/queries/listPresets.js +30 -0
- package/dist/esm/builder/tools/queries/listPresets.js.map +1 -0
- package/dist/esm/builder/tools/queries/simulateTransaction.d.ts +15 -7
- package/dist/esm/builder/tools/queries/simulateTransaction.d.ts.map +1 -1
- package/dist/esm/builder/tools/queries/simulateTransaction.js +56 -17
- package/dist/esm/builder/tools/queries/simulateTransaction.js.map +1 -1
- package/dist/esm/builder/tools/registry.d.ts.map +1 -1
- package/dist/esm/builder/tools/registry.js +4 -2
- package/dist/esm/builder/tools/registry.js.map +1 -1
- package/dist/esm/builder/tools/session/addAliasPath.d.ts.map +1 -1
- package/dist/esm/builder/tools/session/addAliasPath.js +12 -0
- package/dist/esm/builder/tools/session/addAliasPath.js.map +1 -1
- package/dist/esm/builder/tools/session/addPresetApproval.d.ts +72 -0
- package/dist/esm/builder/tools/session/addPresetApproval.d.ts.map +1 -0
- package/dist/esm/builder/tools/session/addPresetApproval.js +79 -0
- package/dist/esm/builder/tools/session/addPresetApproval.js.map +1 -0
- package/dist/esm/builder/tools/session/getTransaction.d.ts.map +1 -1
- package/dist/esm/builder/tools/session/getTransaction.js +37 -1
- package/dist/esm/builder/tools/session/getTransaction.js.map +1 -1
- package/dist/esm/builder/tools/session/index.d.ts +1 -0
- package/dist/esm/builder/tools/session/index.d.ts.map +1 -1
- package/dist/esm/builder/tools/session/index.js +1 -0
- package/dist/esm/builder/tools/session/index.js.map +1 -1
- package/dist/esm/builder/tools/session/setPermissions.d.ts +2 -2
- package/dist/esm/builder/tools/utilities/flagReviewItem.d.ts +75 -0
- package/dist/esm/builder/tools/utilities/flagReviewItem.d.ts.map +1 -0
- package/dist/esm/builder/tools/utilities/flagReviewItem.js +79 -0
- package/dist/esm/builder/tools/utilities/flagReviewItem.js.map +1 -0
- package/dist/esm/builder/tools/utilities/index.d.ts +1 -0
- package/dist/esm/builder/tools/utilities/index.d.ts.map +1 -1
- package/dist/esm/builder/tools/utilities/index.js +1 -0
- package/dist/esm/builder/tools/utilities/index.js.map +1 -1
- package/dist/esm/cli/commands/builder.js +12 -1
- package/dist/esm/cli/commands/builder.js.map +1 -1
- package/dist/esm/cli/utils/terminal.d.ts +24 -0
- package/dist/esm/cli/utils/terminal.d.ts.map +1 -1
- package/dist/esm/cli/utils/terminal.js +59 -0
- package/dist/esm/cli/utils/terminal.js.map +1 -1
- package/dist/esm/core/design-decisions/backing.d.ts +3 -0
- package/dist/esm/core/design-decisions/backing.d.ts.map +1 -0
- package/dist/esm/core/design-decisions/backing.js +35 -0
- package/dist/esm/core/design-decisions/backing.js.map +1 -0
- package/dist/esm/core/design-decisions/index.d.ts +9 -0
- package/dist/esm/core/design-decisions/index.d.ts.map +1 -0
- package/dist/esm/core/design-decisions/index.js +38 -0
- package/dist/esm/core/design-decisions/index.js.map +1 -0
- package/dist/esm/core/design-decisions/index.spec.d.ts +2 -0
- package/dist/esm/core/design-decisions/index.spec.d.ts.map +1 -0
- package/dist/esm/core/design-decisions/index.spec.js +159 -0
- package/dist/esm/core/design-decisions/index.spec.js.map +1 -0
- package/dist/esm/core/design-decisions/standards.d.ts +3 -0
- package/dist/esm/core/design-decisions/standards.d.ts.map +1 -0
- package/dist/esm/core/design-decisions/standards.js +55 -0
- package/dist/esm/core/design-decisions/standards.js.map +1 -0
- package/dist/esm/core/design-decisions/supply.d.ts +3 -0
- package/dist/esm/core/design-decisions/supply.d.ts.map +1 -0
- package/dist/esm/core/design-decisions/supply.js +30 -0
- package/dist/esm/core/design-decisions/supply.js.map +1 -0
- package/dist/esm/core/design-decisions/transferability.d.ts +3 -0
- package/dist/esm/core/design-decisions/transferability.d.ts.map +1 -0
- package/dist/esm/core/design-decisions/transferability.js +49 -0
- package/dist/esm/core/design-decisions/transferability.js.map +1 -0
- package/dist/esm/core/index.d.ts +2 -0
- package/dist/esm/core/index.d.ts.map +1 -1
- package/dist/esm/core/index.js +1 -0
- package/dist/esm/core/index.js.map +1 -1
- package/dist/esm/core/review-types.d.ts +17 -0
- package/dist/esm/core/review-types.d.ts.map +1 -1
- package/dist/esm/tsconfig-esm.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -224,7 +224,20 @@ For wrapping native Cosmos SDK coins, use \`allowSpecialWrapping: true\` and \`c
|
|
|
224
224
|
|
|
225
225
|
### Optional: Unbacking Withdraw Limits
|
|
226
226
|
|
|
227
|
-
Add approvalAmounts to the unbacking approval to enforce daily or total withdraw limits
|
|
227
|
+
Add approvalAmounts to the unbacking approval to enforce daily or total withdraw limits.
|
|
228
|
+
|
|
229
|
+
**CRITICAL — approvalAmounts are in BASE UNITS, not display units.** The value you write is in the alias denom's base units (e.g. \`uusdc\`, \`uatom\`), NOT the display unit (USDC, ATOM). You MUST convert by multiplying the user's stated amount by 10^decimals.
|
|
230
|
+
|
|
231
|
+
For a 6-decimal denom (USDC, ATOM, vUSDC, etc.):
|
|
232
|
+
|
|
233
|
+
| User says (display) | Write as (base units) |
|
|
234
|
+
|-------------------------|-----------------------|
|
|
235
|
+
| 1 USDC / day | "1000000" |
|
|
236
|
+
| 100 USDC / day | "100000000" |
|
|
237
|
+
| **1000 USDC / day** | **"1000000000"** (nine zeros, NOT six) |
|
|
238
|
+
| 10000 USDC / day | "10000000000" |
|
|
239
|
+
|
|
240
|
+
Formula: \`base_units = display_amount * 10^decimals\`. For 6 decimals, that's **display_amount followed by six zeros**. Always sanity-check: 1 display unit = 10^decimals base units, so "1000000" (six zeros) = 1 display unit, NOT 1000. A common mistake is to compute "1000 × 10^6 = 1000000" (wrong; it's 1,000,000,000).
|
|
228
241
|
|
|
229
242
|
\`\`\`json
|
|
230
243
|
{
|
|
@@ -234,7 +247,7 @@ Add approvalAmounts to the unbacking approval to enforce daily or total withdraw
|
|
|
234
247
|
"overridesFromOutgoingApprovals": false,
|
|
235
248
|
"approvalAmounts": {
|
|
236
249
|
"overallApprovalAmount": "0",
|
|
237
|
-
"perFromAddressApprovalAmount": "
|
|
250
|
+
"perFromAddressApprovalAmount": "1000000000",
|
|
238
251
|
"perToAddressApprovalAmount": "0",
|
|
239
252
|
"perInitiatedByAddressApprovalAmount": "0",
|
|
240
253
|
"amountTrackerId": "daily-withdraw-limit",
|
|
@@ -244,9 +257,12 @@ Add approvalAmounts to the unbacking approval to enforce daily or total withdraw
|
|
|
244
257
|
}
|
|
245
258
|
\`\`\`
|
|
246
259
|
|
|
260
|
+
The example above encodes a **1000 USDC/day** limit (1000 × 10^6 = 1,000,000,000 base units).
|
|
261
|
+
|
|
247
262
|
- **Daily limit**: Use perFromAddressApprovalAmount with resetTimeIntervals.intervalLength: "86400000" (24 hours in ms)
|
|
248
263
|
- **Total limit**: Use overallApprovalAmount with intervalLength: "0" (no reset)
|
|
249
264
|
- amountTrackerId must be unique per approval
|
|
265
|
+
- **When refining**: if the user reports "rate is X currently" and the on-chain value is already in base units, compare apples to apples — convert their stated X to base units via the formula above BEFORE concluding whether the current value matches.
|
|
250
266
|
|
|
251
267
|
### Optional: 2FA on Unbacking
|
|
252
268
|
|
|
@@ -285,7 +301,7 @@ Require ownership of a 2FA token to withdraw. Add mustOwnTokens to the unbacking
|
|
|
285
301
|
1. **NO fromListId: "Mint" approvals**: Tokens are created via IBC backing, not traditional minting
|
|
286
302
|
2. **Use allowBackedMinting: true** in both backing and unbacking approvals
|
|
287
303
|
3. **Use mustPrioritize: true** (required for IBC backed operations)
|
|
288
|
-
4. **
|
|
304
|
+
4. **overridesFromOutgoingApprovals**: leave unset or false on BOTH backing and unbacking approvals. The backing address is protocol-controlled but we still manage its approvals at the protocol level — treat it like any regular user whose outgoing approvals are externally managed. Don't set \`overridesFromOutgoingApprovals: true\` as a "best practice" — adding overrides where they aren't needed is actively worse than omitting them.
|
|
289
305
|
5. **Unbacking fromListId**: Use \`!Mint:backingAddress\` syntax — excludes both Mint and backing address so only regular holders can send tokens back
|
|
290
306
|
6. **MUST create backing + unbacking approvals**. Transferable approval is common but optional (omit for vaults/escrows)
|
|
291
307
|
7. **MUST configure alias path** with matching decimals
|
|
@@ -823,6 +839,24 @@ IMPORTANT: predeterminedBalances and approvalAmounts are INCOMPATIBLE — use on
|
|
|
823
839
|
|
|
824
840
|
When creating a subscription collection, you MUST follow these EXACT requirements:
|
|
825
841
|
|
|
842
|
+
### Preferred path: preset (one short tool call)
|
|
843
|
+
|
|
844
|
+
The faucet approval is fully canonical. Use \`subscription.faucet\`:
|
|
845
|
+
|
|
846
|
+
\`\`\`
|
|
847
|
+
add_preset_approval({
|
|
848
|
+
presetId: "subscription.faucet",
|
|
849
|
+
params: {
|
|
850
|
+
paymentRecipient: "bb1...",
|
|
851
|
+
paymentDenom: "<ibc/... or native>",
|
|
852
|
+
paymentAmount: "<base units>",
|
|
853
|
+
durationMs: "2592000000" // monthly; daily="86400000", annual="31536000000"
|
|
854
|
+
}
|
|
855
|
+
})
|
|
856
|
+
\`\`\`
|
|
857
|
+
|
|
858
|
+
\`list_presets({skill: "subscription"})\` for params. Fall back to \`add_approval\` for exotic variants (multi-token tiers, manager-only mints, etc.).
|
|
859
|
+
|
|
826
860
|
### Required Structure
|
|
827
861
|
|
|
828
862
|
1. **Standards**: MUST include "Subscriptions"
|
|
@@ -1106,6 +1140,16 @@ Three common permission configurations:
|
|
|
1106
1140
|
|
|
1107
1141
|
When creating a Custom-2FA collection, follow these requirements:
|
|
1108
1142
|
|
|
1143
|
+
### Preferred path: preset (one short tool call)
|
|
1144
|
+
|
|
1145
|
+
The mint approval is canonical — use \`custom-2fa.mint\`:
|
|
1146
|
+
|
|
1147
|
+
\`\`\`
|
|
1148
|
+
add_preset_approval({ presetId: "custom-2fa.mint", params: { managerAddress: "bb1..." } })
|
|
1149
|
+
\`\`\`
|
|
1150
|
+
|
|
1151
|
+
The actual token expiration is set per-mint via the MsgTransferTokens \`ownershipTimes\` window (e.g. now → now + 5*60*1000 ms). The approval itself just enables the Mint path with auto-purge.
|
|
1152
|
+
|
|
1109
1153
|
### Required Structure
|
|
1110
1154
|
|
|
1111
1155
|
1. **Standards**: MUST include "Custom-2FA"
|
|
@@ -1479,6 +1523,23 @@ Use Approach 1 only for simple scenarios like: "create an invoice for 10 BADGE"
|
|
|
1479
1523
|
|
|
1480
1524
|
Each approval is an invoice/milestone with coinTransfers. Uses the **ListView** display standard. Only for simple one-shot payments — no escrow, no hold-and-release, no refunds.
|
|
1481
1525
|
|
|
1526
|
+
**Preferred path: preset per line item.** Each invoice / milestone / bounty entry has a canonical shape — use \`payment-protocol.invoice\`:
|
|
1527
|
+
|
|
1528
|
+
\`\`\`
|
|
1529
|
+
add_preset_approval({
|
|
1530
|
+
presetId: "payment-protocol.invoice",
|
|
1531
|
+
params: {
|
|
1532
|
+
approvalId: "invoice-1",
|
|
1533
|
+
payerAddress: "bb1...",
|
|
1534
|
+
payeeAddress: "bb1...",
|
|
1535
|
+
amount: "<base units>",
|
|
1536
|
+
denom: "<denom>"
|
|
1537
|
+
}
|
|
1538
|
+
})
|
|
1539
|
+
\`\`\`
|
|
1540
|
+
|
|
1541
|
+
Call once per line item. For escrow / hold-and-release (Approach 2) use the smart-token skill.
|
|
1542
|
+
|
|
1482
1543
|
**Required:**
|
|
1483
1544
|
- Standards: ["ListView:Milestones"] or ["ListView:Invoice Requests"] or ["ListView:Bounties"]
|
|
1484
1545
|
- Each item = one collection-level approval with:
|
|
@@ -1650,6 +1711,14 @@ The primitives (mustOwnTokens, transferTimes, votingChallenges, amount caps, bal
|
|
|
1650
1711
|
|
|
1651
1712
|
When enabling trading for NFTs, follow these requirements:
|
|
1652
1713
|
|
|
1714
|
+
### Preferred path: preset (one short tool call)
|
|
1715
|
+
|
|
1716
|
+
The free-transfer approval is fully canonical (takes no params):
|
|
1717
|
+
|
|
1718
|
+
\`\`\`
|
|
1719
|
+
add_preset_approval({ presetId: "tradable.transferable", params: {} })
|
|
1720
|
+
\`\`\`
|
|
1721
|
+
|
|
1653
1722
|
### Required Structure
|
|
1654
1723
|
|
|
1655
1724
|
1. **Standards**: MUST include "NFTMarketplace", "NFTs", and "NFTPricingDenom:ubadge"
|
|
@@ -1698,11 +1767,10 @@ When enabling trading for NFTs, follow these requirements:
|
|
|
1698
1767
|
|
|
1699
1768
|
- Increment-only, non-transferable (soulbound) fungible token purchased with ICS20 denom
|
|
1700
1769
|
- validTokenIds: [{ "start": "1", "end": "1" }] (single token ID)
|
|
1701
|
-
-
|
|
1770
|
+
- ONE Mint approval with approvalId "credit-scaled" using allowAmountScaling (single scaled approval supersedes the legacy 8-10 tier approach; legacy tiers still supported for backward compat but deprecated)
|
|
1702
1771
|
- Lock canUpdateCollectionApprovals (empty array = frozen)
|
|
1703
1772
|
- defaultBalances: autoApproveAllIncomingTransfers: true, autoApproveSelfInitiatedOutgoingTransfers: true, autoApproveSelfInitiatedIncomingTransfers: true
|
|
1704
|
-
-
|
|
1705
|
-
- Denomination tiers: create 8-10 approval tiers (credit-1, credit-5, credit-10, etc.) for greedy decomposition
|
|
1773
|
+
- Credit-scaled approval: overridesFromOutgoingApprovals: true, mustPrioritize: true, coinTransfers[0].coins[0].amount = "1" (micro-payment unit)
|
|
1706
1774
|
- MUST include alias path for display
|
|
1707
1775
|
- All permissions locked (empty arrays)
|
|
1708
1776
|
- Key difference from Smart Token: one-way minting only, no backing/unbacking, no transferability`,
|
|
@@ -1730,108 +1798,99 @@ Credit tokens are designed for systems that track consumption off-chain. The on-
|
|
|
1730
1798
|
|
|
1731
1799
|
### Required Structure
|
|
1732
1800
|
|
|
1733
|
-
1. **Standards**:
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
- \`"validTokenIds": [{ "start": "1", "end": "1" }]\`
|
|
1738
|
-
|
|
1739
|
-
3. **Non-transferable (Soulbound)**: Only mint approvals allowed
|
|
1740
|
-
- \`collectionApprovals\` should ONLY contain approvals with \`"fromListId": "Mint"\`
|
|
1741
|
-
- No transferable-approval or burnable-approval
|
|
1742
|
-
- Lock \`canUpdateCollectionApprovals\` (empty array = frozen)
|
|
1743
|
-
|
|
1744
|
-
4. **Auto-approve incoming**: defaultBalances MUST have:
|
|
1801
|
+
1. **Standards**: \`"standards": ["Credit Token"]\`
|
|
1802
|
+
2. **validTokenIds**: \`[{ "start": "1", "end": "1" }]\` (single fungible token ID)
|
|
1803
|
+
3. **One scaled Mint approval** (see "The Scaled Credit Approval" below) — NO other approvals. Credit tokens are soulbound: no transfer, no burn.
|
|
1804
|
+
4. **defaultBalances** must auto-approve all transfer directions:
|
|
1745
1805
|
- \`"autoApproveAllIncomingTransfers": true\`
|
|
1746
1806
|
- \`"autoApproveSelfInitiatedOutgoingTransfers": true\`
|
|
1747
1807
|
- \`"autoApproveSelfInitiatedIncomingTransfers": true\`
|
|
1808
|
+
5. **Alias path REQUIRED** for display (see below).
|
|
1809
|
+
6. **All permissions frozen** (every \`collectionPermissions\` field = \`[]\`).
|
|
1748
1810
|
|
|
1749
|
-
|
|
1750
|
-
- \`"fromListId": "Mint"\`
|
|
1751
|
-
- \`"toListId": "All"\`
|
|
1752
|
-
- \`"initiatedByListId": "All"\`
|
|
1753
|
-
- \`"overridesFromOutgoingApprovals": true\` (REQUIRED for all Mint approvals)
|
|
1754
|
-
- \`"mustPrioritize": true\`
|
|
1755
|
-
- \`coinTransfers\`: specifies payment amount and recipient
|
|
1811
|
+
### The Scaled Credit Approval (single approval — replaces tiers)
|
|
1756
1812
|
|
|
1757
|
-
|
|
1813
|
+
The purchase form uses **amount scaling** to support arbitrary purchase sizes in ONE approval. Users pick a quantity on the frontend; the chain scales \`startBalances\` and \`coinTransfers\` by the multiplier. Base unit of the approval: **1 micro-payment → tokensPerUnit micro-tokens**.
|
|
1758
1814
|
|
|
1759
|
-
|
|
1815
|
+
**\`approvalId\` MUST be exactly \`"credit-scaled"\`** — the frontend purchase form detects scaled approvals by this id. Both tracker ids (\`amountTrackerId\` in \`approvalAmounts\` and \`maxNumTransfers\`) must also equal \`"credit-scaled"\`.
|
|
1760
1816
|
|
|
1761
|
-
|
|
1762
|
-
- \`coinTransfers.coins[0].amount\`: "1000000" (1 USDC in base units)
|
|
1763
|
-
- \`predeterminedBalances.incrementedBalances.startBalances[0].amount\`: "100000" (tokens minted)
|
|
1817
|
+
#### Preferred path: preset (short call, canonical shape)
|
|
1764
1818
|
|
|
1765
|
-
|
|
1819
|
+
The single approval's shape is fully canonical — use the preset instead of hand-writing the 60-line approvalCriteria JSON:
|
|
1766
1820
|
|
|
1767
|
-
|
|
1821
|
+
\`\`\`
|
|
1822
|
+
add_preset_approval({
|
|
1823
|
+
presetId: "credit-token.scaled",
|
|
1824
|
+
params: {
|
|
1825
|
+
paymentDenom: "<ics20 denom — native like 'ubadge', 'uatom', or an 'ibc/...' hash>",
|
|
1826
|
+
paymentRecipient: "<bb1... creator or treasury address>",
|
|
1827
|
+
tokensPerUnit: "<base-unit ratio; see Conversion rate below>"
|
|
1828
|
+
}
|
|
1829
|
+
})
|
|
1830
|
+
\`\`\`
|
|
1768
1831
|
|
|
1769
|
-
|
|
1832
|
+
Discover params + other credit-token presets with \`list_presets({skill: "credit-token"})\`. Presets route through the same validators as hand-built approvals — output is structurally identical. Use \`overrides\` for small tweaks (custom \`transferTimes\` window, etc.); for shape changes the preset doesn't cover, fall back to \`add_approval\`.
|
|
1770
1833
|
|
|
1771
|
-
|
|
1772
|
-
| approvalId | Payment | Tokens Minted |
|
|
1773
|
-
|---|---|---|
|
|
1774
|
-
| credit-1 | 1 USDC | 100,000 |
|
|
1775
|
-
| credit-5 | 5 USDC | 500,000 |
|
|
1776
|
-
| credit-10 | 10 USDC | 1,000,000 |
|
|
1777
|
-
| credit-50 | 50 USDC | 5,000,000 |
|
|
1778
|
-
| credit-100 | 100 USDC | 10,000,000 |
|
|
1779
|
-
| credit-500 | 500 USDC | 50,000,000 |
|
|
1780
|
-
| credit-1000 | 1,000 USDC | 100,000,000 |
|
|
1781
|
-
| credit-10000 | 10,000 USDC | 1,000,000,000 |
|
|
1782
|
-
| credit-100000 | 100,000 USDC | 10,000,000,000 |
|
|
1783
|
-
| credit-1000000000 | 1B USDC | 100T tokens |
|
|
1834
|
+
#### Conversion rate — \`tokensPerUnit\` is a BASE-UNIT ratio
|
|
1784
1835
|
|
|
1785
|
-
|
|
1836
|
+
Like every chain amount, \`tokensPerUnit\` is in base units — specifically, it's a ratio of two base-unit amounts: **how many micro-tokens to mint per ONE micro-unit of payment**. Because the preset's coinTransfer is fixed at \`"1"\` micro-payment-unit and the chain scales both sides together at purchase, the ratio you write here is the per-micro-unit mint rate directly.
|
|
1786
1837
|
|
|
1787
|
-
|
|
1838
|
+
**Computation:**
|
|
1788
1839
|
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
"sideA": { "amount": "1" },
|
|
1795
|
-
"sideB": [{ "amount": "1", "ownershipTimes": [{"start":"1","end":"18446744073709551615"}], "tokenIds": [{"start":"1","end":"1"}] }]
|
|
1796
|
-
},
|
|
1797
|
-
"symbol": "<SYMBOL>",
|
|
1798
|
-
"denomUnits": [],
|
|
1799
|
-
"metadata": { "uri": "ipfs://METADATA_ALIAS_u<symbol_lowercase>", "customData": "" }
|
|
1800
|
-
}]
|
|
1840
|
+
Given a user-stated rate "X display-payment-units → Y display-token-units", with payment decimals \`Dp\` and token decimals \`Dt\`:
|
|
1841
|
+
|
|
1842
|
+
\`\`\`
|
|
1843
|
+
tokensPerUnit = (Y × 10^Dt) / (X × 10^Dp)
|
|
1844
|
+
= (Y / X) × 10^(Dt - Dp)
|
|
1801
1845
|
\`\`\`
|
|
1802
1846
|
|
|
1803
|
-
|
|
1847
|
+
When \`Dt === Dp\` (the common case — the frontend mint form auto-matches token decimals to payment decimals), \`10^(Dt - Dp) = 1\`, so \`tokensPerUnit = Y / X\` — **just the user's stated ratio, no zeros appended**.
|
|
1848
|
+
|
|
1849
|
+
**Worked examples (assume matching decimals):**
|
|
1850
|
+
- "1 payment → 100 tokens" → \`tokensPerUnit: "100"\`
|
|
1851
|
+
- "1 payment → 1000 tokens" → \`tokensPerUnit: "1000"\`
|
|
1852
|
+
- "1 payment → 1 token" → \`tokensPerUnit: "1"\`
|
|
1853
|
+
- "5 payment → 100 tokens" → \`tokensPerUnit: "20"\` (100 / 5)
|
|
1854
|
+
|
|
1855
|
+
**Common mistake to avoid:** do not multiply by \`10^Dt\` alone (e.g. \`100 × 10^6 = 100000000\`). That converts display-tokens to micro-tokens but forgets that the payment side is ALSO already in micro-units — the two conversions cancel. If a sanity check shows your number has Dp+ trailing zeros per display unit the user stated, you've double-converted.
|
|
1856
|
+
|
|
1857
|
+
For mismatched decimals: call \`lookup_token_info\` to confirm both decimals, then use the full formula.
|
|
1858
|
+
|
|
1859
|
+
#### Template
|
|
1804
1860
|
|
|
1805
|
-
Each mint approval follows this structure:
|
|
1806
1861
|
\`\`\`json
|
|
1807
1862
|
{
|
|
1808
|
-
"toListId": "All",
|
|
1809
1863
|
"fromListId": "Mint",
|
|
1864
|
+
"toListId": "All",
|
|
1810
1865
|
"initiatedByListId": "All",
|
|
1811
1866
|
"transferTimes": [{ "start": "1", "end": "18446744073709551615" }],
|
|
1812
1867
|
"tokenIds": [{ "start": "1", "end": "1" }],
|
|
1813
1868
|
"ownershipTimes": [{ "start": "1", "end": "18446744073709551615" }],
|
|
1814
|
-
"approvalId": "credit
|
|
1869
|
+
"approvalId": "credit-scaled",
|
|
1815
1870
|
"uri": "",
|
|
1816
1871
|
"customData": "",
|
|
1872
|
+
"version": "0",
|
|
1817
1873
|
"approvalCriteria": {
|
|
1818
1874
|
"predeterminedBalances": {
|
|
1819
1875
|
"manualBalances": [],
|
|
1820
1876
|
"incrementedBalances": {
|
|
1821
|
-
"startBalances": [{ "amount": "<
|
|
1877
|
+
"startBalances": [{ "amount": "<tokensPerUnit>", "tokenIds": [{"start":"1","end":"1"}], "ownershipTimes": [{"start":"1","end":"18446744073709551615"}] }],
|
|
1822
1878
|
"incrementTokenIdsBy": "0",
|
|
1823
1879
|
"incrementOwnershipTimesBy": "0",
|
|
1880
|
+
"durationFromTimestamp": "0",
|
|
1824
1881
|
"allowOverrideTimestamp": false,
|
|
1825
1882
|
"recurringOwnershipTimes": { "startTime": "0", "intervalLength": "0", "chargePeriodLength": "0" },
|
|
1826
|
-
"allowOverrideWithAnyValidToken": false
|
|
1883
|
+
"allowOverrideWithAnyValidToken": false,
|
|
1884
|
+
"allowAmountScaling": true,
|
|
1885
|
+
"maxScalingMultiplier": "18446744073709551615"
|
|
1827
1886
|
},
|
|
1828
1887
|
"orderCalculationMethod": { "useOverallNumTransfers": true, "usePerToAddressNumTransfers": false, "usePerFromAddressNumTransfers": false, "usePerInitiatedByAddressNumTransfers": false, "useMerkleChallengeLeafIndex": false, "challengeTrackerId": "" }
|
|
1829
1888
|
},
|
|
1830
|
-
"approvalAmounts": { "overallApprovalAmount": "0", "perToAddressApprovalAmount": "0", "perFromAddressApprovalAmount": "0", "perInitiatedByAddressApprovalAmount": "0", "amountTrackerId": "credit
|
|
1831
|
-
"maxNumTransfers": { "overallMaxNumTransfers": "0", "perToAddressMaxNumTransfers": "0", "perFromAddressMaxNumTransfers": "0", "perInitiatedByAddressMaxNumTransfers": "0", "amountTrackerId": "credit
|
|
1889
|
+
"approvalAmounts": { "overallApprovalAmount": "0", "perToAddressApprovalAmount": "0", "perFromAddressApprovalAmount": "0", "perInitiatedByAddressApprovalAmount": "0", "amountTrackerId": "credit-scaled", "resetTimeIntervals": { "startTime": "0", "intervalLength": "0" } },
|
|
1890
|
+
"maxNumTransfers": { "overallMaxNumTransfers": "0", "perToAddressMaxNumTransfers": "0", "perFromAddressMaxNumTransfers": "0", "perInitiatedByAddressMaxNumTransfers": "0", "amountTrackerId": "credit-scaled", "resetTimeIntervals": { "startTime": "0", "intervalLength": "0" } },
|
|
1832
1891
|
"coinTransfers": [{
|
|
1833
1892
|
"to": "<payment_recipient_address>",
|
|
1834
|
-
"coins": [{ "amount": "
|
|
1893
|
+
"coins": [{ "amount": "1", "denom": "<ics20_denom>" }],
|
|
1835
1894
|
"overrideFromWithApproverAddress": false,
|
|
1836
1895
|
"overrideToWithInitiator": false
|
|
1837
1896
|
}],
|
|
@@ -1840,11 +1899,28 @@ Each mint approval follows this structure:
|
|
|
1840
1899
|
"overridesFromOutgoingApprovals": true,
|
|
1841
1900
|
"overridesToIncomingApprovals": false,
|
|
1842
1901
|
"mustPrioritize": true
|
|
1843
|
-
}
|
|
1844
|
-
"version": 0
|
|
1902
|
+
}
|
|
1845
1903
|
}
|
|
1846
1904
|
\`\`\`
|
|
1847
1905
|
|
|
1906
|
+
> **Legacy (deprecated, do not produce):** older credit-token collections shipped 8-10 fixed-amount approvals with ids \`credit-1\`, \`credit-5\`, \`credit-10\`, …, \`credit-1000000000\`. The frontend still renders those for backward compatibility but new builds MUST use the single \`credit-scaled\` approval above. Do not mix the two.
|
|
1907
|
+
|
|
1908
|
+
### Alias Path (REQUIRED)
|
|
1909
|
+
|
|
1910
|
+
MUST include an alias path so tokens display nicely. The alias path REQUIRES at least one \`denomUnits\` entry with \`decimals > 0\` — the chain rejects an empty or zero-decimal denom units array with "denom unit decimals cannot be 0". Pick a sensible display exponent (6 is typical for fungible tokens):
|
|
1911
|
+
\`\`\`json
|
|
1912
|
+
"aliasPathsToAdd": [{
|
|
1913
|
+
"denom": "u<symbol_lowercase>",
|
|
1914
|
+
"conversion": {
|
|
1915
|
+
"sideA": { "amount": "1" },
|
|
1916
|
+
"sideB": [{ "amount": "1", "ownershipTimes": [{"start":"1","end":"18446744073709551615"}], "tokenIds": [{"start":"1","end":"1"}] }]
|
|
1917
|
+
},
|
|
1918
|
+
"symbol": "<SYMBOL>",
|
|
1919
|
+
"denomUnits": [{ "decimals": "6", "symbol": "<SYMBOL>", "isDefaultDisplay": true, "metadata": { "uri": "ipfs://METADATA_ALIAS_<symbol_lowercase>_UNIT", "customData": "" } }],
|
|
1920
|
+
"metadata": { "uri": "ipfs://METADATA_ALIAS_u<symbol_lowercase>", "customData": "" }
|
|
1921
|
+
}]
|
|
1922
|
+
\`\`\`
|
|
1923
|
+
|
|
1848
1924
|
### Permissions (All Locked)
|
|
1849
1925
|
|
|
1850
1926
|
All permissions should be locked (empty arrays = frozen):
|
|
@@ -1869,23 +1945,18 @@ All permissions should be locked (empty arrays = frozen):
|
|
|
1869
1945
|
- **Increment-only** — tokens can only be minted (purchased), never redeemed, burned, or decreased
|
|
1870
1946
|
- **Non-transferable** — soulbound, no peer-to-peer transfers. If users need transferability, use Smart Token instead
|
|
1871
1947
|
- **No backing/unbacking** — one-way minting only, no cosmosCoinBackedPath
|
|
1872
|
-
- **
|
|
1948
|
+
- **Single scaled approval** — one \`credit-scaled\` approval with \`allowAmountScaling: true\` handles all purchase sizes
|
|
1873
1949
|
- **Credits never expire** — ownership times cover full range
|
|
1874
1950
|
|
|
1875
|
-
### Frontend Integration
|
|
1876
|
-
|
|
1877
|
-
The Credit Token standard has a dedicated view page that shows:
|
|
1878
|
-
1. User's current token balance (using the alias path for display)
|
|
1879
|
-
2. Purchase form with DenomAmountSelectWithMax for the payment denom
|
|
1880
|
-
3. Conversion rate display (X denom = Y tokens)
|
|
1881
|
-
4. Multi-tier transaction decomposition for optimal gas usage
|
|
1882
|
-
|
|
1883
1951
|
## Common Mistakes
|
|
1884
1952
|
|
|
1885
|
-
- DON'T
|
|
1886
|
-
- DON'T forget
|
|
1953
|
+
- DON'T ship the legacy \`credit-1 / credit-5 / credit-10 / …\` tier approvals on new collections — produce ONE approval with \`approvalId: "credit-scaled"\` instead.
|
|
1954
|
+
- DON'T forget \`allowAmountScaling: true\` on the \`credit-scaled\` approval — without it the frontend can't scale payments.
|
|
1955
|
+
- DON'T set \`coinTransfers[0].coins[0].amount\` to anything other than \`"1"\` on the scaled approval — the amount is the per-micro-unit rate; the frontend multiplies at purchase time.
|
|
1956
|
+
- DON'T add transferable or burnable approvals — credit tokens are soulbound. Only the one scaled Mint approval.
|
|
1957
|
+
- DON'T forget \`mustPrioritize: true\` — required so the scaled approval wins during purchase.
|
|
1887
1958
|
- DON'T forget the alias path — credit tokens will not display properly without one.
|
|
1888
|
-
- DON'T use numbers instead of strings for amounts — all values must be string-encoded
|
|
1959
|
+
- DON'T use numbers instead of strings for amounts — all values must be string-encoded.
|
|
1889
1960
|
- DON'T confuse credit tokens with smart tokens — credit tokens are one-way minting only with no backing/unbacking or transferability.`
|
|
1890
1961
|
},
|
|
1891
1962
|
{
|
|
@@ -2010,6 +2081,17 @@ For expiring tokens, calculate timestamps:
|
|
|
2010
2081
|
|
|
2011
2082
|
An address list collection represents membership as token ownership: owning x1 of token ID 1 = being on the list. The manager controls membership by minting (adding) and burning (removing) tokens.
|
|
2012
2083
|
|
|
2084
|
+
### Preferred path: presets (two short tool calls)
|
|
2085
|
+
|
|
2086
|
+
Both approvals are fully canonical — the ONLY param that varies is the manager/creator address. Use the presets:
|
|
2087
|
+
|
|
2088
|
+
\`\`\`
|
|
2089
|
+
add_preset_approval({ presetId: "address-list.manager-add", params: { creatorAddress: "bb1..." } })
|
|
2090
|
+
add_preset_approval({ presetId: "address-list.manager-remove", params: { creatorAddress: "bb1..." } })
|
|
2091
|
+
\`\`\`
|
|
2092
|
+
|
|
2093
|
+
\`list_presets({skill: "address-list"})\` enumerates them. For non-canonical variants (e.g. a committee instead of a single manager) fall back to raw \`add_approval\`.
|
|
2094
|
+
|
|
2013
2095
|
### CRITICAL: Exact Approval IDs Required
|
|
2014
2096
|
|
|
2015
2097
|
The frontend identifies address list approvals by their EXACT approvalIds. Using different IDs will break the UI.
|
|
@@ -2045,9 +2127,11 @@ The frontend identifies address list approvals by their EXACT approvalIds. Using
|
|
|
2045
2127
|
|
|
2046
2128
|
### Manager-Remove Approval (forceful burn to remove)
|
|
2047
2129
|
|
|
2130
|
+
\`fromListId\` MUST be **"!Mint"** (All except Mint). Using "All" is rejected by the chain with "Mint address cannot be included in address list with other addresses" — the Mint slot can only appear in a list by itself.
|
|
2131
|
+
|
|
2048
2132
|
\`\`\`json
|
|
2049
2133
|
{
|
|
2050
|
-
"fromListId": "
|
|
2134
|
+
"fromListId": "!Mint",
|
|
2051
2135
|
"toListId": "bb1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqs7gvmv",
|
|
2052
2136
|
"initiatedByListId": "bb1creator...",
|
|
2053
2137
|
"transferTimes": [{ "start": "1", "end": "18446744073709551615" }],
|
|
@@ -2063,6 +2147,10 @@ The frontend identifies address list approvals by their EXACT approvalIds. Using
|
|
|
2063
2147
|
}
|
|
2064
2148
|
\`\`\`
|
|
2065
2149
|
|
|
2150
|
+
### Invariants
|
|
2151
|
+
|
|
2152
|
+
DO NOT set \`noForcefulPostMintTransfers: true\` on address-list collections. That invariant would block manager-remove from burning tokens (since its \`overridesFromOutgoingApprovals: true\` is only chain-allowed when \`fromListId\` is exactly "Mint"). The manager MUST be able to forcibly burn a list member's token, so leave that invariant off. Other default invariants (e.g. \`noCustomOwnershipTimes\`) are fine.
|
|
2153
|
+
|
|
2066
2154
|
### Default Balances
|
|
2067
2155
|
|
|
2068
2156
|
\`\`\`json
|
|
@@ -2267,6 +2355,22 @@ Two alias paths are REQUIRED — one for YES (token 1) and one for NO (token 2):
|
|
|
2267
2355
|
|
|
2268
2356
|
**CRITICAL: All amounts in startBalances must be in BASE units (micro-units). Since YES/NO tokens have 6 decimals, 1 display token = 1,000,000 base units. Use "1000000" (not "1") for startBalance amounts when minting 1 display-YES + 1 display-NO per deposit.**
|
|
2269
2357
|
|
|
2358
|
+
### Preferred path: presets (seven short tool calls)
|
|
2359
|
+
|
|
2360
|
+
All seven approvals are fully canonical. Use the presets below instead of hand-writing 7 × 60-line approvalCriteria blocks. Every preset only needs the USDC denom (and a verifier address for the outcome-gated approvals):
|
|
2361
|
+
|
|
2362
|
+
\`\`\`
|
|
2363
|
+
add_preset_approval({ presetId: "prediction-market.paired-mint", params: { usdcDenom } })
|
|
2364
|
+
add_preset_approval({ presetId: "prediction-market.transferable", params: {} })
|
|
2365
|
+
add_preset_approval({ presetId: "prediction-market.pre-settlement-redeem", params: { usdcDenom } })
|
|
2366
|
+
add_preset_approval({ presetId: "prediction-market.yes-wins", params: { usdcDenom, verifierAddress } })
|
|
2367
|
+
add_preset_approval({ presetId: "prediction-market.no-wins", params: { usdcDenom, verifierAddress } })
|
|
2368
|
+
add_preset_approval({ presetId: "prediction-market.push-yes", params: { usdcDenom, verifierAddress } })
|
|
2369
|
+
add_preset_approval({ presetId: "prediction-market.push-no", params: { usdcDenom, verifierAddress } })
|
|
2370
|
+
\`\`\`
|
|
2371
|
+
|
|
2372
|
+
Discover with \`list_presets({skill: "prediction-market"})\`. Fall back to raw \`add_approval\` only for non-standard variants.
|
|
2373
|
+
|
|
2270
2374
|
#### 1. Paired Mint (deposit 1 USDC → receive 1 YES + 1 NO)
|
|
2271
2375
|
|
|
2272
2376
|
\`\`\`json
|
|
@@ -2689,6 +2793,27 @@ The escrow is funded upfront at collection creation via \`mintEscrowCoinsToTrans
|
|
|
2689
2793
|
|
|
2690
2794
|
All 3 approvals share the same structure: Mint → burn address, 1x token ID 1. The token is just a vehicle to trigger the approval engine's coinTransfer. Each approval has maxNumTransfers = 1 (one-shot).
|
|
2691
2795
|
|
|
2796
|
+
### Preferred path: presets (three short tool calls)
|
|
2797
|
+
|
|
2798
|
+
All three approvals are fully canonical — bounty.accept, bounty.deny, bounty.expire cover the shape. The agent still generates the approvalId + proposalId suffixes (via \`generate_unique_id\` or similar) and passes them as params.
|
|
2799
|
+
|
|
2800
|
+
\`\`\`
|
|
2801
|
+
add_preset_approval({
|
|
2802
|
+
presetId: "bounty.accept",
|
|
2803
|
+
params: { approvalId, proposalId, payoutTo: recipient, verifierAddress, denom, amount, expirationMs }
|
|
2804
|
+
})
|
|
2805
|
+
add_preset_approval({
|
|
2806
|
+
presetId: "bounty.deny",
|
|
2807
|
+
params: { approvalId, proposalId, payoutTo: submitter, verifierAddress, denom, amount, expirationMs }
|
|
2808
|
+
})
|
|
2809
|
+
add_preset_approval({
|
|
2810
|
+
presetId: "bounty.expire",
|
|
2811
|
+
params: { approvalId, refundTo: submitter, denom, amount, expirationMs }
|
|
2812
|
+
})
|
|
2813
|
+
\`\`\`
|
|
2814
|
+
|
|
2815
|
+
\`list_presets({skill: "bounty"})\` lists params. For non-standard variants (multi-verifier quorum, variable amounts), use raw \`add_approval\`.
|
|
2816
|
+
|
|
2692
2817
|
### 1. Accept (bounty-accept-*)
|
|
2693
2818
|
Verifier votes accept → mint-to-burn → coins to recipient.
|
|
2694
2819
|
|
|
@@ -2834,6 +2959,15 @@ On-chain crowdfunding with automatic goal tracking. Contributors deposit coins a
|
|
|
2834
2959
|
|
|
2835
2960
|
### 4 Required Approvals
|
|
2836
2961
|
|
|
2962
|
+
### Preferred path: presets (four short tool calls)
|
|
2963
|
+
|
|
2964
|
+
\`\`\`
|
|
2965
|
+
add_preset_approval({ presetId: "crowdfund.deposit-refund", params: { denom, deadlineMs, crowdfunderAddress } })
|
|
2966
|
+
add_preset_approval({ presetId: "crowdfund.deposit-progress", params: { denom, deadlineMs, crowdfunderAddress } })
|
|
2967
|
+
add_preset_approval({ presetId: "crowdfund.success-withdraw", params: { denom, deadlineMs, crowdfunderAddress, goalAmount } })
|
|
2968
|
+
add_preset_approval({ presetId: "crowdfund.refund", params: { denom, deadlineMs, crowdfunderAddress, goalAmount } })
|
|
2969
|
+
\`\`\`
|
|
2970
|
+
|
|
2837
2971
|
#### 1. Deposit-Refund (contributor pays coins → receives Token 1)
|
|
2838
2972
|
|
|
2839
2973
|
\`\`\`json
|
|
@@ -3068,6 +3202,20 @@ Bidders set user-level outgoing approvals on their own accounts that say "I will
|
|
|
3068
3202
|
|
|
3069
3203
|
Bids must have transferTimes that stay valid through the END of the accept window (not just the bid deadline), so the seller can match them during the entire accept period.
|
|
3070
3204
|
|
|
3205
|
+
### Preferred path: presets (two short tool calls)
|
|
3206
|
+
|
|
3207
|
+
\`\`\`
|
|
3208
|
+
add_preset_approval({
|
|
3209
|
+
presetId: "auction.mint-to-winner",
|
|
3210
|
+
params: {
|
|
3211
|
+
sellerAddress: "bb1...",
|
|
3212
|
+
bidDeadlineMs: "<unix ms>",
|
|
3213
|
+
acceptWindowEndMs: "<unix ms>"
|
|
3214
|
+
}
|
|
3215
|
+
})
|
|
3216
|
+
add_preset_approval({ presetId: "auction.burn", params: {} })
|
|
3217
|
+
\`\`\`
|
|
3218
|
+
|
|
3071
3219
|
### 2 Approvals
|
|
3072
3220
|
|
|
3073
3221
|
#### 1. Mint-to-Winner (seller mints NFT directly to winning bidder during accept window)
|
|
@@ -3183,6 +3331,27 @@ A multi-product storefront where each product is a separate token ID. Buyers pay
|
|
|
3183
3331
|
|
|
3184
3332
|
Each product gets its own purchase approval. There's also an optional global burn approval.
|
|
3185
3333
|
|
|
3334
|
+
### Preferred path: presets (one call per product + optional burn)
|
|
3335
|
+
|
|
3336
|
+
Call \`products.purchase\` once per product (productIndex 1..N). Add \`products.burn\` once if you need the global burn/redeem:
|
|
3337
|
+
|
|
3338
|
+
\`\`\`
|
|
3339
|
+
add_preset_approval({
|
|
3340
|
+
presetId: "products.purchase",
|
|
3341
|
+
params: {
|
|
3342
|
+
productIndex: 1,
|
|
3343
|
+
storeAddress: "bb1...",
|
|
3344
|
+
priceAmount: "<base units>",
|
|
3345
|
+
denom: "<denom>",
|
|
3346
|
+
supplyLimit: "0", // "0" = unlimited
|
|
3347
|
+
burnOnPurchase: false // true = token minted straight to burn (receipt-style)
|
|
3348
|
+
}
|
|
3349
|
+
})
|
|
3350
|
+
|
|
3351
|
+
// Optional:
|
|
3352
|
+
add_preset_approval({ presetId: "products.burn", params: { numProducts: <N> } })
|
|
3353
|
+
\`\`\`
|
|
3354
|
+
|
|
3186
3355
|
#### Purchase Approval (per product)
|
|
3187
3356
|
|
|
3188
3357
|
\`\`\`json
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skillInstructions.js","sourceRoot":"","sources":["../../../../src/builder/resources/skillInstructions.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"skillInstructions.js","sourceRoot":"","sources":["../../../../src/builder/resources/skillInstructions.ts"],"names":[],"mappings":";;;AA43GA,oDAEC;AAED,0DAEC;AAMD,0CAGC;AAMD,0CAGC;AAMD,0CAGC;AAKD,wCAEC;AAKD,gFAWC;AAED,kDAEC;AAED,8EA0BC;AAl8GY,QAAA,kBAAkB,GAAuB;IACpD;QACE,EAAE,EAAE,aAAa;QACjB,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,YAAY;QACtB,WAAW,EAAE,0FAA0F;QACvG,OAAO,EAAE;;;;;;;;;;;;;;;yQAe4P;QACrQ,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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