@aztec/aztec.js 0.0.1-commit.b655e406 → 0.0.1-commit.c31f2472
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/dest/account/account.d.ts +26 -42
- package/dest/account/account.d.ts.map +1 -1
- package/dest/account/account.js +19 -47
- package/dest/account/account_contract.d.ts +9 -10
- package/dest/account/account_contract.d.ts.map +1 -1
- package/dest/account/account_with_secret_key.d.ts +20 -9
- package/dest/account/account_with_secret_key.d.ts.map +1 -1
- package/dest/account/account_with_secret_key.js +21 -4
- package/dest/account/index.d.ts +4 -3
- package/dest/account/index.d.ts.map +1 -1
- package/dest/account/index.js +2 -0
- package/dest/account/signerless_account.d.ts +7 -9
- package/dest/account/signerless_account.d.ts.map +1 -1
- package/dest/account/signerless_account.js +8 -11
- package/dest/api/abi.d.ts +1 -1
- package/dest/api/account.d.ts +3 -4
- package/dest/api/account.d.ts.map +1 -1
- package/dest/api/account.js +2 -3
- package/dest/api/addresses.d.ts +1 -1
- package/dest/api/authorization.d.ts +2 -2
- package/dest/api/authorization.d.ts.map +1 -1
- package/dest/api/authorization.js +1 -1
- package/dest/api/block.d.ts +1 -1
- package/dest/api/contract.d.ts +17 -11
- package/dest/api/contract.d.ts.map +1 -1
- package/dest/api/contract.js +15 -9
- package/dest/api/crypto.d.ts +1 -1
- package/dest/api/deployment.d.ts +1 -1
- package/dest/api/eth_address.d.ts +1 -1
- package/dest/api/ethereum.d.ts +1 -1
- package/dest/api/events.d.ts +1 -1
- package/dest/api/fee.d.ts +1 -1
- package/dest/api/fee_testing.d.ts +1 -1
- package/dest/api/fields.d.ts +3 -2
- package/dest/api/fields.d.ts.map +1 -1
- package/dest/api/fields.js +2 -1
- package/dest/api/keys.d.ts +1 -1
- package/dest/api/log.d.ts +1 -1
- package/dest/api/messaging.d.ts +1 -1
- package/dest/api/node.d.ts +8 -4
- package/dest/api/node.d.ts.map +1 -1
- package/dest/api/node.js +7 -3
- package/dest/api/note.d.ts +2 -2
- package/dest/api/note.d.ts.map +1 -1
- package/dest/api/note.js +1 -1
- package/dest/api/protocol.d.ts +7 -1
- package/dest/api/protocol.d.ts.map +1 -1
- package/dest/api/protocol.js +6 -0
- package/dest/api/trees.d.ts +1 -1
- package/dest/api/tx.d.ts +2 -2
- package/dest/api/tx.d.ts.map +1 -1
- package/dest/api/tx.js +1 -1
- package/dest/api/utils.d.ts +1 -1
- package/dest/api/wallet.d.ts +2 -3
- package/dest/api/wallet.d.ts.map +1 -1
- package/dest/api/wallet.js +1 -2
- package/dest/authorization/call_authorization_request.d.ts +2 -2
- package/dest/authorization/call_authorization_request.d.ts.map +1 -1
- package/dest/contract/base_contract_interaction.d.ts +8 -11
- package/dest/contract/base_contract_interaction.d.ts.map +1 -1
- package/dest/contract/base_contract_interaction.js +5 -17
- package/dest/contract/batch_call.d.ts +8 -9
- package/dest/contract/batch_call.d.ts.map +1 -1
- package/dest/contract/batch_call.js +54 -34
- package/dest/contract/checker.d.ts +1 -1
- package/dest/contract/contract.d.ts +2 -2
- package/dest/contract/contract.d.ts.map +1 -1
- package/dest/contract/contract.js +4 -5
- package/dest/contract/contract_base.d.ts +6 -10
- package/dest/contract/contract_base.d.ts.map +1 -1
- package/dest/contract/contract_base.js +5 -12
- package/dest/contract/contract_function_interaction.d.ts +3 -3
- package/dest/contract/contract_function_interaction.d.ts.map +1 -1
- package/dest/contract/contract_function_interaction.js +9 -6
- package/dest/contract/deploy_method.d.ts +71 -23
- package/dest/contract/deploy_method.d.ts.map +1 -1
- package/dest/contract/deploy_method.js +49 -29
- package/dest/contract/get_gas_limits.d.ts +1 -1
- package/dest/contract/interaction_options.d.ts +44 -7
- package/dest/contract/interaction_options.d.ts.map +1 -1
- package/dest/contract/interaction_options.js +12 -11
- package/dest/contract/protocol_contracts/auth-registry.d.ts +36 -0
- package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -0
- package/dest/contract/protocol_contracts/auth-registry.js +963 -0
- package/dest/contract/protocol_contracts/contract-class-registry.d.ts +35 -0
- package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -0
- package/dest/contract/protocol_contracts/contract-class-registry.js +784 -0
- package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +31 -0
- package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -0
- package/dest/contract/protocol_contracts/contract-instance-registry.js +866 -0
- package/dest/contract/protocol_contracts/fee-juice.d.ts +30 -0
- package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -0
- package/dest/contract/protocol_contracts/fee-juice.js +827 -0
- package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +34 -0
- package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -0
- package/dest/contract/protocol_contracts/multi-call-entrypoint.js +563 -0
- package/dest/contract/protocol_contracts/public-checks.d.ts +26 -0
- package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -0
- package/dest/contract/protocol_contracts/public-checks.js +579 -0
- package/dest/contract/wait_for_proven.d.ts +2 -2
- package/dest/contract/wait_for_proven.d.ts.map +1 -1
- package/dest/contract/wait_for_proven.js +1 -1
- package/dest/contract/wait_opts.d.ts +16 -0
- package/dest/contract/wait_opts.d.ts.map +1 -0
- package/dest/contract/wait_opts.js +5 -0
- package/dest/deployment/broadcast_function.d.ts +1 -1
- package/dest/deployment/broadcast_function.js +4 -4
- package/dest/deployment/contract_deployer.d.ts +1 -1
- package/dest/deployment/contract_deployer.d.ts.map +1 -1
- package/dest/deployment/contract_deployer.js +1 -1
- package/dest/deployment/publish_class.d.ts +1 -1
- package/dest/deployment/publish_class.js +3 -3
- package/dest/deployment/publish_instance.d.ts +2 -2
- package/dest/deployment/publish_instance.d.ts.map +1 -1
- package/dest/deployment/publish_instance.js +3 -3
- package/dest/ethereum/portal_manager.d.ts +7 -6
- package/dest/ethereum/portal_manager.d.ts.map +1 -1
- package/dest/ethereum/portal_manager.js +48 -22
- package/dest/fee/fee_juice_payment_method_with_claim.d.ts +2 -2
- package/dest/fee/fee_juice_payment_method_with_claim.d.ts.map +1 -1
- package/dest/fee/fee_juice_payment_method_with_claim.js +3 -3
- package/dest/fee/fee_payment_method.d.ts +2 -2
- package/dest/fee/fee_payment_method.d.ts.map +1 -1
- package/dest/fee/private_fee_payment_method.d.ts +2 -2
- package/dest/fee/private_fee_payment_method.d.ts.map +1 -1
- package/dest/fee/private_fee_payment_method.js +4 -4
- package/dest/fee/public_fee_payment_method.d.ts +2 -2
- package/dest/fee/public_fee_payment_method.d.ts.map +1 -1
- package/dest/fee/public_fee_payment_method.js +4 -4
- package/dest/fee/sponsored_fee_payment.d.ts +2 -2
- package/dest/fee/sponsored_fee_payment.d.ts.map +1 -1
- package/dest/fee/sponsored_fee_payment.js +2 -2
- package/dest/scripts/generate_protocol_contract_types.d.ts +2 -0
- package/dest/scripts/generate_protocol_contract_types.d.ts.map +1 -0
- package/dest/scripts/generate_protocol_contract_types.js +120 -0
- package/dest/utils/abi_types.d.ts +2 -2
- package/dest/utils/abi_types.d.ts.map +1 -1
- package/dest/utils/authwit.d.ts +14 -12
- package/dest/utils/authwit.d.ts.map +1 -1
- package/dest/utils/authwit.js +27 -20
- package/dest/utils/cross_chain.d.ts +2 -2
- package/dest/utils/cross_chain.d.ts.map +1 -1
- package/dest/utils/fee_juice.d.ts +2 -2
- package/dest/utils/fee_juice.js +2 -2
- package/dest/utils/field_compressed_string.d.ts +1 -1
- package/dest/utils/field_compressed_string.d.ts.map +1 -1
- package/dest/utils/field_compressed_string.js +1 -1
- package/dest/utils/node.d.ts +13 -2
- package/dest/utils/node.d.ts.map +1 -1
- package/dest/utils/node.js +46 -0
- package/dest/utils/pub_key.d.ts +2 -2
- package/dest/utils/pub_key.d.ts.map +1 -1
- package/dest/utils/pub_key.js +1 -1
- package/dest/wallet/account_entrypoint_meta_payment_method.d.ts +6 -9
- package/dest/wallet/account_entrypoint_meta_payment_method.d.ts.map +1 -1
- package/dest/wallet/account_entrypoint_meta_payment_method.js +29 -44
- package/dest/wallet/account_manager.d.ts +3 -9
- package/dest/wallet/account_manager.d.ts.map +1 -1
- package/dest/wallet/account_manager.js +6 -12
- package/dest/wallet/deploy_account_method.d.ts +37 -9
- package/dest/wallet/deploy_account_method.d.ts.map +1 -1
- package/dest/wallet/deploy_account_method.js +9 -7
- package/dest/wallet/index.d.ts +1 -2
- package/dest/wallet/index.d.ts.map +1 -1
- package/dest/wallet/index.js +0 -1
- package/dest/wallet/wallet.d.ts +323 -1504
- package/dest/wallet/wallet.d.ts.map +1 -1
- package/dest/wallet/wallet.js +85 -115
- package/package.json +16 -13
- package/src/account/account.ts +35 -60
- package/src/account/account_contract.ts +7 -8
- package/src/account/account_with_secret_key.ts +34 -9
- package/src/account/index.ts +3 -2
- package/src/account/signerless_account.ts +15 -15
- package/src/api/account.ts +10 -3
- package/src/api/authorization.ts +1 -0
- package/src/api/contract.ts +24 -8
- package/src/api/fields.ts +2 -1
- package/src/api/node.ts +7 -3
- package/src/api/note.ts +1 -1
- package/src/api/protocol.ts +7 -0
- package/src/api/tx.ts +4 -0
- package/src/api/wallet.ts +10 -9
- package/src/authorization/call_authorization_request.ts +1 -1
- package/src/contract/base_contract_interaction.ts +27 -16
- package/src/contract/batch_call.ts +67 -48
- package/src/contract/contract.ts +7 -5
- package/src/contract/contract_base.ts +5 -15
- package/src/contract/contract_function_interaction.ts +10 -11
- package/src/contract/deploy_method.ts +134 -40
- package/src/contract/interaction_options.ts +52 -13
- package/src/contract/protocol_contracts/auth-registry.ts +545 -0
- package/src/contract/protocol_contracts/contract-class-registry.ts +433 -0
- package/src/contract/protocol_contracts/contract-instance-registry.ts +495 -0
- package/src/contract/protocol_contracts/fee-juice.ts +457 -0
- package/src/contract/protocol_contracts/multi-call-entrypoint.ts +329 -0
- package/src/contract/protocol_contracts/public-checks.ts +315 -0
- package/src/contract/wait_for_proven.ts +1 -1
- package/src/contract/wait_opts.ts +21 -0
- package/src/deployment/broadcast_function.ts +4 -4
- package/src/deployment/contract_deployer.ts +3 -2
- package/src/deployment/publish_class.ts +3 -3
- package/src/deployment/publish_instance.ts +3 -6
- package/src/ethereum/portal_manager.ts +65 -34
- package/src/fee/fee_juice_payment_method_with_claim.ts +4 -2
- package/src/fee/fee_payment_method.ts +1 -1
- package/src/fee/private_fee_payment_method.ts +5 -3
- package/src/fee/public_fee_payment_method.ts +5 -3
- package/src/fee/sponsored_fee_payment.ts +3 -1
- package/src/scripts/generate_protocol_contract_types.ts +150 -0
- package/src/utils/abi_types.ts +1 -1
- package/src/utils/authwit.ts +40 -22
- package/src/utils/cross_chain.ts +1 -1
- package/src/utils/fee_juice.ts +2 -2
- package/src/utils/field_compressed_string.ts +1 -1
- package/src/utils/node.ts +62 -0
- package/src/utils/pub_key.ts +2 -2
- package/src/wallet/account_entrypoint_meta_payment_method.ts +29 -60
- package/src/wallet/account_manager.ts +7 -15
- package/src/wallet/deploy_account_method.ts +41 -16
- package/src/wallet/index.ts +0 -1
- package/src/wallet/wallet.ts +207 -152
- package/dest/account/interface.d.ts +0 -19
- package/dest/account/interface.d.ts.map +0 -1
- package/dest/account/interface.js +0 -5
- package/dest/contract/deploy_sent_tx.d.ts +0 -43
- package/dest/contract/deploy_sent_tx.d.ts.map +0 -1
- package/dest/contract/deploy_sent_tx.js +0 -40
- package/dest/contract/protocol_contracts.d.ts +0 -9
- package/dest/contract/protocol_contracts.d.ts.map +0 -1
- package/dest/contract/protocol_contracts.js +0 -26
- package/dest/contract/sent_tx.d.ts +0 -51
- package/dest/contract/sent_tx.d.ts.map +0 -1
- package/dest/contract/sent_tx.js +0 -90
- package/dest/contract/unsafe_contract.d.ts +0 -15
- package/dest/contract/unsafe_contract.d.ts.map +0 -1
- package/dest/contract/unsafe_contract.js +0 -6
- package/dest/wallet/base_wallet.d.ts +0 -91
- package/dest/wallet/base_wallet.d.ts.map +0 -1
- package/dest/wallet/base_wallet.js +0 -238
- package/src/account/interface.ts +0 -25
- package/src/contract/deploy_sent_tx.ts +0 -68
- package/src/contract/protocol_contracts.ts +0 -35
- package/src/contract/sent_tx.ts +0 -130
- package/src/contract/unsafe_contract.ts +0 -19
- package/src/wallet/base_wallet.ts +0 -350
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
/* Autogenerated file, do not edit! */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { ProtocolContractAddress } from '@aztec/protocol-contracts';
|
|
4
|
+
import { FunctionType } from '@aztec/stdlib/abi';
|
|
5
|
+
|
|
6
|
+
import type { ContractArtifact } from '../../api/abi.js';
|
|
7
|
+
import { PublicKeys } from '../../api/keys.js';
|
|
8
|
+
import type {
|
|
9
|
+
AztecAddressLike,
|
|
10
|
+
EthAddressLike,
|
|
11
|
+
FieldLike,
|
|
12
|
+
FunctionSelectorLike,
|
|
13
|
+
WrappedFieldLike,
|
|
14
|
+
} from '../../utils/abi_types.js';
|
|
15
|
+
import type { Wallet } from '../../wallet/wallet.js';
|
|
16
|
+
import { ContractBase, type ContractMethod } from '../contract_base.js';
|
|
17
|
+
import { ContractFunctionInteraction } from '../contract_function_interaction.js';
|
|
18
|
+
|
|
19
|
+
const ContractClassRegistryContractArtifact: ContractArtifact = {
|
|
20
|
+
name: 'ContractClassRegistry',
|
|
21
|
+
functions: [
|
|
22
|
+
{
|
|
23
|
+
...{
|
|
24
|
+
functionType: FunctionType.PRIVATE,
|
|
25
|
+
name: 'broadcast_private_function',
|
|
26
|
+
isOnlySelf: false,
|
|
27
|
+
isStatic: false,
|
|
28
|
+
isInitializer: false,
|
|
29
|
+
parameters: [
|
|
30
|
+
{
|
|
31
|
+
name: 'contract_class_id',
|
|
32
|
+
type: {
|
|
33
|
+
kind: 'struct',
|
|
34
|
+
fields: [{ name: 'inner', type: { kind: 'field' } }],
|
|
35
|
+
path: 'aztec::protocol_types::contract_class_id::ContractClassId',
|
|
36
|
+
},
|
|
37
|
+
visibility: 'private',
|
|
38
|
+
},
|
|
39
|
+
{ name: 'artifact_metadata_hash', type: { kind: 'field' }, visibility: 'private' },
|
|
40
|
+
{ name: 'utility_functions_artifact_tree_root', type: { kind: 'field' }, visibility: 'private' },
|
|
41
|
+
{
|
|
42
|
+
name: 'private_function_tree_sibling_path',
|
|
43
|
+
type: { kind: 'array', length: 7, type: { kind: 'field' } },
|
|
44
|
+
visibility: 'private',
|
|
45
|
+
},
|
|
46
|
+
{ name: 'private_function_tree_leaf_index', type: { kind: 'field' }, visibility: 'private' },
|
|
47
|
+
{
|
|
48
|
+
name: 'artifact_function_tree_sibling_path',
|
|
49
|
+
type: { kind: 'array', length: 7, type: { kind: 'field' } },
|
|
50
|
+
visibility: 'private',
|
|
51
|
+
},
|
|
52
|
+
{ name: 'artifact_function_tree_leaf_index', type: { kind: 'field' }, visibility: 'private' },
|
|
53
|
+
{
|
|
54
|
+
name: 'function_data',
|
|
55
|
+
type: {
|
|
56
|
+
kind: 'struct',
|
|
57
|
+
fields: [
|
|
58
|
+
{
|
|
59
|
+
name: 'selector',
|
|
60
|
+
type: {
|
|
61
|
+
kind: 'struct',
|
|
62
|
+
fields: [{ name: 'inner', type: { kind: 'integer', sign: 'unsigned', width: 32 } }],
|
|
63
|
+
path: 'aztec::protocol_types::abis::function_selector::FunctionSelector',
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
{ name: 'metadata_hash', type: { kind: 'field' } },
|
|
67
|
+
{ name: 'vk_hash', type: { kind: 'field' } },
|
|
68
|
+
],
|
|
69
|
+
path: 'events::private_function_broadcasted::InnerPrivateFunction',
|
|
70
|
+
},
|
|
71
|
+
visibility: 'private',
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
returnTypes: [],
|
|
75
|
+
errorTypes: {
|
|
76
|
+
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
77
|
+
'2754040237334517471': { error_kind: 'fmtstring', length: 92, item_types: [] },
|
|
78
|
+
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
79
|
+
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
80
|
+
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
bytecode: Buffer.from([]),
|
|
84
|
+
debugSymbols: '',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
...{
|
|
88
|
+
functionType: FunctionType.PRIVATE,
|
|
89
|
+
name: 'broadcast_utility_function',
|
|
90
|
+
isOnlySelf: false,
|
|
91
|
+
isStatic: false,
|
|
92
|
+
isInitializer: false,
|
|
93
|
+
parameters: [
|
|
94
|
+
{
|
|
95
|
+
name: 'contract_class_id',
|
|
96
|
+
type: {
|
|
97
|
+
kind: 'struct',
|
|
98
|
+
fields: [{ name: 'inner', type: { kind: 'field' } }],
|
|
99
|
+
path: 'aztec::protocol_types::contract_class_id::ContractClassId',
|
|
100
|
+
},
|
|
101
|
+
visibility: 'private',
|
|
102
|
+
},
|
|
103
|
+
{ name: 'artifact_metadata_hash', type: { kind: 'field' }, visibility: 'private' },
|
|
104
|
+
{ name: 'private_functions_artifact_tree_root', type: { kind: 'field' }, visibility: 'private' },
|
|
105
|
+
{
|
|
106
|
+
name: 'artifact_function_tree_sibling_path',
|
|
107
|
+
type: { kind: 'array', length: 7, type: { kind: 'field' } },
|
|
108
|
+
visibility: 'private',
|
|
109
|
+
},
|
|
110
|
+
{ name: 'artifact_function_tree_leaf_index', type: { kind: 'field' }, visibility: 'private' },
|
|
111
|
+
{
|
|
112
|
+
name: 'function_data',
|
|
113
|
+
type: {
|
|
114
|
+
kind: 'struct',
|
|
115
|
+
fields: [
|
|
116
|
+
{
|
|
117
|
+
name: 'selector',
|
|
118
|
+
type: {
|
|
119
|
+
kind: 'struct',
|
|
120
|
+
fields: [{ name: 'inner', type: { kind: 'integer', sign: 'unsigned', width: 32 } }],
|
|
121
|
+
path: 'aztec::protocol_types::abis::function_selector::FunctionSelector',
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
{ name: 'metadata_hash', type: { kind: 'field' } },
|
|
125
|
+
],
|
|
126
|
+
path: 'events::utility_function_broadcasted::InnerUtilityFunction',
|
|
127
|
+
},
|
|
128
|
+
visibility: 'private',
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
returnTypes: [],
|
|
132
|
+
errorTypes: {
|
|
133
|
+
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
134
|
+
'2754040237334517471': { error_kind: 'fmtstring', length: 92, item_types: [] },
|
|
135
|
+
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
136
|
+
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
137
|
+
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
bytecode: Buffer.from([]),
|
|
141
|
+
debugSymbols: '',
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
...{
|
|
145
|
+
functionType: FunctionType.PRIVATE,
|
|
146
|
+
name: 'publish',
|
|
147
|
+
isOnlySelf: false,
|
|
148
|
+
isStatic: false,
|
|
149
|
+
isInitializer: false,
|
|
150
|
+
parameters: [
|
|
151
|
+
{ name: 'artifact_hash', type: { kind: 'field' }, visibility: 'private' },
|
|
152
|
+
{ name: 'private_functions_root', type: { kind: 'field' }, visibility: 'private' },
|
|
153
|
+
{ name: 'public_bytecode_commitment', type: { kind: 'field' }, visibility: 'private' },
|
|
154
|
+
],
|
|
155
|
+
returnTypes: [],
|
|
156
|
+
errorTypes: {
|
|
157
|
+
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
158
|
+
'922421554006670918': { error_kind: 'string', string: 'num_items is greater than MAX_ITEMS' },
|
|
159
|
+
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
160
|
+
'2754040237334517471': { error_kind: 'fmtstring', length: 92, item_types: [] },
|
|
161
|
+
'10965409165809799877': {
|
|
162
|
+
error_kind: 'string',
|
|
163
|
+
string: 'Given in_len to absorb is larger than the input array len',
|
|
164
|
+
},
|
|
165
|
+
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
166
|
+
'15669273164684982983': { error_kind: 'string', string: 'num_permutations is greater than MAX_PERMUTATIONS' },
|
|
167
|
+
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
168
|
+
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
169
|
+
'16450579948625159707': { error_kind: 'string', string: 'Sponge must be in cache_size=1' },
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
bytecode: Buffer.from([]),
|
|
173
|
+
debugSymbols: '',
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
...{
|
|
177
|
+
functionType: FunctionType.UTILITY,
|
|
178
|
+
name: 'process_message',
|
|
179
|
+
isOnlySelf: false,
|
|
180
|
+
isStatic: false,
|
|
181
|
+
isInitializer: false,
|
|
182
|
+
parameters: [
|
|
183
|
+
{
|
|
184
|
+
name: 'message_ciphertext',
|
|
185
|
+
type: {
|
|
186
|
+
kind: 'struct',
|
|
187
|
+
fields: [
|
|
188
|
+
{ name: 'storage', type: { kind: 'array', length: 17, type: { kind: 'field' } } },
|
|
189
|
+
{ name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
|
|
190
|
+
],
|
|
191
|
+
path: 'std::collections::bounded_vec::BoundedVec',
|
|
192
|
+
},
|
|
193
|
+
visibility: 'private',
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
name: 'message_context',
|
|
197
|
+
type: {
|
|
198
|
+
kind: 'struct',
|
|
199
|
+
fields: [
|
|
200
|
+
{ name: 'tx_hash', type: { kind: 'field' } },
|
|
201
|
+
{
|
|
202
|
+
name: 'unique_note_hashes_in_tx',
|
|
203
|
+
type: {
|
|
204
|
+
kind: 'struct',
|
|
205
|
+
fields: [
|
|
206
|
+
{ name: 'storage', type: { kind: 'array', length: 64, type: { kind: 'field' } } },
|
|
207
|
+
{ name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
|
|
208
|
+
],
|
|
209
|
+
path: 'std::collections::bounded_vec::BoundedVec',
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
{ name: 'first_nullifier_in_tx', type: { kind: 'field' } },
|
|
213
|
+
{
|
|
214
|
+
name: 'recipient',
|
|
215
|
+
type: {
|
|
216
|
+
kind: 'struct',
|
|
217
|
+
fields: [{ name: 'inner', type: { kind: 'field' } }],
|
|
218
|
+
path: 'aztec::protocol_types::address::aztec_address::AztecAddress',
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
path: 'aztec::messages::processing::message_context::MessageContext',
|
|
223
|
+
},
|
|
224
|
+
visibility: 'private',
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
returnTypes: [],
|
|
228
|
+
errorTypes: {
|
|
229
|
+
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
230
|
+
'992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
|
|
231
|
+
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
232
|
+
'2967937905572420042': {
|
|
233
|
+
error_kind: 'fmtstring',
|
|
234
|
+
length: 61,
|
|
235
|
+
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
236
|
+
},
|
|
237
|
+
'3330370348214585450': {
|
|
238
|
+
error_kind: 'fmtstring',
|
|
239
|
+
length: 48,
|
|
240
|
+
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
241
|
+
},
|
|
242
|
+
'3670003311596808700': {
|
|
243
|
+
error_kind: 'fmtstring',
|
|
244
|
+
length: 77,
|
|
245
|
+
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
246
|
+
},
|
|
247
|
+
'4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
|
|
248
|
+
'4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
|
|
249
|
+
'9791669845391776238': {
|
|
250
|
+
error_kind: 'string',
|
|
251
|
+
string: '0 has a square root; you cannot claim it is not square',
|
|
252
|
+
},
|
|
253
|
+
'10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
|
|
254
|
+
'10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
|
|
255
|
+
'11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
|
|
256
|
+
'12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
|
|
257
|
+
'12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
|
|
258
|
+
'13557316507370296400': {
|
|
259
|
+
error_kind: 'fmtstring',
|
|
260
|
+
length: 130,
|
|
261
|
+
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
262
|
+
},
|
|
263
|
+
'14938672389828944159': {
|
|
264
|
+
error_kind: 'fmtstring',
|
|
265
|
+
length: 146,
|
|
266
|
+
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
267
|
+
},
|
|
268
|
+
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
269
|
+
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
270
|
+
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
271
|
+
'17531474008201752295': {
|
|
272
|
+
error_kind: 'fmtstring',
|
|
273
|
+
length: 133,
|
|
274
|
+
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
275
|
+
},
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
bytecode: Buffer.from([]),
|
|
279
|
+
debugSymbols: '',
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
...{
|
|
283
|
+
functionType: FunctionType.UTILITY,
|
|
284
|
+
name: 'sync_state',
|
|
285
|
+
isOnlySelf: false,
|
|
286
|
+
isStatic: false,
|
|
287
|
+
isInitializer: false,
|
|
288
|
+
parameters: [],
|
|
289
|
+
returnTypes: [],
|
|
290
|
+
errorTypes: {
|
|
291
|
+
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
292
|
+
'992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
|
|
293
|
+
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
294
|
+
'2967937905572420042': {
|
|
295
|
+
error_kind: 'fmtstring',
|
|
296
|
+
length: 61,
|
|
297
|
+
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
298
|
+
},
|
|
299
|
+
'3330370348214585450': {
|
|
300
|
+
error_kind: 'fmtstring',
|
|
301
|
+
length: 48,
|
|
302
|
+
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
303
|
+
},
|
|
304
|
+
'3670003311596808700': {
|
|
305
|
+
error_kind: 'fmtstring',
|
|
306
|
+
length: 77,
|
|
307
|
+
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
308
|
+
},
|
|
309
|
+
'4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
|
|
310
|
+
'4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
|
|
311
|
+
'9791669845391776238': {
|
|
312
|
+
error_kind: 'string',
|
|
313
|
+
string: '0 has a square root; you cannot claim it is not square',
|
|
314
|
+
},
|
|
315
|
+
'9885968605480832328': {
|
|
316
|
+
error_kind: 'string',
|
|
317
|
+
string: 'Attempted to read past the length of a CapsuleArray',
|
|
318
|
+
},
|
|
319
|
+
'10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
|
|
320
|
+
'10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
|
|
321
|
+
'11021520179822076911': {
|
|
322
|
+
error_kind: 'string',
|
|
323
|
+
string: 'Attempted to delete past the length of a CapsuleArray',
|
|
324
|
+
},
|
|
325
|
+
'11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
|
|
326
|
+
'12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
|
|
327
|
+
'12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
|
|
328
|
+
'12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
|
|
329
|
+
'13557316507370296400': {
|
|
330
|
+
error_kind: 'fmtstring',
|
|
331
|
+
length: 130,
|
|
332
|
+
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
333
|
+
},
|
|
334
|
+
'14938672389828944159': {
|
|
335
|
+
error_kind: 'fmtstring',
|
|
336
|
+
length: 146,
|
|
337
|
+
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
338
|
+
},
|
|
339
|
+
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
340
|
+
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
341
|
+
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
342
|
+
'17531474008201752295': {
|
|
343
|
+
error_kind: 'fmtstring',
|
|
344
|
+
length: 133,
|
|
345
|
+
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
346
|
+
},
|
|
347
|
+
},
|
|
348
|
+
},
|
|
349
|
+
bytecode: Buffer.from([]),
|
|
350
|
+
debugSymbols: '',
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
...{
|
|
354
|
+
functionType: FunctionType.PUBLIC,
|
|
355
|
+
name: 'public_dispatch',
|
|
356
|
+
isOnlySelf: false,
|
|
357
|
+
isStatic: false,
|
|
358
|
+
isInitializer: false,
|
|
359
|
+
parameters: [{ name: 'selector', type: { kind: 'field' }, visibility: 'private' }],
|
|
360
|
+
returnTypes: [],
|
|
361
|
+
errorTypes: { '1335198680857977525': { error_kind: 'string', string: 'No public functions' } },
|
|
362
|
+
},
|
|
363
|
+
bytecode: Buffer.from([]),
|
|
364
|
+
debugSymbols: '',
|
|
365
|
+
},
|
|
366
|
+
],
|
|
367
|
+
nonDispatchPublicFunctions: [],
|
|
368
|
+
outputs: { structs: {}, globals: {} },
|
|
369
|
+
storageLayout: {},
|
|
370
|
+
fileMap: {},
|
|
371
|
+
};
|
|
372
|
+
|
|
373
|
+
export class ContractClassRegistryContract extends ContractBase {
|
|
374
|
+
private constructor(wallet: Wallet) {
|
|
375
|
+
super(ProtocolContractAddress.ContractClassRegistry, ContractClassRegistryContractArtifact, wallet);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
public static at(wallet: Wallet): ContractClassRegistryContract {
|
|
379
|
+
return new ContractClassRegistryContract(wallet);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
declare public methods: {
|
|
383
|
+
/** broadcast_private_function(contract_class_id: struct, artifact_metadata_hash: field, utility_functions_artifact_tree_root: field, private_function_tree_sibling_path: array, private_function_tree_leaf_index: field, artifact_function_tree_sibling_path: array, artifact_function_tree_leaf_index: field, function_data: struct) */
|
|
384
|
+
broadcast_private_function: ((
|
|
385
|
+
contract_class_id: WrappedFieldLike,
|
|
386
|
+
artifact_metadata_hash: FieldLike,
|
|
387
|
+
utility_functions_artifact_tree_root: FieldLike,
|
|
388
|
+
private_function_tree_sibling_path: FieldLike[],
|
|
389
|
+
private_function_tree_leaf_index: FieldLike,
|
|
390
|
+
artifact_function_tree_sibling_path: FieldLike[],
|
|
391
|
+
artifact_function_tree_leaf_index: FieldLike,
|
|
392
|
+
function_data: { selector: FunctionSelectorLike; metadata_hash: FieldLike; vk_hash: FieldLike },
|
|
393
|
+
) => ContractFunctionInteraction) &
|
|
394
|
+
Pick<ContractMethod, 'selector'>;
|
|
395
|
+
|
|
396
|
+
/** broadcast_utility_function(contract_class_id: struct, artifact_metadata_hash: field, private_functions_artifact_tree_root: field, artifact_function_tree_sibling_path: array, artifact_function_tree_leaf_index: field, function_data: struct) */
|
|
397
|
+
broadcast_utility_function: ((
|
|
398
|
+
contract_class_id: WrappedFieldLike,
|
|
399
|
+
artifact_metadata_hash: FieldLike,
|
|
400
|
+
private_functions_artifact_tree_root: FieldLike,
|
|
401
|
+
artifact_function_tree_sibling_path: FieldLike[],
|
|
402
|
+
artifact_function_tree_leaf_index: FieldLike,
|
|
403
|
+
function_data: { selector: FunctionSelectorLike; metadata_hash: FieldLike },
|
|
404
|
+
) => ContractFunctionInteraction) &
|
|
405
|
+
Pick<ContractMethod, 'selector'>;
|
|
406
|
+
|
|
407
|
+
/** process_message(message_ciphertext: struct, message_context: struct) */
|
|
408
|
+
process_message: ((
|
|
409
|
+
message_ciphertext: FieldLike[],
|
|
410
|
+
message_context: {
|
|
411
|
+
tx_hash: FieldLike;
|
|
412
|
+
unique_note_hashes_in_tx: FieldLike[];
|
|
413
|
+
first_nullifier_in_tx: FieldLike;
|
|
414
|
+
recipient: AztecAddressLike;
|
|
415
|
+
},
|
|
416
|
+
) => ContractFunctionInteraction) &
|
|
417
|
+
Pick<ContractMethod, 'selector'>;
|
|
418
|
+
|
|
419
|
+
/** public_dispatch(selector: field) */
|
|
420
|
+
public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
421
|
+
|
|
422
|
+
/** publish(artifact_hash: field, private_functions_root: field, public_bytecode_commitment: field) */
|
|
423
|
+
publish: ((
|
|
424
|
+
artifact_hash: FieldLike,
|
|
425
|
+
private_functions_root: FieldLike,
|
|
426
|
+
public_bytecode_commitment: FieldLike,
|
|
427
|
+
) => ContractFunctionInteraction) &
|
|
428
|
+
Pick<ContractMethod, 'selector'>;
|
|
429
|
+
|
|
430
|
+
/** sync_state() */
|
|
431
|
+
sync_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
432
|
+
};
|
|
433
|
+
}
|