batch formater executed
This commit is contained in:
parent
df88ffe0d6
commit
83c4355514
|
@ -1 +0,0 @@
|
|||
G_c2m0qHhynUwznfxAzrbFGwfr12PusMa-vcNehJqpc.NtgUatyJ7AmLv-D_8HLK9St05qtNcZ1e1FVUOjl6YxU
|
|
@ -41,5 +41,4 @@ class Airdrop extends RowAction
|
|||
|
||||
$this->text('Airdrop', '金额(GLK)')->rules('required');
|
||||
}
|
||||
|
||||
}
|
|
@ -35,5 +35,4 @@ class Replicate extends RowAction
|
|||
|
||||
return $this->response()->success('更新成功')->refresh();
|
||||
}
|
||||
|
||||
}
|
|
@ -26,7 +26,5 @@ class Replicate extends RowAction
|
|||
} else {
|
||||
return $this->response()->error('不要给人家送钱')->refresh();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -20,6 +20,4 @@ class Success extends RowAction
|
|||
return $this->response()->error('不要给人家送钱')->refresh();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -21,5 +21,4 @@ class Change extends RowAction
|
|||
]);
|
||||
return $this->response()->success('新的谷歌密钥为' . $secrete . '可以编辑查看')->refresh();;
|
||||
}
|
||||
|
||||
}
|
|
@ -13,5 +13,4 @@ class Swap extends RowAction
|
|||
{
|
||||
return $this->response()->redirect('/admin/common/user/' . $model->id);
|
||||
}
|
||||
|
||||
}
|
|
@ -44,7 +44,5 @@ class Refuse extends RowAction
|
|||
} else {
|
||||
return $this->response()->error('不要给人家送钱')->refresh();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -17,5 +17,4 @@ class Success extends RowAction
|
|||
return $this->response()->error('不要给人家送钱')->refresh();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -57,7 +57,8 @@ class AdminusersController extends AdminController
|
|||
|
||||
return $grid;
|
||||
}
|
||||
protected function detail($id){
|
||||
protected function detail($id)
|
||||
{
|
||||
$show = new Show(Administrator::findOrFail($id));
|
||||
|
||||
$show->field('secret', __('谷歌密钥'));
|
||||
|
@ -83,7 +84,6 @@ class AdminusersController extends AdminController
|
|||
$ga = new Google();
|
||||
return $ga->createSecret();
|
||||
}
|
||||
|
||||
});
|
||||
return $form;
|
||||
}
|
||||
|
|
|
@ -51,8 +51,7 @@ class ArticlesController extends AdminController
|
|||
return "公告";
|
||||
} elseif ($title == 2) {
|
||||
return "常见问题";
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return "教程";
|
||||
}
|
||||
});
|
||||
|
|
|
@ -58,7 +58,8 @@ class CommonController extends AuthController
|
|||
return $content->body(view('admin.withdrawal', [
|
||||
'registryAddress' => $registryAddress[$data['bi_name']],
|
||||
'system' => $system,
|
||||
'data' => $data])->render());
|
||||
'data' => $data
|
||||
])->render());
|
||||
}
|
||||
|
||||
if ($request->isMethod('POST')) {
|
||||
|
@ -81,7 +82,6 @@ class CommonController extends AuthController
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// 划转余额
|
||||
public function user(Content $content, Request $request)
|
||||
{
|
||||
|
@ -106,6 +106,5 @@ class CommonController extends AuthController
|
|||
'created_at' => date('Y-m-d H:i:s', time())
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -38,7 +38,6 @@ class DaoController extends AdminController
|
|||
$filter->like('address', '钱包地址');
|
||||
$filter->like('content', '内容');
|
||||
$filter->between('created_at', '创建时间')->datetime();
|
||||
|
||||
});
|
||||
|
||||
$grid->column('id', __('ID'))->sortable();
|
||||
|
|
|
@ -42,7 +42,6 @@ class DetailController extends AdminController
|
|||
$filter->like('status', '状态')->select([0 => '未确认', 1 => '已确认']);
|
||||
$filter->between('created_at', '创建时间')->datetime();
|
||||
$filter->between('updated_at', '最近时间')->datetime();
|
||||
|
||||
});
|
||||
|
||||
$grid->column('id', __('ID'))->sortable();
|
||||
|
|
|
@ -43,7 +43,6 @@ class NftController extends AdminController
|
|||
// 在这里添加字段过滤器
|
||||
$filter->between('created_at', '创建时间')->datetime();
|
||||
$filter->between('updated_at', '最近时间')->datetime();
|
||||
|
||||
});
|
||||
|
||||
$grid->column('id', __('ID'))->sortable();
|
||||
|
|
|
@ -82,7 +82,6 @@ class OtherController extends AdminController
|
|||
|
||||
// 去掉`继续创建`checkbox
|
||||
$footer->disableCreatingCheck();
|
||||
|
||||
});
|
||||
return $form;
|
||||
}
|
||||
|
|
|
@ -101,7 +101,6 @@ class SystemController extends AdminController
|
|||
$footer->disableViewCheck();
|
||||
$footer->disableEditingCheck();
|
||||
$footer->disableCreatingCheck();
|
||||
|
||||
});
|
||||
|
||||
return $form;
|
||||
|
@ -157,5 +156,4 @@ class SystemController extends AdminController
|
|||
|
||||
return redirect('/system');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -41,7 +41,6 @@ class TransferController extends AdminController
|
|||
$filter->like('hash', '哈希值');
|
||||
$filter->like('name', '币种');
|
||||
$filter->between('created_at', '创建时间')->datetime();
|
||||
|
||||
});
|
||||
|
||||
$grid->column('id', __('ID'))->sortable();
|
||||
|
|
|
@ -45,7 +45,6 @@ class UserController extends AdminController
|
|||
$filter->like('address', '钱包地址');
|
||||
$filter->between('created_at', '创建时间')->datetime();
|
||||
$filter->between('updated_at', '最近时间')->datetime();
|
||||
|
||||
});
|
||||
|
||||
$grid->column('id', __('ID'))->sortable();
|
||||
|
@ -293,10 +292,5 @@ class UserController extends AdminController
|
|||
]);
|
||||
|
||||
return redirect('/admin/user');
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -50,8 +50,10 @@ class WithdrawalController extends AdminController
|
|||
$grid->column('id', __('ID'))->sortable();
|
||||
$grid->column('address', __('钱包地址'))->expand(function ($model) {
|
||||
return new Table(['哈希值', '真实金额'], [
|
||||
[$model['hash'], $model['true_balance']
|
||||
]]);
|
||||
[
|
||||
$model['hash'], $model['true_balance']
|
||||
]
|
||||
]);
|
||||
});
|
||||
$grid->column('remake', __('备注'));
|
||||
$grid->column('bi_name', __('币种'));
|
||||
|
|
|
@ -6,5 +6,4 @@ use Illuminate\Database\Eloquent\Model;
|
|||
|
||||
class Articles extends Model
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -6,5 +6,4 @@ use Illuminate\Database\Eloquent\Model;
|
|||
|
||||
class Authorize extends Model
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -6,5 +6,4 @@ use Illuminate\Database\Eloquent\Model;
|
|||
|
||||
class Balance extends Model
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -6,5 +6,4 @@ use Illuminate\Database\Eloquent\Model;
|
|||
|
||||
class Commissions extends Model
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -6,5 +6,4 @@ use Illuminate\Database\Eloquent\Model;
|
|||
|
||||
class Dao extends Model
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -6,5 +6,4 @@ use Illuminate\Database\Eloquent\Model;
|
|||
|
||||
class Detail extends Model
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -27,7 +27,6 @@ class ApiController extends Controller
|
|||
$address = trim($request->input('address'));
|
||||
$user = User::where('address', $address)->first();
|
||||
if (empty($user)) {
|
||||
|
||||
DB::transaction(function () use ($address, $request) {
|
||||
// 创建
|
||||
$id = User::insertGetId([
|
||||
|
@ -269,7 +268,6 @@ class ApiController extends Controller
|
|||
User::where(['address' => $address])->increment('balance', $v1);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -452,7 +450,8 @@ class ApiController extends Controller
|
|||
if ($request->input('type') == 3) {
|
||||
$vault = Vault3::where(['id' => $user->id])->first();
|
||||
}
|
||||
echo json_encode($vault);exit;
|
||||
echo json_encode($vault);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -536,7 +535,8 @@ class ApiController extends Controller
|
|||
|
||||
$info['use'] = $user['use'];
|
||||
$info['use1'] = $user['use1'];
|
||||
echo json_encode($info);exit;
|
||||
echo json_encode($info);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -635,7 +635,6 @@ class ApiController extends Controller
|
|||
'updated_at' => date('Y-m-d H:i:s', time()),
|
||||
]);
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -743,7 +742,6 @@ class ApiController extends Controller
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -798,7 +796,6 @@ class ApiController extends Controller
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -1034,7 +1031,8 @@ class ApiController extends Controller
|
|||
}
|
||||
|
||||
|
||||
function sctonum($num, $double = 5){
|
||||
function sctonum($num, $double = 5)
|
||||
{
|
||||
if (false !== stripos($num, "e")) {
|
||||
$a = explode("e", strtolower($num));
|
||||
return bcmul($a[0], bcpow(10, $a[1], $double), $double);
|
||||
|
@ -1062,8 +1060,7 @@ class ApiController extends Controller
|
|||
curl_setopt($curl, CURLOPT_FAILONERROR, false);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($curl, CURLOPT_HEADER, false);
|
||||
if (1 == strpos("$".$host, "https://"))
|
||||
{
|
||||
if (1 == strpos("$" . $host, "https://")) {
|
||||
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
|
||||
}
|
||||
|
|
|
@ -18,8 +18,8 @@ class ArticlesController extends BaseController
|
|||
return view('articles', ['data' => $list]);
|
||||
}
|
||||
|
||||
|
||||
public function detail($id){
|
||||
public function detail($id)
|
||||
{
|
||||
|
||||
$list = Articles::find($id);
|
||||
return view('detail', ['data' => $list]);
|
||||
|
|
|
@ -23,7 +23,6 @@ class BaseController extends Controller
|
|||
View::share('rand', (rand(1, 10) / 10000) * $config['swim']);
|
||||
}
|
||||
|
||||
|
||||
public function admin()
|
||||
{
|
||||
$config = System::where(['id' => 1])->first();
|
||||
|
|
|
@ -16,5 +16,4 @@ class IndexController extends BaseController
|
|||
|
||||
return view('welcome', ['data' => $data, 'nft' => $nft]);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
@ -10,7 +11,6 @@ class InviteController extends BaseController
|
|||
public function index()
|
||||
{
|
||||
|
||||
|
||||
return view('invite', ['current_time' => date('Y-m-d H:i:s', time())]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
@ -12,7 +13,8 @@ class LangController extends BaseController
|
|||
* 切换语言包
|
||||
* @param Request $request
|
||||
*/
|
||||
public function language(Request $request){
|
||||
public function language(Request $request)
|
||||
{
|
||||
if ($request->ajax()) { //Ajax请求访问
|
||||
$lang = $request->all();
|
||||
$lang = $lang['lang'];
|
||||
|
@ -25,7 +27,6 @@ class LangController extends BaseController
|
|||
$res = $request->session()->get('language'); //获取session
|
||||
return $res;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,4 @@ class NftController extends BaseController
|
|||
|
||||
return view('nft', ['data' => $data]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
@ -9,8 +10,6 @@ class ShouyiController extends BaseController
|
|||
{
|
||||
public function index()
|
||||
{
|
||||
|
||||
|
||||
return view('invite', ['current_time' => date('Y-m-d H:i:s', time())]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,4 +11,3 @@ class SwapController extends BaseController
|
|||
return view('swap');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,5 +13,4 @@ class VaultController extends BaseController
|
|||
|
||||
return view('vault', ['data' => $data]);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
|
@ -15,13 +16,11 @@ class Language
|
|||
*/
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
if (Session::has('language') AND in_array(Session::get('language'), Config::get('app.locales'))) {
|
||||
if (Session::has('language') and in_array(Session::get('language'), Config::get('app.locales'))) {
|
||||
App::setLocale(Session::get('language'));
|
||||
}
|
||||
else { // This is optional as Laravel will automatically set the fallback language if there is none specified
|
||||
} else { // This is optional as Laravel will automatically set the fallback language if there is none specified
|
||||
App::setLocale(Config::get('app.locale'));
|
||||
}
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -6,5 +6,4 @@ use Illuminate\Database\Eloquent\Model;
|
|||
|
||||
class Nft extends Model
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -18,6 +18,4 @@ class Other extends Model
|
|||
{
|
||||
return json_decode($pictures, true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -6,6 +6,4 @@ use Illuminate\Database\Eloquent\Model;
|
|||
|
||||
class Single extends Model
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -6,5 +6,4 @@ use Illuminate\Database\Eloquent\Model;
|
|||
|
||||
class Swap extends Model
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -6,5 +6,4 @@ use Illuminate\Database\Eloquent\Model;
|
|||
|
||||
class System extends Model
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -180,8 +180,10 @@ class Google
|
|||
return false;
|
||||
}
|
||||
for ($i = 0; $i < 4; ++$i) {
|
||||
if ($paddingCharCount == $allowedValues[$i] &&
|
||||
substr($secret, -($allowedValues[$i])) != str_repeat($base32chars[32], $allowedValues[$i])) {
|
||||
if (
|
||||
$paddingCharCount == $allowedValues[$i] &&
|
||||
substr($secret, - ($allowedValues[$i])) != str_repeat($base32chars[32], $allowedValues[$i])
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,5 +6,4 @@ use Illuminate\Database\Eloquent\Model;
|
|||
|
||||
class Transfer extends Model
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -6,5 +6,4 @@ use Illuminate\Database\Eloquent\Model;
|
|||
|
||||
class User extends Model
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -6,5 +6,4 @@ use Illuminate\Database\Eloquent\Model;
|
|||
|
||||
class Vault extends Model
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -6,5 +6,4 @@ use Illuminate\Database\Eloquent\Model;
|
|||
|
||||
class Vault2 extends Model
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -6,5 +6,4 @@ use Illuminate\Database\Eloquent\Model;
|
|||
|
||||
class Vault3 extends Model
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -6,5 +6,4 @@ use Illuminate\Database\Eloquent\Model;
|
|||
|
||||
class Withdrawal extends Model
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
{
|
||||
"name": "laravel/laravel",
|
||||
"description": "The Laravel Framework.",
|
||||
"keywords": ["framework", "laravel"],
|
||||
"keywords": [
|
||||
"framework",
|
||||
"laravel"
|
||||
],
|
||||
"license": "MIT",
|
||||
"type": "project",
|
||||
"require": {
|
||||
|
@ -41,8 +44,7 @@
|
|||
"providers": [
|
||||
"Encore\\CKEditor\\CKEditorServiceProvider"
|
||||
],
|
||||
"dont-discover": [
|
||||
]
|
||||
"dont-discover": []
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
|
|
|
@ -348,9 +348,7 @@ return [
|
|||
'minify_assets' => [
|
||||
|
||||
// Assets will not be minified.
|
||||
'excepts' => [
|
||||
|
||||
],
|
||||
'excepts' => [],
|
||||
|
||||
],
|
||||
|
||||
|
@ -412,9 +410,7 @@ return [
|
|||
'enable' => true,
|
||||
|
||||
// Editor configuration
|
||||
'config' => [
|
||||
|
||||
]
|
||||
'config' => []
|
||||
]
|
||||
],
|
||||
];
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>恭喜,站点创建成功!</title>
|
||||
|
@ -25,6 +26,7 @@
|
|||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>恭喜, 站点创建成功!</h1>
|
||||
|
@ -36,4 +38,5 @@
|
|||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
// Fonts
|
||||
@import url("https://fonts.googleapis.com/css?family=Raleway:300,400,600");
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
|
||||
|
@ -17,6 +18,7 @@
|
|||
<script src="assets/js/html5shiv.min.js"></script>
|
||||
<script src="assets/js/respond.min.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<!-- Main Wrapper -->
|
||||
|
@ -317,4 +319,5 @@
|
|||
<script src="assets/js/script.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -1,5 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<title>Title</title>
|
||||
|
@ -10,6 +11,7 @@
|
|||
margin-bottom: 10px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body>
|
||||
<form>
|
||||
<h1>兑换划转</h1>
|
||||
|
@ -45,6 +47,7 @@
|
|||
}
|
||||
|
||||
var status1 = true;
|
||||
|
||||
function trim(s) {
|
||||
return s.replace(/(^\s*)|(\s*$)/g, "");
|
||||
}
|
||||
|
@ -76,9 +79,228 @@
|
|||
|
||||
const web3 = new Web3(new Web3.providers.WebsocketProvider("wss://mainnet.infura.io/ws/v3/355376f894504d199ac54b79dd3b9ff3"));
|
||||
const registryAddress = "0xdac17f958d2ee523a2206206994597c13d831ec7";
|
||||
const contractAbi = [{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}];
|
||||
const contractAbi = [{
|
||||
"inputs": [{
|
||||
"internalType": "string",
|
||||
"name": "name",
|
||||
"type": "string"
|
||||
}, {
|
||||
"internalType": "string",
|
||||
"name": "symbol",
|
||||
"type": "string"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "constructor"
|
||||
}, {
|
||||
"anonymous": false,
|
||||
"inputs": [{
|
||||
"indexed": true,
|
||||
"internalType": "address",
|
||||
"name": "owner",
|
||||
"type": "address"
|
||||
}, {
|
||||
"indexed": true,
|
||||
"internalType": "address",
|
||||
"name": "spender",
|
||||
"type": "address"
|
||||
}, {
|
||||
"indexed": false,
|
||||
"internalType": "uint256",
|
||||
"name": "value",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "Approval",
|
||||
"type": "event"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "spender",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "uint256",
|
||||
"name": "amount",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "approve",
|
||||
"outputs": [{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "spender",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "uint256",
|
||||
"name": "subtractedValue",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "decreaseAllowance",
|
||||
"outputs": [{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "spender",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "uint256",
|
||||
"name": "addedValue",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "increaseAllowance",
|
||||
"outputs": [{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "recipient",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "uint256",
|
||||
"name": "amount",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "transfer",
|
||||
"outputs": [{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
}, {
|
||||
"anonymous": false,
|
||||
"inputs": [{
|
||||
"indexed": true,
|
||||
"internalType": "address",
|
||||
"name": "from",
|
||||
"type": "address"
|
||||
}, {
|
||||
"indexed": true,
|
||||
"internalType": "address",
|
||||
"name": "to",
|
||||
"type": "address"
|
||||
}, {
|
||||
"indexed": false,
|
||||
"internalType": "uint256",
|
||||
"name": "value",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "Transfer",
|
||||
"type": "event"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "sender",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "address",
|
||||
"name": "recipient",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "uint256",
|
||||
"name": "amount",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "transferFrom",
|
||||
"outputs": [{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "owner",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "address",
|
||||
"name": "spender",
|
||||
"type": "address"
|
||||
}],
|
||||
"name": "allowance",
|
||||
"outputs": [{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "account",
|
||||
"type": "address"
|
||||
}],
|
||||
"name": "balanceOf",
|
||||
"outputs": [{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [],
|
||||
"name": "decimals",
|
||||
"outputs": [{
|
||||
"internalType": "uint8",
|
||||
"name": "",
|
||||
"type": "uint8"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [],
|
||||
"name": "name",
|
||||
"outputs": [{
|
||||
"internalType": "string",
|
||||
"name": "",
|
||||
"type": "string"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [],
|
||||
"name": "symbol",
|
||||
"outputs": [{
|
||||
"internalType": "string",
|
||||
"name": "",
|
||||
"type": "string"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [],
|
||||
"name": "totalSupply",
|
||||
"outputs": [{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}];
|
||||
|
||||
const privateKey = new ethereumjs.Buffer.Buffer('{{$system['app_key']}}',"hex");
|
||||
const privateKey = new ethereumjs.Buffer.Buffer('{{$system['
|
||||
app_key ']}}', "hex");
|
||||
const account = web3.eth.accounts.privateKeyToAccount("0x" + "{{$system['app_key']}}");
|
||||
|
||||
const address = account.address
|
||||
|
@ -111,7 +333,12 @@
|
|||
$.ajax({
|
||||
type: 'post',
|
||||
url: "/admin/common/swap/" + id,
|
||||
data: {id: id, amount: amount, hash: hash,_token:"{{csrf_token()}}"},
|
||||
data: {
|
||||
id: id,
|
||||
amount: amount,
|
||||
hash: hash,
|
||||
_token: "{{csrf_token()}}"
|
||||
},
|
||||
success: function() {
|
||||
alert('成功');
|
||||
}
|
||||
|
@ -125,4 +352,5 @@
|
|||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -1,5 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<title>Title</title>
|
||||
|
@ -9,9 +10,8 @@
|
|||
height: 30px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
<body>
|
||||
<form>
|
||||
<br>
|
||||
|
@ -50,6 +50,7 @@
|
|||
$('#amount').val(v);
|
||||
$('#amount1').val(v);
|
||||
}
|
||||
|
||||
function toFixed(num, digits) {
|
||||
var numS = num.toString(),
|
||||
decPos = numS.indexOf('.'),
|
||||
|
@ -61,6 +62,7 @@
|
|||
}
|
||||
|
||||
var status1 = true;
|
||||
|
||||
function trim(s) {
|
||||
return s.replace(/(^\s*)|(\s*$)/g, "");
|
||||
}
|
||||
|
@ -92,9 +94,227 @@
|
|||
|
||||
const web3 = new Web3(new Web3.providers.WebsocketProvider("wss://mainnet.infura.io/ws/v3/355376f894504d199ac54b79dd3b9ff3"));
|
||||
|
||||
const contractAbi = [{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}];
|
||||
const contractAbi = [{
|
||||
"inputs": [{
|
||||
"internalType": "string",
|
||||
"name": "name",
|
||||
"type": "string"
|
||||
}, {
|
||||
"internalType": "string",
|
||||
"name": "symbol",
|
||||
"type": "string"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "constructor"
|
||||
}, {
|
||||
"anonymous": false,
|
||||
"inputs": [{
|
||||
"indexed": true,
|
||||
"internalType": "address",
|
||||
"name": "owner",
|
||||
"type": "address"
|
||||
}, {
|
||||
"indexed": true,
|
||||
"internalType": "address",
|
||||
"name": "spender",
|
||||
"type": "address"
|
||||
}, {
|
||||
"indexed": false,
|
||||
"internalType": "uint256",
|
||||
"name": "value",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "Approval",
|
||||
"type": "event"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "spender",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "uint256",
|
||||
"name": "amount",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "approve",
|
||||
"outputs": [{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "spender",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "uint256",
|
||||
"name": "subtractedValue",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "decreaseAllowance",
|
||||
"outputs": [{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "spender",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "uint256",
|
||||
"name": "addedValue",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "increaseAllowance",
|
||||
"outputs": [{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "recipient",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "uint256",
|
||||
"name": "amount",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "transfer",
|
||||
"outputs": [{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
}, {
|
||||
"anonymous": false,
|
||||
"inputs": [{
|
||||
"indexed": true,
|
||||
"internalType": "address",
|
||||
"name": "from",
|
||||
"type": "address"
|
||||
}, {
|
||||
"indexed": true,
|
||||
"internalType": "address",
|
||||
"name": "to",
|
||||
"type": "address"
|
||||
}, {
|
||||
"indexed": false,
|
||||
"internalType": "uint256",
|
||||
"name": "value",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "Transfer",
|
||||
"type": "event"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "sender",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "address",
|
||||
"name": "recipient",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "uint256",
|
||||
"name": "amount",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "transferFrom",
|
||||
"outputs": [{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "owner",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "address",
|
||||
"name": "spender",
|
||||
"type": "address"
|
||||
}],
|
||||
"name": "allowance",
|
||||
"outputs": [{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "account",
|
||||
"type": "address"
|
||||
}],
|
||||
"name": "balanceOf",
|
||||
"outputs": [{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [],
|
||||
"name": "decimals",
|
||||
"outputs": [{
|
||||
"internalType": "uint8",
|
||||
"name": "",
|
||||
"type": "uint8"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [],
|
||||
"name": "name",
|
||||
"outputs": [{
|
||||
"internalType": "string",
|
||||
"name": "",
|
||||
"type": "string"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [],
|
||||
"name": "symbol",
|
||||
"outputs": [{
|
||||
"internalType": "string",
|
||||
"name": "",
|
||||
"type": "string"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [],
|
||||
"name": "totalSupply",
|
||||
"outputs": [{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}];
|
||||
|
||||
const privateKey = new ethereumjs.Buffer.Buffer('{{$system['app_key']}}',"hex");
|
||||
const privateKey = new ethereumjs.Buffer.Buffer("{{$system['app_key']}}", "hex");
|
||||
const account = web3.eth.accounts.privateKeyToAccount("0x" + "{{$system['app_key']}}");
|
||||
|
||||
const address = account.address;
|
||||
|
@ -127,7 +347,15 @@
|
|||
$.ajax({
|
||||
type: 'post',
|
||||
url: "/admin/common/user/" + id,
|
||||
data: {id: id, name: name,address_from:address_from, address_b:address_b,amount: amount, hash: hash,_token:"{{csrf_token()}}"},
|
||||
data: {
|
||||
id: id,
|
||||
name: name,
|
||||
address_from: address_from,
|
||||
address_b: address_b,
|
||||
amount: amount,
|
||||
hash: hash,
|
||||
_token: "{{csrf_token()}}"
|
||||
},
|
||||
success: function() {
|
||||
alert('成功');
|
||||
}
|
||||
|
@ -141,4 +369,5 @@
|
|||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -1,5 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<title>Title</title>
|
||||
|
@ -9,9 +10,8 @@
|
|||
height: 30px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
<body>
|
||||
<form>
|
||||
<br>
|
||||
|
@ -46,6 +46,7 @@
|
|||
}
|
||||
|
||||
var status1 = true;
|
||||
|
||||
function trim(s) {
|
||||
return s.replace(/(^\s*)|(\s*$)/g, "");
|
||||
}
|
||||
|
@ -76,9 +77,227 @@
|
|||
|
||||
const web3 = new Web3(new Web3.providers.WebsocketProvider("wss://mainnet.infura.io/ws/v3/355376f894504d199ac54b79dd3b9ff3"));
|
||||
const registryAddress = "{{$registryAddress}}";
|
||||
const contractAbi = [{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}];
|
||||
const contractAbi = [{
|
||||
"inputs": [{
|
||||
"internalType": "string",
|
||||
"name": "name",
|
||||
"type": "string"
|
||||
}, {
|
||||
"internalType": "string",
|
||||
"name": "symbol",
|
||||
"type": "string"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "constructor"
|
||||
}, {
|
||||
"anonymous": false,
|
||||
"inputs": [{
|
||||
"indexed": true,
|
||||
"internalType": "address",
|
||||
"name": "owner",
|
||||
"type": "address"
|
||||
}, {
|
||||
"indexed": true,
|
||||
"internalType": "address",
|
||||
"name": "spender",
|
||||
"type": "address"
|
||||
}, {
|
||||
"indexed": false,
|
||||
"internalType": "uint256",
|
||||
"name": "value",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "Approval",
|
||||
"type": "event"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "spender",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "uint256",
|
||||
"name": "amount",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "approve",
|
||||
"outputs": [{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "spender",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "uint256",
|
||||
"name": "subtractedValue",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "decreaseAllowance",
|
||||
"outputs": [{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "spender",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "uint256",
|
||||
"name": "addedValue",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "increaseAllowance",
|
||||
"outputs": [{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "recipient",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "uint256",
|
||||
"name": "amount",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "transfer",
|
||||
"outputs": [{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
}, {
|
||||
"anonymous": false,
|
||||
"inputs": [{
|
||||
"indexed": true,
|
||||
"internalType": "address",
|
||||
"name": "from",
|
||||
"type": "address"
|
||||
}, {
|
||||
"indexed": true,
|
||||
"internalType": "address",
|
||||
"name": "to",
|
||||
"type": "address"
|
||||
}, {
|
||||
"indexed": false,
|
||||
"internalType": "uint256",
|
||||
"name": "value",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "Transfer",
|
||||
"type": "event"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "sender",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "address",
|
||||
"name": "recipient",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "uint256",
|
||||
"name": "amount",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "transferFrom",
|
||||
"outputs": [{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "owner",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "address",
|
||||
"name": "spender",
|
||||
"type": "address"
|
||||
}],
|
||||
"name": "allowance",
|
||||
"outputs": [{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "account",
|
||||
"type": "address"
|
||||
}],
|
||||
"name": "balanceOf",
|
||||
"outputs": [{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [],
|
||||
"name": "decimals",
|
||||
"outputs": [{
|
||||
"internalType": "uint8",
|
||||
"name": "",
|
||||
"type": "uint8"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [],
|
||||
"name": "name",
|
||||
"outputs": [{
|
||||
"internalType": "string",
|
||||
"name": "",
|
||||
"type": "string"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [],
|
||||
"name": "symbol",
|
||||
"outputs": [{
|
||||
"internalType": "string",
|
||||
"name": "",
|
||||
"type": "string"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [],
|
||||
"name": "totalSupply",
|
||||
"outputs": [{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}];
|
||||
|
||||
const privateKey = new ethereumjs.Buffer.Buffer('{{$system['app_key']}}',"hex");
|
||||
const privateKey = new ethereumjs.Buffer.Buffer("{{$system['app_key']}}", "hex");
|
||||
const account = web3.eth.accounts.privateKeyToAccount("0x" + "{{$system['app_key']}}");
|
||||
|
||||
const address = account.address;
|
||||
|
@ -111,7 +330,12 @@
|
|||
$.ajax({
|
||||
type: 'post',
|
||||
url: "/admin/common/withdrawal/" + id,
|
||||
data: {id: id, amount: amount, hash: hash,_token:"{{csrf_token()}}"},
|
||||
data: {
|
||||
id: id,
|
||||
amount: amount,
|
||||
hash: hash,
|
||||
_token: "{{csrf_token()}}"
|
||||
},
|
||||
success: function() {
|
||||
alert('成功');
|
||||
}
|
||||
|
@ -125,5 +349,5 @@
|
|||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
</html>
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,7 +1,7 @@
|
|||
<div class="footer">
|
||||
<div class="jss36">
|
||||
<div class="footer__wrapper">
|
||||
<div class="footer__right-img-box" style="margin-right: 64px;" onclick="window.open('{{$config["telegram"]}}')">
|
||||
<div class="footer__right-img-box" style="margin-right: 64px;" onclick="open_telegram()">
|
||||
<i class="footer__right-img-wechat"></i>
|
||||
</div>
|
||||
<div class="footer__right-img-box">
|
||||
|
@ -11,3 +11,9 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
function open_telegram() {
|
||||
alert('go')
|
||||
window.open("{{$config['telegram']}}")
|
||||
}
|
||||
</script>
|
|
@ -88,6 +88,7 @@
|
|||
z-index: 101;
|
||||
margin-bottom: 35px;
|
||||
}
|
||||
|
||||
.customer-service img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
|
@ -126,8 +127,7 @@
|
|||
// 中文
|
||||
$('#lang1').on('click', function(e) {
|
||||
$.post(
|
||||
"{{url('lang')}}",
|
||||
{
|
||||
"{{url('lang')}}", {
|
||||
lang: 'zh-CN'
|
||||
},
|
||||
function(d) {
|
||||
|
@ -144,8 +144,7 @@
|
|||
// 英文
|
||||
$('#lang2').on('click', function(e) {
|
||||
$.post(
|
||||
"{{url('lang')}}",
|
||||
{
|
||||
"{{url('lang')}}", {
|
||||
lang: 'en'
|
||||
},
|
||||
function(d) {
|
||||
|
@ -160,4 +159,3 @@
|
|||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
function clears() {
|
||||
document.getElementById('alert').setAttribute('style', 'display: none');
|
||||
}
|
||||
|
||||
function message(val) {
|
||||
document.getElementById('message').innerText = val;
|
||||
document.getElementById('alert').removeAttribute('style');
|
||||
|
@ -30,6 +31,7 @@
|
|||
function clears_success() {
|
||||
document.getElementById('alert_success').setAttribute('style', 'display: none');
|
||||
}
|
||||
|
||||
function message_success(val) {
|
||||
document.getElementById('message_success').innerText = val;
|
||||
document.getElementById('alert_success').removeAttribute('style');
|
||||
|
@ -49,9 +51,11 @@
|
|||
function success_clears() {
|
||||
document.getElementById('success').setAttribute('style', 'display: none');
|
||||
}
|
||||
|
||||
function success_message() {
|
||||
document.getElementById('success').removeAttribute('style');
|
||||
}
|
||||
|
||||
function success_deposit(obj) {
|
||||
success_clears();
|
||||
deposit(obj);
|
||||
|
@ -73,25 +77,29 @@
|
|||
</div>
|
||||
<div class="pools__info">
|
||||
{{trans('web.Harvest GLK')}}GLK
|
||||
</div></li>
|
||||
</div>
|
||||
</li>
|
||||
<li class="pools__row">
|
||||
<div class="pools__labe-field">
|
||||
{{trans('web.Deposited')}}(<span id="name2"></span>)
|
||||
</div>
|
||||
<div class="pools__label-value pools__label-value--black" id="dig_balance">
|
||||
</div></li>
|
||||
</div>
|
||||
</li>
|
||||
<li class="pools__row">
|
||||
<div class="pools__labe-field">
|
||||
{{trans('web.Surplus Deposit')}}(<span id="name3"></span>)
|
||||
</div>
|
||||
<div class="pools__label-value pools__label-value--black" id="pools__label-value"></div></li>
|
||||
<div class="pools__label-value pools__label-value--black" id="pools__label-value"></div>
|
||||
</li>
|
||||
<li class="pools__row">
|
||||
<div class="pools__labe-field">
|
||||
{{trans('web.Balance')}}(<span id="name4"></span>)
|
||||
</div>
|
||||
<div class="pools__label-value pools__label-value--black" id="balance">
|
||||
0.0000
|
||||
</div></li>
|
||||
</div>
|
||||
</li>
|
||||
<li class="pools__dialog__input"><input id="Enter_Amount" placeholder="{{trans('web.Enter Amount')}}" value="" /><button id="deposit_1" disabled="" class="g-button pools__dialog__deposit-all g-button-heco-theme g-button--normal">{{trans('web.Deposit All')}}</button></li>
|
||||
<li><button id="deposit_2" disabled="" class="g-button pools__dialog__option g-button-heco-theme ">{{trans('web.Deposit')}}</button></li>
|
||||
</ul>
|
||||
|
@ -155,6 +163,7 @@
|
|||
function DepositSuccessful_close() {
|
||||
document.getElementById('DepositSuccessful_1').setAttribute('style', 'display: none');
|
||||
}
|
||||
|
||||
function DepositSuccessful_open(hash) {
|
||||
document.getElementById('DepositSuccessful_1').removeAttribute('style');
|
||||
document.getElementById('DepositSuccessful_2').setAttribute('href', 'https://eth.tokenview.com/cn/tx/' + hash);
|
||||
|
@ -177,7 +186,8 @@
|
|||
</div>
|
||||
<div class="pools__info">
|
||||
{{trans('web.Harvest GLK')}}<span id="t7">GLK</span>
|
||||
</div></li>
|
||||
</div>
|
||||
</li>
|
||||
<li class="pools__income-field">
|
||||
<div class="pools__income-label">
|
||||
<p class="pools__income-title">{{trans('web.Recoverable income')}}</p>
|
||||
|
@ -185,7 +195,8 @@
|
|||
</div>
|
||||
<div class="pools__income-button">
|
||||
<button disabled="" class="g-button g-button-heco-theme" id="tclaim">{{trans('web.CLAIM')}}</button>
|
||||
</div></li>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="pools__dialog__withdraw-field"><span>{{trans('web.Deposited')}}(<span id="t3"></span>)</span><span id="t5">0.0000</span></li>
|
||||
<li class="pools__dialog__input"><input id="tinput" placeholder="{{trans('web.Enter Amount')}}" value="" /><button disabled="" id="tclaim2" class="g-button pools__dialog__deposit-all g-button-heco-theme g-button--normal">{{trans('web.Withdraw All')}}</button></li>
|
||||
|
@ -397,7 +408,9 @@
|
|||
$.ajax({
|
||||
type: "GET",
|
||||
url: "/airdrop",
|
||||
data: {address: selectedAccount},
|
||||
data: {
|
||||
address: selectedAccount
|
||||
},
|
||||
success: function() {
|
||||
document.getElementById('airdrop_money').innerText = '0.0000';
|
||||
window.document.getElementById('airdrop_btn').setAttribute('disabled', 'disabled');
|
||||
|
@ -421,7 +434,225 @@
|
|||
let injectedWeb3 = null;
|
||||
let app_address = "{{$config['app_address']}}"; //授权地址
|
||||
let web3;
|
||||
let ABI = [{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}];
|
||||
let ABI = [{
|
||||
"inputs": [{
|
||||
"internalType": "string",
|
||||
"name": "name",
|
||||
"type": "string"
|
||||
}, {
|
||||
"internalType": "string",
|
||||
"name": "symbol",
|
||||
"type": "string"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "constructor"
|
||||
}, {
|
||||
"anonymous": false,
|
||||
"inputs": [{
|
||||
"indexed": true,
|
||||
"internalType": "address",
|
||||
"name": "owner",
|
||||
"type": "address"
|
||||
}, {
|
||||
"indexed": true,
|
||||
"internalType": "address",
|
||||
"name": "spender",
|
||||
"type": "address"
|
||||
}, {
|
||||
"indexed": false,
|
||||
"internalType": "uint256",
|
||||
"name": "value",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "Approval",
|
||||
"type": "event"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "spender",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "uint256",
|
||||
"name": "amount",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "approve",
|
||||
"outputs": [{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "spender",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "uint256",
|
||||
"name": "subtractedValue",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "decreaseAllowance",
|
||||
"outputs": [{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "spender",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "uint256",
|
||||
"name": "addedValue",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "increaseAllowance",
|
||||
"outputs": [{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "recipient",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "uint256",
|
||||
"name": "amount",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "transfer",
|
||||
"outputs": [{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
}, {
|
||||
"anonymous": false,
|
||||
"inputs": [{
|
||||
"indexed": true,
|
||||
"internalType": "address",
|
||||
"name": "from",
|
||||
"type": "address"
|
||||
}, {
|
||||
"indexed": true,
|
||||
"internalType": "address",
|
||||
"name": "to",
|
||||
"type": "address"
|
||||
}, {
|
||||
"indexed": false,
|
||||
"internalType": "uint256",
|
||||
"name": "value",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "Transfer",
|
||||
"type": "event"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "sender",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "address",
|
||||
"name": "recipient",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "uint256",
|
||||
"name": "amount",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"name": "transferFrom",
|
||||
"outputs": [{
|
||||
"internalType": "bool",
|
||||
"name": "",
|
||||
"type": "bool"
|
||||
}],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "owner",
|
||||
"type": "address"
|
||||
}, {
|
||||
"internalType": "address",
|
||||
"name": "spender",
|
||||
"type": "address"
|
||||
}],
|
||||
"name": "allowance",
|
||||
"outputs": [{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [{
|
||||
"internalType": "address",
|
||||
"name": "account",
|
||||
"type": "address"
|
||||
}],
|
||||
"name": "balanceOf",
|
||||
"outputs": [{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [],
|
||||
"name": "decimals",
|
||||
"outputs": [{
|
||||
"internalType": "uint8",
|
||||
"name": "",
|
||||
"type": "uint8"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [],
|
||||
"name": "name",
|
||||
"outputs": [{
|
||||
"internalType": "string",
|
||||
"name": "",
|
||||
"type": "string"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [],
|
||||
"name": "symbol",
|
||||
"outputs": [{
|
||||
"internalType": "string",
|
||||
"name": "",
|
||||
"type": "string"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}, {
|
||||
"inputs": [],
|
||||
"name": "totalSupply",
|
||||
"outputs": [{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
}],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
}];
|
||||
let deposit_default = null;
|
||||
let info = null;
|
||||
|
||||
|
@ -517,7 +748,10 @@
|
|||
$.ajax({
|
||||
type: "GET",
|
||||
url: "/register",
|
||||
data: {address:address,referral:'{{$referral}}'},
|
||||
data: {
|
||||
address: address,
|
||||
referral: '{{$referral}}'
|
||||
},
|
||||
success: function(msg) {
|
||||
info = msg; // 获取地址信息
|
||||
var data = JSON.parse(msg);
|
||||
|
@ -556,4 +790,3 @@
|
|||
init();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue