Skip to content
This repository was archived by the owner on Aug 21, 2024. It is now read-only.

Commit 4d7baad

Browse files
Instruct users to checkout v0.0.4 tag for examples (#107)
1 parent 81afb7d commit 4d7baad

File tree

9 files changed

+30
-30
lines changed

9 files changed

+30
-30
lines changed

docs/examples/authorization.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ verifies an `Identifiers` signature before proceeding with the rest of the
88
function. In this example, data is stored under an `Identifier` after
99
authorization has been verified.
1010

11-
[authorization example]: https://github.com/stellar/soroban-examples/tree/main/authorization
11+
[authorization example]: https://github.com/stellar/soroban-examples/tree/v0.0.4/authorization
1212

1313
## Run the Example
1414

1515
First go through the [Setup] process to get your development environment
16-
configured, then clone the examples repository:
16+
configured, then clone the `v0.0.4` tag of `soroban-examples` repository:
1717

1818
[Setup]: ../getting-started/setup.mdx
1919

2020
```
21-
git clone https://github.com/stellar/soroban-examples
21+
git clone -b v0.0.4 https://github.com/stellar/soroban-examples
2222
```
2323

2424
To run the tests for the example, navigate to the `authorization` directory, and use `cargo test`.
@@ -125,7 +125,7 @@ impl ExampleContract {
125125
}
126126
```
127127

128-
Ref: https://github.com/stellar/soroban-examples/tree/main/authorization
128+
Ref: https://github.com/stellar/soroban-examples/tree/v0.0.4/authorization
129129

130130
## Authorization semantics
131131

docs/examples/cross-contract-call.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ tooling is still building out the tools to support these workflows. Feedback
1414
appreciated [here](https://github.com/stellar/rs-soroban-sdk/issues/new/choose).
1515
:::
1616

17-
[cross contract call example]: https://github.com/stellar/soroban-examples/tree/main/cross_contract_calls
17+
[cross contract call example]: https://github.com/stellar/soroban-examples/tree/v0.0.4/cross_contract_calls
1818

1919
## Run the Example
2020

2121
First go through the [Setup] process to get your development environment
22-
configured, then clone the examples repository:
22+
configured, then clone the `v0.0.4` tag of `soroban-examples` repository:
2323

2424
[Setup]: ../getting-started/setup.mdx
2525

2626
```
27-
git clone https://github.com/stellar/soroban-examples
27+
git clone -b v0.0.4 https://github.com/stellar/soroban-examples
2828
```
2929

3030
To run the tests for the example, navigate to the `cross_contract/contract_b`
@@ -71,7 +71,7 @@ impl ContractB {
7171
}
7272
```
7373

74-
Ref: https://github.com/stellar/soroban-examples/tree/main/cross_contract
74+
Ref: https://github.com/stellar/soroban-examples/tree/v0.0.4/cross_contract
7575

7676
## How it Works
7777

docs/examples/custom-types.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ The [custom types example] demonstrates how to define your own data structures
77
that can be stored on the ledger, or used as inputs and outputs to contract
88
invocations.
99

10-
[custom types example]: https://github.com/stellar/soroban-examples/tree/main/custom_types
10+
[custom types example]: https://github.com/stellar/soroban-examples/tree/v0.0.4/custom_types
1111

1212
## Run the Example
1313

1414
First go through the [Setup] process to get your development environment
15-
configured, then clone the examples repository:
15+
configured, then clone the `v0.0.4` tag of `soroban-examples` repository:
1616

1717
[Setup]: ../getting-started/setup.mdx
1818

1919
```
20-
git clone https://github.com/stellar/soroban-examples
20+
git clone -b v0.0.4 https://github.com/stellar/soroban-examples
2121
```
2222

2323
To run the tests for the example, navigate to the `custom_types` directory, and use `cargo test`.
@@ -70,7 +70,7 @@ impl CustomTypesContract {
7070
}
7171
```
7272

73-
Ref: https://github.com/stellar/soroban-examples/tree/main/custom_types
73+
Ref: https://github.com/stellar/soroban-examples/tree/v0.0.4/custom_types
7474

7575
## How it Works
7676

docs/examples/events.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ title: Events
55

66
The [events example] demonstrates how to publish events from a contract.
77

8-
[events example]: https://github.com/stellar/soroban-examples/tree/main/events
8+
[events example]: https://github.com/stellar/soroban-examples/tree/v0.0.4/events
99

1010
## Run the Example
1111

1212
First go through the [Setup] process to get your development environment
13-
configured, then clone the examples repository:
13+
configured, then clone the `v0.0.4` tag of `soroban-examples` repository:
1414

1515
[Setup]: ../getting-started/setup.mdx
1616

1717
```
18-
git clone https://github.com/stellar/soroban-examples
18+
git clone -b v0.0.4 https://github.com/stellar/soroban-examples
1919
```
2020

2121
To run the tests for the example, navigate to the `events` directory, and use `cargo test`.
@@ -50,15 +50,15 @@ impl EventsContract {
5050
}
5151
}
5252
```
53-
Ref: https://github.com/stellar/soroban-examples/tree/main/events
53+
Ref: https://github.com/stellar/soroban-examples/tree/v0.0.4/events
5454

5555
## How it Works
5656

5757
This example contract is similar to the [hello world example]. It also contains one
5858
contract function named `hello`. However, instead of returning the greeting message to the caller, it
5959
publishes the message (along with some data) as a contract event.
6060

61-
[hello world example]: https://github.com/stellar/soroban-examples/tree/main/hello_world
61+
[hello world example]: https://github.com/stellar/soroban-examples/tree/v0.0.4/hello_world
6262

6363
Contract events let smart contract developers emit information about what their
6464
contract is doing.

docs/examples/hello-world.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ title: Hello World
66
The [hello world example] demonstrates how to write a simple contract, with a
77
single function that takes one input and returns it as an output.
88

9-
[hello world example]: https://github.com/stellar/soroban-examples/tree/main/hello_world
9+
[hello world example]: https://github.com/stellar/soroban-examples/tree/v0.0.4/hello_world
1010

1111
## Run the Example
1212

1313
First go through the [Setup] process to get your development environment
14-
configured, then clone the examples repository:
14+
configured, then clone the `v0.0.4` tag of `soroban-examples` repository:
1515

1616
[Setup]: ../getting-started/setup.mdx
1717

1818
```
19-
git clone https://github.com/stellar/soroban-examples
19+
git clone -b v0.0.4 https://github.com/stellar/soroban-examples
2020
```
2121

2222
To run the tests for the example, navigate to the `hello_world` directory, and use `cargo test`.
@@ -48,7 +48,7 @@ impl HelloContract {
4848
}
4949
}
5050
```
51-
Ref: https://github.com/stellar/soroban-examples/tree/main/hello_world
51+
Ref: https://github.com/stellar/soroban-examples/tree/v0.0.4/hello_world
5252

5353
## How it Works
5454

docs/examples/increment.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ title: Increment
66
The [increment example] demonstrates how to write a simple contract, with a
77
single function that increments an internal counter and returns the value.
88

9-
[increment example]: https://github.com/stellar/soroban-examples/tree/main/increment
9+
[increment example]: https://github.com/stellar/soroban-examples/tree/v0.0.4/increment
1010

1111
## Run the Example
1212

1313
First go through the [Setup] process to get your development environment
14-
configured, then clone the examples repository:
14+
configured, then clone the `v0.0.4` tag of `soroban-examples` repository:
1515

1616
[Setup]: ../getting-started/setup.mdx
1717

1818
```
19-
git clone https://github.com/stellar/soroban-examples
19+
git clone -b v0.0.4 https://github.com/stellar/soroban-examples
2020
```
2121

2222
To run the tests for the example, navigate to the `increment` directory, and use `cargo test`.
@@ -54,7 +54,7 @@ impl IncrementContract {
5454
}
5555
}
5656
```
57-
Ref: https://github.com/stellar/soroban-examples/tree/main/increment
57+
Ref: https://github.com/stellar/soroban-examples/tree/v0.0.4/increment
5858

