@agoric/casting 0.4.3-dev-247cc9b.0 → 0.4.3-dev-db4d0ea.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/casting",
3
- "version": "0.4.3-dev-247cc9b.0+247cc9b",
3
+ "version": "0.4.3-dev-db4d0ea.0+db4d0ea",
4
4
  "description": "Agoric's OCap broadcasting system",
5
5
  "type": "module",
6
6
  "main": "src/main.js",
@@ -22,10 +22,10 @@
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/internal": "0.3.3-dev-247cc9b.0+247cc9b",
26
- "@agoric/notifier": "0.6.3-dev-247cc9b.0+247cc9b",
27
- "@agoric/spawner": "0.6.9-dev-247cc9b.0+247cc9b",
28
- "@agoric/store": "0.9.3-dev-247cc9b.0+247cc9b",
25
+ "@agoric/internal": "0.3.3-dev-db4d0ea.0+db4d0ea",
26
+ "@agoric/notifier": "0.6.3-dev-db4d0ea.0+db4d0ea",
27
+ "@agoric/spawner": "0.6.9-dev-db4d0ea.0+db4d0ea",
28
+ "@agoric/store": "0.9.3-dev-db4d0ea.0+db4d0ea",
29
29
  "@cosmjs/encoding": "^0.32.3",
30
30
  "@cosmjs/proto-signing": "^0.32.3",
31
31
  "@cosmjs/stargate": "^0.32.3",
@@ -38,7 +38,7 @@
38
38
  "node-fetch": "^2.6.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@agoric/cosmic-proto": "0.4.1-dev-247cc9b.0+247cc9b",
41
+ "@agoric/cosmic-proto": "0.4.1-dev-db4d0ea.0+db4d0ea",
42
42
  "@endo/ses-ava": "^1.2.0",
43
43
  "@types/node-fetch": "^2.6.2",
44
44
  "ava": "^5.3.0",
@@ -62,5 +62,5 @@
62
62
  "typeCoverage": {
63
63
  "atLeast": 89.6
64
64
  },
65
- "gitHead": "247cc9bb9c7838242d7b217230adffe634f3224c"
65
+ "gitHead": "db4d0eab68a1d361ddbb6fe993ff0b9969a348e5"
66
66
  }
