@binance/w3w-multichain-connector 1.0.13 → 1.0.15
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 +3 -7
- package/package.json +1 -1
- package/src/type.ts +3 -8
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;
|
|
@@ -96,13 +98,7 @@ interface IWallet extends EventEmitter<WalletEvents> {
|
|
|
96
98
|
walletIds: string[];
|
|
97
99
|
userId: string;
|
|
98
100
|
spsVersion: string;
|
|
99
|
-
|
|
100
|
-
}): Promise<SASAuthorizeInfo[]>;
|
|
101
|
-
getSASKeyshare(arg: {
|
|
102
|
-
walletIds: string[];
|
|
103
|
-
userId: string;
|
|
104
|
-
spsVersion: string;
|
|
105
|
-
isSlient: true;
|
|
101
|
+
isSilent?: boolean;
|
|
106
102
|
}): Promise<SASAuthorizeInfo[]>;
|
|
107
103
|
/**
|
|
108
104
|
* 同步已链接钱包的SAS状态
|
package/package.json
CHANGED
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 {
|
|
@@ -85,14 +87,7 @@ export interface IWallet extends EventEmitter<WalletEvents> {
|
|
|
85
87
|
walletIds: string[]
|
|
86
88
|
userId: string
|
|
87
89
|
spsVersion: string
|
|
88
|
-
|
|
89
|
-
}): Promise<SASAuthorizeInfo[]>
|
|
90
|
-
|
|
91
|
-
getSASKeyshare(arg: {
|
|
92
|
-
walletIds: string[]
|
|
93
|
-
userId: string
|
|
94
|
-
spsVersion: string
|
|
95
|
-
isSlient: true
|
|
90
|
+
isSilent?: boolean
|
|
96
91
|
}): Promise<SASAuthorizeInfo[]>
|
|
97
92
|
|
|
98
93
|
/**
|