@hub3js/evm 0.1.1-next.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/CHANGELOG.md ADDED
File without changes
@@ -0,0 +1,8 @@
1
+ import type { ConnectOptions, EvmActions, ProviderAPI } from './types.js';
2
+ import type { CanEagerConnect, Context, FunctionWithContext } from '@hub3js/core';
3
+ export declare const recommended: (readonly ["disconnect", typeof import("@hub3js/std/actions").disconnect])[];
4
+ export declare function connect(instance: () => ProviderAPI, options?: ConnectOptions): FunctionWithContext<EvmActions['connect'], Context>;
5
+ export declare function canEagerConnect(instance: () => ProviderAPI | undefined): CanEagerConnect<EvmActions>;
6
+ export declare function canSwitchNetwork(): FunctionWithContext<EvmActions['canSwitchNetwork'], Context>;
7
+ export declare function getChainId(instance: () => ProviderAPI | undefined): FunctionWithContext<EvmActions['getChainId'], Context>;
8
+ //# sourceMappingURL=actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,UAAU,EAEV,WAAW,EACZ,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EACV,eAAe,EACf,OAAO,EACP,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAWtB,eAAO,MAAM,WAAW,8EAA0B,CAAC;AACnD,wBAAgB,OAAO,CACrB,QAAQ,EAAE,MAAM,WAAW,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,mBAAmB,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,CA2DrD;AAED,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,WAAW,GAAG,SAAS,GACtC,eAAe,CAAC,UAAU,CAAC,CAsB7B;AACD,wBAAgB,gBAAgB,IAAI,mBAAmB,CACrD,UAAU,CAAC,kBAAkB,CAAC,EAC9B,OAAO,CACR,CAKA;AAED,wBAAgB,UAAU,CACxB,QAAQ,EAAE,MAAM,WAAW,GAAG,SAAS,GACtC,mBAAmB,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC,CAYxD"}
@@ -0,0 +1,2 @@
1
+ export declare const recommended: (readonly ["connect", typeof import("@hub3js/std/operators").intoConnectionFinished])[];
2
+ //# sourceMappingURL=after.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"after.d.ts","sourceRoot":"","sources":["../src/after.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,yFAAwB,CAAC"}
package/dist/and.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { connectAndUpdateStateForMultiNetworks } from '@hub3js/std/operators';
2
+ export declare const recommended: (readonly ["connect", typeof connectAndUpdateStateForMultiNetworks])[];
3
+ //# sourceMappingURL=and.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"and.d.ts","sourceRoot":"","sources":["../src/and.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,uBAAuB,CAAC;AAE9E,eAAO,MAAM,WAAW,wEAEvB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const recommended: (readonly ["connect", typeof import("@hub3js/std/operators").intoConnecting])[];
2
+ //# sourceMappingURL=before.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"before.d.ts","sourceRoot":"","sources":["../src/before.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,iFAAyB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { EvmActions, ProviderAPI } from './types.js';
2
+ import { ActionBuilder } from '@hub3js/core';
3
+ import { ChangeAccountSubscriberBuilder } from '@hub3js/std/hooks';
4
+ export declare const connect: () => ActionBuilder<EvmActions, "connect">;
5
+ export declare const canEagerConnect: () => ActionBuilder<EvmActions, "canEagerConnect">;
6
+ export declare const canSwitchNetwork: () => ActionBuilder<EvmActions, "canSwitchNetwork">;
7
+ export declare const changeAccountSubscriber: (getInstance: () => ProviderAPI) => ChangeAccountSubscriberBuilder<string[], import("./eip1193.js").EIP1193Provider, EvmActions>;
8
+ export declare const getChainId: () => ActionBuilder<EvmActions, "getChainId">;
9
+ //# sourceMappingURL=builders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builders.d.ts","sourceRoot":"","sources":["../src/builders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE1D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAUnE,eAAO,MAAM,OAAO,4CAIc,CAAC;AAEnC,eAAO,MAAM,eAAe,oDACyC,CAAC;AACtE,eAAO,MAAM,gBAAgB,qDAC0C,CAAC;AAGxE,eAAO,MAAM,uBAAuB,gBAAiB,MAAM,WAAW,iGAuBhE,CAAC;AAEP,eAAO,MAAM,UAAU,+CACoC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const CAIP_NAMESPACE = "eip155";
2
+ export declare const CAIP_ETHEREUM_CHAIN_ID = "1";
3
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,WAAW,CAAC;AACvC,eAAO,MAAM,sBAAsB,MAAM,CAAC"}