@keplr-wallet/types 0.13.0 → 0.13.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.
@@ -88,9 +88,21 @@ export interface Keplr {
88
88
  } | null;
89
89
  }, signOptions?: Exclude<KeplrSignOptions, "preferNoSetFee" | "disableBalanceCheck">): Promise<DirectAuxSignResponse>;
90
90
  sendTx(chainId: string, tx: Uint8Array, mode: BroadcastMode): Promise<Uint8Array>;
91
+ signDirectWithMessages(chainId: string, signer: string, messages: string[], signDirectWithMessagesOptions: {
92
+ memo?: string;
93
+ sync?: boolean;
94
+ timeoutHeight?: number;
95
+ gasAdjustment?: number;
96
+ }): Promise<{
97
+ txHash: string;
98
+ }>;
91
99
  signICNSAdr36(chainId: string, contractAddress: string, owner: string, username: string, addressChainIds: string[]): Promise<ICNSAdr36Signatures>;
92
100
  signArbitrary(chainId: string, signer: string, data: string | Uint8Array): Promise<StdSignature>;
93
101
  verifyArbitrary(chainId: string, signer: string, data: string | Uint8Array, signature: StdSignature): Promise<boolean>;
102
+ signFigureMarketsAuth(chainId: string, signer: string, message: string): Promise<{
103
+ signedMessage: string;
104
+ signature: StdSignature;
105
+ }>;
94
106
  signEthereum(chainId: string, signer: string, data: string | Uint8Array, type: EthSignType): Promise<Uint8Array>;
95
107
  getOfflineSigner(chainId: string, signOptions?: KeplrSignOptions): OfflineAminoSigner & OfflineDirectSigner;
96
108
  getOfflineSignerOnlyAmino(chainId: string, signOptions?: KeplrSignOptions): OfflineAminoSigner;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keplr-wallet/types",
3
- "version": "0.13.0",
3
+ "version": "0.13.2",
4
4
  "main": "build/index.js",
5
5
  "author": "chainapsis",
6
6
  "license": "Apache-2.0",
@@ -25,5 +25,5 @@
25
25
  "peerDependencies": {
26
26
  "starknet": "^8"
27
27
  },
28
- "gitHead": "83c23d58e9ee42ed3b67c27033d1af11a7c575d7"
28
+ "gitHead": "694ff0c5ccd5f959c01cf896a5f4f237b365af04"
29
29
  }
@@ -144,6 +144,21 @@ export interface Keplr {
144
144
  mode: BroadcastMode
145
145
  ): Promise<Uint8Array>;
146
146
 
147
+ signDirectWithMessages(
148
+ chainId: string,
149
+ signer: string,
150
+ // base64 encoded protobuf messages.
151
+ messages: string[],
152
+ signDirectWithMessagesOptions: {
153
+ memo?: string;
154
+ sync?: boolean;
155
+ timeoutHeight?: number;
156
+ gasAdjustment?: number;
157
+ }
158
+ ): Promise<{
159
+ txHash: string;
160
+ }>;
161
+
147
162
  signICNSAdr36(
148
163
  chainId: string,
149
164
  contractAddress: string,
@@ -164,6 +179,16 @@ export interface Keplr {
164
179
  signature: StdSignature
165
180
  ): Promise<boolean>;
166
181
 
182
+ signFigureMarketsAuth(
183
+ chainId: string,
184
+ signer: string,
185
+ // base64 encoded
186
+ message: string
187
+ ): Promise<{
188
+ signedMessage: string;
189
+ signature: StdSignature;
190
+ }>;
191
+
167
192
  signEthereum(
168
193
  chainId: string,
169
194
  signer: string,