@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,322 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VALIDATOR_ACCOUNTS = exports.DEV_ACCOUNTS = exports.DEV_PHRASE = exports.WELL_KNOWN_ACCOUNTS = void 0;
|
|
4
|
+
exports.wellKnownAccount = wellKnownAccount;
|
|
5
|
+
exports.WELL_KNOWN_ACCOUNTS = [
|
|
6
|
+
{
|
|
7
|
+
name: 'AttestationProvider',
|
|
8
|
+
mnemonic: 'wagon stay february fire unhappy suggest happy luxury hand door idle hen',
|
|
9
|
+
derivation: 'bip32Master',
|
|
10
|
+
address: '0x1f9ed3160baca733963d883132d6ead79de96119',
|
|
11
|
+
privateKey: '0x06ebdea5e90ff9ec0ec6add46ee1e0b83b383f5ed83ff2145f20be4aee92dbba',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: 'Alith',
|
|
15
|
+
mnemonic: 'bottom drive obey lake curtain smoke basket hold race lonely fit walk',
|
|
16
|
+
derivation: 'bip44',
|
|
17
|
+
index: 0,
|
|
18
|
+
address: '0xf24ff3a9cf04c71dbc94d0b566f7a27b94566cac',
|
|
19
|
+
privateKey: '0x5fb92d6e98884f76de468fa3f6278f8807c48bebc13595d45af5bdc4da702133',
|
|
20
|
+
session: {
|
|
21
|
+
sr25519: '0xaadec323b3c4095635e7ffe7c7160807ae0971a4ecca49ffe0c8c8addb364344',
|
|
22
|
+
ed25519: '0x8d835bad5bce0ea5e966ac991af2205e3160255d97baa8d6c01f2cc8d297a9bc',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'Baltathar',
|
|
27
|
+
mnemonic: 'bottom drive obey lake curtain smoke basket hold race lonely fit walk',
|
|
28
|
+
derivation: 'bip44',
|
|
29
|
+
index: 1,
|
|
30
|
+
address: '0x3cd0a705a2dc65e5b1e1205896baa2be8a07c6e0',
|
|
31
|
+
privateKey: '0x8075991ce870b93a8870eca0c0f91913d12f47948ca0fd25b49c6fa7cdbeee8b',
|
|
32
|
+
session: {
|
|
33
|
+
sr25519: '0xf492085c8deac220a8c78d8012f7d420f0c7f8094b2970af432fa0f744adac21',
|
|
34
|
+
ed25519: '0x0c0af8a10802e87d81239d96b1b9fba5f126457d92be28002ab20e390fb073ff',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'Charleth',
|
|
39
|
+
mnemonic: 'bottom drive obey lake curtain smoke basket hold race lonely fit walk',
|
|
40
|
+
derivation: 'bip44',
|
|
41
|
+
index: 2,
|
|
42
|
+
address: '0x798d4ba9baf0064ec19eb4f0a1a45785ae9d6dfc',
|
|
43
|
+
privateKey: '0x0b6e18cafb6ed99687ec547bd28139cafdd2bffe70e6b688025de6b445aa5c5b',
|
|
44
|
+
session: {
|
|
45
|
+
sr25519: '0x9a3a16416c954c262039246630144fcdf66484f60a50b9b7cd7daaf883563a38',
|
|
46
|
+
ed25519: '0xdec80a3305d8e309811a7c42ef98aa4513ca3c6e51de0148a747cb198be78342',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'Dorothy',
|
|
51
|
+
mnemonic: 'bottom drive obey lake curtain smoke basket hold race lonely fit walk',
|
|
52
|
+
derivation: 'bip44',
|
|
53
|
+
index: 3,
|
|
54
|
+
address: '0x773539d4ac0e786233d90a233654ccee26a613d9',
|
|
55
|
+
privateKey: '0x39539ab1876910bbf3a223d84a29e28f1cb4e2e456503e7e91ed39b2e7223d68',
|
|
56
|
+
session: {
|
|
57
|
+
sr25519: '0xb67ae609f324eb7377a46f6c8934bf8f6472c2d2b346e5639f8d13302f9e225e',
|
|
58
|
+
ed25519: '0x550c1f9508c2e471462dbd07646f4a3f06674f3ebf42420726179fa1576af2ff',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'Ethan',
|
|
63
|
+
mnemonic: 'bottom drive obey lake curtain smoke basket hold race lonely fit walk',
|
|
64
|
+
derivation: 'bip44',
|
|
65
|
+
index: 4,
|
|
66
|
+
address: '0xff64d3f6efe2317ee2807d223a0bdc4c0c49dfdb',
|
|
67
|
+
privateKey: '0x7dce9bc8babb68fec1409be38c8e1a52650206a7ed90ff956ae8a6d15eeaaef4',
|
|
68
|
+
session: {
|
|
69
|
+
sr25519: '0x6c1473ceba06a69fa37840c714363449084ccee2a8ef9d7cd23a8938bed14c4a',
|
|
70
|
+
ed25519: '0xd7f7bac9cd517784e21bd74debb4aee32e1ba0e7186b93f1efe43e6e6fc613a3',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: 'Faith',
|
|
75
|
+
mnemonic: 'bottom drive obey lake curtain smoke basket hold race lonely fit walk',
|
|
76
|
+
derivation: 'bip44',
|
|
77
|
+
index: 5,
|
|
78
|
+
address: '0xc0f0f4ab324c46e55d02d0033343b4be8a55532d',
|
|
79
|
+
privateKey: '0xb9d2ea9a615f3165812e8d44de0d24da9bbd164b65c4f0573e1ce2c8dbd9c8df',
|
|
80
|
+
session: {
|
|
81
|
+
sr25519: '0xb6a4c522a4ba14587d14908ee3d11ac74308adebc81ffc8ce3a0856065d99e06',
|
|
82
|
+
ed25519: '0xf7de1f55b1b3bd23f1efb03245674d42838bd7165d15b07b8db11a4859d77d48',
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: 'Goliath',
|
|
87
|
+
mnemonic: 'bottom drive obey lake curtain smoke basket hold race lonely fit walk',
|
|
88
|
+
derivation: 'bip44',
|
|
89
|
+
index: 6,
|
|
90
|
+
address: '0x7bf369283338e12c90514468aa3868a551ab2929',
|
|
91
|
+
privateKey: '0x96b8a38e12e1a31dee1eab2fffdf9d9990045f5b37e44d8cc27766ef294acf18',
|
|
92
|
+
session: {
|
|
93
|
+
sr25519: '0x46ac8bb0a6fb53011eeed1bda0c54815007a50a0eb9054f82b317147cec9fc7f',
|
|
94
|
+
ed25519: '0xebf7e22304d8716afac92e661e3865fb98f2bd3a219cd0372af36d21aa0359b5',
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: 'Heath',
|
|
99
|
+
mnemonic: 'bottom drive obey lake curtain smoke basket hold race lonely fit walk',
|
|
100
|
+
derivation: 'bip44',
|
|
101
|
+
index: 7,
|
|
102
|
+
address: '0x931f3600a299fd9b24cefb3bff79388d19804bea',
|
|
103
|
+
privateKey: '0x0d6dcaaef49272a5411896be8ad16c01c35d6f8c18873387b71fbc734759b0ab',
|
|
104
|
+
session: {
|
|
105
|
+
sr25519: '0xc4076735c5e5b8fb29847b725a191347f146ca19f8d89a671cf96ad8cc3eba4e',
|
|
106
|
+
ed25519: '0x4a5eab7cb46c9ddca72bc44be5b3fd7021bde833967e7aa7c24afd4dae1ec7f8',
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: 'Ida',
|
|
111
|
+
mnemonic: 'bottom drive obey lake curtain smoke basket hold race lonely fit walk',
|
|
112
|
+
derivation: 'bip44',
|
|
113
|
+
index: 8,
|
|
114
|
+
address: '0xc41c5f1123eccd5ce233578b2e7ebd5693869d73',
|
|
115
|
+
privateKey: '0x4c42532034540267bf568198ccec4cb822a025da542861fcb146a5fab6433ff8',
|
|
116
|
+
session: {
|
|
117
|
+
sr25519: '0xda8532ea0654fea881b66110776f209f954bcb9574a7dd3161aaf9ee9a407f01',
|
|
118
|
+
ed25519: '0x65b4de88407240e4afac2ca8835e80fb2b9868c688f8b65325d9103637855a35',
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: 'Judith',
|
|
123
|
+
mnemonic: 'bottom drive obey lake curtain smoke basket hold race lonely fit walk',
|
|
124
|
+
derivation: 'bip44',
|
|
125
|
+
index: 9,
|
|
126
|
+
address: '0x2898fe7a42be376c8bc7af536a940f7fd5add423',
|
|
127
|
+
privateKey: '0x94c49300a58d576011096bcb006aa06f5a91b34b4383891e8029c21dc39fbb8b',
|
|
128
|
+
session: {
|
|
129
|
+
sr25519: '0xf615c9c09dcd5f192075e5fce7b15dffb26c8aedc59ab150369031d508cb5521',
|
|
130
|
+
ed25519: '0x6add5e3d823af70a9ab12987d64b623f54945931b5fbd4796220f7a7494c99e9',
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: 'Gerald',
|
|
135
|
+
mnemonic: 'bottom drive obey lake curtain smoke basket hold race lonely fit walk',
|
|
136
|
+
derivation: 'bip44',
|
|
137
|
+
index: 10,
|
|
138
|
+
address: '0x583e6cfb24ae212a36db2766597ff8e6ac796751',
|
|
139
|
+
privateKey: '0xff0071dbd1edf21f40baf55718b2c3b032027c202b57afbe10720aa751a9f40c',
|
|
140
|
+
session: {
|
|
141
|
+
sr25519: '0xa24bfa60d8bb2a6894bf52f9ce25df1b6f2b4a1f2c926db93db1b9d3ab33444c',
|
|
142
|
+
ed25519: '0x80a1dd8c1e226b3c662abed59b18dfe64baaa779b8d9caf4b4272e23338725d9',
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: 'init00',
|
|
147
|
+
mnemonic: 'main awake seek truly rebel pluck aunt receive height cook bless weasel',
|
|
148
|
+
derivation: 'secretUri',
|
|
149
|
+
address: '0xd950736a02c5a98567d7ae3d20a1a0b06b02ca14',
|
|
150
|
+
privateKey: '0x0620f2aa019c28d0e725b505e805312f31a576f765b93623695896aa0d92ee88',
|
|
151
|
+
stash: {
|
|
152
|
+
address: '0xfb21ae925c6be26b44065274d07458141b9e5a1a',
|
|
153
|
+
privateKey: '0xb7631a695d50302f6cf66a7ecc2680251ee6187cb7becef552b11e7f38d6b301',
|
|
154
|
+
},
|
|
155
|
+
session: {
|
|
156
|
+
sr25519: '0x942c7b1ea2daf62a5315f487281df46c827c3c426a317d0781d34e19a762475f',
|
|
157
|
+
ed25519: '0xf902d43af69d238f9fd627b05f041bf9b46282b1dbb1c00b35a53e6891f5840d',
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: 'init01',
|
|
162
|
+
mnemonic: 'use clock lunar there health private pigeon oyster trigger half evolve slab',
|
|
163
|
+
derivation: 'secretUri',
|
|
164
|
+
address: '0x34cdc7d412eb41090bc0dabeeb7a165384e0036f',
|
|
165
|
+
privateKey: '0x24d8e816eb745638015bb2233344e1398cbd0b99fc4d57327c24ac284a1ccc30',
|
|
166
|
+
stash: {
|
|
167
|
+
address: '0xfcf7a3502d4da56bc862043dd021257285910d34',
|
|
168
|
+
privateKey: '0x63d0f6170f77582c8df18d8de8c3f2f34a2d0c31af62c8010d32973bd1f5eb3e',
|
|
169
|
+
},
|
|
170
|
+
session: {
|
|
171
|
+
sr25519: '0x1c701889e8c271a5e9654dc87b2a393aeab7002a04ac98c41be00595d7c89d16',
|
|
172
|
+
ed25519: '0x4eafbc1dd02b616d0251e18cd26b1da2a7c8f03cd3ca1f404611c277493b4514',
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: 'init02',
|
|
177
|
+
mnemonic: 'blanket faith tired fitness wrong mouse duck raise gun flee tiger also',
|
|
178
|
+
derivation: 'secretUri',
|
|
179
|
+
address: '0x216259bb016963cbbb0c47e1057a973f716d5b73',
|
|
180
|
+
privateKey: '0x59c4f805c688d0e48a824fce9e024c427cd2a8e0434c8e6a8e2159ef6c0bc63a',
|
|
181
|
+
stash: {
|
|
182
|
+
address: '0x92c53a357045c4401acdb7b2899472590a05ea29',
|
|
183
|
+
privateKey: '0x08d000531c85f2bfbecc374afff358595ea432b6f20045e0b90addf70e97f34a',
|
|
184
|
+
},
|
|
185
|
+
session: {
|
|
186
|
+
sr25519: '0x983d164faea93c4cfe1cc9cdf48bbf51ee844db67c8c50e11b6ebce710d6393e',
|
|
187
|
+
ed25519: '0x85f0fbd95719767a9b8b70991e427a9aa29874a398f407ea1187f84b18de9639',
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
name: 'init03',
|
|
192
|
+
mnemonic: 'vault tilt guess neutral melody buddy embody priority wrong bronze mention juice',
|
|
193
|
+
derivation: 'secretUri',
|
|
194
|
+
address: '0x451aa54db1b12f59eca12074d11d680f5b465843',
|
|
195
|
+
privateKey: '0x4f54fe666bd15413ff4a72a1b442fa6af190aa5a7fcf3de78d7d4f00db841214',
|
|
196
|
+
stash: {
|
|
197
|
+
address: '0x4a845866f79628a9160b2bfcd1cf323fc0787fb6',
|
|
198
|
+
privateKey: '0x9c21bbc1f9e904ba5763d21f15bdd89be773b11df800204f494ee786289d6e09',
|
|
199
|
+
},
|
|
200
|
+
session: {
|
|
201
|
+
sr25519: '0x106cbf857029c194ae77db18d53555b216b6014a18af133676bb98283345fc4f',
|
|
202
|
+
ed25519: '0x2aff553646026e1e6b0150a98d9a8f552831a3b209a8c633d9684907342293e9',
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
name: 'init04',
|
|
207
|
+
mnemonic: 'dutch barely host rapid device fee define drip syrup clay come disease',
|
|
208
|
+
derivation: 'secretUri',
|
|
209
|
+
address: '0x050a2530e9ddd6aa31f2534e77e26387d10b8d91',
|
|
210
|
+
privateKey: '0x50412ce8bb0db00de8e4c925571ed51f89e907bf4e93fd045102c10a06181e10',
|
|
211
|
+
stash: {
|
|
212
|
+
address: '0x4201b2372958504fea5faca81ab065e1420d00f0',
|
|
213
|
+
privateKey: '0x2b9bc5e0b4d5500d174a180e2ff7cd31277ebc9539d3456f1b6c03ffc7ca2408',
|
|
214
|
+
},
|
|
215
|
+
session: {
|
|
216
|
+
sr25519: '0x5cefc5a08441918932692bf87ce7f374c6ac2d7ffdbee09cfe21a9a606d83d7c',
|
|
217
|
+
ed25519: '0x367e5e6a54fcfec977f6c299de9e4b9aa20fb821ce300fef22c573b3f87231ab',
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
name: 'init05',
|
|
222
|
+
mnemonic: 'draw maid blast hurt anchor delay impulse task raw helmet sort brick',
|
|
223
|
+
derivation: 'secretUri',
|
|
224
|
+
address: '0xd8e6a1c20b5d57b5c9f72e11532fafe921990ef0',
|
|
225
|
+
privateKey: '0xcdbcc060766a06116e98d895987acd8a2a113996de554a6ff2ba7497d6ddf696',
|
|
226
|
+
stash: {
|
|
227
|
+
address: '0x2c666b62b7684c9ed60ae0a1e8df03cdf6a47ae0',
|
|
228
|
+
privateKey: '0x83aa79a01ab0975dfce9503dac46fbc5162f1d57317b2052eb82c56a5309daec',
|
|
229
|
+
},
|
|
230
|
+
session: {
|
|
231
|
+
sr25519: '0x0e018da57968311cd196ce178e065c8e3ff8662cbd59f34b84c1aed648dc8d61',
|
|
232
|
+
ed25519: '0xf5b3438f56998654217fe68c0acd86357e295e117fa81fdde9eb9405c16059a5',
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
name: 'init06',
|
|
237
|
+
mnemonic: 'beyond payment agree hat rapid acquire trouble fringe demise satoshi peace apart',
|
|
238
|
+
derivation: 'secretUri',
|
|
239
|
+
address: '0xdb13f5eab0e4bf74f96db4b0bc2310b85b9eb4cc',
|
|
240
|
+
privateKey: '0x18bca038545bb105ebef776683bda1fe66561c32416b25d0f812b6084a66316d',
|
|
241
|
+
stash: {
|
|
242
|
+
address: '0x363ba634ba146f1ab12998eb4bf512c98ca25512',
|
|
243
|
+
privateKey: '0x834595299c2abe8e4f651e24110cf269456ef45353b3b02fbfbf8cd69940a16d',
|
|
244
|
+
},
|
|
245
|
+
session: {
|
|
246
|
+
sr25519: '0xdc91fb859c8fe8dd224c34d730e851f1b160de7eb0c8cf83107e448e422e4400',
|
|
247
|
+
ed25519: '0x26c1651fe9a89dc2722640a2260a59ffc7f7e2d41a84211eb743088df473bfce',
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
name: 'init07',
|
|
252
|
+
mnemonic: 'piano family squirrel glad oven remember impose skill wrong couple fade lizard',
|
|
253
|
+
derivation: 'secretUri',
|
|
254
|
+
address: '0xf60ab49f8bee06106603cc37a07dd9a3cb7d10a1',
|
|
255
|
+
privateKey: '0x9088a5308d331aa146fb2c9ca1a1dafca2102bc3e38ff754b347281b7f568ac2',
|
|
256
|
+
stash: {
|
|
257
|
+
address: '0x8018f6e95016c3f6ecdc4764b282ee6d8b747d0c',
|
|
258
|
+
privateKey: '0x2b08995211a171e10e7cae639c0d23b8fba41fd2f960f030b69e4ecc526ecc2e',
|
|
259
|
+
},
|
|
260
|
+
session: {
|
|
261
|
+
sr25519: '0x0cc698849d75089249a8aaf80278e97800b326d039d65eee4bb9a625707ce124',
|
|
262
|
+
ed25519: '0x16bdac25ad9c2e215bd75de1a04b4c48805221c7d97e2f621c6778c88d6e77c9',
|
|
263
|
+
},
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
name: 'init08',
|
|
267
|
+
mnemonic: 'warfare object accuse master wear wage tribe peace hospital maximum candy boy',
|
|
268
|
+
derivation: 'secretUri',
|
|
269
|
+
address: '0xb7b0ac3b641d947fe9160bff08b73180d6c95a8a',
|
|
270
|
+
privateKey: '0xf0f32845bd3b1fd7556b149a483cb2e57a5f8321cd5ed4af2dfd8d5bfba9f3a0',
|
|
271
|
+
stash: {
|
|
272
|
+
address: '0xfdf2cbf90be93f42cafae8c890a2d03b69014480',
|
|
273
|
+
privateKey: '0x705c9bb2eb0bd1b8ac09a841c4f735cee6ed5b82b06d40b8da7716eab4cd7a97',
|
|
274
|
+
},
|
|
275
|
+
session: {
|
|
276
|
+
sr25519: '0x0e90b77f1a88236da98500d74a758890b2ed8908ed015d148311fe81bcccc108',
|
|
277
|
+
ed25519: '0x5514def2213e2f8b34a462aba4cb1aec763b1b817f09d4670d90befb5d3f0c26',
|
|
278
|
+
},
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
name: 'init09',
|
|
282
|
+
mnemonic: 'few sort attitude current exist render juice swift alcohol they energy setup',
|
|
283
|
+
derivation: 'secretUri',
|
|
284
|
+
address: '0xd98cf4a7d5142901b8624ccc0d0d5a73db048e3b',
|
|
285
|
+
privateKey: '0x7f9a63147fea814a17bcecc59c0bced48916555bb50b62660bfb0e0281f1cb97',
|
|
286
|
+
stash: {
|
|
287
|
+
address: '0x1abd9131da1886076d6b40aceb4b87022f45a1bb',
|
|
288
|
+
privateKey: '0xde11622d9bf0f5f497496be74e3546af42ff716015a99093bd72492232d10ab2',
|
|
289
|
+
},
|
|
290
|
+
session: {
|
|
291
|
+
sr25519: '0x088d425afbb3b4753fcc1896ec881c28a9137677fcc34d9e8d7443cb8104a11d',
|
|
292
|
+
ed25519: '0xfaaeac17e7f2ede566d2b12b02c3fac897932cb1b6f1d302eb6a0cc6216e3a93',
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
name: 'init10',
|
|
297
|
+
mnemonic: 'soccer quote outside moment potato creek tenant enforce marble feel venue apart',
|
|
298
|
+
derivation: 'secretUri',
|
|
299
|
+
address: '0x4b61b2c88eac7ebd6340491f917dad9d5632aff9',
|
|
300
|
+
privateKey: '0x4bb26249fbb959d19dd605611eee552e3f5fffc17becb9c85e541c724973d7f0',
|
|
301
|
+
stash: {
|
|
302
|
+
address: '0xfbb35a13f6015315bee394f8f402e96ad26572ab',
|
|
303
|
+
privateKey: '0x636761b78cb02215648c49fa0eba79d2f18b341395bcdab3dcf80192ef120ed0',
|
|
304
|
+
},
|
|
305
|
+
session: {
|
|
306
|
+
sr25519: '0x14d43525c22902e0ee8780f0055f893a6f069234fb0e49e70a3ee448afe27e06',
|
|
307
|
+
ed25519: '0x43e049c8671915f1c0adf77abf42f858e5badf3847877b67eb8146bc60bbc5aa',
|
|
308
|
+
},
|
|
309
|
+
},
|
|
310
|
+
];
|
|
311
|
+
var keyring_1 = require("@polkadot/keyring");
|
|
312
|
+
Object.defineProperty(exports, "DEV_PHRASE", { enumerable: true, get: function () { return keyring_1.DEV_PHRASE; } });
|
|
313
|
+
function wellKnownAccount(name) {
|
|
314
|
+
const account = exports.WELL_KNOWN_ACCOUNTS.find((a) => a.name.toLowerCase() === name.toLowerCase());
|
|
315
|
+
if (!account) {
|
|
316
|
+
const names = exports.WELL_KNOWN_ACCOUNTS.map((a) => a.name).join(', ');
|
|
317
|
+
throw new Error(`unknown account '${name}'; expected one of ${names}`);
|
|
318
|
+
}
|
|
319
|
+
return account;
|
|
320
|
+
}
|
|
321
|
+
exports.DEV_ACCOUNTS = exports.WELL_KNOWN_ACCOUNTS.filter((a) => a.derivation === 'bip44');
|
|
322
|
+
exports.VALIDATOR_ACCOUNTS = exports.WELL_KNOWN_ACCOUNTS.filter((a) => a.stash !== undefined);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.cjs';
|
|
2
|
+
import type { Address, BlockHash } from '../../types/index.cjs';
|
|
3
|
+
export interface CalculateActivityReputationAtBlockParameters {
|
|
4
|
+
account: Address;
|
|
5
|
+
blockNumber: number;
|
|
6
|
+
at?: BlockHash;
|
|
7
|
+
}
|
|
8
|
+
export declare function calculateActivityReputationAtBlock(client: Client, { account, blockNumber, at }: CalculateActivityReputationAtBlockParameters): Promise<number>;
|
|
9
|
+
//# sourceMappingURL=calculateActivityReputationAtBlock.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.calculateActivityReputationAtBlock = calculateActivityReputationAtBlock;
|
|
4
|
+
const call_js_1 = require("../../rpc/call.js");
|
|
5
|
+
async function calculateActivityReputationAtBlock(client, { account, blockNumber, at }) {
|
|
6
|
+
const result = await (0, call_js_1.callRpc)(client, 'activityTracker', 'calculateActivityReputationAtBlock', account, blockNumber, at);
|
|
7
|
+
return result.toNumber();
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.decodeReputationPage = decodeReputationPage;
|
|
4
|
+
function decodeReputationPage(raw) {
|
|
5
|
+
const page = raw.toJSON();
|
|
6
|
+
return {
|
|
7
|
+
entries: (page.entries ?? []).map(([account, reputation]) => ({
|
|
8
|
+
account: account,
|
|
9
|
+
reputation,
|
|
10
|
+
})),
|
|
11
|
+
truncated: page.truncated ?? false,
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.cjs';
|
|
2
|
+
import type { Address, BlockHash } from '../../types/index.cjs';
|
|
3
|
+
export interface GetActivityReputationParameters {
|
|
4
|
+
account: Address;
|
|
5
|
+
at?: BlockHash;
|
|
6
|
+
}
|
|
7
|
+
export declare function getActivityReputation(client: Client, { account, at }: GetActivityReputationParameters): Promise<number>;
|
|
8
|
+
//# sourceMappingURL=getActivityReputation.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getActivityReputation = getActivityReputation;
|
|
4
|
+
const call_js_1 = require("../../rpc/call.js");
|
|
5
|
+
async function getActivityReputation(client, { account, at }) {
|
|
6
|
+
const result = await (0, call_js_1.callRpc)(client, 'activityTracker', 'getActivityReputation', account, at);
|
|
7
|
+
return result.toNumber();
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.cjs';
|
|
2
|
+
import type { Address, BlockHash } from '../../types/index.cjs';
|
|
3
|
+
import type { ActivityReputationInfo } from './types.cjs';
|
|
4
|
+
export interface GetActivityReputationInfoParameters {
|
|
5
|
+
account: Address;
|
|
6
|
+
at?: BlockHash;
|
|
7
|
+
}
|
|
8
|
+
export declare function getActivityReputationInfo(client: Client, { account, at }: GetActivityReputationInfoParameters): Promise<ActivityReputationInfo>;
|
|
9
|
+
//# sourceMappingURL=getActivityReputationInfo.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getActivityReputationInfo = getActivityReputationInfo;
|
|
4
|
+
const call_js_1 = require("../../rpc/call.js");
|
|
5
|
+
async function getActivityReputationInfo(client, { account, at }) {
|
|
6
|
+
const result = await (0, call_js_1.callRpc)(client, 'activityTracker', 'getActivityReputationInfo', account, at);
|
|
7
|
+
const info = result.toJSON();
|
|
8
|
+
return {
|
|
9
|
+
currentReputation: info.currentReputation ?? info.current_reputation ?? 0,
|
|
10
|
+
rawReputation: info.rawReputation ?? info.raw_reputation ?? 0,
|
|
11
|
+
lastActivityBlock: info.lastActivityBlock ?? info.last_activity_block ?? 0,
|
|
12
|
+
blocksSinceActivity: info.blocksSinceActivity ?? info.blocks_since_activity ?? 0,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.cjs';
|
|
2
|
+
import type { BlockHash } from '../../types/index.cjs';
|
|
3
|
+
import type { ActivityTrackerConfig } from './types.cjs';
|
|
4
|
+
export interface GetActivityTrackerConfigParameters {
|
|
5
|
+
at?: BlockHash;
|
|
6
|
+
}
|
|
7
|
+
export declare function getActivityTrackerConfig(client: Client, { at }?: GetActivityTrackerConfigParameters): Promise<ActivityTrackerConfig>;
|
|
8
|
+
//# sourceMappingURL=getActivityTrackerConfig.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getActivityTrackerConfig = getActivityTrackerConfig;
|
|
4
|
+
const call_js_1 = require("../../rpc/call.js");
|
|
5
|
+
async function getActivityTrackerConfig(client, { at } = {}) {
|
|
6
|
+
const result = await (0, call_js_1.callRpc)(client, 'activityTracker', 'getActivityTrackerConfig', at);
|
|
7
|
+
const [maxReputation, weightFactor, decayFactor] = result.toJSON();
|
|
8
|
+
return {
|
|
9
|
+
maxReputation,
|
|
10
|
+
weightFactor: BigInt(weightFactor),
|
|
11
|
+
decayFactor,
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.cjs';
|
|
2
|
+
import type { BlockHash } from '../../types/index.cjs';
|
|
3
|
+
import type { ActivityReputationPage } from './types.cjs';
|
|
4
|
+
export interface GetAllActivityReputationsParameters {
|
|
5
|
+
at?: BlockHash;
|
|
6
|
+
}
|
|
7
|
+
export declare function getAllActivityReputations(client: Client, { at }?: GetAllActivityReputationsParameters): Promise<ActivityReputationPage>;
|
|
8
|
+
//# sourceMappingURL=getAllActivityReputations.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAllActivityReputations = getAllActivityReputations;
|
|
4
|
+
const call_js_1 = require("../../rpc/call.js");
|
|
5
|
+
const decodeReputationPage_js_1 = require("./decodeReputationPage.js");
|
|
6
|
+
async function getAllActivityReputations(client, { at } = {}) {
|
|
7
|
+
const result = await (0, call_js_1.callRpc)(client, 'activityTracker', 'getAllActivityReputations', at);
|
|
8
|
+
return (0, decodeReputationPage_js_1.decodeReputationPage)(result);
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.cjs';
|
|
2
|
+
import type { BlockHash } from '../../types/index.cjs';
|
|
3
|
+
import type { ActivityReputationPage } from './types.cjs';
|
|
4
|
+
export interface GetAllRawActivityReputationsParameters {
|
|
5
|
+
at?: BlockHash;
|
|
6
|
+
}
|
|
7
|
+
export declare function getAllRawActivityReputations(client: Client, { at }?: GetAllRawActivityReputationsParameters): Promise<ActivityReputationPage>;
|
|
8
|
+
//# sourceMappingURL=getAllRawActivityReputations.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAllRawActivityReputations = getAllRawActivityReputations;
|
|
4
|
+
const call_js_1 = require("../../rpc/call.js");
|
|
5
|
+
const decodeReputationPage_js_1 = require("./decodeReputationPage.js");
|
|
6
|
+
async function getAllRawActivityReputations(client, { at } = {}) {
|
|
7
|
+
const result = await (0, call_js_1.callRpc)(client, 'activityTracker', 'getAllRawActivityReputations', at);
|
|
8
|
+
return (0, decodeReputationPage_js_1.decodeReputationPage)(result);
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.cjs';
|
|
2
|
+
import type { BlockHash } from '../../types/index.cjs';
|
|
3
|
+
export interface GetMaxActivityReputationParameters {
|
|
4
|
+
at?: BlockHash;
|
|
5
|
+
}
|
|
6
|
+
export declare function getMaxActivityReputation(client: Client, { at }?: GetMaxActivityReputationParameters): Promise<number>;
|
|
7
|
+
//# sourceMappingURL=getMaxActivityReputation.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMaxActivityReputation = getMaxActivityReputation;
|
|
4
|
+
const call_js_1 = require("../../rpc/call.js");
|
|
5
|
+
async function getMaxActivityReputation(client, { at } = {}) {
|
|
6
|
+
const result = await (0, call_js_1.callRpc)(client, 'activityTracker', 'getMaxActivityReputation', at);
|
|
7
|
+
return result.toNumber();
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.cjs';
|
|
2
|
+
import type { Address, BlockHash } from '../../types/index.cjs';
|
|
3
|
+
export interface GetRawActivityReputationParameters {
|
|
4
|
+
account: Address;
|
|
5
|
+
at?: BlockHash;
|
|
6
|
+
}
|
|
7
|
+
export declare function getRawActivityReputation(client: Client, { account, at }: GetRawActivityReputationParameters): Promise<number>;
|
|
8
|
+
//# sourceMappingURL=getRawActivityReputation.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRawActivityReputation = getRawActivityReputation;
|
|
4
|
+
const call_js_1 = require("../../rpc/call.js");
|
|
5
|
+
async function getRawActivityReputation(client, { account, at }) {
|
|
6
|
+
const result = await (0, call_js_1.callRpc)(client, 'activityTracker', 'getRawActivityReputation', account, at);
|
|
7
|
+
return result.toNumber();
|
|
8
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { calculateActivityReputationAtBlock } from './calculateActivityReputationAtBlock.cjs';
|
|
2
|
+
export { getActivityReputation } from './getActivityReputation.cjs';
|
|
3
|
+
export { getActivityReputationInfo } from './getActivityReputationInfo.cjs';
|
|
4
|
+
export { getActivityTrackerConfig } from './getActivityTrackerConfig.cjs';
|
|
5
|
+
export { getAllActivityReputations } from './getAllActivityReputations.cjs';
|
|
6
|
+
export { getAllRawActivityReputations } from './getAllRawActivityReputations.cjs';
|
|
7
|
+
export { getMaxActivityReputation } from './getMaxActivityReputation.cjs';
|
|
8
|
+
export { getRawActivityReputation } from './getRawActivityReputation.cjs';
|
|
9
|
+
export type { ActivityReputationInfo, ActivityReputationPage, ActivityTrackerConfig, } from './types.cjs';
|
|
10
|
+
export type { CalculateActivityReputationAtBlockParameters } from './calculateActivityReputationAtBlock.cjs';
|
|
11
|
+
export type { GetActivityReputationParameters } from './getActivityReputation.cjs';
|
|
12
|
+
export type { GetActivityReputationInfoParameters } from './getActivityReputationInfo.cjs';
|
|
13
|
+
export type { GetActivityTrackerConfigParameters } from './getActivityTrackerConfig.cjs';
|
|
14
|
+
export type { GetAllActivityReputationsParameters } from './getAllActivityReputations.cjs';
|
|
15
|
+
export type { GetAllRawActivityReputationsParameters } from './getAllRawActivityReputations.cjs';
|
|
16
|
+
export type { GetMaxActivityReputationParameters } from './getMaxActivityReputation.cjs';
|
|
17
|
+
export type { GetRawActivityReputationParameters } from './getRawActivityReputation.cjs';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRawActivityReputation = exports.getMaxActivityReputation = exports.getAllRawActivityReputations = exports.getAllActivityReputations = exports.getActivityTrackerConfig = exports.getActivityReputationInfo = exports.getActivityReputation = exports.calculateActivityReputationAtBlock = void 0;
|
|
4
|
+
var calculateActivityReputationAtBlock_js_1 = require("./calculateActivityReputationAtBlock.js");
|
|
5
|
+
Object.defineProperty(exports, "calculateActivityReputationAtBlock", { enumerable: true, get: function () { return calculateActivityReputationAtBlock_js_1.calculateActivityReputationAtBlock; } });
|
|
6
|
+
var getActivityReputation_js_1 = require("./getActivityReputation.js");
|
|
7
|
+
Object.defineProperty(exports, "getActivityReputation", { enumerable: true, get: function () { return getActivityReputation_js_1.getActivityReputation; } });
|
|
8
|
+
var getActivityReputationInfo_js_1 = require("./getActivityReputationInfo.js");
|
|
9
|
+
Object.defineProperty(exports, "getActivityReputationInfo", { enumerable: true, get: function () { return getActivityReputationInfo_js_1.getActivityReputationInfo; } });
|
|
10
|
+
var getActivityTrackerConfig_js_1 = require("./getActivityTrackerConfig.js");
|
|
11
|
+
Object.defineProperty(exports, "getActivityTrackerConfig", { enumerable: true, get: function () { return getActivityTrackerConfig_js_1.getActivityTrackerConfig; } });
|
|
12
|
+
var getAllActivityReputations_js_1 = require("./getAllActivityReputations.js");
|
|
13
|
+
Object.defineProperty(exports, "getAllActivityReputations", { enumerable: true, get: function () { return getAllActivityReputations_js_1.getAllActivityReputations; } });
|
|
14
|
+
var getAllRawActivityReputations_js_1 = require("./getAllRawActivityReputations.js");
|
|
15
|
+
Object.defineProperty(exports, "getAllRawActivityReputations", { enumerable: true, get: function () { return getAllRawActivityReputations_js_1.getAllRawActivityReputations; } });
|
|
16
|
+
var getMaxActivityReputation_js_1 = require("./getMaxActivityReputation.js");
|
|
17
|
+
Object.defineProperty(exports, "getMaxActivityReputation", { enumerable: true, get: function () { return getMaxActivityReputation_js_1.getMaxActivityReputation; } });
|
|
18
|
+
var getRawActivityReputation_js_1 = require("./getRawActivityReputation.js");
|
|
19
|
+
Object.defineProperty(exports, "getRawActivityReputation", { enumerable: true, get: function () { return getRawActivityReputation_js_1.getRawActivityReputation; } });
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Address } from '../../types/index.cjs';
|
|
2
|
+
export interface ActivityReputationInfo {
|
|
3
|
+
currentReputation: number;
|
|
4
|
+
rawReputation: number;
|
|
5
|
+
lastActivityBlock: number;
|
|
6
|
+
blocksSinceActivity: number;
|
|
7
|
+
}
|
|
8
|
+
export interface ActivityReputationPage {
|
|
9
|
+
entries: Array<{
|
|
10
|
+
account: Address;
|
|
11
|
+
reputation: number;
|
|
12
|
+
}>;
|
|
13
|
+
truncated: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface ActivityTrackerConfig {
|
|
16
|
+
maxReputation: number;
|
|
17
|
+
weightFactor: bigint;
|
|
18
|
+
decayFactor: number;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.cjs';
|
|
2
|
+
import type { Address, Hash } from '../../types/index.cjs';
|
|
3
|
+
import type { Extrinsic } from '../did/createDid.cjs';
|
|
4
|
+
/** The pair that identifies an attestation: the chain holds at most one per subject and CType. */
|
|
5
|
+
export interface AttestParameters {
|
|
6
|
+
subject: Address;
|
|
7
|
+
ctypeHash: Hash;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* One issuance of an attestation. The chain never reuses an issuance id, so revoking or removing
|
|
11
|
+
* by it cannot reach a later re-attestation of the same subject and CType: the call fails with
|
|
12
|
+
* `IssuanceMismatch` instead. Read the id from `api.query.attestation.attestations(subject,
|
|
13
|
+
* ctypeHash)` (`issuanceId`) or from the `AttestationCreated` event.
|
|
14
|
+
*/
|
|
15
|
+
export interface AttestationIssuanceParameters extends AttestParameters {
|
|
16
|
+
issuanceId: bigint;
|
|
17
|
+
}
|
|
18
|
+
export declare function attest(client: Client, { subject, ctypeHash }: AttestParameters): Extrinsic;
|
|
19
|
+
export declare function revokeAttestation(client: Client, { subject, ctypeHash, issuanceId }: AttestationIssuanceParameters): Extrinsic;
|
|
20
|
+
export declare function removeAttestation(client: Client, { subject, ctypeHash, issuanceId }: AttestationIssuanceParameters): Extrinsic;
|
|
21
|
+
//# sourceMappingURL=attest.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.attest = attest;
|
|
4
|
+
exports.revokeAttestation = revokeAttestation;
|
|
5
|
+
exports.removeAttestation = removeAttestation;
|
|
6
|
+
function attest(client, { subject, ctypeHash }) {
|
|
7
|
+
return client.api.tx['attestation']['add'](subject, ctypeHash);
|
|
8
|
+
}
|
|
9
|
+
function revokeAttestation(client, { subject, ctypeHash, issuanceId }) {
|
|
10
|
+
return client.api.tx['attestation']['revoke'](subject, ctypeHash, issuanceId);
|
|
11
|
+
}
|
|
12
|
+
function removeAttestation(client, { subject, ctypeHash, issuanceId }) {
|
|
13
|
+
return client.api.tx['attestation']['remove'](subject, ctypeHash, issuanceId);
|
|
14
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.revokeAttestation = exports.removeAttestation = exports.attest = void 0;
|
|
4
|
+
var attest_js_1 = require("./attest.js");
|
|
5
|
+
Object.defineProperty(exports, "attest", { enumerable: true, get: function () { return attest_js_1.attest; } });
|
|
6
|
+
Object.defineProperty(exports, "removeAttestation", { enumerable: true, get: function () { return attest_js_1.removeAttestation; } });
|
|
7
|
+
Object.defineProperty(exports, "revokeAttestation", { enumerable: true, get: function () { return attest_js_1.revokeAttestation; } });
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SubmittableExtrinsic } from '@polkadot/api/types';
|
|
2
|
+
import type { ISubmittableResult } from '@polkadot/types/types';
|
|
3
|
+
import type { Client } from '../../client/types.cjs';
|
|
4
|
+
import type { Address } from '../../types/index.cjs';
|
|
5
|
+
export type Extrinsic = SubmittableExtrinsic<'promise', ISubmittableResult>;
|
|
6
|
+
export declare function createDid(client: Client): Extrinsic;
|
|
7
|
+
export declare function createDidFor(client: Client, { subject }: {
|
|
8
|
+
subject: Address;
|
|
9
|
+
}): Extrinsic;
|
|
10
|
+
//# sourceMappingURL=createDid.d.ts.map
|