@@ -25,6 +25,10 @@ export interface GetAssetsOptions {
2525 collection_whitelist ?: NameType [ ]
2626 only_duplicate_templates ?: boolean
2727 has_backed_tokens ?: boolean
28+ has_template_buyoffer ?: boolean
29+ template_mint ?: UInt32Type
30+ min_template_mint ?: UInt32Type
31+ max_template_mint ?: UInt32Type
2832 authorized_account ?: NameType
2933 template_whitelist ?: Int32Type [ ]
3034 template_blacklist ?: Int32Type [ ]
@@ -45,12 +49,13 @@ export interface GetAssetsOptions {
4549export interface GetCollectionsOptions {
4650 author ?: NameType [ ]
4751 match ?: string
52+ search ?: string
4853 authorized_account ?: NameType
4954 notify_account ?: NameType
5055 collection_blacklist ?: NameType [ ]
5156 collection_whitelist ?: NameType [ ]
5257 collection_name ?: NameType [ ]
53- ids ?: UInt64Type [ ]
58+ ids ?: NameType [ ]
5459 lower_bound ?: string
5560 upper_bound ?: string
5661 before ?: number
@@ -68,7 +73,7 @@ export interface GetSchemasOptions {
6873 match ?: string
6974 collection_blacklist ?: NameType [ ]
7075 collection_whitelist ?: NameType [ ]
71- ids ?: UInt64Type [ ]
76+ ids ?: NameType [ ]
7277 lower_bound ?: string
7378 upper_bound ?: string
7479 before ?: number
@@ -91,6 +96,7 @@ export interface GetTemplatesOptions {
9196 is_transferable ?: boolean
9297 authorized_account ?: NameType
9398 match ?: string
99+ search ?: string
94100 collection_blacklist ?: NameType [ ]
95101 collection_whitelist ?: NameType [ ]
96102 template_id ?: Int32Type [ ]
@@ -127,8 +133,8 @@ export interface GetOffersOptions {
127133 collection_whitelist ?: NameType [ ]
128134 hide_contracts ?: boolean
129135 hide_empty_offers ?: boolean
130- offer_id ?: UInt64Type
131- ids ?: UInt64Type
136+ offer_id ?: UInt64Type [ ]
137+ ids ?: UInt64Type [ ]
132138 lower_bound ?: string
133139 upper_bound ?: string
134140 before ?: number
@@ -174,12 +180,28 @@ export interface GetAccountsOptions {
174180 collection_blacklist ?: NameType [ ]
175181 collection_whitelist ?: NameType [ ]
176182 owner ?: NameType [ ]
177- ids ?: UInt64Type [ ]
183+ ids ?: NameType [ ]
184+ lower_bound ?: string
185+ upper_bound ?: string
186+ page ?: number
187+ limit ?: number
188+ }
189+
190+ export interface GetBurnsOptions {
191+ match_owner ?: string
192+ collection_name ?: NameType [ ]
193+ schema_name ?: NameType [ ]
194+ template_id ?: Int32Type [ ]
195+ burned ?: boolean
196+ hide_offers ?: boolean
197+ collection_blacklist ?: NameType [ ]
198+ collection_whitelist ?: NameType [ ]
199+ burned_by_account ?: NameType [ ]
200+ ids ?: NameType [ ]
178201 lower_bound ?: string
179202 upper_bound ?: string
180203 page ?: number
181204 limit ?: number
182- order ?: 'asc' | 'desc'
183205}
184206
185207export class AssetsV1APIClient {
@@ -286,6 +308,14 @@ export class AssetsV1APIClient {
286308 } )
287309 }
288310
311+ async get_collection_schemas ( collection_name : NameType ) {
312+ return this . client . call ( {
313+ path : `/atomicassets/v1/collections/${ collection_name } /schemas` ,
314+ method : 'GET' ,
315+ responseType : Assets . GetCollectionSchemasResponse ,
316+ } )
317+ }
318+
289319 async get_collection_logs (
290320 collection_name : NameType ,
291321 options ?: {
@@ -404,9 +434,19 @@ export class AssetsV1APIClient {
404434 } )
405435 }
406436
407- async get_template_stats ( collection_name : NameType , template_id : Int32Type ) {
437+ async get_template_stats ( template_id : Int32Type ) : Promise < any >
438+ async get_template_stats ( collection_name : NameType , template_id : Int32Type ) : Promise < any >
439+ async get_template_stats (
440+ collection_name_or_template_id : NameType | Int32Type ,
441+ template_id ?: Int32Type
442+ ) {
443+ const path =
444+ typeof template_id === 'undefined'
445+ ? `/atomicassets/v1/templates/${ collection_name_or_template_id } /stats`
446+ : `/atomicassets/v1/templates/${ collection_name_or_template_id } /${ template_id } /stats`
447+
408448 return this . client . call ( {
409- path : `/atomicassets/v1/templates/ ${ collection_name } / ${ template_id } /stats` ,
449+ path,
410450 method : 'GET' ,
411451 responseType : Assets . GetTemplateStatsResponse ,
412452 } )
@@ -562,22 +602,7 @@ export class AssetsV1APIClient {
562602 } )
563603 }
564604
565- async get_burns ( options ?: {
566- match_owner ?: string
567- collection_name ?: NameType [ ]
568- schema_name ?: NameType [ ]
569- template_id ?: Int32Type [ ]
570- burned ?: boolean
571- collection_blacklist ?: NameType [ ]
572- collection_whitelist ?: NameType [ ]
573- burned_by_account ?: NameType [ ]
574- ids ?: UInt64Type [ ]
575- lower_bound ?: string
576- upper_bound ?: string
577- page ?: number
578- limit ?: number
579- order ?: 'asc' | 'desc'
580- } ) {
605+ async get_burns ( options ?: GetBurnsOptions ) {
581606 const bodyParams = buildBodyParams ( options )
582607
583608 return this . client . call ( {
0 commit comments