dan ne. browser eke bookmark ekak dagatha nan harigood thread machan kohomada meka bookmark kara ganne EK eke
dan ne. browser eke bookmark ekak dagatha nan harigood thread machan kohomada meka bookmark kara ganne EK eke
ela bokka.. good thread.. thanks support ekatadan ne. browser eke bookmark ekak dagatha nan hari
SmartContract balapan machan. NFT1.0 bubble eka pupurala thiyuene. 2.0 eka thama magaguys thama NFT walata market ekak thiyenwda?
man NFT poddak balanna hithan inne..eka wise decision ekakda me welawe?
NFT krla oyalage experience kohomada?
blockchain open source projects wala wada krla salli hoyanna puluwan website ekak hambuna ...
https://gitcoin.co/earn
------ Post added on Jun 5, 2022 at 5:58 PM
guys thama NFT walata market ekak thiyenwda?
man NFT poddak balanna hithan inne..eka wise decision ekakda me welawe?
NFT krla oyalage experience kohomada?
mokakda bn e real use case eka?NFT wala real use case eka thamath eliyata awilla na. eka awama oka thawath trend wenawa.
Lankawe nan dan na, US, Europe wla nan gdk projects yanaw, metaverse pattata tama gdk ewa yanne.guys thama NFT walata market ekak thiyenwda?
man NFT poddak balanna hithan inne..eka wise decision ekakda me welawe?
NFT krla oyalage experience kohomada?
blockchain open source projects wala wada krla salli hoyanna puluwan website ekak hambuna ...
https://gitcoin.co/earn
------ Post added on Jun 5, 2022 at 5:58 PM
අඩෝ ඕවා ගැන මොකුත් දන්නේ නෑ බන් ලොකුවට..study krnna one tikakLankawe nan dan na, US, Europe wla nan gdk projects yanaw, metaverse pattata tama gdk ewa yanne.
ape projectt ekak karnawata wada wena ayage project ekakata support ekk dila ganak hoyaganna eka tama lesi.
ape project ekak market karana eka patta amarui,
api me dawas wala ape project ekk hadan yanwa, heta aniddata contract eka deploy karala, polygon wala daala balanna hitan inne. eth hodai ita wada. First project eka hinda eachchara initially wiyadan krnna hiten na. success wunot next eka ETH yanawa.
contract + Mint krnna hadana web app eka wtri coding patte yanne, ewa loku dewal newei itn. youtube eke ona tharan videos tianwa.NFT කරන්න graphic, 3d modelling එහෙමත් දැනන් ඉන්න ඕනද බන්?
eka use case ekak kiyala na. mata hithenne oka tikak wenas widiyakata hithuwoth academic certificates waltath use kranna puluwan.mokakda bn e real use case eka?
blockchain online hackathons ehemath thiyenwa bn..gemak gahanna one me side ekenuth..
https://devpost.com/hackathons?themes[]=Blockchain
------ Post added on Jun 5, 2022 at 6:03 PM
import {ethers} from "hardhat";
import {assert, expect} from "chai";
import {SignerWithAddress} from "@nomiclabs/hardhat-ethers/signers";
import {ToBigNumber} from "./utils";
describe("ABC", function () {
let owner: SignerWithAddress;
let developer: SignerWithAddress;
let initiativeWallet: SignerWithAddress;
let stakeWallet: SignerWithAddress;
beforeEach(async function () {
const [_owner, _developer, _bob, _alice] = await ethers.getSigners()
owner = _owner
developer = _developer
initiativeWallet = _bob
stakeWallet = _alice
const NFTToken = await ethers.getContractFactory("ABCToken")
const token = await NFTToken.deploy(initiativeWallet.address, stakeWallet.address)
this.contract = await token.deployed()
})
describe('deployment', async function () {
it('deploys successfully', async function () {
const address = this.contract.address
assert.notEqual(address, 0x0)
assert.notEqual(address, '')
assert.notEqual(address, null)
assert.notEqual(address, undefined)
const balance = await this.contract.balanceOf(owner.address)
expect(balance).to.be.equal(ToBigNumber(444 * 1e6 * 1e18))
})
})
describe('mint', async function () {
it('mint successfully', async function () {
const tx = await this.contract.mint(ethers.utils.parseEther("1"))
await tx.wait()
const bobBalance = await this.contract.balanceOf(initiativeWallet.address)
// const aliceBalance = await this.contract.balanceOf(stakeWallet.address)
expect(bobBalance).to.be.equal(ToBigNumber(0.15 * 1e18))
// expect(aliceBalance).to.be.equal(ToBigNumber(0.85 * 1e18))
})
})
describe('burn', async function () {
it('mint successfully', async function () {
const tx = await this.contract.mint(ethers.utils.parseEther("1"))
await tx.wait()
let ownerBalance = await this.contract.balanceOf(owner.address)
let initiativeBalance = await this.contract.balanceOf(initiativeWallet.address)
let stakeBalance = await this.contract.balanceOf(stakeWallet.address)
expect(ownerBalance).to.be.equal(ToBigNumber(444 * 1e6 * 1e18))
expect(initiativeBalance).to.be.equal(ToBigNumber(0.15 * 1e18))
expect(stakeBalance).to.be.equal(ToBigNumber(0.85 * 1e18))
const tx2 = await this.contract.initiateChargingPoint()
await tx2.wait()
ownerBalance = await this.contract.balanceOf(owner.address)
initiativeBalance = await this.contract.balanceOf(initiativeWallet.address)
// stakeBalance = await this.contract.balanceOf(stakeWallet.address)
expect(ownerBalance).to.be.equal(ToBigNumber(88 * 1e6 * 1e18 - 50 * 1e3 * 1e18))
expect(initiativeBalance).to.be.equal(ToBigNumber(0.15 * 1e18))
expect(stakeBalance).to.be.equal(ToBigNumber(0.85 * 1e18))
})
})
});