@@ -11,6 +11,6 @@ export function DEFAULT_PATH_CONVERTER(storagePath: string, storeName?: string |
11
11
  export const pathPrefixToConverters: Record<string, (path: string) => import('./types.js').CastingSpec>;
12
12
  export function makeCastingSpecFromString(specString: string): import('./types.js').CastingSpec;
13
13
  export function makeCastingSpecFromObject(specObj: any): import('./types.js').CastingSpec;
14
- export function makeCastingSpecFromRef(specCap: ERef<any>): Promise<import('./types.js').CastingSpec>;
15
- export function makeCastingSpec(sourceP: ERef<unknown>): Promise<import('./types.js').CastingSpec>;
14
+ export function makeCastingSpecFromRef(specCap: any): Promise<import('./types.js').CastingSpec>;
15
+ export function makeCastingSpec(sourceP: unknown): Promise<import('./types.js').CastingSpec>;
16
16
  //# sourceMappingURL=casting-spec.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"casting-spec.d.ts","sourceRoot":"","sources":["casting-spec.js"],"names":[],"mappings":"AA6CO,kEAHI,WAAW,GACT,MAAM,CAYlB;AAlCD;;;;GAIG;AACH,oDAJW,MAAM,mCAEJ,OAAO,YAAY,EAAE,WAAW,CAa5C;AAsBD;;GAEG;AACH,2DAFgC,MAAM,KAAK,OAAO,YAAY,EAAE,WAAW,EAMxE;AAMI,sDAHI,MAAM,GACJ,OAAO,YAAY,EAAE,WAAW,CAc5C;AAQM,mDAHI,GAAG,GACD,OAAO,YAAY,EAAE,WAAW,CAmC5C;AAMM,gDAHI,KAAK,GAAG,CAAC,GACP,QAAQ,OAAO,YAAY,EAAE,WAAW,CAAC,CAKrD;AAQM,yCAHI,KAAK,OAAO,CAAC,GACX,QAAQ,OAAO,YAAY,EAAE,WAAW,CAAC,CAgBrD"}
1
+ {"version":3,"file":"casting-spec.d.ts","sourceRoot":"","sources":["casting-spec.js"],"names":[],"mappings":"AA6CO,kEAHI,WAAW,GACT,MAAM,CAYlB;AAlCD;;;;GAIG;AACH,oDAJW,MAAM,mCAEJ,OAAO,YAAY,EAAE,WAAW,CAa5C;AAsBD;;GAEG;AACH,qCAFU,OAAO,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,YAAY,EAAE,WAAW,CAAC,CAMzE;AAMI,sDAHI,MAAM,GACJ,OAAO,YAAY,EAAE,WAAW,CAc5C;AAQM,mDAHI,GAAG,GACD,OAAO,YAAY,EAAE,WAAW,CAmC5C;AAMM,sDAFM,QAAQ,OAAO,YAAY,EAAE,WAAW,CAAC,CAKrD;AAQM,mDAFM,QAAQ,OAAO,YAAY,EAAE,WAAW,CAAC,CAgBrD"}
package/src/follower.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export function makeFollower<T>(specP: ERef<import('./types.js').CastingSpec> | string, leaderOrMaker?: import("./types.js").LeaderOrMaker | undefined, options?: import("./types.js").FollowerOptions | undefined): Promise<import("./follower-cosmjs.js").ValueFollower<T>>;
1
+ export function makeFollower<T>(specP: string | ERef<import("./types.js").CastingSpec>, leaderOrMaker?: import("./types.js").LeaderOrMaker | undefined, options?: import("./types.js").FollowerOptions | undefined): Promise<import("./follower-cosmjs.js").ValueFollower<T>>;
2
2
  //# sourceMappingURL=follower.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"follower.d.ts","sourceRoot":"","sources":["follower.js"],"names":[],"mappings":"AA4DO,uCALI,KAAK,OAAO,YAAY,EAAE,WAAW,CAAC,GAAG,MAAM,wLAYzD"}
1
+ {"version":3,"file":"follower.d.ts","sourceRoot":"","sources":["follower.js"],"names":[],"mappings":"AA4DO,8QAON"}
@@ -1,4 +1,4 @@
1
1
  export function makeLeaderFromRpcAddresses(rpcAddrs: string[], leaderOptions?: import("./types.js").LeaderOptions | undefined): import('./types.js').Leader;
2
2
  export function makeLeaderFromNetworkConfig(netconfigURL: string, options?: import("./types.js").LeaderOptions | undefined): Promise<any>;
3
- export function makeLeader(bootstrap?: string | undefined, options?: import("./types.js").LeaderOptions | undefined): ERef<import('./types.js').Leader>;
3
+ export function makeLeader(bootstrap?: string | undefined, options?: import("./types.js").LeaderOptions | undefined): ERef<import("./types.js").Leader>;
4
4
  //# sourceMappingURL=leader-netconfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"leader-netconfig.d.ts","sourceRoot":"","sources":["leader-netconfig.js"],"names":[],"mappings":"AAgBO,qDAJI,MAAM,EAAE,mEAEN,OAAO,YAAY,EAAE,MAAM,CAevC;AAMM,0DAHI,MAAM,0EAoChB;AAOM,sHAFM,KAAK,OAAO,YAAY,EAAE,MAAM,CAAC,CAO7C"}
1
+ {"version":3,"file":"leader-netconfig.d.ts","sourceRoot":"","sources":["leader-netconfig.js"],"names":[],"mappings":"AAgBO,qDAJI,MAAM,EAAE,mEAEN,OAAO,YAAY,EAAE,MAAM,CAevC;AAMM,0DAHI,MAAM,0EAoChB;AAOM,wJAKN"}
@@ -1,5 +1,2 @@
1
- export function makeHttpClient(url: string, fetch: ((input: RequestInfo | URL, init?: RequestInit | undefined) => Promise<Response>) & {
2
- (input: RequestInfo | URL, init?: RequestInit | undefined): Promise<Response>;
3
- (input: string | Request | URL, init?: RequestInit | undefined): Promise<Response>;
4
- }): import('@cosmjs/tendermint-rpc').RpcClient;
1
+ export function makeHttpClient(url: string, fetch: typeof window.fetch): import('@cosmjs/tendermint-rpc').RpcClient;
5
2
  //# sourceMappingURL=makeHttpClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"makeHttpClient.d.ts","sourceRoot":"","sources":["makeHttpClient.js"],"names":[],"mappings":"AA2BO,oCAJI,MAAM;;;IAEJ,OAAO,wBAAwB,EAAE,SAAS,CA8BtD"}
1
+ {"version":3,"file":"makeHttpClient.d.ts","sourceRoot":"","sources":["makeHttpClient.js"],"names":[],"mappings":"AA2BO,oCAJI,MAAM,SACN,OAAO,MAAM,CAAC,KAAK,GACjB,OAAO,wBAAwB,EAAE,SAAS,CA8BtD"}
package/src/types.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- export type ERef<T> = import('@endo/far').ERef<T>;
2
1
  export type LeaderOptions = {
3
2
  retryCallback?: ((where: string, err: any, attempt?: number) => Promise<void>) | null | undefined;
4
3
  jitter?: ((where: string) => Promise<void>) | undefined;
@@ -56,4 +55,5 @@ export type StreamCell<T> = {
56
55
  blockHeight: number;
57
56
  values: Array<T>;
58
57
  };
58
+ import type { ERef } from '@endo/far';
59
59
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"sBAO0B,OAAO,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC;;6BAIvB,MAAM,OAAO,GAAG,YAAY,MAAM,KAAK,QAAQ,IAAI,CAAC;sBAC5D,MAAM,KAAK,QAAQ,IAAI,CAAC;2BACxB,MAAM,KAAK,QAAQ,OAAO,CAAC;;;;YAMnC,UAAU,EAAE;;;mBAKJ,MAAM,SAAS,GAAG,YAAY,MAAM,KAAK,QAAQ,IAAI,CAAC;oBACtD,MAAM,KAAK,QAAQ,IAAI,CAAC;gBAChC,MAAM,aAAa;6BACR,MAAM,uBAAuB,MAAM;yBACvC,KAAK,WAAW,CAAC,KAAK,QAAQ,SAAS,aAAa,CAAC,CAAC;;4BAG7D,KAAK,MAAM,CAAC,GAAG,CAAC,MAAM,KAAK,MAAM,CAAC,CAAC;;uBAKnC,MAAM,QAAQ,cAAc,CAAC,CAAC,CAAC;gCACpB,kBAAkB,KAAK,QAAQ,cAAc,CAAC,CAAC,CAAC;mCAChD,kBAAkB,KAAK,QAAQ,cAAc,CAAC,CAAC,CAAC;;;iBAK3D,MAAM;wBACN,MAAM;;sCAMP,iBAAiB,GAAG,CAAC;IAAE,KAAK,EAAE,CAAC,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,GAAG,CAAA;CAAE,CAAC;2BAIrE,KAAK,OAAO,eAAe,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG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,WAAW"}
package/src/types.js CHANGED
@@ -5,7 +5,7 @@ import '@agoric/notifier';
5
5
 
6
6
  export {};
7
7
 
8
- /** @template T @typedef {import('@endo/far').ERef<T>} ERef */
8
+ /** @import { ERef } from '@endo/far' */
9
9
 
10
10
  /**
11
11
  * @typedef {object} LeaderOptions