aa28a14d04
No vetos yet, and only for collections (not creation). closes #20
29 lines
492 B
JavaScript
29 lines
492 B
JavaScript
import EmberObject from '@ember/object';
|
|
import bignumber from 'kredits-web/utils/cps/bignumber';
|
|
|
|
export default EmberObject.extend({
|
|
|
|
// Contract
|
|
id: null,
|
|
contributorId: null,
|
|
amount: null,
|
|
confirmedAt: bignumber('confirmedAtBlock', 'toNumber'),
|
|
vetoed: null,
|
|
ipfsHash: null,
|
|
|
|
creatorAccount: null,
|
|
|
|
// IPFS
|
|
kind: null,
|
|
description: null,
|
|
details: null,
|
|
url: null,
|
|
ipfsData: '',
|
|
|
|
init () {
|
|
this._super(...arguments);
|
|
this.set('details', {});
|
|
}
|
|
|
|
});
|