-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix nginx config. * Docs - Build Tab * Moving things around * moving some more things around * moving more things around * messing with tokens * moving and shuffling some files around * moving some more things from the most recent `main` commits * add a TODO about re-setting broken links configs * shifting around token things * update token interface to v20.5.0 * Adjustments * start on fixing the broken linkies * link extravaganza * links * links * content updates * content updates and formatting * homepage * redirects * fix some broken links in asset issuing tutorial * fix learn URL on index page * moving and shuffling build/token redirects * rename dapp frontend filename * adjusting/tweaking some older redirects * links * add a couple more redirect changes * specify the next/prev pagination items since we moved create frontend * /docs content * Moving assets and tokens * links * use mdx links in docs/README.mdx * misc fixes in stellar.toml info page * remove unnecessary heading in tokens quickstart page * shuffle and reorg sidebar declarations (no affect on actual docs) * expand smart contracts section in build sidebar * add some frontmatter config to docs/README.mdx * re-adding redirects that were overwritten --------- Co-authored-by: overcat <[email protected]> Co-authored-by: Elliot Voris <[email protected]>
- Loading branch information
1 parent
6d57f4e
commit 3b903a4
Showing
203 changed files
with
561 additions
and
502 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,100 +1,35 @@ | ||
--- | ||
title: Introduction | ||
sidebar_position: 0 | ||
title: Stellar Developer Docs | ||
displayed_sidebar: build | ||
hide_table_of_contents: true | ||
--- | ||
|
||
import { CodeExample } from "@site/src/components/CodeExample"; | ||
## Navigating the docs | ||
|
||
This section walks you through building on Stellar without smart contracts. Learn basic Stellar functions such as creating accounts and making payments, how to issue assets on the network, how to build an application with the JavaScript SDK, Wallet SDK, and more. | ||
### [Build](/docs/build/README.mdx) | ||
|
||
## Fast Track | ||
Contains tutorials and how-to guides for writing smart contracts, building applications, interacting with the network, and more. | ||
|
||
Issue your first asset on the Stellar network in **one, single transaction**! | ||
### [Learn](/docs/learn/fundamentals/README.mdx) | ||
|
||
<CodeExample> | ||
Find all informational and conceptual content here. Learn about Stellar fundamentals like how accounts and transactions function, dive deeper into the functionality of each operation, discover how fees work, and more. | ||
|
||
```js | ||
const { | ||
Keypair, | ||
Horizon, | ||
TransactionBuilder, | ||
Networks, | ||
Operation, | ||
Asset, | ||
BASE_FEE, | ||
} = require("@stellar/stellar-sdk"); | ||
### [Tokens](/docs/tokens/README.mdx) | ||
|
||
// Don't forget to fund these accounts, somehow. Have you met Friendbot? | ||
// https://developers.stellar.org/docs/tutorials/create-account#create-account | ||
const issuerKeypair = Keypair.random(); | ||
const destinationKeypair = Keypair.random(); | ||
Information on how to issue assets on the Stellar network and create custom smart contract tokens. | ||
|
||
const server = new Horizon.Server("https://horizon-testnet.stellar.org"); | ||
const account = await server.loadAccount(issuerKeypair.publicKey()); | ||
const abcAsset = new Asset("ABC", issuerKeypair.publicKey()); | ||
### [Data](/docs/data/README.mdx) | ||
|
||
const transaction = new TransactionBuilder(account, { | ||
fee: BASE_FEE, | ||
networkPassphrase: Networks.TESTNET, | ||
}) | ||
.addOperation( | ||
Operation.changeTrust({ | ||
asset: abcAsset, | ||
source: destinationKeypair, | ||
}), | ||
) | ||
.addOperation( | ||
Operation.payment({ | ||
destination: destinationKeypair.publicKey(), | ||
asset: abcAsset, | ||
amount: "100", | ||
}), | ||
) | ||
.setTimeout(30) | ||
.build(); | ||
Discover various data availability options: RPC, Hubble, and Horizon. | ||
|
||
transaction.sign(issuerKeypair, destinationKeypair); | ||
const res = await server.submitTransaction(transaction); | ||
console.log(`Transaction response: ${res}`); | ||
``` | ||
### [Tools](/docs/tools/README.mdx) | ||
|
||
```python | ||
from stellar_sdk import Asset, Keypair, Network, Server, TransactionBuilder | ||
Learn about all the available tools at your disposal for building on, interacting with, or just watching the Stellar network. Also, find information on how to use the Anchor Platform or Stellar Disbursement Platform. | ||
|
||
## Don't forget to fund these accounts, somehow. Have you met Friendbot? | ||
## https://developers.stellar.org/docs/tutorials/create-account#create-account | ||
issuer_keypair = Keypair.random() | ||
destination_keypair = Keypair.random() | ||
### [Reference](/docs/reference/networks.mdx) | ||
|
||
server = Server('https://horizon-testnet.stellar.org') | ||
account = server.load_account(issuer_keypair.public_key) | ||
abc_asset = Asset('ABC', issuer_keypair.public_key) | ||
A quick look at useful information such as the various network data (for Mainnet, Testnet, and Futurenet), current software versions, and resource limitations and fees. | ||
|
||
transaction = ( | ||
TransactionBuilder( | ||
source_account=account, | ||
network_passphrase=Network.TESTNET_NETWORK_PASSPHRASE, | ||
base_fee=100, | ||
) | ||
.append_change_trust_op( | ||
asset=abc_asset, | ||
source=destination_keypair.public_key, | ||
) | ||
.append_payment_op( | ||
destination=destination_keypair.public_key, | ||
amount='100', | ||
asset=abc_asset, | ||
) | ||
.set_timeout(30) | ||
.build() | ||
) | ||
### [Validators](/docs/validators/README.mdx) | ||
|
||
transaction.sign(issuer_keypair) | ||
transaction.sign(destination_keypair) | ||
|
||
res = server.submit_transaction(transaction) | ||
print(f"Transaction response: {res}") | ||
``` | ||
|
||
</CodeExample> | ||
Everything you'll need to know if you want to run, operate, and maintain a core validator node on the Stellar network. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.