mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
put constants inside test function
This commit is contained in:
parent
adb8138e89
commit
71e21f56e4
@ -20,25 +20,6 @@ import {
|
|||||||
PoolCreationParams
|
PoolCreationParams
|
||||||
} from '../../../src/@types'
|
} from '../../../src/@types'
|
||||||
|
|
||||||
const VESTING_AMOUNT = '10000'
|
|
||||||
const CAP_AMOUNT = '1000000'
|
|
||||||
const DATA_TOKEN_AMOUNT = web3.utils.toWei('1')
|
|
||||||
const NFT_NAME = '72120Bundle'
|
|
||||||
const NFT_SYMBOL = '72Bundle'
|
|
||||||
const NFT_TOKEN_URI = 'https://oceanprotocol.com/nft/'
|
|
||||||
const ERC20_NAME = 'ERC20B1'
|
|
||||||
const ERC20_SYMBOL = 'ERC20DT1Symbol'
|
|
||||||
const RATE = '1'
|
|
||||||
const FEE = '0.001'
|
|
||||||
const FEE_ZERO = '0'
|
|
||||||
|
|
||||||
const NFT_DATA: NftCreateData = {
|
|
||||||
name: NFT_NAME,
|
|
||||||
symbol: NFT_SYMBOL,
|
|
||||||
templateIndex: 1,
|
|
||||||
tokenURI: NFT_TOKEN_URI
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('Nft Factory test', () => {
|
describe('Nft Factory test', () => {
|
||||||
let factoryOwner: string
|
let factoryOwner: string
|
||||||
let nftOwner: string
|
let nftOwner: string
|
||||||
@ -51,6 +32,25 @@ describe('Nft Factory test', () => {
|
|||||||
let nftAddress: string
|
let nftAddress: string
|
||||||
let ercParams: Erc20CreateParams
|
let ercParams: Erc20CreateParams
|
||||||
|
|
||||||
|
const VESTING_AMOUNT = '10000'
|
||||||
|
const CAP_AMOUNT = '1000000'
|
||||||
|
const DATA_TOKEN_AMOUNT = web3.utils.toWei('1')
|
||||||
|
const NFT_NAME = '72120Bundle'
|
||||||
|
const NFT_SYMBOL = '72Bundle'
|
||||||
|
const NFT_TOKEN_URI = 'https://oceanprotocol.com/nft/'
|
||||||
|
const ERC20_NAME = 'ERC20B1'
|
||||||
|
const ERC20_SYMBOL = 'ERC20DT1Symbol'
|
||||||
|
const RATE = '1'
|
||||||
|
const FEE = '0.001'
|
||||||
|
const FEE_ZERO = '0'
|
||||||
|
|
||||||
|
const NFT_DATA: NftCreateData = {
|
||||||
|
name: NFT_NAME,
|
||||||
|
symbol: NFT_SYMBOL,
|
||||||
|
templateIndex: 1,
|
||||||
|
tokenURI: NFT_TOKEN_URI
|
||||||
|
}
|
||||||
|
|
||||||
before(async () => {
|
before(async () => {
|
||||||
const accounts = await web3.eth.getAccounts()
|
const accounts = await web3.eth.getAccounts()
|
||||||
factoryOwner = accounts[0]
|
factoryOwner = accounts[0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user