@ensforge/sdk 0.1.0 → 0.2.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.
Files changed (85) hide show
  1. package/README.md +12 -2
  2. package/dist/batch.d.ts +3 -0
  3. package/dist/batch.js +0 -0
  4. package/dist/capabilities.d.ts +3 -0
  5. package/dist/capabilities.js +0 -0
  6. package/dist/dns.d.ts +3 -0
  7. package/dist/dns.js +0 -0
  8. package/dist/ensforge.d.ts +1 -1
  9. package/dist/ensforge.d.ts.map +1 -1
  10. package/dist/ensforge.js +2 -2
  11. package/dist/ensforge.js.map +1 -1
  12. package/dist/events.d.ts +3 -0
  13. package/dist/events.js +0 -0
  14. package/dist/groups/batch.d.ts +14 -16
  15. package/dist/groups/batch.d.ts.map +1 -1
  16. package/dist/groups/batch.js.map +1 -1
  17. package/dist/groups/capabilities.d.ts +18 -532
  18. package/dist/groups/capabilities.d.ts.map +1 -1
  19. package/dist/groups/capabilities.js.map +1 -1
  20. package/dist/groups/dns.d.ts +14 -75
  21. package/dist/groups/dns.d.ts.map +1 -1
  22. package/dist/groups/dns.js.map +1 -1
  23. package/dist/groups/events.d.ts +7 -62
  24. package/dist/groups/events.d.ts.map +1 -1
  25. package/dist/groups/events.js.map +1 -1
  26. package/dist/groups/index.d.ts +14 -14
  27. package/dist/groups/migration.d.ts +11 -171
  28. package/dist/groups/migration.d.ts.map +1 -1
  29. package/dist/groups/migration.js.map +1 -1
  30. package/dist/groups/name.d.ts +19 -142
  31. package/dist/groups/name.d.ts.map +1 -1
  32. package/dist/groups/name.js.map +1 -1
  33. package/dist/groups/ownership.d.ts +10 -12
  34. package/dist/groups/ownership.d.ts.map +1 -1
  35. package/dist/groups/ownership.js.map +1 -1
  36. package/dist/groups/permissions.d.ts +15 -17
  37. package/dist/groups/permissions.d.ts.map +1 -1
  38. package/dist/groups/permissions.js.map +1 -1
  39. package/dist/groups/records.d.ts +31 -94
  40. package/dist/groups/records.d.ts.map +1 -1
  41. package/dist/groups/records.js.map +1 -1
  42. package/dist/groups/registration.d.ts +19 -253
  43. package/dist/groups/registration.d.ts.map +1 -1
  44. package/dist/groups/registration.js.map +1 -1
  45. package/dist/groups/resolution.d.ts +16 -49
  46. package/dist/groups/resolution.d.ts.map +1 -1
  47. package/dist/groups/resolution.js.map +1 -1
  48. package/dist/groups/reverse.d.ts +9 -14
  49. package/dist/groups/reverse.d.ts.map +1 -1
  50. package/dist/groups/reverse.js.map +1 -1
  51. package/dist/groups/subnames.d.ts +11 -13
  52. package/dist/groups/subnames.d.ts.map +1 -1
  53. package/dist/groups/subnames.js.map +1 -1
  54. package/dist/groups/wrapping.d.ts +11 -13
  55. package/dist/groups/wrapping.d.ts.map +1 -1
  56. package/dist/groups/wrapping.js.map +1 -1
  57. package/dist/index.d.ts +3 -4
  58. package/dist/internal/bind-action.d.ts +13 -5
  59. package/dist/internal/bind-action.d.ts.map +1 -1
  60. package/dist/internal/bind-action.js.map +1 -1
  61. package/dist/migration.d.ts +3 -0
  62. package/dist/migration.js +0 -0
  63. package/dist/name.d.ts +3 -0
  64. package/dist/name.js +0 -0
  65. package/dist/ownership.d.ts +3 -0
  66. package/dist/ownership.js +0 -0
  67. package/dist/permissions.d.ts +3 -0
  68. package/dist/permissions.js +0 -0
  69. package/dist/records.d.ts +3 -0
  70. package/dist/records.js +0 -0
  71. package/dist/registration.d.ts +3 -0
  72. package/dist/registration.js +0 -0
  73. package/dist/resolution.d.ts +3 -0
  74. package/dist/resolution.js +0 -0
  75. package/dist/reverse.d.ts +3 -0
  76. package/dist/reverse.js +0 -0
  77. package/dist/subnames.d.ts +3 -0
  78. package/dist/subnames.js +0 -0
  79. package/dist/wagmi.d.ts +7 -0
  80. package/dist/wagmi.d.ts.map +1 -0
  81. package/dist/wagmi.js +9 -0
  82. package/dist/wagmi.js.map +1 -0
  83. package/dist/wrapping.d.ts +3 -0
  84. package/dist/wrapping.js +0 -0
  85. package/package.json +23 -3
