Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tron-explore
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张建华@五瓣科技
tron-explore
Commits
f968a6bd
Commit
f968a6bd
authored
Nov 11, 2020
by
jianhua.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
波场浏览器JAVA版
parent
e4c74376
Pipeline
#297
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
151 additions
and
0 deletions
+151
-0
README.md
README.md
+7
-0
tron-explore.sql
tron-explore.sql
+144
-0
No files found.
README.md
0 → 100644
View file @
f968a6bd
波场浏览器JAVA版
一. 数据初始化脚本
1.
项目根目录下tron-explore.sql文件
二. 项目启动程序
1.
com.wuban.tron.explore.ExploreApplication
\ No newline at end of file
tron-explore.sql
0 → 100644
View file @
f968a6bd
/*
Navicat MySQL Data Transfer
Source Server : 123.56.5.114.master
Source Server Version : 50731
Source Host : 123.56.5.114:13306
Source Database : test_tron
Target Server Type : MYSQL
Target Server Version : 50731
File Encoding : 65001
Date: 2020-11-11 16:22:22
*/
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for `tron_address`
-- ----------------------------
DROP
TABLE
IF
EXISTS
`tron_address`
;
CREATE
TABLE
`tron_address`
(
`address`
varchar
(
80
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
COMMENT
'账户地址'
,
`balance`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'余额'
,
PRIMARY
KEY
(
`address`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'账户地址表'
;
-- ----------------------------
-- Records of tron_address
-- ----------------------------
-- ----------------------------
-- Table structure for `tron_block_day_census`
-- ----------------------------
DROP
TABLE
IF
EXISTS
`tron_block_day_census`
;
CREATE
TABLE
`tron_block_day_census`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
,
`gen_block_aver_time`
bigint
(
20
)
NOT
NULL
COMMENT
'生成区块的平均时间'
,
`gen_block_total_num`
int
(
11
)
NOT
NULL
COMMENT
'生成区块总量'
,
`total_volume`
int
(
11
)
NOT
NULL
COMMENT
'总交易量'
,
`census_date`
varchar
(
20
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
COMMENT
'统计日期'
,
`create_time`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
,
`total_block_bytes`
int
(
11
)
NOT
NULL
COMMENT
'总块大小'
,
`aver_block_bytes`
int
(
11
)
NOT
NULL
COMMENT
'平均块大小'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
7
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'按天统计区块表'
;
-- ----------------------------
-- Records of tron_block_day_census
-- ----------------------------
-- ----------------------------
-- Table structure for `tron_block_header`
-- ----------------------------
DROP
TABLE
IF
EXISTS
`tron_block_header`
;
CREATE
TABLE
`tron_block_header`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
,
`block_id`
varchar
(
80
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'区块ID'
,
`number`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'区块高度'
,
`tx_trie_root`
varchar
(
80
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
,
`witness_address`
varchar
(
80
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
,
`parentHash`
varchar
(
80
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'父hash'
,
`version`
int
(
4
)
DEFAULT
NULL
COMMENT
'版本号'
,
`timestamp`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'区块时间戳'
,
`witness_signature`
varchar
(
150
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
,
`transaction_volume`
int
(
11
)
DEFAULT
NULL
COMMENT
'交易量'
,
`create_time`
timestamp
NULL
DEFAULT
NULL
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`block_bytes`
varchar
(
20
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'块大小'
,
PRIMARY
KEY
(
`id`
),
KEY
`block_id_idx`
(
`block_id`
)
USING
BTREE
,
KEY
`ts_idx`
(
`timestamp`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
21689
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'区块头信息表'
;
-- ----------------------------
-- Records of tron_block_header
-- ----------------------------
-- ----------------------------
-- Table structure for `tron_last_block`
-- ----------------------------
DROP
TABLE
IF
EXISTS
`tron_last_block`
;
CREATE
TABLE
`tron_last_block`
(
`id`
bigint
(
20
)
NOT
NULL
,
`cur_block_num`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'已更新的区块高度'
,
`last_block_num`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'最新的区块高度'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
;
-- ----------------------------
-- Records of tron_last_block
-- ----------------------------
INSERT
INTO
`tron_last_block`
VALUES
(
'1'
,
'8000000'
,
'9585054'
);
-- ----------------------------
-- Table structure for `tron_transaction`
-- ----------------------------
DROP
TABLE
IF
EXISTS
`tron_transaction`
;
CREATE
TABLE
`tron_transaction`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
,
`block_id`
varchar
(
80
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'区块ID'
,
`tx_id`
varchar
(
80
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'交易ID'
,
`contract_ret`
varchar
(
20
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'交易结果'
,
`owner_address`
varchar
(
80
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'交易地址FROM'
,
`data`
text
COLLATE
utf8mb4_unicode_ci
COMMENT
'合约数据'
,
`contract_address`
varchar
(
80
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'合约地址'
,
`amount`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'交易额'
,
`to_address`
varchar
(
80
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'交易地址TO'
,
`type_url`
varchar
(
200
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
,
`type`
varchar
(
30
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
,
`ref_block_bytes`
varchar
(
30
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
,
`ref_block_hash`
varchar
(
30
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
,
`expiration`
bigint
(
20
)
DEFAULT
NULL
,
`fee_limit`
bigint
(
20
)
DEFAULT
NULL
,
`timestamp`
bigint
(
20
)
DEFAULT
NULL
,
`create_time`
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`number`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'区块高度'
,
PRIMARY
KEY
(
`id`
),
KEY
`block_id_idx`
(
`block_id`
)
USING
BTREE
,
KEY
`tx_id_idx`
(
`tx_id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
23386
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'区块交易信息表'
;
-- ----------------------------
-- Records of tron_transaction
-- ----------------------------
-- ----------------------------
-- Table structure for `tron_transaction_hex`
-- ----------------------------
DROP
TABLE
IF
EXISTS
`tron_transaction_hex`
;
CREATE
TABLE
`tron_transaction_hex`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
,
`hex`
text
COLLATE
utf8mb4_unicode_ci
,
`block_id`
varchar
(
80
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'区块ID'
,
`tx_id`
varchar
(
80
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'交易ID'
,
`signature`
varchar
(
150
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
,
`create_time`
timestamp
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
PRIMARY
KEY
(
`id`
),
KEY
`tx_id_idx`
(
`tx_id`
)
USING
BTREE
,
KEY
`block_id_idx`
(
`block_id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
23325
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'区块交易hex表'
;
-- ----------------------------
-- Records of tron_transaction_hex
-- ----------------------------
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment