@magic-sdk/provider 29.4.3-canary.934.17082270403.0 → 29.4.3-canary.938.17273935610.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.
@@ -3,6 +3,6 @@ export type { MagicSDKAdditionalConfiguration, MagicSDKExtensionsOption } from '
3
3
  export { createSDK } from './core/sdk-environment';
4
4
  export { ViewController } from './core/view-controller';
5
5
  export * from './core/sdk-exceptions';
6
- export { Extension } from './modules/base-extension';
6
+ export { Extension, MultichainExtension } from './modules/base-extension';
7
7
  export type { WithExtensions, InstanceWithExtensions } from './modules/base-extension';
8
8
  export * from './util';
@@ -77,6 +77,15 @@ export declare class Extension {
77
77
  */
78
78
  static Internal: typeof InternalExtension;
79
79
  }
80
+ /**
81
+ * Base class for multi-chain extensions, extracting getPublicAddress logic.
82
+ */
83
+ export declare abstract class MultichainExtension<TName extends string, TConfig extends any = any> extends InternalExtension<TName, TConfig> {
84
+ readonly config: TConfig;
85
+ readonly chain: string;
86
+ constructor(config: TConfig);
87
+ getPublicAddress<ResultType = any>(): Promise<ResultType>;
88
+ }
80
89
  /**
81
90
  * These fields are exposed on the `Extension` type,
82
91
  * but should be hidden from the public interface.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magic-sdk/provider",
3
- "version": "29.4.3-canary.934.17082270403.0",
3
+ "version": "29.4.3-canary.938.17273935610.0",
4
4
  "description": "Core business logic for Magic SDK packages.",
5
5
  "author": "Magic Labs <team@magic.link> (https://magic.link/)",
6
6
  "license": "MIT",
@@ -32,11 +32,11 @@
32
32
  "tslib": "^2.3.1"
33
33
  },
34
34
  "dependencies": {
35
- "@magic-sdk/types": "^24.21.0",
35
+ "@magic-sdk/types": "24.21.1-canary.938.17273935610.0",
36
36
  "eventemitter3": "^4.0.4"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "localforage": "^1.7.4"
40
40
  },
41
- "gitHead": "44f2554f60483c130b9b0933b1c292d41056edda"
41
+ "gitHead": "5cbbaf13866c582086039a11b9dd9b35a2c47c63"
42
42
  }