dsa-connect 0.6.31 → 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
@@ -35,19 +35,39 @@ export interface Instance {
35
35
  * @param _d.from (optional)
36
36
  * @param _d.value (optional)
37
37
  * @param _d.gasPrice (optional only for "browser" mode)
38
+ * @param _d.maxFeePerGas (optional only for "browser" mode)
39
+ * @param _d.maxPriorityFeePerGas (optional only for "browser" mode)
38
40
  * @param _d.gas (optional)
39
41
  * @param {number|string} _d.nonce (optional) txn nonce (mostly for node implementation)
40
42
  */
41
43
  declare type CastParams = {
42
44
  spells: Spells;
43
45
  origin?: string;
44
- } & TransactionCallbacks & Pick<TransactionConfig, 'from' | 'to' | 'value' | 'gas' | 'gasPrice' | 'nonce'>;
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'>;
45
63
  /**
46
64
  * @param {address} _d.authority (optional)
47
65
  * @param {address} _d.origin (optional)
48
66
  * @param {address} _d.from (optional)
49
67
  * @param {number} _d.version (optional)
50
68
  * @param {number|string} _d.gasPrice (optional) not optional in "node"
69
+ * @param {number|string} _d.maxFeePerGas (optional)
70
+ * @param {number|string} _d.maxPriorityFeePerGas (optional)
51
71
  * @param {number|string} _d.gas (optional) not optional in "node"
52
72
  * @param {number|string} _d.nonce (optional) not optional in "node"
53
73
  */
@@ -55,7 +75,7 @@ declare type BuildParams = {
55
75
  authority?: string;
56
76
  origin?: string;
57
77
  version?: Instance['version'];
58
- } & TransactionCallbacks & Pick<TransactionConfig, 'from' | 'gas' | 'gasPrice' | 'nonce'>;
78
+ } & TransactionCallbacks & Pick<TransactionConfig, 'from' | 'gas' | 'gasPrice' | 'maxFeePerGas' | 'maxPriorityFeePerGas' | 'nonce'>;
59
79
  export declare class DSA {
60
80
  static readonly version: string;
61
81
  readonly config: DSAConfig;
@@ -144,7 +164,7 @@ export declare class DSA {
144
164
  buildTransactionConfig(params: {
145
165
  authority?: string;
146
166
  origin?: string;
147
- } & Pick<TransactionConfig, 'from' | 'gasPrice' | 'gas' | 'nonce'>): Promise<TransactionConfig>;
167
+ } & Pick<TransactionConfig, 'from' | 'gasPrice' | 'maxFeePerGas' | 'maxPriorityFeePerGas' | 'gas' | 'nonce'>): Promise<TransactionConfig>;
148
168
  /**
149
169
  * Creates a Spells instance.
150
170
  *
@@ -169,6 +189,7 @@ export declare class DSA {
169
189
  add(spell: import("./spells").Spell): any;
170
190
  };
171
191
  cast(params: Spells | CastParams): Promise<string>;
192
+ castData(params: string | CastDataParams): Promise<string>;
172
193
  private getData;
173
194
  }
174
195
  export {};