1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

change param order

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
This commit is contained in:
mihaisc 2022-05-03 13:17:48 +03:00
parent c7dfe50b92
commit 2d744c3dd2
No known key found for this signature in database
GPG Key ID: 4FB0C2329B4C6E29
8 changed files with 16 additions and 16 deletions

View File

@ -66,9 +66,9 @@ export class NftFactory {
constructor(
factory721Address: string,
web3: Web3,
network?: string | number,
factory721Abi?: AbiItem | AbiItem[],
config?: Config,
network?: string | number
config?: Config
) {
this.factory721Address = factory721Address
this.factory721Abi = factory721Abi || (defaultFactory721Abi.abi as AbiItem[])

View File

@ -27,9 +27,9 @@ export class Router {
constructor(
routerAddress: string,
web3: Web3,
network?: string | number,
RouterAbi?: AbiItem | AbiItem[],
config?: Config,
network?: string | number
config?: Config
) {
this.routerAddress = routerAddress
this.RouterAbi = RouterAbi || (defaultRouter.abi as AbiItem[])

View File

@ -42,9 +42,9 @@ export class Pool {
constructor(
web3: Web3,
network?: string | number,
poolAbi: AbiItem | AbiItem[] = null,
config?: Config,
network?: string | number
config?: Config
) {
if (poolAbi) this.poolAbi = poolAbi
else this.poolAbi = PoolTemplate.abi as AbiItem[]

View File

@ -39,10 +39,10 @@ export class Dispenser {
*/
constructor(
web3: Web3,
network?: string | number,
dispenserAddress: string = null,
dispenserAbi: AbiItem | AbiItem[] = null,
config?: Config,
network?: string | number
config?: Config
) {
this.web3 = web3
this.dispenserAddress = dispenserAddress

View File

@ -75,10 +75,10 @@ export class FixedRateExchange {
constructor(
web3: Web3,
fixedRateAddress: string,
network?: string | number,
fixedRateExchangeAbi: AbiItem | AbiItem[] = null,
oceanAddress: string = null,
config?: Config,
network?: string | number
config?: Config
) {
this.web3 = web3
this.config = config || new ConfigHelper().getConfig(network || 'unknown')

View File

@ -16,9 +16,9 @@ export class SideStaking {
constructor(
web3: Web3,
network?: string | number,
ssAbi: AbiItem | AbiItem[] = null,
config?: Config,
network?: string | number
config?: Config
) {
if (ssAbi) this.ssAbi = ssAbi
else this.ssAbi = SideStakingTemplate.abi as AbiItem[]

View File

@ -61,10 +61,10 @@ export class Datatoken {
*/
constructor(
web3: Web3,
network?: string | number,
datatokensAbi?: AbiItem | AbiItem[],
datatokensEnterpriseAbi?: AbiItem | AbiItem[],
config?: Config,
network?: string | number
config?: Config
) {
this.web3 = web3
this.datatokensAbi = datatokensAbi || (defaultDatatokensAbi.abi as AbiItem[])

View File

@ -35,9 +35,9 @@ export class Nft {
constructor(
web3: Web3,
network?: string | number,
nftAbi?: AbiItem | AbiItem[],
config?: Config,
network?: string | number
config?: Config
) {
this.nftAbi = nftAbi || (defaultNftAbi.abi as AbiItem[])
this.web3 = web3