Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify #3

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions build/main/core/Account.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ import QOSRpc from './QOSRpc';
import { IApproveInput } from './Txs/Approve';
import { ITransferInput } from './Txs/Bank';
import { ICreateDelegationInput, IModifyDelegationInput, IUnbondDelegationInput } from './Txs/Delegation';
import { IKeyPair } from './types/common';
import { IAcc, IKeyPair } from './types/common';
declare class Account {
readonly rpc: QOSRpc;
qos: number;
mnemonic: string;
keypair: IKeyPair;
address: string;
pubKey: string;
privateKey: string;
bech32pubkey: string;
constructor(controller: QOSRpc, keyPair?: IKeyPair, mnemonic?: string);
privateKeyBz: Uint8Array;
pubKeyBz: Uint8Array;
constructor(controller: QOSRpc, Acc?: IAcc, mnemonic?: string);
sendTransferTx(toAddress: string, data: ITransferInput): Promise<import("axios").AxiosResponse<any>>;
sendCreateDelegateTx(validatorAddress: string, data: ICreateDelegationInput): Promise<import("axios").AxiosResponse<any>>;
sendModifyDelegationTx(validatorAddress: string, data: IModifyDelegationInput): Promise<import("axios").AxiosResponse<any>>;
Expand All @@ -25,6 +25,7 @@ declare class Account {
sendUseApproveTx(toAddress: string, data: IApproveInput): Promise<import("axios").AxiosResponse<any>>;
queryDelagationAll(deleagtorAddress: string): Promise<import("axios").AxiosResponse<any>>;
queryDelagationOne(deleagtorAddress: string, validatorAddress: string): Promise<import("axios").AxiosResponse<any>>;
queryValidatorAll(): Promise<import("axios").AxiosResponse<any>>;
queryValidatorOne(validatorAddress: string): Promise<import("axios").AxiosResponse<any>>;
queryAccount(accountAddress: any): Promise<import("axios").AxiosResponse<any>>;
}
Expand Down
25 changes: 14 additions & 11 deletions build/main/core/Account.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion build/main/core/QOSRpc.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export declare class QOSRpc {
* 根据私钥恢复账户
* @param {string} privateKey 私钥
*/
recoveryAccountByPrivateKey(privateKey: any): Account;
recoveryAccountByPrivateKey(privateKey: string): Account;
verifyBech32StringByAccAddress(accAddress: string): any;
}
export default QOSRpc;
12 changes: 7 additions & 5 deletions build/main/core/QOSRpc.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading