-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add eths inscriptions and add some new jsonrpc apis. #23
Closed
Closed
Changes from 125 commits
Commits
Show all changes
127 commits
Select commit
Hold shift + click to select a range
b1b4c5c
add CommonResponse statuct
jonzhang708 be42706
opt code
jonzhang708 899230c
add new get txs api
jonzhang708 531824b
updage api json file
jonzhang708 5bdd689
opt code
jonzhang708 aef9e20
code style
jonzhang708 13e9058
add log
jonzhang708 4339542
add log
jonzhang708 9acee5a
fix log
jonzhang708 2932c66
fix log
jonzhang708 be711ea
fix
jonzhang708 7e1f210
fix
jonzhang708 6a15b20
json
jonzhang708 45dd5b2
add inds_getInscriptionsStats api
jonzhang708 70308c8
add inds_getInscriptionsStats
jonzhang708 2829a4f
fix
jonzhang708 5a97c56
fix
jonzhang708 2234604
add new code
jonzhang708 3b9f0e4
fix
jonzhang708 3ec5aea
fix
jonzhang708 e9600ec
opt handleGetLastBlockNumber,when chains is empty ,return all chain's…
jonzhang708 161af41
fix
jonzhang708 217fde6
fix bug
jonzhang708 e84e78b
opt code
jonzhang708 090cc04
opt code
jonzhang708 e452cfb
fix bug
jonzhang708 338a5d9
add new api
jonzhang708 eb9c36c
add catch for txs
jonzhang708 4709c5c
new code
jonzhang708 9b6614b
change api name
jonzhang708 e9834d2
new cdoe
jonzhang708 d03215e
fix bug
jonzhang708 02303bb
add log
jonzhang708 c2511a3
new api
jonzhang708 c931668
opt code
jonzhang708 dc6d040
fix bug
jonzhang708 9a21ec5
add new code
jonzhang708 cac9ec6
add search
SeriousVv 0494483
Merge remote-tracking branch 'origin/main'
SeriousVv c07749e
add search
SeriousVv a8e2106
add search
SeriousVv 926db50
add search
SeriousVv d6906a2
add search
SeriousVv 2b56095
add search
SeriousVv 2c0b322
add search
SeriousVv 4074592
add search
SeriousVv 510b46d
add search
SeriousVv 4068630
add search
SeriousVv a9ec4f6
add search
SeriousVv 45e8b52
add search
SeriousVv 1222439
add chain id
jonzhang708 3f54b5d
add search
SeriousVv 077fe48
fix
jonzhang708 e5d36b8
add search
SeriousVv e84f962
add eths
jonzhang708 a87eda5
Merge branch 'main' of github.com:bradzhang717/indexer into main
jonzhang708 2dc7036
tx hash to varbinary
jonzhang708 9ead7c0
add field
jonzhang708 a395b9a
merge v1 to v2
jonzhang708 9cd2698
opt code
jonzhang708 861af68
add .
jonzhang708 4d170f7
change
jonzhang708 5957db1
new code
jonzhang708 904e919
change api name
jonzhang708 b9848a4
opt code
jonzhang708 02f6637
fix
jonzhang708 0a14965
add new method
jonzhang708 3b67111
add new code
jonzhang708 bf02775
fix
jonzhang708 6b62be7
api
jonzhang708 7e92a21
fix api json file
jonzhang708 e1a28ed
new code
jonzhang708 ada1817
fix bug
jonzhang708 f076632
new code
jonzhang708 0baf1c1
new code
jonzhang708 3d3ea19
add log
jonzhang708 0b3b01b
opti api doc
SeriousVv b92b14c
add search
SeriousVv aa33996
add search
SeriousVv 496232e
add task
jonzhang708 4ecc50b
add task
jonzhang708 f127fdc
task
jonzhang708 2fb4bfe
new code
jonzhang708 a0a8de8
opt code
jonzhang708 07346c1
new code
jonzhang708 decd41b
fix code
jonzhang708 79d9b61
add new code
jonzhang708 ed7da19
add env
jonzhang708 b5f18b2
add sql migration file
jonzhang708 4815077
opt read config file logic
jonzhang708 fdbd1fc
update readme doc
jonzhang708 107b0db
add shorthand cmd
jonzhang708 635a7e7
opt json rpc config file
jonzhang708 d9c9e77
delete func
jonzhang708 4b40a0e
add gitignore
jonzhang708 3d8961c
config file
jonzhang708 255bc37
max data length
jonzhang708 2478def
max data length
jonzhang708 e7b03d1
max data length
jonzhang708 27854d9
add search
SeriousVv 67e83a1
Merge remote-tracking branch 'origin/main'
SeriousVv 79e7ccc
code style
jonzhang708 357f4dc
code style
jonzhang708 beca3bf
opt code
jonzhang708 ceecac7
add search
SeriousVv 22a777f
opt code
jonzhang708 7854b09
add search
SeriousVv 48e4c0c
opt code
jonzhang708 61a58c8
opt code
jonzhang708 f7d7b71
opt code
jonzhang708 362365f
opt code
jonzhang708 f090821
merge code
jonzhang708 0d03239
add migrate sql file
jonzhang708 ec6fbea
task
jonzhang708 aa47cf4
add all chain & chain stat
SeriousVv 145d77d
add all chain & chain stat
SeriousVv a8a5607
merge sql file
jonzhang708 dea3624
Merge branch 'main' of github.com:bradzhang717/indexer into main
jonzhang708 73b009e
add all chain & chain stat
SeriousVv f19694a
Merge branch 'main' of github.com:bradzhang717/indexer into main
jonzhang708 92faee8
add all chain & chain stat
SeriousVv 4f73558
remove task from indexer
jonzhang708 f5349dd
update sql file
jonzhang708 64885e0
add all chain & chain stat
SeriousVv 58db4d2
Merge remote-tracking branch 'origin/main'
SeriousVv a705244
rename struct name to RpcConfig
jonzhang708 ca296ae
Merge pull request #1 from bradzhang717/main
bradzhang717 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,4 @@ | |
"enabled": false, | ||
"listen": ":6060" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Use | ||
tap_indexer; | ||
-- chain statics by hour table --------- | ||
CREATE TABLE `chain_stats_hour` | ||
( | ||
`id` int unsigned NOT NULL AUTO_INCREMENT, | ||
`chain` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT 'chain name', | ||
`date_hour` int unsigned NOT NULL COMMENT 'date_hour', | ||
`address_count` int unsigned NOT NULL COMMENT 'address_count', | ||
`address_last_id` bigint unsigned NOT NULL COMMENT 'address_last_id', | ||
`inscriptions_count` int unsigned NOT NULL COMMENT 'inscriptions_count', | ||
`balance_sum` DECIMAL(38, 18) NOT NULL COMMENT 'balance_sum', | ||
`balance_last_id` bigint unsigned NOT NULL COMMENT 'balance_last_id', | ||
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `uqx_chain_date_hour` (`chain`, `date_hour`) | ||
) ENGINE = InnoDB | ||
DEFAULT CHARSET = utf8mb4 | ||
COLLATE = utf8mb4_general_ci; | ||
|
||
-- chain info --------- | ||
CREATE TABLE `chain_info` | ||
( | ||
`id` int unsigned NOT NULL AUTO_INCREMENT, | ||
`chain_id` int unsigned NOT NULL COMMENT 'chain id', | ||
`chain` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT 'inner chain name', | ||
`outer_chain` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT 'outer chain name', | ||
`name` varchar(32) COLLATE utf8mb4_general_ci NOT NULL COMMENT 'name', | ||
`logo` varchar(1024) COLLATE utf8mb4_general_ci NOT NULL COMMENT 'logo url', | ||
`network_id` int unsigned NOT NULL COMMENT 'network id', | ||
`ext` varchar(4098) NOT NUll COMMENT 'ext', | ||
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `uqx_chain_id_chain_name` (`chain_id`, `chain`, `name`) | ||
) ENGINE = InnoDB | ||
DEFAULT CHARSET = utf8mb4 | ||
COLLATE = utf8mb4_general_ci; | ||
|
||
INSERT INTO chain_info (chain_id, chain, outer_chain, name, logo, network_id,ext)VALUES (1, 'eth', 'eth', 'Ethereum', '', 1, ''); | ||
INSERT INTO chain_info (chain_id, chain, outer_chain, name, logo, network_id,ext)VALUES (43114, 'avalanche', 'avax', 'Avalanche', '', 43114, ''); | ||
INSERT INTO chain_info (chain_id, chain, outer_chain, name, logo, network_id,ext)VALUES (42161, 'arbitrum', 'ETH', 'Arbitrum One', '', 42161, ''); | ||
INSERT INTO chain_info (chain_id, chain, outer_chain, name, logo, network_id,ext)VALUES (56, 'bsc', 'BSC', 'BNB Smart Chain Mainnet', '', 56, ''); | ||
INSERT INTO chain_info (chain_id, chain, outer_chain, name, logo, network_id,ext)VALUES (250, 'fantom', 'FTM', 'Fantom Opera', '', 250, ''); | ||
INSERT INTO chain_info (chain_id, chain, outer_chain, name, logo, network_id,ext)VALUES (137, 'polygon', 'Polygon', 'Polygon Mainnet', '', 137, ''); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
Use | ||
tap_indexer; | ||
|
||
CREATE INDEX idx_tx_hash ON balance_txn (tx_hash(12)); | ||
ALTER TABLE txs MODIFY COLUMN tx_hash VARBINARY(128); | ||
ALTER TABLE address_txs MODIFY COLUMN tx_hash VARBINARY(128); | ||
ALTER TABLE balance_txn MODIFY COLUMN tx_hash VARBINARY(128); | ||
ALTER TABLE address_txs ADD related_address varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL | ||
COMMENT 'related address'; | ||
ALTER TABLE block ADD chain_id BIGINT NOT NULL DEFAULT 0 COMMENT "chain id"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JSONRPC is correct, JsonRcp is incorrect