|
|
|
@ -99,6 +99,20 @@ export class RunTab extends ViewPlugin { |
|
|
|
|
async onInitDone () { |
|
|
|
|
await this.call('manager', 'activatePlugin', 'hardhat-provider') |
|
|
|
|
await this.call('manager', 'activatePlugin', 'ganache-provider') |
|
|
|
|
const udapp = this |
|
|
|
|
await this.call('blockchain', 'addProvider', { |
|
|
|
|
name: 'Wallet Connect', |
|
|
|
|
provider: { |
|
|
|
|
async sendAsync (payload, callback) { |
|
|
|
|
try { |
|
|
|
|
const result = await udapp.call('walletconnect', 'sendAsync', payload) |
|
|
|
|
callback(null, result) |
|
|
|
|
} catch (e) { |
|
|
|
|
callback(e) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
writeFile (fileName, content) { |
|
|
|
|