@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 +0 -0
- package/dist/actions.d.ts +8 -0
- package/dist/actions.d.ts.map +1 -0
- package/dist/after.d.ts +2 -0
- package/dist/after.d.ts.map +1 -0
- package/dist/and.d.ts +3 -0
- package/dist/and.d.ts.map +1 -0
- package/dist/before.d.ts +2 -0
- package/dist/before.d.ts.map +1 -0
- package/dist/builders.d.ts +9 -0
- package/dist/builders.d.ts.map +1 -0
- package/dist/constants.d.ts +3 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/eip1193.d.ts +1229 -0
- package/dist/eip1193.d.ts.map +1 -0
- package/dist/hooks.d.ts +5 -0
- package/dist/hooks.d.ts.map +1 -0
- package/dist/mod.d.ts +10 -0
- package/dist/mod.d.ts.map +1 -0
- package/dist/mod.js +2 -0
- package/dist/mod.js.map +7 -0
- package/dist/types.d.ts +27 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils.d.ts +13 -0
- package/dist/utils.d.ts.map +1 -0
- package/package.json +1 -0
- package/readme.md +3 -0
- package/src/actions.ts +136 -0
- package/src/after.ts +3 -0
- package/src/and.ts +5 -0
- package/src/before.ts +3 -0
- package/src/builders.ts +52 -0
- package/src/constants.ts +2 -0
- package/src/eip1193.ts +1415 -0
- package/src/hooks.ts +43 -0
- package/src/mod.ts +10 -0
- package/src/types.ts +36 -0
- package/src/utils.ts +106 -0
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"}
|
package/dist/after.d.ts
ADDED
|
@@ -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 @@
|
|
|
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"}
|
package/dist/before.d.ts
ADDED
|
@@ -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 @@
|
|
|
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"}
|