@openzeppelin/compact-contracts 0.4.0-alpha.1 → 0.4.0-alpha.3

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 (46) hide show
  1. package/README.md +9 -5
  2. package/access/AccessControl.compact +13 -13
  3. package/access/Ownable.compact +15 -9
  4. package/access/ShieldedAccessControl.compact +25 -1
  5. package/access/ZOwnablePK.compact +8 -8
  6. package/crypto/EcdhMask.compact +1 -1
  7. package/crypto/Ecdsa.compact +4 -4
  8. package/crypto/Eip712.compact +168 -0
  9. package/crypto/ElGamal.compact +44 -3
  10. package/multisig/EcdsaSignerManager.compact +32 -15
  11. package/multisig/ForwarderPrivate.compact +11 -5
  12. package/multisig/ForwarderShielded.compact +2 -2
  13. package/multisig/ForwarderUnshielded.compact +2 -2
  14. package/multisig/ProposalManager.compact +194 -22
  15. package/multisig/ShieldedTreasury.compact +28 -1
  16. package/multisig/ShieldedTreasuryStateless.compact +1 -1
  17. package/multisig/Signer.compact +27 -79
  18. package/multisig/UnshieldedTreasury.compact +9 -1
  19. package/multisig/{presets/forwarder/ForwarderPrivate.compact → examples/ForwarderPrivateExample.compact} +3 -3
  20. package/multisig/{presets/forwarder/ForwarderShielded.compact → examples/ForwarderShieldedExample.compact} +3 -3
  21. package/multisig/{presets/forwarder/ForwarderUnshielded.compact → examples/ForwarderUnshieldedExample.compact} +3 -3
  22. package/multisig/examples/NativeShieldedTokenIssuerExample.compact +143 -0
  23. package/multisig/examples/ShieldedMultiSigV2Example.compact +77 -0
  24. package/multisig/presets/NativeShieldedTokenIssuer.compact +557 -0
  25. package/multisig/presets/ShieldedMultiSigV2.compact +251 -188
  26. package/package.json +15 -11
  27. package/security/Allowlist.compact +5 -5
  28. package/security/Blocklist.compact +5 -5
  29. package/security/Initializable.compact +8 -4
  30. package/security/Pausable.compact +10 -6
  31. package/token/ConfidentialFungibleToken.compact +337 -79
  32. package/token/FungibleToken.compact +35 -21
  33. package/token/MultiToken.compact +15 -15
  34. package/token/NativeShieldedToken.compact +65 -16
  35. package/token/NativeShieldedTokenCore.compact +57 -15
  36. package/token/NativeShieldedTokenFamily.compact +66 -16
  37. package/token/NonFungibleToken.compact +83 -34
  38. package/token/extensions/ConfidentialFungibleTokenPublicSupply.compact +11 -6
  39. package/token/extensions/NativeShieldedTokenDerivedNonce.compact +2 -2
  40. package/token/extensions/NativeShieldedTokenFamilyPublicSupply.compact +7 -7
  41. package/token/extensions/NativeShieldedTokenPublicSupply.compact +7 -7
  42. package/token/extensions/NativeShieldedTokenPublicSupplyCore.compact +5 -5
  43. package/utils/EvmAbi.compact +134 -0
  44. package/utils/Utils.compact +11 -1
  45. package/multisig/presets/ShieldedMultiSig.compact +0 -227
  46. package/multisig/presets/ShieldedMultiSigV3.compact +0 -311
@@ -1,5 +1,5 @@
1
1
  // SPDX-License-Identifier: MIT
2
- // OpenZeppelin Compact Contracts v0.4.0-alpha.1 (security/Pausable.compact)
2
+ // OpenZeppelin Compact Contracts v0.4.0-alpha.3 (security/Pausable.compact)
3
3
 
4
4
  pragma language_version >= 0.26.0;
5
5
 
@@ -12,12 +12,16 @@ pragma language_version >= 0.26.0;
12
12
  module Pausable {
13
13
  import CompactStandardLibrary;
14
14
 
15
+ /**
16
+ * @description Whether the contract is paused. Consuming contracts gate
17
+ * state-changing circuits on it via `assertPaused` / `assertNotPaused`.
18
+ */
15
19
  export ledger _isPaused: Boolean;
16
20
 
17
21
  /**
18
22
  * @description Returns true if the contract is paused, and false otherwise.
19
23
  *
20
- * @circuitInfo k=10, rows=32
24
+ * @constraints k=6, rows=24
21
25
  *
22
26
  * @return {Boolean} True if paused.
23
27
  */
@@ -28,7 +32,7 @@ module Pausable {
28
32
  /**
29
33
  * @description Makes a circuit only callable when the contract is paused.
30
34
  *
31
- * @circuitInfo k=10, rows=31
35
+ * @constraints k=6, rows=25
32
36
  *
33
37
  * Requirements:
34
38
  *
@@ -43,7 +47,7 @@ module Pausable {
43
47
  /**
44
48
  * @description Makes a circuit only callable when the contract is not paused.
45
49
  *
46
- * @circuitInfo k=10, rows=35
50
+ * @constraints k=6, rows=28
47
51
  *
48
52
  * Requirements:
49
53
  *
@@ -58,7 +62,7 @@ module Pausable {
58
62
  /**
59
63
  * @description Triggers a stopped state.
60
64
  *
61
- * @circuitInfo k=10, rows=38
65
+ * @constraints k=6, rows=28
62
66
  *
63
67
  * Requirements:
64
68
  *
@@ -74,7 +78,7 @@ module Pausable {
74
78
  /**
75
79
  * @description Lifts the pause on the contract.
76
80
  *
77
- * @circuitInfo k=10, rows=34
81
+ * @constraints k=6, rows=25
78
82
  *
79
83
  * Requirements:
80
84
  *