@rabby-wallet/rabby-api 0.9.22 → 0.9.23

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
@@ -59,12 +59,13 @@ export declare class OpenApiService {
59
59
  checkOrigin: (address: string, origin: string) => Promise<SecurityCheckResponse>;
60
60
  checkText: (address: string, origin: string, text: string) => Promise<SecurityCheckResponse>;
61
61
  checkTx: (tx: Tx, origin: string, address: string, update_nonce?: boolean) => Promise<SecurityCheckResponse>;
62
- preExecTx: ({ tx, origin, address, updateNonce, pending_tx_list, }: {
62
+ preExecTx: ({ tx, origin, address, updateNonce, pending_tx_list, delegate_call, }: {
63
63
  tx: Tx;
64
64
  origin: string;
65
65
  address: string;
66
66
  updateNonce: boolean;
67
67
  pending_tx_list: Tx[];
68
+ delegate_call?: boolean | undefined;
68
69
  }) => Promise<ExplainTxResponse>;
69
70
  historyGasUsed: (params: {
70
71
  tx: Tx;
package/dist/index.js CHANGED
@@ -166,13 +166,14 @@ export class OpenApiService {
166
166
  });
167
167
  return data;
168
168
  });
169
- this.preExecTx = ({ tx, origin, address, updateNonce = false, pending_tx_list = [], }) => __awaiter(this, void 0, void 0, function* () {
169
+ this.preExecTx = ({ tx, origin, address, updateNonce = false, pending_tx_list = [], delegate_call, }) => __awaiter(this, void 0, void 0, function* () {
170
170
  const { data } = yield this.request.post('/v1/wallet/pre_exec_tx', {
171
171
  tx,
172
172
  user_addr: address,
173
173
  origin,
174
174
  update_nonce: updateNonce,
175
175
  pending_tx_list,
176
+ delegate_call,
176
177
  });
177
178
  return data;
178
179
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.9.22",
3
+ "version": "0.9.23",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [