@totochain/client 0.0.0-stage → 0.2.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 +307 -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 +49 -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 +21 -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/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/puzzlePieces/getCollectionsCount.d.cts +7 -0
- package/_cjs/actions/puzzlePieces/getCollectionsCount.js +8 -0
- package/_cjs/actions/puzzlePieces/getItemsCount.d.cts +8 -0
- package/_cjs/actions/puzzlePieces/getItemsCount.js +8 -0
- package/_cjs/actions/puzzlePieces/getOwner.d.cts +9 -0
- package/_cjs/actions/puzzlePieces/getOwner.js +8 -0
- package/_cjs/actions/puzzlePieces/getPendingWildcards.d.cts +8 -0
- package/_cjs/actions/puzzlePieces/getPendingWildcards.js +9 -0
- package/_cjs/actions/puzzlePieces/getTotalPuzzlePiecesMinted.d.cts +7 -0
- package/_cjs/actions/puzzlePieces/getTotalPuzzlePiecesMinted.js +8 -0
- package/_cjs/actions/puzzlePieces/getWildcardCollectionId.d.cts +7 -0
- package/_cjs/actions/puzzlePieces/getWildcardCollectionId.js +8 -0
- package/_cjs/actions/puzzlePieces/getWildcardDistributionMap.d.cts +8 -0
- package/_cjs/actions/puzzlePieces/getWildcardDistributionMap.js +9 -0
- package/_cjs/actions/puzzlePieces/getWildcardThreshold.d.cts +7 -0
- package/_cjs/actions/puzzlePieces/getWildcardThreshold.js +8 -0
- package/_cjs/actions/puzzlePieces/index.d.cts +18 -0
- package/_cjs/actions/puzzlePieces/index.js +19 -0
- package/_cjs/actions/puzzlePieces/types.d.cts +5 -0
- package/_cjs/actions/puzzlePieces/types.js +2 -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/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 +5 -0
- package/_cjs/actions/rewardPool/index.js +7 -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/compatibility.d.cts +16 -0
- package/_cjs/client/compatibility.js +60 -0
- package/_cjs/client/createClient.d.cts +12 -0
- package/_cjs/client/createClient.js +36 -0
- package/_cjs/client/types.d.cts +7 -0
- package/_cjs/client/types.js +2 -0
- package/_cjs/crypto/ctypeHash.d.cts +16 -0
- package/_cjs/crypto/ctypeHash.js +24 -0
- package/_cjs/crypto/index.d.cts +3 -0
- package/_cjs/crypto/index.js +6 -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/did/didUri.d.cts +11 -0
- package/_cjs/did/didUri.js +14 -0
- package/_cjs/index.d.cts +25 -0
- package/_cjs/index.js +67 -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/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/puzzlePieces.d.cts +28 -0
- package/_cjs/plugins/puzzlePieces.js +18 -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 +14 -0
- package/_cjs/plugins/rewardPool.js +12 -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 +28 -0
- package/_cjs/rpc/definitions.d.cts +3 -0
- package/_cjs/rpc/definitions.js +382 -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 +44 -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 +46 -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/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/puzzlePieces/getCollectionsCount.js +5 -0
- package/_esm/actions/puzzlePieces/getItemsCount.js +5 -0
- package/_esm/actions/puzzlePieces/getOwner.js +5 -0
- package/_esm/actions/puzzlePieces/getPendingWildcards.js +6 -0
- package/_esm/actions/puzzlePieces/getTotalPuzzlePiecesMinted.js +5 -0
- package/_esm/actions/puzzlePieces/getWildcardCollectionId.js +5 -0
- package/_esm/actions/puzzlePieces/getWildcardDistributionMap.js +6 -0
- package/_esm/actions/puzzlePieces/getWildcardThreshold.js +5 -0
- package/_esm/actions/puzzlePieces/index.js +8 -0
- package/_esm/actions/puzzlePieces/types.js +1 -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/getRewardPoolAccount.js +5 -0
- package/_esm/actions/rewardPool/getRewardPoolBalance.js +5 -0
- package/_esm/actions/rewardPool/index.js +2 -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/compatibility.js +55 -0
- package/_esm/client/createClient.js +32 -0
- package/_esm/client/types.js +1 -0
- package/_esm/crypto/ctypeHash.js +20 -0
- package/_esm/crypto/index.js +1 -0
- package/_esm/ctypes/definitions.js +207 -0
- package/_esm/ctypes/index.js +2 -0
- package/_esm/did/didUri.js +11 -0
- package/_esm/index.js +14 -0
- package/_esm/package.json +1 -0
- package/_esm/plugins/activityTracker.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/puzzlePieces.js +15 -0
- package/_esm/plugins/referral.js +14 -0
- package/_esm/plugins/reputationVoting.js +11 -0
- package/_esm/plugins/rewardPool.js +9 -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 +25 -0
- package/_esm/rpc/definitions.js +379 -0
- package/_esm/rpc/index.js +3 -0
- package/_esm/rpc/types.js +41 -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 +21 -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/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/puzzlePieces/getCollectionsCount.d.ts +7 -0
- package/_types/actions/puzzlePieces/getCollectionsCount.d.ts.map +1 -0
- package/_types/actions/puzzlePieces/getItemsCount.d.ts +8 -0
- package/_types/actions/puzzlePieces/getItemsCount.d.ts.map +1 -0
- package/_types/actions/puzzlePieces/getOwner.d.ts +9 -0
- package/_types/actions/puzzlePieces/getOwner.d.ts.map +1 -0
- package/_types/actions/puzzlePieces/getPendingWildcards.d.ts +8 -0
- package/_types/actions/puzzlePieces/getPendingWildcards.d.ts.map +1 -0
- package/_types/actions/puzzlePieces/getTotalPuzzlePiecesMinted.d.ts +7 -0
- package/_types/actions/puzzlePieces/getTotalPuzzlePiecesMinted.d.ts.map +1 -0
- package/_types/actions/puzzlePieces/getWildcardCollectionId.d.ts +7 -0
- package/_types/actions/puzzlePieces/getWildcardCollectionId.d.ts.map +1 -0
- package/_types/actions/puzzlePieces/getWildcardDistributionMap.d.ts +8 -0
- package/_types/actions/puzzlePieces/getWildcardDistributionMap.d.ts.map +1 -0
- package/_types/actions/puzzlePieces/getWildcardThreshold.d.ts +7 -0
- package/_types/actions/puzzlePieces/getWildcardThreshold.d.ts.map +1 -0
- package/_types/actions/puzzlePieces/index.d.ts +18 -0
- package/_types/actions/puzzlePieces/index.d.ts.map +1 -0
- package/_types/actions/puzzlePieces/types.d.ts +5 -0
- package/_types/actions/puzzlePieces/types.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/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 +5 -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/compatibility.d.ts +16 -0
- package/_types/client/compatibility.d.ts.map +1 -0
- package/_types/client/createClient.d.ts +12 -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/ctypeHash.d.ts +16 -0
- package/_types/crypto/ctypeHash.d.ts.map +1 -0
- package/_types/crypto/index.d.ts +3 -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/did/didUri.d.ts +11 -0
- package/_types/did/didUri.d.ts.map +1 -0
- package/_types/index.d.ts +25 -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/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/puzzlePieces.d.ts +28 -0
- package/_types/plugins/puzzlePieces.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 +14 -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,207 @@
|
|
|
1
|
+
export const PROVINCIAL_PHOTO_ID = {
|
|
2
|
+
title: 'Provincial Photo ID',
|
|
3
|
+
hash: '0x21c0f8df63347f498b0a4528eb15b25373a149f094890694a9d50c581b1f5c60',
|
|
4
|
+
deprecated: false,
|
|
5
|
+
schema: {
|
|
6
|
+
$schema: 'ipfs://bafybeiah66wbkhqbqn7idkostj2iqyan2tstc4tpqt65udlhimd7hcxjyq/',
|
|
7
|
+
additionalProperties: false,
|
|
8
|
+
properties: {
|
|
9
|
+
card_number: {
|
|
10
|
+
type: 'string',
|
|
11
|
+
},
|
|
12
|
+
province: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
title: 'Provincial Photo ID',
|
|
17
|
+
type: 'object',
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
export const FACEBOOK = {
|
|
21
|
+
title: 'Facebook',
|
|
22
|
+
hash: '0x4bf3ea326e8dbd515cca5c96221965c71d25e5286c3f270b0200fcf3f2782da4',
|
|
23
|
+
deprecated: false,
|
|
24
|
+
schema: {
|
|
25
|
+
$schema: 'ipfs://bafybeiah66wbkhqbqn7idkostj2iqyan2tstc4tpqt65udlhimd7hcxjyq/',
|
|
26
|
+
additionalProperties: false,
|
|
27
|
+
properties: {
|
|
28
|
+
facebookSubjectId: {
|
|
29
|
+
maxLength: 255,
|
|
30
|
+
minLength: 1,
|
|
31
|
+
type: 'string',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
title: 'Facebook',
|
|
35
|
+
type: 'object',
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
export const CANADIAN_PASSPORT = {
|
|
39
|
+
title: 'Canadian Passport',
|
|
40
|
+
hash: '0x5f3204330d6c89290fb6e2e993cf41ad2342bec93cb26773b850d357e871a2ce',
|
|
41
|
+
deprecated: false,
|
|
42
|
+
schema: {
|
|
43
|
+
$schema: 'ipfs://bafybeiah66wbkhqbqn7idkostj2iqyan2tstc4tpqt65udlhimd7hcxjyq/',
|
|
44
|
+
additionalProperties: false,
|
|
45
|
+
properties: {
|
|
46
|
+
passport_number: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
title: 'Canadian Passport',
|
|
51
|
+
type: 'object',
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
export const ELECTIONS_CANADA_VOTER_CARD = {
|
|
55
|
+
title: 'Elections Canada Voter Card',
|
|
56
|
+
hash: '0x89e98af12c100e6b60af7a8ef6d9ceae8e94122d9bf2fc1b31c3cd7b6e8c3efe',
|
|
57
|
+
deprecated: false,
|
|
58
|
+
schema: {
|
|
59
|
+
$schema: 'ipfs://bafybeiah66wbkhqbqn7idkostj2iqyan2tstc4tpqt65udlhimd7hcxjyq/',
|
|
60
|
+
additionalProperties: false,
|
|
61
|
+
properties: {
|
|
62
|
+
voter_card_number: {
|
|
63
|
+
type: 'string',
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
title: 'Elections Canada Voter Card',
|
|
67
|
+
type: 'object',
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
export const EMAIL_DEPRECATED = {
|
|
71
|
+
title: 'Email',
|
|
72
|
+
hash: '0xae5bc64e500eb576b7b137288cec5d532094e103be46872f1ad54641e477d9fe',
|
|
73
|
+
deprecated: true,
|
|
74
|
+
schema: {
|
|
75
|
+
$schema: 'ipfs://bafybeiah66wbkhqbqn7idkostj2iqyan2tstc4tpqt65udlhimd7hcxjyq/',
|
|
76
|
+
additionalProperties: false,
|
|
77
|
+
properties: {
|
|
78
|
+
Email: {
|
|
79
|
+
type: 'string',
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
title: 'Email',
|
|
83
|
+
type: 'object',
|
|
84
|
+
},
|
|
85
|
+
};
|
|
86
|
+
export const GOOGLE = {
|
|
87
|
+
title: 'Google',
|
|
88
|
+
hash: '0xb94ebeb1b06ab2803aa9390f00262b9392f4186a504f2397d7ab9c410979662b',
|
|
89
|
+
deprecated: false,
|
|
90
|
+
schema: {
|
|
91
|
+
$schema: 'ipfs://bafybeiah66wbkhqbqn7idkostj2iqyan2tstc4tpqt65udlhimd7hcxjyq/',
|
|
92
|
+
additionalProperties: false,
|
|
93
|
+
properties: {
|
|
94
|
+
googleSubjectId: {
|
|
95
|
+
maxLength: 255,
|
|
96
|
+
minLength: 1,
|
|
97
|
+
type: 'string',
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
title: 'Google',
|
|
101
|
+
type: 'object',
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
export const FACEBOOK_DEPRECATED = {
|
|
105
|
+
title: 'Facebook',
|
|
106
|
+
hash: '0xd558a369b7071b2f12b65d85c527df1c0cc5f9d6bd7c765a40030cd4d10eff0e',
|
|
107
|
+
deprecated: true,
|
|
108
|
+
schema: {
|
|
109
|
+
$schema: 'ipfs://bafybeiah66wbkhqbqn7idkostj2iqyan2tstc4tpqt65udlhimd7hcxjyq/',
|
|
110
|
+
additionalProperties: false,
|
|
111
|
+
properties: {
|
|
112
|
+
facebook_id: {
|
|
113
|
+
type: 'string',
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
title: 'Facebook',
|
|
117
|
+
type: 'object',
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
export const PROVINCIAL_DRIVING_LICENSE = {
|
|
121
|
+
title: 'Provincial Driving License',
|
|
122
|
+
hash: '0xd66d351848465956224abc21d1efb1bd1027fffbaad687f344f060c5343ac0d7',
|
|
123
|
+
deprecated: false,
|
|
124
|
+
schema: {
|
|
125
|
+
$schema: 'ipfs://bafybeiah66wbkhqbqn7idkostj2iqyan2tstc4tpqt65udlhimd7hcxjyq/',
|
|
126
|
+
additionalProperties: false,
|
|
127
|
+
properties: {
|
|
128
|
+
license_number: {
|
|
129
|
+
type: 'string',
|
|
130
|
+
},
|
|
131
|
+
province: {
|
|
132
|
+
type: 'string',
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
title: 'Provincial Driving License',
|
|
136
|
+
type: 'object',
|
|
137
|
+
},
|
|
138
|
+
};
|
|
139
|
+
export const UTILITY_BILL = {
|
|
140
|
+
title: 'Utility Bill',
|
|
141
|
+
hash: '0xdde76da01796b7475b4f8a28b15ebfbc48c68c006cb52cfeae8aeab238f00007',
|
|
142
|
+
deprecated: false,
|
|
143
|
+
schema: {
|
|
144
|
+
$schema: 'ipfs://bafybeiah66wbkhqbqn7idkostj2iqyan2tstc4tpqt65udlhimd7hcxjyq/',
|
|
145
|
+
additionalProperties: false,
|
|
146
|
+
properties: {
|
|
147
|
+
account_number: {
|
|
148
|
+
type: 'string',
|
|
149
|
+
},
|
|
150
|
+
provider_name: {
|
|
151
|
+
type: 'string',
|
|
152
|
+
},
|
|
153
|
+
utility_type: {
|
|
154
|
+
type: 'string',
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
title: 'Utility Bill',
|
|
158
|
+
type: 'object',
|
|
159
|
+
},
|
|
160
|
+
};
|
|
161
|
+
export const EMAIL = {
|
|
162
|
+
title: 'Email',
|
|
163
|
+
hash: '0xe0021dcdc0c41e43d5d9dc1e915aa2d38dc5226ee7077013b9c11ae45816e260',
|
|
164
|
+
deprecated: false,
|
|
165
|
+
schema: {
|
|
166
|
+
$schema: 'ipfs://bafybeiah66wbkhqbqn7idkostj2iqyan2tstc4tpqt65udlhimd7hcxjyq/',
|
|
167
|
+
additionalProperties: false,
|
|
168
|
+
properties: {
|
|
169
|
+
email: {
|
|
170
|
+
maxLength: 254,
|
|
171
|
+
minLength: 3,
|
|
172
|
+
type: 'string',
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
title: 'Email',
|
|
176
|
+
type: 'object',
|
|
177
|
+
},
|
|
178
|
+
};
|
|
179
|
+
export const GMAIL_DEPRECATED = {
|
|
180
|
+
title: 'Gmail',
|
|
181
|
+
hash: '0xec2d43199698e0eef5fd6c3a34ca0e597d69e4e18e41edb673e3a3d5f7433c14',
|
|
182
|
+
deprecated: true,
|
|
183
|
+
schema: {
|
|
184
|
+
$schema: 'ipfs://bafybeiah66wbkhqbqn7idkostj2iqyan2tstc4tpqt65udlhimd7hcxjyq/',
|
|
185
|
+
additionalProperties: false,
|
|
186
|
+
properties: {
|
|
187
|
+
gmail_id: {
|
|
188
|
+
type: 'string',
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
title: 'Gmail',
|
|
192
|
+
type: 'object',
|
|
193
|
+
},
|
|
194
|
+
};
|
|
195
|
+
export const REGISTERED_CTYPES = [
|
|
196
|
+
PROVINCIAL_PHOTO_ID,
|
|
197
|
+
FACEBOOK,
|
|
198
|
+
CANADIAN_PASSPORT,
|
|
199
|
+
ELECTIONS_CANADA_VOTER_CARD,
|
|
200
|
+
EMAIL_DEPRECATED,
|
|
201
|
+
GOOGLE,
|
|
202
|
+
FACEBOOK_DEPRECATED,
|
|
203
|
+
PROVINCIAL_DRIVING_LICENSE,
|
|
204
|
+
UTILITY_BILL,
|
|
205
|
+
EMAIL,
|
|
206
|
+
GMAIL_DEPRECATED,
|
|
207
|
+
];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Renders an address as its DID URI: `did:toto:` followed by the address without its `0x`.
|
|
3
|
+
*
|
|
4
|
+
* The address is passed through verbatim, case included. Nothing hashes the string and the chain
|
|
5
|
+
* never sees it — the DID and attestation pallets identify the account by its typed H160 — so the
|
|
6
|
+
* case carries no meaning, and two URIs for one account can differ in case alone. Lowercase the
|
|
7
|
+
* address first if you compare URIs as strings; `pallet_did::did_uri` renders lowercase.
|
|
8
|
+
*/
|
|
9
|
+
export function didUri(address) {
|
|
10
|
+
return `did:toto:${address.slice(2)}`;
|
|
11
|
+
}
|
package/_esm/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { createClient, createClientFromApi } from './client/createClient.js';
|
|
2
|
+
export { checkCompatibility, EXPECTED_CALLS, IncompatibleNodeError, SPEC_NAME, } from './client/compatibility.js';
|
|
3
|
+
export { activityTrackerPlugin, handshakePlugin, potentialPlugin, puzzlePiecesPlugin, referralPlugin, reputationVotingPlugin, rewardPoolPlugin, techCommitteeManagerPlugin, validatorManagerPlugin, } from './plugins/index.js';
|
|
4
|
+
export { RPC_DEFINITIONS } from './rpc/definitions.js';
|
|
5
|
+
export { CHAIN_TYPES } from './rpc/types.js';
|
|
6
|
+
export { TOTOCHAIN_DEFINITIONS, typesBundle } from './rpc/bundle.js';
|
|
7
|
+
export { DEFAULT_PAGE_SIZE, MAX_PAGE_SIZE } from './types/index.js';
|
|
8
|
+
export { canonicalCTypeBytes, ctypeHash } from './crypto/index.js';
|
|
9
|
+
export { didUri } from './did/didUri.js';
|
|
10
|
+
export { REGISTERED_CTYPES } from './ctypes/index.js';
|
|
11
|
+
export { DispatchFailedError, isDispatchFailure, NotIncludedError, SubmitTimeoutError, SubscriptionFailedError, submitAndWait, } from './actions/submitAndWait.js';
|
|
12
|
+
export { totochain, totochainDev, totochainLocal, totochainTestnet, defineChain, } from './chains/index.js';
|
|
13
|
+
export { account, addressOf, createKeyring, deriveAddress, fromMnemonic, fromPrivateKey, generateAccount, generateMnemonic, isValidAddress, stash, toSubstrateSigner, } from './accounts/index.js';
|
|
14
|
+
export { DEV_ACCOUNTS, VALIDATOR_ACCOUNTS, WELL_KNOWN_ACCOUNTS } from './accounts/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module","sideEffects":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { calculateActivityReputationAtBlock, getActivityReputation, getActivityReputationInfo, getActivityTrackerConfig, getAllActivityReputations, getAllRawActivityReputations, getMaxActivityReputation, getRawActivityReputation, } from '../actions/activityTracker/index.js';
|
|
2
|
+
export function activityTrackerPlugin() {
|
|
3
|
+
return (client) => ({
|
|
4
|
+
activityTracker: {
|
|
5
|
+
getReputation: (p) => getActivityReputation(client, p),
|
|
6
|
+
getRawReputation: (p) => getRawActivityReputation(client, p),
|
|
7
|
+
getReputationInfo: (p) => getActivityReputationInfo(client, p),
|
|
8
|
+
getAllReputations: (p) => getAllActivityReputations(client, p),
|
|
9
|
+
getAllRawReputations: (p) => getAllRawActivityReputations(client, p),
|
|
10
|
+
calculateAtBlock: (p) => calculateActivityReputationAtBlock(client, p),
|
|
11
|
+
getMaxReputation: (p) => getMaxActivityReputation(client, p),
|
|
12
|
+
getConfig: (p) => getActivityTrackerConfig(client, p),
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { getCompletedHandshakes, getHandshakeCount, getHandshakeStatus, handshakeExists, hasHandshakeCompleted, } from '../actions/handshake/index.js';
|
|
2
|
+
export function handshakePlugin() {
|
|
3
|
+
return (client) => ({
|
|
4
|
+
handshake: {
|
|
5
|
+
getCount: (p) => getHandshakeCount(client, p),
|
|
6
|
+
getCompleted: (p) => getCompletedHandshakes(client, p),
|
|
7
|
+
getStatus: (p) => getHandshakeStatus(client, p),
|
|
8
|
+
hasCompleted: (p) => hasHandshakeCompleted(client, p),
|
|
9
|
+
exists: (p) => handshakeExists(client, p),
|
|
10
|
+
},
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { activityTrackerPlugin } from './activityTracker.js';
|
|
2
|
+
export { handshakePlugin } from './handshake.js';
|
|
3
|
+
export { potentialPlugin } from './potential.js';
|
|
4
|
+
export { puzzlePiecesPlugin } from './puzzlePieces.js';
|
|
5
|
+
export { referralPlugin } from './referral.js';
|
|
6
|
+
export { reputationVotingPlugin } from './reputationVoting.js';
|
|
7
|
+
export { rewardPoolPlugin } from './rewardPool.js';
|
|
8
|
+
export { techCommitteeManagerPlugin } from './techCommitteeManager.js';
|
|
9
|
+
export { validatorManagerPlugin } from './validatorManager.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { getActiveReferralShare, getCycleNumber, getCyclePotentialMinted, getCycleSupply, getDefaultActiveReferralShare, getMaxSupply, getMonthNumber, getMonthPotentialMinted, getMonthSupply, getPotential, getTotalPotentialMinted, } from '../actions/potential/index.js';
|
|
2
|
+
export function potentialPlugin() {
|
|
3
|
+
return (client) => ({
|
|
4
|
+
potential: {
|
|
5
|
+
getPotential: (p) => getPotential(client, p),
|
|
6
|
+
getMaxSupply: (p) => getMaxSupply(client, p),
|
|
7
|
+
getTotalPotentialMinted: (p) => getTotalPotentialMinted(client, p),
|
|
8
|
+
getMonthSupply: (p) => getMonthSupply(client, p),
|
|
9
|
+
getMonthPotentialMinted: (p) => getMonthPotentialMinted(client, p),
|
|
10
|
+
getCycleSupply: (p) => getCycleSupply(client, p),
|
|
11
|
+
getCyclePotentialMinted: (p) => getCyclePotentialMinted(client, p),
|
|
12
|
+
getMonthNumber: (p) => getMonthNumber(client, p),
|
|
13
|
+
getCycleNumber: (p) => getCycleNumber(client, p),
|
|
14
|
+
getDefaultActiveReferralShare: (p) => getDefaultActiveReferralShare(client, p),
|
|
15
|
+
getActiveReferralShare: (p) => getActiveReferralShare(client, p),
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { getCollectionsCount, getItemsCount, getOwner, getPendingWildcards, getTotalPuzzlePiecesMinted, getWildcardCollectionId, getWildcardDistributionMap, getWildcardThreshold, } from '../actions/puzzlePieces/index.js';
|
|
2
|
+
export function puzzlePiecesPlugin() {
|
|
3
|
+
return (client) => ({
|
|
4
|
+
puzzlePieces: {
|
|
5
|
+
getWildcardThreshold: (p) => getWildcardThreshold(client, p),
|
|
6
|
+
getWildcardCollectionId: (p) => getWildcardCollectionId(client, p),
|
|
7
|
+
getWildcardDistributionMap: (p) => getWildcardDistributionMap(client, p),
|
|
8
|
+
getPendingWildcards: (p) => getPendingWildcards(client, p),
|
|
9
|
+
getTotalPuzzlePiecesMinted: (p) => getTotalPuzzlePiecesMinted(client, p),
|
|
10
|
+
getCollectionsCount: (p) => getCollectionsCount(client, p),
|
|
11
|
+
getItemsCount: (p) => getItemsCount(client, p),
|
|
12
|
+
getOwner: (p) => getOwner(client, p),
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { getActiveReferrals, getActiveReferralsCount, getBlockProducers, getBlockProducersPage, getPendingReferrals, getPendingReferralsPage, getReferrer, } from '../actions/referral/index.js';
|
|
2
|
+
export function referralPlugin() {
|
|
3
|
+
return (client) => ({
|
|
4
|
+
referral: {
|
|
5
|
+
getActiveReferrals: (p) => getActiveReferrals(client, p),
|
|
6
|
+
getActiveReferralsCount: (p) => getActiveReferralsCount(client, p),
|
|
7
|
+
getBlockProducers: (p) => getBlockProducers(client, p),
|
|
8
|
+
getBlockProducersPage: (p) => getBlockProducersPage(client, p),
|
|
9
|
+
getPendingReferrals: (p) => getPendingReferrals(client, p),
|
|
10
|
+
getPendingReferralsPage: (p) => getPendingReferralsPage(client, p),
|
|
11
|
+
getReferrer: (p) => getReferrer(client, p),
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getTally, getVotesForAccount, getVotingReputation, isPassing, } from '../actions/reputationVoting/index.js';
|
|
2
|
+
export function reputationVotingPlugin() {
|
|
3
|
+
return (client) => ({
|
|
4
|
+
reputationVoting: {
|
|
5
|
+
getTally: (p) => getTally(client, p),
|
|
6
|
+
isPassing: (p) => isPassing(client, p),
|
|
7
|
+
getVotesForAccount: (p) => getVotesForAccount(client, p),
|
|
8
|
+
getVotingReputation: (p) => getVotingReputation(client, p),
|
|
9
|
+
},
|
|
10
|
+
});
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getRewardPoolAccount, getRewardPoolBalance } from '../actions/rewardPool/index.js';
|
|
2
|
+
export function rewardPoolPlugin() {
|
|
3
|
+
return (client) => ({
|
|
4
|
+
rewardPool: {
|
|
5
|
+
getAccount: (p) => getRewardPoolAccount(client, p),
|
|
6
|
+
getBalance: (p) => getRewardPoolBalance(client, p),
|
|
7
|
+
},
|
|
8
|
+
});
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getSelectedTechCommittee, getTechCommitteeCandidates, } from '../actions/techCommitteeManager/index.js';
|
|
2
|
+
export function techCommitteeManagerPlugin() {
|
|
3
|
+
return (client) => ({
|
|
4
|
+
techCommitteeManager: {
|
|
5
|
+
getCandidates: (p) => getTechCommitteeCandidates(client, p),
|
|
6
|
+
getSelected: (p) => getSelectedTechCommittee(client, p),
|
|
7
|
+
},
|
|
8
|
+
});
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { getActiveValidators, getOffenceValidators, getOfflineValidators, getReputationForAccount, getReputationPenaltyFor, getReputations, getSelectedValidators, getValidatorCandidates, } from '../actions/validatorManager/index.js';
|
|
2
|
+
export function validatorManagerPlugin() {
|
|
3
|
+
return (client) => ({
|
|
4
|
+
validatorManager: {
|
|
5
|
+
getValidatorCandidates: (p) => getValidatorCandidates(client, p),
|
|
6
|
+
getSelectedValidators: (p) => getSelectedValidators(client, p),
|
|
7
|
+
getActiveValidators: (p) => getActiveValidators(client, p),
|
|
8
|
+
getOfflineValidators: (p) => getOfflineValidators(client, p),
|
|
9
|
+
getOffenceValidators: (p) => getOffenceValidators(client, p),
|
|
10
|
+
getReputationForAccount: (p) => getReputationForAccount(client, p),
|
|
11
|
+
getReputationPenaltyFor: (p) => getReputationPenaltyFor(client, p),
|
|
12
|
+
getReputations: (p) => getReputations(client, p),
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RPC_DEFINITIONS } from './definitions.js';
|
|
2
|
+
import { CHAIN_TYPES } from './types.js';
|
|
3
|
+
const ETHEREUM_ACCOUNT_TYPES = {
|
|
4
|
+
AccountId: 'EthereumAccountId',
|
|
5
|
+
Address: 'AccountId',
|
|
6
|
+
LookupSource: 'AccountId',
|
|
7
|
+
};
|
|
8
|
+
export const TOTOCHAIN_DEFINITIONS = {
|
|
9
|
+
rpc: RPC_DEFINITIONS,
|
|
10
|
+
types: [
|
|
11
|
+
{
|
|
12
|
+
minmax: [0, undefined],
|
|
13
|
+
types: { ...ETHEREUM_ACCOUNT_TYPES, ...CHAIN_TYPES },
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
};
|
|
17
|
+
export const typesBundle = {
|
|
18
|
+
spec: {
|
|
19
|
+
totochain: TOTOCHAIN_DEFINITIONS,
|
|
20
|
+
},
|
|
21
|
+
};
|
package/_esm/rpc/call.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { RPC_DEFINITIONS } from './definitions.js';
|
|
2
|
+
export async function callRpc(client, section, method, ...params) {
|
|
3
|
+
const rpc = client.api.rpc;
|
|
4
|
+
const fn = rpc[section]?.[method];
|
|
5
|
+
if (typeof fn !== 'function') {
|
|
6
|
+
throw new Error(`The node does not expose ${section}_${method}. ` +
|
|
7
|
+
`Check it was built with the ${section} RPC extension.`);
|
|
8
|
+
}
|
|
9
|
+
// An omitted required parameter is refused: sent as null, it would encode as a default
|
|
10
|
+
// value — poll 0, collection 0 — and the call would answer for that instead.
|
|
11
|
+
const definitions = RPC_DEFINITIONS[section]?.[method]?.params ?? [];
|
|
12
|
+
params.forEach((param, index) => {
|
|
13
|
+
const definition = definitions[index];
|
|
14
|
+
if (param === undefined && definition && !definition.isOptional) {
|
|
15
|
+
throw new Error(`Missing required parameter ${definition.name} for ${section}_${method}`);
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
// An omitted optional parameter followed by a given one is sent as null, so the ones after
|
|
19
|
+
// it keep their positions. Omitted parameters at the end are left off instead:
|
|
20
|
+
// `@polkadot/api` encodes a null `at` as the zero block hash, not as an absent one.
|
|
21
|
+
let count = params.length;
|
|
22
|
+
while (count > 0 && params[count - 1] === undefined)
|
|
23
|
+
count -= 1;
|
|
24
|
+
return fn(...params.slice(0, count).map((param) => param ?? null));
|
|
25
|
+
}
|