Skip to content
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

Srbaeza ai patch 2 #486

Open
wants to merge 1,375 commits into
base: docs_reorganization_EN
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1375 commits
Select commit Hold shift + click to select a range
61bc5b5
update proposal
Nov 12, 2018
0fc6248
update proposal
Nov 12, 2018
1b4124d
Merge pull request #314 from tronprotocol/fix_http
renchenchang Nov 12, 2018
88e2a0e
update proposal
Nov 12, 2018
8003127
Merge pull request #309 from jeancky/patch-1
renchenchang Nov 12, 2018
f5def0c
Merge pull request #311 from AlleniCode/patch-1
renchenchang Nov 12, 2018
6893cb6
Merge pull request #315 from tronprotocol/fix_http
renchenchang Nov 12, 2018
adc670e
Create viltis
nikaven Nov 14, 2018
90cba38
Update TRON_Accelerator.md
HaoqiZhao Nov 19, 2018
059c3e2
Update TRON_Accelerator.md
HaoqiZhao Nov 19, 2018
7389d93
Merge branch 'master' into feature/smartcontract_energy_http
Nov 20, 2018
72dba94
Merge branch 'feature/smartcontract_energy_http'
Nov 20, 2018
4593866
feat(api_asset_exchange): add new api
Nov 20, 2018
6a4ae63
Merge branch 'feature/update_token_v1'
Nov 20, 2018
e82709b
fix merge conflicts
nanfengpo Nov 21, 2018
f45b036
feat(getassetissuebyname): added note
Nov 21, 2018
dda5bb7
mdf tron-doc
nanfengpo Nov 22, 2018
8de689e
Merge branch 'odyssey3.2' of https://github.com/tronprotocol/Document…
nanfengpo Nov 22, 2018
ebff47e
mdf tron-doc
nanfengpo Nov 22, 2018
9241550
mdf tron-doc
nanfengpo Nov 22, 2018
422d1b4
Update 搭建自己的Dapp开发环境.md
tjchern Nov 22, 2018
456e403
Update Energy消耗机制.md
tjchern Nov 22, 2018
66761b4
Update Tron-doc.md
tjchern Nov 22, 2018
ce83e3f
feat(gettransactioncountbyblocknum): add and update api
Nov 24, 2018
8df444d
feat(solidity_api): add solidity api
Nov 26, 2018
4c8c789
add delegatedResource doc
nanfengpo Nov 27, 2018
14d9116
Merge branch 'odyssey3.2' of https://github.com/tronprotocol/Document…
nanfengpo Nov 27, 2018
b6a2ae6
mdf TRC10 token doc
nanfengpo Nov 27, 2018
c6de919
mdf http doc
nanfengpo Nov 27, 2018
ded04c1
mdf TRC10 token doc
nanfengpo Nov 27, 2018
3b108b7
mdf resource doc
nanfengpo Nov 29, 2018
3feec48
Update Tron-http.md
shydesky Nov 30, 2018
7373b07
update official full node
hyxc Dec 3, 2018
68d715e
Update Official_Public_Node.md
hyxc Dec 3, 2018
fad2771
Update Official_Public_Node.md
hyxc Dec 3, 2018
164d4a7
update official full node
hyxc Dec 3, 2018
feacfb1
Update Tron-http.md
shydesky Dec 4, 2018
26a44c1
minor change
nanfengpo Dec 14, 2018
71eea10
Create TRC10_IN_SMARTCONTRACT.MD
taihaofu Dec 20, 2018
fde9fb9
Update TRC10_IN_SMARTCONTRACT.MD
taihaofu Dec 20, 2018
0d0dd6c
Update 波场费用模型.md
huzhenyuan Dec 20, 2018
1751378
Update TRC10_IN_SMARTCONTRACT.MD
taihaofu Dec 20, 2018
bed2cf9
Update TRC10_IN_SMARTCONTRACT.MD
taihaofu Dec 21, 2018
1f1c43d
Update TRC10_IN_SMARTCONTRACT.MD
taihaofu Dec 21, 2018
c242310
Update 波场费用模型.md
huzhenyuan Dec 21, 2018
8844333
add fullnode and solidity node http doc
Dec 24, 2018
89abd6d
Create InternalTransaction.md
taihaofu Dec 24, 2018
52a28fe
Update InternalTransaction.md
taihaofu Dec 25, 2018
521eefb
Update TRC10_IN_SMARTCONTRACT.MD
taihaofu Dec 27, 2018
56b58ea
Update TRC10_IN_SMARTCONTRACT.MD
taihaofu Dec 27, 2018
a73ee88
Create Event_Decoding_in_transactionInfo.md
taihaofu Dec 28, 2018
df32213
Update Event_Decoding_in_transactionInfo.md
taihaofu Dec 28, 2018
c6b47e9
Merge branch 'master' of https://github.com/tronprotocol/Documentation
nanfengpo Jan 7, 2019
d919f0b
fix merge conflicts
nanfengpo Jan 7, 2019
91ed8de
Merge pull request #318 from tronprotocol/odyssey3.2
nanfengpo Jan 7, 2019
c727d45
Update 交易签名流程.md
BlueHoopor Jan 13, 2019
cc07044
Merge pull request #319 from tronprotocol/jeancky-patch-1
BlueHoopor Jan 13, 2019
c0b8b20
add multi signature doc
sean-liu55 Jan 14, 2019
59a4769
add tip url
sean-liu55 Jan 14, 2019
fbbaaba
add event subscribe document
Jan 22, 2019
399c99b
add mongodb deploy document
Jan 22, 2019
7ea6538
delete unuse document
Jan 22, 2019
2ed3125
Merge pull request #321 from tronprotocol/feature/addEventSubscribe
jiangyy0824 Jan 22, 2019
9e880a5
Update Tron-eventsubscribe.md
DorianRust Jan 22, 2019
3950a23
Update Tron-eventsubscribe.md
DorianRust Jan 22, 2019
6d988eb
Update Tron-eventsubscribe.md
jiangyy0824 Jan 22, 2019
bd0e621
Update Tron-eventsubscribe.md
jiangyy0824 Jan 22, 2019
cc8d427
Update Tron-eventsubscribe.md
jiangyy0824 Jan 22, 2019
2e0fe18
support English version readme for event subscribe
jiangyy0824 Jan 22, 2019
2dd3b89
Update Tron-eventsubscribe.md
DorianRust Jan 22, 2019
50dde15
Add description about function getTransactionsFromThis and getTransa…
houlei1017 Jan 22, 2019
0bc8a63
modify format
houlei1017 Jan 22, 2019
fbd8194
Update tron-eventquery.md
DorianRust Jan 22, 2019
484b39a
Update tron-eventquery.md
DorianRust Jan 22, 2019
f3e7a3c
Update tron-eventquery.md
DorianRust Jan 23, 2019
33d0f59
Update tron-eventquery.md
DorianRust Jan 23, 2019
8432fc5
Update tron-eventquery.md
DorianRust Jan 23, 2019
578365f
Update mongodb_deploy.md
DorianRust Jan 23, 2019
f2c3380
Update mongodb_deploy.md
DorianRust Jan 23, 2019
29dc149
Create TRC10_INTRODUCTION_FOR_EXCHANGES.md
taihaofu Jan 23, 2019
36c6b35
Update and rename TRC10_INTRODUCTION_FOR_EXCHANGES.md to TRC10_TRX_IN…
taihaofu Jan 23, 2019
5faacd7
Update and rename TRC10_TRX_INTRODUCTION_FOR_EXCHANGES.md to TRC10_TR…
taihaofu Jan 23, 2019
b052217
Update TRC10_TRX_TRANSFER_INTRODUCTION_FOR_EXCHANGES.md
taihaofu Jan 23, 2019
c41cca9
Update TRC10_TRX_TRANSFER_INTRODUCTION_FOR_EXCHANGES.md
taihaofu Jan 23, 2019
67a7593
Update TRC10_TRX_TRANSFER_INTRODUCTION_FOR_EXCHANGES.md
taihaofu Jan 23, 2019
8aa55c5
add instruction for trc10
sean-liu55 Jan 24, 2019
2dafe7d
Merge pull request #322 from tronprotocol/feature/add_instruction_of_…
sean-liu55 Jan 24, 2019
a92f17f
Update TRC10_TRX_TRANSFER_INTRODUCTION_FOR_EXCHANGES.md
taihaofu Jan 24, 2019
d2c3c5f
Update Tron-doc.md
wubin12 Jan 25, 2019
d29208e
add instruction for multiSign
sean-liu55 Jan 25, 2019
a3460ce
Merge pull request #316 from nikaven/patch-1
renchenchang Jan 25, 2019
b7bfa38
Update Tron-doc.md
wubin12 Jan 25, 2019
169cfbd
Merge pull request #323 from tronprotocol/wubin12-patch-1
wubin12 Jan 25, 2019
d07f91c
Update Tron-doc.md
wubin12 Jan 25, 2019
4787b9e
Merge pull request #324 from tronprotocol/wubin12-patch-2
wubin12 Jan 25, 2019
4c9556d
Update Tron-doc.md
wubin12 Jan 25, 2019
ff3a5f3
Merge pull request #325 from tronprotocol/wubin12-patch-3
wubin12 Jan 25, 2019
7f0d114
add instruction for transfer balance
sean-liu55 Jan 25, 2019
3f1f03c
minor change
sean-liu55 Jan 25, 2019
a64b0f2
Merge pull request #326 from tronprotocol/feature/modify_instruction_…
sean-liu55 Jan 25, 2019
24af509
modify multiSign
sean-liu55 Jan 25, 2019
33450de
minor change
sean-liu55 Jan 25, 2019
e094ccb
add instruction for exchange
sean-liu55 Jan 25, 2019
783413e
minor change
sean-liu55 Jan 25, 2019
63b3d3a
Merge pull request #327 from tronprotocol/feature/modify_instruction_…
sean-liu55 Jan 25, 2019
6e89bdf
add special instruction
sean-liu55 Jan 25, 2019
b89e262
Merge pull request #328 from tronprotocol/feature/modify_instruction_…
sean-liu55 Jan 25, 2019
059b980
change the define of token_name
sean-liu55 Jan 25, 2019
796b466
Merge pull request #329 from tronprotocol/feature/modify_instruction_…
sean-liu55 Jan 25, 2019
d013d46
Update Tron-http.md
zergweak Jan 28, 2019
c289b69
Update 波场钱包RPC-API.md
zergweak Jan 28, 2019
15f7b5c
add instruction for delegateResource
sean-liu55 Jan 28, 2019
6d3a0fe
Merge branch 'master' into feature/add_instruction_for_delegateResource
sean-liu55 Jan 28, 2019
633b5e6
minor change
sean-liu55 Jan 28, 2019
3331b74
Merge pull request #331 from tronprotocol/feature/add_instruction_for…
sean-liu55 Jan 28, 2019
2e1e20b
minor change
sean-liu55 Jan 28, 2019
ebd9014
modify index
sean-liu55 Jan 28, 2019
710ca08
Merge pull request #332 from tronprotocol/feature/add_instruction_for…
sean-liu55 Jan 28, 2019
4930701
minor change
sean-liu55 Jan 28, 2019
a5118f4
Merge branch 'master' into feature/mulSign
sean-liu55 Jan 28, 2019
c0cf472
fix format error
sean-liu55 Jan 28, 2019
ad03a68
Add a note
sean-liu55 Jan 28, 2019
9a65913
Merge pull request #333 from tronprotocol/feature/mulSign
sean-liu55 Jan 28, 2019
2d17e64
modify format
sean-liu55 Jan 28, 2019
3a51cd6
Merge pull request #334 from tronprotocol/feature/mulSign
sean-liu55 Jan 28, 2019
347eb9f
modify format
sean-liu55 Jan 28, 2019
e831265
Update 冻结与投票.md
sean-liu55 Jan 28, 2019
fdb8a1b
Merge pull request #335 from tronprotocol/feature/mulSign
sean-liu55 Jan 28, 2019
ad2bc5f
Update Tron-http.md
zergweak Jan 29, 2019
5a42073
Update Tron-http.md
zergweak Jan 29, 2019
572814c
Update Tron-http.md
zergweak Jan 29, 2019
e7e2c31
Create TRC20_Token_Example.sol
huzhenyuan Feb 13, 2019
3913812
Update TRC20_Token_Example.sol
huzhenyuan Feb 13, 2019
c9aaad6
add multiSignFee
sean-liu55 Feb 19, 2019
70b4dd1
Merge pull request #339 from tronprotocol/feature/multi-sign-fee
sean-liu55 Feb 19, 2019
0304014
add demo for multiSign
sean-liu55 Feb 26, 2019
28670b8
Merge pull request #340 from tronprotocol/feature/multi-sign-fee
sean-liu55 Feb 26, 2019
1b50e08
Update Tron-doc.md
DorianRust Feb 26, 2019
d0e0b48
Update 波场费用模型.md
DorianRust Feb 26, 2019
9de2b1c
Update 虚拟机内置函数.md
taihaofu Feb 26, 2019
6788909
Update 虚拟机内置函数.md
taihaofu Feb 26, 2019
4ee8f6d
add proposal instruction
sean-liu55 Feb 26, 2019
4b32288
Merge pull request #341 from tronprotocol/feature/add-proposal-instru…
sean-liu55 Feb 26, 2019
342a465
change instruction for adaptiveEnergyLimit
sean-liu55 Feb 26, 2019
54f46c1
Merge pull request #342 from tronprotocol/feature/add-proposal-instru…
sean-liu55 Feb 26, 2019
4ec377d
fix version error
sean-liu55 Feb 27, 2019
7390d8e
Merge pull request #343 from tronprotocol/feature/version_instruction
sean-liu55 Feb 27, 2019
e8cba82
fix version error
sean-liu55 Feb 27, 2019
0a75348
Merge pull request #344 from tronprotocol/feature/version_instruction
sean-liu55 Feb 27, 2019
7433ea7
add http demo for updateAccountPermission
sean-liu55 Feb 27, 2019
339b040
接口信息重复,redundant
maxisacoder Feb 28, 2019
bebf386
Update TRC10_IN_SMARTCONTRACT.MD
taihaofu Feb 28, 2019
4b09695
Update TRC10_IN_SMARTCONTRACT.MD
taihaofu Feb 28, 2019
e2930c6
Update TRC10_IN_SMARTCONTRACT.MD
taihaofu Feb 28, 2019
aaa8ef6
Update Tron-eventsubscribe.md
DorianRust Mar 1, 2019
eaca4c4
Update Tron-eventsubscribe_CN.md
DorianRust Mar 1, 2019
397aaf4
Update Tron-eventsubscribe_CN.md
DorianRust Mar 1, 2019
3d39d3f
add instruction for updateAccountPermission
sean-liu55 Mar 1, 2019
c9b456d
Merge pull request #347 from tronprotocol/feature/add_instruction_for…
sean-liu55 Mar 1, 2019
63cf52f
add http and rpc instruction
sean-liu55 Mar 1, 2019
a2e6831
Merge pull request #348 from tronprotocol/feature/add_instruction_for…
sean-liu55 Mar 1, 2019
8ca8fce
description of event subscribe
jiangyy0824 Mar 5, 2019
9d062f0
Update Tron-eventsubscribe.md
jiangyy0824 Mar 5, 2019
a2e28d0
Update Tron-event_description.md
jiangyy0824 Mar 5, 2019
37cab02
Update Tron-event_description.md
jiangyy0824 Mar 5, 2019
45cc2f9
modify description of gettransactionsfromthis and gettransactionstothis
houlei1017 Mar 8, 2019
9f2bc5d
update Tron-http.md and RPC-API.md
houlei1017 Mar 8, 2019
723c5c4
update Tron-http.md and RPC-API.md
houlei1017 Mar 8, 2019
68af06b
update English document Tron-http.md
houlei1017 Mar 12, 2019
a01c4eb
Update TRON_Wallet_RPC-API.md
taihaofu Mar 18, 2019
435ab94
Update TRON_Wallet_RPC-API.md
taihaofu Mar 18, 2019
aeddc34
Update TRON_Wallet_RPC-API.md
taihaofu Mar 18, 2019
b72de8c
Update TRON_Wallet_RPC-API.md
taihaofu Mar 18, 2019
dceaf80
Update 波场钱包RPC-API.md
taihaofu Mar 18, 2019
44ac87d
Update 波场钱包RPC-API.md
taihaofu Mar 18, 2019
884903e
Update TRON_Wallet_RPC-API.md
taihaofu Mar 18, 2019
1ca7600
Update TRON_Wallet_RPC-API.md
taihaofu Mar 18, 2019
e8a7082
Update 波场钱包RPC-API.md
taihaofu Mar 18, 2019
747dbb0
Update 波场钱包RPC-API.md
taihaofu Mar 18, 2019
90773c1
Update 波场钱包RPC-API.md
taihaofu Mar 18, 2019
62fe7be
Update TRON_Wallet_RPC-API.md
taihaofu Mar 18, 2019
ed153cc
Update TRON_Wallet_RPC-API.md
taihaofu Mar 18, 2019
f7dd264
Update 多重签名.md
renchenchang Mar 21, 2019
bef1700
Update 多重签名.md
renchenchang Mar 21, 2019
9561914
add code demo for updating witness permission
sean-liu55 Mar 21, 2019
a7048f0
Merge pull request #351 from tronprotocol/feature/add_instruction_for…
sean-liu55 Mar 21, 2019
1269d45
Update Official_Public_Node.md
hyxc Mar 22, 2019
96974c1
Update Official_Public_Node.md
hyxc Mar 22, 2019
aa24291
Update Tron-http.md
hyxc Apr 4, 2019
1e38f12
add rocksdb
shydesky Apr 8, 2019
3963f51
figure src
shydesky Apr 8, 2019
7c0a5b3
Merge pull request #355 from tronprotocol/rocksdb
shydesky Apr 8, 2019
66a69bf
add rocksdb vs leveldb
shydesky Apr 8, 2019
8b86d6a
add rocksdb vs leveldb english
shydesky Apr 8, 2019
9248fdf
mdf rocksdb vs leveldb english
shydesky Apr 8, 2019
bcd2176
add rocksdb_tuning_parameters.png
shydesky Apr 8, 2019
c5a26a6
Merge pull request #356 from tronprotocol/rocksdb
shydesky Apr 8, 2019
ff79ebd
merge rocksdb: rocksdb vs leveldb
shydesky Apr 8, 2019
772d4bb
mdf format:new line
shydesky Apr 8, 2019
4dbbded
supplement usage of rocksdb
shydesky Apr 8, 2019
0c483e2
supplement usage of rocksdb
shydesky Apr 8, 2019
c066609
Update Rocksdb_vs_Leveldb.md
shydesky Apr 10, 2019
af5b82e
Update Rocksdb_vs_Leveldb.md
shydesky Apr 10, 2019
e59143f
Update Tron-doc.md
renchenchang Apr 11, 2019
a519f4b
Update tron-eventquery.md
DorianRust Apr 18, 2019
3b93a55
Update tron-eventquery.md
DorianRust Apr 18, 2019
5d4cbff
Update tron-eventquery.md
DorianRust May 8, 2019
b1912d9
Merge pull request #357 from tronprotocol/fix-http-url
DorianRust May 8, 2019
9ff9781
Update Solidity_and_Full_Node_Deployment_EN.md
DorianRust May 13, 2019
02e83c2
Update Solidity_and_Full_Node_Deployment_EN.md
DorianRust May 13, 2019
82a24af
Update Official_Public_Node.md
hyxc Jun 8, 2019
4ee29ed
Update Official_Public_Node.md
hyxc Jun 8, 2019
2e893ce
add mpc document initially
317787106 Jun 18, 2019
cc543ed
split mpc document into several parts
317787106 Jun 18, 2019
b642ce5
Update Official_Public_Node.md
hyxc Jun 24, 2019
ef202c9
Update Official_Public_Node.md
hyxc Jun 24, 2019
e638b50
update read.me
zk19862018 Jun 26, 2019
f01899c
repair some expression error.
317787106 Jul 5, 2019
4cfa8ad
Update 超级代表与委员会.md
ithinker1991 Jul 5, 2019
14547c2
add verify_transform step of mpc.
317787106 Jul 12, 2019
3e85de3
Update Official_Public_Node.md
hyxc Jul 24, 2019
5d36a28
Update Official_Public_Node.md
hyxc Jul 24, 2019
1fecd4b
Update Official_Public_Node.md
hyxc Aug 2, 2019
e27103c
Update Official_Public_Node.md
hyxc Aug 2, 2019
5f9f645
move mpc
317787106 Aug 7, 2019
0816dd3
Update Tron-http.md
shydesky Nov 4, 2019
5d9ea23
Update README.md
kevinLee2015 Dec 16, 2019
99a209c
Merge pull request #368 from kevinLee2015/patch-3
zk19862018 Dec 16, 2019
9c84c5b
Merge remote-tracking branch 'pr1/patch-2'
andelf Jan 13, 2020
0c9b8d7
docs(CN/tron-http): fix #345, #350
andelf Jan 14, 2020
10483d3
docs(README): deprecates this repo
andelf Jan 14, 2020
5e9e9ba
Update Official_Public_Node.md
hyxc Aug 28, 2020
fb7b879
Update Official_Public_Node.md
hyxc Aug 28, 2020
d9ebfee
Update the official fullnode info.
Feb 22, 2021
db0837c
Merge pull request #392 from Benson0224/master
Benson0224 Feb 22, 2021
f6648c9
Update Official_Public_Node.md
hyxc Jul 6, 2021
819017b
Update Official_Public_Node.md
hyxc Jul 6, 2021
f4f340f
Update Official_Public_Node.md
hyxc Nov 24, 2021
aa95c5d
Update Official_Public_Node.md
hyxc Nov 24, 2021
d60e95a
Update Official_Public_Node.md
hyxc Feb 9, 2022
697a879
Update Official_Public_Node.md
hyxc Feb 9, 2022
adb7aac
Update README.md
ethan1844 Mar 30, 2022
fd28825
Delete bug bounty activity
vivian1912 Jun 28, 2022
29bcdd8
Merge pull request #441 from vivian-kang/master
ethan1844 Jun 28, 2022
ab09d84
Update Official_Public_Node.md
vivian1912 Jun 7, 2023
6968927
Merge pull request #471 from vivian-kang/master
ethan1844 Jun 8, 2023
c1c0e99
Update README.md
srbaeza-ai Sep 29, 2023
8ab4c57
Create laravel.yml
srbaeza-ai Oct 10, 2023
be5daf7
Update README.md
srbaeza-ai Oct 10, 2023
dce7417
Update laravel.yml
srbaeza-ai Oct 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Laravel

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
laravel-tests:

