Contract update, client logic fixes

This commit is contained in:
viktor 2017-07-21 18:59:38 +03:00
parent 21dc8a8603
commit 4401f6f9e8
10 changed files with 62 additions and 77 deletions

View File

@ -13,7 +13,7 @@ contract ProofOfPhone {
tokens[token] = PhoneAddr({phone: phone, addr: msg.sender});
}
function activatePair(uint code) {
function activatePair(string code) {
require(tokens[sha3(code)].addr == msg.sender);
phoneAddressPair[tokens[sha3(code)].phone] = tokens[sha3(code)].addr;
addressPhonePair[tokens[sha3(code)].addr] = tokens[sha3(code)].phone;

View File

@ -4,12 +4,12 @@
"live": {
"rpc": "http://127.0.0.1:8540",
"account": "0x0000000000000000000000000000000000000000",
"contractAddress": "0x0000000000000000000000000000000000000000"
"contractAddress": "0x6d57f4a5509f80966ea0abefa71a67526e7bf549"
},
"contracts": {
"ProofOfPhone": {
"bin": "0x6060604052341561000f57600080fd5b5b6104568061001f6000396000f300606060405236156100805763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630367966681146100855780633404fe32146100b75780635fb3f3b5146100d257806371d01c73146100ea578063b958a5e11461011b578063ceaecc841461014c578063fe97ee881461017e575b600080fd5b341561009057600080fd5b61009b6004356101b1565b604051600160a060020a03909116815260200160405180910390f35b34156100c257600080fd5b6100d06004356024356101cf565b005b34156100dd57600080fd5b6100d060043561023b565b005b34156100f557600080fd5b610109600160a060020a03600435166103aa565b60405190815260200160405180910390f35b341561012657600080fd5b610109600160a060020a03600435166103bc565b60405190815260200160405180910390f35b341561015757600080fd5b61009b6004356103db565b604051600160a060020a03909116815260200160405180910390f35b341561018957600080fd5b61019d600160a060020a03600435166103f6565b604051901515815260200160405180910390f35b600081815260016020526040902054600160a060020a03165b919050565b604080519081016040908152838252600160a060020a0333166020808401919091526000848152600290915220815181556020820151600191909101805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909216919091179055505b5050565b33600160a060020a031660026000836040519081526020016040519081900390208152602081019190915260400160002060010154600160a060020a03161461028357600080fd5b600260008260405190815260200160405180910390206000191660001916815260200190815260200160002060010160009054906101000a9004600160a060020a031660016000600260008560405190815260200160405180910390206000191660001916815260200190815260200160002060000154815260200190815260200160002060006101000a815481600160a060020a030219169083600160a060020a03160217905550600260008260405190815260200160405180910390206000191660001916815260200190815260200160002060000154600080600260008560405190815260200160405190819003902081526020808201929092526040908101600090812060010154600160a060020a031684529183019390935291019020555b50565b60006020819052908152604090205481565b600160a060020a0381166000908152602081905260409020545b919050565b600160205260009081526040902054600160a060020a031681565b600160a060020a0381166000908152602081905260408120541561041c575060016101ca565b5060006101ca565b5b9190505600a165627a7a7230582050345f78bdbfe2e76a3da18b5175077fc8d6cb5466ba9b133bec3e02d2ee22450029",
"abi": [{"constant":true,"inputs":[{"name":"phone","type":"uint256"}],"name":"getAddressByPhone","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"phone","type":"uint256"},{"name":"token","type":"bytes32"}],"name":"newToken","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"code","type":"uint256"}],"name":"activatePair","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"addressPhonePair","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"}],"name":"getPhoneByAddress","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"phoneAddressPair","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"}],"name":"hasPhone","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"}]
"bin": "0x6060604052341561000f57600080fd5b5b6106088061001f6000396000f300606060405236156100805763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630367966681146100855780633404fe32146100b75780634d389f13146100d257806371d01c7314610125578063b958a5e114610156578063ceaecc8414610187578063fe97ee88146101b9575b600080fd5b341561009057600080fd5b61009b6004356101ec565b604051600160a060020a03909116815260200160405180910390f35b34156100c257600080fd5b6100d060043560243561020a565b005b34156100dd57600080fd5b6100d060046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061027695505050505050565b005b341561013057600080fd5b610144600160a060020a036004351661055c565b60405190815260200160405180910390f35b341561016157600080fd5b610144600160a060020a036004351661056e565b60405190815260200160405180910390f35b341561019257600080fd5b61009b60043561058d565b604051600160a060020a03909116815260200160405180910390f35b34156101c457600080fd5b6101d8600160a060020a03600435166105a8565b604051901515815260200160405180910390f35b600081815260016020526040902054600160a060020a03165b919050565b604080519081016040908152838252600160a060020a0333166020808401919091526000848152600290915220815181556020820151600191909101805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909216919091179055505b5050565b33600160a060020a031660026000836040518082805190602001908083835b602083106102b557805182525b601f199092019160209182019101610295565b6001836020036101000a03801982511681845116179092525050509190910192506040915050519081900390208152602081019190915260400160002060010154600160a060020a03161461030957600080fd5b60026000826040518082805190602001908083835b6020831061033e57805182525b601f19909201916020918201910161031e565b6001836020036101000a038019825116818451161790925250505091909101925060409150505180910390206000191660001916815260200190815260200160002060010160009054906101000a9004600160a060020a03166001600060026000856040518082805190602001908083835b602083106103d057805182525b601f1990920191602091820191016103b0565b6001836020036101000a038019825116818451161790925250505091909101925060409150505180910390206000191660001916815260200190815260200160002060000154815260200190815260200160002060006101000a815481600160a060020a030219169083600160a060020a0316021790555060026000826040518082805190602001908083835b6020831061047d57805182525b601f19909201916020918201910161045d565b6001836020036101000a03801982511681845116179092525050509190910192506040915050518091039020600019166000191681526020019081526020016000206000015460008060026000856040518082805190602001908083835b602083106104fb57805182525b601f1990920191602091820191016104db565b6001836020036101000a038019825116818451161790925250505091909101925060409150505190819003902081526020808201929092526040908101600090812060010154600160a060020a031684529183019390935291019020555b50565b60006020819052908152604090205481565b600160a060020a0381166000908152602081905260409020545b919050565b600160205260009081526040902054600160a060020a031681565b600160a060020a038116600090815260208190526040812054156105ce57506001610205565b506000610205565b5b9190505600a165627a7a7230582001f6d5fa87504d8f1f0cd285c0699d4d272045de9891d01aa2440fc2ddaa78c90029",
"abi": [{"constant":true,"inputs":[{"name":"phone","type":"uint256"}],"name":"getAddressByPhone","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"phone","type":"uint256"},{"name":"token","type":"bytes32"}],"name":"newToken","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"code","type":"string"}],"name":"activatePair","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"addressPhonePair","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"}],"name":"getPhoneByAddress","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"phoneAddressPair","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"}],"name":"hasPhone","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"}]
}
}
}

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,4 @@
function addToken(web3, config, sender, phoneNumber, token, cb) {
console.log(web3);
attachToContract(web3, config, function(err, contract) {
newTokenTX(web3, contract, sender, phoneNumber, token, function(err, txHash) {
//console.log("newTokenTX:");
@ -12,8 +11,7 @@ function addToken(web3, config, sender, phoneNumber, token, cb) {
function newTokenTX(web3, contract, sender, phoneNumber, token, cb) {
if (!web3.isConnected()) return cb({code: 500, title: "Error", message: "check RPC"}, null);
contract.newToken.sendTransaction(phoneNumber, token, {gas: 800000, from: sender}, function(err, result) {
contract.newToken.sendTransaction(phoneNumber, token, {gas: 80000, from: sender}, function(err, result) {
cb(err, result);
});
}

View File

@ -1,6 +1,8 @@
function showAlert(err, msg, type) {
if (err) console.log(err);
if (err.type == "REQUEST_REJECTED") return;
if (err) {
console.log(err);
if (err.type == "REQUEST_REJECTED") return;
}
swal({
title: type?capitalizeFirstLetter(type):"Error",
html: msg?msg:err.message,

View File

@ -40,12 +40,11 @@ function startDapp(web3, isOraclesNetwork) {
var POPDescContainerShortend = $('.POPDescContainerShortend');
var step1CopyTable = $('#step1CopyTable');
var step3CopyTable = $('#step3CopyTable');
var addr = $("#addressVal").text();
$("#copyWallet").attr("data-clipboard-text", addr);
function getConfigCallBack(web3, accounts, config) {
console.log(accounts);
if (accounts.length == 1) {
sender = accounts[0];
@ -69,7 +68,6 @@ function startDapp(web3, isOraclesNetwork) {
});
}
buildCopyWalletControl("copyWallet");
buildCopyURLControl("POPShare");
phoneRadio.click(function(e) {
@ -147,8 +145,8 @@ function startDapp(web3, isOraclesNetwork) {
loader.removeClass('hide');
switch(curStepNum) {
case 1: {
var phoneNumber = parseInt(visibleInput.val());
sendCodeBySMS(phoneNumber, sendCodeBySMSCallback);
var phoneNumber = visibleInput.val();
sendCodeBySMS(phoneNumber, sendCodeBySMSCallback, config, sender);
} break;
case 2: {
var code = parseInt(POPInputSMS.val());
@ -196,7 +194,6 @@ function startDapp(web3, isOraclesNetwork) {
POPInputSMS.focus();
POPInputWallet.addClass('hide');
step1CopyTable.hide();
step3CopyTable.addClass("hide");
bottomDescAddition.addClass("hide");
successContainer.addClass("hide");
POPTitleContainerShortend.addClass("POPTitleContainer");
@ -221,15 +218,12 @@ function startDapp(web3, isOraclesNetwork) {
radioContainer.addClass("hide");
inputContainer.hide();
step1CopyTable.hide();
step3CopyTable.addClass("hide");
bottomDescAddition.addClass("hide");
successContainer.removeClass("hide");
POPTitleContainerShortend.addClass("POPTitleContainer");
POPTitleContainerShortend.removeClass("POPTitleContainerShortend");
POPDescContainerShortend.addClass("POPDescContainer");
POPDescContainerShortend.removeClass("POPDescContainerShortend");
buildCopyWalletControl("copyWallet3");
}
break;
case 4:
@ -247,7 +241,6 @@ function startDapp(web3, isOraclesNetwork) {
POPInputSMS.addClass('hide');
POPInputWallet.addClass('hide');
step1CopyTable.hide();
step3CopyTable.addClass("hide");
bottomDescAddition.addClass("hide");
bottomDescAddition2.addClass("hide");
successContainer.addClass("hide");
@ -256,7 +249,7 @@ function startDapp(web3, isOraclesNetwork) {
POPDescContainer.addClass("POPDescContainerShortend");
POPDescContainer.removeClass("POPDescContainer");
buildCopyWalletControl("copyWallet2");
buildCopyWalletControl("copyWallet3");
}
break;
default:
@ -265,7 +258,6 @@ function startDapp(web3, isOraclesNetwork) {
stepLabel.removeClass("hide");
POPBottomDescriptionContainer.show();
step1CopyTable.hide();
step3CopyTable.addClass("hide");
bottomDescAddition.addClass("hide");
bottomDescAddition2.addClass("hide");
successContainer.addClass("hide");
@ -281,7 +273,7 @@ function startDapp(web3, isOraclesNetwork) {
});
}
function sendCodeBySMSCallback(err, token) {
function sendCodeBySMSCallback(err, token, config, sender, phoneNumber) {
if (err) {
middleMainContainerInner.fadeIn(500);
loader.addClass('hide');
@ -344,10 +336,13 @@ function startDapp(web3, isOraclesNetwork) {
function buildCopyWalletControl(id) {
var copyWallet = document.getElementById(id);
var clientCopyWallet = new Clipboard(copyWallet);
clientCopyWallet.on( "success", function( readyEvent ) {
Materialize.toast(addressCopiedToBufferText, 3000, 'rounded');
});
if (copyWallet) {
var clientCopyWallet = new Clipboard("#" + id);
console.log(clientCopyWallet);
clientCopyWallet.on( "success", function( readyEvent ) {
Materialize.toast(addressCopiedToBufferText, 3000, 'rounded');
});
};
}
function buildCopyURLControl(id) {

View File

@ -1,11 +1,11 @@
function sendCodeBySMS(phone, cb) {
function sendCodeBySMS(phone, cb, config, sender) {
//cb(null, "0xc888c9ce9e098d5864d3ded6ebcc140a12142263bace3a23a36f9905f12bd64a");
$.post("/sendCodeBySMS", {
"globalToken": "cba2c691-47df-41e7-bc97-a0818103ed14",
"to": phone
}, function( data ) {
console.log( data );
if (data.success) cb(null, data.success.token);
else cb(data.error, null);
if (data.success) cb(null, data.success.token, config, sender, phone);
else cb(data.error, null, config, sender, phone);
});
}

View File

@ -1,12 +1,12 @@
function verifyCodeFromSMS(web3, config, sender, token, cb) {
activatePair(web3, config, sender, token, function(err, txHash) {
function verifyCodeFromSMS(web3, config, sender, code, cb) {
activatePair(web3, config, sender, code, function(err, txHash) {
cb(err, txHash);
});
}
function activatePair(web3, config, sender, token, cb) {
function activatePair(web3, config, sender, code, cb) {
attachToContract(web3, config, function(err, contract) {
activatePairTX(web3, contract, sender, token, function(err, txHash) {
activatePairTX(web3, contract, sender, code, function(err, txHash) {
//console.log("activatePairTX:");
//console.log("result: " + txHash);
cb(err, txHash);
@ -15,10 +15,10 @@ function activatePair(web3, config, sender, token, cb) {
});
}
function activatePairTX(web3, contract, sender, token, cb) {
function activatePairTX(web3, contract, sender, code, cb) {
if (!web3.isConnected()) cb({code: 500, title: "Error", message: "check RPC"}, null);
contract.activatePair.sendTransaction(token, {gas: 800000, from: sender}, function(err, result) {
contract.activatePair.sendTransaction(code.toString(), {gas: 100000, from: sender}, function(err, result) {
cb(err, result);
});
}

View File

@ -2,12 +2,12 @@
"environment": "live",
"Ethereum": {
"live": {
"contractAddress": "0x9bdf3f3d61f23f0d4eba9fff950b8facb6628fc3"
"contractAddress": "0x6d57f4a5509f80966ea0abefa71a67526e7bf549"
},
"contracts": {
"ProofOfPhone": {
"bin": "0x6060604052341561000c57fe5b5b6106438061001c6000396000f30060606040523615610081576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806303679666146100835780633404fe32146100e357806371d01c73146101105780639fbebee51461015a578063b958a5e11461017e578063ceaecc84146101c8578063fe97ee8814610228575bfe5b341561008b57fe5b6100a16004808035906020019091905050610276565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156100eb57fe5b61010e6004808035906020019091908035600019169060200190919050506102b4565b005b341561011857fe5b610144600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610354565b6040518082815260200191505060405180910390f35b341561016257fe5b61017c60048080356000191690602001909190505061036c565b005b341561018657fe5b6101b2600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610537565b6040518082815260200191505060405180910390f35b34156101d057fe5b6101e66004808035906020019091905050610581565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561023057fe5b61025c600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506105b4565b604051808215151515815260200191505060405180910390f35b60006001600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b919050565b6040604051908101604052808381526020013373ffffffffffffffffffffffffffffffffffffffff168152506002600083600019166000191681526020019081526020016000206000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050505b5050565b60006020528060005260406000206000915090505481565b3373ffffffffffffffffffffffffffffffffffffffff1660026000836000191660001916815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415156103e55760006000fd5b60026000826000191660001916815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166001600060026000856000191660001916815260200190815260200160002060000154815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260008260001916600019168152602001908152602001600020600001546000600060026000856000191660001916815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b50565b6000600060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490505b919050565b60016020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006000600060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541415156106085760019050610612565b60009050610612565b5b9190505600a165627a7a7230582007f136df6454b733e1e101a03dccfd4fd2ad950dcba0025499b3f7a16c993ca50029",
"abi": [{"constant":true,"inputs":[{"name":"phone","type":"uint256"}],"name":"getAddressByPhone","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"phone","type":"uint256"},{"name":"codeToken","type":"bytes32"}],"name":"newToken","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"addressPhonePair","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"codeToken","type":"bytes32"}],"name":"activatePair","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"}],"name":"getPhoneByAddress","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"phoneAddressPair","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"}],"name":"hasPhone","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"}]
"bin": "0x6060604052341561000f57600080fd5b5b6106088061001f6000396000f300606060405236156100805763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630367966681146100855780633404fe32146100b75780634d389f13146100d257806371d01c7314610125578063b958a5e114610156578063ceaecc8414610187578063fe97ee88146101b9575b600080fd5b341561009057600080fd5b61009b6004356101ec565b604051600160a060020a03909116815260200160405180910390f35b34156100c257600080fd5b6100d060043560243561020a565b005b34156100dd57600080fd5b6100d060046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061027695505050505050565b005b341561013057600080fd5b610144600160a060020a036004351661055c565b60405190815260200160405180910390f35b341561016157600080fd5b610144600160a060020a036004351661056e565b60405190815260200160405180910390f35b341561019257600080fd5b61009b60043561058d565b604051600160a060020a03909116815260200160405180910390f35b34156101c457600080fd5b6101d8600160a060020a03600435166105a8565b604051901515815260200160405180910390f35b600081815260016020526040902054600160a060020a03165b919050565b604080519081016040908152838252600160a060020a0333166020808401919091526000848152600290915220815181556020820151600191909101805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03909216919091179055505b5050565b33600160a060020a031660026000836040518082805190602001908083835b602083106102b557805182525b601f199092019160209182019101610295565b6001836020036101000a03801982511681845116179092525050509190910192506040915050519081900390208152602081019190915260400160002060010154600160a060020a03161461030957600080fd5b60026000826040518082805190602001908083835b6020831061033e57805182525b601f19909201916020918201910161031e565b6001836020036101000a038019825116818451161790925250505091909101925060409150505180910390206000191660001916815260200190815260200160002060010160009054906101000a9004600160a060020a03166001600060026000856040518082805190602001908083835b602083106103d057805182525b601f1990920191602091820191016103b0565b6001836020036101000a038019825116818451161790925250505091909101925060409150505180910390206000191660001916815260200190815260200160002060000154815260200190815260200160002060006101000a815481600160a060020a030219169083600160a060020a0316021790555060026000826040518082805190602001908083835b6020831061047d57805182525b601f19909201916020918201910161045d565b6001836020036101000a03801982511681845116179092525050509190910192506040915050518091039020600019166000191681526020019081526020016000206000015460008060026000856040518082805190602001908083835b602083106104fb57805182525b601f1990920191602091820191016104db565b6001836020036101000a038019825116818451161790925250505091909101925060409150505190819003902081526020808201929092526040908101600090812060010154600160a060020a031684529183019390935291019020555b50565b60006020819052908152604090205481565b600160a060020a0381166000908152602081905260409020545b919050565b600160205260009081526040902054600160a060020a031681565b600160a060020a038116600090815260208190526040812054156105ce57506001610205565b506000610205565b5b9190505600a165627a7a7230582001f6d5fa87504d8f1f0cd285c0699d4d272045de9891d01aa2440fc2ddaa78c90029",
"abi": [{"constant":true,"inputs":[{"name":"phone","type":"uint256"}],"name":"getAddressByPhone","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"phone","type":"uint256"},{"name":"token","type":"bytes32"}],"name":"newToken","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"code","type":"string"}],"name":"activatePair","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"addressPhonePair","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"}],"name":"getPhoneByAddress","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"phoneAddressPair","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"}],"name":"hasPhone","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"}]
}
}
}

View File

@ -65,11 +65,6 @@ html
div.someContainer
label#bottomDescAddition.POPDesc.hide
div.someContainer
table#step3CopyTable(cellspacing="0" cellpadding="0").copyTable.nomargin.hide
tbody.copyTableBody
tr
td#addressVal.copyTableCellWalletValue2= address
td(data-clipboard-text="#{address}")#copyWallet.copyTableCellCopyButton
table#step1CopyTable(cellspacing="0" cellpadding="0").copyTable.marginTop1
tbody.copyTableBody
tr
@ -98,4 +93,4 @@ html
div.loader-i.loader-i_right-bottom
include ./bottom.pug
script(src="./javascripts/sweetalert2.min.js" type="text/javascript").
script(src="./javascripts/application.js?v=1.7" type="text/javascript").
script(src="./javascripts/application.js?v=1.8" type="text/javascript").