File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed
Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ import { setTokenUriSuffixAction } from '../utils/cmdActions/setTokenUriSuffixAc
4141import { ownerMintAction } from '../utils/cmdActions/ownerMintAction' ;
4242import { checkSignerBalanceAction } from '../utils/cmdActions/checkSignerBalanceAction' ;
4343import getWalletInfoAction from '../utils/cmdActions/getWalletInfoAction' ;
44+ import getProjectConfigAction from '../utils/cmdActions/getProjectConfigAction' ;
4445
4546export const newProjectCmd = new Command ( 'new' )
4647 . command ( 'new <symbol>' )
@@ -203,3 +204,9 @@ export const getWalletInfoCmd = new Command('get-wallet-info')
203204 . command ( 'get-wallet-info <symbol>' )
204205 . description ( 'Get the wallet info for a collection' )
205206 . action ( getWalletInfoAction ) ;
207+
208+ export const getConfigCmd = new Command ( 'get-config' )
209+ . command ( 'get-config <symbol>' )
210+ . alias ( 'gc' )
211+ . description ( 'Retrieve the project configuration for a specific collection.' )
212+ . action ( getProjectConfigAction ) ;
Original file line number Diff line number Diff line change 55 freezeThawContractCmd ,
66 checkSignerBalanceCmd ,
77 getWalletInfoCmd ,
8+ getConfigCmd ,
89 initContractCmd ,
910 listProjectsCmd ,
1011 manageAuthorizedMintersCmd ,
@@ -65,6 +66,7 @@ export const mainMenu = async () => {
6566 program . addCommand ( ownerMintCmd ) ;
6667 program . addCommand ( checkSignerBalanceCmd ) ;
6768 program . addCommand ( getWalletInfoCmd ) ;
69+ program . addCommand ( getConfigCmd ) ;
6870
6971 // network sub-commands
7072 program . addCommand ( eth ) ;
Original file line number Diff line number Diff line change 1+ import { showText } from '../display' ;
2+ import { init } from '../evmUtils' ;
3+
4+ const getProjectConfigAction = async ( symbol : string ) => {
5+ symbol = symbol . toLowerCase ( ) ;
6+
7+ const { store } = init ( symbol ) ;
8+
9+ showText ( `${ symbol } information retrieved successfully.` ) ;
10+ console . log ( JSON . stringify ( store . data , null , 2 ) ) ;
11+ } ;
12+
13+ export default getProjectConfigAction ;
You can’t perform that action at this time.
0 commit comments