localhost to ranchimallflo-api link change
This commit is contained in:
parent
029f051a77
commit
3dc5bc8ef5
14
index2.html
14
index2.html
@ -247,7 +247,7 @@
|
|||||||
|
|
||||||
|
|
||||||
if (tokenForm['tokenName'].value.slice(0,1) == 'F' && tokenForm['tokenName'].value.length == 34){
|
if (tokenForm['tokenName'].value.slice(0,1) == 'F' && tokenForm['tokenName'].value.length == 34){
|
||||||
fetch(`http://localhost:5010/org/api/v1.0/gettokeninfo?floaddress=${tokenForm["tokenName"].value}`)
|
fetch(`https://ranchimallflo-api.duckdns.org/api/v1.0/gettokeninfo?floaddress=${tokenForm["tokenName"].value}`)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
|
|
||||||
@ -258,7 +258,7 @@
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
// Entered data is contract name
|
// Entered data is contract name
|
||||||
fetch(`http://localhost:5010/api/v1.0/gettokeninfo?token=${tokenForm["tokenName"].value}`)
|
fetch(`https://ranchimallflo-api.duckdns.org/api/v1.0/gettokeninfo?token=${tokenForm["tokenName"].value}`)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
|
|
||||||
@ -275,7 +275,7 @@
|
|||||||
console.log(contractForm['addressName'].value);
|
console.log(contractForm['addressName'].value);
|
||||||
|
|
||||||
if (contractForm['addressName'].value.slice(0,1) == 'F' && contractForm['addressName'].value.length == 34){
|
if (contractForm['addressName'].value.slice(0,1) == 'F' && contractForm['addressName'].value.length == 34){
|
||||||
fetch(`http://localhost:5010/api/v1.0/getparticipantdetails?floaddress=${contractForm["addressName"].value}`)
|
fetch(`https://ranchimallflo-api.duckdns.org/api/v1.0/getparticipantdetails?floaddress=${contractForm["addressName"].value}`)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
|
|
||||||
@ -284,7 +284,7 @@
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
// Entered data is contract name
|
// Entered data is contract name
|
||||||
fetch(`http://localhost:5010/api/v1.0/getsmartContractlist?contractName=${contractForm["addressName"].value}`)
|
fetch(`https://ranchimallflo-api.duckdns.org/api/v1.0/getsmartContractlist?contractName=${contractForm["addressName"].value}`)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
showContractParticipantDetails(data);
|
showContractParticipantDetails(data);
|
||||||
@ -387,7 +387,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getSmartContractInfo(name,contractAddress){
|
function getSmartContractInfo(name,contractAddress){
|
||||||
fetch(`http://localhost:5010/api/v1.0/getsmartContractinfo?name=${name}&contractAddress=${contractAddress}`)
|
fetch(`https://ranchimallflo-api.duckdns.org/api/v1.0/getsmartContractinfo?name=${name}&contractAddress=${contractAddress}`)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
showSmartContractInfo(data);
|
showSmartContractInfo(data);
|
||||||
@ -401,7 +401,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getSmartContractList(){
|
function getSmartContractList(){
|
||||||
fetch('http://localhost:5010/api/v1.0/getsmartContractlist')
|
fetch('https://ranchimallflo-api.duckdns.org/api/v1.0/getsmartContractlist')
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
showSmartContractList(data);
|
showSmartContractList(data);
|
||||||
@ -418,7 +418,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getTokenList(){
|
function getTokenList(){
|
||||||
fetch('http://localhost:5010/api/v1.0/gettokenlist')
|
fetch('https://ranchimallflo-api.duckdns.org/api/v1.0/gettokenlist')
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
showTokenList(data);
|
showTokenList(data);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user