update main

This commit is contained in:
boneyard93501 2021-10-04 09:23:57 -05:00
parent d1cc40f76d
commit edff3861fd

View File

@ -77,7 +77,7 @@ class DataProvider implements DataProviderDef {
} }
async function main_1() { async function main_0() {
await Fluence.start({ await Fluence.start({
connectTo: krasnodar[0], connectTo: krasnodar[0],
@ -174,23 +174,20 @@ async function main() {
console.log("\n\n"); console.log("\n\n");
let peer = Fluence.getPeer(); let peer = Fluence.getPeer();
console.log(peer); // console.log(peer);
// console.log(Fluence.KeyPair); // console.log(Fluence.KeyPair);
/*
registerProVoValidation(new EIPValidator()); registerProVoValidation(new EIPValidator());
registerDataProvider(new DataProvider); registerDataProvider(new DataProvider);
const eip_doc: any = await got('https://ipfs.fleek.co/ipfs/QmWGzSQFm57ohEq2ATw4UNHWmYU2HkMjtedcNLodYywpmS').json(); const eip_doc: any = await got('https://ipfs.fleek.co/ipfs/QmWGzSQFm57ohEq2ATw4UNHWmYU2HkMjtedcNLodYywpmS').json();
// console.log("eip json obj: ", eip_doc); console.log("eip json obj: ", eip_doc);
let obj = new EIPValidator(); let obj = new EIPValidator();
console.log("class obj: ", obj);
console.dir(obj);
let result = obj.eip712_validation_url(JSON.stringify(eip_doc)); let result = obj.eip712_validation_url(JSON.stringify(eip_doc));
*/ console.log("result: ", result);
await Fluence.stop(); await Fluence.stop();
} }