-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
963c1ec
commit 0a8c7e9
Showing
7 changed files
with
31 additions
and
21 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
这是sway应用示例的首页。 | ||
基于 Sway 构建的各类 Dapp 的实战案例。 | ||
欢迎各位开发者贡献你的案例/教程 🎉,在我们的 Github 提交 PR 即可。 |
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
2 changes: 1 addition & 1 deletion
2
docs/typescript-sdk/index.md → docs/typescript-sdk/get-start/index.md
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# Provider | ||
|
||
[`Provider`](../../api/Account/Provider) 允许您连接到 Fuel 节点([_*本地*_](../../getting-started.md#connecting-to-a-local-node)或[_*外部*_](../../getting-started.md#connecting-to-the-testnet))并与其进行交互,封装了 SDK 中的常见客户端操作。这些操作包括查询区块链以获取网络、区块和与交易相关的信息(以及[更多](../../api/Account/Provider)),以及向区块链发送[交易](../transactions/index)。 | ||
[`Provider`](../../api/Account/Provider) 允许您连接到 Fuel 节点([_*本地*_](../../get-start/getting-started.md#connecting-to-a-local-node)或[_*外部*_](../../get-start/getting-started.md#connecting-to-the-testnet))并与其进行交互,封装了 SDK 中的常见客户端操作。这些操作包括查询区块链以获取网络、区块和与交易相关的信息(以及[更多](../../api/Account/Provider)),以及向区块链发送[交易](../transactions/index)。 | ||
|
||
所有与区块链交互的高级抽象(例如[`Wallet`](../wallets/index)、[`Contract`](../contracts/index)等)都通过 `Provider` 进行,因此它用于各种操作,如获取钱包余额、部署合约、查询其状态等。 | ||
|
||
<<< ../../docs-snippets/src/guide/provider/provider.test.ts#provider-definition{ts:line-numbers} | ||
|
||
您可以在[这里](querying-the-chain)找到更多关于 `Provider` 使用的示例。 | ||
您可以在[这里](querying-the-chain)找到更多关于 `Provider` 使用的示例。 |
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