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
const ticker = connex.thor.ticker() | |
let receipt = null | |
do { | |
await ticker.next() | |
// need to catch exception | |
receipt = await transaction.getReceipt() | |
} while(!receipt) |
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
import { abi } from 'thor-devkit' | |
// assume we have a demo contract | |
// contract DemoContract { | |
// constructor(int arg) public { | |
// } | |
// } | |
const byteCode = '0x....' | |
const constructorABI = { |
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
import { abi } from 'thor-devkit' | |
// assume we have a demo contract | |
// contract DemoContract { | |
// constructor(int arg) public { | |
// } | |
// } | |
const byteCode = '0x....' | |
const constructorABI = { |
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
import Deferred from '@/base/deferred' | |
class PromiseTracker { | |
private readonly deferred = new Deferred() | |
constructor() { | |
this.deferred.catch() | |
} | |
public track<T extends object>(obj: T): T { | |
return this._track(obj) |
NewerOlder