5959
## How it Works
6060

docs/examples/liquidity-pool.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ The [liquidity pool example] demonstrates how to write a constant product
77
liquidity pool contract. The comments in the [source code] explain how the contract should
88
be used.
99

10-
[liquidity pool example]: https://github.com/stellar/soroban-examples/tree/main/liquidity_pool
11-
[source code]: https://github.com/stellar/soroban-examples/blob/main/liquidity_pool/src/lib.rs#L143
10+
[liquidity pool example]: https://github.com/stellar/soroban-examples/tree/v0.0.4/liquidity_pool
11+
[source code]: https://github.com/stellar/soroban-examples/blob/v0.0.4/liquidity_pool/src/lib.rs#L143

docs/examples/single-offer-sale.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ The [single offer sale example] demonstrates how to write a contract that allows
77
a seller to set up an offer to sell token A for token B. The comments in the
88
[source code] explain how the contract should be used.
99

10-
[single offer sale example]: https://github.com/stellar/soroban-examples/tree/main/single_offer
11-
[source code]: https://github.com/stellar/soroban-examples/blob/main/single_offer/src/lib.rs#L131
10+
[single offer sale example]: https://github.com/stellar/soroban-examples/tree/v0.0.4/single_offer
11+
[source code]: https://github.com/stellar/soroban-examples/blob/v0.0.4/single_offer/src/lib.rs#L131

docs/examples/token.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ title: Token
66
The [token example] demonstrates how to write a token contract that implements
77
the same logic as the [built-in token contract].
88

9-
[token example]: https://github.com/stellar/soroban-token-contract/tree/main/
9+
[token example]: https://github.com/stellar/soroban-token-contract/tree/v0.0.4/
1010
[built-in token contract]: ../built-in-contracts/token-contract

0 commit comments

Comments
 (0)