@@ -11,11 +11,19 @@ const block = v.object({
1111 block_timestamp : v . optional ( v . string ( ) ) ,
1212} ) ;
1313
14- const action = v . object ( {
14+ const actionListItem = v . object ( {
1515 action : v . enum ( ActionKind ) ,
1616 method : v . nullable ( v . string ( ) ) ,
1717} ) ;
1818
19+ const action = v . object ( {
20+ ...actionListItem . entries ,
21+ args : v . nullable ( jsonSchema ) ,
22+ args_base64 : v . nullable ( v . string ( ) ) ,
23+ deposit : v . nullable ( v . string ( ) ) ,
24+ gas : v . nullable ( v . string ( ) ) ,
25+ } ) ;
26+
1927const actionsAgg = v . object ( {
2028 deposit : v . string ( ) ,
2129 gas_attached : v . string ( ) ,
@@ -31,8 +39,8 @@ const outcomesAgg = v.object({
3139 transaction_fee : v . string ( ) ,
3240} ) ;
3341
34- const txn = v . object ( {
35- actions : v . array ( action ) ,
42+ const txnListItem = v . object ( {
43+ actions : v . array ( actionListItem ) ,
3644 actions_agg : actionsAgg ,
3745 block,
3846 block_timestamp : v . string ( ) ,
@@ -47,6 +55,11 @@ const txn = v.object({
4755 transaction_hash : v . string ( ) ,
4856} ) ;
4957
58+ const txn = v . object ( {
59+ ...txnListItem . entries ,
60+ actions : v . array ( action ) ,
61+ } ) ;
62+
5063const txnCount = v . object ( {
5164 cost : v . string ( ) ,
5265 count : v . string ( ) ,
@@ -55,6 +68,10 @@ const txnCount = v.object({
5568const actionsReceipts = v . object ( {
5669 action : v . enum ( ActionKind ) ,
5770 args : jsonSchema ,
71+ args_base64 : v . nullable ( v . string ( ) ) ,
72+ deposit : v . nullable ( v . string ( ) ) ,
73+ gas : v . nullable ( v . string ( ) ) ,
74+ method : v . nullable ( v . string ( ) ) ,
5875 rlp_hash : v . nullable ( v . string ( ) ) ,
5976} ) ;
6077
@@ -169,13 +186,14 @@ const txnNFT = v.object({
169186} ) ;
170187
171188const txnResponse = responseSchema ( txn ) ;
172- const txnsResponse = responseSchema ( v . array ( txn ) ) ;
189+ const txnsResponse = responseSchema ( v . array ( txnListItem ) ) ;
173190const txnCountResponse = responseSchema ( txnCount ) ;
174191const txnReceiptsResponse = responseSchema ( txnReceipt ) ;
175192const txnFTsResponse = responseSchema ( v . array ( txnFT ) ) ;
176193const txnNFTsResponse = responseSchema ( v . array ( txnNFT ) ) ;
177194
178195export type Txn = v . InferOutput < typeof txn > ;
196+ export type TxnListItem = v . InferOutput < typeof txnListItem > ;
179197export type TxnCount = v . InferOutput < typeof txnCount > ;
180198// export type TxnReceipt = v.InferOutput<typeof txnReceipt>;
181199export type TxnFT = v . InferOutput < typeof txnFT > ;
0 commit comments