{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "BitBadgesMsg", "oneOf": [ { "type": "object", "required": [ "addCustomData" ], "properties": { "addCustomData": { "type": "object", "required": [ "data" ], "properties": { "data": { "type": "string" } } } }, "additionalProperties": false }, { "type": "object", "required": [ "deleteCollectionMsg" ], "properties": { "deleteCollectionMsg": { "type": "object", "required": [ "collectionId" ], "properties": { "collectionId": { "type": "string" } } } }, "additionalProperties": false }, { "type": "object", "required": [ "createAddressListsMsg" ], "properties": { "createAddressListsMsg": { "type": "object", "required": [ "addressLists" ], "properties": { "addressLists": { "type": "array", "items": { "$ref": "#/definitions/AddressList" } } } } }, "additionalProperties": false }, { "type": "object", "required": [ "transferBadgesMsg" ], "properties": { "transferBadgesMsg": { "type": "object", "required": [ "collectionId", "transfers" ], "properties": { "collectionId": { "type": "string" }, "transfers": { "type": "array", "items": { "$ref": "#/definitions/Transfer" } } } } }, "additionalProperties": false }, { "type": "object", "required": [ "createCollectionMsg" ], "properties": { "createCollectionMsg": { "type": "object", "required": [ "badgeIdsToAdd", "badgeMetadataTimeline", "balancesType", "collectionApprovals", "collectionMetadataTimeline", "collectionPermissions", "customDataTimeline", "defaultBalances", "isArchivedTimeline", "managerTimeline", "offChainBalancesMetadataTimeline", "standardsTimeline" ], "properties": { "badgeIdsToAdd": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "badgeMetadataTimeline": { "type": "array", "items": { "$ref": "#/definitions/BadgeMetadataTimeline" } }, "balancesType": { "type": "string" }, "collectionApprovals": { "type": "array", "items": { "$ref": "#/definitions/CollectionApproval" } }, "collectionMetadataTimeline": { "type": "array", "items": { "$ref": "#/definitions/CollectionMetadataTimeline" } }, "collectionPermissions": { "$ref": "#/definitions/CollectionPermissions" }, "customDataTimeline": { "type": "array", "items": { "$ref": "#/definitions/CustomDataTimeline" } }, "defaultBalances": { "$ref": "#/definitions/UserBalanceStore" }, "isArchivedTimeline": { "type": "array", "items": { "$ref": "#/definitions/IsArchivedTimeline" } }, "managerTimeline": { "type": "array", "items": { "$ref": "#/definitions/ManagerTimeline" } }, "offChainBalancesMetadataTimeline": { "type": "array", "items": { "$ref": "#/definitions/OffChainBalancesMetadataTimeline" } }, "standardsTimeline": { "type": "array", "items": { "$ref": "#/definitions/StandardsTimeline" } } } } }, "additionalProperties": false }, { "type": "object", "required": [ "updateCollectionMsg" ], "properties": { "updateCollectionMsg": { "type": "object", "required": [ "badgeIdsToAdd", "badgeMetadataTimeline", "collectionApprovals", "collectionId", "collectionMetadataTimeline", "collectionPermissions", "customDataTimeline", "isArchivedTimeline", "managerTimeline", "offChainBalancesMetadataTimeline", "standardsTimeline", "updateBadgeMetadataTimeline", "updateCollectionApprovals", "updateCollectionMetadataTimeline", "updateCollectionPermissions", "updateCustomDataTimeline", "updateIsArchivedTimeline", "updateManagerTimeline", "updateOffChainBalancesMetadataTimeline", "updateStandardsTimeline" ], "properties": { "badgeIdsToAdd": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "badgeMetadataTimeline": { "type": "array", "items": { "$ref": "#/definitions/BadgeMetadataTimeline" } }, "collectionApprovals": { "type": "array", "items": { "$ref": "#/definitions/CollectionApproval" } }, "collectionId": { "type": "string" }, "collectionMetadataTimeline": { "type": "array", "items": { "$ref": "#/definitions/CollectionMetadataTimeline" } }, "collectionPermissions": { "$ref": "#/definitions/CollectionPermissions" }, "customDataTimeline": { "type": "array", "items": { "$ref": "#/definitions/CustomDataTimeline" } }, "isArchivedTimeline": { "type": "array", "items": { "$ref": "#/definitions/IsArchivedTimeline" } }, "managerTimeline": { "type": "array", "items": { "$ref": "#/definitions/ManagerTimeline" } }, "offChainBalancesMetadataTimeline": { "type": "array", "items": { "$ref": "#/definitions/OffChainBalancesMetadataTimeline" } }, "standardsTimeline": { "type": "array", "items": { "$ref": "#/definitions/StandardsTimeline" } }, "updateBadgeMetadataTimeline": { "type": "boolean" }, "updateCollectionApprovals": { "type": "boolean" }, "updateCollectionMetadataTimeline": { "type": "boolean" }, "updateCollectionPermissions": { "type": "boolean" }, "updateCustomDataTimeline": { "type": "boolean" }, "updateIsArchivedTimeline": { "type": "boolean" }, "updateManagerTimeline": { "type": "boolean" }, "updateOffChainBalancesMetadataTimeline": { "type": "boolean" }, "updateStandardsTimeline": { "type": "boolean" } } } }, "additionalProperties": false }, { "type": "object", "required": [ "universalUpdateCollectionMsg" ], "properties": { "universalUpdateCollectionMsg": { "type": "object", "required": [ "badgeIdsToAdd", "badgeMetadataTimeline", "balancesType", "collectionApprovals", "collectionId", "collectionMetadataTimeline", "collectionPermissions", "customDataTimeline", "defaultBalances", "isArchivedTimeline", "managerTimeline", "offChainBalancesMetadataTimeline", "standardsTimeline", "updateBadgeMetadataTimeline", "updateCollectionApprovals", "updateCollectionMetadataTimeline", "updateCollectionPermissions", "updateCustomDataTimeline", "updateIsArchivedTimeline", "updateManagerTimeline", "updateOffChainBalancesMetadataTimeline", "updateStandardsTimeline" ], "properties": { "badgeIdsToAdd": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "badgeMetadataTimeline": { "type": "array", "items": { "$ref": "#/definitions/BadgeMetadataTimeline" } }, "balancesType": { "type": "string" }, "collectionApprovals": { "type": "array", "items": { "$ref": "#/definitions/CollectionApproval" } }, "collectionId": { "type": "string" }, "collectionMetadataTimeline": { "type": "array", "items": { "$ref": "#/definitions/CollectionMetadataTimeline" } }, "collectionPermissions": { "$ref": "#/definitions/CollectionPermissions" }, "customDataTimeline": { "type": "array", "items": { "$ref": "#/definitions/CustomDataTimeline" } }, "defaultBalances": { "$ref": "#/definitions/UserBalanceStore" }, "isArchivedTimeline": { "type": "array", "items": { "$ref": "#/definitions/IsArchivedTimeline" } }, "managerTimeline": { "type": "array", "items": { "$ref": "#/definitions/ManagerTimeline" } }, "offChainBalancesMetadataTimeline": { "type": "array", "items": { "$ref": "#/definitions/OffChainBalancesMetadataTimeline" } }, "standardsTimeline": { "type": "array", "items": { "$ref": "#/definitions/StandardsTimeline" } }, "updateBadgeMetadataTimeline": { "type": "boolean" }, "updateCollectionApprovals": { "type": "boolean" }, "updateCollectionMetadataTimeline": { "type": "boolean" }, "updateCollectionPermissions": { "type": "boolean" }, "updateCustomDataTimeline": { "type": "boolean" }, "updateIsArchivedTimeline": { "type": "boolean" }, "updateManagerTimeline": { "type": "boolean" }, "updateOffChainBalancesMetadataTimeline": { "type": "boolean" }, "updateStandardsTimeline": { "type": "boolean" } } } }, "additionalProperties": false } ], "definitions": { "ActionPermission": { "type": "object", "required": [ "permanentlyPermittedTimes", "permanentyForbiddenTimes" ], "properties": { "permanentlyPermittedTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "permanentyForbiddenTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } } } }, "AddressList": { "type": "object", "required": [ "addresses", "customData", "listId", "uri", "whitelist" ], "properties": { "addresses": { "type": "array", "items": { "type": "string" } }, "aliasAddress": { "type": [ "string", "null" ] }, "createdBy": { "type": [ "string", "null" ] }, "customData": { "type": "string" }, "listId": { "type": "string" }, "uri": { "type": "string" }, "whitelist": { "type": "boolean" } } }, "ApprovalAmounts": { "type": "object", "required": [ "amountTrackerId", "overallApprovalAmount", "perFromAddressApprovalAmount", "perInitiatedByAddressApprovalAmount", "perToAddressApprovalAmount" ], "properties": { "amountTrackerId": { "type": "string" }, "overallApprovalAmount": { "type": "string" }, "perFromAddressApprovalAmount": { "type": "string" }, "perInitiatedByAddressApprovalAmount": { "type": "string" }, "perToAddressApprovalAmount": { "type": "string" } } }, "ApprovalCriteria": { "type": "object", "required": [ "approvalAmounts", "coinTransfers", "maxNumTransfers", "merkleChallenges", "mustOwnBadges", "overridesFromOutgoingApprovals", "overridesToIncomingApprovals", "predeterminedBalances", "requireFromDoesNotEqualInitiatedBy", "requireFromEqualsInitiatedBy", "requireToDoesNotEqualInitiatedBy", "requireToEqualsInitiatedBy", "zkProofs" ], "properties": { "approvalAmounts": { "$ref": "#/definitions/ApprovalAmounts" }, "coinTransfers": { "type": "array", "items": { "$ref": "#/definitions/CoinTransfer" } }, "maxNumTransfers": { "$ref": "#/definitions/MaxNumTransfers" }, "merkleChallenges": { "type": "array", "items": { "$ref": "#/definitions/MerkleChallenge" } }, "mustOwnBadges": { "type": "array", "items": { "$ref": "#/definitions/MustOwnBadges" } }, "overridesFromOutgoingApprovals": { "type": "boolean" }, "overridesToIncomingApprovals": { "type": "boolean" }, "predeterminedBalances": { "$ref": "#/definitions/PredeterminedBalances" }, "requireFromDoesNotEqualInitiatedBy": { "type": "boolean" }, "requireFromEqualsInitiatedBy": { "type": "boolean" }, "requireToDoesNotEqualInitiatedBy": { "type": "boolean" }, "requireToEqualsInitiatedBy": { "type": "boolean" }, "zkProofs": { "type": "array", "items": { "$ref": "#/definitions/ZkProof" } } } }, "ApprovalIdentifierDetails": { "type": "object", "required": [ "approvalId", "approvalLevel", "approverAddress" ], "properties": { "approvalId": { "type": "string" }, "approvalLevel": { "type": "string" }, "approverAddress": { "type": "string" } } }, "BadgeIdsActionPermission": { "type": "object", "required": [ "badgeIds", "permanentlyPermittedTimes", "permanentyForbiddenTimes" ], "properties": { "badgeIds": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "permanentlyPermittedTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "permanentyForbiddenTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } } } }, "BadgeMetadata": { "type": "object", "required": [ "badgeIds", "customData", "uri" ], "properties": { "badgeIds": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "customData": { "type": "string" }, "uri": { "type": "string" } } }, "BadgeMetadataTimeline": { "type": "object", "required": [ "badgeMetadata", "timelineTimes" ], "properties": { "badgeMetadata": { "type": "array", "items": { "$ref": "#/definitions/BadgeMetadata" } }, "timelineTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } } } }, "Balance": { "type": "object", "required": [ "amount", "badgeIds", "ownershipTimes" ], "properties": { "amount": { "type": "string" }, "badgeIds": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "ownershipTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } } } }, "CoinTransfer": { "type": "object", "required": [ "coins", "to" ], "properties": { "coins": { "type": "array", "items": { "$ref": "#/definitions/CosmosCoin" } }, "to": { "type": "string" } } }, "CollectionApproval": { "type": "object", "required": [ "approvalCriteria", "approvalId", "badgeIds", "customData", "fromListId", "initiatedByListId", "ownershipTimes", "toListId", "transferTimes", "uri" ], "properties": { "approvalCriteria": { "$ref": "#/definitions/ApprovalCriteria" }, "approvalId": { "type": "string" }, "badgeIds": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "customData": { "type": "string" }, "fromListId": { "type": "string" }, "initiatedByListId": { "type": "string" }, "ownershipTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "toListId": { "type": "string" }, "transferTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "uri": { "type": "string" } } }, "CollectionApprovalPermission": { "type": "object", "required": [ "badgeIds", "fromListId", "initiatedByListId", "ownershipTimes", "permanentlyPermittedTimes", "permanentyForbiddenTimes", "toListId", "transferTimes" ], "properties": { "badgeIds": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "fromListId": { "type": "string" }, "initiatedByListId": { "type": "string" }, "ownershipTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "permanentlyPermittedTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "permanentyForbiddenTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "toListId": { "type": "string" }, "transferTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } } } }, "CollectionMetadata": { "type": "object", "required": [ "customData", "uri" ], "properties": { "customData": { "type": "string" }, "uri": { "type": "string" } } }, "CollectionMetadataTimeline": { "type": "object", "required": [ "collectionMetadata", "timelineTimes" ], "properties": { "collectionMetadata": { "$ref": "#/definitions/CollectionMetadata" }, "timelineTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } } } }, "CollectionPermissions": { "type": "object", "required": [ "canArchiveCollection", "canDeleteCollection", "canUpdateBadgeMetadata", "canUpdateCollectionApprovals", "canUpdateCollectionMetadata", "canUpdateCustomData", "canUpdateManager", "canUpdateOffChainBalancesMetadata", "canUpdateStandards", "canUpdateValidBadgeIds" ], "properties": { "canArchiveCollection": { "type": "array", "items": { "$ref": "#/definitions/TimedUpdatePermission" } }, "canDeleteCollection": { "type": "array", "items": { "$ref": "#/definitions/ActionPermission" } }, "canUpdateBadgeMetadata": { "type": "array", "items": { "$ref": "#/definitions/TimedUpdateWithBadgeIdsPermission" } }, "canUpdateCollectionApprovals": { "type": "array", "items": { "$ref": "#/definitions/CollectionApprovalPermission" } }, "canUpdateCollectionMetadata": { "type": "array", "items": { "$ref": "#/definitions/TimedUpdatePermission" } }, "canUpdateCustomData": { "type": "array", "items": { "$ref": "#/definitions/TimedUpdatePermission" } }, "canUpdateManager": { "type": "array", "items": { "$ref": "#/definitions/TimedUpdatePermission" } }, "canUpdateOffChainBalancesMetadata": { "type": "array", "items": { "$ref": "#/definitions/TimedUpdatePermission" } }, "canUpdateStandards": { "type": "array", "items": { "$ref": "#/definitions/TimedUpdatePermission" } }, "canUpdateValidBadgeIds": { "type": "array", "items": { "$ref": "#/definitions/BadgeIdsActionPermission" } } } }, "CosmosCoin": { "type": "object", "required": [ "amount", "denom" ], "properties": { "amount": { "type": "string" }, "denom": { "type": "string" } } }, "CustomDataTimeline": { "type": "object", "required": [ "customData", "timelineTimes" ], "properties": { "customData": { "type": "string" }, "timelineTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } } } }, "IncomingApprovalCriteria": { "type": "object", "required": [ "approvalAmounts", "coinTransfers", "maxNumTransfers", "merkleChallenges", "mustOwnBadges", "predeterminedBalances", "requireFromDoesNotEqualInitiatedBy", "requireFromEqualsInitiatedBy", "zkProofs" ], "properties": { "approvalAmounts": { "$ref": "#/definitions/ApprovalAmounts" }, "coinTransfers": { "type": "array", "items": { "$ref": "#/definitions/CoinTransfer" } }, "maxNumTransfers": { "$ref": "#/definitions/MaxNumTransfers" }, "merkleChallenges": { "type": "array", "items": { "$ref": "#/definitions/MerkleChallenge" } }, "mustOwnBadges": { "type": "array", "items": { "$ref": "#/definitions/MustOwnBadges" } }, "predeterminedBalances": { "$ref": "#/definitions/PredeterminedBalances" }, "requireFromDoesNotEqualInitiatedBy": { "type": "boolean" }, "requireFromEqualsInitiatedBy": { "type": "boolean" }, "zkProofs": { "type": "array", "items": { "$ref": "#/definitions/ZkProof" } } } }, "IncrementedBalances": { "type": "object", "required": [ "incrementBadgeIdsBy", "incrementOwnershipTimesBy", "startBalances" ], "properties": { "incrementBadgeIdsBy": { "type": "string" }, "incrementOwnershipTimesBy": { "type": "string" }, "startBalances": { "type": "array", "items": { "$ref": "#/definitions/Balance" } } } }, "IsArchivedTimeline": { "type": "object", "required": [ "isArchived", "timelineTimes" ], "properties": { "isArchived": { "type": "boolean" }, "timelineTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } } } }, "ManagerTimeline": { "type": "object", "required": [ "manager", "timelineTimes" ], "properties": { "manager": { "type": "string" }, "timelineTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } } } }, "ManualBalances": { "type": "object", "required": [ "balances" ], "properties": { "balances": { "type": "array", "items": { "$ref": "#/definitions/Balance" } } } }, "MaxNumTransfers": { "type": "object", "required": [ "amountTrackerId", "overallMaxNumTransfers", "perFromAddressMaxNumTransfers", "perInitiatedByAddressMaxNumTransfers", "perToAddressMaxNumTransfers" ], "properties": { "amountTrackerId": { "type": "string" }, "overallMaxNumTransfers": { "type": "string" }, "perFromAddressMaxNumTransfers": { "type": "string" }, "perInitiatedByAddressMaxNumTransfers": { "type": "string" }, "perToAddressMaxNumTransfers": { "type": "string" } } }, "MerkleChallenge": { "type": "object", "required": [ "challengeTrackerId", "customData", "expectedProofLength", "maxUsesPerLeaf", "root", "uri", "useCreatorAddressAsLeaf" ], "properties": { "challengeTrackerId": { "type": "string" }, "customData": { "type": "string" }, "expectedProofLength": { "type": "string" }, "maxUsesPerLeaf": { "type": "string" }, "root": { "type": "string" }, "uri": { "type": "string" }, "useCreatorAddressAsLeaf": { "type": "boolean" } } }, "MerklePathItem": { "type": "object", "required": [ "aunt", "onRight" ], "properties": { "aunt": { "type": "string" }, "onRight": { "type": "boolean" } } }, "MerkleProof": { "type": "object", "required": [ "aunts", "leaf" ], "properties": { "aunts": { "type": "array", "items": { "$ref": "#/definitions/MerklePathItem" } }, "leaf": { "type": "string" } } }, "MustOwnBadges": { "type": "object", "required": [ "amountRange", "badgeIds", "collectionId", "mustSatifyForAllAssets", "overrideWithCurrentTime", "ownershipTimes" ], "properties": { "amountRange": { "$ref": "#/definitions/UintRange" }, "badgeIds": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "collectionId": { "type": "string" }, "mustSatifyForAllAssets": { "type": "boolean" }, "overrideWithCurrentTime": { "type": "boolean" }, "ownershipTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } } } }, "OffChainBalancesMetadata": { "type": "object", "required": [ "customData", "uri" ], "properties": { "customData": { "type": "string" }, "uri": { "type": "string" } } }, "OffChainBalancesMetadataTimeline": { "type": "object", "required": [ "offChainBalancesMetadata", "timelineTimes" ], "properties": { "offChainBalancesMetadata": { "$ref": "#/definitions/OffChainBalancesMetadata" }, "timelineTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } } } }, "OutgoingApprovalCriteria": { "type": "object", "required": [ "approvalAmounts", "coinTransfers", "maxNumTransfers", "merkleChallenges", "mustOwnBadges", "predeterminedBalances", "requireToDoesNotEqualInitiatedBy", "requireToEqualsInitiatedBy", "zkProofs" ], "properties": { "approvalAmounts": { "$ref": "#/definitions/ApprovalAmounts" }, "coinTransfers": { "type": "array", "items": { "$ref": "#/definitions/CoinTransfer" } }, "maxNumTransfers": { "$ref": "#/definitions/MaxNumTransfers" }, "merkleChallenges": { "type": "array", "items": { "$ref": "#/definitions/MerkleChallenge" } }, "mustOwnBadges": { "type": "array", "items": { "$ref": "#/definitions/MustOwnBadges" } }, "predeterminedBalances": { "$ref": "#/definitions/PredeterminedBalances" }, "requireToDoesNotEqualInitiatedBy": { "type": "boolean" }, "requireToEqualsInitiatedBy": { "type": "boolean" }, "zkProofs": { "type": "array", "items": { "$ref": "#/definitions/ZkProof" } } } }, "PredeterminedBalances": { "type": "object", "required": [ "incrementedBalances", "manualBalances", "orderCalculationMethod" ], "properties": { "incrementedBalances": { "$ref": "#/definitions/IncrementedBalances" }, "manualBalances": { "type": "array", "items": { "$ref": "#/definitions/ManualBalances" } }, "orderCalculationMethod": { "$ref": "#/definitions/PredeterminedOrderCalculationMethod" } } }, "PredeterminedOrderCalculationMethod": { "type": "object", "required": [ "challengeTrackerId", "useMerkleChallengeLeafIndex", "useOverallNumTransfers", "usePerFromAddressNumTransfers", "usePerInitiatedByAddressNumTransfers", "usePerToAddressNumTransfers" ], "properties": { "challengeTrackerId": { "type": "string" }, "useMerkleChallengeLeafIndex": { "type": "boolean" }, "useOverallNumTransfers": { "type": "boolean" }, "usePerFromAddressNumTransfers": { "type": "boolean" }, "usePerInitiatedByAddressNumTransfers": { "type": "boolean" }, "usePerToAddressNumTransfers": { "type": "boolean" } } }, "StandardsTimeline": { "type": "object", "required": [ "standards", "timelineTimes" ], "properties": { "standards": { "type": "array", "items": { "type": "string" } }, "timelineTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } } } }, "TimedUpdatePermission": { "type": "object", "required": [ "permanentlyPermittedTimes", "permanentyForbiddenTimes", "timelineTimes" ], "properties": { "permanentlyPermittedTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "permanentyForbiddenTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "timelineTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } } } }, "TimedUpdateWithBadgeIdsPermission": { "type": "object", "required": [ "badgeIds", "permanentlyPermittedTimes", "permanentyForbiddenTimes", "timelineTimes" ], "properties": { "badgeIds": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "permanentlyPermittedTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "permanentyForbiddenTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "timelineTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } } } }, "Transfer": { "type": "object", "required": [ "balances", "from", "memo", "merkleProofs", "onlyCheckPrioritizedApprovals", "prioritizedApprovals", "toAddresses", "zkProofSolutions" ], "properties": { "balances": { "type": "array", "items": { "$ref": "#/definitions/Balance" } }, "from": { "type": "string" }, "memo": { "type": "string" }, "merkleProofs": { "type": "array", "items": { "$ref": "#/definitions/MerkleProof" } }, "onlyCheckPrioritizedApprovals": { "type": "boolean" }, "precalculateBalancesFromApproval": { "anyOf": [ { "$ref": "#/definitions/ApprovalIdentifierDetails" }, { "type": "null" } ] }, "prioritizedApprovals": { "type": "array", "items": { "$ref": "#/definitions/ApprovalIdentifierDetails" } }, "toAddresses": { "type": "array", "items": { "type": "string" } }, "zkProofSolutions": { "type": "array", "items": { "$ref": "#/definitions/ZkProofSolution" } } } }, "UintRange": { "type": "object", "required": [ "end", "start" ], "properties": { "end": { "type": "string" }, "start": { "type": "string" } } }, "UserBalanceStore": { "type": "object", "required": [ "autoApproveSelfInitiatedIncomingTransfers", "autoApproveSelfInitiatedOutgoingTransfers", "balances", "incomingApprovals", "outgoingApprovals", "userPermissions" ], "properties": { "autoApproveSelfInitiatedIncomingTransfers": { "type": "boolean" }, "autoApproveSelfInitiatedOutgoingTransfers": { "type": "boolean" }, "balances": { "type": "array", "items": { "$ref": "#/definitions/Balance" } }, "incomingApprovals": { "type": "array", "items": { "$ref": "#/definitions/UserIncomingApproval" } }, "outgoingApprovals": { "type": "array", "items": { "$ref": "#/definitions/UserOutgoingApproval" } }, "userPermissions": { "$ref": "#/definitions/UserPermissions" } } }, "UserIncomingApproval": { "type": "object", "required": [ "approvalCriteria", "approvalId", "badgeIds", "customData", "fromListId", "initiatedByListId", "ownershipTimes", "transferTimes", "uri" ], "properties": { "approvalCriteria": { "$ref": "#/definitions/IncomingApprovalCriteria" }, "approvalId": { "type": "string" }, "badgeIds": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "customData": { "type": "string" }, "fromListId": { "type": "string" }, "initiatedByListId": { "type": "string" }, "ownershipTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "transferTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "uri": { "type": "string" } } }, "UserIncomingApprovalPermission": { "type": "object", "required": [ "badgeIds", "fromListId", "initiatedByListId", "ownershipTimes", "permanentlyPermittedTimes", "permanentyForbiddenTimes", "transferTimes" ], "properties": { "badgeIds": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "fromListId": { "type": "string" }, "initiatedByListId": { "type": "string" }, "ownershipTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "permanentlyPermittedTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "permanentyForbiddenTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "transferTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } } } }, "UserOutgoingApproval": { "type": "object", "required": [ "approvalCriteria", "approvalId", "badgeIds", "customData", "initiatedByListId", "ownershipTimes", "toListId", "transferTimes", "uri" ], "properties": { "approvalCriteria": { "$ref": "#/definitions/OutgoingApprovalCriteria" }, "approvalId": { "type": "string" }, "badgeIds": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "customData": { "type": "string" }, "initiatedByListId": { "type": "string" }, "ownershipTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "toListId": { "type": "string" }, "transferTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "uri": { "type": "string" } } }, "UserOutgoingApprovalPermission": { "type": "object", "required": [ "badgeIds", "initiatedByListId", "ownershipTimes", "permanentlyPermittedTimes", "permanentyForbiddenTimes", "toListId", "transferTimes" ], "properties": { "badgeIds": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "initiatedByListId": { "type": "string" }, "ownershipTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "permanentlyPermittedTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "permanentyForbiddenTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } }, "toListId": { "type": "string" }, "transferTimes": { "type": "array", "items": { "$ref": "#/definitions/UintRange" } } } }, "UserPermissions": { "type": "object", "required": [ "canUpdateAutoApproveSelfInitiatedIncomingTransfers", "canUpdateAutoApproveSelfInitiatedOutgoingTransfers", "canUpdateIncomingApprovals", "canUpdateOutgoingApprovals" ], "properties": { "canUpdateAutoApproveSelfInitiatedIncomingTransfers": { "type": "array", "items": { "$ref": "#/definitions/ActionPermission" } }, "canUpdateAutoApproveSelfInitiatedOutgoingTransfers": { "type": "array", "items": { "$ref": "#/definitions/ActionPermission" } }, "canUpdateIncomingApprovals": { "type": "array", "items": { "$ref": "#/definitions/UserIncomingApprovalPermission" } }, "canUpdateOutgoingApprovals": { "type": "array", "items": { "$ref": "#/definitions/UserOutgoingApprovalPermission" } } } }, "ZkProof": { "type": "object", "required": [ "customData", "uri", "verificationKey", "zkpTrackerId" ], "properties": { "customData": { "type": "string" }, "uri": { "type": "string" }, "verificationKey": { "type": "string" }, "zkpTrackerId": { "type": "string" } } }, "ZkProofSolution": { "type": "object", "required": [ "proof", "publicInputs" ], "properties": { "proof": { "type": "string" }, "publicInputs": { "type": "string" } } } } }