Skip to content

Commit

Permalink
feat: add new marketplace and keep the old one as legacy (#37)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: the abi for the Marketplace contract changed
  • Loading branch information
nicosantangelo authored and Juan Cazala committed Sep 27, 2018
1 parent 7155fd7 commit ba5e9f7
Show file tree
Hide file tree
Showing 4 changed files with 558 additions and 44 deletions.
16 changes: 16 additions & 0 deletions src/contracts/LegacyMarketplace.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { Contract } from '../ethereum'
import { fulfillContractMethods } from './verification'

const { abi } = require('./artifacts/LegacyMarketplace.json')

/** LegacyMarketplace contract class */
export class LegacyMarketplace extends Contract {
constructor(address: string) {
super(address, abi)
fulfillContractMethods(this, abi)
}

getContractName() {
return 'LegacyMarketplace'
}
}
Loading

0 comments on commit ba5e9f7

Please sign in to comment.