@@ -100,6 +100,9 @@ export const createMockTopicMessagesAPIResponse = (
100100 ...overrides ,
101101} ) ;
102102
103+ /**
104+ * Domain `TokenInfo` after `getTokenInfo` (for mocks that bypass HTTP and return a resolved value).
105+ */
103106export const createMockTokenInfo = (
104107 overrides : Partial < TokenInfo > = { } ,
105108) : TokenInfo => ( {
@@ -110,7 +113,30 @@ export const createMockTokenInfo = (
110113 total_supply : '1000000000' ,
111114 max_supply : '1000000000' ,
112115 type : 'NON_FUNGIBLE_UNIQUE' ,
113- treasury : '0.0.1234' ,
116+ treasury_account_id : '0.0.1234' ,
117+ created_timestamp : '2024-01-01T12:00:00.000Z' ,
118+ deleted : false ,
119+ default_freeze_status : false ,
120+ default_kyc_status : false ,
121+ pause_status : 'UNPAUSED' ,
122+ memo : '' ,
123+ ...overrides ,
124+ } ) ;
125+
126+ /**
127+ * Raw JSON body for GET /api/v1/tokens/{id} (Mirror Node). Use with `fetch` mocks.
128+ */
129+ export const createMockMirrorNodeTokenByIdJson = (
130+ overrides : Record < string , unknown > = { } ,
131+ ) : Record < string , unknown > => ( {
132+ token_id : '0.0.2000' ,
133+ symbol : 'TEST' ,
134+ name : 'Test Token' ,
135+ decimals : '6' ,
136+ total_supply : '1000000000' ,
137+ max_supply : '1000000000' ,
138+ type : 'NON_FUNGIBLE_UNIQUE' ,
139+ treasury_account_id : '0.0.1234' ,
114140 created_timestamp : '2024-01-01T12:00:00.000Z' ,
115141 deleted : false ,
116142 default_freeze_status : false ,
0 commit comments