@aztec/aztec.js 3.0.3 → 4.0.0-devnet.1-patch.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.
Files changed (197) hide show
  1. package/dest/account/account.d.ts +25 -40
  2. package/dest/account/account.d.ts.map +1 -1
  3. package/dest/account/account.js +19 -47
  4. package/dest/account/account_contract.d.ts +8 -9
  5. package/dest/account/account_contract.d.ts.map +1 -1
  6. package/dest/account/account_with_secret_key.d.ts +19 -7
  7. package/dest/account/account_with_secret_key.d.ts.map +1 -1
  8. package/dest/account/account_with_secret_key.js +21 -4
  9. package/dest/account/index.d.ts +3 -2
  10. package/dest/account/index.d.ts.map +1 -1
  11. package/dest/account/index.js +2 -0
  12. package/dest/account/signerless_account.d.ts +5 -6
  13. package/dest/account/signerless_account.d.ts.map +1 -1
  14. package/dest/account/signerless_account.js +8 -11
  15. package/dest/api/account.d.ts +2 -4
  16. package/dest/api/account.d.ts.map +1 -1
  17. package/dest/api/account.js +1 -3
  18. package/dest/api/authorization.d.ts +2 -2
  19. package/dest/api/authorization.d.ts.map +1 -1
  20. package/dest/api/authorization.js +1 -1
  21. package/dest/api/contract.d.ts +18 -12
  22. package/dest/api/contract.d.ts.map +1 -1
  23. package/dest/api/contract.js +16 -10
  24. package/dest/api/deployment.d.ts +1 -2
  25. package/dest/api/deployment.d.ts.map +1 -1
  26. package/dest/api/deployment.js +0 -1
  27. package/dest/api/events.d.ts +10 -6
  28. package/dest/api/events.d.ts.map +1 -1
  29. package/dest/api/events.js +30 -20
  30. package/dest/api/fields.d.ts +2 -1
  31. package/dest/api/fields.d.ts.map +1 -1
  32. package/dest/api/fields.js +1 -0
  33. package/dest/api/keys.d.ts +1 -1
  34. package/dest/api/keys.js +1 -1
  35. package/dest/api/node.d.ts +8 -4
  36. package/dest/api/node.d.ts.map +1 -1
  37. package/dest/api/node.js +7 -3
  38. package/dest/api/protocol.d.ts +7 -1
  39. package/dest/api/protocol.d.ts.map +1 -1
  40. package/dest/api/protocol.js +6 -0
  41. package/dest/api/tx.d.ts +2 -2
  42. package/dest/api/tx.d.ts.map +1 -1
  43. package/dest/api/tx.js +1 -1
  44. package/dest/api/wallet.d.ts +3 -2
  45. package/dest/api/wallet.d.ts.map +1 -1
  46. package/dest/api/wallet.js +2 -1
  47. package/dest/authorization/call_authorization_request.d.ts +22 -1
  48. package/dest/authorization/call_authorization_request.d.ts.map +1 -1
  49. package/dest/contract/base_contract_interaction.d.ts +8 -10
  50. package/dest/contract/base_contract_interaction.d.ts.map +1 -1
  51. package/dest/contract/base_contract_interaction.js +5 -17
  52. package/dest/contract/batch_call.d.ts +1 -1
  53. package/dest/contract/batch_call.d.ts.map +1 -1
  54. package/dest/contract/batch_call.js +3 -1
  55. package/dest/contract/contract_base.d.ts +4 -1
  56. package/dest/contract/contract_base.d.ts.map +1 -1
  57. package/dest/contract/contract_function_interaction.d.ts +3 -12
  58. package/dest/contract/contract_function_interaction.d.ts.map +1 -1
  59. package/dest/contract/contract_function_interaction.js +6 -6
  60. package/dest/contract/deploy_method.d.ts +63 -16
  61. package/dest/contract/deploy_method.d.ts.map +1 -1
  62. package/dest/contract/deploy_method.js +41 -23
  63. package/dest/contract/interaction_options.d.ts +42 -5
  64. package/dest/contract/interaction_options.d.ts.map +1 -1
  65. package/dest/contract/interaction_options.js +8 -1
  66. package/dest/contract/protocol_contracts/auth-registry.d.ts +27 -0
  67. package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -0
  68. package/dest/contract/protocol_contracts/auth-registry.js +558 -0
  69. package/dest/contract/protocol_contracts/contract-class-registry.d.ts +15 -0
  70. package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -0
  71. package/dest/contract/protocol_contracts/contract-class-registry.js +127 -0
  72. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +22 -0
  73. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -0
  74. package/dest/contract/protocol_contracts/contract-instance-registry.js +465 -0
  75. package/dest/contract/protocol_contracts/fee-juice.d.ts +21 -0
  76. package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -0
  77. package/dest/contract/protocol_contracts/fee-juice.js +426 -0
  78. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +34 -0
  79. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -0
  80. package/dest/contract/protocol_contracts/multi-call-entrypoint.js +585 -0
  81. package/dest/contract/protocol_contracts/public-checks.d.ts +26 -0
  82. package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -0
  83. package/dest/contract/protocol_contracts/public-checks.js +593 -0
  84. package/dest/contract/wait_for_proven.d.ts +2 -2
  85. package/dest/contract/wait_for_proven.d.ts.map +1 -1
  86. package/dest/contract/wait_for_proven.js +1 -1
  87. package/dest/contract/wait_opts.d.ts +16 -0
  88. package/dest/contract/wait_opts.d.ts.map +1 -0
  89. package/dest/contract/wait_opts.js +5 -0
  90. package/dest/deployment/publish_class.js +2 -2
  91. package/dest/deployment/publish_instance.d.ts +2 -2
  92. package/dest/deployment/publish_instance.d.ts.map +1 -1
  93. package/dest/deployment/publish_instance.js +3 -3
  94. package/dest/ethereum/portal_manager.d.ts +7 -4
  95. package/dest/ethereum/portal_manager.d.ts.map +1 -1
  96. package/dest/ethereum/portal_manager.js +15 -16
  97. package/dest/fee/fee_juice_payment_method_with_claim.js +6 -6
  98. package/dest/fee/private_fee_payment_method.js +10 -10
  99. package/dest/fee/public_fee_payment_method.js +10 -10
  100. package/dest/fee/sponsored_fee_payment.js +3 -3
  101. package/dest/scripts/generate_protocol_contract_types.d.ts +2 -0
  102. package/dest/scripts/generate_protocol_contract_types.d.ts.map +1 -0
  103. package/dest/scripts/generate_protocol_contract_types.js +120 -0
  104. package/dest/utils/authwit.d.ts +8 -6
  105. package/dest/utils/authwit.d.ts.map +1 -1
  106. package/dest/utils/authwit.js +5 -9
  107. package/dest/utils/node.d.ts +12 -1
  108. package/dest/utils/node.d.ts.map +1 -1
  109. package/dest/utils/node.js +46 -0
  110. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts +5 -8
  111. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts.map +1 -1
  112. package/dest/wallet/account_entrypoint_meta_payment_method.js +28 -43
  113. package/dest/wallet/account_manager.d.ts +5 -8
  114. package/dest/wallet/account_manager.d.ts.map +1 -1
  115. package/dest/wallet/account_manager.js +5 -11
  116. package/dest/wallet/capabilities.d.ts +444 -0
  117. package/dest/wallet/capabilities.d.ts.map +1 -0
  118. package/dest/wallet/capabilities.js +3 -0
  119. package/dest/wallet/deploy_account_method.d.ts +34 -6
  120. package/dest/wallet/deploy_account_method.d.ts.map +1 -1
  121. package/dest/wallet/deploy_account_method.js +7 -5
  122. package/dest/wallet/index.d.ts +2 -1
  123. package/dest/wallet/index.d.ts.map +1 -1
  124. package/dest/wallet/index.js +1 -0
  125. package/dest/wallet/wallet.d.ts +1642 -1007
  126. package/dest/wallet/wallet.d.ts.map +1 -1
  127. package/dest/wallet/wallet.js +201 -107
  128. package/package.json +24 -13
  129. package/src/account/account.ts +34 -58
  130. package/src/account/account_contract.ts +6 -7
  131. package/src/account/account_with_secret_key.ts +33 -8
  132. package/src/account/index.ts +2 -1
  133. package/src/account/signerless_account.ts +13 -12
  134. package/src/api/account.ts +9 -3
  135. package/src/api/authorization.ts +1 -0
  136. package/src/api/contract.ts +24 -9
  137. package/src/api/deployment.ts +0 -1
  138. package/src/api/events.ts +35 -27
  139. package/src/api/fields.ts +1 -0
  140. package/src/api/keys.ts +2 -2
  141. package/src/api/node.ts +7 -3
  142. package/src/api/protocol.ts +7 -0
  143. package/src/api/tx.ts +2 -0
  144. package/src/api/wallet.ts +47 -3
  145. package/src/contract/base_contract_interaction.ts +27 -15
  146. package/src/contract/batch_call.ts +4 -2
  147. package/src/contract/contract_function_interaction.ts +13 -6
  148. package/src/contract/deploy_method.ts +122 -29
  149. package/src/contract/interaction_options.ts +49 -4
  150. package/src/contract/protocol_contracts/auth-registry.ts +351 -0
  151. package/src/contract/protocol_contracts/contract-class-registry.ts +96 -0
  152. package/src/contract/protocol_contracts/contract-instance-registry.ts +302 -0
  153. package/src/contract/protocol_contracts/fee-juice.ts +264 -0
  154. package/src/contract/protocol_contracts/multi-call-entrypoint.ts +332 -0
  155. package/src/contract/protocol_contracts/public-checks.ts +316 -0
  156. package/src/contract/wait_for_proven.ts +1 -1
  157. package/src/contract/wait_opts.ts +21 -0
  158. package/src/deployment/publish_class.ts +2 -2
  159. package/src/deployment/publish_instance.ts +3 -6
  160. package/src/ethereum/portal_manager.ts +17 -21
  161. package/src/fee/fee_juice_payment_method_with_claim.ts +5 -5
  162. package/src/fee/private_fee_payment_method.ts +7 -7
  163. package/src/fee/public_fee_payment_method.ts +8 -8
  164. package/src/fee/sponsored_fee_payment.ts +3 -3
  165. package/src/scripts/generate_protocol_contract_types.ts +150 -0
  166. package/src/utils/authwit.ts +19 -7
  167. package/src/utils/node.ts +62 -0
  168. package/src/wallet/account_entrypoint_meta_payment_method.ts +28 -60
  169. package/src/wallet/account_manager.ts +5 -13
  170. package/src/wallet/capabilities.ts +491 -0
  171. package/src/wallet/deploy_account_method.ts +37 -13
  172. package/src/wallet/index.ts +1 -0
  173. package/src/wallet/wallet.ts +319 -118
  174. package/dest/account/interface.d.ts +0 -19
  175. package/dest/account/interface.d.ts.map +0 -1
  176. package/dest/account/interface.js +0 -5
  177. package/dest/contract/deploy_sent_tx.d.ts +0 -48
  178. package/dest/contract/deploy_sent_tx.d.ts.map +0 -1
  179. package/dest/contract/deploy_sent_tx.js +0 -46
  180. package/dest/contract/protocol_contracts.d.ts +0 -9
  181. package/dest/contract/protocol_contracts.d.ts.map +0 -1
  182. package/dest/contract/protocol_contracts.js +0 -26
  183. package/dest/contract/sent_tx.d.ts +0 -50
  184. package/dest/contract/sent_tx.d.ts.map +0 -1
  185. package/dest/contract/sent_tx.js +0 -90
  186. package/dest/contract/unsafe_contract.d.ts +0 -15
  187. package/dest/contract/unsafe_contract.d.ts.map +0 -1
  188. package/dest/contract/unsafe_contract.js +0 -6
  189. package/dest/deployment/broadcast_function.d.ts +0 -24
  190. package/dest/deployment/broadcast_function.d.ts.map +0 -1
  191. package/dest/deployment/broadcast_function.js +0 -74
  192. package/src/account/interface.ts +0 -25
  193. package/src/contract/deploy_sent_tx.ts +0 -75
  194. package/src/contract/protocol_contracts.ts +0 -35
  195. package/src/contract/sent_tx.ts +0 -129
  196. package/src/contract/unsafe_contract.ts +0 -19
  197. package/src/deployment/broadcast_function.ts +0 -148
