Skip to content

Commit

Permalink
Merge branch 'failover' into 'master'
Browse files Browse the repository at this point in the history
dont reject request if cert expired

See merge request hive/dhive!31
  • Loading branch information
feruzm committed Jun 1, 2022
2 parents 30fc565 + 781cd6d commit 16d5ec3
Show file tree
Hide file tree
Showing 12 changed files with 154 additions and 147 deletions.
56 changes: 28 additions & 28 deletions dist/dhive.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -787,13 +787,13 @@ declare module 'dhive/crypto' {
doubleSha256: typeof doubleSha256;
encodePrivate: typeof encodePrivate;
encodePublic: typeof encodePublic;
generateTrxId: typeof generateTrxId;
isCanonicalSignature: typeof isCanonicalSignature;
isWif: typeof isWif;
ripemd160: typeof ripemd160;
sha256: typeof sha256;
signTransaction: typeof signTransaction;
transactionDigest: typeof transactionDigest;
generateTrxId: typeof generateTrxId;
};
export {};

Expand Down Expand Up @@ -1412,8 +1412,8 @@ declare module 'dhive/chain/operation' {
owner: string;
orderid: number;
amount_to_sell: Asset | string;
fill_or_kill: boolean;
exchange_rate: PriceType;
fill_or_kill: boolean;
expiration: string;
};
}
Expand Down Expand Up @@ -2588,6 +2588,30 @@ declare module 'dhive/helpers/hivemind' {
}
export {};

}
declare module 'dhive/helpers/key' {
/**
* @file Account by key API helpers.
* @author Bartłomiej (@engrave) Górnicki
*/
import { PublicKey } from 'dhive/crypto';
import { Client } from 'dhive/client';
export interface AccountsByKey {
accounts: [string[]];
}
export class AccountByKeyAPI {
readonly client: Client;
constructor(client: Client);
/**
* Convenience for calling `account_by_key_api`.
*/
call(method: string, params?: any): Promise<any>;
/**
* Returns all accounts that have the key associated with their owner or active authorities.
*/
getKeyReferences(keys: (PublicKey | string)[]): Promise<AccountsByKey>;
}

}
declare module 'dhive/chain/rc' {
import { SMTAsset } from 'dhive/chain/asset';
Expand Down Expand Up @@ -2690,30 +2714,6 @@ declare module 'dhive/helpers/rc' {
private _calculateManabar;
}

}
declare module 'dhive/helpers/key' {
/**
* @file Account by key API helpers.
* @author Bartłomiej (@engrave) Górnicki
*/
import { PublicKey } from 'dhive/crypto';
import { Client } from 'dhive/client';
export interface AccountsByKey {
accounts: [string[]];
}
export class AccountByKeyAPI {
readonly client: Client;
constructor(client: Client);
/**
* Convenience for calling `account_by_key_api`.
*/
call(method: string, params?: any): Promise<any>;
/**
* Returns all accounts that have the key associated with their owner or active authorities.
*/
getKeyReferences(keys: (PublicKey | string)[]): Promise<AccountsByKey>;
}

}
declare module 'dhive/client' {
/**
Expand Down Expand Up @@ -2755,8 +2755,8 @@ declare module 'dhive/client' {
import { BroadcastAPI } from 'dhive/helpers/broadcast';
import { DatabaseAPI } from 'dhive/helpers/database';
import { HivemindAPI } from 'dhive/helpers/hivemind';
import { RCAPI } from 'dhive/helpers/rc';
import { AccountByKeyAPI } from 'dhive/helpers/key';
import { RCAPI } from 'dhive/helpers/rc';
/**
* Library version.
*/
Expand Down Expand Up @@ -2871,7 +2871,7 @@ declare module 'dhive/client' {
private backoff;
private failoverThreshold;
private consoleOnFailover;
private currentAddress;
currentAddress: string;
/**
* @param address The address to the Hive RPC server,
* e.g. `https://api.hive.blog`. or [`https://api.hive.blog`, `https://another.api.com`]
Expand Down
2 changes: 1 addition & 1 deletion dist/dhive.js

Large diffs are not rendered by default.

Binary file modified dist/dhive.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/dhive.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/assets/js/search.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/classes/client.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ <h3>Properties</h3>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="client.html#broadcast" class="tsd-kind-icon">broadcast</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="client.html#chainid" class="tsd-kind-icon">chain<wbr>Id</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="client.html#consoleonfailover" class="tsd-kind-icon">console<wbr>OnFailover</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="client.html#currentaddress" class="tsd-kind-icon">current<wbr>Address</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="client.html#currentaddress" class="tsd-kind-icon">current<wbr>Address</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="client.html#database" class="tsd-kind-icon">database</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="client.html#failoverthreshold" class="tsd-kind-icon">failover<wbr>Threshold</a></li>
<li class="tsd-kind-property tsd-parent-kind-class"><a href="client.html#hivemind" class="tsd-kind-icon">hivemind</a></li>
Expand Down Expand Up @@ -265,9 +265,9 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> console<wbr>OnFailover<
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
<a name="currentaddress" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> current<wbr>Address</h3>
<h3>current<wbr>Address</h3>
<div class="tsd-signature tsd-kind-icon">current<wbr>Address<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
Expand Down Expand Up @@ -508,7 +508,7 @@ <h4 class="tsd-returns-title">Returns <a href="client.html" class="tsd-signature
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="client.html#consoleonfailover" class="tsd-kind-icon">console<wbr>OnFailover</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<li class=" tsd-kind-property tsd-parent-kind-class">
<a href="client.html#currentaddress" class="tsd-kind-icon">current<wbr>Address</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class">
Expand Down
Loading

0 comments on commit 16d5ec3

Please sign in to comment.