Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions docs/dapp/getting-started.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This document will guide you to connect your DApp with the TronLink application
}
```

After getting the tronWeb instance, you can perform on-chain interactive actions such as signing transfers, multi-signature transactions, and messages. For use cases of the tronWeb instance, please refer to the following document: <https://tronweb.network/docu/docs/intro/>[](https://tronweb.network/docu/docs/intro/)
After getting the tronWeb instance, you can perform on-chain interactive actions such as signing transfers, multi-signature transactions, and messages. For use cases of the tronWeb instance, please refer to the following document: <a class="tooltip" href="https://tronweb.network/docu/docs/intro" data-tooltip="https://tronweb.network/docu/docs/intro">https://tronweb.network/docu/docs/intro</a>

Reference: <https://developers.tron.network/docs/introduction>[](https://developers.tron.network/docs/introduction)
Reference: <a class="tooltip" href="https://developers.tron.network/docs/introduction" data-tooltip="https://developers.tron.network/docs/introduction">https://developers.tron.network/docs/introduction</a>

4 changes: 2 additions & 2 deletions docs/dapp/getting-started.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@

获取 tronWeb 实例后,即可进行 转账签名,多签签名,消息签名等链上交互动作。

具体 tronWeb 实例的使用,可参考以下文档:<https://tronweb.network/docu/docs/intro/>[](https://tronweb.network/docu/docs/intro/)
具体 tronWeb 实例的使用,可参考以下文档:<a class="tooltip" href="https://tronweb.network/docu/docs/intro" data-tooltip="https://tronweb.network/docu/docs/intro">https://tronweb.network/docu/docs/intro</a>

参考:<https://developers.tron.network/docs/introduction>[](https://developers.tron.network/docs/introduction)
参考:<a class="tooltip" href="https://developers.tron.network/docs/introduction" data-tooltip="https://developers.tron.network/docs/introduction">https://developers.tron.network/docs/introduction</a>
53 changes: 0 additions & 53 deletions docs/dapp/index.en.md

This file was deleted.

53 changes: 0 additions & 53 deletions docs/dapp/index.zh.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/dapp/stake2.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ For example:
transaction.__options = {"estimatedBandwidth": 1}
```

The specific calculation logic of estimatedEnergy and estimatedBandwidth can be found in the last chapter of the "[Stake 2.0 Adaptation FAQ](https://coredevs.medium.com/stake-2-0-adaption-faq-66bafdf53606)": "How to convert resource share to amount?"
The specific calculation logic of estimatedEnergy and estimatedBandwidth can be found in the last chapter of the "[<a class="tooltip" href="https://coredevs.medium.com/stake-2-0-adaption-faq-66bafdf53606" data-tooltip="https://coredevs.medium.com/stake-2-0-adaption-faq-66bafdf53606">Stake 2.0 Adaptation FAQ</a>](https://coredevs.medium.com/stake-2-0-adaption-faq-66bafdf53606)": "How to convert resource share to amount?"

