store owner in deploy manifest

This commit is contained in:
De Facto 2021-02-19 18:48:03 +08:00
parent e223511bc3
commit 18882f23df
1 changed files with 3 additions and 2 deletions

View File

@ -26,6 +26,7 @@ interface OracleDeployInfo {
} }
interface AggregatorDeployInfo { interface AggregatorDeployInfo {
pubkey: PublicKey pubkey: PublicKey
owner: PublicKey
config: IAggregatorConfig config: IAggregatorConfig
oracles: { oracles: {
@ -118,6 +119,7 @@ export class Deployer {
key, key,
aggregatorSetup aggregatorSetup
) )
// get the value again to wrap it in proxy...
info = this.state.aggregators[key] info = this.state.aggregators[key]
} }
@ -129,8 +131,6 @@ export class Deployer {
let oinfo = info.oracles[oracleName] let oinfo = info.oracles[oracleName]
if (!oinfo) { if (!oinfo) {
oinfo = await this.createOracle(info, oracleName, oracleSetup) oinfo = await this.createOracle(info, oracleName, oracleSetup)
// hmm... not triggering save
info.oracles[oracleName] = oinfo info.oracles[oracleName] = oinfo
} }
console.log(`${key} added oracle:`, oracleSetup.owner) console.log(`${key} added oracle:`, oracleSetup.owner)
@ -184,6 +184,7 @@ export class Deployer {
return { return {
pubkey: account.publicKey, pubkey: account.publicKey,
owner: this.wallet.pubkey,
config, config,
oracles: {}, oracles: {},
} }