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:
parent
c7dfe50b92
commit
2d744c3dd2
@ -66,9 +66,9 @@ export class NftFactory {
|
|||||||
constructor(
|
constructor(
|
||||||
factory721Address: string,
|
factory721Address: string,
|
||||||
web3: Web3,
|
web3: Web3,
|
||||||
|
network?: string | number,
|
||||||
factory721Abi?: AbiItem | AbiItem[],
|
factory721Abi?: AbiItem | AbiItem[],
|
||||||
config?: Config,
|
config?: Config
|
||||||
network?: string | number
|
|
||||||
) {
|
) {
|
||||||
this.factory721Address = factory721Address
|
this.factory721Address = factory721Address
|
||||||
this.factory721Abi = factory721Abi || (defaultFactory721Abi.abi as AbiItem[])
|
this.factory721Abi = factory721Abi || (defaultFactory721Abi.abi as AbiItem[])
|
||||||
|
@ -27,9 +27,9 @@ export class Router {
|
|||||||
constructor(
|
constructor(
|
||||||
routerAddress: string,
|
routerAddress: string,
|
||||||
web3: Web3,
|
web3: Web3,
|
||||||
|
network?: string | number,
|
||||||
RouterAbi?: AbiItem | AbiItem[],
|
RouterAbi?: AbiItem | AbiItem[],
|
||||||
config?: Config,
|
config?: Config
|
||||||
network?: string | number
|
|
||||||
) {
|
) {
|
||||||
this.routerAddress = routerAddress
|
this.routerAddress = routerAddress
|
||||||
this.RouterAbi = RouterAbi || (defaultRouter.abi as AbiItem[])
|
this.RouterAbi = RouterAbi || (defaultRouter.abi as AbiItem[])
|
||||||
|
@ -42,9 +42,9 @@ export class Pool {
|
|||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
web3: Web3,
|
web3: Web3,
|
||||||
|
network?: string | number,
|
||||||
poolAbi: AbiItem | AbiItem[] = null,
|
poolAbi: AbiItem | AbiItem[] = null,
|
||||||
config?: Config,
|
config?: Config
|
||||||
network?: string | number
|
|
||||||
) {
|
) {
|
||||||
if (poolAbi) this.poolAbi = poolAbi
|
if (poolAbi) this.poolAbi = poolAbi
|
||||||
else this.poolAbi = PoolTemplate.abi as AbiItem[]
|
else this.poolAbi = PoolTemplate.abi as AbiItem[]
|
||||||
|
@ -39,10 +39,10 @@ export class Dispenser {
|
|||||||
*/
|
*/
|
||||||
constructor(
|
constructor(
|
||||||
web3: Web3,
|
web3: Web3,
|
||||||
|
network?: string | number,
|
||||||
dispenserAddress: string = null,
|
dispenserAddress: string = null,
|
||||||
dispenserAbi: AbiItem | AbiItem[] = null,
|
dispenserAbi: AbiItem | AbiItem[] = null,
|
||||||
config?: Config,
|
config?: Config
|
||||||
network?: string | number
|
|
||||||
) {
|
) {
|
||||||
this.web3 = web3
|
this.web3 = web3
|
||||||
this.dispenserAddress = dispenserAddress
|
this.dispenserAddress = dispenserAddress
|
||||||
|
@ -75,10 +75,10 @@ export class FixedRateExchange {
|
|||||||
constructor(
|
constructor(
|
||||||
web3: Web3,
|
web3: Web3,
|
||||||
fixedRateAddress: string,
|
fixedRateAddress: string,
|
||||||
|
network?: string | number,
|
||||||
fixedRateExchangeAbi: AbiItem | AbiItem[] = null,
|
fixedRateExchangeAbi: AbiItem | AbiItem[] = null,
|
||||||
oceanAddress: string = null,
|
oceanAddress: string = null,
|
||||||
config?: Config,
|
config?: Config
|
||||||
network?: string | number
|
|
||||||
) {
|
) {
|
||||||
this.web3 = web3
|
this.web3 = web3
|
||||||
this.config = config || new ConfigHelper().getConfig(network || 'unknown')
|
this.config = config || new ConfigHelper().getConfig(network || 'unknown')
|
||||||
|
@ -16,9 +16,9 @@ export class SideStaking {
|
|||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
web3: Web3,
|
web3: Web3,
|
||||||
|
network?: string | number,
|
||||||
ssAbi: AbiItem | AbiItem[] = null,
|
ssAbi: AbiItem | AbiItem[] = null,
|
||||||
config?: Config,
|
config?: Config
|
||||||
network?: string | number
|
|
||||||
) {
|
) {
|
||||||
if (ssAbi) this.ssAbi = ssAbi
|
if (ssAbi) this.ssAbi = ssAbi
|
||||||
else this.ssAbi = SideStakingTemplate.abi as AbiItem[]
|
else this.ssAbi = SideStakingTemplate.abi as AbiItem[]
|
||||||
|
@ -61,10 +61,10 @@ export class Datatoken {
|
|||||||
*/
|
*/
|
||||||
constructor(
|
constructor(
|
||||||
web3: Web3,
|
web3: Web3,
|
||||||
|
network?: string | number,
|
||||||
datatokensAbi?: AbiItem | AbiItem[],
|
datatokensAbi?: AbiItem | AbiItem[],
|
||||||
datatokensEnterpriseAbi?: AbiItem | AbiItem[],
|
datatokensEnterpriseAbi?: AbiItem | AbiItem[],
|
||||||
config?: Config,
|
config?: Config
|
||||||
network?: string | number
|
|
||||||
) {
|
) {
|
||||||
this.web3 = web3
|
this.web3 = web3
|
||||||
this.datatokensAbi = datatokensAbi || (defaultDatatokensAbi.abi as AbiItem[])
|
this.datatokensAbi = datatokensAbi || (defaultDatatokensAbi.abi as AbiItem[])
|
||||||
|
@ -35,9 +35,9 @@ export class Nft {
|
|||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
web3: Web3,
|
web3: Web3,
|
||||||
|
network?: string | number,
|
||||||
nftAbi?: AbiItem | AbiItem[],
|
nftAbi?: AbiItem | AbiItem[],
|
||||||
config?: Config,
|
config?: Config
|
||||||
network?: string | number
|
|
||||||
) {
|
) {
|
||||||
this.nftAbi = nftAbi || (defaultNftAbi.abi as AbiItem[])
|
this.nftAbi = nftAbi || (defaultNftAbi.abi as AbiItem[])
|
||||||
this.web3 = web3
|
this.web3 = web3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user