@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,8 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.js';
|
|
2
|
+
import type { Address, BlockHash } from '../../types/index.js';
|
|
3
|
+
export interface GetActiveReferralsCountParameters {
|
|
4
|
+
account: Address;
|
|
5
|
+
at?: BlockHash;
|
|
6
|
+
}
|
|
7
|
+
export declare function getActiveReferralsCount(client: Client, { account, at }: GetActiveReferralsCountParameters): Promise<number>;
|
|
8
|
+
//# sourceMappingURL=getActiveReferralsCount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getActiveReferralsCount.d.ts","sourceRoot":"","sources":["../../../src/actions/referral/getActiveReferralsCount.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAG/D,MAAM,WAAW,iCAAiC;IAChD,OAAO,EAAE,OAAO,CAAC;IACjB,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,MAAM,EACd,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,iCAAiC,GACjD,OAAO,CAAC,MAAM,CAAC,CAGjB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.js';
|
|
2
|
+
import type { Address, BlockHash } from '../../types/index.js';
|
|
3
|
+
export interface GetBlockProducersParameters {
|
|
4
|
+
at?: BlockHash;
|
|
5
|
+
}
|
|
6
|
+
export declare function getBlockProducers(client: Client, { at }?: GetBlockProducersParameters): Promise<Address[]>;
|
|
7
|
+
//# sourceMappingURL=getBlockProducers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBlockProducers.d.ts","sourceRoot":"","sources":["../../../src/actions/referral/getBlockProducers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAG/D,MAAM,WAAW,2BAA2B;IAC1C,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,EAAE,GAAE,2BAAgC,GACvC,OAAO,CAAC,OAAO,EAAE,CAAC,CAGpB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.js';
|
|
2
|
+
import type { Address, BlockHash, Pagination, PaginatedResponse } from '../../types/index.js';
|
|
3
|
+
export interface GetBlockProducersPageParameters {
|
|
4
|
+
pagination?: Pagination;
|
|
5
|
+
at?: BlockHash;
|
|
6
|
+
}
|
|
7
|
+
export declare function getBlockProducersPage(client: Client, { pagination, at }?: GetBlockProducersPageParameters): Promise<PaginatedResponse<Address>>;
|
|
8
|
+
//# sourceMappingURL=getBlockProducersPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBlockProducersPage.d.ts","sourceRoot":"","sources":["../../../src/actions/referral/getBlockProducersPage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAI9F,MAAM,WAAW,+BAA+B;IAC9C,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,MAAM,EACd,EAAE,UAAU,EAAE,EAAE,EAAE,GAAE,+BAAoC,GACvD,OAAO,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAGrC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.js';
|
|
2
|
+
import type { Address, BlockHash } from '../../types/index.js';
|
|
3
|
+
export interface GetPendingReferralsParameters {
|
|
4
|
+
referrer: Address;
|
|
5
|
+
at?: BlockHash;
|
|
6
|
+
}
|
|
7
|
+
export declare function getPendingReferrals(client: Client, { referrer, at }: GetPendingReferralsParameters): Promise<Address[]>;
|
|
8
|
+
//# sourceMappingURL=getPendingReferrals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPendingReferrals.d.ts","sourceRoot":"","sources":["../../../src/actions/referral/getPendingReferrals.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAG/D,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,EAAE,OAAO,CAAC;IAClB,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,MAAM,EACd,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,6BAA6B,GAC9C,OAAO,CAAC,OAAO,EAAE,CAAC,CAGpB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.js';
|
|
2
|
+
import type { Address, BlockHash, Pagination, PaginatedResponse } from '../../types/index.js';
|
|
3
|
+
export interface GetPendingReferralsPageParameters {
|
|
4
|
+
referrer: Address;
|
|
5
|
+
pagination?: Pagination;
|
|
6
|
+
at?: BlockHash;
|
|
7
|
+
}
|
|
8
|
+
export declare function getPendingReferralsPage(client: Client, { referrer, pagination, at }: GetPendingReferralsPageParameters): Promise<PaginatedResponse<Address>>;
|
|
9
|
+
//# sourceMappingURL=getPendingReferralsPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPendingReferralsPage.d.ts","sourceRoot":"","sources":["../../../src/actions/referral/getPendingReferralsPage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAI9F,MAAM,WAAW,iCAAiC;IAChD,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,MAAM,EACd,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,iCAAiC,GAC9D,OAAO,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAUrC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.js';
|
|
2
|
+
import type { Address, BlockHash } from '../../types/index.js';
|
|
3
|
+
export interface GetReferrerParameters {
|
|
4
|
+
account: Address;
|
|
5
|
+
at?: BlockHash;
|
|
6
|
+
}
|
|
7
|
+
export declare function getReferrer(client: Client, { account, at }: GetReferrerParameters): Promise<Address | null>;
|
|
8
|
+
//# sourceMappingURL=getReferrer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getReferrer.d.ts","sourceRoot":"","sources":["../../../src/actions/referral/getReferrer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAG/D,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,wBAAsB,WAAW,CAC/B,MAAM,EAAE,MAAM,EACd,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,qBAAqB,GACrC,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAGzB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { getActiveReferrals } from './getActiveReferrals.js';
|
|
2
|
+
export { getActiveReferralsCount } from './getActiveReferralsCount.js';
|
|
3
|
+
export { getBlockProducers } from './getBlockProducers.js';
|
|
4
|
+
export { getBlockProducersPage } from './getBlockProducersPage.js';
|
|
5
|
+
export { getPendingReferrals } from './getPendingReferrals.js';
|
|
6
|
+
export { getPendingReferralsPage } from './getPendingReferralsPage.js';
|
|
7
|
+
export { getReferrer } from './getReferrer.js';
|
|
8
|
+
export type { TreeNode } from './types.js';
|
|
9
|
+
export type { GetActiveReferralsParameters } from './getActiveReferrals.js';
|
|
10
|
+
export type { GetActiveReferralsCountParameters } from './getActiveReferralsCount.js';
|
|
11
|
+
export type { GetBlockProducersParameters } from './getBlockProducers.js';
|
|
12
|
+
export type { GetBlockProducersPageParameters } from './getBlockProducersPage.js';
|
|
13
|
+
export type { GetPendingReferralsParameters } from './getPendingReferrals.js';
|
|
14
|
+
export type { GetPendingReferralsPageParameters } from './getPendingReferralsPage.js';
|
|
15
|
+
export type { GetReferrerParameters } from './getReferrer.js';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/actions/referral/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,YAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,YAAY,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAC5E,YAAY,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACtF,YAAY,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC1E,YAAY,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAClF,YAAY,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAC9E,YAAY,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACtF,YAAY,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/actions/referral/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.js';
|
|
2
|
+
import type { BlockHash } from '../../types/index.js';
|
|
3
|
+
import type { Tally } from './types.js';
|
|
4
|
+
export interface GetTallyParameters {
|
|
5
|
+
pollIndex: number;
|
|
6
|
+
at?: BlockHash;
|
|
7
|
+
}
|
|
8
|
+
export declare function getTally(client: Client, { pollIndex, at }: GetTallyParameters): Promise<Tally>;
|
|
9
|
+
//# sourceMappingURL=getTally.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTally.d.ts","sourceRoot":"","sources":["../../../src/actions/reputationVoting/getTally.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAGxC,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,wBAAsB,QAAQ,CAC5B,MAAM,EAAE,MAAM,EACd,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,kBAAkB,GACpC,OAAO,CAAC,KAAK,CAAC,CAchB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.js';
|
|
2
|
+
import type { Address, BlockHash } from '../../types/index.js';
|
|
3
|
+
import type { AccountVote } from './types.js';
|
|
4
|
+
export interface GetVotesForAccountParameters {
|
|
5
|
+
account: Address;
|
|
6
|
+
at?: BlockHash;
|
|
7
|
+
}
|
|
8
|
+
export declare function getVotesForAccount(client: Client, { account, at }: GetVotesForAccountParameters): Promise<AccountVote[]>;
|
|
9
|
+
//# sourceMappingURL=getVotesForAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getVotesForAccount.d.ts","sourceRoot":"","sources":["../../../src/actions/reputationVoting/getVotesForAccount.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAiB,MAAM,YAAY,CAAC;AAG7D,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,MAAM,EACd,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,4BAA4B,GAC5C,OAAO,CAAC,WAAW,EAAE,CAAC,CAmBxB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.js';
|
|
2
|
+
import type { Address, BlockHash } from '../../types/index.js';
|
|
3
|
+
export interface GetVotingReputationParameters {
|
|
4
|
+
account: Address;
|
|
5
|
+
at?: BlockHash;
|
|
6
|
+
}
|
|
7
|
+
export declare function getVotingReputation(client: Client, { account, at }: GetVotingReputationParameters): Promise<number>;
|
|
8
|
+
//# sourceMappingURL=getVotingReputation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getVotingReputation.d.ts","sourceRoot":"","sources":["../../../src/actions/reputationVoting/getVotingReputation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAG/D,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE,OAAO,CAAC;IACjB,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,MAAM,EACd,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,6BAA6B,GAC7C,OAAO,CAAC,MAAM,CAAC,CAGjB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { getTally } from './getTally.js';
|
|
2
|
+
export { getVotesForAccount } from './getVotesForAccount.js';
|
|
3
|
+
export { getVotingReputation } from './getVotingReputation.js';
|
|
4
|
+
export { isPassing } from './isPassing.js';
|
|
5
|
+
export type { AccountVote, Tally, VoteDirection, VoteRecord } from './types.js';
|
|
6
|
+
export type { GetTallyParameters } from './getTally.js';
|
|
7
|
+
export type { GetVotesForAccountParameters } from './getVotesForAccount.js';
|
|
8
|
+
export type { GetVotingReputationParameters } from './getVotingReputation.js';
|
|
9
|
+
export type { IsPassingParameters } from './isPassing.js';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/actions/reputationVoting/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,YAAY,EAAE,WAAW,EAAE,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAChF,YAAY,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACxD,YAAY,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAC5E,YAAY,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAC9E,YAAY,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.js';
|
|
2
|
+
import type { BlockHash } from '../../types/index.js';
|
|
3
|
+
export interface IsPassingParameters {
|
|
4
|
+
pollIndex: number;
|
|
5
|
+
at?: BlockHash;
|
|
6
|
+
}
|
|
7
|
+
export declare function isPassing(client: Client, { pollIndex, at }: IsPassingParameters): Promise<boolean>;
|
|
8
|
+
//# sourceMappingURL=isPassing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isPassing.d.ts","sourceRoot":"","sources":["../../../src/actions/reputationVoting/isPassing.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGtD,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,wBAAsB,SAAS,CAC7B,MAAM,EAAE,MAAM,EACd,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,mBAAmB,GACrC,OAAO,CAAC,OAAO,CAAC,CAGlB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type VoteDirection = 'aye' | 'nay';
|
|
2
|
+
export interface Tally {
|
|
3
|
+
ayes: bigint;
|
|
4
|
+
nays: bigint;
|
|
5
|
+
turnout: number;
|
|
6
|
+
electorate: bigint;
|
|
7
|
+
}
|
|
8
|
+
export interface VoteRecord {
|
|
9
|
+
direction: VoteDirection;
|
|
10
|
+
reputation: number;
|
|
11
|
+
votedAt: number;
|
|
12
|
+
}
|
|
13
|
+
export interface AccountVote {
|
|
14
|
+
pollIndex: number;
|
|
15
|
+
vote: VoteRecord;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/actions/reputationVoting/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,KAAK,CAAC;AAE1C,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,aAAa,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,UAAU,CAAC;CAClB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.js';
|
|
2
|
+
import type { Address, BlockHash } from '../../types/index.js';
|
|
3
|
+
export interface GetRewardPoolAccountParameters {
|
|
4
|
+
at?: BlockHash;
|
|
5
|
+
}
|
|
6
|
+
export declare function getRewardPoolAccount(client: Client, { at }?: GetRewardPoolAccountParameters): Promise<Address>;
|
|
7
|
+
//# sourceMappingURL=getRewardPoolAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRewardPoolAccount.d.ts","sourceRoot":"","sources":["../../../src/actions/rewardPool/getRewardPoolAccount.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAG/D,MAAM,WAAW,8BAA8B;IAC7C,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,EAAE,GAAE,8BAAmC,GAC1C,OAAO,CAAC,OAAO,CAAC,CAGlB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.js';
|
|
2
|
+
import type { BlockHash } from '../../types/index.js';
|
|
3
|
+
export interface GetRewardPoolBalanceParameters {
|
|
4
|
+
at?: BlockHash;
|
|
5
|
+
}
|
|
6
|
+
export declare function getRewardPoolBalance(client: Client, { at }?: GetRewardPoolBalanceParameters): Promise<bigint>;
|
|
7
|
+
//# sourceMappingURL=getRewardPoolBalance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRewardPoolBalance.d.ts","sourceRoot":"","sources":["../../../src/actions/rewardPool/getRewardPoolBalance.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGtD,MAAM,WAAW,8BAA8B;IAC7C,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,EAAE,GAAE,8BAAmC,GAC1C,OAAO,CAAC,MAAM,CAAC,CAGjB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { getRewardPoolAccount } from './getRewardPoolAccount.js';
|
|
2
|
+
export { getRewardPoolBalance } from './getRewardPoolBalance.js';
|
|
3
|
+
export type { GetRewardPoolAccountParameters } from './getRewardPoolAccount.js';
|
|
4
|
+
export type { GetRewardPoolBalanceParameters } from './getRewardPoolBalance.js';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/actions/rewardPool/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,YAAY,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAChF,YAAY,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { AddressOrPair, SignerOptions } from '@polkadot/api/types';
|
|
2
|
+
import type { Client } from '../client/types.js';
|
|
3
|
+
import type { Extrinsic } from './did/createDid.js';
|
|
4
|
+
/**
|
|
5
|
+
* How long to wait before resolving.
|
|
6
|
+
*
|
|
7
|
+
* `inBlock` returns as soon as the extrinsic is in a block, which is enough to read the result
|
|
8
|
+
* back. `finalized` waits for the block to be finalized, and is what a caller needs when it
|
|
9
|
+
* records the outcome somewhere a reorg must not invalidate — a database row pointing at a
|
|
10
|
+
* dropped block is worse than a slower write.
|
|
11
|
+
*/
|
|
12
|
+
export type SubmitWaitFor = 'inBlock' | 'finalized';
|
|
13
|
+
export interface SubmitAndWaitParameters {
|
|
14
|
+
extrinsic: Extrinsic;
|
|
15
|
+
signer: AddressOrPair;
|
|
16
|
+
options?: Partial<SignerOptions>;
|
|
17
|
+
timeoutMs?: number;
|
|
18
|
+
/** Defaults to `inBlock`. */
|
|
19
|
+
waitFor?: SubmitWaitFor;
|
|
20
|
+
}
|
|
21
|
+
export interface SubmitResult {
|
|
22
|
+
blockHash: string;
|
|
23
|
+
txHash: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* A call the runtime rejected, carrying the pallet and variant that rejected it.
|
|
27
|
+
*
|
|
28
|
+
* The names are what callers branch on — `ctype.AlreadyExists` is an idempotent no-op, while
|
|
29
|
+
* another error from the same call is not. Parsing that back out of a message string is the
|
|
30
|
+
* failure mode this type exists to prevent, so the names stay structured.
|
|
31
|
+
*/
|
|
32
|
+
export declare class DispatchFailedError extends Error {
|
|
33
|
+
readonly section: string;
|
|
34
|
+
readonly method: string;
|
|
35
|
+
readonly docs: string[];
|
|
36
|
+
constructor(section: string, method: string, docs?: string[]);
|
|
37
|
+
}
|
|
38
|
+
/** Narrows an unknown error to one specific runtime rejection. */
|
|
39
|
+
export declare function isDispatchFailure(error: unknown, section: string, method: string): error is DispatchFailedError;
|
|
40
|
+
/**
|
|
41
|
+
* The provider abandoned the status subscription — a dropped socket, say.
|
|
42
|
+
*
|
|
43
|
+
* Distinct from the extrinsic being rejected: nothing is known about whether it executed, so a
|
|
44
|
+
* caller that retries has to treat the submission as possibly in flight.
|
|
45
|
+
*/
|
|
46
|
+
export declare class SubscriptionFailedError extends Error {
|
|
47
|
+
readonly internalError: unknown;
|
|
48
|
+
constructor(internalError: unknown);
|
|
49
|
+
}
|
|
50
|
+
/** No terminal status arrived within the budget. The extrinsic may still be in flight. */
|
|
51
|
+
export declare class SubmitTimeoutError extends Error {
|
|
52
|
+
readonly timeoutMs: number;
|
|
53
|
+
constructor(timeoutMs: number);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* The extrinsic reached a status it cannot recover from — dropped, invalid, usurped, or out of
|
|
57
|
+
* time for finality. It will never be included, so a caller may resubmit.
|
|
58
|
+
*/
|
|
59
|
+
export declare class NotIncludedError extends Error {
|
|
60
|
+
readonly status: string;
|
|
61
|
+
readonly txHash: string;
|
|
62
|
+
constructor(status: string, txHash: string);
|
|
63
|
+
}
|
|
64
|
+
export declare function submitAndWait(client: Client, params: SubmitAndWaitParameters): Promise<SubmitResult>;
|
|
65
|
+
//# sourceMappingURL=submitAndWait.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submitAndWait.d.ts","sourceRoot":"","sources":["../../src/actions/submitAndWait.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,CAAC;AAEpD,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;GAMG;AACH,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC;gBAEZ,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,EAAO;CAQjE;AAED,kEAAkE;AAClE,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GACb,KAAK,IAAI,mBAAmB,CAI9B;AAED;;;;;GAKG;AACH,qBAAa,uBAAwB,SAAQ,KAAK;IAChD,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;gBAEpB,aAAa,EAAE,OAAO;CAKnC;AAED,0FAA0F;AAC1F,qBAAa,kBAAmB,SAAQ,KAAK;IAC3C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;gBAEf,SAAS,EAAE,MAAM;CAK9B;AAED;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;gBAEZ,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;CAM3C;AAED,wBAAsB,aAAa,CACjC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,YAAY,CAAC,CAyFvB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.js';
|
|
2
|
+
import type { Address, BlockHash } from '../../types/index.js';
|
|
3
|
+
export interface GetSelectedTechCommitteeParameters {
|
|
4
|
+
at?: BlockHash;
|
|
5
|
+
}
|
|
6
|
+
export declare function getSelectedTechCommittee(client: Client, { at }?: GetSelectedTechCommitteeParameters): Promise<Address[]>;
|
|
7
|
+
//# sourceMappingURL=getSelectedTechCommittee.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSelectedTechCommittee.d.ts","sourceRoot":"","sources":["../../../src/actions/techCommitteeManager/getSelectedTechCommittee.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAG/D,MAAM,WAAW,kCAAkC;IACjD,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,EAAE,GAAE,kCAAuC,GAC9C,OAAO,CAAC,OAAO,EAAE,CAAC,CAQpB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.js';
|
|
2
|
+
import type { Address, BlockHash } from '../../types/index.js';
|
|
3
|
+
export interface GetTechCommitteeCandidatesParameters {
|
|
4
|
+
at?: BlockHash;
|
|
5
|
+
}
|
|
6
|
+
export declare function getTechCommitteeCandidates(client: Client, { at }?: GetTechCommitteeCandidatesParameters): Promise<Address[]>;
|
|
7
|
+
//# sourceMappingURL=getTechCommitteeCandidates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTechCommitteeCandidates.d.ts","sourceRoot":"","sources":["../../../src/actions/techCommitteeManager/getTechCommitteeCandidates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAG/D,MAAM,WAAW,oCAAoC;IACnD,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,EAAE,GAAE,oCAAyC,GAChD,OAAO,CAAC,OAAO,EAAE,CAAC,CAGpB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { getSelectedTechCommittee } from './getSelectedTechCommittee.js';
|
|
2
|
+
export { getTechCommitteeCandidates } from './getTechCommitteeCandidates.js';
|
|
3
|
+
export type { GetSelectedTechCommitteeParameters } from './getSelectedTechCommittee.js';
|
|
4
|
+
export type { GetTechCommitteeCandidatesParameters } from './getTechCommitteeCandidates.js';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/actions/techCommitteeManager/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,YAAY,EAAE,kCAAkC,EAAE,MAAM,+BAA+B,CAAC;AACxF,YAAY,EAAE,oCAAoC,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Codec } from '@polkadot/types/types';
|
|
2
|
+
import type { Address } from '../../types/index.js';
|
|
3
|
+
export declare function decodePairs<Key extends string, Value extends string>(raw: Codec, keyName: Key, valueName: Value): Array<{
|
|
4
|
+
[K in Key]: Address;
|
|
5
|
+
} & {
|
|
6
|
+
[V in Value]: number;
|
|
7
|
+
}>;
|
|
8
|
+
//# sourceMappingURL=decodePairs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decodePairs.d.ts","sourceRoot":"","sources":["../../../src/actions/validatorManager/decodePairs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,wBAAgB,WAAW,CAAC,GAAG,SAAS,MAAM,EAAE,KAAK,SAAS,MAAM,EAClE,GAAG,EAAE,KAAK,EACV,OAAO,EAAE,GAAG,EACZ,SAAS,EAAE,KAAK,GACf,KAAK,CAAC;KAAG,CAAC,IAAI,GAAG,GAAG,OAAO;CAAE,GAAG;KAAG,CAAC,IAAI,KAAK,GAAG,MAAM;CAAE,CAAC,CAQ3D"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.js';
|
|
2
|
+
import type { Address, BlockHash } from '../../types/index.js';
|
|
3
|
+
export interface GetActiveValidatorsParameters {
|
|
4
|
+
at?: BlockHash;
|
|
5
|
+
}
|
|
6
|
+
export declare function getActiveValidators(client: Client, { at }?: GetActiveValidatorsParameters): Promise<Address[]>;
|
|
7
|
+
//# sourceMappingURL=getActiveValidators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getActiveValidators.d.ts","sourceRoot":"","sources":["../../../src/actions/validatorManager/getActiveValidators.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAG/D,MAAM,WAAW,6BAA6B;IAC5C,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,EAAE,GAAE,6BAAkC,GACzC,OAAO,CAAC,OAAO,EAAE,CAAC,CAGpB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.js';
|
|
2
|
+
import type { BlockHash } from '../../types/index.js';
|
|
3
|
+
import type { ValidatorSession } from './types.js';
|
|
4
|
+
export interface GetOffenceValidatorsParameters {
|
|
5
|
+
at?: BlockHash;
|
|
6
|
+
}
|
|
7
|
+
export declare function getOffenceValidators(client: Client, { at }?: GetOffenceValidatorsParameters): Promise<ValidatorSession[]>;
|
|
8
|
+
//# sourceMappingURL=getOffenceValidators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOffenceValidators.d.ts","sourceRoot":"","sources":["../../../src/actions/validatorManager/getOffenceValidators.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAInD,MAAM,WAAW,8BAA8B;IAC7C,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,EAAE,GAAE,8BAAmC,GAC1C,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAG7B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.js';
|
|
2
|
+
import type { BlockHash } from '../../types/index.js';
|
|
3
|
+
import type { ValidatorSession } from './types.js';
|
|
4
|
+
export interface GetOfflineValidatorsParameters {
|
|
5
|
+
at?: BlockHash;
|
|
6
|
+
}
|
|
7
|
+
export declare function getOfflineValidators(client: Client, { at }?: GetOfflineValidatorsParameters): Promise<ValidatorSession[]>;
|
|
8
|
+
//# sourceMappingURL=getOfflineValidators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOfflineValidators.d.ts","sourceRoot":"","sources":["../../../src/actions/validatorManager/getOfflineValidators.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAInD,MAAM,WAAW,8BAA8B;IAC7C,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,EAAE,GAAE,8BAAmC,GAC1C,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAG7B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.js';
|
|
2
|
+
import type { Address, BlockHash } from '../../types/index.js';
|
|
3
|
+
export interface GetReputationForAccountParameters {
|
|
4
|
+
account: Address;
|
|
5
|
+
at?: BlockHash;
|
|
6
|
+
}
|
|
7
|
+
export declare function getReputationForAccount(client: Client, { account, at }: GetReputationForAccountParameters): Promise<number>;
|
|
8
|
+
//# sourceMappingURL=getReputationForAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getReputationForAccount.d.ts","sourceRoot":"","sources":["../../../src/actions/validatorManager/getReputationForAccount.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAG/D,MAAM,WAAW,iCAAiC;IAChD,OAAO,EAAE,OAAO,CAAC;IACjB,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,MAAM,EACd,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,iCAAiC,GACjD,OAAO,CAAC,MAAM,CAAC,CASjB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.js';
|
|
2
|
+
import type { Address, BlockHash } from '../../types/index.js';
|
|
3
|
+
export interface GetReputationPenaltyForParameters {
|
|
4
|
+
account: Address;
|
|
5
|
+
at?: BlockHash;
|
|
6
|
+
}
|
|
7
|
+
export declare function getReputationPenaltyFor(client: Client, { account, at }: GetReputationPenaltyForParameters): Promise<number>;
|
|
8
|
+
//# sourceMappingURL=getReputationPenaltyFor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getReputationPenaltyFor.d.ts","sourceRoot":"","sources":["../../../src/actions/validatorManager/getReputationPenaltyFor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAG/D,MAAM,WAAW,iCAAiC;IAChD,OAAO,EAAE,OAAO,CAAC;IACjB,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,MAAM,EACd,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,iCAAiC,GACjD,OAAO,CAAC,MAAM,CAAC,CASjB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.js';
|
|
2
|
+
import type { Address, BlockHash } from '../../types/index.js';
|
|
3
|
+
import type { AccountReputation } from './types.js';
|
|
4
|
+
export interface GetReputationsParameters {
|
|
5
|
+
accounts: Address[];
|
|
6
|
+
at?: BlockHash;
|
|
7
|
+
}
|
|
8
|
+
export declare function getReputations(client: Client, { accounts, at }: GetReputationsParameters): Promise<AccountReputation[]>;
|
|
9
|
+
//# sourceMappingURL=getReputations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getReputations.d.ts","sourceRoot":"","sources":["../../../src/actions/validatorManager/getReputations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAIpD,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,wBAAsB,cAAc,CAClC,MAAM,EAAE,MAAM,EACd,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,wBAAwB,GACzC,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAG9B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.js';
|
|
2
|
+
import type { Address, BlockHash } from '../../types/index.js';
|
|
3
|
+
export interface GetSelectedValidatorsParameters {
|
|
4
|
+
at?: BlockHash;
|
|
5
|
+
}
|
|
6
|
+
export declare function getSelectedValidators(client: Client, { at }?: GetSelectedValidatorsParameters): Promise<Address[]>;
|
|
7
|
+
//# sourceMappingURL=getSelectedValidators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSelectedValidators.d.ts","sourceRoot":"","sources":["../../../src/actions/validatorManager/getSelectedValidators.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAG/D,MAAM,WAAW,+BAA+B;IAC9C,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,EAAE,GAAE,+BAAoC,GAC3C,OAAO,CAAC,OAAO,EAAE,CAAC,CAGpB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Client } from '../../client/types.js';
|
|
2
|
+
import type { Address, BlockHash } from '../../types/index.js';
|
|
3
|
+
export interface GetValidatorCandidatesParameters {
|
|
4
|
+
at?: BlockHash;
|
|
5
|
+
}
|
|
6
|
+
export declare function getValidatorCandidates(client: Client, { at }?: GetValidatorCandidatesParameters): Promise<Address[]>;
|
|
7
|
+
//# sourceMappingURL=getValidatorCandidates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getValidatorCandidates.d.ts","sourceRoot":"","sources":["../../../src/actions/validatorManager/getValidatorCandidates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAG/D,MAAM,WAAW,gCAAgC;IAC/C,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB;AAED,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,EAAE,GAAE,gCAAqC,GAC5C,OAAO,CAAC,OAAO,EAAE,CAAC,CAGpB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { getActiveValidators } from './getActiveValidators.js';
|
|
2
|
+
export { getOffenceValidators } from './getOffenceValidators.js';
|
|
3
|
+
export { getOfflineValidators } from './getOfflineValidators.js';
|
|
4
|
+
export { getReputationForAccount } from './getReputationForAccount.js';
|
|
5
|
+
export { getReputationPenaltyFor } from './getReputationPenaltyFor.js';
|
|
6
|
+
export { getReputations } from './getReputations.js';
|
|
7
|
+
export { getSelectedValidators } from './getSelectedValidators.js';
|
|
8
|
+
export { getValidatorCandidates } from './getValidatorCandidates.js';
|
|
9
|
+
export type { AccountReputation, ValidatorSession } from './types.js';
|
|
10
|
+
export type { GetActiveValidatorsParameters } from './getActiveValidators.js';
|
|
11
|
+
export type { GetOffenceValidatorsParameters } from './getOffenceValidators.js';
|
|
12
|
+
export type { GetOfflineValidatorsParameters } from './getOfflineValidators.js';
|
|
13
|
+
export type { GetReputationForAccountParameters } from './getReputationForAccount.js';
|
|
14
|
+
export type { GetReputationPenaltyForParameters } from './getReputationPenaltyFor.js';
|
|
15
|
+
export type { GetReputationsParameters } from './getReputations.js';
|
|
16
|
+
export type { GetSelectedValidatorsParameters } from './getSelectedValidators.js';
|
|
17
|
+
export type { GetValidatorCandidatesParameters } from './getValidatorCandidates.js';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/actions/validatorManager/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACtE,YAAY,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAC9E,YAAY,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAChF,YAAY,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAChF,YAAY,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACtF,YAAY,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACtF,YAAY,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AACpE,YAAY,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAClF,YAAY,EAAE,gCAAgC,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/actions/validatorManager/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ChainDefinition {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
nativeCurrency: {
|
|
5
|
+
decimals: number;
|
|
6
|
+
name: string;
|
|
7
|
+
symbol: string;
|
|
8
|
+
};
|
|
9
|
+
rpcUrls: {
|
|
10
|
+
default: {
|
|
11
|
+
http: readonly string[];
|
|
12
|
+
webSocket?: readonly string[];
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
testnet?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare function defineChain<const chain extends ChainDefinition>(chain: chain): chain;
|
|
18
|
+
//# sourceMappingURL=defineChain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defineChain.d.ts","sourceRoot":"","sources":["../../src/chains/defineChain.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;YACxB,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;SAC/B,CAAC;KACH,CAAC;IACF,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,WAAW,CAAC,KAAK,CAAC,KAAK,SAAS,eAAe,EAAE,KAAK,EAAE,KAAK,GAAG,KAAK,CAEpF"}
|