1+ /** 
2+ * This file was automatically generated by @cosmwasm/ts-codegen@1.13.1. 
3+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, 
4+ * and run the @cosmwasm/ts-codegen generate command to regenerate this file. 
5+ */ 
6+ 
7+ import  {  ICosmWasmClient ,  ISigningCosmWasmClient  }  from  "./baseClient" ; 
8+ import  {  StdFee  }  from  "@interchainjs/types" ; 
9+ import  {  Addr ,  Timestamp ,  Uint64 ,  Uint128 ,  Config ,  Coin ,  ConfigResponse ,  ExecuteMsg ,  Decimal ,  InstantiateMsg ,  InstantiateMsg1 ,  CollectionInfoForRoyaltyInfoResponse ,  RoyaltyInfoResponse ,  MintCountResponse ,  MintPriceResponse ,  MintableNumTokensResponse ,  QueryMsg ,  StartTimeResponse  }  from  "./Minter.types" ; 
10+ export  interface  MinterReadOnlyInterface  { 
11+   contractAddress : string ; 
12+   config : ( )  =>  Promise < ConfigResponse > ; 
13+   mintableNumTokens : ( )  =>  Promise < MintableNumTokensResponse > ; 
14+   startTime : ( )  =>  Promise < StartTimeResponse > ; 
15+   mintPrice : ( )  =>  Promise < MintPriceResponse > ; 
16+   mintCount : ( { 
17+     address 
18+   } : { 
19+     address : string ; 
20+   } )  =>  Promise < MintCountResponse > ; 
21+ } 
22+ export  class  MinterQueryClient  implements  MinterReadOnlyInterface  { 
23+   client : ICosmWasmClient ; 
24+   contractAddress : string ; 
25+   constructor ( client : ICosmWasmClient ,  contractAddress : string )  { 
26+     this . client  =  client ; 
27+     this . contractAddress  =  contractAddress ; 
28+     this . config  =  this . config . bind ( this ) ; 
29+     this . mintableNumTokens  =  this . mintableNumTokens . bind ( this ) ; 
30+     this . startTime  =  this . startTime . bind ( this ) ; 
31+     this . mintPrice  =  this . mintPrice . bind ( this ) ; 
32+     this . mintCount  =  this . mintCount . bind ( this ) ; 
33+   } 
34+   config  =  async  ( ) : Promise < ConfigResponse >  =>  { 
35+     return  this . client . queryContractSmart ( this . contractAddress ,  { 
36+       config : { } 
37+     } ) ; 
38+   } ; 
39+   mintableNumTokens  =  async  ( ) : Promise < MintableNumTokensResponse >  =>  { 
40+     return  this . client . queryContractSmart ( this . contractAddress ,  { 
41+       mintable_num_tokens : { } 
42+     } ) ; 
43+   } ; 
44+   startTime  =  async  ( ) : Promise < StartTimeResponse >  =>  { 
45+     return  this . client . queryContractSmart ( this . contractAddress ,  { 
46+       start_time : { } 
47+     } ) ; 
48+   } ; 
49+   mintPrice  =  async  ( ) : Promise < MintPriceResponse >  =>  { 
50+     return  this . client . queryContractSmart ( this . contractAddress ,  { 
51+       mint_price : { } 
52+     } ) ; 
53+   } ; 
54+   mintCount  =  async  ( { 
55+     address
56+   } : { 
57+     address : string ; 
58+   } ) : Promise < MintCountResponse >  =>  { 
59+     return  this . client . queryContractSmart ( this . contractAddress ,  { 
60+       mint_count : { 
61+         address
62+       } 
63+     } ) ; 
64+   } ; 
65+ } 
66+ export  interface  MinterInterface  extends  MinterReadOnlyInterface  { 
67+   contractAddress : string ; 
68+   sender : string ; 
69+   mint : ( fee_ ?: number  |  StdFee  |  "auto" ,  memo_ ?: string ,  funds_ ?: Coin [ ] )  =>  Promise < any > ; 
70+   setWhitelist : ( { 
71+     whitelist 
72+   } : { 
73+     whitelist : string ; 
74+   } ,  fee_ ?: number  |  StdFee  |  "auto" ,  memo_ ?: string ,  funds_ ?: Coin [ ] )  =>  Promise < any > ; 
75+   updateStartTime : ( fee_ ?: number  |  StdFee  |  "auto" ,  memo_ ?: string ,  funds_ ?: Coin [ ] )  =>  Promise < any > ; 
76+   updatePerAddressLimit : ( { 
77+     perAddressLimit 
78+   } : { 
79+     perAddressLimit : number ; 
80+   } ,  fee_ ?: number  |  StdFee  |  "auto" ,  memo_ ?: string ,  funds_ ?: Coin [ ] )  =>  Promise < any > ; 
81+   mintTo : ( { 
82+     recipient 
83+   } : { 
84+     recipient : string ; 
85+   } ,  fee_ ?: number  |  StdFee  |  "auto" ,  memo_ ?: string ,  funds_ ?: Coin [ ] )  =>  Promise < any > ; 
86+   mintFor : ( { 
87+     recipient, 
88+     tokenId
89+   } : { 
90+     recipient : string ; 
91+     tokenId : number ; 
92+   } ,  fee_ ?: number  |  StdFee  |  "auto" ,  memo_ ?: string ,  funds_ ?: Coin [ ] )  =>  Promise < any > ; 
93+   withdraw : ( fee_ ?: number  |  StdFee  |  "auto" ,  memo_ ?: string ,  funds_ ?: Coin [ ] )  =>  Promise < any > ; 
94+ } 
95+ export  class  MinterClient  extends  MinterQueryClient  implements  MinterInterface  { 
96+   client : ISigningCosmWasmClient ; 
97+   sender : string ; 
98+   contractAddress : string ; 
99+   constructor ( client : ISigningCosmWasmClient ,  sender : string ,  contractAddress : string )  { 
100+     super ( client ,  contractAddress ) ; 
101+     this . client  =  client ; 
102+     this . sender  =  sender ; 
103+     this . contractAddress  =  contractAddress ; 
104+     this . mint  =  this . mint . bind ( this ) ; 
105+     this . setWhitelist  =  this . setWhitelist . bind ( this ) ; 
106+     this . updateStartTime  =  this . updateStartTime . bind ( this ) ; 
107+     this . updatePerAddressLimit  =  this . updatePerAddressLimit . bind ( this ) ; 
108+     this . mintTo  =  this . mintTo . bind ( this ) ; 
109+     this . mintFor  =  this . mintFor . bind ( this ) ; 
110+     this . withdraw  =  this . withdraw . bind ( this ) ; 
111+   } 
112+   mint  =  async  ( fee_ : number  |  StdFee  |  "auto"  =  "auto" ,  memo_ ?: string ,  funds_ ?: Coin [ ] ) : Promise < any >  =>  { 
113+     return  await  this . client . execute ( this . sender ,  this . contractAddress ,  { 
114+       mint : { } 
115+     } ,  fee_ ,  memo_ ,  funds_ ) ; 
116+   } ; 
117+   setWhitelist  =  async  ( { 
118+     whitelist
119+   } : { 
120+     whitelist : string ; 
121+   } ,  fee_ : number  |  StdFee  |  "auto"  =  "auto" ,  memo_ ?: string ,  funds_ ?: Coin [ ] ) : Promise < any >  =>  { 
122+     return  await  this . client . execute ( this . sender ,  this . contractAddress ,  { 
123+       set_whitelist : { 
124+         whitelist
125+       } 
126+     } ,  fee_ ,  memo_ ,  funds_ ) ; 
127+   } ; 
128+   updateStartTime  =  async  ( fee_ : number  |  StdFee  |  "auto"  =  "auto" ,  memo_ ?: string ,  funds_ ?: Coin [ ] ) : Promise < any >  =>  { 
129+     return  await  this . client . execute ( this . sender ,  this . contractAddress ,  { 
130+       update_start_time : { } 
131+     } ,  fee_ ,  memo_ ,  funds_ ) ; 
132+   } ; 
133+   updatePerAddressLimit  =  async  ( { 
134+     perAddressLimit
135+   } : { 
136+     perAddressLimit : number ; 
137+   } ,  fee_ : number  |  StdFee  |  "auto"  =  "auto" ,  memo_ ?: string ,  funds_ ?: Coin [ ] ) : Promise < any >  =>  { 
138+     return  await  this . client . execute ( this . sender ,  this . contractAddress ,  { 
139+       update_per_address_limit : { 
140+         per_address_limit : perAddressLimit 
141+       } 
142+     } ,  fee_ ,  memo_ ,  funds_ ) ; 
143+   } ; 
144+   mintTo  =  async  ( { 
145+     recipient
146+   } : { 
147+     recipient : string ; 
148+   } ,  fee_ : number  |  StdFee  |  "auto"  =  "auto" ,  memo_ ?: string ,  funds_ ?: Coin [ ] ) : Promise < any >  =>  { 
149+     return  await  this . client . execute ( this . sender ,  this . contractAddress ,  { 
150+       mint_to : { 
151+         recipient
152+       } 
153+     } ,  fee_ ,  memo_ ,  funds_ ) ; 
154+   } ; 
155+   mintFor  =  async  ( { 
156+     recipient, 
157+     tokenId
158+   } : { 
159+     recipient : string ; 
160+     tokenId : number ; 
161+   } ,  fee_ : number  |  StdFee  |  "auto"  =  "auto" ,  memo_ ?: string ,  funds_ ?: Coin [ ] ) : Promise < any >  =>  { 
162+     return  await  this . client . execute ( this . sender ,  this . contractAddress ,  { 
163+       mint_for : { 
164+         recipient, 
165+         token_id : tokenId 
166+       } 
167+     } ,  fee_ ,  memo_ ,  funds_ ) ; 
168+   } ; 
169+   withdraw  =  async  ( fee_ : number  |  StdFee  |  "auto"  =  "auto" ,  memo_ ?: string ,  funds_ ?: Coin [ ] ) : Promise < any >  =>  { 
170+     return  await  this . client . execute ( this . sender ,  this . contractAddress ,  { 
171+       withdraw : { } 
172+     } ,  fee_ ,  memo_ ,  funds_ ) ; 
173+   } ; 
174+ } 
0 commit comments