@alephium/get-extension-wallet 0.11.6 → 0.12.0-test.2

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 (2) hide show
  1. package/dist/types.d.ts +13 -0
  2. package/package.json +2 -2
package/dist/types.d.ts CHANGED
@@ -1,5 +1,17 @@
1
1
  import { Account, EnableOptionsBase, InteractiveSignerProvider, NetworkId } from '@alephium/web3';
2
2
  export type EnableOptions = EnableOptionsBase;
3
+ export interface AddNewTokenParameters {
4
+ id: string;
5
+ networkId: string;
6
+ symbol: string;
7
+ decimals: number;
8
+ name: string;
9
+ logoURI?: string;
10
+ }
11
+ export declare type RequestMessage = {
12
+ type: "AddNewToken";
13
+ params: AddNewTokenParameters;
14
+ };
3
15
  export declare abstract class AlephiumWindowObject extends InteractiveSignerProvider<EnableOptions> {
4
16
  abstract id: string;
5
17
  abstract name: string;
@@ -9,6 +21,7 @@ export declare abstract class AlephiumWindowObject extends InteractiveSignerProv
9
21
  enableIfConnected: (options: EnableOptions) => Promise<Account | undefined>;
10
22
  abstract get connectedAccount(): Account | undefined;
11
23
  abstract get connectedNetworkId(): NetworkId | undefined;
24
+ abstract request: (message: RequestMessage) => Promise<boolean>;
12
25
  }
13
26
  export type WalletProvider = {
14
27
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alephium/get-extension-wallet",
3
- "version": "0.11.6",
3
+ "version": "0.12.0-test.2",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "bowser": "^2.11.0",
47
- "@alephium/web3": "^0.11.6"
47
+ "@alephium/web3": "^0.12.0-test.2"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "rollup -c",