runs-on: ubuntu-latest

steps:
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: '8.0'
- uses: actions/checkout@v3
- name: Copy .env
run: php -r "file_exs('.env') || copy('.env.example', '.env');"
- name: look but no touch
Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Generate key
run: php artisan key:generate
- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache
- name: Create Database
run: |
mkdir -p database
touch database/database.sqlite
- name: Execute tests (Unit and Feature tests) via PHPUnit
env:
DB_CONNECTION: sqlite
DB_DATABASE: database/database.sqlite
run: vendor/bin/phpunit

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@


> Trigger 类别

可支持订阅的Event类型:

- transactionTrigger: transaction事件,区块时触发
- blockTrigger: 区块事件,提交区块时触发
- contractLogTrigger: 智能合约日志
- contractEventTrigger:智能合约事件


> Filter定义

只针对智能合约日志、事件的订阅,具体包括如下字段:

fromBlock: 起始区块高度,可以设置为"", "earliest"或者具体的区块高度。
toBlock: 结束区块高度,可以设置为"","latest"或者具体的区块高度。
contractAddress:智能合约地址列表
contractTopics:智能合约主题列表
**注意**: 不支持历史数据查询。


> 交易Log

交易信息用TransactionLogTrigger表示,包括如下参数:

- transactionId, transaction哈希
- blockHash, 交易发生的区块hash
- blockNumber,交易发生的block number
- energyUsage, 能量使用
- energyFee,能量费用
- originEnergyUsage origin energy usage
- energyUsageTotal, total energy usage total


