chore: update flow definitions
This commit is contained in:
parent
369afecfeb
commit
d26c4ce75c
|
@ -61,7 +61,7 @@ declare module '@solana/web3.js' {
|
||||||
owner: PublicKey,
|
owner: PublicKey,
|
||||||
lamports: number,
|
lamports: number,
|
||||||
data: Buffer,
|
data: Buffer,
|
||||||
rent_epoch: number | null,
|
rentEpoch: number | null,
|
||||||
};
|
};
|
||||||
|
|
||||||
declare export type ContactInfo = {
|
declare export type ContactInfo = {
|
||||||
|
@ -75,9 +75,15 @@ declare module '@solana/web3.js' {
|
||||||
blockhash: Blockhash,
|
blockhash: Blockhash,
|
||||||
previousBlockhash: Blockhash,
|
previousBlockhash: Blockhash,
|
||||||
parentSlot: number,
|
parentSlot: number,
|
||||||
transactions: Array<
|
transactions: Array<{
|
||||||
[Transaction, SignatureSuccess | TransactionError | null],
|
transaction: Transaction,
|
||||||
>,
|
meta: {
|
||||||
|
fee: number,
|
||||||
|
preBalances: Array<number>,
|
||||||
|
postBalances: Array<number>,
|
||||||
|
status: SignatureStatusResult,
|
||||||
|
},
|
||||||
|
}>,
|
||||||
};
|
};
|
||||||
|
|
||||||
declare export type KeyedAccountInfo = {
|
declare export type KeyedAccountInfo = {
|
||||||
|
@ -117,7 +123,7 @@ declare module '@solana/web3.js' {
|
||||||
|
|
||||||
declare export type Inflation = {
|
declare export type Inflation = {
|
||||||
foundation: number,
|
foundation: number,
|
||||||
foundation_term: number,
|
foundationTerm: number,
|
||||||
initial: number,
|
initial: number,
|
||||||
storage: number,
|
storage: number,
|
||||||
taper: number,
|
taper: number,
|
||||||
|
@ -125,11 +131,11 @@ declare module '@solana/web3.js' {
|
||||||
};
|
};
|
||||||
|
|
||||||
declare export type EpochSchedule = {
|
declare export type EpochSchedule = {
|
||||||
slots_per_epoch: number,
|
slotsPerEpoch: number,
|
||||||
leader_schedule_slot_offset: number,
|
leaderScheduleSlotOffset: number,
|
||||||
warmup: boolean,
|
warmup: boolean,
|
||||||
first_normal_epoch: number,
|
firstNormalEpoch: number,
|
||||||
first_normal_slot: number,
|
firstNormalSlot: number,
|
||||||
};
|
};
|
||||||
|
|
||||||
declare export class Connection {
|
declare export class Connection {
|
||||||
|
@ -145,7 +151,7 @@ declare module '@solana/web3.js' {
|
||||||
getProgramAccounts(
|
getProgramAccounts(
|
||||||
programId: PublicKey,
|
programId: PublicKey,
|
||||||
commitment: ?Commitment,
|
commitment: ?Commitment,
|
||||||
): Promise<Array<[PublicKey, AccountInfo]>>;
|
): Promise<Array<PublicKeyAndAccount>>;
|
||||||
getBalanceAndContext(
|
getBalanceAndContext(
|
||||||
publicKey: PublicKey,
|
publicKey: PublicKey,
|
||||||
commitment: ?Commitment,
|
commitment: ?Commitment,
|
||||||
|
@ -175,10 +181,10 @@ declare module '@solana/web3.js' {
|
||||||
getEpochSchedule(): Promise<EpochSchedule>;
|
getEpochSchedule(): Promise<EpochSchedule>;
|
||||||
getRecentBlockhashAndContext(
|
getRecentBlockhashAndContext(
|
||||||
commitment: ?Commitment,
|
commitment: ?Commitment,
|
||||||
): Promise<RpcResponseAndContext<[Blockhash, FeeCalculator]>>;
|
): Promise<RpcResponseAndContext<BlockhashAndFeeCalculator>>;
|
||||||
getRecentBlockhash(
|
getRecentBlockhash(
|
||||||
commitment: ?Commitment,
|
commitment: ?Commitment,
|
||||||
): Promise<[Blockhash, FeeCalculator]>;
|
): Promise<BlockhashAndFeeCalculator>;
|
||||||
requestAirdrop(
|
requestAirdrop(
|
||||||
to: PublicKey,
|
to: PublicKey,
|
||||||
amount: number,
|
amount: number,
|
||||||
|
|
Loading…
Reference in New Issue