Skip to content

Commit

Permalink
Use a static deployment artifact registry for TacoApplication.
Browse files Browse the repository at this point in the history
  • Loading branch information
KPrasch authored and theref committed Sep 22, 2023
1 parent 431296a commit cb8f637
Show file tree
Hide file tree
Showing 2 changed files with 1,161 additions and 1,160 deletions.
8 changes: 3 additions & 5 deletions src/threshold-ts/mas/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import RandomBeacon from "@keep-network/random-beacon/artifacts/RandomBeacon.json"
import WalletRegistry from "@keep-network/ecdsa/artifacts/WalletRegistry.json"
import useTacoContract from "../../web3/hooks/useTacoContract"
import TacoRegistry from "../../web3/abi/TacoApplication.json" // TODO: use the npm package
import {
Application,
AuthorizationParameters,
Expand All @@ -10,8 +10,6 @@ import { IMulticall, ContractCall } from "../multicall"
import { IStaking } from "../staking"
import { EthereumConfig } from "../types"

const tacoContract = useTacoContract()

export interface SupportedAppAuthorizationParameters {
tbtc: AuthorizationParameters
randomBeacon: AuthorizationParameters
Expand Down Expand Up @@ -49,8 +47,8 @@ export class MultiAppStaking {
...config,
})
this.taco = new Application(this._staking, this._multicall, {
address: tacoContract.address, // TODO
abi: tacoContract.abi, // TODO
address: TacoRegistry.address,
abi: TacoRegistry.abi,
...config,
})
}
Expand Down
Loading

0 comments on commit cb8f637

Please sign in to comment.