|
|
@@ -68,6 +68,72 @@
|
|
|
this.getPledgeConfig()
|
|
|
},
|
|
|
methods: {
|
|
|
+ async test(){
|
|
|
+ //icon转账
|
|
|
+ let data=''
|
|
|
+ // 查询
|
|
|
+ //查询开关
|
|
|
+ data='0x3494a347'
|
|
|
+ tokenpocketBnb.getProvider().request({method: 'eth_call',params:[{'to':'0x59560b65eacf3fce26f80cc80ad07d273f9e7218','data':data}, "latest"]}).then((balance)=>{
|
|
|
+ console.log('0x3494a347-----------------------',balance)
|
|
|
+ })
|
|
|
+ //
|
|
|
+ // //查询系统地址
|
|
|
+ //
|
|
|
+ data='0x7fce276d'
|
|
|
+ tokenpocketBnb.getProvider().request({method: 'eth_call',params:[{'to':'0x59560b65eacf3fce26f80cc80ad07d273f9e7218','data':data}, "latest"]}).then((balance)=>{
|
|
|
+ console.log('0x7fce276d-----------------------',balance)
|
|
|
+ })
|
|
|
+
|
|
|
+ //setSwapPair 设置交易合约地址
|
|
|
+ // data='0xdc2c50e5000000000000000000000000d99d1c33f9fc3444f8101754abc46c52416550d1000000000000000000000000337610d27c682e347c9cd60bd4b3b107c9d34ddd'
|
|
|
+ // let transactionData = await tokenpocketBnb.getContractTransaction(data, 0);
|
|
|
+ // tokenpocketBnb.sendTransaction(transactionData).then(res => {
|
|
|
+ // console.log(res)
|
|
|
+ // })
|
|
|
+ //0xfe219D86FC55cd07441005fF647B9babAd12C36C
|
|
|
+ //0xfe219D86FC55cd07441005fF647B9babAd12C36C
|
|
|
+
|
|
|
+ // approve 预授权
|
|
|
+ // data = '0x095ea7b3000000000000000000000000b7f1c21c51a0f85704a13b981aa9075d9b1029620000000000000000000000000000000000000000000000056bc75e2d63100000'
|
|
|
+ // let transactionData = await tokenpocketBnb.getContractTransaction(data, 0);
|
|
|
+ // tokenpocketBnb.sendTransaction(transactionData).then(res => {
|
|
|
+ // console.log(res)
|
|
|
+ // })
|
|
|
+
|
|
|
+
|
|
|
+ // approve 预授权
|
|
|
+ // data = '0x095ea7b3000000000000000000000000b7f1c21c51a0f85704a13b981aa9075d9b1029620000000000000000000000000000000000000000000000056bc75e2d63100000'
|
|
|
+ // let transactionData = await tokenpocketBnb.getContractTransaction(data, 0);
|
|
|
+ // tokenpocketBnb.sendTransaction(transactionData).then(res => {
|
|
|
+ // console.log(res)
|
|
|
+ // })
|
|
|
+
|
|
|
+
|
|
|
+ // addSysAddress 设置系统地址
|
|
|
+ // data = '0x5e9a0c48' + tools.replenishZero('0xb7F1c21c51a0f85704a13b981Aa9075d9b102962')
|
|
|
+ // data = '0x5e9a0c48000000000000000000000000b7f1c21c51a0f85704a13b981aa9075d9b102962'
|
|
|
+ // let transactionData = await tokenpocketBnb.getContractTransaction(data, 0);
|
|
|
+ // tokenpocketBnb.sendTransaction(transactionData).then(res => {
|
|
|
+ // console.log(res)
|
|
|
+ // })
|
|
|
+
|
|
|
+ // let data = '0x5e9a0c48' + tools.replenishZero('0xb7F1c21c51a0f85704a13b981Aa9075d9b102962')
|
|
|
+ // let transactionData = await tokenpocketBnb.getContractTransaction(data, 0);
|
|
|
+ // tokenpocketBnb.sendTransaction(transactionData).then(res => {
|
|
|
+ // console.log(res)
|
|
|
+ // })
|
|
|
+
|
|
|
+ // 0x2383eb8f 交易开关
|
|
|
+ // let formHex = web3.utils.numberToHex(1);
|
|
|
+ // console.log('formHex:'+formHex)
|
|
|
+ // data = '0x2383eb8f' + tools.replenishZero(formHex)
|
|
|
+ // console.log(data)
|
|
|
+ // let transactionData = await tokenpocketBnb.getContractTransaction(data, 0);
|
|
|
+ // tokenpocketBnb.sendTransaction(transactionData).then(res => {
|
|
|
+ // console.log(res)
|
|
|
+ // })
|
|
|
+ },
|
|
|
getPledgeConfig() {
|
|
|
getPledgeConfig().then(res => {
|
|
|
if (res.code === 1) {
|
|
|
@@ -188,7 +254,7 @@
|
|
|
|
|
|
<template>
|
|
|
<view>
|
|
|
- <view class="bgc-f p-20 box-sizing-border b-rad-20 mb-40">
|
|
|
+ <view class="bgc-f p-20 box-sizing-border b-rad-20 mb-40" @click="test">
|
|
|
<image class="head-img" :src="require('@/static/img/index/index/bannerhome.png')" mode="widthFix"></image>
|
|
|
</view>
|
|
|
<view class="bgc-f p-20 box-sizing-border b-rad-20 mb-40">
|