> 智能合约Log

智能合约日志对象用ContractLogTrigger表示,包括如下参数:

- transactionId, transaction id
- contractAddress: 合约地址
- callerAddress:合约调用者地址
- blockNumber: 交易所在的块号
- blockTimestamp: 交易所在块的打包时间
- contractTopics: Solidity 语言中 Log 能够输出的 topic 列表
- data: Solidity 语言中,Log 能够输出的 data
- removed,如果日志已被删除则为true,有效日志则为false


> 智能合约Event

- transactionId, transaction id
- contractAddress: 合约地址
- callerAddress:合约调用者地址
- blockNumber: 交易所在的块号
- blockTimestamp: 交易所在块的打包时间
- eventSignature: Event 的签名字符串
- topicMap: Solidity 语言中 Event 能够输出的 topic名称 => topic 值的映射
- data: Solidity 语言中, Event 能够输出的 data 字段
- removed,如果日志已被删除则为true,有效日志则为false


> Trigger触发

- 区块事件的触发,区块插入时创建blockTrigger
- 交易事件的触发,交易执行之前创建transactionTrigger
- 智能合约日志的触发,在合约执行并且解析之后创建contractLogTrigger
- 智能合约事件的触发,在合约执行并且解析之后创建contractEventTrigger


> Trigger发送