@@ -0,0 +1,127 @@
1
+ /* Autogenerated file, do not edit! */ /* eslint-disable */ import { ProtocolContractAddress } from '@aztec/protocol-contracts';
2
+ import { FunctionType } from '@aztec/stdlib/abi';
3
+ import { ContractBase } from '../contract_base.js';
4
+ const ContractClassRegistryContractArtifact = {
5
+ name: 'ContractClassRegistry',
6
+ functions: [
7
+ {
8
+ ...{
9
+ functionType: FunctionType.PRIVATE,
10
+ name: 'publish',
11
+ isOnlySelf: false,
12
+ isStatic: false,
13
+ isInitializer: false,
14
+ parameters: [
15
+ {
16
+ name: 'artifact_hash',
17
+ type: {
18
+ kind: 'field'
19
+ },
20
+ visibility: 'private'
21
+ },
22
+ {
23
+ name: 'private_functions_root',
24
+ type: {
25
+ kind: 'field'
26
+ },
27
+ visibility: 'private'
28
+ },
29
+ {
30
+ name: 'public_bytecode_commitment',
31
+ type: {
32
+ kind: 'field'
33
+ },
34
+ visibility: 'private'
35
+ }
36
+ ],
37
+ returnTypes: [],
38
+ errorTypes: {
39
+ '361444214588792908': {
40
+ error_kind: 'string',
41
+ string: 'attempt to multiply with overflow'
42
+ },
43
+ '922421554006670918': {
44
+ error_kind: 'string',
45
+ string: 'num_items is greater than MAX_ITEMS'
46
+ },
47
+ '1998584279744703196': {
48
+ error_kind: 'string',
49
+ string: 'attempt to subtract with overflow'
50
+ },
51
+ '10965409165809799877': {
52
+ error_kind: 'string',
53
+ string: 'Given in_len to absorb is larger than the input array len'
54
+ },
55
+ '14990209321349310352': {
56
+ error_kind: 'string',
57
+ string: 'attempt to add with overflow'
58
+ },
59
+ '15669273164684982983': {
60
+ error_kind: 'string',
61
+ string: 'num_permutations is greater than MAX_PERMUTATIONS'
62
+ },
63
+ '15764276373176857197': {
64
+ error_kind: 'string',
65
+ string: 'Stack too deep'
66
+ },
67
+ '16431471497789672479': {
68
+ error_kind: 'string',
69
+ string: 'Index out of bounds'
70
+ },
71
+ '16450579948625159707': {
72
+ error_kind: 'string',
73
+ string: 'Sponge must be in cache_size=1'
74
+ },
75
+ '17655676068928457687': {
76
+ error_kind: 'string',
77
+ string: 'Reader did not read all data'
78
+ }
79
+ }
80
+ },
81
+ bytecode: Buffer.from([]),
82
+ debugSymbols: ''
83
+ },
84
+ {
85
+ ...{
86
+ functionType: FunctionType.PUBLIC,
87
+ name: 'public_dispatch',
88
+ isOnlySelf: false,
89
+ isStatic: false,
90
+ isInitializer: false,
91
+ parameters: [
92
+ {
93
+ name: 'selector',
94
+ type: {
95
+ kind: 'field'
96
+ },
97
+ visibility: 'private'
98
+ }
99
+ ],
100
+ returnTypes: [],
101
+ errorTypes: {
102
+ '1335198680857977525': {
103
+ error_kind: 'string',
104
+ string: 'No public functions'
105
+ }
106
+ }
107
+ },
108
+ bytecode: Buffer.from([]),
109
+ debugSymbols: ''
110
+ }
111
+ ],
112
+ nonDispatchPublicFunctions: [],
113
+ outputs: {
114
+ structs: {},
115
+ globals: {}
116
+ },
117
+ storageLayout: {},
118
+ fileMap: {}
119
+ };
120
+ export class ContractClassRegistryContract extends ContractBase {
121
+ constructor(wallet){
122
+ super(ProtocolContractAddress.ContractClassRegistry, ContractClassRegistryContractArtifact, wallet);
123
+ }
124
+ static at(wallet) {
125
+ return new ContractClassRegistryContract(wallet);
126
+ }
127
+ }
@@ -0,0 +1,22 @@
1
+ import { PublicKeys } from '../../api/keys.js';
2
+ import type { FieldLike, WrappedFieldLike } from '../../utils/abi_types.js';
3
+ import type { Wallet } from '../../wallet/wallet.js';
4
+ import { ContractBase, type ContractMethod } from '../contract_base.js';
5
+ import { ContractFunctionInteraction } from '../contract_function_interaction.js';
6
+ export declare class ContractInstanceRegistryContract extends ContractBase {
7
+ private constructor();
8
+ static at(wallet: Wallet): ContractInstanceRegistryContract;
9
+ methods: {
10
+ /** get_update_delay() */
11
+ get_update_delay: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
12
+ /** public_dispatch(selector: field) */
13
+ public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
14
+ /** publish_for_public_execution(salt: field, contract_class_id: struct, initialization_hash: field, public_keys: struct, universal_deploy: boolean) */
15
+ publish_for_public_execution: ((salt: FieldLike, contract_class_id: WrappedFieldLike, initialization_hash: FieldLike, public_keys: PublicKeys, universal_deploy: boolean) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
16
+ /** set_update_delay(new_update_delay: integer) */
17
+ set_update_delay: ((new_update_delay: bigint | number) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
18
+ /** update(new_contract_class_id: struct) */
19
+ update: ((new_contract_class_id: WrappedFieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
20
+ };
21
+ }
22
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJhY3QtaW5zdGFuY2UtcmVnaXN0cnkuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb250cmFjdC9wcm90b2NvbF9jb250cmFjdHMvY29udHJhY3QtaW5zdGFuY2UtcmVnaXN0cnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBTUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQy9DLE9BQU8sS0FBSyxFQUdWLFNBQVMsRUFFVCxnQkFBZ0IsRUFDakIsTUFBTSwwQkFBMEIsQ0FBQztBQUNsQyxPQUFPLE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SxDQUFDLENBQUM7UUFFbkMsNENBQTRDO1FBQzVDLE1BQU0sRUFBRSxDQUFDLENBQUMscUJBQXFCLEVBQUUsZ0JBQWdCLEtBQUssMkJBQTJCLENBQUMsR0FDaEYsSUFBSSxDQUFDLGNBQWMsRUFBRSxVQUFVLENBQUMsQ0FBQztLQUNwQyxDQUFDO0NBQ0gifQ==
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract-instance-registry.d.ts","sourceRoot":"","sources":["../../../src/contract/protocol_contracts/contract-instance-registry.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAGV,SAAS,EAET,gBAAgB,EACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AA2PlF,qBAAa,gCAAiC,SAAQ,YAAY;IAChE,OAAO,eAEN;IAED,OAAc,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,gCAAgC,CAEjE;IAEc,OAAO,EAAE;QACtB,yBAAyB;QACzB,gBAAgB,EAAE,CAAC,MAAM,2BAA2B,CAAC,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAEzF,uCAAuC;QACvC,eAAe,EAAE,CAAC,CAAC,QAAQ,EAAE,SAAS,KAAK,2BAA2B,CAAC,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAE3G,uJAAuJ;QACvJ,4BAA4B,EAAE,CAAC,CAC7B,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,gBAAgB,EACnC,mBAAmB,EAAE,SAAS,EAC9B,WAAW,EAAE,UAAU,EACvB,gBAAgB,EAAE,OAAO,KACtB,2BAA2B,CAAC,GAC/B,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAEnC,kDAAkD;QAClD,gBAAgB,EAAE,CAAC,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM,KAAK,2BAA2B,CAAC,GACpF,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAEnC,4CAA4C;QAC5C,MAAM,EAAE,CAAC,CAAC,qBAAqB,EAAE,gBAAgB,KAAK,2BAA2B,CAAC,GAChF,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;KACpC,CAAC;CACH"}
@@ -0,0 +1,465 @@
1
+ /* Autogenerated file, do not edit! */ /* eslint-disable */ import { ProtocolContractAddress } from '@aztec/protocol-contracts';
2
+ import { FunctionType } from '@aztec/stdlib/abi';
3
+ import { ContractBase } from '../contract_base.js';
4
+ const ContractInstanceRegistryContractArtifact = {
5
+ name: 'ContractInstanceRegistry',
6
+ functions: [
7
+ {
8
+ ...{
9
+ functionType: FunctionType.PUBLIC,
10
+ name: 'public_dispatch',
11
+ isOnlySelf: false,
12
+ isStatic: false,
13
+ isInitializer: false,
14
+ parameters: [
15
+ {
16
+ name: 'selector',
17
+ type: {
18
+ kind: 'field'
19
+ },
20
+ visibility: 'private'
21
+ }
22
+ ],
23
+ returnTypes: [],
24
+ errorTypes: {
25
+ '361444214588792908': {
26
+ error_kind: 'string',
27
+ string: 'attempt to multiply with overflow'
28
+ },
29
+ '1998584279744703196': {
30
+ error_kind: 'string',
31
+ string: 'attempt to subtract with overflow'
32
+ },
33
+ '5755400808989454547': {
34
+ error_kind: 'string',
35
+ string: 'Function get_update_delay can only be called statically'
36
+ },
37
+ '6804164082532189961': {
38
+ error_kind: 'string',
39
+ string: 'New update delay is too low'
40
+ },
41
+ '12511970388699677811': {
42
+ error_kind: 'fmtstring',
43
+ length: 27,
44
+ item_types: [
45
+ {
46
+ kind: 'field'
47
+ }
48
+ ]
49
+ },
50
+ '12579274401768182412': {
51
+ error_kind: 'string',
52
+ string: 'New contract class is not registered'
53
+ },
54
+ '13455385521185560676': {
55
+ error_kind: 'string',
56
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
57
+ },
58
+ '14990209321349310352': {
59
+ error_kind: 'string',
60
+ string: 'attempt to add with overflow'
61
+ },
62
+ '15353471697975175405': {
63
+ error_kind: 'string',
64
+ string: 'msg.sender is not deployed'
65
+ },
66
+ '15764276373176857197': {
67
+ error_kind: 'string',
68
+ string: 'Stack too deep'
69
+ },
70
+ '16431471497789672479': {
71
+ error_kind: 'string',
72
+ string: 'Index out of bounds'
73
+ }
74
+ }
75
+ },
76
+ bytecode: Buffer.from([]),
77
+ debugSymbols: ''
78
+ },
79
+ {
80
+ ...{
81
+ functionType: FunctionType.PRIVATE,
82
+ name: 'publish_for_public_execution',
83
+ isOnlySelf: false,
84
+ isStatic: false,
85
+ isInitializer: false,
86
+ parameters: [
87
+ {
88
+ name: 'salt',
89
+ type: {
90
+ kind: 'field'
91
+ },
92
+ visibility: 'private'
93
+ },
94
+ {
95
+ name: 'contract_class_id',
96
+ type: {
97
+ kind: 'struct',
98
+ fields: [
99
+ {
100
+ name: 'inner',
101
+ type: {
102
+ kind: 'field'
103
+ }
104
+ }
105
+ ],
106
+ path: 'aztec::protocol_types::contract_class_id::ContractClassId'
107
+ },
108
+ visibility: 'private'
109
+ },
110
+ {
111
+ name: 'initialization_hash',
112
+ type: {
113
+ kind: 'field'
114
+ },
115
+ visibility: 'private'
116
+ },
117
+ {
118
+ name: 'public_keys',
119
+ type: {
120
+ kind: 'struct',
121
+ fields: [
122
+ {
123
+ name: 'npk_m',
124
+ type: {
125
+ kind: 'struct',
126
+ fields: [
127
+ {
128
+ name: 'inner',
129
+ type: {
130
+ kind: 'struct',
131
+ fields: [
132
+ {
133
+ name: 'x',
134
+ type: {
135
+ kind: 'field'
136
+ }
137
+ },
138
+ {
139
+ name: 'y',
140
+ type: {
141
+ kind: 'field'
142
+ }
143
+ },
144
+ {
145
+ name: 'is_infinite',
146
+ type: {
147
+ kind: 'boolean'
148
+ }
149
+ }
150
+ ],
151
+ path: 'std::embedded_curve_ops::EmbeddedCurvePoint'
152
+ }
153
+ }
154
+ ],
155
+ path: 'aztec::protocol_types::public_keys::NpkM'
156
+ }
157
+ },
158
+ {
159
+ name: 'ivpk_m',
160
+ type: {
161
+ kind: 'struct',
162
+ fields: [
163
+ {
164
+ name: 'inner',
165
+ type: {
166
+ kind: 'struct',
167
+ fields: [
168
+ {
169
+ name: 'x',
170
+ type: {
171
+ kind: 'field'
172
+ }
173
+ },
174
+ {
175
+ name: 'y',
176
+ type: {
177
+ kind: 'field'
178
+ }
179
+ },
180
+ {
181
+ name: 'is_infinite',
182
+ type: {
183
+ kind: 'boolean'
184
+ }
185
+ }
186
+ ],
187
+ path: 'std::embedded_curve_ops::EmbeddedCurvePoint'
188
+ }
189
+ }
190
+ ],
191
+ path: 'aztec::protocol_types::public_keys::IvpkM'
192
+ }
193
+ },
194
+ {
195
+ name: 'ovpk_m',
196
+ type: {
197
+ kind: 'struct',
198
+ fields: [
199
+ {
200
+ name: 'inner',
201
+ type: {
202
+ kind: 'struct',
203
+ fields: [
204
+ {
205
+ name: 'x',
206
+ type: {
207
+ kind: 'field'
208
+ }
209
+ },
210
+ {
211
+ name: 'y',
212
+ type: {
213
+ kind: 'field'
214
+ }
215
+ },
216
+ {
217
+ name: 'is_infinite',
218
+ type: {
219
+ kind: 'boolean'
220
+ }
221
+ }
222
+ ],
223
+ path: 'std::embedded_curve_ops::EmbeddedCurvePoint'
224
+ }
225
+ }
226
+ ],
227
+ path: 'aztec::protocol_types::public_keys::OvpkM'
228
+ }
229
+ },
230
+ {
231
+ name: 'tpk_m',
232
+ type: {
233
+ kind: 'struct',
234
+ fields: [
235
+ {
236
+ name: 'inner',
237
+ type: {
238
+ kind: 'struct',
239
+ fields: [
240
+ {
241
+ name: 'x',
242
+ type: {
243
+ kind: 'field'
244
+ }
245
+ },
246
+ {
247
+ name: 'y',
248
+ type: {
249
+ kind: 'field'
250
+ }
251
+ },
252
+ {
253
+ name: 'is_infinite',
254
+ type: {
255
+ kind: 'boolean'
256
+ }
257
+ }
258
+ ],
259
+ path: 'std::embedded_curve_ops::EmbeddedCurvePoint'
260
+ }
261
+ }
262
+ ],
263
+ path: 'aztec::protocol_types::public_keys::TpkM'
264
+ }
265
+ }
266
+ ],
267
+ path: 'aztec::protocol_types::public_keys::PublicKeys'
268
+ },
269
+ visibility: 'private'
270
+ },
271
+ {
272
+ name: 'universal_deploy',
273
+ type: {
274
+ kind: 'boolean'
275
+ },
276
+ visibility: 'private'
277
+ }
278
+ ],
279
+ returnTypes: [],
280
+ errorTypes: {
281
+ '718532354304118388': {
282
+ error_kind: 'string',
283
+ string: 'Point not on curve'
284
+ },
285
+ '4135474769840782447': {
286
+ error_kind: 'string',
287
+ string: 'Point at infinity should have canonical representation (0 0)'
288
+ },
289
+ '12469291177396340830': {
290
+ error_kind: 'string',
291
+ string: 'call to assert_max_bit_size'
292
+ },
293
+ '14990209321349310352': {
294
+ error_kind: 'string',
295
+ string: 'attempt to add with overflow'
296
+ },
297
+ '15764276373176857197': {
298
+ error_kind: 'string',
299
+ string: 'Stack too deep'
300
+ }
301
+ }
302
+ },
303
+ bytecode: Buffer.from([]),
304
+ debugSymbols: ''
305
+ }
306
+ ],
307
+ nonDispatchPublicFunctions: [
308
+ {
309
+ functionType: FunctionType.PUBLIC,
310
+ name: 'get_update_delay',
311
+ isOnlySelf: false,
312
+ isStatic: true,
313
+ isInitializer: false,
314
+ parameters: [],
315
+ returnTypes: [
316
+ {
317
+ kind: 'integer',
318
+ sign: 'unsigned',
319
+ width: 64
320
+ }
321
+ ],
322
+ errorTypes: {
323
+ '5755400808989454547': {
324
+ error_kind: 'string',
325
+ string: 'Function get_update_delay can only be called statically'
326
+ },
327
+ '13455385521185560676': {
328
+ error_kind: 'string',
329
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
330
+ },
331
+ '15764276373176857197': {
332
+ error_kind: 'string',
333
+ string: 'Stack too deep'
334
+ }
335
+ }
336
+ },
337
+ {
338
+ functionType: FunctionType.PUBLIC,
339
+ name: 'set_update_delay',
340
+ isOnlySelf: false,
341
+ isStatic: false,
342
+ isInitializer: false,
343
+ parameters: [
344
+ {
345
+ name: 'new_update_delay',
346
+ type: {
347
+ kind: 'integer',
348
+ sign: 'unsigned',
349
+ width: 64
350
+ },
351
+ visibility: 'private'
352
+ }
353
+ ],
354
+ returnTypes: [],
355
+ errorTypes: {
356
+ '361444214588792908': {
357
+ error_kind: 'string',
358
+ string: 'attempt to multiply with overflow'
359
+ },
360
+ '1998584279744703196': {
361
+ error_kind: 'string',
362
+ string: 'attempt to subtract with overflow'
363
+ },
364
+ '6804164082532189961': {
365
+ error_kind: 'string',
366
+ string: 'New update delay is too low'
367
+ },
368
+ '13455385521185560676': {
369
+ error_kind: 'string',
370
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
371
+ },
372
+ '14990209321349310352': {
373
+ error_kind: 'string',
374
+ string: 'attempt to add with overflow'
375
+ },
376
+ '15353471697975175405': {
377
+ error_kind: 'string',
378
+ string: 'msg.sender is not deployed'
379
+ },
380
+ '15764276373176857197': {
381
+ error_kind: 'string',
382
+ string: 'Stack too deep'
383
+ },
384
+ '16431471497789672479': {
385
+ error_kind: 'string',
386
+ string: 'Index out of bounds'
387
+ }
388
+ }
389
+ },
390
+ {
391
+ functionType: FunctionType.PUBLIC,
392
+ name: 'update',
393
+ isOnlySelf: false,
394
+ isStatic: false,
395
+ isInitializer: false,
396
+ parameters: [
397
+ {
398
+ name: 'new_contract_class_id',
399
+ type: {
400
+ kind: 'struct',
401
+ fields: [
402
+ {
403
+ name: 'inner',
404
+ type: {
405
+ kind: 'field'
406
+ }
407
+ }
408
+ ],
409
+ path: 'aztec::protocol_types::contract_class_id::ContractClassId'
410
+ },
411
+ visibility: 'private'
412
+ }
413
+ ],
414
+ returnTypes: [],
415
+ errorTypes: {
416
+ '361444214588792908': {
417
+ error_kind: 'string',
418
+ string: 'attempt to multiply with overflow'
419
+ },
420
+ '1998584279744703196': {
421
+ error_kind: 'string',
422
+ string: 'attempt to subtract with overflow'
423
+ },
424
+ '12579274401768182412': {
425
+ error_kind: 'string',
426
+ string: 'New contract class is not registered'
427
+ },
428
+ '13455385521185560676': {
429
+ error_kind: 'string',
430
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
431
+ },
432
+ '14990209321349310352': {
433
+ error_kind: 'string',
434
+ string: 'attempt to add with overflow'
435
+ },
436
+ '15353471697975175405': {
437
+ error_kind: 'string',
438
+ string: 'msg.sender is not deployed'
439
+ },
440
+ '15764276373176857197': {
441
+ error_kind: 'string',
442
+ string: 'Stack too deep'
443
+ },
444
+ '16431471497789672479': {
445
+ error_kind: 'string',
446
+ string: 'Index out of bounds'
447
+ }
448
+ }
449
+ }
450
+ ],
451
+ outputs: {
452
+ structs: {},
453
+ globals: {}
454
+ },
455
+ storageLayout: {},
456
+ fileMap: {}
457
+ };
458
+ export class ContractInstanceRegistryContract extends ContractBase {
459
+ constructor(wallet){
460
+ super(ProtocolContractAddress.ContractInstanceRegistry, ContractInstanceRegistryContractArtifact, wallet);
461
+ }
462
+ static at(wallet) {
463
+ return new ContractInstanceRegistryContract(wallet);
464
+ }
465
+ }
@@ -0,0 +1,21 @@
1
+ import type { AztecAddressLike, FieldLike } from '../../utils/abi_types.js';
2
+ import type { Wallet } from '../../wallet/wallet.js';
3
+ import { ContractBase, type ContractMethod } from '../contract_base.js';
4
+ import { ContractFunctionInteraction } from '../contract_function_interaction.js';
5
+ export declare class FeeJuiceContract extends ContractBase {
6
+ private constructor();
7
+ static at(wallet: Wallet): FeeJuiceContract;
8
+ methods: {
9
+ /** balance_of_public(owner: struct) */
10
+ balance_of_public: ((owner: AztecAddressLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
11
+ /** check_balance(fee_limit: integer) */
12
+ check_balance: ((fee_limit: bigint | number) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
13
+ /** claim(to: struct, amount: integer, secret: field, message_leaf_index: field) */
14
+ claim: ((to: AztecAddressLike, amount: bigint | number, secret: FieldLike, message_leaf_index: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
15
+ /** claim_and_end_setup(to: struct, amount: integer, secret: field, message_leaf_index: field) */
16
+ claim_and_end_setup: ((to: AztecAddressLike, amount: bigint | number, secret: FieldLike, message_leaf_index: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
17
+ /** public_dispatch(selector: field) */
18
+ public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
19
+ };
20
+ }
21
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmVlLWp1aWNlLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29udHJhY3QvcHJvdG9jb2xfY29udHJhY3RzL2ZlZS1qdWljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPQSxPQUFPLEtBQUssRUFDVixnQkFBZ0IsRUFFaEIsU0FBUyxFQUdWLE1BQU0sMEJBQTBCLENBQUM7QUFDbEMsT0FBTyxLQUFLLEVBQUUsTUFBTSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDckQsT0FBTyxFQUFFLFlBQVksRUFBRSxLQUFLLGNBQWMsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ3hFLE9BQU8sRUFBRSwyQkFBMkIsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBa05sRixxQkFBYSxnQkFBaUIsU0FBUSxZQUFZO0lBQ2hELE9BQU8sZUFFTjtJQUVELE9BQWMsRUFBRSxDQUFDLE1BQU0sRUFBRSxNQUFNLEdBQUcsZ0JBQWdCLENBRWpEO0lBRWMsT0FBTyxFQUFFO1FBQ3RCLHVDQUF1QztRQUN2QyxpQkFBaUIsRUFBRSxDQUFDLENBQUMsS0FBSyxFQUFFL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