-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from rsksmart/feat/upgradeable-token-support-v2
Feat/upgradeable token support v2
- Loading branch information
Showing
7 changed files
with
156 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
import { assert } from 'chai' | ||
import { ContractParser } from '../src/lib/ContractParser' | ||
import nod3 from '../src/lib/nod3Connect' | ||
import { assert } from "chai"; | ||
import { ContractParser } from "../src/lib/ContractParser"; | ||
import nod3 from "../src/lib/nod3Connect"; | ||
|
||
const contracts = [ | ||
'0xebea27d994371cd0cb9896ae4c926bc5221f6317'] | ||
const contracts = ["0xebea27d994371cd0cb9896ae4c926bc5221f6317"]; | ||
|
||
const parser = new ContractParser({ nod3 }) | ||
const parser = new ContractParser({ nod3 }); | ||
|
||
describe('# Network', function () { | ||
it('should be connected to RSK testnet', async function () { | ||
let net = await nod3.net.version() | ||
console.log(net) | ||
assert.equal(net.id, '31') | ||
}) | ||
}) | ||
|
||
describe('Contract parser', function () { | ||
describe("# Network", function () { | ||
it("should be connected to RSK testnet", async function () { | ||
let net = await nod3.net.version(); | ||
console.log(net); | ||
assert.equal(net.id, "31"); | ||
}); | ||
}); | ||
|
||
describe("Contract parser", function () { | ||
for (let address of contracts) { | ||
it('should return the token data', async () => { | ||
let contract = parser.makeContract(address) | ||
const info = await parser.getTokenData(contract) | ||
console.log({ info }) | ||
}) | ||
it("should return the token data", async () => { | ||
let contract = parser.makeContract(address); | ||
const info = await parser.getTokenData(contract); | ||
console.log({ info }); | ||
}); | ||
} | ||
}) | ||
}); |