@azguardwallet/types 0.8.0 → 0.9.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 +14 -14
- package/package.json +1 -1
package/dist/operation.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ import { CaipAccount, CaipChain } from "./dapp-session";
|
|
|
4
4
|
/** Operation kind */
|
|
5
5
|
export type OperationKind = Operation["kind"];
|
|
6
6
|
/** A request to perform some operation */
|
|
7
|
-
export type Operation = GetCompleteAddressOperation | RegisterContractOperation | RegisterSenderOperation | RegisterTokenOperation | SendTransactionOperation | SimulateTransactionOperation |
|
|
7
|
+
export type Operation = GetCompleteAddressOperation | RegisterContractOperation | RegisterSenderOperation | RegisterTokenOperation | SendTransactionOperation | SimulateTransactionOperation | ExecuteUtilityOperation | SimulateViewsOperation | AztecGetContractClassMetadataOperation | AztecGetContractMetadataOperation | AztecGetPrivateEventsOperation | AztecGetChainInfoOperation | AztecRegisterSenderOperation | AztecGetAddressBookOperation | AztecRegisterContractOperation | AztecSimulateTxOperation | AztecExecuteUtilityOperation | AztecProfileTxOperation | AztecGetAccountsOperation | AztecSendTxOperation | AztecCreateAuthWitOperation;
|
|
8
8
|
/** Operation result */
|
|
9
|
-
export type OperationResult = Result<GetCompleteAddressResult> | Result<RegisterContractResult> | Result<RegisterSenderResult> | Result<RegisterTokenResult> | Result<SendTransactionResult> | Result<SimulateTransactionResult> | Result<
|
|
9
|
+
export type OperationResult = Result<GetCompleteAddressResult> | Result<RegisterContractResult> | Result<RegisterSenderResult> | Result<RegisterTokenResult> | Result<SendTransactionResult> | Result<SimulateTransactionResult> | Result<ExecuteUtilityResult> | Result<SimulateViewsResult> | Result<AztecGetContractClassMetadataResult> | Result<AztecGetContractMetadataResult> | Result<AztecGetPrivateEventsResult> | Result<AztecGetChainInfoResult> | Result<AztecRegisterSenderResult> | Result<AztecGetAddressBookResult> | Result<AztecRegisterContractResult> | Result<AztecSimulateTxResult> | Result<AztecExecuteUtilityResult> | Result<AztecProfileTxResult> | Result<AztecGetAccountsResult> | Result<AztecSendTxResult> | Result<AztecCreateAuthWitResult>;
|
|
10
10
|
/** A request to get complete address of the specified account */
|
|
11
11
|
export type GetCompleteAddressOperation = {
|
|
12
12
|
/** Operation kind */
|
|
@@ -118,11 +118,11 @@ export type SimulateTransactionResult = {
|
|
|
118
118
|
/** Public return values (NestedProcessReturnValues[]) */
|
|
119
119
|
publicReturn: unknown[];
|
|
120
120
|
};
|
|
121
|
-
/** A request to
|
|
122
|
-
export type
|
|
121
|
+
/** A request to execute the utility function */
|
|
122
|
+
export type ExecuteUtilityOperation = {
|
|
123
123
|
/** Operation kind */
|
|
124
|
-
kind: "
|
|
125
|
-
/** Address of the account to
|
|
124
|
+
kind: "execute_utility";
|
|
125
|
+
/** Address of the account to execute for */
|
|
126
126
|
account: CaipAccount;
|
|
127
127
|
/** Address of the contract (AztecAddress) */
|
|
128
128
|
contract: string;
|
|
@@ -131,8 +131,8 @@ export type SimulateUtilityOperation = {
|
|
|
131
131
|
/** Arguments (unencoded) */
|
|
132
132
|
args: any[];
|
|
133
133
|
};
|
|
134
|
-
/** A result of the "
|
|
135
|
-
export type
|
|
134
|
+
/** A result of the "execute_utility" operation (AbiDecoded) */
|
|
135
|
+
export type ExecuteUtilityResult = unknown;
|
|
136
136
|
/** A request to simulate the batch of view calls */
|
|
137
137
|
export type SimulateViewsOperation = {
|
|
138
138
|
/** Operation kind */
|
|
@@ -244,18 +244,18 @@ export type AztecSimulateTxOperation = {
|
|
|
244
244
|
/** A result of the "aztec_simulateTx" operation (TxSimulationResult) */
|
|
245
245
|
export type AztecSimulateTxResult = unknown;
|
|
246
246
|
/** Aztec.js Wallet request */
|
|
247
|
-
export type
|
|
247
|
+
export type AztecExecuteUtilityOperation = {
|
|
248
248
|
/** Operation kind */
|
|
249
|
-
kind: "
|
|
250
|
-
/** Address of the account to
|
|
249
|
+
kind: "aztec_executeUtility";
|
|
250
|
+
/** Address of the account to execute utility function from */
|
|
251
251
|
account: CaipAccount;
|
|
252
252
|
/** Function call (FunctionCall) */
|
|
253
253
|
call: unknown;
|
|
254
|
-
/** Options (
|
|
254
|
+
/** Options (ExecuteUtilityOptions: { scope?, authWitnesses? }) */
|
|
255
255
|
opts: unknown;
|
|
256
256
|
};
|
|
257
|
-
/** A result of the "
|
|
258
|
-
export type
|
|
257
|
+
/** A result of the "aztec_executeUtility" operation (UtilityExecutionResult) */
|
|
258
|
+
export type AztecExecuteUtilityResult = unknown;
|
|
259
259
|
/** Aztec.js Wallet request */
|
|
260
260
|
export type AztecProfileTxOperation = {
|
|
261
261
|
/** Operation kind */
|
package/package.json
CHANGED