make SMS verification contract general purpose

This commit is contained in:
Jannis R 2016-12-06 15:09:11 +01:00
parent 2d6656fc43
commit 600a7e5ccc
No known key found for this signature in database
GPG Key ID: 0FE83946296A88A5
3 changed files with 6 additions and 3 deletions

View File

@ -19,7 +19,7 @@ import Registry from './registry';
import SignatureReg from './signaturereg'; import SignatureReg from './signaturereg';
import TokenReg from './tokenreg'; import TokenReg from './tokenreg';
import GithubHint from './githubhint'; import GithubHint from './githubhint';
import * as smsVerification from './sms-verification'; import * as verification from './verification';
import BadgeReg from './badgereg'; import BadgeReg from './badgereg';
let instance = null; let instance = null;
@ -58,7 +58,10 @@ export default class Contracts {
} }
get smsVerification () { get smsVerification () {
return smsVerification; return verification;
}
get emailVerification () {
return verification;
} }
static create (api) { static create (api) {

View File

@ -20,7 +20,7 @@ import { sha3 } from '~/api/util/sha3';
import Contracts from '~/contracts'; import Contracts from '~/contracts';
import { checkIfVerified, checkIfRequested, awaitPuzzle } from '~/contracts/sms-verification'; import { checkIfVerified, checkIfRequested, awaitPuzzle } from '~/contracts/verification';
import { postToServer } from '../../3rdparty/sms-verification'; import { postToServer } from '../../3rdparty/sms-verification';
import checkIfTxFailed from '../../util/check-if-tx-failed'; import checkIfTxFailed from '../../util/check-if-tx-failed';
import waitForConfirmations from '../../util/wait-for-block-confirmations'; import waitForConfirmations from '../../util/wait-for-block-confirmations';