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

rename liquidityAccount to stakerAccount

This commit is contained in:
Miquel A. Cabot 2022-05-02 22:23:52 +02:00
parent b7e305fa98
commit 3a757043f5

View File

@ -110,7 +110,7 @@ describe('Marketplace flow tests', async () => {
let providerUrl: any let providerUrl: any
let publisherAccount: string let publisherAccount: string
let consumerAccount: string let consumerAccount: string
let liquidityAccount: string let stakerAccount: string
let contracts: Addresses let contracts: Addresses
let poolNftAddress: string let poolNftAddress: string
let poolDatatokenAddress: string let poolDatatokenAddress: string
@ -189,11 +189,11 @@ describe('Marketplace flow tests', async () => {
const accounts = await web3.eth.getAccounts() const accounts = await web3.eth.getAccounts()
publisherAccount = accounts[0] publisherAccount = accounts[0]
consumerAccount = accounts[1] consumerAccount = accounts[1]
liquidityAccount = accounts[2] stakerAccount = accounts[2]
console.log(`Publisher account address: ${publisherAccount}`) console.log(`Publisher account address: ${publisherAccount}`)
console.log(`Consumer account address: ${consumerAccount}`) console.log(`Consumer account address: ${consumerAccount}`)
console.log(`Liquidity account address: ${liquidityAccount}`) console.log(`Staker account address: ${stakerAccount}`)
}) })
/// ``` /// ```
@ -203,7 +203,7 @@ describe('Marketplace flow tests', async () => {
}) })
/// ``` /// ```
it('We send some OCEAN to consumer and liquidity accounts', async () => { it('We send some OCEAN to consumer and staker accounts', async () => {
/// ```Typescript /// ```Typescript
const oceanContract = new web3.eth.Contract( const oceanContract = new web3.eth.Contract(
MockERC20.abi as AbiItem[], MockERC20.abi as AbiItem[],
@ -215,7 +215,7 @@ describe('Marketplace flow tests', async () => {
.send({ from: publisherAccount }) .send({ from: publisherAccount })
await oceanContract.methods await oceanContract.methods
.transfer(liquidityAccount, web3.utils.toWei('100')) .transfer(stakerAccount, web3.utils.toWei('100'))
.send({ from: publisherAccount }) .send({ from: publisherAccount })
}) })
/// ``` /// ```
@ -321,9 +321,9 @@ describe('Marketplace flow tests', async () => {
/// ```Typescript /// ```Typescript
const pool = new Pool(web3) const pool = new Pool(web3)
await approve(web3, liquidityAccount, contracts.oceanAddress, poolAddress, '5', true) await approve(web3, stakerAccount, contracts.oceanAddress, poolAddress, '5', true)
await pool.joinswapExternAmountIn(liquidityAccount, poolAddress, '5', '0.1') await pool.joinswapExternAmountIn(stakerAccount, poolAddress, '5', '0.1')
}) })
/// ``` /// ```