@@ -7,8 +7,22 @@ import {
77import { TransactionResponse } from '@ethersproject/abstract-provider'
88import { keys , mergeAll } from 'ramda'
99
10- type Args = ReadonlyArray < string | boolean | readonly string [ ] | Uint8Array >
11- type ArgsWithoutUint8Array = ReadonlyArray < string | boolean | readonly string [ ] >
10+ import { Positions } from '../../ethereum/s-tokens'
11+ import { Rewards } from '../../ethereum/s-tokens/rewards'
12+ import { Image } from '../../ethereum/simpleCollection/types'
13+
14+ type Args = ReadonlyArray <
15+ | string
16+ | boolean
17+ | readonly string [ ]
18+ | Uint8Array
19+ | readonly Image [ ]
20+ | Positions
21+ | Rewards
22+ >
23+ type ArgsWithoutUint8Array = ReadonlyArray <
24+ string | boolean | readonly string [ ] | readonly Image [ ] | Positions | Rewards
25+ >
1226type Overrides = {
1327 readonly gasLimit ?: number
1428 readonly from ?: string
@@ -53,7 +67,14 @@ export type ExecuteFunction = <
5367>
5468type PadCaller = (
5569 arr : ArgsWithoutUint8Array ,
56- v : string | boolean | undefined | readonly string [ ] ,
70+ v :
71+ | string
72+ | boolean
73+ | undefined
74+ | readonly string [ ]
75+ | readonly Image [ ]
76+ | Positions
77+ | Rewards ,
5778 i : number ,
5879 fn : PadCaller
5980) => ArgsWithoutUint8Array
@@ -64,7 +85,14 @@ const pad = (
6485 ( ( fn : PadCaller ) : ArgsWithoutUint8Array => fn ( [ ] , args [ 0 ] , 0 , fn ) ) (
6586 (
6687 arr : ArgsWithoutUint8Array ,
67- v : string | boolean | undefined | readonly string [ ] ,
88+ v :
89+ | string
90+ | boolean
91+ | undefined
92+ | readonly string [ ]
93+ | readonly Image [ ]
94+ | Positions
95+ | Rewards ,
6896 i : number ,
6997 fn : PadCaller
7098 ) : ArgsWithoutUint8Array =>
0 commit comments