4 changes: 1 addition & 3 deletions docs/dapp/stake2.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,4 @@ img {
transaction.__options = {"estimatedBandwidth": 1}
```

estimatedEnergy estimatedBandwidth 的具体计算逻辑见![image](../images/dapp_skake2.0_img_1.png)[Stake 2.0 Adaption FAQ](https://www.google.com/url?q=https://coredevs.medium.com/stake-2-0-adaption-faq-66bafdf53606&sa=D&source=editors&ust=1684151119972747&usg=AOvVaw0msvWulJZhW6xn5QU461cb) 最后一个章节:How to convert resource share to amount?


estimatedEnergy estimatedBandwidth 的具体计算逻辑见![image](../images/dapp_skake2.0_img_1.png)[<a class="tooltip" href="https://www.google.com/url?q=https://coredevs.medium.com/stake-2-0-adaption-faq-66bafdf53606&sa=D&source=editors&ust=1684151119972747&usg=AOvVaw0msvWulJZhW6xn5QU461cb" data-tooltip="https://www.google.com/url?q=https://coredevs.medium.com/stake-2-0-adaption-faq-66bafdf53606&sa=D&source=editors&ust=1684151119972747&usg=AOvVaw0msvWulJZhW6xn5QU461cb">Stake 2.0 Adaptation FAQ</a>](https://www.google.com/url?q=https://coredevs.medium.com/stake-2-0-adaption-faq-66bafdf53606&sa=D&source=editors&ust=1684151119972747&usg=AOvVaw0msvWulJZhW6xn5QU461cb) 最后一个章节:How to convert resource share to amount?
17 changes: 0 additions & 17 deletions docs/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,12 @@ Welcome to the TronLink Developer Documentation! TronLink is a decentralized wal

### TronLink App
- [Asset Management](mobile/asset-management) - Asset management features
- [Custom Tokens](mobile/asset-management/custom-tokens) - Custom token management
- [DeepLink](mobile/deeplink) - DeepLink integration
- [Open Wallet](mobile/deeplink/open-wallet) - Open wallet functionality
- [Open DApp](mobile/deeplink/open-dapp) - Open DApp functionality
- [Login by TronLink](mobile/deeplink/login-auth) - Login authorization functionality
- [Transfer](mobile/deeplink/transfer) - Transfer functionality
- [Sign Transaction](mobile/deeplink/transaction-signing) - Transaction signing functionality
- [Sign Message](mobile/deeplink/message-signing) - Message signing functionality
- [Result Code](mobile/deeplink/callback-codes) - Callback message codes
- [DApp Support](mobile/dapp-support) - DApp browser support
- [TronLink Integration](mobile/dapp-support/integrate-tronlink) - Integrate TronLink
- [DApp Explorer](mobile/dapp-support/dapp-browser) - DApp browser

### TronLink Wallet Extension
- [Request TronLink Extension](plugin-wallet/active-requests) - Active request TronLink plugin functions
- [Connect Website](plugin-wallet/active-requests/connect-website) - Connect website
- [Add Token](plugin-wallet/active-requests/add-token) - Add token
- [Receive messages from TronLink](plugin-wallet/passive-messages) - Passively receive messages from TronLink plugin
- [Account Change Message](plugin-wallet/passive-messages/account-change) - Account change message
- [Network Change Message](plugin-wallet/passive-messages/network-change) - Network change message
- [Successful connection message](plugin-wallet/passive-messages/connect-success) - Website connection success message
- [Disconnect website message](plugin-wallet/passive-messages/disconnect) - Disconnect website message
- [Messages to Be Deprecated](plugin-wallet/passive-messages/deprecated-messages) - Deprecated messages

### DApp
- [Start Developing](dapp/getting-started) - Quick start guide
Expand Down
17 changes: 0 additions & 17 deletions docs/index.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,12 @@

### 移动端
- [资产管理](mobile/asset-management) - 资产管理功能
- [自定义通证](mobile/asset-management/custom-tokens) - 自定义通证管理
- [DeepLink](mobile/deeplink) - DeepLink 集成
- [打开钱包](mobile/deeplink/open-wallet) - 打开钱包功能
- [打开DApp](mobile/deeplink/open-dapp) - 打开DApp功能
- [登陆授权](mobile/deeplink/login-auth) - 登陆授权功能
- [转账](mobile/deeplink/transfer) - 转账功能
- [交易签名](mobile/deeplink/transaction-signing) - 交易签名功能
- [消息签名](mobile/deeplink/message-signing) - 消息签名功能
- [回传消息码](mobile/deeplink/callback-codes) - 回传消息码
- [DApp 支持](mobile/dapp-support) - DApp 浏览器支持
- [集成TronLink](mobile/dapp-support/integrate-tronlink) - 集成TronLink
- [DApp浏览器](mobile/dapp-support/dapp-browser) - DApp浏览器

### 插件钱包
- [主动请求功能](plugin-wallet/active-requests) - 主动请求TronLink插件功能
- [连接网站](plugin-wallet/active-requests/connect-website) - 连接网站
- [添加Token](plugin-wallet/active-requests/add-token) - 添加Token
- [被动接收消息](plugin-wallet/passive-messages) - 被动接收TronLink插件的消息
- [账户改变消息](plugin-wallet/passive-messages/account-change) - 账户改变消息
- [网络改变消息](plugin-wallet/passive-messages/network-change) - 网络改变消息
- [连接网站成功消息](plugin-wallet/passive-messages/connect-success) - 连接网站成功消息
- [断开连接网站消息](plugin-wallet/passive-messages/disconnect) - 断开连接网站消息
- [即将废弃的消息](plugin-wallet/passive-messages/deprecated-messages) - 即将废弃的消息

### DApp
- [开始开发](dapp/getting-started) - 快速开始
Expand Down
14 changes: 14 additions & 0 deletions docs/javascripts/nav-toc.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,18 @@ document.addEventListener("DOMContentLoaded", function () {
console.error("tocLink not found");
}
}



const header = document.querySelector(".md-header__inner"); // 找到导航容器
if (header) {
const a1 = document.createElement("a");
a1.href = "https://www.tronlink.org/";
a1.target = "_blank";
a1.className = "md-header__link";
a1.style="font-size:14px";
a1.textContent = "Homepage";

header.appendChild(a1);
}
});
17 changes: 11 additions & 6 deletions docs/mobile/asset-management.en.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@

# Asset Management

<div style="display: flex; gap: 1rem; flex-wrap: wrap;">
## Custom Token

### What is Custom Token?

Users can manually add TRC-20 and TRC-721 assets that are not recorded as tokens on TronScan as custom tokens in TronLink, which helps users search and manage their token assets more easily.

### Add Custom Token

Add: Add tokens in TronLink App: Home --> My Assets --> Add Custom Token

<a class="card-link" href="custom-tokens">
<strong>Custom Token</strong> →
</a>
Possible limitations: Certain TronLink features, such as "transfer" and "approve," may be unavailable when custom tokens are added in TronLink. This is because certain ABI in the contract code (e.g., transfer, approve, etc.) are not identified. TronLink will notify users when such cases occur.

</div>
Synchronization with TronScan: If the custom token has already been recorded on TronScan, Tronlink will notify the user to synchronize token information with TronScan; once done, the custom token will adopt the corresponding token information on TronScan.
14 changes: 13 additions & 1 deletion docs/mobile/asset-management.zh.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@

# 资产管理

管理您的资产,并支持自定义通证


## 自定义通证

### **什么是自定义通证**

自定义通证功能可以让用户将部分未在 TronScan 录入为通证的 TRC20、TRC721 资产,在 TronLink 钱包中手动添加为自定义通证,从而帮助用户查找和管理该通证资产。

### **添加自定义通证**

添加:首页-->我的全部资产-->添加自定义通证

可能的限制:在 TronLink 钱包中添加为自定义通证后,部分合约可能会因为合约代码中缺少关键的 abi,如:transfer、approve 等,而导致相应的转账,授权等操作无法进行。TronLink 钱包会给出对应的提示。

与 Tronscan 同步:如果此自定义通证在 Tronscan 录入后,TronLink 钱包会提示与 Tronscan 同步,选择同步后,此自定义通证信息同步为 Tronscan 对应通证信息。
13 changes: 0 additions & 13 deletions docs/mobile/asset-management/custom-tokens.en.md

This file was deleted.

15 changes: 0 additions & 15 deletions docs/mobile/asset-management/custom-tokens.zh.md

This file was deleted.

33 changes: 24 additions & 9 deletions docs/mobile/dapp-support.en.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@

# DApp Support

<div style="display: flex; gap: 1rem; flex-wrap: wrap;">
## TronLink Integration

TronLink injects a version of TronWeb into the DApp that runs in TronLink's DApp Explorer. This enables the DApp to interact with TronLink DApps and the TRON network.

Details: [Go to DApp](../../dapp/getting-started.en.md)


## DApp Explorer

### Basic Function

The DApp Explorer allows Tron DApps to run and automatically injects tronWeb and TronLink objects.

### Extension

Tron DApp running in the DApp Explorer injects iTron objects automatically to offer customized App service.

##### Change screen orientation


<a class="card-link" href="integrate-tronlink">
<strong>TronLink Integration</strong> →
</a>
<a class="card-link" href="dapp-browser">
<strong>DApp Explorer</strong> →
</a>
```shell
// url: DApp page url
// screenModel: "1" -> vertical;"2" -> horizontal
void setScreenModel(String url, String screenModel)
```

</div>
24 changes: 24 additions & 0 deletions docs/mobile/dapp-support.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,27 @@
提供流畅的 DApp 浏览器,支持运行 TRON DApp。


## 集成TronLink

TronLink App 内置 DApp 浏览器,对于在其上运行的 TRON DApp,TronLink 会自动将 tronWeb 及 tronLink 对象注入到该 DApp。从而允许 DApp 与 TronLink App,以及TRON 网络交互。

详情:参考[DApp章节](../../dapp/getting-started.zh.md)

## Dapp 浏览器

### 基本功能

DApp 浏览器支持运行 TRON DApp,并自动注入 tronWeb 及 tronLink 对象

### 扩展

在 DApp 浏览器中运行的 Tron DApp,会自动注入 iTron 对象,并提供 App 端定制化功能

* 切换屏幕方向

```shell
// url: DApp page url
// screenModel: "1" -> 竖屏;"2" -> 横屏
public void setScreenModel(String url, String screenModel)
```

19 changes: 0 additions & 19 deletions docs/mobile/dapp-support/dapp-browser.en.md

This file was deleted.

Loading
Loading