@totochain/client 0.0.0-stage → 0.1.0
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 +283 -2
- package/_cjs/accounts/index.d.cts +7 -0
- package/_cjs/accounts/index.js +29 -0
- package/_cjs/accounts/keyring.d.cts +28 -0
- package/_cjs/accounts/keyring.js +102 -0
- package/_cjs/accounts/substrateSigner.d.cts +5 -0
- package/_cjs/accounts/substrateSigner.js +46 -0
- package/_cjs/accounts/types.d.cts +6 -0
- package/_cjs/accounts/types.js +2 -0
- package/_cjs/accounts/wellKnown.d.cts +24 -0
- package/_cjs/accounts/wellKnown.js +322 -0
- package/_cjs/actions/activityTracker/calculateActivityReputationAtBlock.d.cts +9 -0
- package/_cjs/actions/activityTracker/calculateActivityReputationAtBlock.js +8 -0
- package/_cjs/actions/activityTracker/decodeReputationPage.d.cts +4 -0
- package/_cjs/actions/activityTracker/decodeReputationPage.js +13 -0
- package/_cjs/actions/activityTracker/getActivityReputation.d.cts +8 -0
- package/_cjs/actions/activityTracker/getActivityReputation.js +8 -0
- package/_cjs/actions/activityTracker/getActivityReputationInfo.d.cts +9 -0
- package/_cjs/actions/activityTracker/getActivityReputationInfo.js +14 -0
- package/_cjs/actions/activityTracker/getActivityTrackerConfig.d.cts +8 -0
- package/_cjs/actions/activityTracker/getActivityTrackerConfig.js +13 -0
- package/_cjs/actions/activityTracker/getAllActivityReputations.d.cts +8 -0
- package/_cjs/actions/activityTracker/getAllActivityReputations.js +9 -0
- package/_cjs/actions/activityTracker/getAllRawActivityReputations.d.cts +8 -0
- package/_cjs/actions/activityTracker/getAllRawActivityReputations.js +9 -0
- package/_cjs/actions/activityTracker/getMaxActivityReputation.d.cts +7 -0
- package/_cjs/actions/activityTracker/getMaxActivityReputation.js +8 -0
- package/_cjs/actions/activityTracker/getRawActivityReputation.d.cts +8 -0
- package/_cjs/actions/activityTracker/getRawActivityReputation.js +8 -0
- package/_cjs/actions/activityTracker/index.d.cts +18 -0
- package/_cjs/actions/activityTracker/index.js +19 -0
- package/_cjs/actions/activityTracker/types.d.cts +20 -0
- package/_cjs/actions/activityTracker/types.js +2 -0
- package/_cjs/actions/attestation/attest.d.cts +16 -0
- package/_cjs/actions/attestation/attest.js +14 -0
- package/_cjs/actions/attestation/index.d.cts +3 -0
- package/_cjs/actions/attestation/index.js +7 -0
- package/_cjs/actions/did/createDid.d.cts +10 -0
- package/_cjs/actions/did/createDid.js +10 -0
- package/_cjs/actions/did/index.d.cts +3 -0
- package/_cjs/actions/did/index.js +6 -0
- package/_cjs/actions/fractionalNft/getCollectionsCount.d.cts +7 -0
- package/_cjs/actions/fractionalNft/getCollectionsCount.js +8 -0
- package/_cjs/actions/fractionalNft/getItemsCount.d.cts +8 -0
- package/_cjs/actions/fractionalNft/getItemsCount.js +8 -0
- package/_cjs/actions/fractionalNft/getNftInfo.d.cts +9 -0
- package/_cjs/actions/fractionalNft/getNftInfo.js +12 -0
- package/_cjs/actions/fractionalNft/getOwner.d.cts +9 -0
- package/_cjs/actions/fractionalNft/getOwner.js +8 -0
- package/_cjs/actions/fractionalNft/getTotalFnftsMinted.d.cts +7 -0
- package/_cjs/actions/fractionalNft/getTotalFnftsMinted.js +8 -0
- package/_cjs/actions/fractionalNft/getWildcardCollectionId.d.cts +7 -0
- package/_cjs/actions/fractionalNft/getWildcardCollectionId.js +8 -0
- package/_cjs/actions/fractionalNft/getWildcardDistributionMap.d.cts +8 -0
- package/_cjs/actions/fractionalNft/getWildcardDistributionMap.js +9 -0
- package/_cjs/actions/fractionalNft/getWildcardThreshold.d.cts +7 -0
- package/_cjs/actions/fractionalNft/getWildcardThreshold.js +8 -0
- package/_cjs/actions/fractionalNft/index.d.cts +18 -0
- package/_cjs/actions/fractionalNft/index.js +19 -0
- package/_cjs/actions/fractionalNft/types.d.cts +10 -0
- package/_cjs/actions/fractionalNft/types.js +2 -0
- package/_cjs/actions/handshake/getCompletedHandshakes.d.cts +8 -0
- package/_cjs/actions/handshake/getCompletedHandshakes.js +8 -0
- package/_cjs/actions/handshake/getHandshakeCount.d.cts +8 -0
- package/_cjs/actions/handshake/getHandshakeCount.js +8 -0
- package/_cjs/actions/handshake/getHandshakeStatus.d.cts +10 -0
- package/_cjs/actions/handshake/getHandshakeStatus.js +8 -0
- package/_cjs/actions/handshake/handshakeExists.d.cts +9 -0
- package/_cjs/actions/handshake/handshakeExists.js +8 -0
- package/_cjs/actions/handshake/hasHandshakeCompleted.d.cts +9 -0
- package/_cjs/actions/handshake/hasHandshakeCompleted.js +8 -0
- package/_cjs/actions/handshake/index.d.cts +12 -0
- package/_cjs/actions/handshake/index.js +13 -0
- package/_cjs/actions/handshake/types.d.cts +2 -0
- package/_cjs/actions/handshake/types.js +2 -0
- package/_cjs/actions/index.d.cts +14 -0
- package/_cjs/actions/index.js +35 -0
- package/_cjs/actions/potential/getActiveReferralShare.d.cts +8 -0
- package/_cjs/actions/potential/getActiveReferralShare.js +8 -0
- package/_cjs/actions/potential/getCycleNumber.d.cts +7 -0
- package/_cjs/actions/potential/getCycleNumber.js +8 -0
- package/_cjs/actions/potential/getCyclePotentialMinted.d.cts +7 -0
- package/_cjs/actions/potential/getCyclePotentialMinted.js +8 -0
- package/_cjs/actions/potential/getCycleSupply.d.cts +7 -0
- package/_cjs/actions/potential/getCycleSupply.js +8 -0
- package/_cjs/actions/potential/getDefaultActiveReferralShare.d.cts +7 -0
- package/_cjs/actions/potential/getDefaultActiveReferralShare.js +8 -0
- package/_cjs/actions/potential/getMaxSupply.d.cts +7 -0
- package/_cjs/actions/potential/getMaxSupply.js +8 -0
- package/_cjs/actions/potential/getMonthNumber.d.cts +7 -0
- package/_cjs/actions/potential/getMonthNumber.js +8 -0
- package/_cjs/actions/potential/getMonthPotentialMinted.d.cts +7 -0
- package/_cjs/actions/potential/getMonthPotentialMinted.js +8 -0
- package/_cjs/actions/potential/getMonthSupply.d.cts +7 -0
- package/_cjs/actions/potential/getMonthSupply.js +8 -0
- package/_cjs/actions/potential/getPotential.d.cts +8 -0
- package/_cjs/actions/potential/getPotential.js +8 -0
- package/_cjs/actions/potential/getTotalPotentialMinted.d.cts +7 -0
- package/_cjs/actions/potential/getTotalPotentialMinted.js +8 -0
- package/_cjs/actions/potential/index.d.cts +23 -0
- package/_cjs/actions/potential/index.js +25 -0
- package/_cjs/actions/referral/decodePage.d.cts +4 -0
- package/_cjs/actions/referral/decodePage.js +13 -0
- package/_cjs/actions/referral/getActiveReferrals.d.cts +9 -0
- package/_cjs/actions/referral/getActiveReferrals.js +14 -0
- package/_cjs/actions/referral/getActiveReferralsCount.d.cts +8 -0
- package/_cjs/actions/referral/getActiveReferralsCount.js +8 -0
- package/_cjs/actions/referral/getBlockProducers.d.cts +7 -0
- package/_cjs/actions/referral/getBlockProducers.js +8 -0
- package/_cjs/actions/referral/getBlockProducersPage.d.cts +8 -0
- package/_cjs/actions/referral/getBlockProducersPage.js +9 -0
- package/_cjs/actions/referral/getPendingReferrals.d.cts +8 -0
- package/_cjs/actions/referral/getPendingReferrals.js +8 -0
- package/_cjs/actions/referral/getPendingReferralsPage.d.cts +9 -0
- package/_cjs/actions/referral/getPendingReferralsPage.js +9 -0
- package/_cjs/actions/referral/getReferrer.d.cts +8 -0
- package/_cjs/actions/referral/getReferrer.js +8 -0
- package/_cjs/actions/referral/index.d.cts +16 -0
- package/_cjs/actions/referral/index.js +17 -0
- package/_cjs/actions/referral/types.d.cts +6 -0
- package/_cjs/actions/referral/types.js +2 -0
- package/_cjs/actions/reputationVoting/getTally.d.cts +9 -0
- package/_cjs/actions/reputationVoting/getTally.js +14 -0
- package/_cjs/actions/reputationVoting/getVotesForAccount.d.cts +9 -0
- package/_cjs/actions/reputationVoting/getVotesForAccount.js +16 -0
- package/_cjs/actions/reputationVoting/getVotingReputation.d.cts +8 -0
- package/_cjs/actions/reputationVoting/getVotingReputation.js +8 -0
- package/_cjs/actions/reputationVoting/index.d.cts +10 -0
- package/_cjs/actions/reputationVoting/index.js +11 -0
- package/_cjs/actions/reputationVoting/isPassing.d.cts +8 -0
- package/_cjs/actions/reputationVoting/isPassing.js +8 -0
- package/_cjs/actions/reputationVoting/types.d.cts +17 -0
- package/_cjs/actions/reputationVoting/types.js +2 -0
- package/_cjs/actions/rewardPool/getCollectionIds.d.cts +7 -0
- package/_cjs/actions/rewardPool/getCollectionIds.js +8 -0
- package/_cjs/actions/rewardPool/getItemIds.d.cts +8 -0
- package/_cjs/actions/rewardPool/getItemIds.js +8 -0
- package/_cjs/actions/rewardPool/getRewardPoolAccount.d.cts +7 -0
- package/_cjs/actions/rewardPool/getRewardPoolAccount.js +8 -0
- package/_cjs/actions/rewardPool/getRewardPoolBalance.d.cts +7 -0
- package/_cjs/actions/rewardPool/getRewardPoolBalance.js +8 -0
- package/_cjs/actions/rewardPool/index.d.cts +9 -0
- package/_cjs/actions/rewardPool/index.js +11 -0
- package/_cjs/actions/submitAndWait.d.cts +65 -0
- package/_cjs/actions/submitAndWait.js +141 -0
- package/_cjs/actions/techCommitteeManager/getSelectedTechCommittee.d.cts +7 -0
- package/_cjs/actions/techCommitteeManager/getSelectedTechCommittee.js +8 -0
- package/_cjs/actions/techCommitteeManager/getTechCommitteeCandidates.d.cts +7 -0
- package/_cjs/actions/techCommitteeManager/getTechCommitteeCandidates.js +8 -0
- package/_cjs/actions/techCommitteeManager/index.d.cts +5 -0
- package/_cjs/actions/techCommitteeManager/index.js +7 -0
- package/_cjs/actions/validatorManager/decodePairs.d.cts +8 -0
- package/_cjs/actions/validatorManager/decodePairs.js +7 -0
- package/_cjs/actions/validatorManager/getActiveValidators.d.cts +7 -0
- package/_cjs/actions/validatorManager/getActiveValidators.js +8 -0
- package/_cjs/actions/validatorManager/getOffenceValidators.d.cts +8 -0
- package/_cjs/actions/validatorManager/getOffenceValidators.js +9 -0
- package/_cjs/actions/validatorManager/getOfflineValidators.d.cts +8 -0
- package/_cjs/actions/validatorManager/getOfflineValidators.js +9 -0
- package/_cjs/actions/validatorManager/getReputationForAccount.d.cts +8 -0
- package/_cjs/actions/validatorManager/getReputationForAccount.js +8 -0
- package/_cjs/actions/validatorManager/getReputationPenaltyFor.d.cts +8 -0
- package/_cjs/actions/validatorManager/getReputationPenaltyFor.js +8 -0
- package/_cjs/actions/validatorManager/getReputations.d.cts +9 -0
- package/_cjs/actions/validatorManager/getReputations.js +9 -0
- package/_cjs/actions/validatorManager/getSelectedValidators.d.cts +7 -0
- package/_cjs/actions/validatorManager/getSelectedValidators.js +8 -0
- package/_cjs/actions/validatorManager/getValidatorCandidates.d.cts +7 -0
- package/_cjs/actions/validatorManager/getValidatorCandidates.js +8 -0
- package/_cjs/actions/validatorManager/index.d.cts +18 -0
- package/_cjs/actions/validatorManager/index.js +19 -0
- package/_cjs/actions/validatorManager/types.d.cts +10 -0
- package/_cjs/actions/validatorManager/types.js +2 -0
- package/_cjs/chains/defineChain.d.cts +18 -0
- package/_cjs/chains/defineChain.js +6 -0
- package/_cjs/chains/definitions.d.cts +65 -0
- package/_cjs/chains/definitions.js +52 -0
- package/_cjs/chains/index.d.cts +4 -0
- package/_cjs/chains/index.js +10 -0
- package/_cjs/client/createClient.d.cts +10 -0
- package/_cjs/client/createClient.js +25 -0
- package/_cjs/client/types.d.cts +7 -0
- package/_cjs/client/types.js +2 -0
- package/_cjs/crypto/claimHash.d.cts +23 -0
- package/_cjs/crypto/claimHash.js +38 -0
- package/_cjs/crypto/ctypeHash.d.cts +16 -0
- package/_cjs/crypto/ctypeHash.js +24 -0
- package/_cjs/crypto/index.d.cts +5 -0
- package/_cjs/crypto/index.js +9 -0
- package/_cjs/ctypes/definitions.d.cts +21 -0
- package/_cjs/ctypes/definitions.js +210 -0
- package/_cjs/ctypes/index.d.cts +4 -0
- package/_cjs/ctypes/index.js +21 -0
- package/_cjs/index.d.cts +22 -0
- package/_cjs/index.js +62 -0
- package/_cjs/package.json +1 -0
- package/_cjs/plugins/activityTracker.d.cts +34 -0
- package/_cjs/plugins/activityTracker.js +18 -0
- package/_cjs/plugins/fractionalNft.d.cts +31 -0
- package/_cjs/plugins/fractionalNft.js +18 -0
- package/_cjs/plugins/handshake.d.cts +32 -0
- package/_cjs/plugins/handshake.js +15 -0
- package/_cjs/plugins/index.d.cts +19 -0
- package/_cjs/plugins/index.js +21 -0
- package/_cjs/plugins/potential.d.cts +29 -0
- package/_cjs/plugins/potential.js +21 -0
- package/_cjs/plugins/referral.d.cts +17 -0
- package/_cjs/plugins/referral.js +17 -0
- package/_cjs/plugins/reputationVoting.d.cts +25 -0
- package/_cjs/plugins/reputationVoting.js +14 -0
- package/_cjs/plugins/rewardPool.d.cts +19 -0
- package/_cjs/plugins/rewardPool.js +14 -0
- package/_cjs/plugins/techCommitteeManager.d.cts +14 -0
- package/_cjs/plugins/techCommitteeManager.js +12 -0
- package/_cjs/plugins/validatorManager.d.cts +30 -0
- package/_cjs/plugins/validatorManager.js +18 -0
- package/_cjs/rpc/bundle.d.cts +4 -0
- package/_cjs/rpc/bundle.js +24 -0
- package/_cjs/rpc/call.d.cts +4 -0
- package/_cjs/rpc/call.js +12 -0
- package/_cjs/rpc/definitions.d.cts +3 -0
- package/_cjs/rpc/definitions.js +398 -0
- package/_cjs/rpc/index.d.cts +4 -0
- package/_cjs/rpc/index.js +10 -0
- package/_cjs/rpc/types.d.cts +3 -0
- package/_cjs/rpc/types.js +48 -0
- package/_cjs/types/index.d.cts +17 -0
- package/_cjs/types/index.js +5 -0
- package/_esm/accounts/index.js +3 -0
- package/_esm/accounts/keyring.js +83 -0
- package/_esm/accounts/substrateSigner.js +43 -0
- package/_esm/accounts/types.js +1 -0
- package/_esm/accounts/wellKnown.js +317 -0
- package/_esm/actions/activityTracker/calculateActivityReputationAtBlock.js +5 -0
- package/_esm/actions/activityTracker/decodeReputationPage.js +10 -0
- package/_esm/actions/activityTracker/getActivityReputation.js +5 -0
- package/_esm/actions/activityTracker/getActivityReputationInfo.js +11 -0
- package/_esm/actions/activityTracker/getActivityTrackerConfig.js +10 -0
- package/_esm/actions/activityTracker/getAllActivityReputations.js +6 -0
- package/_esm/actions/activityTracker/getAllRawActivityReputations.js +6 -0
- package/_esm/actions/activityTracker/getMaxActivityReputation.js +5 -0
- package/_esm/actions/activityTracker/getRawActivityReputation.js +5 -0
- package/_esm/actions/activityTracker/index.js +8 -0
- package/_esm/actions/activityTracker/types.js +1 -0
- package/_esm/actions/attestation/attest.js +9 -0
- package/_esm/actions/attestation/index.js +1 -0
- package/_esm/actions/did/createDid.js +6 -0
- package/_esm/actions/did/index.js +1 -0
- package/_esm/actions/fractionalNft/getCollectionsCount.js +5 -0
- package/_esm/actions/fractionalNft/getItemsCount.js +5 -0
- package/_esm/actions/fractionalNft/getNftInfo.js +9 -0
- package/_esm/actions/fractionalNft/getOwner.js +5 -0
- package/_esm/actions/fractionalNft/getTotalFnftsMinted.js +5 -0
- package/_esm/actions/fractionalNft/getWildcardCollectionId.js +5 -0
- package/_esm/actions/fractionalNft/getWildcardDistributionMap.js +6 -0
- package/_esm/actions/fractionalNft/getWildcardThreshold.js +5 -0
- package/_esm/actions/fractionalNft/index.js +8 -0
- package/_esm/actions/fractionalNft/types.js +1 -0
- package/_esm/actions/handshake/getCompletedHandshakes.js +5 -0
- package/_esm/actions/handshake/getHandshakeCount.js +5 -0
- package/_esm/actions/handshake/getHandshakeStatus.js +5 -0
- package/_esm/actions/handshake/handshakeExists.js +5 -0
- package/_esm/actions/handshake/hasHandshakeCompleted.js +5 -0
- package/_esm/actions/handshake/index.js +5 -0
- package/_esm/actions/handshake/types.js +1 -0
- package/_esm/actions/index.js +12 -0
- package/_esm/actions/potential/getActiveReferralShare.js +5 -0
- package/_esm/actions/potential/getCycleNumber.js +5 -0
- package/_esm/actions/potential/getCyclePotentialMinted.js +5 -0
- package/_esm/actions/potential/getCycleSupply.js +5 -0
- package/_esm/actions/potential/getDefaultActiveReferralShare.js +5 -0
- package/_esm/actions/potential/getMaxSupply.js +5 -0
- package/_esm/actions/potential/getMonthNumber.js +5 -0
- package/_esm/actions/potential/getMonthPotentialMinted.js +5 -0
- package/_esm/actions/potential/getMonthSupply.js +5 -0
- package/_esm/actions/potential/getPotential.js +5 -0
- package/_esm/actions/potential/getTotalPotentialMinted.js +5 -0
- package/_esm/actions/potential/index.js +11 -0
- package/_esm/actions/referral/decodePage.js +10 -0
- package/_esm/actions/referral/getActiveReferrals.js +11 -0
- package/_esm/actions/referral/getActiveReferralsCount.js +5 -0
- package/_esm/actions/referral/getBlockProducers.js +5 -0
- package/_esm/actions/referral/getBlockProducersPage.js +6 -0
- package/_esm/actions/referral/getPendingReferrals.js +5 -0
- package/_esm/actions/referral/getPendingReferralsPage.js +6 -0
- package/_esm/actions/referral/getReferrer.js +5 -0
- package/_esm/actions/referral/index.js +7 -0
- package/_esm/actions/referral/types.js +1 -0
- package/_esm/actions/reputationVoting/getTally.js +11 -0
- package/_esm/actions/reputationVoting/getVotesForAccount.js +13 -0
- package/_esm/actions/reputationVoting/getVotingReputation.js +5 -0
- package/_esm/actions/reputationVoting/index.js +4 -0
- package/_esm/actions/reputationVoting/isPassing.js +5 -0
- package/_esm/actions/reputationVoting/types.js +1 -0
- package/_esm/actions/rewardPool/getCollectionIds.js +5 -0
- package/_esm/actions/rewardPool/getItemIds.js +5 -0
- package/_esm/actions/rewardPool/getRewardPoolAccount.js +5 -0
- package/_esm/actions/rewardPool/getRewardPoolBalance.js +5 -0
- package/_esm/actions/rewardPool/index.js +4 -0
- package/_esm/actions/submitAndWait.js +132 -0
- package/_esm/actions/techCommitteeManager/getSelectedTechCommittee.js +5 -0
- package/_esm/actions/techCommitteeManager/getTechCommitteeCandidates.js +5 -0
- package/_esm/actions/techCommitteeManager/index.js +2 -0
- package/_esm/actions/validatorManager/decodePairs.js +4 -0
- package/_esm/actions/validatorManager/getActiveValidators.js +5 -0
- package/_esm/actions/validatorManager/getOffenceValidators.js +6 -0
- package/_esm/actions/validatorManager/getOfflineValidators.js +6 -0
- package/_esm/actions/validatorManager/getReputationForAccount.js +5 -0
- package/_esm/actions/validatorManager/getReputationPenaltyFor.js +5 -0
- package/_esm/actions/validatorManager/getReputations.js +6 -0
- package/_esm/actions/validatorManager/getSelectedValidators.js +5 -0
- package/_esm/actions/validatorManager/getValidatorCandidates.js +5 -0
- package/_esm/actions/validatorManager/index.js +8 -0
- package/_esm/actions/validatorManager/types.js +1 -0
- package/_esm/chains/defineChain.js +3 -0
- package/_esm/chains/definitions.js +49 -0
- package/_esm/chains/index.js +2 -0
- package/_esm/client/createClient.js +21 -0
- package/_esm/client/types.js +1 -0
- package/_esm/crypto/claimHash.js +34 -0
- package/_esm/crypto/ctypeHash.js +20 -0
- package/_esm/crypto/index.js +2 -0
- package/_esm/ctypes/definitions.js +207 -0
- package/_esm/ctypes/index.js +2 -0
- package/_esm/index.js +12 -0
- package/_esm/package.json +1 -0
- package/_esm/plugins/activityTracker.js +15 -0
- package/_esm/plugins/fractionalNft.js +15 -0
- package/_esm/plugins/handshake.js +12 -0
- package/_esm/plugins/index.js +9 -0
- package/_esm/plugins/potential.js +18 -0
- package/_esm/plugins/referral.js +14 -0
- package/_esm/plugins/reputationVoting.js +11 -0
- package/_esm/plugins/rewardPool.js +11 -0
- package/_esm/plugins/techCommitteeManager.js +9 -0
- package/_esm/plugins/validatorManager.js +15 -0
- package/_esm/rpc/bundle.js +21 -0
- package/_esm/rpc/call.js +9 -0
- package/_esm/rpc/definitions.js +395 -0
- package/_esm/rpc/index.js +3 -0
- package/_esm/rpc/types.js +45 -0
- package/_esm/types/index.js +2 -0
- package/_types/accounts/index.d.ts +7 -0
- package/_types/accounts/index.d.ts.map +1 -0
- package/_types/accounts/keyring.d.ts +28 -0
- package/_types/accounts/keyring.d.ts.map +1 -0
- package/_types/accounts/substrateSigner.d.ts +5 -0
- package/_types/accounts/substrateSigner.d.ts.map +1 -0
- package/_types/accounts/types.d.ts +6 -0
- package/_types/accounts/types.d.ts.map +1 -0
- package/_types/accounts/wellKnown.d.ts +24 -0
- package/_types/accounts/wellKnown.d.ts.map +1 -0
- package/_types/actions/activityTracker/calculateActivityReputationAtBlock.d.ts +9 -0
- package/_types/actions/activityTracker/calculateActivityReputationAtBlock.d.ts.map +1 -0
- package/_types/actions/activityTracker/decodeReputationPage.d.ts +4 -0
- package/_types/actions/activityTracker/decodeReputationPage.d.ts.map +1 -0
- package/_types/actions/activityTracker/getActivityReputation.d.ts +8 -0
- package/_types/actions/activityTracker/getActivityReputation.d.ts.map +1 -0
- package/_types/actions/activityTracker/getActivityReputationInfo.d.ts +9 -0
- package/_types/actions/activityTracker/getActivityReputationInfo.d.ts.map +1 -0
- package/_types/actions/activityTracker/getActivityTrackerConfig.d.ts +8 -0
- package/_types/actions/activityTracker/getActivityTrackerConfig.d.ts.map +1 -0
- package/_types/actions/activityTracker/getAllActivityReputations.d.ts +8 -0
- package/_types/actions/activityTracker/getAllActivityReputations.d.ts.map +1 -0
- package/_types/actions/activityTracker/getAllRawActivityReputations.d.ts +8 -0
- package/_types/actions/activityTracker/getAllRawActivityReputations.d.ts.map +1 -0
- package/_types/actions/activityTracker/getMaxActivityReputation.d.ts +7 -0
- package/_types/actions/activityTracker/getMaxActivityReputation.d.ts.map +1 -0
- package/_types/actions/activityTracker/getRawActivityReputation.d.ts +8 -0
- package/_types/actions/activityTracker/getRawActivityReputation.d.ts.map +1 -0
- package/_types/actions/activityTracker/index.d.ts +18 -0
- package/_types/actions/activityTracker/index.d.ts.map +1 -0
- package/_types/actions/activityTracker/types.d.ts +20 -0
- package/_types/actions/activityTracker/types.d.ts.map +1 -0
- package/_types/actions/attestation/attest.d.ts +16 -0
- package/_types/actions/attestation/attest.d.ts.map +1 -0
- package/_types/actions/attestation/index.d.ts +3 -0
- package/_types/actions/attestation/index.d.ts.map +1 -0
- package/_types/actions/did/createDid.d.ts +10 -0
- package/_types/actions/did/createDid.d.ts.map +1 -0
- package/_types/actions/did/index.d.ts +3 -0
- package/_types/actions/did/index.d.ts.map +1 -0
- package/_types/actions/fractionalNft/getCollectionsCount.d.ts +7 -0
- package/_types/actions/fractionalNft/getCollectionsCount.d.ts.map +1 -0
- package/_types/actions/fractionalNft/getItemsCount.d.ts +8 -0
- package/_types/actions/fractionalNft/getItemsCount.d.ts.map +1 -0
- package/_types/actions/fractionalNft/getNftInfo.d.ts +9 -0
- package/_types/actions/fractionalNft/getNftInfo.d.ts.map +1 -0
- package/_types/actions/fractionalNft/getOwner.d.ts +9 -0
- package/_types/actions/fractionalNft/getOwner.d.ts.map +1 -0
- package/_types/actions/fractionalNft/getTotalFnftsMinted.d.ts +7 -0
- package/_types/actions/fractionalNft/getTotalFnftsMinted.d.ts.map +1 -0
- package/_types/actions/fractionalNft/getWildcardCollectionId.d.ts +7 -0
- package/_types/actions/fractionalNft/getWildcardCollectionId.d.ts.map +1 -0
- package/_types/actions/fractionalNft/getWildcardDistributionMap.d.ts +8 -0
- package/_types/actions/fractionalNft/getWildcardDistributionMap.d.ts.map +1 -0
- package/_types/actions/fractionalNft/getWildcardThreshold.d.ts +7 -0
- package/_types/actions/fractionalNft/getWildcardThreshold.d.ts.map +1 -0
- package/_types/actions/fractionalNft/index.d.ts +18 -0
- package/_types/actions/fractionalNft/index.d.ts.map +1 -0
- package/_types/actions/fractionalNft/types.d.ts +10 -0
- package/_types/actions/fractionalNft/types.d.ts.map +1 -0
- package/_types/actions/handshake/getCompletedHandshakes.d.ts +8 -0
- package/_types/actions/handshake/getCompletedHandshakes.d.ts.map +1 -0
- package/_types/actions/handshake/getHandshakeCount.d.ts +8 -0
- package/_types/actions/handshake/getHandshakeCount.d.ts.map +1 -0
- package/_types/actions/handshake/getHandshakeStatus.d.ts +10 -0
- package/_types/actions/handshake/getHandshakeStatus.d.ts.map +1 -0
- package/_types/actions/handshake/handshakeExists.d.ts +9 -0
- package/_types/actions/handshake/handshakeExists.d.ts.map +1 -0
- package/_types/actions/handshake/hasHandshakeCompleted.d.ts +9 -0
- package/_types/actions/handshake/hasHandshakeCompleted.d.ts.map +1 -0
- package/_types/actions/handshake/index.d.ts +12 -0
- package/_types/actions/handshake/index.d.ts.map +1 -0
- package/_types/actions/handshake/types.d.ts +2 -0
- package/_types/actions/handshake/types.d.ts.map +1 -0
- package/_types/actions/index.d.ts +14 -0
- package/_types/actions/index.d.ts.map +1 -0
- package/_types/actions/potential/getActiveReferralShare.d.ts +8 -0
- package/_types/actions/potential/getActiveReferralShare.d.ts.map +1 -0
- package/_types/actions/potential/getCycleNumber.d.ts +7 -0
- package/_types/actions/potential/getCycleNumber.d.ts.map +1 -0
- package/_types/actions/potential/getCyclePotentialMinted.d.ts +7 -0
- package/_types/actions/potential/getCyclePotentialMinted.d.ts.map +1 -0
- package/_types/actions/potential/getCycleSupply.d.ts +7 -0
- package/_types/actions/potential/getCycleSupply.d.ts.map +1 -0
- package/_types/actions/potential/getDefaultActiveReferralShare.d.ts +7 -0
- package/_types/actions/potential/getDefaultActiveReferralShare.d.ts.map +1 -0
- package/_types/actions/potential/getMaxSupply.d.ts +7 -0
- package/_types/actions/potential/getMaxSupply.d.ts.map +1 -0
- package/_types/actions/potential/getMonthNumber.d.ts +7 -0
- package/_types/actions/potential/getMonthNumber.d.ts.map +1 -0
- package/_types/actions/potential/getMonthPotentialMinted.d.ts +7 -0
- package/_types/actions/potential/getMonthPotentialMinted.d.ts.map +1 -0
- package/_types/actions/potential/getMonthSupply.d.ts +7 -0
- package/_types/actions/potential/getMonthSupply.d.ts.map +1 -0
- package/_types/actions/potential/getPotential.d.ts +8 -0
- package/_types/actions/potential/getPotential.d.ts.map +1 -0
- package/_types/actions/potential/getTotalPotentialMinted.d.ts +7 -0
- package/_types/actions/potential/getTotalPotentialMinted.d.ts.map +1 -0
- package/_types/actions/potential/index.d.ts +23 -0
- package/_types/actions/potential/index.d.ts.map +1 -0
- package/_types/actions/referral/decodePage.d.ts +4 -0
- package/_types/actions/referral/decodePage.d.ts.map +1 -0
- package/_types/actions/referral/getActiveReferrals.d.ts +9 -0
- package/_types/actions/referral/getActiveReferrals.d.ts.map +1 -0
- package/_types/actions/referral/getActiveReferralsCount.d.ts +8 -0
- package/_types/actions/referral/getActiveReferralsCount.d.ts.map +1 -0
- package/_types/actions/referral/getBlockProducers.d.ts +7 -0
- package/_types/actions/referral/getBlockProducers.d.ts.map +1 -0
- package/_types/actions/referral/getBlockProducersPage.d.ts +8 -0
- package/_types/actions/referral/getBlockProducersPage.d.ts.map +1 -0
- package/_types/actions/referral/getPendingReferrals.d.ts +8 -0
- package/_types/actions/referral/getPendingReferrals.d.ts.map +1 -0
- package/_types/actions/referral/getPendingReferralsPage.d.ts +9 -0
- package/_types/actions/referral/getPendingReferralsPage.d.ts.map +1 -0
- package/_types/actions/referral/getReferrer.d.ts +8 -0
- package/_types/actions/referral/getReferrer.d.ts.map +1 -0
- package/_types/actions/referral/index.d.ts +16 -0
- package/_types/actions/referral/index.d.ts.map +1 -0
- package/_types/actions/referral/types.d.ts +6 -0
- package/_types/actions/referral/types.d.ts.map +1 -0
- package/_types/actions/reputationVoting/getTally.d.ts +9 -0
- package/_types/actions/reputationVoting/getTally.d.ts.map +1 -0
- package/_types/actions/reputationVoting/getVotesForAccount.d.ts +9 -0
- package/_types/actions/reputationVoting/getVotesForAccount.d.ts.map +1 -0
- package/_types/actions/reputationVoting/getVotingReputation.d.ts +8 -0
- package/_types/actions/reputationVoting/getVotingReputation.d.ts.map +1 -0
- package/_types/actions/reputationVoting/index.d.ts +10 -0
- package/_types/actions/reputationVoting/index.d.ts.map +1 -0
- package/_types/actions/reputationVoting/isPassing.d.ts +8 -0
- package/_types/actions/reputationVoting/isPassing.d.ts.map +1 -0
- package/_types/actions/reputationVoting/types.d.ts +17 -0
- package/_types/actions/reputationVoting/types.d.ts.map +1 -0
- package/_types/actions/rewardPool/getCollectionIds.d.ts +7 -0
- package/_types/actions/rewardPool/getCollectionIds.d.ts.map +1 -0
- package/_types/actions/rewardPool/getItemIds.d.ts +8 -0
- package/_types/actions/rewardPool/getItemIds.d.ts.map +1 -0
- package/_types/actions/rewardPool/getRewardPoolAccount.d.ts +7 -0
- package/_types/actions/rewardPool/getRewardPoolAccount.d.ts.map +1 -0
- package/_types/actions/rewardPool/getRewardPoolBalance.d.ts +7 -0
- package/_types/actions/rewardPool/getRewardPoolBalance.d.ts.map +1 -0
- package/_types/actions/rewardPool/index.d.ts +9 -0
- package/_types/actions/rewardPool/index.d.ts.map +1 -0
- package/_types/actions/submitAndWait.d.ts +65 -0
- package/_types/actions/submitAndWait.d.ts.map +1 -0
- package/_types/actions/techCommitteeManager/getSelectedTechCommittee.d.ts +7 -0
- package/_types/actions/techCommitteeManager/getSelectedTechCommittee.d.ts.map +1 -0
- package/_types/actions/techCommitteeManager/getTechCommitteeCandidates.d.ts +7 -0
- package/_types/actions/techCommitteeManager/getTechCommitteeCandidates.d.ts.map +1 -0
- package/_types/actions/techCommitteeManager/index.d.ts +5 -0
- package/_types/actions/techCommitteeManager/index.d.ts.map +1 -0
- package/_types/actions/validatorManager/decodePairs.d.ts +8 -0
- package/_types/actions/validatorManager/decodePairs.d.ts.map +1 -0
- package/_types/actions/validatorManager/getActiveValidators.d.ts +7 -0
- package/_types/actions/validatorManager/getActiveValidators.d.ts.map +1 -0
- package/_types/actions/validatorManager/getOffenceValidators.d.ts +8 -0
- package/_types/actions/validatorManager/getOffenceValidators.d.ts.map +1 -0
- package/_types/actions/validatorManager/getOfflineValidators.d.ts +8 -0
- package/_types/actions/validatorManager/getOfflineValidators.d.ts.map +1 -0
- package/_types/actions/validatorManager/getReputationForAccount.d.ts +8 -0
- package/_types/actions/validatorManager/getReputationForAccount.d.ts.map +1 -0
- package/_types/actions/validatorManager/getReputationPenaltyFor.d.ts +8 -0
- package/_types/actions/validatorManager/getReputationPenaltyFor.d.ts.map +1 -0
- package/_types/actions/validatorManager/getReputations.d.ts +9 -0
- package/_types/actions/validatorManager/getReputations.d.ts.map +1 -0
- package/_types/actions/validatorManager/getSelectedValidators.d.ts +7 -0
- package/_types/actions/validatorManager/getSelectedValidators.d.ts.map +1 -0
- package/_types/actions/validatorManager/getValidatorCandidates.d.ts +7 -0
- package/_types/actions/validatorManager/getValidatorCandidates.d.ts.map +1 -0
- package/_types/actions/validatorManager/index.d.ts +18 -0
- package/_types/actions/validatorManager/index.d.ts.map +1 -0
- package/_types/actions/validatorManager/types.d.ts +10 -0
- package/_types/actions/validatorManager/types.d.ts.map +1 -0
- package/_types/chains/defineChain.d.ts +18 -0
- package/_types/chains/defineChain.d.ts.map +1 -0
- package/_types/chains/definitions.d.ts +65 -0
- package/_types/chains/definitions.d.ts.map +1 -0
- package/_types/chains/index.d.ts +4 -0
- package/_types/chains/index.d.ts.map +1 -0
- package/_types/client/createClient.d.ts +10 -0
- package/_types/client/createClient.d.ts.map +1 -0
- package/_types/client/types.d.ts +7 -0
- package/_types/client/types.d.ts.map +1 -0
- package/_types/crypto/claimHash.d.ts +23 -0
- package/_types/crypto/claimHash.d.ts.map +1 -0
- package/_types/crypto/ctypeHash.d.ts +16 -0
- package/_types/crypto/ctypeHash.d.ts.map +1 -0
- package/_types/crypto/index.d.ts +5 -0
- package/_types/crypto/index.d.ts.map +1 -0
- package/_types/ctypes/definitions.d.ts +21 -0
- package/_types/ctypes/definitions.d.ts.map +1 -0
- package/_types/ctypes/index.d.ts +4 -0
- package/_types/ctypes/index.d.ts.map +1 -0
- package/_types/index.d.ts +22 -0
- package/_types/index.d.ts.map +1 -0
- package/_types/plugins/activityTracker.d.ts +34 -0
- package/_types/plugins/activityTracker.d.ts.map +1 -0
- package/_types/plugins/fractionalNft.d.ts +31 -0
- package/_types/plugins/fractionalNft.d.ts.map +1 -0
- package/_types/plugins/handshake.d.ts +32 -0
- package/_types/plugins/handshake.d.ts.map +1 -0
- package/_types/plugins/index.d.ts +19 -0
- package/_types/plugins/index.d.ts.map +1 -0
- package/_types/plugins/potential.d.ts +29 -0
- package/_types/plugins/potential.d.ts.map +1 -0
- package/_types/plugins/referral.d.ts +17 -0
- package/_types/plugins/referral.d.ts.map +1 -0
- package/_types/plugins/reputationVoting.d.ts +25 -0
- package/_types/plugins/reputationVoting.d.ts.map +1 -0
- package/_types/plugins/rewardPool.d.ts +19 -0
- package/_types/plugins/rewardPool.d.ts.map +1 -0
- package/_types/plugins/techCommitteeManager.d.ts +14 -0
- package/_types/plugins/techCommitteeManager.d.ts.map +1 -0
- package/_types/plugins/validatorManager.d.ts +30 -0
- package/_types/plugins/validatorManager.d.ts.map +1 -0
- package/_types/rpc/bundle.d.ts +4 -0
- package/_types/rpc/bundle.d.ts.map +1 -0
- package/_types/rpc/call.d.ts +4 -0
- package/_types/rpc/call.d.ts.map +1 -0
- package/_types/rpc/definitions.d.ts +3 -0
- package/_types/rpc/definitions.d.ts.map +1 -0
- package/_types/rpc/index.d.ts +4 -0
- package/_types/rpc/index.d.ts.map +1 -0
- package/_types/rpc/types.d.ts +3 -0
- package/_types/rpc/types.d.ts.map +1 -0
- package/_types/types/index.d.ts +17 -0
- package/_types/types/index.d.ts.map +1 -0
- package/package.json +173 -4
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Hash } from '../types/index.cjs';
|
|
2
|
+
export type DidUri = `did:toto:${string}`;
|
|
3
|
+
export interface DeriveClaimHashParameters {
|
|
4
|
+
ctypeHash: Hash;
|
|
5
|
+
subject: DidUri;
|
|
6
|
+
contents: Record<string, string>;
|
|
7
|
+
}
|
|
8
|
+
export declare function deriveClaimHash({ ctypeHash, subject, contents }: DeriveClaimHashParameters): Hash;
|
|
9
|
+
/**
|
|
10
|
+
* Renders an address as the DID URI the attestation flow uses as a claim-hash input.
|
|
11
|
+
*
|
|
12
|
+
* The address is passed through verbatim, case included. That looks like an oversight and is
|
|
13
|
+
* not: the DID string is part of the claim-hash preimage, and the issuer builds it from an
|
|
14
|
+
* EIP-55 checksummed address, so normalising the case here would derive a different hash than
|
|
15
|
+
* the one stored against an existing attestation and make it unfindable.
|
|
16
|
+
*
|
|
17
|
+
* Nothing on chain settles the question. `attestation.add` takes a typed H160 subject and an
|
|
18
|
+
* opaque claim hash; the DID string never reaches the runtime, and `pallet_did::did_uri` renders
|
|
19
|
+
* lowercase only to pin a format for tests. Casing is therefore whatever the issuer used, and
|
|
20
|
+
* matching it is this function's whole job.
|
|
21
|
+
*/
|
|
22
|
+
export declare function didUri(address: `0x${string}`): DidUri;
|
|
23
|
+
//# sourceMappingURL=claimHash.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deriveClaimHash = deriveClaimHash;
|
|
4
|
+
exports.didUri = didUri;
|
|
5
|
+
const util_crypto_1 = require("@polkadot/util-crypto");
|
|
6
|
+
const util_1 = require("@polkadot/util");
|
|
7
|
+
function deriveClaimHash({ ctypeHash, subject, contents }) {
|
|
8
|
+
const vocabulary = `toto:ctype:${ctypeHash}#`;
|
|
9
|
+
const expanded = { '@id': subject };
|
|
10
|
+
for (const [key, value] of Object.entries(contents)) {
|
|
11
|
+
expanded[vocabulary + key] = value;
|
|
12
|
+
}
|
|
13
|
+
const digests = Object.entries(expanded)
|
|
14
|
+
.map(([key, value]) => JSON.stringify({ [key]: value }))
|
|
15
|
+
.map((statement) => (0, util_crypto_1.blake2AsHex)((0, util_crypto_1.blake2AsHex)(statement, 256), 256))
|
|
16
|
+
.sort((a, b) => {
|
|
17
|
+
const left = BigInt(a);
|
|
18
|
+
const right = BigInt(b);
|
|
19
|
+
return left < right ? -1 : left > right ? 1 : 0;
|
|
20
|
+
});
|
|
21
|
+
return (0, util_1.u8aToHex)((0, util_crypto_1.blake2AsU8a)((0, util_1.u8aConcat)(...digests.map((digest) => (0, util_1.hexToU8a)(digest))), 256));
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Renders an address as the DID URI the attestation flow uses as a claim-hash input.
|
|
25
|
+
*
|
|
26
|
+
* The address is passed through verbatim, case included. That looks like an oversight and is
|
|
27
|
+
* not: the DID string is part of the claim-hash preimage, and the issuer builds it from an
|
|
28
|
+
* EIP-55 checksummed address, so normalising the case here would derive a different hash than
|
|
29
|
+
* the one stored against an existing attestation and make it unfindable.
|
|
30
|
+
*
|
|
31
|
+
* Nothing on chain settles the question. `attestation.add` takes a typed H160 subject and an
|
|
32
|
+
* opaque claim hash; the DID string never reaches the runtime, and `pallet_did::did_uri` renders
|
|
33
|
+
* lowercase only to pin a format for tests. Casing is therefore whatever the issuer used, and
|
|
34
|
+
* matching it is this function's whole job.
|
|
35
|
+
*/
|
|
36
|
+
function didUri(address) {
|
|
37
|
+
return `did:toto:${address.slice(2)}`;
|
|
38
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Hash } from '../types/index.cjs';
|
|
2
|
+
export interface CTypeSchema {
|
|
3
|
+
$id?: string;
|
|
4
|
+
$schema: string;
|
|
5
|
+
additionalProperties: false;
|
|
6
|
+
properties: Record<string, {
|
|
7
|
+
type: string;
|
|
8
|
+
minLength?: number;
|
|
9
|
+
maxLength?: number;
|
|
10
|
+
}>;
|
|
11
|
+
title: string;
|
|
12
|
+
type: 'object';
|
|
13
|
+
}
|
|
14
|
+
export declare function canonicalCTypeBytes(schema: CTypeSchema): string;
|
|
15
|
+
export declare function ctypeHash(schema: CTypeSchema): Hash;
|
|
16
|
+
//# sourceMappingURL=ctypeHash.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.canonicalCTypeBytes = canonicalCTypeBytes;
|
|
4
|
+
exports.ctypeHash = ctypeHash;
|
|
5
|
+
const util_crypto_1 = require("@polkadot/util-crypto");
|
|
6
|
+
function canonicalise(value) {
|
|
7
|
+
if (Array.isArray(value))
|
|
8
|
+
return value.map(canonicalise);
|
|
9
|
+
if (value !== null && typeof value === 'object') {
|
|
10
|
+
const sorted = {};
|
|
11
|
+
for (const key of Object.keys(value).sort()) {
|
|
12
|
+
sorted[key] = canonicalise(value[key]);
|
|
13
|
+
}
|
|
14
|
+
return sorted;
|
|
15
|
+
}
|
|
16
|
+
return value;
|
|
17
|
+
}
|
|
18
|
+
function canonicalCTypeBytes(schema) {
|
|
19
|
+
const { $id: _ignored, ...rest } = schema;
|
|
20
|
+
return JSON.stringify(canonicalise(rest));
|
|
21
|
+
}
|
|
22
|
+
function ctypeHash(schema) {
|
|
23
|
+
return (0, util_crypto_1.blake2AsHex)(canonicalCTypeBytes(schema), 256);
|
|
24
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { canonicalCTypeBytes, ctypeHash } from './ctypeHash.cjs';
|
|
2
|
+
export { deriveClaimHash, didUri } from './claimHash.cjs';
|
|
3
|
+
export type { CTypeSchema } from './ctypeHash.cjs';
|
|
4
|
+
export type { DeriveClaimHashParameters, DidUri } from './claimHash.cjs';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.didUri = exports.deriveClaimHash = exports.ctypeHash = exports.canonicalCTypeBytes = void 0;
|
|
4
|
+
var ctypeHash_js_1 = require("./ctypeHash.js");
|
|
5
|
+
Object.defineProperty(exports, "canonicalCTypeBytes", { enumerable: true, get: function () { return ctypeHash_js_1.canonicalCTypeBytes; } });
|
|
6
|
+
Object.defineProperty(exports, "ctypeHash", { enumerable: true, get: function () { return ctypeHash_js_1.ctypeHash; } });
|
|
7
|
+
var claimHash_js_1 = require("./claimHash.js");
|
|
8
|
+
Object.defineProperty(exports, "deriveClaimHash", { enumerable: true, get: function () { return claimHash_js_1.deriveClaimHash; } });
|
|
9
|
+
Object.defineProperty(exports, "didUri", { enumerable: true, get: function () { return claimHash_js_1.didUri; } });
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { CTypeSchema } from '../crypto/ctypeHash.cjs';
|
|
2
|
+
import type { Hash } from '../types/index.cjs';
|
|
3
|
+
export interface RegisteredCType {
|
|
4
|
+
title: string;
|
|
5
|
+
hash: Hash;
|
|
6
|
+
deprecated: boolean;
|
|
7
|
+
schema: CTypeSchema;
|
|
8
|
+
}
|
|
9
|
+
export declare const PROVINCIAL_PHOTO_ID: RegisteredCType;
|
|
10
|
+
export declare const FACEBOOK: RegisteredCType;
|
|
11
|
+
export declare const CANADIAN_PASSPORT: RegisteredCType;
|
|
12
|
+
export declare const ELECTIONS_CANADA_VOTER_CARD: RegisteredCType;
|
|
13
|
+
export declare const EMAIL_DEPRECATED: RegisteredCType;
|
|
14
|
+
export declare const GOOGLE: RegisteredCType;
|
|
15
|
+
export declare const FACEBOOK_DEPRECATED: RegisteredCType;
|
|
16
|
+
export declare const PROVINCIAL_DRIVING_LICENSE: RegisteredCType;
|
|
17
|
+
export declare const UTILITY_BILL: RegisteredCType;
|
|
18
|
+
export declare const EMAIL: RegisteredCType;
|
|
19
|
+
export declare const GMAIL_DEPRECATED: RegisteredCType;
|
|
20
|
+
export declare const REGISTERED_CTYPES: RegisteredCType[];
|
|
21
|
+
//# sourceMappingURL=definitions.d.ts.map
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REGISTERED_CTYPES = exports.GMAIL_DEPRECATED = exports.EMAIL = exports.UTILITY_BILL = exports.PROVINCIAL_DRIVING_LICENSE = exports.FACEBOOK_DEPRECATED = exports.GOOGLE = exports.EMAIL_DEPRECATED = exports.ELECTIONS_CANADA_VOTER_CARD = exports.CANADIAN_PASSPORT = exports.FACEBOOK = exports.PROVINCIAL_PHOTO_ID = void 0;
|
|
4
|
+
exports.PROVINCIAL_PHOTO_ID = {
|
|
5
|
+
title: 'Provincial Photo ID',
|
|
6
|
+
hash: '0x21c0f8df63347f498b0a4528eb15b25373a149f094890694a9d50c581b1f5c60',
|
|
7
|
+
deprecated: false,
|
|
8
|
+
schema: {
|
|
9
|
+
$schema: 'ipfs://bafybeiah66wbkhqbqn7idkostj2iqyan2tstc4tpqt65udlhimd7hcxjyq/',
|
|
10
|
+
additionalProperties: false,
|
|
11
|
+
properties: {
|
|
12
|
+
card_number: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
},
|
|
15
|
+
province: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
title: 'Provincial Photo ID',
|
|
20
|
+
type: 'object',
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
exports.FACEBOOK = {
|
|
24
|
+
title: 'Facebook',
|
|
25
|
+
hash: '0x4bf3ea326e8dbd515cca5c96221965c71d25e5286c3f270b0200fcf3f2782da4',
|
|
26
|
+
deprecated: false,
|
|
27
|
+
schema: {
|
|
28
|
+
$schema: 'ipfs://bafybeiah66wbkhqbqn7idkostj2iqyan2tstc4tpqt65udlhimd7hcxjyq/',
|
|
29
|
+
additionalProperties: false,
|
|
30
|
+
properties: {
|
|
31
|
+
facebookSubjectId: {
|
|
32
|
+
maxLength: 255,
|
|
33
|
+
minLength: 1,
|
|
34
|
+
type: 'string',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
title: 'Facebook',
|
|
38
|
+
type: 'object',
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
exports.CANADIAN_PASSPORT = {
|
|
42
|
+
title: 'Canadian Passport',
|
|
43
|
+
hash: '0x5f3204330d6c89290fb6e2e993cf41ad2342bec93cb26773b850d357e871a2ce',
|
|
44
|
+
deprecated: false,
|
|
45
|
+
schema: {
|
|
46
|
+
$schema: 'ipfs://bafybeiah66wbkhqbqn7idkostj2iqyan2tstc4tpqt65udlhimd7hcxjyq/',
|
|
47
|
+
additionalProperties: false,
|
|
48
|
+
properties: {
|
|
49
|
+
passport_number: {
|
|
50
|
+
type: 'string',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
title: 'Canadian Passport',
|
|
54
|
+
type: 'object',
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
exports.ELECTIONS_CANADA_VOTER_CARD = {
|
|
58
|
+
title: 'Elections Canada Voter Card',
|
|
59
|
+
hash: '0x89e98af12c100e6b60af7a8ef6d9ceae8e94122d9bf2fc1b31c3cd7b6e8c3efe',
|
|
60
|
+
deprecated: false,
|
|
61
|
+
schema: {
|
|
62
|
+
$schema: 'ipfs://bafybeiah66wbkhqbqn7idkostj2iqyan2tstc4tpqt65udlhimd7hcxjyq/',
|
|
63
|
+
additionalProperties: false,
|
|
64
|
+
properties: {
|
|
65
|
+
voter_card_number: {
|
|
66
|
+
type: 'string',
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
title: 'Elections Canada Voter Card',
|
|
70
|
+
type: 'object',
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
exports.EMAIL_DEPRECATED = {
|
|
74
|
+
title: 'Email',
|
|
75
|
+
hash: '0xae5bc64e500eb576b7b137288cec5d532094e103be46872f1ad54641e477d9fe',
|
|
76
|
+
deprecated: true,
|
|
77
|
+
schema: {
|
|
78
|
+
$schema: 'ipfs://bafybeiah66wbkhqbqn7idkostj2iqyan2tstc4tpqt65udlhimd7hcxjyq/',
|
|
79
|
+
additionalProperties: false,
|
|
80
|
+
properties: {
|
|
81
|
+
Email: {
|
|
82
|
+
type: 'string',
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
title: 'Email',
|
|
86
|
+
type: 'object',
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
exports.GOOGLE = {
|
|
90
|
+
title: 'Google',
|
|
91
|
+
hash: '0xb94ebeb1b06ab2803aa9390f00262b9392f4186a504f2397d7ab9c410979662b',
|
|
92
|
+
deprecated: false,
|
|
93
|
+
schema: {
|
|
94
|
+
$schema: 'ipfs://bafybeiah66wbkhqbqn7idkostj2iqyan2tstc4tpqt65udlhimd7hcxjyq/',
|
|
95
|
+
additionalProperties: false,
|
|
96
|
+
properties: {
|
|
97
|
+
googleSubjectId: {
|
|
98
|
+
maxLength: 255,
|
|
99
|
+
minLength: 1,
|
|
100
|
+
type: 'string',
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
title: 'Google',
|
|
104
|
+
type: 'object',
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
exports.FACEBOOK_DEPRECATED = {
|
|
108
|
+
title: 'Facebook',
|
|
109
|
+
hash: '0xd558a369b7071b2f12b65d85c527df1c0cc5f9d6bd7c765a40030cd4d10eff0e',
|
|
110
|
+
deprecated: true,
|
|
111
|
+
schema: {
|
|
112
|
+
$schema: 'ipfs://bafybeiah66wbkhqbqn7idkostj2iqyan2tstc4tpqt65udlhimd7hcxjyq/',
|
|
113
|
+
additionalProperties: false,
|
|
114
|
+
properties: {
|
|
115
|
+
facebook_id: {
|
|
116
|
+
type: 'string',
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
title: 'Facebook',
|
|
120
|
+
type: 'object',
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
exports.PROVINCIAL_DRIVING_LICENSE = {
|
|
124
|
+
title: 'Provincial Driving License',
|
|
125
|
+
hash: '0xd66d351848465956224abc21d1efb1bd1027fffbaad687f344f060c5343ac0d7',
|
|
126
|
+
deprecated: false,
|
|
127
|
+
schema: {
|
|
128
|
+
$schema: 'ipfs://bafybeiah66wbkhqbqn7idkostj2iqyan2tstc4tpqt65udlhimd7hcxjyq/',
|
|
129
|
+
additionalProperties: false,
|
|
130
|
+
properties: {
|
|
131
|
+
license_number: {
|
|
132
|
+
type: 'string',
|
|
133
|
+
},
|
|
134
|
+
province: {
|
|
135
|
+
type: 'string',
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
title: 'Provincial Driving License',
|
|
139
|
+
type: 'object',
|
|
140
|
+
},
|
|
141
|
+
};
|
|
142
|
+
exports.UTILITY_BILL = {
|
|
143
|
+
title: 'Utility Bill',
|
|
144
|
+
hash: '0xdde76da01796b7475b4f8a28b15ebfbc48c68c006cb52cfeae8aeab238f00007',
|
|
145
|
+
deprecated: false,
|
|
146
|
+
schema: {
|
|
147
|
+
$schema: 'ipfs://bafybeiah66wbkhqbqn7idkostj2iqyan2tstc4tpqt65udlhimd7hcxjyq/',
|
|
148
|
+
additionalProperties: false,
|
|
149
|
+
properties: {
|
|
150
|
+
account_number: {
|
|
151
|
+
type: 'string',
|
|
152
|
+
},
|
|
153
|
+
provider_name: {
|
|
154
|
+
type: 'string',
|
|
155
|
+
},
|
|
156
|
+
utility_type: {
|
|
157
|
+
type: 'string',
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
title: 'Utility Bill',
|
|
161
|
+
type: 'object',
|
|
162
|
+
},
|
|
163
|
+
};
|
|
164
|
+
exports.EMAIL = {
|
|
165
|
+
title: 'Email',
|
|
166
|
+
hash: '0xe0021dcdc0c41e43d5d9dc1e915aa2d38dc5226ee7077013b9c11ae45816e260',
|
|
167
|
+
deprecated: false,
|
|
168
|
+
schema: {
|
|
169
|
+
$schema: 'ipfs://bafybeiah66wbkhqbqn7idkostj2iqyan2tstc4tpqt65udlhimd7hcxjyq/',
|
|
170
|
+
additionalProperties: false,
|
|
171
|
+
properties: {
|
|
172
|
+
email: {
|
|
173
|
+
maxLength: 254,
|
|
174
|
+
minLength: 3,
|
|
175
|
+
type: 'string',
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
title: 'Email',
|
|
179
|
+
type: 'object',
|
|
180
|
+
},
|
|
181
|
+
};
|
|
182
|
+
exports.GMAIL_DEPRECATED = {
|
|
183
|
+
title: 'Gmail',
|
|
184
|
+
hash: '0xec2d43199698e0eef5fd6c3a34ca0e597d69e4e18e41edb673e3a3d5f7433c14',
|
|
185
|
+
deprecated: true,
|
|
186
|
+
schema: {
|
|
187
|
+
$schema: 'ipfs://bafybeiah66wbkhqbqn7idkostj2iqyan2tstc4tpqt65udlhimd7hcxjyq/',
|
|
188
|
+
additionalProperties: false,
|
|
189
|
+
properties: {
|
|
190
|
+
gmail_id: {
|
|
191
|
+
type: 'string',
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
title: 'Gmail',
|
|
195
|
+
type: 'object',
|
|
196
|
+
},
|
|
197
|
+
};
|
|
198
|
+
exports.REGISTERED_CTYPES = [
|
|
199
|
+
exports.PROVINCIAL_PHOTO_ID,
|
|
200
|
+
exports.FACEBOOK,
|
|
201
|
+
exports.CANADIAN_PASSPORT,
|
|
202
|
+
exports.ELECTIONS_CANADA_VOTER_CARD,
|
|
203
|
+
exports.EMAIL_DEPRECATED,
|
|
204
|
+
exports.GOOGLE,
|
|
205
|
+
exports.FACEBOOK_DEPRECATED,
|
|
206
|
+
exports.PROVINCIAL_DRIVING_LICENSE,
|
|
207
|
+
exports.UTILITY_BILL,
|
|
208
|
+
exports.EMAIL,
|
|
209
|
+
exports.GMAIL_DEPRECATED,
|
|
210
|
+
];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ctypeHash = exports.canonicalCTypeBytes = void 0;
|
|
18
|
+
__exportStar(require("./definitions.js"), exports);
|
|
19
|
+
var ctypeHash_js_1 = require("../crypto/ctypeHash.js");
|
|
20
|
+
Object.defineProperty(exports, "canonicalCTypeBytes", { enumerable: true, get: function () { return ctypeHash_js_1.canonicalCTypeBytes; } });
|
|
21
|
+
Object.defineProperty(exports, "ctypeHash", { enumerable: true, get: function () { return ctypeHash_js_1.ctypeHash; } });
|
package/_cjs/index.d.cts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { createClient, createClientFromApi } from './client/createClient.cjs';
|
|
2
|
+
export type { CreateClientOptions } from './client/createClient.cjs';
|
|
3
|
+
export type { Client, Plugin } from './client/types.cjs';
|
|
4
|
+
export { activityTrackerPlugin, fractionalNftPlugin, handshakePlugin, potentialPlugin, referralPlugin, reputationVotingPlugin, rewardPoolPlugin, techCommitteeManagerPlugin, validatorManagerPlugin, } from './plugins/index.cjs';
|
|
5
|
+
export type { ActivityTrackerCapability, FractionalNftCapability, HandshakeCapability, PotentialCapability, ReferralCapability, ReputationVotingCapability, RewardPoolCapability, TechCommitteeManagerCapability, ValidatorManagerCapability, } from './plugins/index.cjs';
|
|
6
|
+
export { RPC_DEFINITIONS } from './rpc/definitions.cjs';
|
|
7
|
+
export { CHAIN_TYPES } from './rpc/types.cjs';
|
|
8
|
+
export { TOTOCHAIN_DEFINITIONS, typesBundle } from './rpc/bundle.cjs';
|
|
9
|
+
export type { Address, BlockHash, Pagination, PaginatedResponse } from './types/index.cjs';
|
|
10
|
+
export { DEFAULT_PAGE_SIZE, MAX_PAGE_SIZE } from './types/index.cjs';
|
|
11
|
+
export { canonicalCTypeBytes, ctypeHash, deriveClaimHash, didUri } from './crypto/index.cjs';
|
|
12
|
+
export type { CTypeSchema, DidUri } from './crypto/index.cjs';
|
|
13
|
+
export { REGISTERED_CTYPES } from './ctypes/index.cjs';
|
|
14
|
+
export type { RegisteredCType } from './ctypes/index.cjs';
|
|
15
|
+
export { DispatchFailedError, isDispatchFailure, NotIncludedError, SubmitTimeoutError, SubscriptionFailedError, submitAndWait, } from './actions/submitAndWait.cjs';
|
|
16
|
+
export type { SubmitResult, SubmitWaitFor } from './actions/submitAndWait.cjs';
|
|
17
|
+
export { totochain, totochainDev, totochainLocal, totochainTestnet, defineChain, } from './chains/index.cjs';
|
|
18
|
+
export type { ChainDefinition } from './chains/index.cjs';
|
|
19
|
+
export { account, addressOf, createKeyring, deriveAddress, fromMnemonic, fromPrivateKey, generateAccount, generateMnemonic, isValidAddress, stash, toSubstrateSigner, } from './accounts/index.cjs';
|
|
20
|
+
export { DEV_ACCOUNTS, VALIDATOR_ACCOUNTS, WELL_KNOWN_ACCOUNTS } from './accounts/index.cjs';
|
|
21
|
+
export type { TotoSigner, WellKnownAccount } from './accounts/index.cjs';
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
package/_cjs/index.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WELL_KNOWN_ACCOUNTS = exports.VALIDATOR_ACCOUNTS = exports.DEV_ACCOUNTS = exports.toSubstrateSigner = exports.stash = exports.isValidAddress = exports.generateMnemonic = exports.generateAccount = exports.fromPrivateKey = exports.fromMnemonic = exports.deriveAddress = exports.createKeyring = exports.addressOf = exports.account = exports.defineChain = exports.totochainTestnet = exports.totochainLocal = exports.totochainDev = exports.totochain = exports.submitAndWait = exports.SubscriptionFailedError = exports.SubmitTimeoutError = exports.NotIncludedError = exports.isDispatchFailure = exports.DispatchFailedError = exports.REGISTERED_CTYPES = exports.didUri = exports.deriveClaimHash = exports.ctypeHash = exports.canonicalCTypeBytes = exports.MAX_PAGE_SIZE = exports.DEFAULT_PAGE_SIZE = exports.typesBundle = exports.TOTOCHAIN_DEFINITIONS = exports.CHAIN_TYPES = exports.RPC_DEFINITIONS = exports.validatorManagerPlugin = exports.techCommitteeManagerPlugin = exports.rewardPoolPlugin = exports.reputationVotingPlugin = exports.referralPlugin = exports.potentialPlugin = exports.handshakePlugin = exports.fractionalNftPlugin = exports.activityTrackerPlugin = exports.createClientFromApi = exports.createClient = void 0;
|
|
4
|
+
var createClient_js_1 = require("./client/createClient.js");
|
|
5
|
+
Object.defineProperty(exports, "createClient", { enumerable: true, get: function () { return createClient_js_1.createClient; } });
|
|
6
|
+
Object.defineProperty(exports, "createClientFromApi", { enumerable: true, get: function () { return createClient_js_1.createClientFromApi; } });
|
|
7
|
+
var index_js_1 = require("./plugins/index.js");
|
|
8
|
+
Object.defineProperty(exports, "activityTrackerPlugin", { enumerable: true, get: function () { return index_js_1.activityTrackerPlugin; } });
|
|
9
|
+
Object.defineProperty(exports, "fractionalNftPlugin", { enumerable: true, get: function () { return index_js_1.fractionalNftPlugin; } });
|
|
10
|
+
Object.defineProperty(exports, "handshakePlugin", { enumerable: true, get: function () { return index_js_1.handshakePlugin; } });
|
|
11
|
+
Object.defineProperty(exports, "potentialPlugin", { enumerable: true, get: function () { return index_js_1.potentialPlugin; } });
|
|
12
|
+
Object.defineProperty(exports, "referralPlugin", { enumerable: true, get: function () { return index_js_1.referralPlugin; } });
|
|
13
|
+
Object.defineProperty(exports, "reputationVotingPlugin", { enumerable: true, get: function () { return index_js_1.reputationVotingPlugin; } });
|
|
14
|
+
Object.defineProperty(exports, "rewardPoolPlugin", { enumerable: true, get: function () { return index_js_1.rewardPoolPlugin; } });
|
|
15
|
+
Object.defineProperty(exports, "techCommitteeManagerPlugin", { enumerable: true, get: function () { return index_js_1.techCommitteeManagerPlugin; } });
|
|
16
|
+
Object.defineProperty(exports, "validatorManagerPlugin", { enumerable: true, get: function () { return index_js_1.validatorManagerPlugin; } });
|
|
17
|
+
var definitions_js_1 = require("./rpc/definitions.js");
|
|
18
|
+
Object.defineProperty(exports, "RPC_DEFINITIONS", { enumerable: true, get: function () { return definitions_js_1.RPC_DEFINITIONS; } });
|
|
19
|
+
var types_js_1 = require("./rpc/types.js");
|
|
20
|
+
Object.defineProperty(exports, "CHAIN_TYPES", { enumerable: true, get: function () { return types_js_1.CHAIN_TYPES; } });
|
|
21
|
+
var bundle_js_1 = require("./rpc/bundle.js");
|
|
22
|
+
Object.defineProperty(exports, "TOTOCHAIN_DEFINITIONS", { enumerable: true, get: function () { return bundle_js_1.TOTOCHAIN_DEFINITIONS; } });
|
|
23
|
+
Object.defineProperty(exports, "typesBundle", { enumerable: true, get: function () { return bundle_js_1.typesBundle; } });
|
|
24
|
+
var index_js_2 = require("./types/index.js");
|
|
25
|
+
Object.defineProperty(exports, "DEFAULT_PAGE_SIZE", { enumerable: true, get: function () { return index_js_2.DEFAULT_PAGE_SIZE; } });
|
|
26
|
+
Object.defineProperty(exports, "MAX_PAGE_SIZE", { enumerable: true, get: function () { return index_js_2.MAX_PAGE_SIZE; } });
|
|
27
|
+
var index_js_3 = require("./crypto/index.js");
|
|
28
|
+
Object.defineProperty(exports, "canonicalCTypeBytes", { enumerable: true, get: function () { return index_js_3.canonicalCTypeBytes; } });
|
|
29
|
+
Object.defineProperty(exports, "ctypeHash", { enumerable: true, get: function () { return index_js_3.ctypeHash; } });
|
|
30
|
+
Object.defineProperty(exports, "deriveClaimHash", { enumerable: true, get: function () { return index_js_3.deriveClaimHash; } });
|
|
31
|
+
Object.defineProperty(exports, "didUri", { enumerable: true, get: function () { return index_js_3.didUri; } });
|
|
32
|
+
var index_js_4 = require("./ctypes/index.js");
|
|
33
|
+
Object.defineProperty(exports, "REGISTERED_CTYPES", { enumerable: true, get: function () { return index_js_4.REGISTERED_CTYPES; } });
|
|
34
|
+
var submitAndWait_js_1 = require("./actions/submitAndWait.js");
|
|
35
|
+
Object.defineProperty(exports, "DispatchFailedError", { enumerable: true, get: function () { return submitAndWait_js_1.DispatchFailedError; } });
|
|
36
|
+
Object.defineProperty(exports, "isDispatchFailure", { enumerable: true, get: function () { return submitAndWait_js_1.isDispatchFailure; } });
|
|
37
|
+
Object.defineProperty(exports, "NotIncludedError", { enumerable: true, get: function () { return submitAndWait_js_1.NotIncludedError; } });
|
|
38
|
+
Object.defineProperty(exports, "SubmitTimeoutError", { enumerable: true, get: function () { return submitAndWait_js_1.SubmitTimeoutError; } });
|
|
39
|
+
Object.defineProperty(exports, "SubscriptionFailedError", { enumerable: true, get: function () { return submitAndWait_js_1.SubscriptionFailedError; } });
|
|
40
|
+
Object.defineProperty(exports, "submitAndWait", { enumerable: true, get: function () { return submitAndWait_js_1.submitAndWait; } });
|
|
41
|
+
var index_js_5 = require("./chains/index.js");
|
|
42
|
+
Object.defineProperty(exports, "totochain", { enumerable: true, get: function () { return index_js_5.totochain; } });
|
|
43
|
+
Object.defineProperty(exports, "totochainDev", { enumerable: true, get: function () { return index_js_5.totochainDev; } });
|
|
44
|
+
Object.defineProperty(exports, "totochainLocal", { enumerable: true, get: function () { return index_js_5.totochainLocal; } });
|
|
45
|
+
Object.defineProperty(exports, "totochainTestnet", { enumerable: true, get: function () { return index_js_5.totochainTestnet; } });
|
|
46
|
+
Object.defineProperty(exports, "defineChain", { enumerable: true, get: function () { return index_js_5.defineChain; } });
|
|
47
|
+
var index_js_6 = require("./accounts/index.js");
|
|
48
|
+
Object.defineProperty(exports, "account", { enumerable: true, get: function () { return index_js_6.account; } });
|
|
49
|
+
Object.defineProperty(exports, "addressOf", { enumerable: true, get: function () { return index_js_6.addressOf; } });
|
|
50
|
+
Object.defineProperty(exports, "createKeyring", { enumerable: true, get: function () { return index_js_6.createKeyring; } });
|
|
51
|
+
Object.defineProperty(exports, "deriveAddress", { enumerable: true, get: function () { return index_js_6.deriveAddress; } });
|
|
52
|
+
Object.defineProperty(exports, "fromMnemonic", { enumerable: true, get: function () { return index_js_6.fromMnemonic; } });
|
|
53
|
+
Object.defineProperty(exports, "fromPrivateKey", { enumerable: true, get: function () { return index_js_6.fromPrivateKey; } });
|
|
54
|
+
Object.defineProperty(exports, "generateAccount", { enumerable: true, get: function () { return index_js_6.generateAccount; } });
|
|
55
|
+
Object.defineProperty(exports, "generateMnemonic", { enumerable: true, get: function () { return index_js_6.generateMnemonic; } });
|
|
56
|
+
Object.defineProperty(exports, "isValidAddress", { enumerable: true, get: function () { return index_js_6.isValidAddress; } });
|
|
57
|
+
Object.defineProperty(exports, "stash", { enumerable: true, get: function () { return index_js_6.stash; } });
|
|
58
|
+
Object.defineProperty(exports, "toSubstrateSigner", { enumerable: true, get: function () { return index_js_6.toSubstrateSigner; } });
|
|
59
|
+
var index_js_7 = require("./accounts/index.js");
|
|
60
|
+
Object.defineProperty(exports, "DEV_ACCOUNTS", { enumerable: true, get: function () { return index_js_7.DEV_ACCOUNTS; } });
|
|
61
|
+
Object.defineProperty(exports, "VALIDATOR_ACCOUNTS", { enumerable: true, get: function () { return index_js_7.VALIDATOR_ACCOUNTS; } });
|
|
62
|
+
Object.defineProperty(exports, "WELL_KNOWN_ACCOUNTS", { enumerable: true, get: function () { return index_js_7.WELL_KNOWN_ACCOUNTS; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Client } from '../client/types.cjs';
|
|
2
|
+
import type { Address, BlockHash } from '../types/index.cjs';
|
|
3
|
+
import type { ActivityReputationInfo, ActivityReputationPage, ActivityTrackerConfig } from '../actions/activityTracker/types.cjs';
|
|
4
|
+
interface At {
|
|
5
|
+
at?: BlockHash;
|
|
6
|
+
}
|
|
7
|
+
export interface ActivityTrackerCapability {
|
|
8
|
+
activityTracker: {
|
|
9
|
+
getReputation(p: {
|
|
10
|
+
account: Address;
|
|
11
|
+
at?: BlockHash;
|
|
12
|
+
}): Promise<number>;
|
|
13
|
+
getRawReputation(p: {
|
|
14
|
+
account: Address;
|
|
15
|
+
at?: BlockHash;
|
|
16
|
+
}): Promise<number>;
|
|
17
|
+
getReputationInfo(p: {
|
|
18
|
+
account: Address;
|
|
19
|
+
at?: BlockHash;
|
|
20
|
+
}): Promise<ActivityReputationInfo>;
|
|
21
|
+
getAllReputations(p?: At): Promise<ActivityReputationPage>;
|
|
22
|
+
getAllRawReputations(p?: At): Promise<ActivityReputationPage>;
|
|
23
|
+
calculateAtBlock(p: {
|
|
24
|
+
account: Address;
|
|
25
|
+
blockNumber: number;
|
|
26
|
+
at?: BlockHash;
|
|
27
|
+
}): Promise<number>;
|
|
28
|
+
getMaxReputation(p?: At): Promise<number>;
|
|
29
|
+
getConfig(p?: At): Promise<ActivityTrackerConfig>;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export declare function activityTrackerPlugin(): (client: Client) => ActivityTrackerCapability;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=activityTracker.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.activityTrackerPlugin = activityTrackerPlugin;
|
|
4
|
+
const index_js_1 = require("../actions/activityTracker/index.js");
|
|
5
|
+
function activityTrackerPlugin() {
|
|
6
|
+
return (client) => ({
|
|
7
|
+
activityTracker: {
|
|
8
|
+
getReputation: (p) => (0, index_js_1.getActivityReputation)(client, p),
|
|
9
|
+
getRawReputation: (p) => (0, index_js_1.getRawActivityReputation)(client, p),
|
|
10
|
+
getReputationInfo: (p) => (0, index_js_1.getActivityReputationInfo)(client, p),
|
|
11
|
+
getAllReputations: (p) => (0, index_js_1.getAllActivityReputations)(client, p),
|
|
12
|
+
getAllRawReputations: (p) => (0, index_js_1.getAllRawActivityReputations)(client, p),
|
|
13
|
+
calculateAtBlock: (p) => (0, index_js_1.calculateActivityReputationAtBlock)(client, p),
|
|
14
|
+
getMaxReputation: (p) => (0, index_js_1.getMaxActivityReputation)(client, p),
|
|
15
|
+
getConfig: (p) => (0, index_js_1.getActivityTrackerConfig)(client, p),
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Client } from '../client/types.cjs';
|
|
2
|
+
import type { Address, BlockHash } from '../types/index.cjs';
|
|
3
|
+
import type { NftInfo, WildcardDistribution } from '../actions/fractionalNft/types.cjs';
|
|
4
|
+
interface At {
|
|
5
|
+
at?: BlockHash;
|
|
6
|
+
}
|
|
7
|
+
export interface FractionalNftCapability {
|
|
8
|
+
fractionalNft: {
|
|
9
|
+
getWildcardThreshold(p?: At): Promise<number | null>;
|
|
10
|
+
getWildcardCollectionId(p?: At): Promise<number | null>;
|
|
11
|
+
getWildcardDistributionMap(p?: At): Promise<WildcardDistribution[]>;
|
|
12
|
+
getTotalFnftsMinted(p?: At): Promise<number | null>;
|
|
13
|
+
getCollectionsCount(p?: At): Promise<number>;
|
|
14
|
+
getItemsCount(p: {
|
|
15
|
+
collectionId: number;
|
|
16
|
+
at?: BlockHash;
|
|
17
|
+
}): Promise<number>;
|
|
18
|
+
getNftInfo(p: {
|
|
19
|
+
collectionId: number;
|
|
20
|
+
at?: BlockHash;
|
|
21
|
+
}): Promise<NftInfo>;
|
|
22
|
+
getOwner(p: {
|
|
23
|
+
collectionId: number;
|
|
24
|
+
itemId: number;
|
|
25
|
+
at?: BlockHash;
|
|
26
|
+
}): Promise<Address | null>;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export declare function fractionalNftPlugin(): (client: Client) => FractionalNftCapability;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=fractionalNft.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fractionalNftPlugin = fractionalNftPlugin;
|
|
4
|
+
const index_js_1 = require("../actions/fractionalNft/index.js");
|
|
5
|
+
function fractionalNftPlugin() {
|
|
6
|
+
return (client) => ({
|
|
7
|
+
fractionalNft: {
|
|
8
|
+
getWildcardThreshold: (p) => (0, index_js_1.getWildcardThreshold)(client, p),
|
|
9
|
+
getWildcardCollectionId: (p) => (0, index_js_1.getWildcardCollectionId)(client, p),
|
|
10
|
+
getWildcardDistributionMap: (p) => (0, index_js_1.getWildcardDistributionMap)(client, p),
|
|
11
|
+
getTotalFnftsMinted: (p) => (0, index_js_1.getTotalFnftsMinted)(client, p),
|
|
12
|
+
getCollectionsCount: (p) => (0, index_js_1.getCollectionsCount)(client, p),
|
|
13
|
+
getItemsCount: (p) => (0, index_js_1.getItemsCount)(client, p),
|
|
14
|
+
getNftInfo: (p) => (0, index_js_1.getNftInfo)(client, p),
|
|
15
|
+
getOwner: (p) => (0, index_js_1.getOwner)(client, p),
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Client } from '../client/types.cjs';
|
|
2
|
+
import type { Address, BlockHash } from '../types/index.cjs';
|
|
3
|
+
import type { HandshakeStatus } from '../actions/handshake/types.cjs';
|
|
4
|
+
export interface HandshakeCapability {
|
|
5
|
+
handshake: {
|
|
6
|
+
getCount(p: {
|
|
7
|
+
account: Address;
|
|
8
|
+
at?: BlockHash;
|
|
9
|
+
}): Promise<number>;
|
|
10
|
+
getCompleted(p: {
|
|
11
|
+
account: Address;
|
|
12
|
+
at?: BlockHash;
|
|
13
|
+
}): Promise<Address[]>;
|
|
14
|
+
getStatus(p: {
|
|
15
|
+
account1: Address;
|
|
16
|
+
account2: Address;
|
|
17
|
+
at?: BlockHash;
|
|
18
|
+
}): Promise<HandshakeStatus>;
|
|
19
|
+
hasCompleted(p: {
|
|
20
|
+
sender: Address;
|
|
21
|
+
recipient: Address;
|
|
22
|
+
at?: BlockHash;
|
|
23
|
+
}): Promise<boolean>;
|
|
24
|
+
exists(p: {
|
|
25
|
+
account1: Address;
|
|
26
|
+
account2: Address;
|
|
27
|
+
at?: BlockHash;
|
|
28
|
+
}): Promise<boolean>;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export declare function handshakePlugin(): (client: Client) => HandshakeCapability;
|
|
32
|
+
//# sourceMappingURL=handshake.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handshakePlugin = handshakePlugin;
|
|
4
|
+
const index_js_1 = require("../actions/handshake/index.js");
|
|
5
|
+
function handshakePlugin() {
|
|
6
|
+
return (client) => ({
|
|
7
|
+
handshake: {
|
|
8
|
+
getCount: (p) => (0, index_js_1.getHandshakeCount)(client, p),
|
|
9
|
+
getCompleted: (p) => (0, index_js_1.getCompletedHandshakes)(client, p),
|
|
10
|
+
getStatus: (p) => (0, index_js_1.getHandshakeStatus)(client, p),
|
|
11
|
+
hasCompleted: (p) => (0, index_js_1.hasHandshakeCompleted)(client, p),
|
|
12
|
+
exists: (p) => (0, index_js_1.handshakeExists)(client, p),
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
}
|