@azguardwallet/types 0.3.2 → 0.4.0
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/operation.d.ts +8 -19
- package/package.json +1 -1
package/dist/operation.d.ts
CHANGED
|
@@ -2,22 +2,11 @@ import { Action, CallAction, EncodedCallAction } from "./action";
|
|
|
2
2
|
import { Result } from "./result";
|
|
3
3
|
import { CaipAccount, CaipChain } from "./dapp-session";
|
|
4
4
|
/** Operation kind */
|
|
5
|
-
export type OperationKind = "add_note" | "get_complete_address" | "register_contract" | "register_sender" | "send_transaction" | "simulate_transaction" | "
|
|
5
|
+
export type OperationKind = "add_note" | "get_complete_address" | "register_contract" | "register_sender" | "send_transaction" | "simulate_transaction" | "simulate_utility" | "simulate_views";
|
|
6
6
|
/** A request to perform some operation */
|
|
7
|
-
export type Operation =
|
|
7
|
+
export type Operation = GetCompleteAddressOperation | RegisterContractOperation | RegisterSenderOperation | SendTransactionOperation | SimulateTransactionOperation | SimulateUtilityOperation | SimulateViewsOperation;
|
|
8
8
|
/** Operation result */
|
|
9
|
-
export type OperationResult = Result<
|
|
10
|
-
/** A request to add a note to PXE */
|
|
11
|
-
export type AddNoteOperation = {
|
|
12
|
-
/** Operation kind */
|
|
13
|
-
kind: "add_note";
|
|
14
|
-
/** Account to add the note for */
|
|
15
|
-
account: CaipAccount;
|
|
16
|
-
/** Note to add (ExtendedNote) */
|
|
17
|
-
note: unknown;
|
|
18
|
-
};
|
|
19
|
-
/** A result of the "add_note" operation */
|
|
20
|
-
export type AddNoteResult = void;
|
|
9
|
+
export type OperationResult = Result<GetCompleteAddressResult> | Result<RegisterContractResult> | Result<RegisterSenderResult> | Result<SendTransactionResult> | Result<SimulateTransactionResult> | Result<SimulateUtilityResult> | Result<SimulateViewsResult>;
|
|
21
10
|
/** A request to get complete address of the specified account */
|
|
22
11
|
export type GetCompleteAddressOperation = {
|
|
23
12
|
/** Operation kind */
|
|
@@ -106,10 +95,10 @@ export type SimulateTransactionResult = {
|
|
|
106
95
|
/** Public return values (NestedProcessReturnValues[]) */
|
|
107
96
|
publicReturn: unknown[];
|
|
108
97
|
};
|
|
109
|
-
/** A request to simulate the
|
|
110
|
-
export type
|
|
98
|
+
/** A request to simulate the utility function */
|
|
99
|
+
export type SimulateUtilityOperation = {
|
|
111
100
|
/** Operation kind */
|
|
112
|
-
kind: "
|
|
101
|
+
kind: "simulate_utility";
|
|
113
102
|
/** Address of the account to simulate for */
|
|
114
103
|
account: CaipAccount;
|
|
115
104
|
/** Address of the contract (AztecAddress) */
|
|
@@ -119,8 +108,8 @@ export type SimulateUnconstrainedOperation = {
|
|
|
119
108
|
/** Arguments (unencoded) */
|
|
120
109
|
args: any[];
|
|
121
110
|
};
|
|
122
|
-
/** A result of the "
|
|
123
|
-
export type
|
|
111
|
+
/** A result of the "simulate_utility" operation (AbiDecoded) */
|
|
112
|
+
export type SimulateUtilityResult = unknown;
|
|
124
113
|
/** A request to simulate the batch of view calls */
|
|
125
114
|
export type SimulateViewsOperation = {
|
|
126
115
|
/** Operation kind */
|
package/package.json
CHANGED