@@ -41,9 +41,8 @@ const PACKAGE_DIR: &str = "packages";
4141
4242fn main ( ) {
4343 // Basic wallet (no storage schema)
44- let basic_wallet_metadata = AccountComponentMetadata :: new ( BasicWallet :: NAME )
45- . with_description ( "Basic wallet component for receiving and sending assets" )
46- . with_supports_all_types ( ) ;
44+ let basic_wallet_metadata = AccountComponentMetadata :: new ( BasicWallet :: NAME , AccountType :: all ( ) )
45+ . with_description ( "Basic wallet component for receiving and sending assets" ) ;
4746 build_package ( "basic-wallet" , basic_wallet_library ( ) , & basic_wallet_metadata, None ) ;
4847
4948 // Basic fungible faucet
@@ -65,9 +64,9 @@ fn main() {
6564 ] ,
6665 ) ,
6766 ) ;
68- let basic_faucet_metadata = AccountComponentMetadata :: new ( BasicFungibleFaucet :: NAME )
69- . with_description ( "Basic fungible faucet component for minting and burning tokens" )
70- . with_supported_type ( AccountType :: FungibleFaucet )
67+ let basic_faucet_metadata =
68+ AccountComponentMetadata :: new ( BasicFungibleFaucet :: NAME , [ AccountType :: FungibleFaucet ] )
69+ . with_description ( "Basic fungible faucet component for minting and burning tokens" )
7170 . with_storage_schema (
7271 StorageSchema :: new ( [ faucet_metadata_schema] ) . expect ( "storage schema should be valid" ) ,
7372 ) ;
@@ -79,11 +78,10 @@ fn main() {
7978 ) ;
8079
8180 // Basic auth (singlesig - supports both RPO Falcon and ECDSA)
82- let singlesig_metadata = AccountComponentMetadata :: new ( AuthSingleSig :: NAME )
81+ let singlesig_metadata = AccountComponentMetadata :: new ( AuthSingleSig :: NAME , AccountType :: all ( ) )
8382 . with_description (
8483 "Authentication component using ECDSA K256 Keccak or Rpo Falcon 512 signature scheme" ,
8584 )
86- . with_supports_all_types ( )
8785 . with_storage_schema (
8886 StorageSchema :: new ( [
8987 AuthSingleSig :: public_key_slot_schema ( ) ,
@@ -99,9 +97,8 @@ fn main() {
9997
10098 // No authentication component. Nonce is incremented on first transaction and when the account
10199 // state is changed. Provides no cryptographic authentication.
102- let no_auth_metadata = AccountComponentMetadata :: new ( NoAuth :: NAME )
103- . with_description ( "No authentication component" )
104- . with_supports_all_types ( ) ;
100+ let no_auth_metadata = AccountComponentMetadata :: new ( NoAuth :: NAME , AccountType :: all ( ) )
101+ . with_description ( "No authentication component" ) ;
105102 build_package ( "no-auth" , no_auth_library ( ) , & no_auth_metadata, Some ( "auth" ) ) ;
106103
107104 // Multisig auth
@@ -116,9 +113,8 @@ fn main() {
116113 AuthMultisig :: approver_scheme_ids_slot ( ) . clone ( ) ,
117114 StorageSlotSchema :: map ( "Approver scheme IDs" , SchemaType :: u32 ( ) , SchemaType :: native_word ( ) ) ,
118115 ) ;
119- let multisig_metadata = AccountComponentMetadata :: new ( AuthMultisig :: NAME )
116+ let multisig_metadata = AccountComponentMetadata :: new ( AuthMultisig :: NAME , AccountType :: all ( ) )
120117 . with_description ( "Multisig authentication component using hybrid signature schemes" )
121- . with_supports_all_types ( )
122118 . with_storage_schema (
123119 StorageSchema :: new ( [
124120 AuthMultisig :: threshold_config_slot_schema ( ) ,
@@ -133,11 +129,10 @@ fn main() {
133129
134130 // ACL auth
135131 let acl_metadata =
136- AccountComponentMetadata :: new ( AuthSingleSigAcl :: NAME )
132+ AccountComponentMetadata :: new ( AuthSingleSigAcl :: NAME , AccountType :: all ( ) )
137133 . with_description (
138134 "Authentication component with procedure-based ACL using ECDSA K256 Keccak or Rpo Falcon 512 signature scheme" ,
139135 )
140- . with_supports_all_types ( )
141136 . with_storage_schema (
142137 StorageSchema :: new ( [
143138 AuthSingleSigAcl :: public_key_slot_schema ( ) ,
0 commit comments