java-tron以异步方式将Trigger发送给插件,Trigger必须满足Filter的条件。

如下所示是一个Filter,Trigger的blockNumber必须在fromBlock与toBlock之间,contractAddresses必须是addressA,topics必须包括topicA,只有满足条件的Trigger才会被发送。

fromBlock: 0x1000000

toBlock: 0x1200000

contractAddresses: "addressA"

contractTopics: "TopicA"

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Tron event subscribe support
## 1. Background
TRON has implemented the event subscription mechanism to support developer community, we have finished the testing. The featured will be released on version 3.5 of Java-tron. Developers could start experiencing right now, although it's still in beta stage.
TRON has implemented the event subscription mechanism to support developer community, we have finished the testing. The featured has been released on version 3.5 of Java-tron, and developers could start experiencing now.
srbaeza-ai marked this conversation as resolved.
Show resolved Hide resolved


## 2. New features
Expand All @@ -11,12 +11,13 @@ TRON has implemented the event subscription mechanism to support developer commu
3. Event query service tron-eventquery, online Event query service provided. Developers can query trigger information in the last seven days through https, and the query address is https://api.tronex.io.

## 3. github project
- [java-tron](https://github.com/tronprotocol/java-tron) develop branch (Now it's still in 3.5 beta)
- [java-tron](https://github.com/tronprotocol/java-tron) master branch
- [eventplugin](https://github.com/tronprotocol/event-plugin) master branch
- [tron-eventquery](https://github.com/tronprotocol/tron-eventquery) master branch

## 4. event subscribe
- https://github.com/tronprotocol/TIPs/issues/12
- TIP: https://github.com/tronprotocol/TIPs/issues/12
- Description: https://github.com/tronprotocol/Documentation/blob/master/English_Documentation/TRON_Event_Subscribe/Tron-event_description.md

## 5. event plugin
- kafka plugin: https://github.com/tronprotocol/Documentation/blob/master/English_Documentation/TRON_Event_Subscribe/eventplugin_deploy.md
Expand Down
73 changes: 71 additions & 2 deletions English_Documentation/TRON_Event_Subscribe/tron-eventquery.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ limit: each page size, default is 25
sort: sort Field, default is sort by timeStamp descending order
start: start page, default is 1

Note: if developers wants to check whether this event is confirmed or not, they could check the blocknumber is small than the solidified block number(get from url https://api.tronex.io/blocks/latestblockNum). If it is smaller than block number, it is conformed

Example: https://api.tronex.io/events/confirmed?since=1544483426749&limit=1&start=1&sort=timeStamp
```
Expand All @@ -161,7 +160,7 @@ block: block number, block number >= block will be shown

Example: https://api.tronex.io/blocks?limit=1&sort=timeStamp&start=0&block=0
```
Function: get latest solidified block number
Function: get latest block number
srbaeza-ai marked this conversation as resolved.
Show resolved Hide resolved
```
subpath: $baseUrl/blocks/latestSolidifiedBlockNumber

Expand All @@ -170,3 +169,73 @@ none

Example: https://api.tronex.io/blocks/latestSolidifiedBlockNumber
```
Function: get contract log list
```
subpath: $baseUrl/contractlogs

parameters
limit: each page size, default is 25
sort: sort Field, default is sort by timeStamp descending order
start: start page, default is 1
block: block number, block number >= block will be shown
srbaeza-ai marked this conversation as resolved.
Show resolved Hide resolved

Example: https://api.tronex.io/contractlogs
```
Function: get contract log list based on transactionId
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Function: get contract log list based on transactionId
Function: get contract log list based on transactionId

```
subpath: $baseUrl/contractlogs/transaction/{transactionId}

parameters
transactionId

Example: https://api.tronex.io/contractlogs/transaction/{transactionId}
```
Function: post abi string and get contract log list based on transactionId(release on 3.6)
```
subpath: $baseUrl/contract/transaction/{transactionId}

parameters
transactionId
body:
abi: user self upload abi

Example: https://api.tronex.io/contract/transaction/{transactionId}
```
Function: get contract log list based on contractAddress
```
subpath: $baseUrl/contractlogs/contract/{contractAddress}

parameters
contractAddress

Example: https://api.tronex.io/contractlogs/contract/{contractAddress}
```
Function: post abi string and get contract log list based on contractAddress(release on 3.6)
```
subpath: $baseUrl/contract/contractAddress/{contractAddress}

parameters
contractAddress
abi: user self upload abi

Example: https://api.tronex.io/contract/contractAddress/{contractAddress}
```
Function: get contract log list based on uniqueId
```
subpath: $baseUrl/contractlogs/uniqueId/{uniqueId}

parameters
uniqueId

Example: https://api.tronex.io/contractlogs/uniqueId/{uniqueId}
```
Function: post abi string and get contract log list based on uniqueId(release on 3.6)
```
subpath: $baseUrl/contract/uniqueId/{uniqueId}

parameters
uniqueId
abi: user self upload abi

Example: https://api.tronex.io/contract/uniqueId/{uniqueId}
```
26 changes: 25 additions & 1 deletion English_Documentation/TRON_Protocol/TRON_Wallet_RPC-API.md
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ EasyTransferResponse: the transaction of a transfer and the result of broadcasti

## 37. Generate address and private key
37.1 Interface statement
rpc GenerateAddress (EmptyMessage) returns (AddressPrKeyPairMessage) {};
rpc DeployContract (CreateSmartContract) returns (TransactionExtention) {};\
37.2 Nodes
FullNode and SolidityNode.
37.3 Parameters
Expand All @@ -464,3 +464,27 @@ EmptyMessage: null.
AddressPrKeyPairMessage: generate address and private key.
37.5 Function
Address and private key generation. Please invoke this API only on a trusted offline node to prevent private key leakage.

//todo:translate https://github.com/tronprotocol/Documentation/edit/master/中文文档/波场协议/波场钱包RPC-API.md

## 80. Deploy a smart contract
80.1 Interface statement
rpc DeployContract (CreateSmartContract) returns (TransactionExtention) {};\
80.2 Nodes
FullNode.
80.3 Parameters
CreateSmartContract: message type for creating a new smart contract, including owner_address(transaction sender address), new_contract(a SmartContract Object), call_token_value(trc10), token_id(trc10) \
>new_contract: origin_address(contract deployer address), contract_address, abi, bytecode, call_value(trx), consume_user_resource_percent(user energy consume percentage), name(contract name), origin_energy_limit(the energy limit developer willing to afford for a trigger operation).

80.4 Returns
TransactionExtention: a message type contains transaction, transaction_id, constant_result and on-block result.

## 81. Trigger a smart contract
81.1 Interface statement
rpc TriggerContract (TriggerSmartContract) returns (TransactionExtention) {};\
81.2 Nodes
FullNode.
81.3 Parameters
TriggerSmartContract: message type for triggering an existing contract, including owner_address(transaction sender address), contract_address, call_value(trx), data(triggered function signature and parameter), call_token_value(trc10), token_id(trc10)\
81.4 Returns
TransactionExtention: a message type contains transaction, transaction_id, constant_result and on-block result.
Original file line number Diff line number Diff line change
Expand Up @@ -84,23 +84,28 @@ contract transferTokenContract {

- **IMPORTANT**: tokenId valide value must > 1000000. The best-practice would be use a require function to guarantee its correctness.

- **IMPORTANT**: tokenId = 0 (Only in this function) is preserved here, which is presented TRX. This is a experimental feature, we **DO NOT** recommend to use this logic to transfer TRX at least for now for your safety. Please use the widely used transfer() function to send TRX.
- @deprecated **IMPORTANT**: tokenId = 0 (Only in this function) is preserved here, which is presented TRX. This is a experimental feature, we **DO NOT** recommend to use this logic to transfer TRX at least for now for your safety. Please use the widely used transfer() function to send TRX.

- In Odyssey_v3.5 tokenId is NOT allowed to be 0 in this function. So, the function is only related to trc10 token.

## 3.4 address.tokenBalance(trcToken) returns(uint256 tokenAmount)native function

- Odyssey_v3.2 defined a new tokenBalance function for TRC10 token balance querying.

- An address type variable can invoke this native function which returns the amount of target token owned by the account with the address.

- **IMPORTANT**: Query tokenBalance(0) doesn't represent trx balance, instead it will return 0.
- @deprecated **IMPORTANT**: Query tokenBalance(0) doesn't represent trx balance, instead it will return 0.

- In Odyssey_v3.5 tokenId is NOT allowed to be 0 in tokenBalance(trcToken) function.

## 3.5 msg.tokenvalue & msg.tokenid

- msg.tokenvalue, represent the tokenvalue in current msg call, default 0.

- msg.tokenid, represent the token id in current msg call, default 0.

- **IMPORTANT**: msg.tokenid = 0 doesn't represent trx in current version.
- **IMPORTANT**: msg.tokenid = 0 is just a default value, means no token transferring.


# 4 solidity compiler

Expand Down
72 changes: 3 additions & 69 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,70 +1,4 @@
# Documentation
#### This documentation project is DEPRECATED, if you want to update or add a new documentation, please go to our new documentation project:
- [documentation-en](https://github.com/tronprotocol/documentation-en) (https://github.com/tronprotocol/documentation-en)
srbaeza-ai marked this conversation as resolved.
Show resolved Hide resolved
-github.com/tronprotocol/documentation-en [documentation-zh](https://github.com/tronprotocol/documentation-zh)

#### Please visit the new [TRON Developers Hub](https://developers.tron.network/) for detailed guides, interactive APIs, and much more!

# Documentation Guide

+ If you want to know more about the recent progress of the TRON project, please check out [TRON Introduction](https://github.com/tronprotocol/Documentation/tree/master/English_Documentation/TRON_Introduction).
+ If you want to know more about the protocol documentation, please check out [TRON Protocol](https://github.com/tronprotocol/Documentation/tree/master/English_Documentation/TRON_Protocol).
+ If you want to know more about the SR information, vote, or token creation, please check out [TRON blockchain explorer](https://github.com/tronprotocol/Documentation/tree/master/English_Documentation/TRON_Blockchain_Explorer).
+ If you want to know more about TRON Wallet, please check out [Android Wallet](https://github.com/tronprotocol/Documentation/blob/master/English_Documentation/Android_Wallet/Guide_to_Android_Wallet.md).
+ If you want to know more about the programming contest, please check out [TRON programming contest](https://github.com/tronprotocol/Documentation/tree/master/English_Documentation/TRON_Programming_Contest).
+ If you want to know more about the TRX migration, please check out [TRX](https://github.com/tronprotocol/Documentation/tree/master/TRX).
+ For more information about Virtual Machine, please check out [TVM](https://github.com/tronprotocol/Documentation/blob/master/English_Documentation/TRON_Virtual_Machine/Virtual_Machine_Introduction.md).
+ For latest process of TRON, please follow the [TRON documentation](https://github.com/tronprotocol/Documentation/tree/master/English_Documentation).

# Super Representative Guide

## What is a Super Representative?

To learn about Super Representatives, please read [What is a Super Representative](https://github.com/tronprotocol/Documentation/blob/master/English_Documentation/TRON_Blockchain_Explorer/What_is_a_Super_Representative.md).

## How to become a Super Representative

**Step1.**

First of all, you need to run a Super Representative. For more information about running a Super Representative, please visit [java-tron Guide](https://github.com/tronprotocol/java-tron/blob/develop/README.md) and take *Running a local node and connecting to the public testnet* -> *Running a Super Node* as reference.

**Step2.**

Visit our blockchain explorer to apply for Super Representative, please take [Running a Super Representative](https://github.com/tronprotocol/Documentation/blob/master/English_Documentation/TRON_Blockchain_Explorer_Introduction/How_to_run_a_Super_Representative.md).

**Step3.**

After approval voting, the top 27 Super Representatives by total approval will be selected. The voting of Super Representatives is held once every 6 hours. Please read [How to vote](https://github.com/ybhgenius/Documentation/blob/master/English_Documentation/TRON_Blockchain_Explorer/Guide_to_voting_on_the_new_blockchain_explorer.md).




# 文档

# 文档指引

+ 如果你想了解波场的发展进程以及最新动态,请查看[波场介绍](https://github.com/tronprotocol/Documentation/tree/master/中文文档/波场介绍)相关文档。
+ 如果你想了解波场的相关技术协议,请查看[波场协议](https://github.com/tronprotocol/Documentation/tree/master/中文文档/波场协议)相关文档。
+ 如果你想了解有关超级节点、投票和发行资产的相关信息,请查看[波场区块链浏览器](https://github.com/tronprotocol/Documentation/tree/master/中文文档/波场区块链浏览器介绍)。
+ 如果你想了解关于波场钱包的相关信息,请查看[Android钱包使用指导](https://github.com/tronprotocol/Documentation/blob/master/中文文档/Android钱包/Android钱包使用指导.md)。
+ 如果你想了解编程大赛,请查看[波场编程大赛](https://github.com/tronprotocol/Documentation/tree/master/中文文档/波场编程大赛)。
+ 如果你想了解波场TRX迁移,请查看[TRX](https://github.com/tronprotocol/Documentation/tree/master/TRX)相关文档。
+ 对于波场虚拟机的更多信息,请查看[TVM](https://github.com/tronprotocol/Documentation/blob/master/English_Documentation/TRON_Virtual_Machine/Virtual_Machine_Introduction.md)相关文档。
+ 对于波场发展的最新进展,请时刻关注[波场文档](https://github.com/tronprotocol/Documentation/tree/master/中文文档)。

# 超级代表文档指引

## 什么是超级代表?

请参见:[超级代表介绍](https://github.com/tronprotocol/Documentation/blob/master/中文文档/波场区块链浏览器介绍/什么是超级代表.md)。

## 如何申请成为一个超级代表?

**Step1.**

首先,你需要运行一个超级代表节点。如何运行超级代表节点请参见[java-tron 指引](https://github.com/tronprotocol/java-tron/blob/develop/README.md)里的*Running a local node and connecting to the public testnet* -> *Running a Super Node*。

**Step2.**

对于如何使用波场区块链浏览器,请参见[波场区块链浏览器使用指南](https://github.com/tronprotocol/Documentation/blob/master/中文文档/波场区块链浏览器介绍/区块链浏览器使用指南.md)。

## 常见问题

有关超级代表、超级代表节点运行、申请、竞选的相关问题请查看[关于SR的常见问题解答](https://github.com/tronprotocol/Documentation/blob/master/中文文档/常见问题解答/关于SR的常见问题解答.md)。
Loading