@@ -40,7 +40,7 @@ const addressStaticArray = {
4040 return this . nativeValues ( ) . map ( ( v ) => new Address ( Bytes ( v ) ) )
4141 } ,
4242 array ( ) {
43- return new StaticArray < Address , 10 > ( ...this . abiValues ( ) )
43+ return new StaticArray < Address , 10 > ( ...( this . abiValues ( ) as [ ] ) )
4444 } ,
4545 create ( value : StubBytesCompat ) {
4646 return interpretAsArc4 < StaticArray < Address , 10 > > ( asBytes ( value ) )
@@ -55,7 +55,7 @@ const boolStaticArray = {
5555 return this . nativeValues ( ) . map ( ( v ) => new Bool ( v ) )
5656 } ,
5757 array ( ) {
58- return new StaticArray < Bool , 10 > ( ...this . abiValues ( ) )
58+ return new StaticArray < Bool , 10 > ( ...( this . abiValues ( ) as [ ] ) )
5959 } ,
6060 create ( value : StubBytesCompat ) {
6161 return interpretAsArc4 < StaticArray < Bool , 10 > > ( asBytes ( value ) )
@@ -70,7 +70,7 @@ const uint256StaticArray = {
7070 return this . nativeValues ( ) . map ( ( v ) => new UintN < 256 > ( v ) )
7171 } ,
7272 array ( ) {
73- return new StaticArray < UintN < 256 > , 10 > ( ...this . abiValues ( ) )
73+ return new StaticArray < UintN < 256 > , 10 > ( ...( this . abiValues ( ) as [ ] ) )
7474 } ,
7575 create ( value : StubBytesCompat ) {
7676 return interpretAsArc4 < StaticArray < UintN < 256 > , 10 > > ( asBytes ( value ) )
@@ -96,7 +96,7 @@ const ufixednxmStaticArray = {
9696 ]
9797 } ,
9898 array ( ) {
99- return new StaticArray < UFixedNxM < 256 , 16 > , 10 > ( ...this . abiValues ( ) )
99+ return new StaticArray < UFixedNxM < 256 , 16 > , 10 > ( ...( this . abiValues ( ) as [ ] ) )
100100 } ,
101101 create ( value : StubBytesCompat ) {
102102 return interpretAsArc4 < StaticArray < UFixedNxM < 256 , 16 > , 10 > > ( asBytes ( value ) )
@@ -122,7 +122,7 @@ const stringStaticArray = {
122122 return this . nativeValues ( ) . map ( ( v ) => new Str ( v ) )
123123 } ,
124124 array ( ) {
125- return new StaticArray < Str , 10 > ( ...this . abiValues ( ) )
125+ return new StaticArray < Str , 10 > ( ...( this . abiValues ( ) as [ ] ) )
126126 } ,
127127 create ( value : StubBytesCompat ) {
128128 return interpretAsArc4 < StaticArray < Str , 10 > > ( asBytes ( value ) )
@@ -134,10 +134,12 @@ const addressStaticArrayOfArray = {
134134 return [ addressStaticArray . nativeValues ( ) , addressStaticArray . nativeValues ( ) . reverse ( ) ]
135135 } ,
136136 abiValues ( ) {
137- return this . nativeValues ( ) . map ( ( a ) => new StaticArray < Address , 10 > ( ...a . map ( ( v ) => new Address ( Bytes ( v ) ) ) ) )
137+ return this . nativeValues ( ) . map ( ( a ) => new StaticArray < Address , 10 > ( ...( a . map ( ( v ) => new Address ( Bytes ( v ) ) ) as [ ] ) ) )
138138 } ,
139139 array ( ) {
140- return new StaticArray < StaticArray < Address , 10 > , 2 > ( ...this . abiValues ( ) . map ( ( a ) => new StaticArray < Address , 10 > ( ...a ) ) )
140+ return new StaticArray < StaticArray < Address , 10 > , 2 > (
141+ ...( this . abiValues ( ) . map ( ( a ) => new StaticArray < Address , 10 > ( ...( a as DeliberateAny ) ) ) as [ ] ) ,
142+ )
141143 } ,
142144 create ( value : StubBytesCompat ) {
143145 return interpretAsArc4 < StaticArray < StaticArray < Address , 10 > , 2 > > ( asBytes ( value ) )
@@ -149,10 +151,12 @@ const boolStaticArrayOfArray = {
149151 return [ boolStaticArray . nativeValues ( ) , boolStaticArray . nativeValues ( ) . reverse ( ) ]
150152 } ,
151153 abiValues ( ) {
152- return this . nativeValues ( ) . map ( ( a ) => new StaticArray < Bool , 10 > ( ...a . map ( ( v ) => new Bool ( v ) ) ) )
154+ return this . nativeValues ( ) . map ( ( a ) => new StaticArray < Bool , 10 > ( ...( a . map ( ( v ) => new Bool ( v ) ) as [ ] ) ) )
153155 } ,
154156 array ( ) {
155- return new StaticArray < StaticArray < Bool , 10 > , 2 > ( ...this . abiValues ( ) . map ( ( a ) => new StaticArray < Bool , 10 > ( ...a ) ) )
157+ return new StaticArray < StaticArray < Bool , 10 > , 2 > (
158+ ...( this . abiValues ( ) . map ( ( a ) => new StaticArray < Bool , 10 > ( ...( a as DeliberateAny ) ) ) as [ ] ) ,
159+ )
156160 } ,
157161 create ( value : StubBytesCompat ) {
158162 return interpretAsArc4 < StaticArray < StaticArray < Bool , 10 > , 2 > > ( asBytes ( value ) )
@@ -164,10 +168,12 @@ const uint256StaticArrayOfArray = {
164168 return [ uint256StaticArray . nativeValues ( ) , uint256StaticArray . nativeValues ( ) . reverse ( ) ]
165169 } ,
166170 abiValues ( ) {
167- return this . nativeValues ( ) . map ( ( a ) => new StaticArray < UintN < 256 > , 10 > ( ...a . map ( ( v ) => new UintN < 256 > ( v ) ) ) )
171+ return this . nativeValues ( ) . map ( ( a ) => new StaticArray < UintN < 256 > , 10 > ( ...( a . map ( ( v ) => new UintN < 256 > ( v ) ) as [ ] ) ) )
168172 } ,
169173 array ( ) {
170- return new StaticArray < StaticArray < UintN < 256 > , 10 > , 2 > ( ...this . abiValues ( ) . map ( ( a ) => new StaticArray < UintN < 256 > , 10 > ( ...a ) ) )
174+ return new StaticArray < StaticArray < UintN < 256 > , 10 > , 2 > (
175+ ...( this . abiValues ( ) . map ( ( a ) => new StaticArray < UintN < 256 > , 10 > ( ...( a as DeliberateAny ) ) ) as [ ] ) ,
176+ )
171177 } ,
172178 create ( value : StubBytesCompat ) {
173179 return interpretAsArc4 < StaticArray < StaticArray < UintN < 256 > , 10 > , 2 > > ( asBytes ( value ) )
@@ -182,7 +188,7 @@ const uint256StaticArrayOfDynamicArray = {
182188 return this . nativeValues ( ) . map ( ( a ) => new DynamicArray < UintN < 256 > > ( ...a . map ( ( v ) => new UintN < 256 > ( v ) ) ) )
183189 } ,
184190 array ( ) {
185- return new StaticArray < DynamicArray < UintN < 256 > > , 2 > ( ...this . abiValues ( ) . map ( ( a ) => new DynamicArray < UintN < 256 > > ( ...a ) ) )
191+ return new StaticArray < DynamicArray < UintN < 256 > > , 2 > ( ...( this . abiValues ( ) . map ( ( a ) => new DynamicArray < UintN < 256 > > ( ...a ) ) as [ ] ) )
186192 } ,
187193 create ( value : StubBytesCompat ) {
188194 return interpretAsArc4 < StaticArray < DynamicArray < UintN < 256 > > , 2 > > ( asBytes ( value ) )
@@ -194,10 +200,12 @@ const stringStaticArrayOfArray = {
194200 return [ stringStaticArray . nativeValues ( ) , stringStaticArray . nativeValues ( ) . reverse ( ) ]
195201 } ,
196202 abiValues ( ) {
197- return this . nativeValues ( ) . map ( ( a ) => new StaticArray < Str , 10 > ( ...a . map ( ( v ) => new Str ( v ) ) ) )
203+ return this . nativeValues ( ) . map ( ( a ) => new StaticArray < Str , 10 > ( ...( a . map ( ( v ) => new Str ( v ) ) as [ ] ) ) )
198204 } ,
199205 array ( ) {
200- return new StaticArray < StaticArray < Str , 10 > , 2 > ( ...this . abiValues ( ) . map ( ( a ) => new StaticArray < Str , 10 > ( ...a ) ) )
206+ return new StaticArray < StaticArray < Str , 10 > , 2 > (
207+ ...( this . abiValues ( ) . map ( ( a ) => new StaticArray < Str , 10 > ( ...( a as DeliberateAny ) ) ) as [ ] ) ,
208+ )
201209 } ,
202210 create ( value : StubBytesCompat ) {
203211 return interpretAsArc4 < StaticArray < StaticArray < Str , 10 > , 2 > > ( asBytes ( value ) )
@@ -213,12 +221,13 @@ const stringStaticArrayOfArrayOfArray = {
213221 } ,
214222 abiValues ( ) {
215223 return this . nativeValues ( ) . map (
216- ( x ) => new StaticArray < StaticArray < Str , 10 > , 3 > ( ...x . map ( ( y ) => new StaticArray < Str , 10 > ( ...y . map ( ( v ) => new Str ( v ) ) ) ) ) ,
224+ ( x ) =>
225+ new StaticArray < StaticArray < Str , 10 > , 3 > ( ...( x . map ( ( y ) => new StaticArray < Str , 10 > ( ...( y . map ( ( v ) => new Str ( v ) ) as [ ] ) ) ) as [ ] ) ) ,
217226 )
218227 } ,
219228 array ( ) {
220229 return new StaticArray < StaticArray < StaticArray < Str , 10 > , 3 > , 2 > (
221- ...this . abiValues ( ) . map ( ( x ) => new StaticArray < StaticArray < Str , 10 > , 3 > ( ...x ) ) ,
230+ ...( this . abiValues ( ) . map ( ( x ) => new StaticArray < StaticArray < Str , 10 > , 3 > ( ...( x as DeliberateAny ) ) ) as [ ] ) ,
222231 )
223232 } ,
224233 create ( value : StubBytesCompat ) {
@@ -252,7 +261,7 @@ const tupleStaticArray = {
252261 addressStaticArray . abiValues ( ) [ 5 ] ,
253262 ) ,
254263 boolStaticArray . abiValues ( ) [ 3 ] ,
255- new StaticArray < UintN < 256 > , 3 > ( ...uint256StaticArray . abiValues ( ) . slice ( 4 , 7 ) ) ,
264+ new StaticArray < UintN < 256 > , 3 > ( ...( uint256StaticArray . abiValues ( ) . slice ( 4 , 7 ) as [ ] ) ) ,
256265 ] ,
257266 ) ,
258267 )
@@ -261,7 +270,7 @@ const tupleStaticArray = {
261270 return new StaticArray <
262271 Tuple < [ DynamicArray < Str > , Tuple < [ DynamicArray < Str > , Str , UintN < 256 > , Address ] > , Bool , StaticArray < UintN < 256 > , 3 > ] > ,
263272 2
264- > ( ...this . abiValues ( ) )
273+ > ( ...( this . abiValues ( ) as [ ] ) )
265274 } ,
266275 create ( value : StubBytesCompat ) {
267276 return interpretAsArc4 <
@@ -314,7 +323,7 @@ const structStaticArray = {
314323 )
315324 } ,
316325 array ( ) {
317- return new StaticArray < Swapped , 2 > ( ...this . abiValues ( ) )
326+ return new StaticArray < Swapped , 2 > ( ...( this . abiValues ( ) as [ ] ) )
318327 } ,
319328 create ( value : StubBytesCompat ) {
320329 return interpretAsArc4 < StaticArray < Swapped , 2 > > ( asBytes ( value ) )
0 commit comments