dsa-connect 0.6.31-dev.2 → 0.6.32

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/dsa.d.ts CHANGED
@@ -44,6 +44,22 @@ declare type CastParams = {
44
44
  spells: Spells;
45
45
  origin?: string;
46
46
  } & TransactionCallbacks & Pick<TransactionConfig, 'from' | 'to' | 'value' | 'gas' | 'gasPrice' | 'maxFeePerGas' | 'maxPriorityFeePerGas' | 'nonce'>;
47
+ /**
48
+ * @param _d.castData cast calldata
49
+ * @param _d.origin (optional)
50
+ * @param _d.to (optional)
51
+ * @param _d.from (optional)
52
+ * @param _d.value (optional)
53
+ * @param _d.gasPrice (optional only for "browser" mode)
54
+ * @param _d.maxFeePerGas (optional only for "browser" mode)
55
+ * @param _d.maxPriorityFeePerGas (optional only for "browser" mode)
56
+ * @param _d.gas (optional)
57
+ * @param {number|string} _d.nonce (optional) txn nonce (mostly for node implementation)
58
+ */
59
+ declare type CastDataParams = {
60
+ castData: string;
61
+ origin?: string;
62
+ } & TransactionCallbacks & Pick<TransactionConfig, 'from' | 'to' | 'value' | 'gas' | 'gasPrice' | 'maxFeePerGas' | 'maxPriorityFeePerGas' | 'nonce'>;
47
63
  /**
48
64
  * @param {address} _d.authority (optional)
49
65
  * @param {address} _d.origin (optional)
@@ -173,6 +189,7 @@ export declare class DSA {
173
189
  add(spell: import("./spells").Spell): any;
174
190
  };
175
191
  cast(params: Spells | CastParams): Promise<string>;
192
+ castData(params: string | CastDataParams): Promise<string>;
176
193
  private getData;
177
194
  }
178
195
  export {};