package/README.md CHANGED
@@ -13,7 +13,7 @@ A type-safe client for building ENS applications.
13
13
  ## Installation
14
14
 
15
15
  ```sh
16
- pnpm add @ensforge/sdk
16
+ pnpm add @ensforge/sdk effect@rc viem
17
17
  ```
18
18
 
19
19
  ## Overview
@@ -43,6 +43,14 @@ const text = await sdk.records.getText({ name: "ens.eth", key: "url" });
43
43
  const price = await sdk.registration.getRegistrationPrice({ name: "example.eth", duration });
44
44
  ```
45
45
 
46
+ Import action-specific types from the corresponding group entrypoint. This keeps editor type
47
+ loading focused while method calls remain fully inferred.
48
+
49
+ ```ts
50
+ import type { GetOwnerParameters } from "@ensforge/sdk/name";
51
+ import type { SetTextParameters } from "@ensforge/sdk/records";
52
+ ```
53
+
46
54
  Compatible reads can be executed together:
47
55
 
48
56
  ```ts
@@ -56,7 +64,9 @@ const profile = await sdk.batch.readBatch({
56
64
  Use an existing Wagmi config instead of supplying viem clients:
57
65
 
58
66
  ```ts
59
- const sdk = new Ensforge({
67
+ import { createEnsforge } from "@ensforge/sdk/wagmi";
68
+
69
+ const sdk = createEnsforge({
60
70
  network: "mainnet",
61
71
  wagmiConfig,
62
72
  });
@@ -0,0 +1,3 @@
1
+ import { BatchActions } from "./groups/batch.js";
2
+ export type * from "@ensforge/core/batch";
3
+ export type { BatchActions };
package/dist/batch.js ADDED
File without changes
@@ -0,0 +1,3 @@
1
+ import { CapabilitiesActions } from "./groups/capabilities.js";
2
+ export type * from "@ensforge/core/capabilities";
3
+ export type { CapabilitiesActions };
File without changes
package/dist/dns.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { DnsActions } from "./groups/dns.js";
2
+ export type * from "@ensforge/core/dns";
3
+ export type { DnsActions };
package/dist/dns.js ADDED
File without changes
@@ -31,7 +31,7 @@ declare class Ensforge {
31
31
  readonly reverse: ReverseActions;
32
32
  readonly subnames: SubnameActions;
33
33
  readonly wrapping: WrappingActions;
34
- constructor(parameters: CreateConfigParameters);
34
+ constructor(parameters: CreateConfigParameters | EnsforgeConfig);
35
35
  }
36
36
  //#endregion
37
37
  export { Ensforge };
@@ -1 +1 @@
1
- {"version":3,"file":"ensforge.d.ts","names":[],"sources":["../src/ensforge.ts"],"mappings":";;;;;;;;;;;;;;;;;cAiCa;WACF,QAAQ;WACR,OAAO;WACP,cAAc;WACd,KAAK;WACL,QAAQ;WACR,WAAW;WACX,MAAM;WACN,WAAW;WACX,aAAa;WACb,SAAS;WACT,cAAc;WACd,YAAY;WACZ,SAAS;WACT,UAAU;WACV,UAAU;EAEP,YAAA,YAAY"}
1
+ {"version":3,"file":"ensforge.d.ts","names":[],"sources":["../src/ensforge.ts"],"mappings":";;;;;;;;;;;;;;;;;cAsCa;WACF,QAAQ;WACR,OAAO;WACP,cAAc;WACd,KAAK;WACL,QAAQ;WACR,WAAW;WACX,MAAM;WACN,WAAW;WACX,aAAa;WACb,SAAS;WACT,cAAc;WACd,YAAY;WACZ,SAAS;WACT,UAAU;WACV,UAAU;EAEP,YAAA,YAAY,yBAAyB"}
package/dist/ensforge.js CHANGED
@@ -12,7 +12,7 @@ import { makeResolutionActions } from "./groups/resolution.js";
12
12
  import { makeReverseActions } from "./groups/reverse.js";
13
13
  import { makeSubnameActions } from "./groups/subnames.js";
14
14
  import { makeWrappingActions } from "./groups/wrapping.js";
15
- import { createConfig } from "@ensforge/core";
15
+ import { EnsforgeConfigTypeId, createConfig } from "@ensforge/core";
16
16
 
17
17
  //#region src/ensforge.ts
18
18
  var Ensforge = class {
@@ -32,7 +32,7 @@ var Ensforge = class {
32
32
  subnames;
33
33
  wrapping;
34
34
  constructor(parameters) {
35
- const config = createConfig(parameters);
35
+ const config = EnsforgeConfigTypeId in parameters ? parameters : createConfig(parameters);
36
36
  this.config = config;
37
37
  this.batch = makeBatchActions(config);
38
38
  this.capabilities = makeCapabilitiesActions(config);
@@ -1 +1 @@
1
- {"version":3,"file":"ensforge.js","names":[],"sources":["../src/ensforge.ts"],"sourcesContent":["import { createConfig, type CreateConfigParameters, type EnsforgeConfig } from \"@ensforge/core\";\n\nimport {\n makeBatchActions,\n makeCapabilitiesActions,\n makeDnsActions,\n makeEventsActions,\n makeMigrationActions,\n makeNameActions,\n makeOwnershipActions,\n makePermissionsActions,\n makeRecordsActions,\n makeRegistrationActions,\n makeResolutionActions,\n makeReverseActions,\n makeSubnameActions,\n makeWrappingActions,\n type BatchActions,\n type CapabilitiesActions,\n type DnsActions,\n type EventsActions,\n type MigrationActions,\n type NameActions,\n type OwnershipActions,\n type PermissionsActions,\n type RecordsActions,\n type RegistrationActions,\n type ResolutionActions,\n type ReverseActions,\n type SubnameActions,\n type WrappingActions,\n} from \"./groups/index.js\";\n\nexport class Ensforge {\n readonly config: EnsforgeConfig;\n readonly batch: BatchActions;\n readonly capabilities: CapabilitiesActions;\n readonly dns: DnsActions;\n readonly events: EventsActions;\n readonly migration: MigrationActions;\n readonly name: NameActions;\n readonly ownership: OwnershipActions;\n readonly permissions: PermissionsActions;\n readonly records: RecordsActions;\n readonly registration: RegistrationActions;\n readonly resolution: ResolutionActions;\n readonly reverse: ReverseActions;\n readonly subnames: SubnameActions;\n readonly wrapping: WrappingActions;\n\n constructor(parameters: CreateConfigParameters) {\n const config = createConfig(parameters);\n\n this.config = config;\n this.batch = makeBatchActions(config);\n this.capabilities = makeCapabilitiesActions(config);\n this.dns = makeDnsActions(config);\n this.events = makeEventsActions(config);\n this.migration = makeMigrationActions(config);\n this.name = makeNameActions(config);\n this.ownership = makeOwnershipActions(config);\n this.permissions = makePermissionsActions(config);\n this.records = makeRecordsActions(config);\n this.registration = makeRegistrationActions(config);\n this.resolution = makeResolutionActions(config);\n this.reverse = makeReverseActions(config);\n this.subnames = makeSubnameActions(config);\n this.wrapping = makeWrappingActions(config);\n\n Object.freeze(this);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAiCA,IAAa,WAAb,MAAsB;CACpB,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CAET,YAAY,YAAoC;EAC9C,MAAM,SAAS,aAAa,UAAU;EAEtC,KAAK,SAAS;EACd,KAAK,QAAQ,iBAAiB,MAAM;EACpC,KAAK,eAAe,wBAAwB,MAAM;EAClD,KAAK,MAAM,eAAe,MAAM;EAChC,KAAK,SAAS,kBAAkB,MAAM;EACtC,KAAK,YAAY,qBAAqB,MAAM;EAC5C,KAAK,OAAO,gBAAgB,MAAM;EAClC,KAAK,YAAY,qBAAqB,MAAM;EAC5C,KAAK,cAAc,uBAAuB,MAAM;EAChD,KAAK,UAAU,mBAAmB,MAAM;EACxC,KAAK,eAAe,wBAAwB,MAAM;EAClD,KAAK,aAAa,sBAAsB,MAAM;EAC9C,KAAK,UAAU,mBAAmB,MAAM;EACxC,KAAK,WAAW,mBAAmB,MAAM;EACzC,KAAK,WAAW,oBAAoB,MAAM;EAE1C,OAAO,OAAO,IAAI;CACpB;AACF"}
1
+ {"version":3,"file":"ensforge.js","names":[],"sources":["../src/ensforge.ts"],"sourcesContent":["import {\n createConfig,\n EnsforgeConfigTypeId,\n type CreateConfigParameters,\n type EnsforgeConfig,\n} from \"@ensforge/core\";\n\nimport {\n makeBatchActions,\n makeCapabilitiesActions,\n makeDnsActions,\n makeEventsActions,\n makeMigrationActions,\n makeNameActions,\n makeOwnershipActions,\n makePermissionsActions,\n makeRecordsActions,\n makeRegistrationActions,\n makeResolutionActions,\n makeReverseActions,\n makeSubnameActions,\n makeWrappingActions,\n type BatchActions,\n type CapabilitiesActions,\n type DnsActions,\n type EventsActions,\n type MigrationActions,\n type NameActions,\n type OwnershipActions,\n type PermissionsActions,\n type RecordsActions,\n type RegistrationActions,\n type ResolutionActions,\n type ReverseActions,\n type SubnameActions,\n type WrappingActions,\n} from \"./groups/index.js\";\n\nexport class Ensforge {\n readonly config: EnsforgeConfig;\n readonly batch: BatchActions;\n readonly capabilities: CapabilitiesActions;\n readonly dns: DnsActions;\n readonly events: EventsActions;\n readonly migration: MigrationActions;\n readonly name: NameActions;\n readonly ownership: OwnershipActions;\n readonly permissions: PermissionsActions;\n readonly records: RecordsActions;\n readonly registration: RegistrationActions;\n readonly resolution: ResolutionActions;\n readonly reverse: ReverseActions;\n readonly subnames: SubnameActions;\n readonly wrapping: WrappingActions;\n\n constructor(parameters: CreateConfigParameters | EnsforgeConfig) {\n const config = EnsforgeConfigTypeId in parameters ? parameters : createConfig(parameters);\n\n this.config = config;\n this.batch = makeBatchActions(config);\n this.capabilities = makeCapabilitiesActions(config);\n this.dns = makeDnsActions(config);\n this.events = makeEventsActions(config);\n this.migration = makeMigrationActions(config);\n this.name = makeNameActions(config);\n this.ownership = makeOwnershipActions(config);\n this.permissions = makePermissionsActions(config);\n this.records = makeRecordsActions(config);\n this.registration = makeRegistrationActions(config);\n this.resolution = makeResolutionActions(config);\n this.reverse = makeReverseActions(config);\n this.subnames = makeSubnameActions(config);\n this.wrapping = makeWrappingActions(config);\n\n Object.freeze(this);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAsCA,IAAa,WAAb,MAAsB;CACpB,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CACT,AAAS;CAET,YAAY,YAAqD;EAC/D,MAAM,SAAS,wBAAwB,aAAa,aAAa,aAAa,UAAU;EAExF,KAAK,SAAS;EACd,KAAK,QAAQ,iBAAiB,MAAM;EACpC,KAAK,eAAe,wBAAwB,MAAM;EAClD,KAAK,MAAM,eAAe,MAAM;EAChC,KAAK,SAAS,kBAAkB,MAAM;EACtC,KAAK,YAAY,qBAAqB,MAAM;EAC5C,KAAK,OAAO,gBAAgB,MAAM;EAClC,KAAK,YAAY,qBAAqB,MAAM;EAC5C,KAAK,cAAc,uBAAuB,MAAM;EAChD,KAAK,UAAU,mBAAmB,MAAM;EACxC,KAAK,eAAe,wBAAwB,MAAM;EAClD,KAAK,aAAa,sBAAsB,MAAM;EAC9C,KAAK,UAAU,mBAAmB,MAAM;EACxC,KAAK,WAAW,mBAAmB,MAAM;EACzC,KAAK,WAAW,oBAAoB,MAAM;EAE1C,OAAO,OAAO,IAAI;CACpB;AACF"}
@@ -0,0 +1,3 @@
1
+ import { EventsActions } from "./groups/events.js";
2
+ export type * from "@ensforge/core/events";
3
+ export type { EventsActions };
package/dist/events.js ADDED
File without changes
@@ -1,20 +1,18 @@
1
1
  import { BoundAction, BoundReadBatch, BoundReadBatchSettled } from "../internal/bind-action.js";
2
- import "../index.js";
3
- import { EnsforgeConfig } from "@ensforge/core";
2
+ import { EnsforgeConfig, estimateCalls, executeWritePlan, getCallsStatus, getWalletCapabilities, prepareCalls, resumeCalls, sendCalls, simulateCalls } from "@ensforge/core";
4
3
  //#region src/groups/batch.d.ts
5
- declare const makeBatchActions: (config: EnsforgeConfig) => Readonly<{
6
- estimateCalls: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").EstimateCallsParameters, import("@ensforge/core").EstimateCallsResult, import("@ensforge/core").WriteError>>;
7
- executeWritePlan: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").ExecuteWritePlanParameters, import("@ensforge/core").WritePlanProgress, import("@ensforge/core").WriteError>>;
8
- getCallsStatus: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").GetCallsStatusParameters, import("@ensforge/core").CallsStatusResult, import("@ensforge/core").WriteError>>;
9
- getWalletCapabilities: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").GetWalletCapabilitiesParameters, import("@ensforge/core").WalletCapabilitiesResult, import("@ensforge/core").ConfigError | import("@ensforge/core").WalletError>>;
10
- prepareCalls: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").PrepareCallsParameters, readonly import("@ensforge/core").PreparedWriteCall[], import("@ensforge/core").WriteError>>;
11
- readBatch: BoundReadBatch;
12
- readBatchSettled: BoundReadBatchSettled;
13
- resumeCalls: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").ResumeCallsParameters, import("@ensforge/core").NativeBatchResult, import("@ensforge/core").WriteError>>;
14
- sendCalls: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").SendCallsParameters, import("@ensforge/core").SendCallsResult, import("@ensforge/core").WriteError>>;
15
- simulateCalls: BoundAction<import("@ensforge/core").EnsAction<import("@ensforge/core").SimulateCallsParameters, readonly import("@ensforge/core").SimulatedWriteCall[], import("@ensforge/core").WriteError>>;
16
- }>;
17
- type BatchActions = ReturnType<typeof makeBatchActions>;
4
+ interface BatchActions {
5
+ readonly estimateCalls: BoundAction<typeof estimateCalls>;
6
+ readonly executeWritePlan: BoundAction<typeof executeWritePlan>;
7
+ readonly getCallsStatus: BoundAction<typeof getCallsStatus>;
8
+ readonly getWalletCapabilities: BoundAction<typeof getWalletCapabilities>;
9
+ readonly prepareCalls: BoundAction<typeof prepareCalls>;
10
+ readonly readBatch: BoundReadBatch;
11
+ readonly readBatchSettled: BoundReadBatchSettled;
12
+ readonly resumeCalls: BoundAction<typeof resumeCalls>;
13
+ readonly sendCalls: BoundAction<typeof sendCalls>;
14
+ readonly simulateCalls: BoundAction<typeof simulateCalls>;
15
+ }
18
16
  //#endregion
19
- export { BatchActions, makeBatchActions };
17
+ export { BatchActions };
20
18
  //# sourceMappingURL=batch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"batch.d.ts","names":[],"sources":["../../src/groups/batch.ts"],"mappings":";;;;cAgBa,mBAAoB,QAAQ,mBAAc;iBAAd;;;;;;;;;;;KAc7B,eAAe,kBAAkB"}
1
+ {"version":3,"file":"batch.d.ts","names":[],"sources":["../../src/groups/batch.ts"],"mappings":";;;UAqBiB;WACN,eAAe,mBAAmB;WAClC,kBAAkB,mBAAmB;WACrC,gBAAgB,mBAAmB;WACnC,uBAAuB,mBAAmB;WAC1C,cAAc,mBAAmB;WACjC,WAAW;WACX,kBAAkB;WAClB,aAAa,mBAAmB;WAChC,WAAW,mBAAmB;WAC9B,eAAe,mBAAmB"}
@@ -1 +1 @@
1
- {"version":3,"file":"batch.js","names":[],"sources":["../../src/groups/batch.ts"],"sourcesContent":["import {\n estimateCalls,\n executeWritePlan,\n getCallsStatus,\n getWalletCapabilities,\n prepareCalls,\n readBatch,\n readBatchSettled,\n resumeCalls,\n sendCalls,\n simulateCalls,\n type EnsforgeConfig,\n} from \"@ensforge/core\";\n\nimport { bindAction } from \"../internal/bind-action.js\";\n\nexport const makeBatchActions = (config: EnsforgeConfig) =>\n Object.freeze({\n estimateCalls: bindAction(config, estimateCalls),\n executeWritePlan: bindAction(config, executeWritePlan),\n getCallsStatus: bindAction(config, getCallsStatus),\n getWalletCapabilities: bindAction(config, getWalletCapabilities),\n prepareCalls: bindAction(config, prepareCalls),\n readBatch: bindAction(config, readBatch),\n readBatchSettled: bindAction(config, readBatchSettled),\n resumeCalls: bindAction(config, resumeCalls),\n sendCalls: bindAction(config, sendCalls),\n simulateCalls: bindAction(config, simulateCalls),\n });\n\nexport type BatchActions = ReturnType<typeof makeBatchActions>;\n"],"mappings":";;;;AAgBA,MAAa,oBAAoB,WAC/B,OAAO,OAAO;CACZ,eAAe,WAAW,QAAQ,aAAa;CAC/C,kBAAkB,WAAW,QAAQ,gBAAgB;CACrD,gBAAgB,WAAW,QAAQ,cAAc;CACjD,uBAAuB,WAAW,QAAQ,qBAAqB;CAC/D,cAAc,WAAW,QAAQ,YAAY;CAC7C,WAAW,WAAW,QAAQ,SAAS;CACvC,kBAAkB,WAAW,QAAQ,gBAAgB;CACrD,aAAa,WAAW,QAAQ,WAAW;CAC3C,WAAW,WAAW,QAAQ,SAAS;CACvC,eAAe,WAAW,QAAQ,aAAa;AACjD,CAAC"}
1
+ {"version":3,"file":"batch.js","names":[],"sources":["../../src/groups/batch.ts"],"sourcesContent":["import {\n estimateCalls,\n executeWritePlan,\n getCallsStatus,\n getWalletCapabilities,\n prepareCalls,\n readBatch,\n readBatchSettled,\n resumeCalls,\n sendCalls,\n simulateCalls,\n type EnsforgeConfig,\n} from \"@ensforge/core\";\n\nimport {\n bindAction,\n type BoundAction,\n type BoundReadBatch,\n type BoundReadBatchSettled,\n} from \"../internal/bind-action.js\";\n\nexport interface BatchActions {\n readonly estimateCalls: BoundAction<typeof estimateCalls>;\n readonly executeWritePlan: BoundAction<typeof executeWritePlan>;\n readonly getCallsStatus: BoundAction<typeof getCallsStatus>;\n readonly getWalletCapabilities: BoundAction<typeof getWalletCapabilities>;\n readonly prepareCalls: BoundAction<typeof prepareCalls>;\n readonly readBatch: BoundReadBatch;\n readonly readBatchSettled: BoundReadBatchSettled;\n readonly resumeCalls: BoundAction<typeof resumeCalls>;\n readonly sendCalls: BoundAction<typeof sendCalls>;\n readonly simulateCalls: BoundAction<typeof simulateCalls>;\n}\n\nexport const makeBatchActions = (config: EnsforgeConfig): BatchActions =>\n Object.freeze({\n estimateCalls: bindAction(config, estimateCalls),\n executeWritePlan: bindAction(config, executeWritePlan),\n getCallsStatus: bindAction(config, getCallsStatus),\n getWalletCapabilities: bindAction(config, getWalletCapabilities),\n prepareCalls: bindAction(config, prepareCalls),\n readBatch: bindAction(config, readBatch),\n readBatchSettled: bindAction(config, readBatchSettled),\n resumeCalls: bindAction(config, resumeCalls),\n sendCalls: bindAction(config, sendCalls),\n simulateCalls: bindAction(config, simulateCalls),\n });\n"],"mappings":";;;;AAkCA,MAAa,oBAAoB,WAC/B,OAAO,OAAO;CACZ,eAAe,WAAW,QAAQ,aAAa;CAC/C,kBAAkB,WAAW,QAAQ,gBAAgB;CACrD,gBAAgB,WAAW,QAAQ,cAAc;CACjD,uBAAuB,WAAW,QAAQ,qBAAqB;CAC/D,cAAc,WAAW,QAAQ,YAAY;CAC7C,WAAW,WAAW,QAAQ,SAAS;CACvC,kBAAkB,WAAW,QAAQ,gBAAgB;CACrD,aAAa,WAAW,QAAQ,WAAW;CAC3C,WAAW,WAAW,QAAQ,SAAS;CACvC,eAAe,WAAW,QAAQ,aAAa;AACjD,CAAC"}