@@ -2,8 +2,22 @@ import { ethers, BigNumber, providers, utils } from 'ethers'
22import { TransactionResponse } from '@ethersproject/abstract-provider'
33import { keys , mergeAll } from 'ramda'
44
5- type Args = ReadonlyArray < string | boolean | readonly string [ ] | Uint8Array >
6- type ArgsWithoutUint8Array = ReadonlyArray < string | boolean | readonly string [ ] >
5+ import { Positions } from '../../ethereum/s-tokens'
6+ import { Rewards } from '../../ethereum/s-tokens/rewards'
7+ import { Image } from '../../ethereum/simpleCollection/types'
8+
9+ type Args = ReadonlyArray <
10+ | string
11+ | boolean
12+ | readonly string [ ]
13+ | Uint8Array
14+ | readonly Image [ ]
15+ | Positions
16+ | Rewards
17+ >
18+ type ArgsWithoutUint8Array = ReadonlyArray <
19+ string | boolean | readonly string [ ] | readonly Image [ ] | Positions | Rewards
20+ >
721type Overrides = {
822 readonly gasLimit ?: number
923 readonly from ?: string
@@ -48,7 +62,14 @@ export type ExecuteFunction = <
4862>
4963type PadCaller = (
5064 arr : ArgsWithoutUint8Array ,
51- v : string | boolean | undefined | readonly string [ ] ,
65+ v :
66+ | string
67+ | boolean
68+ | undefined
69+ | readonly string [ ]
70+ | readonly Image [ ]
71+ | Positions
72+ | Rewards ,
5273 i : number ,
5374 fn : PadCaller
5475) => ArgsWithoutUint8Array
@@ -59,7 +80,14 @@ const pad = (
5980 ( ( fn : PadCaller ) : ArgsWithoutUint8Array => fn ( [ ] , args [ 0 ] , 0 , fn ) ) (
6081 (
6182 arr : ArgsWithoutUint8Array ,
62- v : string | boolean | undefined | readonly string [ ] ,
83+ v :
84+ | string
85+ | boolean
86+ | undefined
87+ | readonly string [ ]
88+ | readonly Image [ ]
89+ | Positions
90+ | Rewards ,
6391 i : number ,
6492 fn : PadCaller
6593 ) : ArgsWithoutUint8Array =>
0 commit comments