Documentation ¶
Index ¶
- Constants
- Variables
- func ExplicitBigInt(v reflect.Value, depth int) string
- func ParseAccountFromEvent(e *parser.Event) (string, error)
- func ParseChallResultFromEvent(e *parser.Event) (string, bool, error)
- func ParseStringFromEvent(e *parser.Event) (string, error)
- func ParseTransferInfoFromEvent(e *parser.Event) (string, string, string, error)
- type ChainClient
- func (c *ChainClient) AuthorizeSpace(ossAccount string) (string, error)
- func (c *ChainClient) BuySpace(count uint32) (string, error)
- func (c *ChainClient) CertIdleSpace(idleSignInfo pattern.SpaceProofInfo, teeSignWithAcc, teeSign types.Bytes, ...) (string, error)
- func (c *ChainClient) ChainVersion() (string, error)
- func (c *ChainClient) ClaimRestoralNoExistOrder(puk []byte, rootHash, restoralFragmentHash string) (string, error)
- func (c *ChainClient) ClaimRestoralOrder(fragmentHash string) (string, error)
- func (c *ChainClient) ClaimRewards() (string, error)
- func (c *ChainClient) Close()
- func (c *ChainClient) CreateBucket(owner_pkey []byte, name string) (string, error)
- func (c *ChainClient) DecodeEventNameFromBlock(block uint64) ([]string, error)
- func (c *ChainClient) DecodeEventNameFromBlockhash(blockhash types.Hash) ([]string, error)
- func (c *ChainClient) DeleteBucket(owner_pkey []byte, name string) (string, error)
- func (c *ChainClient) DeleteFile(puk []byte, filehash []string) (string, []pattern.FileHash, error)
- func (c *ChainClient) ExitDeOSS() (string, error)
- func (c *ChainClient) ExitSminer(miner string) (string, error)
- func (c *ChainClient) ExpansionSpace(count uint32) (string, error)
- func (c *ChainClient) GenerateRestoralOrder(rootHash, fragmentHash string) (string, error)
- func (c *ChainClient) GenerateStorageOrder(roothash string, segment []pattern.SegmentDataInfo, owner []byte, ...) (string, error)
- func (c *ChainClient) GetChainState() bool
- func (c *ChainClient) GetCurrentRpcAddr() string
- func (c *ChainClient) GetKeyEvents() types.StorageKey
- func (c *ChainClient) GetMetadata() *types.Metadata
- func (c *ChainClient) GetNetworkEnv() string
- func (c *ChainClient) GetSDKName() string
- func (c *ChainClient) GetSignatureAcc() string
- func (c *ChainClient) GetSignatureAccPulickey() []byte
- func (c *ChainClient) GetSubstrateAPI() *gsrpc.SubstrateAPI
- func (c *ChainClient) GetTokenSymbol() string
- func (c *ChainClient) GetURI() string
- func (c *ChainClient) IncreaseDeclarationSpace(tibCount uint32) (string, error)
- func (c *ChainClient) IncreaseStakingAmount(miner string, tokens *big.Int) (string, error)
- func (c *ChainClient) IncreaseStorageNodeStakingAmount(miner string, token string) (string, error)
- func (c *ChainClient) InitExtrinsicsName() error
- func (c *ChainClient) NetListening() (bool, error)
- func (c *ChainClient) ParseBlockData(blocknumber uint64) (event.BlockData, error)
- func (c *ChainClient) QueryAccountInfo(puk []byte) (types.AccountInfo, error)
- func (c *ChainClient) QueryAccountInfoByAccount(acc string) (types.AccountInfo, error)
- func (c *ChainClient) QueryAllAccountInfoFromBlock(block int) ([]types.AccountInfo, error)
- func (c *ChainClient) QueryAllBucket(accountID []byte) ([]types.Bytes, error)
- func (c *ChainClient) QueryAllBucketString(accountID []byte) ([]string, error)
- func (c *ChainClient) QueryAllDeOSSInfo() ([]pattern.OssInfo, error)
- func (c *ChainClient) QueryAllDeOSSPeerId() ([]string, error)
- func (c *ChainClient) QueryAllSminerAccount() ([]types.AccountID, error)
- func (c *ChainClient) QueryAllSminerAccountByBlock(block int32) ([]types.AccountID, error)
- func (c *ChainClient) QueryAllTeeInfo() ([]pattern.TeeInfo, error)
- func (c *ChainClient) QueryAllTeeWorkerMap() ([]pattern.TeeWorkerInfo, error)
- func (c *ChainClient) QueryAllValidatorCount(block int) (uint32, error)
- func (c *ChainClient) QueryAuthorizedAccountIDs(accountID []byte) ([]types.AccountID, error)
- func (c *ChainClient) QueryAuthorizedAccounts(accountID []byte) ([]string, error)
- func (c *ChainClient) QueryBlockHeight(hash string) (uint32, error)
- func (c *ChainClient) QueryBondedList(block int32) ([]types.AccountID, error)
- func (c *ChainClient) QueryBucketInfo(accountID []byte, bucketname string) (pattern.BucketInfo, error)
- func (c *ChainClient) QueryChallengeInfo(accountID []byte) (bool, pattern.ChallengeInfo, error)
- func (c *ChainClient) QueryChallengeVerifyExpiration() (uint32, error)
- func (c *ChainClient) QueryCurrentEra(block int) (uint32, error)
- func (c *ChainClient) QueryDeOSSInfo(accountID []byte) (pattern.OssInfo, error)
- func (c *ChainClient) QueryEraValidatorReward(era uint32) (string, error)
- func (c *ChainClient) QueryErasTotalStake(era uint32, block int) (string, error)
- func (c *ChainClient) QueryExpenders() (pattern.ExpendersInfo, error)
- func (c *ChainClient) QueryFileMetadata(fid string) (pattern.FileMetadata, error)
- func (c *ChainClient) QueryFileMetadataByBlock(fid string, block uint64) (pattern.FileMetadata, error)
- func (c *ChainClient) QueryMasterPublicKey() ([]byte, error)
- func (c *ChainClient) QueryNodeSynchronizationSt() (bool, error)
- func (c *ChainClient) QueryNominatorCount(block int) (uint32, error)
- func (c *ChainClient) QueryNominatorsLatest() ([]pattern.StakingNominations, error)
- func (c *ChainClient) QueryPendingReplacements(puk []byte) (types.U128, error)
- func (c *ChainClient) QueryPurchasedSpace() (uint64, error)
- func (c *ChainClient) QueryRestoralOrder(fragmentHash string) (pattern.RestoralOrderInfo, error)
- func (c *ChainClient) QueryRestoralOrderList() ([]pattern.RestoralOrderInfo, error)
- func (c *ChainClient) QueryRestoralTarget(puk []byte) (pattern.RestoralTargetInfo, error)
- func (c *ChainClient) QueryRestoralTargetList() ([]pattern.RestoralTargetInfo, error)
- func (c *ChainClient) QueryRewards(puk []byte) (pattern.RewardsType, error)
- func (c *ChainClient) QueryRewardsMap(puk []byte) (pattern.MinerReward, error)
- func (c *ChainClient) QuerySpacePricePerGib() (string, error)
- func (c *ChainClient) QueryStakingEraRewardPoints(era uint32) (pattern.StakingEraRewardPoints, error)
- func (c *ChainClient) QueryStorageMiner(puk []byte) (pattern.MinerInfo, error)
- func (c *ChainClient) QueryStorageMinerByAccount(account string) (pattern.MinerInfo, error)
- func (c *ChainClient) QueryStorageMinerByBlock(puk []byte, block int32) (pattern.MinerInfo, error)
- func (c *ChainClient) QueryStorageMinerStakingStartBlock(puk []byte) (types.U32, error)
- func (c *ChainClient) QueryStorageOrder(fid string) (pattern.StorageOrder, error)
- func (c *ChainClient) QueryTeeInfo(puk pattern.WorkerPublicKey) (pattern.TeeInfo, error)
- func (c *ChainClient) QueryTeeWorkEndpoint(workPuk pattern.WorkerPublicKey) (string, error)
- func (c *ChainClient) QueryTeeWorker(puk pattern.WorkerPublicKey) (pattern.TeeWorkerInfo, error)
- func (c *ChainClient) QueryTotalIdleSpace() (uint64, error)
- func (c *ChainClient) QueryTotalIssuance(block int) (string, error)
- func (c *ChainClient) QueryTotalServiceSpace() (uint64, error)
- func (c *ChainClient) QueryUserSpaceInfo(puk []byte) (pattern.UserSpaceInfo, error)
- func (c *ChainClient) QueryUserSpaceSt(puk []byte) (pattern.UserSpaceSt, error)
- func (c *ChainClient) QueryValidatorCommission(account string, block int) (uint8, error)
- func (c *ChainClient) QueryValidatorsCount(block int) (uint32, error)
- func (c *ChainClient) QueryWorkerAddedAt(workPuk pattern.WorkerPublicKey) (types.U32, error)
- func (c *ChainClient) ReconnectRPC() error
- func (c *ChainClient) RegisterDeOSS(peerId []byte, domain string) (string, error)
- func (c *ChainClient) RegisterSminer(earnings string, peerId []byte, pledge uint64, tib_count uint32) (string, error)
- func (c *ChainClient) RegisterSminerAssignStaking(beneficiaryAcc string, peerId []byte, stakingAcc string, tib_count uint32) (string, error)
- func (c *ChainClient) RegisterSminerPOISKey(poisKey pattern.PoISKeyInfo, teeSignWithAcc, teeSign types.Bytes, ...) (string, error)
- func (c *ChainClient) RenewalSpace(days uint32) (string, error)
- func (c *ChainClient) ReplaceIdleSpace(idleSignInfo pattern.SpaceProofInfo, teeSignWithAcc, teeSign types.Bytes, ...) (string, error)
- func (c *ChainClient) ReportFile(index uint8, roothash string) (string, error)
- func (c *ChainClient) ReportTagCalculated(teeSig types.Bytes, tagSigInfo pattern.TagSigInfo) (string, error)
- func (c *ChainClient) RestoralComplete(restoralFragmentHash string) (string, error)
- func (c *ChainClient) RetrieveAllEventFromBlock(blockhash types.Hash) ([]string, map[string][]string, error)
- func (c *ChainClient) RetrieveAllEvent_FileBank_DeleteFile(blockhash types.Hash) ([]event.AllDeleteFileEvent, error)
- func (c *ChainClient) RetrieveAllEvent_FileBank_StorageCompleted(blockhash types.Hash) ([]string, error)
- func (c *ChainClient) RetrieveAllEvent_FileBank_UploadDeclaration(blockhash types.Hash) ([]event.AllUploadDeclarationEvent, error)
- func (c *ChainClient) RetrieveBlock(blocknumber uint64) ([]string, []event.ExtrinsicsInfo, []event.TransferInfo, string, string, string, ...)
- func (c *ChainClient) RetrieveBlockAndAll(blocknumber uint64) ([]string, []event.ExtrinsicsInfo, []event.TransferInfo, []string, []string, ...)
- func (c *ChainClient) RetrieveEvent_Audit_SubmitIdleProof(blockhash types.Hash) (event.Event_SubmitIdleProof, error)
- func (c *ChainClient) RetrieveEvent_Audit_SubmitIdleVerifyResult(blockhash types.Hash) (event.Event_SubmitIdleVerifyResult, error)
- func (c *ChainClient) RetrieveEvent_Audit_SubmitServiceProof(blockhash types.Hash) (event.Event_SubmitServiceProof, error)
- func (c *ChainClient) RetrieveEvent_Audit_SubmitServiceVerifyResult(blockhash types.Hash) (event.Event_SubmitServiceVerifyResult, error)
- func (c *ChainClient) RetrieveEvent_Balances_Transfer(blockhash types.Hash) (types.EventBalancesTransfer, error)
- func (c *ChainClient) RetrieveEvent_FileBank_CalculateReport(blockhash types.Hash) (event.Event_CalculateReport, error)
- func (c *ChainClient) RetrieveEvent_FileBank_ClaimRestoralOrder(blockhash types.Hash) (event.Event_ClaimRestoralOrder, error)
- func (c *ChainClient) RetrieveEvent_FileBank_CreateBucket(blockhash types.Hash) (event.Event_CreateBucket, error)
- func (c *ChainClient) RetrieveEvent_FileBank_DeleteBucket(blockhash types.Hash) (event.Event_DeleteBucket, error)
- func (c *ChainClient) RetrieveEvent_FileBank_DeleteFile(blockhash types.Hash) (event.Event_DeleteFile, error)
- func (c *ChainClient) RetrieveEvent_FileBank_GenRestoralOrder(blockhash types.Hash) (event.Event_GenerateRestoralOrder, error)
- func (c *ChainClient) RetrieveEvent_FileBank_IdleSpaceCert(blockhash types.Hash) (event.Event_IdleSpaceCert, error)
- func (c *ChainClient) RetrieveEvent_FileBank_RecoveryCompleted(blockhash types.Hash) (event.Event_RecoveryCompleted, error)
- func (c *ChainClient) RetrieveEvent_FileBank_ReplaceIdleSpace(blockhash types.Hash) (event.Event_ReplaceIdleSpace, error)
- func (c *ChainClient) RetrieveEvent_FileBank_TransferReport(blockhash types.Hash) (event.Event_TransferReport, error)
- func (c *ChainClient) RetrieveEvent_FileBank_UploadDeclaration(blockhash types.Hash) (event.Event_UploadDeclaration, error)
- func (c *ChainClient) RetrieveEvent_Oss_Authorize(blockhash types.Hash) (event.Event_Authorize, error)
- func (c *ChainClient) RetrieveEvent_Oss_CancelAuthorize(blockhash types.Hash) (event.Event_CancelAuthorize, error)
- func (c *ChainClient) RetrieveEvent_Oss_OssDestroy(blockhash types.Hash) (event.Event_OssDestroy, error)
- func (c *ChainClient) RetrieveEvent_Oss_OssRegister(blockhash types.Hash) (event.Event_OssRegister, error)
- func (c *ChainClient) RetrieveEvent_Oss_OssUpdate(blockhash types.Hash) (event.Event_OssUpdate, error)
- func (c *ChainClient) RetrieveEvent_Sminer_IncreaseCollateral(blockhash types.Hash) (event.Event_IncreaseCollateral, error)
- func (c *ChainClient) RetrieveEvent_Sminer_IncreaseDeclarationSpace(blockhash types.Hash) (event.Event_IncreaseDeclarationSpace, error)
- func (c *ChainClient) RetrieveEvent_Sminer_MinerExitPrep(blockhash types.Hash) (event.Event_MinerExitPrep, error)
- func (c *ChainClient) RetrieveEvent_Sminer_Receive(blockhash types.Hash) (event.Event_Receive, error)
- func (c *ChainClient) RetrieveEvent_Sminer_RegisterPoisKey(blockhash types.Hash) (event.Event_RegisterPoisKey, error)
- func (c *ChainClient) RetrieveEvent_Sminer_Registered(blockhash types.Hash) (event.Event_Registered, error)
- func (c *ChainClient) RetrieveEvent_Sminer_UpdataBeneficiary(blockhash types.Hash) (event.Event_UpdateBeneficiary, error)
- func (c *ChainClient) RetrieveEvent_Sminer_UpdataIp(blockhash types.Hash) (event.Event_UpdatePeerId, error)
- func (c *ChainClient) RetrieveEvent_Sminer_Withdraw(blockhash types.Hash) (event.Event_Withdraw, error)
- func (c *ChainClient) RetrieveEvent_StorageHandler_BuySpace(blockhash types.Hash) (event.Event_BuySpace, error)
- func (c *ChainClient) RetrieveEvent_StorageHandler_ExpansionSpace(blockhash types.Hash) (event.Event_ExpansionSpace, error)
- func (c *ChainClient) RetrieveEvent_StorageHandler_RenewalSpace(blockhash types.Hash) (event.Event_RenewalSpace, error)
- func (c *ChainClient) RetrieveFile(url, fid, savepath string) error
- func (c *ChainClient) RetrieveObject(url, fid string) (io.ReadCloser, error)
- func (c *ChainClient) SetChainState(state bool)
- func (c *ChainClient) SetSDKName(name string)
- func (c *ChainClient) Sign(msg []byte) ([]byte, error)
- func (c *ChainClient) SplitFile(fpath, chunksDir string, chunkSize int64, filling bool) (int64, int, error)
- func (c *ChainClient) SplitFileWithstandardSize(fpath, chunksDir string) (int64, int, error)
- func (c *ChainClient) StoreFile(url, file, bucket string) (string, error)
- func (c *ChainClient) StoreObject(url string, reader io.Reader, bucket string) (string, error)
- func (c *ChainClient) SubmitFileReport(index types.U8, roothash pattern.FileHash) (string, error)
- func (c *ChainClient) SubmitIdleProof(idleProof []types.U8) (string, error)
- func (c *ChainClient) SubmitIdleProofResult(totalProofHash []types.U8, front, rear types.U64, ...) (string, error)
- func (c *ChainClient) SubmitServiceProof(serviceProof []types.U8) (string, error)
- func (c *ChainClient) SubmitServiceProofResult(result types.Bool, sign types.Bytes, bloomFilter pattern.BloomFilter, ...) (string, error)
- func (c *ChainClient) SyncState() (pattern.SysSyncState, error)
- func (c *ChainClient) SysChain() (string, error)
- func (c *ChainClient) SysProperties() (pattern.SysProperties, error)
- func (c *ChainClient) TransferToken(dest string, amount uint64) (string, string, error)
- func (c *ChainClient) UnAuthorizeSpace(oss_acc string) (string, error)
- func (c *ChainClient) UpdateDeOSS(peerId string, domain string) (string, error)
- func (c *ChainClient) UpdateEarningsAcc(puk []byte) (string, error)
- func (c *ChainClient) UpdateEarningsAccount(earnings string) (string, error)
- func (c *ChainClient) UpdateSminerPeerId(peerid pattern.PeerId) (string, error)
- func (c *ChainClient) UploadDeclaration(filehash string, dealinfo []pattern.SegmentList, user pattern.UserBrief, ...) (string, error)
- func (c *ChainClient) UploadFileChunk(url, chunksDir, bucket, fname string, chunksNum, chunksId int, totalSize int64) (string, error)
- func (c *ChainClient) UploadFileChunks(url, chunksDir, bucket, fname string, chunksNum int, totalSize int64) (string, error)
- func (c *ChainClient) Verify(msg []byte, sig []byte) (bool, error)
- func (c *ChainClient) VerifyPolkaSignatureWithBase58(account, msg, signature string) (bool, error)
- func (c *ChainClient) VerifyPolkaSignatureWithJS(account, msg, signature string) (bool, error)
- func (c *ChainClient) Withdraw() (string, error)
Constants ¶
View Source
const ( // Assets ExtName_Assets_approve_transfer = "Assets.approve_transfer" ExtName_Assets_block = "Assets.block" ExtName_Assets_burn = "Assets.burn" ExtName_Assets_cancel_approval = "Assets.cancel_approval" ExtName_Assets_clear_metadata = "Assets.clear_metadata" ExtName_Assets_create = "Assets.create" ExtName_Assets_destroy_accounts = "Assets.destroy_accounts" ExtName_Assets_destroy_approvals = "Assets.destroy_approvals" ExtName_Assets_finish_destroy = "Assets.finish_destroy" ExtName_Assets_force_asset_status = "Assets.force_asset_status" ExtName_Assets_force_cancel_approval = "Assets.force_cancel_approval" ExtName_Assets_force_clear_metadata = "Assets.force_clear_metadata" ExtName_Assets_force_create = "Assets.force_create" ExtName_Assets_force_set_metadata = "Assets.force_set_metadata" ExtName_Assets_force_transfer = "Assets.force_transfer" ExtName_Assets_freeze = "Assets.freeze" ExtName_Assets_freeze_asset = "Assets.freeze_asset" ExtName_Assets_mint = "Assets.mint" ExtName_Assets_refund = "Assets.refund" ExtName_Assets_refund_other = "Assets.refund_other" ExtName_Assets_set_metadata = "Assets.set_metadata" ExtName_Assets_set_min_balance = "Assets.set_min_balance" ExtName_Assets_set_team = "Assets.set_team" ExtName_Assets_start_destroy = "Assets.start_destroy" ExtName_Assets_thaw = "Assets.thaw" ExtName_Assets_thaw_asset = "Assets.thaw_asset" ExtName_Assets_touch = "Assets.touch" ExtName_Assets_touch_other = "Assets.touch_other" ExtName_Assets_transfer = "Assets.transfer" ExtName_Assets_transfer_approved = "Assets.transfer_approved" ExtName_Assets_transfer_keep_alive = "Assets.transfer_keep_alive" // Audit ExtName_Audit_submit_idle_proof = "Audit.submit_idle_proof" ExtName_Audit_submit_service_proof = "Audit.submit_service_proof" ExtName_Audit_submit_verify_idle_result = "Audit.submit_verify_idle_result" ExtName_Audit_submit_verify_service_result = "Audit.submit_verify_service_result" ExtName_Audit_test_update_clear_slip = "Audit.test_update_clear_slip" ExtName_Audit_test_update_verify_slip = "Audit.test_update_verify_slip" ExtName_Audit_update_counted_clear = "Audit.update_counted_clear" // Babe ExtName_Babe_plan_config_change = "Babe.plan_config_change" ExtName_Babe_report_equivocation = "Babe.report_equivocation" ExtName_Babe_report_equivocation_unsigned = "Babe.report_equivocation_unsigned" // Balances ExtName_Balances_force_set_balance = "Balances.force_set_balance" ExtName_Balances_force_transfer = "Balances.force_transfer" ExtName_Balances_force_unreserve = "Balances.force_unreserve" ExtName_Balances_set_balance_deprecated = "Balances.set_balance_deprecated" ExtName_Balances_transfer = "Balances.transfer" ExtName_Balances_transfer_all = "Balances.transfer_all" ExtName_Balances_transfer_allow_death = "Balances.transfer_allow_death" ExtName_Balances_transferKeepAlive = "Balances.transfer_keep_alive" ExtName_Balances_upgrade_accounts = "Balances.upgrade_accounts" // BaseFee ExtName_BaseFee_set_base_fee_per_gas = "BaseFee.set_base_fee_per_gas" ExtName_BaseFee_set_elasticity = "BaseFee.set_elasticity" // Bounties ExtName_Bounties_accept_curator = "Bounties.accept_curator" ExtName_Bounties_approve_bounty = "Bounties.approve_bounty" ExtName_Bounties_award_bounty = "Bounties.award_bounty" ExtName_Bounties_claim_bounty = "Bounties.claim_bounty" ExtName_Bounties_close_bounty = "Bounties.close_bounty" ExtName_Bounties_extend_bounty_expiry = "Bounties.extend_bounty_expiry" ExtName_Bounties_propose_bounty = "Bounties.propose_bounty" ExtName_Bounties_propose_curator = "Bounties.propose_curator" ExtName_Bounties_unassign_curator = "Bounties.unassign_curator" // Cacher ExtName_Cacher_logout = "Cacher.logout" ExtName_Cacher_pay = "Cacher.pay" ExtName_Cacher_register = "Cacher.register" ExtName_Cacher_update = "Cacher.update" // CesMq ExtName_CesMq_force_push_pallet_message = "CesMq.force_push_pallet_message" ExtName_CesMq_push_message = "CesMq.push_message" ExtName_CesMq_sync_offchain_message = "CesMq.sync_offchain_message" // CessTreasury ExtName_CessTreasury_pid_burn_funds = "CessTreasury.pid_burn_funds" ExtName_CessTreasury_pid_send_funds = "CessTreasury.pid_send_funds" ExtName_CessTreasury_send_funds_to_pid = "CessTreasury.send_funds_to_pid" ExtName_CessTreasury_send_funds_to_sid = "CessTreasury.send_funds_to_sid" ExtName_CessTreasury_sid_burn_funds = "CessTreasury.sid_burn_funds" ExtName_CessTreasury_sid_send_funds = "CessTreasury.sid_send_funds" // ChildBounties ExtName_ChildBounties_accept_curator = "ChildBounties.accept_curator" ExtName_ChildBounties_add_child_bounty = "ChildBounties.add_child_bounty" ExtName_ChildBounties_award_child_bounty = "ChildBounties.award_child_bounty" ExtName_ChildBounties_claim_child_bounty = "ChildBounties.claim_child_bounty" ExtName_ChildBounties_close_child_bounty = "ChildBounties.close_child_bounty" ExtName_ChildBounties_propose_curator = "ChildBounties.propose_curator" ExtName_ChildBounties_unassign_curator = "ChildBounties.unassign_curator" // Contracts ExtName_Contracts_call = "Contracts.call" ExtName_Contracts_call_old_weight = "Contracts.call_old_weight" ExtName_Contracts_instantiate = "Contracts.instantiate" ExtName_Contracts_instantiate_old_weight = "Contracts.instantiate_old_weight" ExtName_Contracts_instantiate_with_code = "Contracts.instantiate_with_code" ExtName_Contracts_instantiate_with_code_old_weight = "Contracts.instantiate_with_code_old_weight" ExtName_Contracts_migrate = "Contracts.migrate" ExtName_Contracts_remove_code = "Contracts.remove_code" ExtName_Contracts_set_code = "Contracts.set_code" ExtName_Contracts_upload_code = "Contracts.upload_code" // Council ExtName_Council_close = "Council.close" ExtName_Council_disapprove_proposal = "Council.disapprove_proposal" ExtName_Council_execute = "Council.execute" ExtName_Council_propose = "Council.propose" ExtName_Council_set_members = "Council.set_members" ExtName_Council_vote = "Council.vote" // DynamicFee ExtName_DynamicFee_note_min_gas_price_target = "DynamicFee.note_min_gas_price_target" // ElectionProviderMultiPhase ExtName_ElectionProviderMultiPhase_governance_fallback = "ElectionProviderMultiPhase.governance_fallback" ExtName_ElectionProviderMultiPhase_set_emergency_election_result = "ElectionProviderMultiPhase.set_emergency_election_result" ExtName_ElectionProviderMultiPhase_set_minimum_untrusted_score = "ElectionProviderMultiPhase.set_minimum_untrusted_score" ExtName_ElectionProviderMultiPhase_submit = "ElectionProviderMultiPhase.submit" ExtName_ElectionProviderMultiPhase_submit_unsigned = "ElectionProviderMultiPhase.submit_unsigned" // Ethereum ExtName_Ethereum_transact = "Ethereum.transact" // EVM ExtName_Evm_call = "EVM.call" ExtName_Evm_create = "EVM.create" ExtName_Evm_create2 = "EVM.create2" ExtName_Evm_withdraw = "EVM.withdraw" // EvmAccountMapping ExtName_EvmAccountMapping_meta_call = "EvmAccountMapping.meta_call" // FileBank ExtName_FileBank_calculate_report = "FileBank.calculate_report" ExtName_FileBank_cert_idle_space = "FileBank.cert_idle_space" ExtName_FileBank_claim_restoral_noexist_order = "FileBank.claim_restoral_noexist_order" ExtName_FileBank_claim_restoral_order = "FileBank.claim_restoral_order" ExtName_FileBank_create_bucket = "FileBank.create_bucket" ExtName_FileBank_delete_bucket = "FileBank.delete_bucket" ExtName_FileBank_delete_file = "FileBank.delete_file" ExtName_FileBank_generate_restoral_order = "FileBank.generate_restoral_order" ExtName_FileBank_ownership_transfer = "FileBank.ownership_transfer" ExtName_FileBank_replace_idle_space = "FileBank.replace_idle_space" ExtName_FileBank_restoral_order_complete = "FileBank.restoral_order_complete" ExtName_FileBank_root_clear_file = "FileBank.root_clear_file" ExtName_FileBank_transfer_report = "FileBank.transfer_report" ExtName_FileBank_upload_declaration = "FileBank.upload_declaration" // Grandpa ExtName_Grandpa_note_stalled = "Grandpa.note_stalled" ExtName_Grandpa_report_equivocation = "Grandpa.report_equivocation" ExtName_Grandpa_report_equivocation_unsigned = "Grandpa.report_equivocation_unsigned" // ImOnline ExtName_ImOnline_heartbeat = "ImOnline.heartbeat" // Indices ExtName_Indices_claim = "Indices.claim" ExtName_Indices_force_transfer = "Indices.force_transfer" ExtName_Indices_free = "Indices.free" ExtName_Indices_freeze = "Indices.freeze" ExtName_Indices_transfer = "Indices.transfer" // Multisig ExtName_Multisig_approve_as_multi = "Multisig.approve_as_multi" ExtName_Multisig_as_multi = "Multisig.as_multi" ExtName_Multisig_as_multi_threshold1 = "Multisig.as_multi_threshold_1" ExtName_Multisig_cancel_as_multi = "Multisig.cancel_as_multi" // Oss ExtName_Oss_destroy = "Oss.destroy" ExtName_Oss_register = "Oss.register" ExtName_Oss_update = "Oss.update" // Preimage ExtName_Preimage_note_preimage = "Preimage.note_preimage" ExtName_Preimage_request_preimage = "Preimage.request_preimage" ExtName_Preimage_unnote_preimage = "Preimage.unnote_preimage" ExtName_Preimage_unrequest_preimage = "Preimage.unrequest_preimage" // Proxy ExtName_Proxy_add_proxy = "Proxy.add_proxy" ExtName_Proxy_announce = "Proxy.announce" ExtName_Proxy_create_pure = "Proxy.create_pure" ExtName_Proxy_kill_pure = "Proxy.kill_pure" ExtName_Proxy_proxy = "Proxy.proxy" ExtName_Proxy_proxy_announced = "Proxy.proxy_announced" ExtName_Proxy_reject_announcement = "Proxy.reject_announcement" ExtName_Proxy_remove_announcement = "Proxy.remove_announcement" ExtName_Proxy_remove_proxies = "Proxy.remove_proxies" ExtName_Proxy_remove_proxy = "Proxy.remove_proxy" // Scheduler ExtName_Scheduler_cancel = "Scheduler.cancel" ExtName_Scheduler_cancel_named = "Scheduler.cancel_named" ExtName_Scheduler_schedule = "Scheduler.schedule" ExtName_Scheduler_schedule_after = "Scheduler.schedule_after" ExtName_Scheduler_schedule_named = "Scheduler.schedule_named" ExtName_Scheduler_schedule_named_after = "Scheduler.schedule_named_after" // Session ExtName_Session_purge_keys = "Session.purge_keys" ExtName_Session_set_keys = "Session.set_keys" // Sminer ExtName_Sminer_clear_miner_service = "Sminer.clear_miner_service" ExtName_Sminer_faucet = "Sminer.faucet" ExtName_Sminer_faucet_top_up = "Sminer.faucet_top_up" ExtName_Sminer_increase_collateral = "Sminer.increase_collateral" ExtName_Sminer_increase_declaration_space = "Sminer.increase_declaration_space" ExtName_Sminer_miner_exit = "Sminer.miner_exit" ExtName_Sminer_miner_exit_prep = "Sminer.miner_exit_prep" ExtName_Sminer_miner_withdraw = "Sminer.miner_withdraw" ExtName_Sminer_receive_reward = "Sminer.receive_reward" ExtName_Sminer_register_pois_key = "Sminer.register_pois_key" ExtName_Sminer_regnstk = "Sminer.regnstk" ExtName_Sminer_regnstk_assign_staking = "Sminer.regnstk_assign_staking" ExtName_Sminer_update_beneficiary = "Sminer.update_beneficiary" ExtName_Sminer_update_expender = "Sminer.update_expender" ExtName_Sminer_update_peer_id = "Sminer.update_peer_id" // Staking ExtName_Staking_bond = "Staking.bond" ExtName_Staking_bond_extra = "Staking.bond_extra" ExtName_Staking_cancel_deferred_slash = "Staking.cancel_deferred_slash" ExtName_Staking_chill = "Staking.chill" ExtName_Staking_chill_other = "Staking.chill_other" ExtName_Staking_force_apply_min_commission = "Staking.force_apply_min_commission" ExtName_Staking_force_new_era = "Staking.force_new_era" ExtName_Staking_force_new_era_always = "Staking.force_new_era_always" ExtName_Staking_force_no_eras = "Staking.force_no_eras" ExtName_Staking_force_unstake = "Staking.force_unstake" ExtName_Staking_increase_validator_count = "Staking.increase_validator_count" ExtName_Staking_kick = "Staking.kick" ExtName_Staking_nominate = "Staking.nominate" ExtName_Staking_payout_stakers = "Staking.payout_stakers" ExtName_Staking_reap_stash = "Staking.reap_stash" ExtName_Staking_rebond = "Staking.rebond" ExtName_Staking_scale_validator_count = "Staking.scale_validator_count" ExtName_Staking_set_controller = "Staking.set_controller" ExtName_Staking_set_invulnerables = "Staking.set_invulnerables" ExtName_Staking_set_min_commission = "Staking.set_min_commission" ExtName_Staking_set_payee = "Staking.set_payee" ExtName_Staking_set_staking_configs = "Staking.set_staking_configs" ExtName_Staking_set_validator_count = "Staking.set_validator_count" ExtName_Staking_unbond = "Staking.unbond" ExtName_Staking_validate = "Staking.validate" ExtName_Staking_withdraw_unbonded = "Staking.withdraw_unbonded" // StorageHandler ExtName_StorageHandler_buySpace = "StorageHandler.buy_space" ExtName_StorageHandler_clear_service_space = "StorageHandler.clear_service_space" ExtName_StorageHandler_clear_user_used_space = "StorageHandler.clear_user_used_space" ExtName_StorageHandler_create_order = "StorageHandler.create_order" ExtName_StorageHandler_exec_order = "StorageHandler.exec_order" ExtName_StorageHandler_expansion_space = "StorageHandler.expansion_space" ExtName_StorageHandler_renewal_space = "StorageHandler.renewal_space" ExtName_StorageHandler_update_price = "StorageHandler.update_price" ExtName_StorageHandler_update_user_life = "StorageHandler.update_user_life" // Sudo ExtName_Sudo_set_key = "Sudo.set_key" ExtName_Sudo_sudo = "Sudo.sudo" ExtName_Sudo_sudo_as = "Sudo.sudo_as" ExtName_Sudo_sudo_unchecked_weight = "Sudo.sudo_unchecked_weight" // System ExtName_System_kill_prefix = "System.kill_prefix" ExtName_System_kill_storage = "System.kill_storage" ExtName_System_remark = "System.remark" ExtName_System_remark_with_event = "System.remark_with_event" ExtName_System_set_code = "System.set_code" ExtName_System_set_code_without_checks = "System.set_code_without_checks" ExtName_System_set_heap_pages = "System.set_heap_pages" ExtName_System_set_storage = "System.set_storage" // TechnicalCommittee ExtName_TechnicalCommittee_close = "TechnicalCommittee.close" ExtName_TechnicalCommittee_disapprove_proposal = "TechnicalCommittee.disapprove_proposal" ExtName_TechnicalCommittee_execute = "TechnicalCommittee.execute" ExtName_TechnicalCommittee_propose = "TechnicalCommittee.propose" ExtName_TechnicalCommittee_set_members = "TechnicalCommittee.set_members" ExtName_TechnicalCommittee_vote = "TechnicalCommittee.vote" // TechnicalMembership ExtName_TechnicalMembership_add_member = "TechnicalMembership.add_member" ExtName_TechnicalMembership_change_key = "TechnicalMembership.change_key" ExtName_TechnicalMembership_clear_prime = "TechnicalMembership.clear_prime" ExtName_TechnicalMembership_remove_member = "TechnicalMembership.remove_member" ExtName_TechnicalMembership_reset_members = "TechnicalMembership.reset_members" ExtName_TechnicalMembership_set_prime = "TechnicalMembership.set_prime" ExtName_TechnicalMembership_swap_member = "TechnicalMembership.swap_member" // TeeWorker ExtName_TeeWorker_add_ceseal = "TeeWorker.add_ceseal" ExtName_TeeWorker_force_register_worker = "TeeWorker.force_register_worker" ExtName_TeeWorker_register_keyfairy = "TeeWorker.register_keyfairy" ExtName_TeeWorker_register_worker = "TeeWorker.register_worker" ExtName_TeeWorker_register_worker_v2 = "TeeWorker.register_worker_v2" ExtName_TeeWorker_remove_ceseal = "TeeWorker.remove_ceseal" ExtName_TeeWorker_rotate_master_key = "TeeWorker.rotate_master_key" ExtName_TeeWorker_set_minimum_ceseal_version = "TeeWorker.set_minimum_ceseal_version" ExtName_TeeWorker_unregister_keyfairy = "TeeWorker.unregister_keyfairy" ExtName_TeeWorker_update_worker_endpoint = "TeeWorker.update_worker_endpoint" // Timestamp ExtName_Timestamp_set = "Timestamp.set" // Treasury ExtName_Treasury_approve_proposal = "Treasury.approve_proposal" ExtName_Treasury_propose_spend = "Treasury.propose_spend" ExtName_Treasury_reject_proposal = "Treasury.reject_proposal" ExtName_Treasury_remove_approval = "Treasury.remove_approval" ExtName_Treasury_spend = "Treasury.spend" // VoterList ExtName_VoterList_put_in_front_of = "VoterList.put_in_front_of" ExtName_VoterList_put_in_front_of_other = "VoterList.put_in_front_of_other" ExtName_VoterList_rebag = "VoterList.rebag" )
Variables ¶
View Source
var ExtrinsicsName map[types.CallIndex]string
Functions ¶
func ParseAccountFromEvent ¶ added in v0.5.1
func ParseChallResultFromEvent ¶ added in v0.5.1
func ParseStringFromEvent ¶ added in v0.5.1
Types ¶
type ChainClient ¶ added in v0.5.1
type ChainClient struct {
// contains filtered or unexported fields
}
func NewChainClient ¶ added in v0.3.10
func NewEmptyChainClient ¶ added in v0.5.1
func NewEmptyChainClient() *ChainClient
func (*ChainClient) AuthorizeSpace ¶ added in v0.5.1
func (c *ChainClient) AuthorizeSpace(ossAccount string) (string, error)
func (*ChainClient) BuySpace ¶ added in v0.5.1
func (c *ChainClient) BuySpace(count uint32) (string, error)
func (*ChainClient) CertIdleSpace ¶ added in v0.5.1
func (c *ChainClient) CertIdleSpace(idleSignInfo pattern.SpaceProofInfo, teeSignWithAcc, teeSign types.Bytes, teePuk pattern.WorkerPublicKey) (string, error)
func (*ChainClient) ChainVersion ¶ added in v0.5.1
func (c *ChainClient) ChainVersion() (string, error)
func (*ChainClient) ClaimRestoralNoExistOrder ¶ added in v0.5.1
func (c *ChainClient) ClaimRestoralNoExistOrder(puk []byte, rootHash, restoralFragmentHash string) (string, error)
func (*ChainClient) ClaimRestoralOrder ¶ added in v0.5.1
func (c *ChainClient) ClaimRestoralOrder(fragmentHash string) (string, error)
func (*ChainClient) ClaimRewards ¶ added in v0.5.1
func (c *ChainClient) ClaimRewards() (string, error)
func (*ChainClient) Close ¶ added in v0.5.1
func (c *ChainClient) Close()
func (*ChainClient) CreateBucket ¶ added in v0.5.1
func (c *ChainClient) CreateBucket(owner_pkey []byte, name string) (string, error)
func (*ChainClient) DecodeEventNameFromBlock ¶ added in v0.5.1
func (c *ChainClient) DecodeEventNameFromBlock(block uint64) ([]string, error)
func (*ChainClient) DecodeEventNameFromBlockhash ¶ added in v0.5.1
func (c *ChainClient) DecodeEventNameFromBlockhash(blockhash types.Hash) ([]string, error)
func (*ChainClient) DeleteBucket ¶ added in v0.5.1
func (c *ChainClient) DeleteBucket(owner_pkey []byte, name string) (string, error)
func (*ChainClient) DeleteFile ¶ added in v0.5.1
func (*ChainClient) ExitDeOSS ¶ added in v0.5.1
func (c *ChainClient) ExitDeOSS() (string, error)
func (*ChainClient) ExitSminer ¶ added in v0.5.1
func (c *ChainClient) ExitSminer(miner string) (string, error)
func (*ChainClient) ExpansionSpace ¶ added in v0.5.1
func (c *ChainClient) ExpansionSpace(count uint32) (string, error)
func (*ChainClient) GenerateRestoralOrder ¶ added in v0.5.1
func (c *ChainClient) GenerateRestoralOrder(rootHash, fragmentHash string) (string, error)
func (*ChainClient) GenerateStorageOrder ¶ added in v0.5.1
func (c *ChainClient) GenerateStorageOrder( roothash string, segment []pattern.SegmentDataInfo, owner []byte, filename string, buckname string, filesize uint64, ) (string, error)
func (*ChainClient) GetChainState ¶ added in v0.5.1
func (c *ChainClient) GetChainState() bool
func (*ChainClient) GetCurrentRpcAddr ¶ added in v0.5.1
func (c *ChainClient) GetCurrentRpcAddr() string
func (*ChainClient) GetKeyEvents ¶ added in v0.5.1
func (c *ChainClient) GetKeyEvents() types.StorageKey
func (*ChainClient) GetMetadata ¶ added in v0.5.1
func (c *ChainClient) GetMetadata() *types.Metadata
func (*ChainClient) GetNetworkEnv ¶ added in v0.5.1
func (c *ChainClient) GetNetworkEnv() string
func (*ChainClient) GetSDKName ¶ added in v0.5.1
func (c *ChainClient) GetSDKName() string
func (*ChainClient) GetSignatureAcc ¶ added in v0.5.1
func (c *ChainClient) GetSignatureAcc() string
func (*ChainClient) GetSignatureAccPulickey ¶ added in v0.5.1
func (c *ChainClient) GetSignatureAccPulickey() []byte
func (*ChainClient) GetSubstrateAPI ¶ added in v0.5.1
func (c *ChainClient) GetSubstrateAPI() *gsrpc.SubstrateAPI
func (*ChainClient) GetTokenSymbol ¶ added in v0.5.1
func (c *ChainClient) GetTokenSymbol() string
func (*ChainClient) GetURI ¶ added in v0.5.1
func (c *ChainClient) GetURI() string
func (*ChainClient) IncreaseDeclarationSpace ¶ added in v0.5.1
func (c *ChainClient) IncreaseDeclarationSpace(tibCount uint32) (string, error)
func (*ChainClient) IncreaseStakingAmount ¶ added in v0.5.1
func (*ChainClient) IncreaseStorageNodeStakingAmount ¶ added in v0.5.1
func (c *ChainClient) IncreaseStorageNodeStakingAmount(miner string, token string) (string, error)
func (*ChainClient) InitExtrinsicsName ¶ added in v0.5.1
func (c *ChainClient) InitExtrinsicsName() error
func (*ChainClient) NetListening ¶ added in v0.5.1
func (c *ChainClient) NetListening() (bool, error)
func (*ChainClient) ParseBlockData ¶ added in v0.5.1
func (c *ChainClient) ParseBlockData(blocknumber uint64) (event.BlockData, error)
func (*ChainClient) QueryAccountInfo ¶ added in v0.5.1
func (c *ChainClient) QueryAccountInfo(puk []byte) (types.AccountInfo, error)
QueryAccountInfo
func (*ChainClient) QueryAccountInfoByAccount ¶ added in v0.5.1
func (c *ChainClient) QueryAccountInfoByAccount(acc string) (types.AccountInfo, error)
QueryAccountInfo
func (*ChainClient) QueryAllAccountInfoFromBlock ¶ added in v0.5.1
func (c *ChainClient) QueryAllAccountInfoFromBlock(block int) ([]types.AccountInfo, error)
QueryAllAccountInfoFromBlock
func (*ChainClient) QueryAllBucket ¶ added in v0.5.1
func (c *ChainClient) QueryAllBucket(accountID []byte) ([]types.Bytes, error)
func (*ChainClient) QueryAllBucketString ¶ added in v0.5.1
func (c *ChainClient) QueryAllBucketString(accountID []byte) ([]string, error)
func (*ChainClient) QueryAllDeOSSInfo ¶ added in v0.5.1
func (c *ChainClient) QueryAllDeOSSInfo() ([]pattern.OssInfo, error)
func (*ChainClient) QueryAllDeOSSPeerId ¶ added in v0.5.1
func (c *ChainClient) QueryAllDeOSSPeerId() ([]string, error)
func (*ChainClient) QueryAllSminerAccount ¶ added in v0.5.1
func (c *ChainClient) QueryAllSminerAccount() ([]types.AccountID, error)
func (*ChainClient) QueryAllSminerAccountByBlock ¶ added in v0.5.1
func (c *ChainClient) QueryAllSminerAccountByBlock(block int32) ([]types.AccountID, error)
func (*ChainClient) QueryAllTeeInfo ¶ added in v0.5.1
func (c *ChainClient) QueryAllTeeInfo() ([]pattern.TeeInfo, error)
func (*ChainClient) QueryAllTeeWorkerMap ¶ added in v0.5.1
func (c *ChainClient) QueryAllTeeWorkerMap() ([]pattern.TeeWorkerInfo, error)
func (*ChainClient) QueryAllValidatorCount ¶ added in v0.5.1
func (c *ChainClient) QueryAllValidatorCount(block int) (uint32, error)
func (*ChainClient) QueryAuthorizedAccountIDs ¶ added in v0.5.1
func (c *ChainClient) QueryAuthorizedAccountIDs(accountID []byte) ([]types.AccountID, error)
func (*ChainClient) QueryAuthorizedAccounts ¶ added in v0.5.1
func (c *ChainClient) QueryAuthorizedAccounts(accountID []byte) ([]string, error)
func (*ChainClient) QueryBlockHeight ¶ added in v0.5.1
func (c *ChainClient) QueryBlockHeight(hash string) (uint32, error)
QueryBlockHeight
func (*ChainClient) QueryBondedList ¶ added in v0.5.1
func (c *ChainClient) QueryBondedList(block int32) ([]types.AccountID, error)
func (*ChainClient) QueryBucketInfo ¶ added in v0.5.1
func (c *ChainClient) QueryBucketInfo(accountID []byte, bucketname string) (pattern.BucketInfo, error)
func (*ChainClient) QueryChallengeInfo ¶ added in v0.5.1
func (c *ChainClient) QueryChallengeInfo(accountID []byte) (bool, pattern.ChallengeInfo, error)
func (*ChainClient) QueryChallengeVerifyExpiration ¶ added in v0.5.1
func (c *ChainClient) QueryChallengeVerifyExpiration() (uint32, error)
func (*ChainClient) QueryCurrentEra ¶ added in v0.5.1
func (c *ChainClient) QueryCurrentEra(block int) (uint32, error)
func (*ChainClient) QueryDeOSSInfo ¶ added in v0.5.1
func (c *ChainClient) QueryDeOSSInfo(accountID []byte) (pattern.OssInfo, error)
func (*ChainClient) QueryEraValidatorReward ¶ added in v0.5.1
func (c *ChainClient) QueryEraValidatorReward(era uint32) (string, error)
func (*ChainClient) QueryErasTotalStake ¶ added in v0.5.1
func (c *ChainClient) QueryErasTotalStake(era uint32, block int) (string, error)
func (*ChainClient) QueryExpenders ¶ added in v0.5.1
func (c *ChainClient) QueryExpenders() (pattern.ExpendersInfo, error)
func (*ChainClient) QueryFileMetadata ¶ added in v0.5.1
func (c *ChainClient) QueryFileMetadata(fid string) (pattern.FileMetadata, error)
func (*ChainClient) QueryFileMetadataByBlock ¶ added in v0.5.1
func (c *ChainClient) QueryFileMetadataByBlock(fid string, block uint64) (pattern.FileMetadata, error)
func (*ChainClient) QueryMasterPublicKey ¶ added in v0.5.1
func (c *ChainClient) QueryMasterPublicKey() ([]byte, error)
func (*ChainClient) QueryNodeSynchronizationSt ¶ added in v0.5.1
func (c *ChainClient) QueryNodeSynchronizationSt() (bool, error)
QueryNodeSynchronizationSt
func (*ChainClient) QueryNominatorCount ¶ added in v0.5.1
func (c *ChainClient) QueryNominatorCount(block int) (uint32, error)
func (*ChainClient) QueryNominatorsLatest ¶ added in v0.5.1
func (c *ChainClient) QueryNominatorsLatest() ([]pattern.StakingNominations, error)
func (*ChainClient) QueryPendingReplacements ¶ added in v0.5.1
func (c *ChainClient) QueryPendingReplacements(puk []byte) (types.U128, error)
func (*ChainClient) QueryPurchasedSpace ¶ added in v0.5.1
func (c *ChainClient) QueryPurchasedSpace() (uint64, error)
func (*ChainClient) QueryRestoralOrder ¶ added in v0.5.1
func (c *ChainClient) QueryRestoralOrder(fragmentHash string) (pattern.RestoralOrderInfo, error)
func (*ChainClient) QueryRestoralOrderList ¶ added in v0.5.1
func (c *ChainClient) QueryRestoralOrderList() ([]pattern.RestoralOrderInfo, error)
func (*ChainClient) QueryRestoralTarget ¶ added in v0.5.1
func (c *ChainClient) QueryRestoralTarget(puk []byte) (pattern.RestoralTargetInfo, error)
func (*ChainClient) QueryRestoralTargetList ¶ added in v0.5.1
func (c *ChainClient) QueryRestoralTargetList() ([]pattern.RestoralTargetInfo, error)
func (*ChainClient) QueryRewards ¶ added in v0.5.1
func (c *ChainClient) QueryRewards(puk []byte) (pattern.RewardsType, error)
func (*ChainClient) QueryRewardsMap ¶ added in v0.5.1
func (c *ChainClient) QueryRewardsMap(puk []byte) (pattern.MinerReward, error)
func (*ChainClient) QuerySpacePricePerGib ¶ added in v0.5.1
func (c *ChainClient) QuerySpacePricePerGib() (string, error)
func (*ChainClient) QueryStakingEraRewardPoints ¶ added in v0.5.1
func (c *ChainClient) QueryStakingEraRewardPoints(era uint32) (pattern.StakingEraRewardPoints, error)
func (*ChainClient) QueryStorageMiner ¶ added in v0.5.1
func (c *ChainClient) QueryStorageMiner(puk []byte) (pattern.MinerInfo, error)
func (*ChainClient) QueryStorageMinerByAccount ¶ added in v0.5.1
func (c *ChainClient) QueryStorageMinerByAccount(account string) (pattern.MinerInfo, error)
func (*ChainClient) QueryStorageMinerByBlock ¶ added in v0.5.1
func (*ChainClient) QueryStorageMinerStakingStartBlock ¶ added in v0.5.1
func (c *ChainClient) QueryStorageMinerStakingStartBlock(puk []byte) (types.U32, error)
func (*ChainClient) QueryStorageOrder ¶ added in v0.5.1
func (c *ChainClient) QueryStorageOrder(fid string) (pattern.StorageOrder, error)
func (*ChainClient) QueryTeeInfo ¶ added in v0.5.1
func (c *ChainClient) QueryTeeInfo(puk pattern.WorkerPublicKey) (pattern.TeeInfo, error)
func (*ChainClient) QueryTeeWorkEndpoint ¶ added in v0.5.1
func (c *ChainClient) QueryTeeWorkEndpoint(workPuk pattern.WorkerPublicKey) (string, error)
func (*ChainClient) QueryTeeWorker ¶ added in v0.5.1
func (c *ChainClient) QueryTeeWorker(puk pattern.WorkerPublicKey) (pattern.TeeWorkerInfo, error)
func (*ChainClient) QueryTotalIdleSpace ¶ added in v0.5.1
func (c *ChainClient) QueryTotalIdleSpace() (uint64, error)
func (*ChainClient) QueryTotalIssuance ¶ added in v0.5.1
func (c *ChainClient) QueryTotalIssuance(block int) (string, error)
QueryTotalIssuance
func (*ChainClient) QueryTotalServiceSpace ¶ added in v0.5.1
func (c *ChainClient) QueryTotalServiceSpace() (uint64, error)
func (*ChainClient) QueryUserSpaceInfo ¶ added in v0.5.1
func (c *ChainClient) QueryUserSpaceInfo(puk []byte) (pattern.UserSpaceInfo, error)
func (*ChainClient) QueryUserSpaceSt ¶ added in v0.5.1
func (c *ChainClient) QueryUserSpaceSt(puk []byte) (pattern.UserSpaceSt, error)
func (*ChainClient) QueryValidatorCommission ¶ added in v0.5.1
func (c *ChainClient) QueryValidatorCommission(account string, block int) (uint8, error)
func (*ChainClient) QueryValidatorsCount ¶ added in v0.5.1
func (c *ChainClient) QueryValidatorsCount(block int) (uint32, error)
func (*ChainClient) QueryWorkerAddedAt ¶ added in v0.5.1
func (c *ChainClient) QueryWorkerAddedAt(workPuk pattern.WorkerPublicKey) (types.U32, error)
func (*ChainClient) ReconnectRPC ¶ added in v0.5.1
func (c *ChainClient) ReconnectRPC() error
func (*ChainClient) RegisterDeOSS ¶ added in v0.5.1
func (c *ChainClient) RegisterDeOSS(peerId []byte, domain string) (string, error)
func (*ChainClient) RegisterSminer ¶ added in v0.5.1
func (*ChainClient) RegisterSminerAssignStaking ¶ added in v0.5.1
func (*ChainClient) RegisterSminerPOISKey ¶ added in v0.5.1
func (c *ChainClient) RegisterSminerPOISKey(poisKey pattern.PoISKeyInfo, teeSignWithAcc, teeSign types.Bytes, teePuk pattern.WorkerPublicKey) (string, error)
func (*ChainClient) RenewalSpace ¶ added in v0.5.1
func (c *ChainClient) RenewalSpace(days uint32) (string, error)
func (*ChainClient) ReplaceIdleSpace ¶ added in v0.5.1
func (c *ChainClient) ReplaceIdleSpace(idleSignInfo pattern.SpaceProofInfo, teeSignWithAcc, teeSign types.Bytes, teePuk pattern.WorkerPublicKey) (string, error)
func (*ChainClient) ReportFile ¶ added in v0.5.1
func (c *ChainClient) ReportFile(index uint8, roothash string) (string, error)
func (*ChainClient) ReportTagCalculated ¶ added in v0.5.1
func (c *ChainClient) ReportTagCalculated(teeSig types.Bytes, tagSigInfo pattern.TagSigInfo) (string, error)
func (*ChainClient) RestoralComplete ¶ added in v0.5.1
func (c *ChainClient) RestoralComplete(restoralFragmentHash string) (string, error)
func (*ChainClient) RetrieveAllEventFromBlock ¶ added in v0.5.1
func (*ChainClient) RetrieveAllEvent_FileBank_DeleteFile ¶ added in v0.5.1
func (c *ChainClient) RetrieveAllEvent_FileBank_DeleteFile(blockhash types.Hash) ([]event.AllDeleteFileEvent, error)
func (*ChainClient) RetrieveAllEvent_FileBank_StorageCompleted ¶ added in v0.5.1
func (c *ChainClient) RetrieveAllEvent_FileBank_StorageCompleted(blockhash types.Hash) ([]string, error)
func (*ChainClient) RetrieveAllEvent_FileBank_UploadDeclaration ¶ added in v0.5.1
func (c *ChainClient) RetrieveAllEvent_FileBank_UploadDeclaration(blockhash types.Hash) ([]event.AllUploadDeclarationEvent, error)
func (*ChainClient) RetrieveBlock ¶ added in v0.5.1
func (c *ChainClient) RetrieveBlock(blocknumber uint64) ([]string, []event.ExtrinsicsInfo, []event.TransferInfo, string, string, string, string, int64, error)
func (*ChainClient) RetrieveBlockAndAll ¶ added in v0.5.1
func (*ChainClient) RetrieveEvent_Audit_SubmitIdleProof ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_Audit_SubmitIdleProof(blockhash types.Hash) (event.Event_SubmitIdleProof, error)
func (*ChainClient) RetrieveEvent_Audit_SubmitIdleVerifyResult ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_Audit_SubmitIdleVerifyResult(blockhash types.Hash) (event.Event_SubmitIdleVerifyResult, error)
func (*ChainClient) RetrieveEvent_Audit_SubmitServiceProof ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_Audit_SubmitServiceProof(blockhash types.Hash) (event.Event_SubmitServiceProof, error)
func (*ChainClient) RetrieveEvent_Audit_SubmitServiceVerifyResult ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_Audit_SubmitServiceVerifyResult(blockhash types.Hash) (event.Event_SubmitServiceVerifyResult, error)
func (*ChainClient) RetrieveEvent_Balances_Transfer ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_Balances_Transfer(blockhash types.Hash) (types.EventBalancesTransfer, error)
func (*ChainClient) RetrieveEvent_FileBank_CalculateReport ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_FileBank_CalculateReport(blockhash types.Hash) (event.Event_CalculateReport, error)
func (*ChainClient) RetrieveEvent_FileBank_ClaimRestoralOrder ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_FileBank_ClaimRestoralOrder(blockhash types.Hash) (event.Event_ClaimRestoralOrder, error)
func (*ChainClient) RetrieveEvent_FileBank_CreateBucket ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_FileBank_CreateBucket(blockhash types.Hash) (event.Event_CreateBucket, error)
func (*ChainClient) RetrieveEvent_FileBank_DeleteBucket ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_FileBank_DeleteBucket(blockhash types.Hash) (event.Event_DeleteBucket, error)
func (*ChainClient) RetrieveEvent_FileBank_DeleteFile ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_FileBank_DeleteFile(blockhash types.Hash) (event.Event_DeleteFile, error)
func (*ChainClient) RetrieveEvent_FileBank_GenRestoralOrder ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_FileBank_GenRestoralOrder(blockhash types.Hash) (event.Event_GenerateRestoralOrder, error)
func (*ChainClient) RetrieveEvent_FileBank_IdleSpaceCert ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_FileBank_IdleSpaceCert(blockhash types.Hash) (event.Event_IdleSpaceCert, error)
func (*ChainClient) RetrieveEvent_FileBank_RecoveryCompleted ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_FileBank_RecoveryCompleted(blockhash types.Hash) (event.Event_RecoveryCompleted, error)
func (*ChainClient) RetrieveEvent_FileBank_ReplaceIdleSpace ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_FileBank_ReplaceIdleSpace(blockhash types.Hash) (event.Event_ReplaceIdleSpace, error)
func (*ChainClient) RetrieveEvent_FileBank_TransferReport ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_FileBank_TransferReport(blockhash types.Hash) (event.Event_TransferReport, error)
func (*ChainClient) RetrieveEvent_FileBank_UploadDeclaration ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_FileBank_UploadDeclaration(blockhash types.Hash) (event.Event_UploadDeclaration, error)
func (*ChainClient) RetrieveEvent_Oss_Authorize ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_Oss_Authorize(blockhash types.Hash) (event.Event_Authorize, error)
func (*ChainClient) RetrieveEvent_Oss_CancelAuthorize ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_Oss_CancelAuthorize(blockhash types.Hash) (event.Event_CancelAuthorize, error)
func (*ChainClient) RetrieveEvent_Oss_OssDestroy ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_Oss_OssDestroy(blockhash types.Hash) (event.Event_OssDestroy, error)
func (*ChainClient) RetrieveEvent_Oss_OssRegister ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_Oss_OssRegister(blockhash types.Hash) (event.Event_OssRegister, error)
func (*ChainClient) RetrieveEvent_Oss_OssUpdate ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_Oss_OssUpdate(blockhash types.Hash) (event.Event_OssUpdate, error)
func (*ChainClient) RetrieveEvent_Sminer_IncreaseCollateral ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_Sminer_IncreaseCollateral(blockhash types.Hash) (event.Event_IncreaseCollateral, error)
func (*ChainClient) RetrieveEvent_Sminer_IncreaseDeclarationSpace ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_Sminer_IncreaseDeclarationSpace(blockhash types.Hash) (event.Event_IncreaseDeclarationSpace, error)
func (*ChainClient) RetrieveEvent_Sminer_MinerExitPrep ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_Sminer_MinerExitPrep(blockhash types.Hash) (event.Event_MinerExitPrep, error)
func (*ChainClient) RetrieveEvent_Sminer_Receive ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_Sminer_Receive(blockhash types.Hash) (event.Event_Receive, error)
func (*ChainClient) RetrieveEvent_Sminer_RegisterPoisKey ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_Sminer_RegisterPoisKey(blockhash types.Hash) (event.Event_RegisterPoisKey, error)
func (*ChainClient) RetrieveEvent_Sminer_Registered ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_Sminer_Registered(blockhash types.Hash) (event.Event_Registered, error)
func (*ChainClient) RetrieveEvent_Sminer_UpdataBeneficiary ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_Sminer_UpdataBeneficiary(blockhash types.Hash) (event.Event_UpdateBeneficiary, error)
func (*ChainClient) RetrieveEvent_Sminer_UpdataIp ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_Sminer_UpdataIp(blockhash types.Hash) (event.Event_UpdatePeerId, error)
func (*ChainClient) RetrieveEvent_Sminer_Withdraw ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_Sminer_Withdraw(blockhash types.Hash) (event.Event_Withdraw, error)
func (*ChainClient) RetrieveEvent_StorageHandler_BuySpace ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_StorageHandler_BuySpace(blockhash types.Hash) (event.Event_BuySpace, error)
func (*ChainClient) RetrieveEvent_StorageHandler_ExpansionSpace ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_StorageHandler_ExpansionSpace(blockhash types.Hash) (event.Event_ExpansionSpace, error)
func (*ChainClient) RetrieveEvent_StorageHandler_RenewalSpace ¶ added in v0.5.1
func (c *ChainClient) RetrieveEvent_StorageHandler_RenewalSpace(blockhash types.Hash) (event.Event_RenewalSpace, error)
func (*ChainClient) RetrieveFile ¶ added in v0.5.1
func (c *ChainClient) RetrieveFile(url, fid, savepath string) error
func (*ChainClient) RetrieveObject ¶ added in v0.5.1
func (c *ChainClient) RetrieveObject(url, fid string) (io.ReadCloser, error)
func (*ChainClient) SetChainState ¶ added in v0.5.1
func (c *ChainClient) SetChainState(state bool)
func (*ChainClient) SetSDKName ¶ added in v0.5.1
func (c *ChainClient) SetSDKName(name string)
func (*ChainClient) SplitFileWithstandardSize ¶ added in v0.5.1
func (c *ChainClient) SplitFileWithstandardSize(fpath, chunksDir string) (int64, int, error)
func (*ChainClient) StoreFile ¶ added in v0.5.1
func (c *ChainClient) StoreFile(url, file, bucket string) (string, error)
func (*ChainClient) StoreObject ¶ added in v0.5.1
func (*ChainClient) SubmitFileReport ¶ added in v0.5.1
func (*ChainClient) SubmitIdleProof ¶ added in v0.5.1
func (c *ChainClient) SubmitIdleProof(idleProof []types.U8) (string, error)
func (*ChainClient) SubmitIdleProofResult ¶ added in v0.5.1
func (c *ChainClient) SubmitIdleProofResult(totalProofHash []types.U8, front, rear types.U64, accumulator pattern.Accumulator, result types.Bool, sig types.Bytes, teePuk pattern.WorkerPublicKey) (string, error)
func (*ChainClient) SubmitServiceProof ¶ added in v0.5.1
func (c *ChainClient) SubmitServiceProof(serviceProof []types.U8) (string, error)
func (*ChainClient) SubmitServiceProofResult ¶ added in v0.5.1
func (c *ChainClient) SubmitServiceProofResult(result types.Bool, sign types.Bytes, bloomFilter pattern.BloomFilter, teePuk pattern.WorkerPublicKey) (string, error)
func (*ChainClient) SyncState ¶ added in v0.5.1
func (c *ChainClient) SyncState() (pattern.SysSyncState, error)
func (*ChainClient) SysChain ¶ added in v0.5.1
func (c *ChainClient) SysChain() (string, error)
func (*ChainClient) SysProperties ¶ added in v0.5.1
func (c *ChainClient) SysProperties() (pattern.SysProperties, error)
func (*ChainClient) TransferToken ¶ added in v0.5.1
func (*ChainClient) UnAuthorizeSpace ¶ added in v0.5.1
func (c *ChainClient) UnAuthorizeSpace(oss_acc string) (string, error)
func (*ChainClient) UpdateDeOSS ¶ added in v0.5.1
func (c *ChainClient) UpdateDeOSS(peerId string, domain string) (string, error)
func (*ChainClient) UpdateEarningsAcc ¶ added in v0.5.1
func (c *ChainClient) UpdateEarningsAcc(puk []byte) (string, error)
func (*ChainClient) UpdateEarningsAccount ¶ added in v0.5.1
func (c *ChainClient) UpdateEarningsAccount(earnings string) (string, error)
func (*ChainClient) UpdateSminerPeerId ¶ added in v0.5.1
func (c *ChainClient) UpdateSminerPeerId(peerid pattern.PeerId) (string, error)
func (*ChainClient) UploadDeclaration ¶ added in v0.5.1
func (c *ChainClient) UploadDeclaration(filehash string, dealinfo []pattern.SegmentList, user pattern.UserBrief, filesize uint64) (string, error)
func (*ChainClient) UploadFileChunk ¶ added in v0.5.1
func (*ChainClient) UploadFileChunks ¶ added in v0.5.1
func (*ChainClient) Verify ¶ added in v0.5.1
func (c *ChainClient) Verify(msg []byte, sig []byte) (bool, error)
func (*ChainClient) VerifyPolkaSignatureWithBase58 ¶ added in v0.5.1
func (c *ChainClient) VerifyPolkaSignatureWithBase58(account, msg, signature string) (bool, error)
func (*ChainClient) VerifyPolkaSignatureWithJS ¶ added in v0.5.1
func (c *ChainClient) VerifyPolkaSignatureWithJS(account, msg, signature string) (bool, error)
func (*ChainClient) Withdraw ¶ added in v0.5.1
func (c *ChainClient) Withdraw() (string, error)
Click to show internal directories.
Click to hide internal directories.