@agoric/casting 0.5.1-upgrade-23-dev-7007b60.0.7007b60 → 0.6.0-u23.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/package.json +6 -6
- package/src/casting-spec.d.ts +0 -19
- package/src/casting-spec.d.ts.map +0 -1
- package/src/change-follower.d.ts +0 -5
- package/src/change-follower.d.ts.map +0 -1
- package/src/defaults.d.ts +0 -29
- package/src/defaults.d.ts.map +0 -1
- package/src/follower-cosmjs.d.ts +0 -16
- package/src/follower-cosmjs.d.ts.map +0 -1
- package/src/follower.d.ts +0 -7
- package/src/follower.d.ts.map +0 -1
- package/src/iterable.d.ts +0 -27
- package/src/iterable.d.ts.map +0 -1
- package/src/leader-netconfig.d.ts +0 -7
- package/src/leader-netconfig.d.ts.map +0 -1
- package/src/leader.d.ts +0 -4
- package/src/leader.d.ts.map +0 -1
- package/src/main.d.ts +0 -10
- package/src/main.d.ts.map +0 -1
- package/src/makeHttpClient.d.ts +0 -4
- package/src/makeHttpClient.d.ts.map +0 -1
- package/src/netconfig.d.ts +0 -47
- package/src/netconfig.d.ts.map +0 -1
- package/src/shuffle.d.ts +0 -2
- package/src/shuffle.d.ts.map +0 -1
- package/src/types.d.ts +0 -63
- package/src/types.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/casting",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0-u23.0",
|
|
4
4
|
"description": "Agoric's OCap broadcasting system",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/main.js",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"author": "Agoric",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@agoric/internal": "0.
|
|
26
|
-
"@agoric/notifier": "0.
|
|
27
|
-
"@agoric/store": "0.
|
|
25
|
+
"@agoric/internal": "0.5.0-u23.0",
|
|
26
|
+
"@agoric/notifier": "0.8.0-u23.0",
|
|
27
|
+
"@agoric/store": "0.11.0-u23.0",
|
|
28
28
|
"@cosmjs/encoding": "^0.36.0",
|
|
29
29
|
"@cosmjs/proto-signing": "^0.36.0",
|
|
30
30
|
"@cosmjs/stargate": "^0.36.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@endo/promise-kit": "^1.1.13"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@agoric/cosmic-proto": "0.
|
|
40
|
+
"@agoric/cosmic-proto": "0.6.0-u23.0",
|
|
41
41
|
"@endo/ses-ava": "^1.3.2",
|
|
42
42
|
"ava": "^6.4.1",
|
|
43
43
|
"c8": "^10.1.3",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"typeCoverage": {
|
|
64
64
|
"atLeast": 89.19
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "1147be15b0704de17204d04e2407fa3192b98a1c"
|
|
67
67
|
}
|
package/src/casting-spec.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export function vstorageKeySpecToPath({ storeName, storeSubkey }: VStorageKey): string;
|
|
2
|
-
/**
|
|
3
|
-
* @param {string} storagePath
|
|
4
|
-
* @param {string} [storeName]
|
|
5
|
-
* @returns {CastingSpec}
|
|
6
|
-
*/
|
|
7
|
-
export function DEFAULT_PATH_CONVERTER(storagePath: string, storeName?: string): CastingSpec;
|
|
8
|
-
/**
|
|
9
|
-
* @type {Record<string, (path: string) => CastingSpec>}
|
|
10
|
-
*/
|
|
11
|
-
export const pathPrefixToConverters: Record<string, (path: string) => CastingSpec>;
|
|
12
|
-
export function makeCastingSpecFromString(specString: string): CastingSpec;
|
|
13
|
-
export function makeCastingSpecFromObject(specObj: any): CastingSpec;
|
|
14
|
-
export function makeCastingSpecFromRef(specCap: ERef<any>): Promise<CastingSpec>;
|
|
15
|
-
export function makeCastingSpec(sourceP: ERef<unknown>): Promise<CastingSpec>;
|
|
16
|
-
import type { VStorageKey } from '@agoric/internal/src/lib-chainStorage.js';
|
|
17
|
-
import type { CastingSpec } from './types.js';
|
|
18
|
-
import type { ERef } from '@agoric/vow';
|
|
19
|
-
//# sourceMappingURL=casting-spec.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"casting-spec.d.ts","sourceRoot":"","sources":["casting-spec.js"],"names":[],"mappings":"AAmDO,kEAHI,WAAW,GACT,MAAM,CAYlB;AAlCD;;;;GAIG;AACH,oDAJW,MAAM,cACN,MAAM,GACJ,WAAW,CAavB;AAsBD;;GAEG;AACH,qCAFU,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,WAAW,CAAC,CAMpD;AAMI,sDAHI,MAAM,GACJ,WAAW,CAcvB;AAQM,mDAHI,GAAG,GACD,WAAW,CAmCvB;AAMM,gDAHI,KAAK,GAAG,CAAC,GACP,OAAO,CAAC,WAAW,CAAC,CAKhC;AAQM,yCAHI,KAAK,OAAO,CAAC,GACX,OAAO,CAAC,WAAW,CAAC,CAgBhC;iCA7J6B,0CAA0C;iCAD1C,YAAY;0BAEnB,aAAa"}
|
package/src/change-follower.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export function makePollingChangeFollower(leader: Leader): Promise<Follower<CastingChange>>;
|
|
2
|
-
import type { Leader } from './types.js';
|
|
3
|
-
import type { CastingChange } from './types.js';
|
|
4
|
-
import type { Follower } from './types.js';
|
|
5
|
-
//# sourceMappingURL=change-follower.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"change-follower.d.ts","sourceRoot":"","sources":["change-follower.js"],"names":[],"mappings":"AAeO,kDAHI,MAAM,GACJ,OAAO,CAAC,SAAS,aAAa,CAAC,CAAC,CA6C5C;4BAtDwB,YAAY;mCAEL,YAAY;8BADjB,YAAY"}
|
package/src/defaults.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @import {Unserializer} from './types.js';
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Default to the local chain.
|
|
6
|
-
*/
|
|
7
|
-
export const DEFAULT_BOOTSTRAP: "http://localhost:26657";
|
|
8
|
-
export const DEFAULT_JITTER_SECONDS: 5;
|
|
9
|
-
export const DEFAULT_POLL_WITH_EVENTS_SECONDS: 600;
|
|
10
|
-
export const DEFAULT_KEEP_POLLING_SECONDS: 5;
|
|
11
|
-
/**
|
|
12
|
-
* Default backoff is the block interval.
|
|
13
|
-
*/
|
|
14
|
-
export const DEFAULT_MAX_BACKOFF: 6000;
|
|
15
|
-
export function delay(ms: number): Promise<void>;
|
|
16
|
-
export function randomBackoff(range: number, cap?: number): number;
|
|
17
|
-
export function exponentialBackoff(attempt?: number, base?: number, cap?: number): number;
|
|
18
|
-
export function DEFAULT_JITTER(where: string): Promise<void>;
|
|
19
|
-
export function DEFAULT_RETRY_CALLBACK(where: string, err: any, attempt?: number): Promise<void>;
|
|
20
|
-
export function DEFAULT_KEEP_POLLING(): Promise<boolean>;
|
|
21
|
-
export function MAKE_DEFAULT_DECODER(): (str: any) => any;
|
|
22
|
-
/**
|
|
23
|
-
* Unserialize the JSONable data.
|
|
24
|
-
*
|
|
25
|
-
* @type {() => Unserializer}
|
|
26
|
-
*/
|
|
27
|
-
export const MAKE_DEFAULT_UNSERIALIZER: () => Unserializer;
|
|
28
|
-
import type { Unserializer } from './types.js';
|
|
29
|
-
//# sourceMappingURL=defaults.d.ts.map
|
package/src/defaults.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["defaults.js"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;GAEG;AACH,gCAAiC,wBAAwB,CAAC;AAE1D,qCAAsC,CAAC,CAAC;AAExC,+CAAgD,GAAG,CAAC;AAEpD,2CAA4C,CAAC,CAAC;AAE9C;;GAEG;AACH,kCAAmC,IAAK,CAAC;AAUlC,0BAHI,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAEgD;AAMnE,qCAHI,MAAM,QACN,MAAM,UAIhB;AAOM,6CAJI,MAAM,SACN,MAAM,QACN,MAAM,UAQhB;AAQM,sCAHI,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAMzB;AAUM,8CALI,MAAM,OACN,GAAG,YACH,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CASzB;AAOM,wCAFM,OAAO,CAAC,OAAO,CAAC,CAGgD;AAEtE,0DAaN;AAED;;;;GAIG;AACH,wCAFU,MAAM,YAAY,CA2B1B;kCApI6B,YAAY"}
|
package/src/follower-cosmjs.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export function makeCosmjsFollower<T>(sourceP: any, leaderOrMaker?: LeaderOrMaker, options?: FollowerOptions): ValueFollower<T>;
|
|
2
|
-
export type ValueFollower<T> = Follower<ValueFollowerElement<T>>;
|
|
3
|
-
/**
|
|
4
|
-
* The response of an ABCI query to Tendermint.
|
|
5
|
-
* This is a subset of `tendermint34.AbciQueryResponse` in order
|
|
6
|
-
* to abstract away Tendermint versions.
|
|
7
|
-
*/
|
|
8
|
-
export type QueryStoreResponse = {
|
|
9
|
-
readonly value: Uint8Array;
|
|
10
|
-
readonly height: number;
|
|
11
|
-
};
|
|
12
|
-
import type { LeaderOrMaker } from './types.js';
|
|
13
|
-
import type { FollowerOptions } from './types.js';
|
|
14
|
-
import type { ValueFollowerElement } from './types.js';
|
|
15
|
-
import type { Follower } from './types.js';
|
|
16
|
-
//# sourceMappingURL=follower-cosmjs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"follower-cosmjs.d.ts","sourceRoot":"","sources":["follower-cosmjs.js"],"names":[],"mappings":"AAqHO,mCANM,CAAC,WACH,GAAG,kBACH,aAAa,YACb,eAAe,GACb,aAAa,CAAC,CAAC,CAAC,CA4f5B;0BA7kBa,CAAC,IAAW,SAAS,qBAAqB,CAAC,CAAC,CAAC;;;;;;iCAI9C;IACZ,QAAY,CAAC,KAAK,EAAE,UAAU,CAAC;IAC/B,QAAY,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;mCA1B4B,YAAY;qCACV,YAAY;0CAFP,YAAY;8BADxB,YAAY"}
|
package/src/follower.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export function makeFollower<T>(specP: ERef<CastingSpec> | string, leaderOrMaker?: LeaderOrMaker, options?: FollowerOptions): Promise<ValueFollower<T>>;
|
|
2
|
-
import type { CastingSpec } from './types.js';
|
|
3
|
-
import type { ERef } from '@agoric/vow';
|
|
4
|
-
import type { LeaderOrMaker } from './types.js';
|
|
5
|
-
import type { FollowerOptions } from './types.js';
|
|
6
|
-
import type { ValueFollower } from './follower-cosmjs.js';
|
|
7
|
-
//# sourceMappingURL=follower.d.ts.map
|
package/src/follower.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"follower.d.ts","sourceRoot":"","sources":["follower.js"],"names":[],"mappings":"AAoEO,6BANM,CAAC,SACH,KAAK,WAAW,CAAC,GAAG,MAAM,kBAC1B,aAAa,YACb,eAAe,GACb,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CASrC;iCAjE6B,YAAY;0BAMnB,aAAa;mCAHJ,YAAY;qCACV,YAAY;mCACd,sBAAsB"}
|
package/src/iterable.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export function mapAsyncIterable<TIn, TOut>(iterable: AsyncIterable<TIn>, transform: (value: TIn) => TOut): AsyncIterable<TOut>;
|
|
2
|
-
export function iterateLatest<T>(follower: ERef<Follower<T>>): {
|
|
3
|
-
/** @returns {AsyncIterator<T>} */
|
|
4
|
-
[Symbol.asyncIterator]: () => AsyncIterator<T>;
|
|
5
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
6
|
-
/** @returns {AsyncIterator<T>} */
|
|
7
|
-
[Symbol.asyncIterator]: () => AsyncIterator<T>;
|
|
8
|
-
}>;
|
|
9
|
-
export function iterateEach<T>(follower: ERef<Follower<T>>, options?: IterateEachOptions): {
|
|
10
|
-
/** @returns {AsyncIterator<T>} */
|
|
11
|
-
[Symbol.asyncIterator]: () => AsyncIterator<T>;
|
|
12
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
13
|
-
/** @returns {AsyncIterator<T>} */
|
|
14
|
-
[Symbol.asyncIterator]: () => AsyncIterator<T>;
|
|
15
|
-
}>;
|
|
16
|
-
export function iterateReverse<T>(follower: ERef<Follower<T>>, options?: IterateEachOptions): {
|
|
17
|
-
/** @returns {AsyncIterator<T>} */
|
|
18
|
-
[Symbol.asyncIterator]: () => AsyncIterator<T>;
|
|
19
|
-
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
20
|
-
/** @returns {AsyncIterator<T>} */
|
|
21
|
-
[Symbol.asyncIterator]: () => AsyncIterator<T>;
|
|
22
|
-
}>;
|
|
23
|
-
import type { Follower } from './types.js';
|
|
24
|
-
import type { ERef } from '@agoric/vow';
|
|
25
|
-
import type { IterateEachOptions } from './types.js';
|
|
26
|
-
export { subscribeEach, subscribeLatest } from "@agoric/notifier/subscribe.js";
|
|
27
|
-
//# sourceMappingURL=iterable.d.ts.map
|
package/src/iterable.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iterable.d.ts","sourceRoot":"","sources":["iterable.js"],"names":[],"mappings":"AAiBO,iCANM,GAAG,EACH,IAAI,YACN,aAAa,CAAC,GAAG,CAAC,aAClB,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,GAClB,aAAa,CAAC,IAAI,CAAC,CAU/B;AAQM,8BAHM,CAAC,YACH,KAAK,SAAS,CAAC,CAAC,CAAC;IAKxB,kCAAkC;kCAApB,aAAa,CAAC,CAAC,CAAC;;IAA9B,kCAAkC;kCAApB,aAAa,CAAC,CAAC,CAAC;GAQ9B;AASG,4BAJM,CAAC,YACH,KAAK,SAAS,CAAC,CAAC,CAAC,YACjB,kBAAkB;IAKzB,kCAAkC;kCAApB,aAAa,CAAC,CAAC,CAAC;;IAA9B,kCAAkC;kCAApB,aAAa,CAAC,CAAC,CAAC;GAQ9B;AAOG,+BAJM,CAAC,YACH,KAAK,SAAS,CAAC,CAAC,CAAC,YACjB,kBAAkB;IAKzB,kCAAkC;kCAApB,aAAa,CAAC,CAAC,CAAC;;IAA9B,kCAAkC;kCAApB,aAAa,CAAC,CAAC,CAAC;GAQ9B;8BA/EuB,YAAY;0BAEhB,aAAa;wCADC,YAAY"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export function makeLeaderFromRpcAddresses(rpcAddrs: string[], leaderOptions?: LeaderOptions): Leader;
|
|
2
|
-
export function makeLeaderFromNetworkConfig(netconfigURL: string, options?: LeaderOptions): Promise<any>;
|
|
3
|
-
export function makeLeader(bootstrap?: string, options?: LeaderOptions): ERef<Leader>;
|
|
4
|
-
import type { LeaderOptions } from './types.js';
|
|
5
|
-
import type { Leader } from './types.js';
|
|
6
|
-
import type { ERef } from '@agoric/vow';
|
|
7
|
-
//# sourceMappingURL=leader-netconfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"leader-netconfig.d.ts","sourceRoot":"","sources":["leader-netconfig.js"],"names":[],"mappings":"AAqBO,qDAJI,MAAM,EAAE,kBACR,aAAa,GACX,MAAM,CAelB;AAMM,0DAHI,MAAM,YACN,aAAa,gBAmCvB;AAOM,uCAJI,MAAM,YACN,aAAa,GACX,KAAK,MAAM,CAAC,CAOxB;mCA1E+B,YAAY;4BACnB,YAAY;0BACd,aAAa"}
|
package/src/leader.d.ts
DELETED
package/src/leader.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"leader.d.ts","sourceRoot":"","sources":["leader.js"],"names":[],"mappings":"AAgBO,gDAHI,MAAM,EAAE,kBACR,aAAa,UAuEvB;mCA/E+B,YAAY;4BACnB,YAAY"}
|
package/src/main.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from "./types.js";
|
|
2
|
-
export * from "./defaults.js";
|
|
3
|
-
export * from "./leader-netconfig.js";
|
|
4
|
-
export * from "./follower.js";
|
|
5
|
-
export * from "./follower-cosmjs.js";
|
|
6
|
-
export * from "./casting-spec.js";
|
|
7
|
-
export * from "./leader.js";
|
|
8
|
-
export * from "./iterable.js";
|
|
9
|
-
export * from "./makeHttpClient.js";
|
|
10
|
-
//# sourceMappingURL=main.d.ts.map
|
package/src/main.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["main.js"],"names":[],"mappings":""}
|
package/src/makeHttpClient.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export function makeTendermintRpcClient(url: string, fetch: typeof window.fetch): RpcClient;
|
|
2
|
-
export function makeHttpClient(url: string, fetch: typeof window.fetch): RpcClient;
|
|
3
|
-
import type { RpcClient } from '@cosmjs/tendermint-rpc';
|
|
4
|
-
//# sourceMappingURL=makeHttpClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"makeHttpClient.d.ts","sourceRoot":"","sources":["makeHttpClient.js"],"names":[],"mappings":"AAgCO,6CAJI,MAAM,SACN,OAAO,MAAM,CAAC,KAAK,GACjB,SAAS,CA8BrB;AA5BM,oCAJI,MAAM,SACN,OAAO,MAAM,CAAC,KAAK,GACjB,SAAS,CA8BrB;+BAzD2B,wBAAwB"}
|
package/src/netconfig.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef {object} NetworkConfig
|
|
3
|
-
* `peers` and `seeds` are only used for configuring full nodes participating in
|
|
4
|
-
* the chain’s p2p network, not for rpc clients. The `gci` is needed for rpc
|
|
5
|
-
* “light clients” to prove the ancestry of data fetched from the rpc node.
|
|
6
|
-
*
|
|
7
|
-
* @property {string[]} rpcAddrs endpoints serving https://docs.tendermint.com/v0.34/rpc/
|
|
8
|
-
* @property {string} chainName e.g. agoric-3
|
|
9
|
-
* @property {string[]} [apiAddrs] overrides for REST endpoints of RPC servers https://docs.cosmos.network/main/run-node/interact-node#using-the-rest-endpoints
|
|
10
|
-
* @property {string} [gci] - "global chain identifier", a hash of the genesis block
|
|
11
|
-
* @property {string[]} [peers] - a list of nodes used to start the p2p gossip (stored in a per-node “address book”, which is a file stored in that node’s data directory)
|
|
12
|
-
* @property {string[]} [seeds] - nodes which tell you about other peers but don't gossip actual data
|
|
13
|
-
*/
|
|
14
|
-
export const NetworkConfigShape: import("@endo/patterns").Matcher;
|
|
15
|
-
export function assertNetworkConfig(specimen: unknown): asserts specimen is NetworkConfig;
|
|
16
|
-
/**
|
|
17
|
-
* `peers` and `seeds` are only used for configuring full nodes participating in
|
|
18
|
-
* the chain’s p2p network, not for rpc clients. The `gci` is needed for rpc
|
|
19
|
-
* “light clients” to prove the ancestry of data fetched from the rpc node.
|
|
20
|
-
*/
|
|
21
|
-
export type NetworkConfig = {
|
|
22
|
-
/**
|
|
23
|
-
* endpoints serving https://docs.tendermint.com/v0.34/rpc/
|
|
24
|
-
*/
|
|
25
|
-
rpcAddrs: string[];
|
|
26
|
-
/**
|
|
27
|
-
* e.g. agoric-3
|
|
28
|
-
*/
|
|
29
|
-
chainName: string;
|
|
30
|
-
/**
|
|
31
|
-
* overrides for REST endpoints of RPC servers https://docs.cosmos.network/main/run-node/interact-node#using-the-rest-endpoints
|
|
32
|
-
*/
|
|
33
|
-
apiAddrs?: string[] | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* - "global chain identifier", a hash of the genesis block
|
|
36
|
-
*/
|
|
37
|
-
gci?: string | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* - a list of nodes used to start the p2p gossip (stored in a per-node “address book”, which is a file stored in that node’s data directory)
|
|
40
|
-
*/
|
|
41
|
-
peers?: string[] | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* - nodes which tell you about other peers but don't gossip actual data
|
|
44
|
-
*/
|
|
45
|
-
seeds?: string[] | undefined;
|
|
46
|
-
};
|
|
47
|
-
//# sourceMappingURL=netconfig.d.ts.map
|
package/src/netconfig.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"netconfig.d.ts","sourceRoot":"","sources":["netconfig.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AACH,kEAWE;AAQK,8CAJI,OAAO,GACL,QAAQ,QAAQ,IAAI,aAAa,CAIL;;;;;;;;;;cA3B3B,MAAM,EAAE;;;;eACR,MAAM"}
|
package/src/shuffle.d.ts
DELETED
package/src/shuffle.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shuffle.d.ts","sourceRoot":"","sources":["shuffle.js"],"names":[],"mappings":"AAMO,wBAHM,CAAC,KACH,KAAK,CAAC,CAAC,CAAC,QASlB"}
|
package/src/types.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
export type LeaderOptions = {
|
|
2
|
-
retryCallback?: ((where: string, err: any, attempt?: number) => Promise<void>) | null | undefined;
|
|
3
|
-
jitter?: ((where: string) => Promise<void>) | undefined;
|
|
4
|
-
keepPolling?: ((where: string) => Promise<boolean>) | undefined;
|
|
5
|
-
};
|
|
6
|
-
export type CastingChange = {
|
|
7
|
-
blockHeight?: number | undefined;
|
|
8
|
-
values: Uint8Array[];
|
|
9
|
-
};
|
|
10
|
-
export type Leader = {
|
|
11
|
-
retry: (where: string, error: any, attempt?: number) => Promise<void>;
|
|
12
|
-
jitter: (where: string) => Promise<void>;
|
|
13
|
-
getOptions: () => LeaderOptions;
|
|
14
|
-
mapEndpoints: <T>(where: string, callback: (endpoint: string) => Promise<T>) => Promise<T[]>;
|
|
15
|
-
watchCasting: (spec: ERef<CastingSpec>) => Promise<Follower<CastingChange>>;
|
|
16
|
-
};
|
|
17
|
-
export type LeaderOrMaker = ERef<Leader> | (() => ERef<Leader>);
|
|
18
|
-
export type Follower<T> = {
|
|
19
|
-
getLatestIterable: () => Promise<AsyncIterable<T>>;
|
|
20
|
-
getEachIterable: (options?: IterateEachOptions) => Promise<AsyncIterable<T>>;
|
|
21
|
-
getReverseIterable: (options?: IterateEachOptions) => Promise<AsyncIterable<T>>;
|
|
22
|
-
};
|
|
23
|
-
export type ValueFollowerBase = {
|
|
24
|
-
blockHeight: number;
|
|
25
|
-
currentBlockHeight: number;
|
|
26
|
-
};
|
|
27
|
-
export type ValueFollowerElement<T> = ValueFollowerBase & ({
|
|
28
|
-
value: T;
|
|
29
|
-
} | {
|
|
30
|
-
value: undefined;
|
|
31
|
-
error: any;
|
|
32
|
-
});
|
|
33
|
-
export type Unserializer = Pick<Marshal<unknown>, "fromCapData" | "unserialize">;
|
|
34
|
-
export type Crasher = {
|
|
35
|
-
crash: (...args: unknown[]) => void;
|
|
36
|
-
};
|
|
37
|
-
export type FollowerOptions = {
|
|
38
|
-
unserializer?: FarRef<Unserializer> | null | undefined;
|
|
39
|
-
decode?: ((text: string) => any) | undefined;
|
|
40
|
-
proof?: "none" | "strict" | "optimistic" | undefined;
|
|
41
|
-
crasher?: FarRef<Crasher> | undefined;
|
|
42
|
-
};
|
|
43
|
-
export type CastingSpec = {
|
|
44
|
-
storeName?: string | undefined;
|
|
45
|
-
storeSubkey?: Uint8Array<ArrayBufferLike> | undefined;
|
|
46
|
-
dataPrefixBytes?: Uint8Array<ArrayBufferLike> | undefined;
|
|
47
|
-
noDataValue?: Uint8Array<ArrayBufferLike> | undefined;
|
|
48
|
-
subscription?: ERef<Subscription<any>> | undefined;
|
|
49
|
-
notifier?: ERef<Notifier<any>> | undefined;
|
|
50
|
-
};
|
|
51
|
-
export type IterateEachOptions = {
|
|
52
|
-
height?: number | undefined;
|
|
53
|
-
};
|
|
54
|
-
export type StreamCell<T> = {
|
|
55
|
-
blockHeight: number;
|
|
56
|
-
values: Array<T>;
|
|
57
|
-
};
|
|
58
|
-
import type { ERef } from '@agoric/vow';
|
|
59
|
-
import type { Marshal } from '@endo/marshal';
|
|
60
|
-
import type { FarRef } from '@endo/far';
|
|
61
|
-
import type { Subscription } from '@agoric/notifier';
|
|
62
|
-
import type { Notifier } from '@agoric/notifier';
|
|
63
|
-
//# sourceMappingURL=types.d.ts.map
|
package/src/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";6BAY8B,MAAM,OAAO,GAAG,YAAY,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC;sBAC5D,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC;2BACxB,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC;;;;YAMnC,UAAU,EAAE;;;WAKZ,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC;YAC9D,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC;gBAChC,MAAM,aAAa;kBACnB,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,EAAE,CAAC;kBAC9E,CAAC,IAAI,EAAE,KAAK,WAAW,CAAC,KAAK,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;;4BAG7D,KAAK,MAAM,CAAC,GAAG,CAAC,MAAM,KAAK,MAAM,CAAC,CAAC;qBAGpC,CAAC;uBAEA,MAAM,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;qBAC/B,CAAC,OAAO,CAAC,EAAE,kBAAkB,KAAK,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;wBAC3D,CAAC,OAAO,CAAC,EAAE,kBAAkB,KAAK,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;;;iBAK3D,MAAM;wBACN,MAAM;;iCAKP,CAAC,IACD,iBAAiB,GAAG,CAAC;IAAE,KAAK,EAAE,CAAC,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,GAAG,CAAA;CAAE,CAAC;2BAIrE,IAAI,CAAC,QAAQ,OAAO,CAAC,EAAE,aAAa,GAAG,aAAa,CAAC;;WAKpD,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI;;;;qBAMrB,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;uBAqBtB,CAAC;iBAEA,MAAM;YACN,KAAK,CAAC,CAAC,CAAC;;0BAnFC,aAAa;6BAFV,eAAe;4BAChB,WAAW;kCAFK,kBAAkB;8BAAlB,kBAAkB"}
|