@binance/w3w-multichain-connector 1.0.13 → 1.0.16

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/dist/index.d.ts CHANGED
@@ -51,10 +51,12 @@ interface SASAuthorizeInfo {
51
51
  }
52
52
  interface SASAuthorizeInfoItem {
53
53
  chain: 'evm' | 'sol';
54
+ binanceChainId: string;
54
55
  encryptedKeyShareB: string;
55
56
  encryptedKeyShareAData: string;
56
57
  publicKey: string;
57
58
  spsVersion: string;
59
+ userPublicKeyHex: string;
58
60
  }
59
61
  interface WalletEvents {
60
62
  walletLockedChanged: (isLocked: boolean) => void;
@@ -71,7 +73,11 @@ interface IWallet extends EventEmitter<WalletEvents> {
71
73
  requestConnectWithSAS(args: {
72
74
  binanceChainIds: string[];
73
75
  userId: string;
74
- enabledWalletIds: string[];
76
+ enabledWalletInfo: {
77
+ walletType: 'SEED_PHRASE' | 'PRIVATE_KEY';
78
+ chain: string;
79
+ userPublicKeyHex: string;
80
+ }[];
75
81
  }): Promise<{
76
82
  wallet: IConnectedWallet;
77
83
  aggreeEnableSAS: boolean;
@@ -96,13 +102,7 @@ interface IWallet extends EventEmitter<WalletEvents> {
96
102
  walletIds: string[];
97
103
  userId: string;
98
104
  spsVersion: string;
99
- isSlient?: false;
100
- }): Promise<SASAuthorizeInfo[]>;
101
- getSASKeyshare(arg: {
102
- walletIds: string[];
103
- userId: string;
104
- spsVersion: string;
105
- isSlient: true;
105
+ isSilent?: boolean;
106
106
  }): Promise<SASAuthorizeInfo[]>;
107
107
  /**
108
108
  * 同步已链接钱包的SAS状态
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@binance/w3w-multichain-connector",
3
- "version": "1.0.13",
3
+ "version": "1.0.16",
4
4
  "description": "A multichain connector for Binance Wallet",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
package/src/type.ts CHANGED
@@ -35,10 +35,12 @@ export interface SASAuthorizeInfo {
35
35
 
36
36
  export interface SASAuthorizeInfoItem {
37
37
  chain: 'evm' | 'sol'
38
+ binanceChainId: string
38
39
  encryptedKeyShareB: string
39
40
  encryptedKeyShareAData: string
40
41
  publicKey: string
41
42
  spsVersion: string
43
+ userPublicKeyHex: string
42
44
  }
43
45
 
44
46
  export interface WalletEvents {
@@ -58,7 +60,11 @@ export interface IWallet extends EventEmitter<WalletEvents> {
58
60
  requestConnectWithSAS(args: {
59
61
  binanceChainIds: string[]
60
62
  userId: string
61
- enabledWalletIds: string[]
63
+ enabledWalletInfo: {
64
+ walletType: 'SEED_PHRASE' | 'PRIVATE_KEY'
65
+ chain: string
66
+ userPublicKeyHex: string
67
+ }[]
62
68
  }): Promise<{
63
69
  wallet: IConnectedWallet
64
70
  aggreeEnableSAS: boolean
@@ -85,14 +91,7 @@ export interface IWallet extends EventEmitter<WalletEvents> {
85
91
  walletIds: string[]
86
92
  userId: string
87
93
  spsVersion: string
88
- isSlient?: false
89
- }): Promise<SASAuthorizeInfo[]>
90
-
91
- getSASKeyshare(arg: {
92
- walletIds: string[]
93
- userId: string
94
- spsVersion: string
95
- isSlient: true
94
+ isSilent?: boolean
96
95
  }): Promise<SASAuthorizeInfo[]>
97
96
 
98
97
  /**