Skip to content

Commit

Permalink
Update example refs to 22.0.1 (#1148)
Browse files Browse the repository at this point in the history
  • Loading branch information
sisuresh authored Dec 20, 2024
1 parent 1db8897 commit a0d3a2d
Show file tree
Hide file tree
Showing 24 changed files with 97 additions and 97 deletions.
2 changes: 1 addition & 1 deletion docs/build/guides/conventions/deploy-contract.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ This guide walks through the process of deploying a smart contract from installe

### Setup environment

The [deployer example](https://github.com/stellar/soroban-examples/tree/v21.6.0/deployer) demonstrates how to deploy contracts using a contract.
The [deployer example](https://github.com/stellar/soroban-examples/tree/v22.0.1/deployer) demonstrates how to deploy contracts using a contract.

1. Clone the Soroban Examples Repository:

Expand Down
4 changes: 2 additions & 2 deletions docs/build/guides/conventions/upgrading-contracts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ The [upgradeable contract example] demonstrates how to upgrade a Wasm contract.

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)][oigp]

[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v21.6.0
[upgradeable contract example]: https://github.com/stellar/soroban-examples/tree/v21.6.0/upgradeable_contract
[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v22.0.1
[upgradeable contract example]: https://github.com/stellar/soroban-examples/tree/v22.0.1/upgradeable_contract
[Rust programming language]: https://www.rust-lang.org/

### Code
Expand Down
10 changes: 5 additions & 5 deletions docs/build/smart-contracts/example-contracts/TEMPLATE.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ Place each link definition at the bottom of the section it first is used in.

:::

[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v21.6.0
[example demonstrates]: https://github.com/stellar/soroban-examples/tree/v21.6.0/hello_world
[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v22.0.1
[example demonstrates]: https://github.com/stellar/soroban-examples/tree/v22.0.1/hello_world
[other example]: ../getting-started/setup.mdx

## Run the Example

First go through the [Setup] process to get your development environment configured, then clone the `v21.6.0` tag of `soroban-examples` repository:
First go through the [Setup] process to get your development environment configured, then clone the `v22.0.1` tag of `soroban-examples` repository:

```sh
git clone -b v21.6.0 https://github.com/stellar/soroban-examples
git clone -b v22.0.1 https://github.com/stellar/soroban-examples
```

Or, skip the development environment setup and open this example in [Gitpod][oigp].
Expand Down Expand Up @@ -67,7 +67,7 @@ impl HelloContract {
mod test;
```

Ref: https://github.com/stellar/soroban-examples/tree/v21.6.0/hello_world
Ref: https://github.com/stellar/soroban-examples/tree/v22.0.1/hello_world

## How it Works

Expand Down
10 changes: 5 additions & 5 deletions docs/build/smart-contracts/example-contracts/alloc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ The [allocator example] demonstrates how to utilize the allocator feature when w

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)][oigp]

[allocator example]: https://github.com/stellar/soroban-examples/tree/v21.6.0/alloc
[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v21.6.0
[allocator example]: https://github.com/stellar/soroban-examples/tree/v22.0.1/alloc
[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v22.0.1

The `soroban-sdk` crate provides a lightweight bump-pointer allocator which can be used to emulate heap memory allocation in a Wasm smart contract.

## Run the Example

First go through the [Setup] process to get your development environment configured, then clone the `v21.6.0` tag of `soroban-examples` repository:
First go through the [Setup] process to get your development environment configured, then clone the `v22.0.1` tag of `soroban-examples` repository:

[setup]: ../getting-started/setup.mdx

```
git clone -b v21.6.0 https://github.com/stellar/soroban-examples
git clone -b v22.0.1 https://github.com/stellar/soroban-examples
```

Or, skip the development environment setup and open this example in [Gitpod][oigp].
Expand Down Expand Up @@ -94,7 +94,7 @@ impl AllocContract {
}
```

Ref: https://github.com/stellar/soroban-examples/tree/v21.6.0/alloc
Ref: https://github.com/stellar/soroban-examples/tree/v22.0.1/alloc

## How it Works

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ Follow the comments in the code for more information.

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)][oigp]

[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v21.6.0
[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v22.0.1
[atomic swap]: atomic-swap.mdx
[atomic swap batching example]: https://github.com/stellar/soroban-examples/tree/v21.6.0/atomic_multiswap
[atomic swap batching example]: https://github.com/stellar/soroban-examples/tree/v22.0.1/atomic_multiswap
12 changes: 6 additions & 6 deletions docs/build/smart-contracts/example-contracts/atomic-swap.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ This is example demonstrates advanced usage of Soroban auth framework and assume

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)][oigp]

[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v21.6.0
[atomic swap example]: https://github.com/stellar/soroban-examples/tree/v21.6.0/atomic_swap
[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v22.0.1
[atomic swap example]: https://github.com/stellar/soroban-examples/tree/v22.0.1/atomic_swap

## Run the Example

First go through the [Setup] process to get your development environment configured, then clone the `v21.6.0` tag of `soroban-examples` repository:
First go through the [Setup] process to get your development environment configured, then clone the `v22.0.1` tag of `soroban-examples` repository:

[setup]: ../getting-started/setup.mdx

```
git clone -b v21.6.0 https://github.com/stellar/soroban-examples
git clone -b v22.0.1 https://github.com/stellar/soroban-examples
```

Or, skip the development environment setup and open this example in [Gitpod][oigp].
Expand Down Expand Up @@ -123,7 +123,7 @@ fn move_token(
}
```

Ref: https://github.com/stellar/soroban-examples/tree/v21.6.0/atomic_swap
Ref: https://github.com/stellar/soroban-examples/tree/v22.0.1/atomic_swap

## How it Works

Expand Down Expand Up @@ -186,7 +186,7 @@ The swap itself is implemented via two token moves: from `a` to `b` and from `b`

Open the [`atomic_swap/src/test.rs`] file to follow along.

[`atomic_swap/src/test.rs`]: https://github.com/stellar/soroban-examples/tree/v21.6.0/atomic_swap/src/test.rs
[`atomic_swap/src/test.rs`]: https://github.com/stellar/soroban-examples/tree/v22.0.1/atomic_swap/src/test.rs

Refer to another examples for the general information on the test setup.

Expand Down
12 changes: 6 additions & 6 deletions docs/build/smart-contracts/example-contracts/auth.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ This example is an extension of the [storing data example].

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)][oigp]

[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v21.6.0
[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v22.0.1
[storing data example]: ../getting-started/storing-data.mdx
[auth example]: https://github.com/stellar/soroban-examples/tree/v21.6.0/auth
[auth example]: https://github.com/stellar/soroban-examples/tree/v22.0.1/auth

## Run the Example

First go through the [Setup] process to get your development environment configured, then clone the `v21.6.0` tag of `soroban-examples` repository:
First go through the [Setup] process to get your development environment configured, then clone the `v22.0.1` tag of `soroban-examples` repository:

[setup]: ../getting-started/setup.mdx

```
git clone -b v21.6.0 https://github.com/stellar/soroban-examples
git clone -b v22.0.1 https://github.com/stellar/soroban-examples
```

Or, skip the development environment setup and open this example in [Gitpod][oigp].
Expand Down Expand Up @@ -110,7 +110,7 @@ impl IncrementContract {
}
```

Ref: https://github.com/stellar/soroban-examples/tree/v21.6.0/auth
Ref: https://github.com/stellar/soroban-examples/tree/v22.0.1/auth

## How it Works

Expand Down Expand Up @@ -166,7 +166,7 @@ user.require_auth_for_args((value,).into_val(&env));

Open the [`auth/src/test.rs`] file to follow along.

[`auth/src/test.rs`]: https://github.com/stellar/soroban-examples/tree/v21.6.0/auth/src/test.rs
[`auth/src/test.rs`]: https://github.com/stellar/soroban-examples/tree/v22.0.1/auth/src/test.rs

```rust title="auth/src/test.rs"
fn test() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ In this example there are two contracts that are compiled separately, deployed s

:::

[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v21.6.0
[cross contract call example]: https://github.com/stellar/soroban-examples/tree/v21.6.0/cross_contract
[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v22.0.1
[cross contract call example]: https://github.com/stellar/soroban-examples/tree/v22.0.1/cross_contract

## Run the Example

First go through the [Setup] process to get your development environment configured, then clone the `v21.6.0` tag of `soroban-examples` repository:
First go through the [Setup] process to get your development environment configured, then clone the `v22.0.1` tag of `soroban-examples` repository:

[setup]: ../getting-started/setup.mdx

```
git clone -b v21.6.0 https://github.com/stellar/soroban-examples
git clone -b v22.0.1 https://github.com/stellar/soroban-examples
```

Or, skip the development environment setup and open this example in [Gitpod][oigp].
Expand Down Expand Up @@ -93,7 +93,7 @@ impl ContractB {
}
```

Ref: https://github.com/stellar/soroban-examples/tree/v21.6.0/cross_contract
Ref: https://github.com/stellar/soroban-examples/tree/v22.0.1/cross_contract

## How it Works

Expand Down
10 changes: 5 additions & 5 deletions docs/build/smart-contracts/example-contracts/custom-account.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ While custom accounts are supported by the Stellar protocol and Soroban SDK, the

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)][oigp]

[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v21.6.0
[custom account example]: https://github.com/stellar/soroban-examples/tree/v21.6.0/account
[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v22.0.1
[custom account example]: https://github.com/stellar/soroban-examples/tree/v22.0.1/account

## Run the Example

First go through the [Setup] process to get your development environment configured, then clone the `v21.6.0` tag of `soroban-examples` repository:
First go through the [Setup] process to get your development environment configured, then clone the `v22.0.1` tag of `soroban-examples` repository:

[setup]: ../getting-started/setup.mdx

```
git clone -b v21.6.0 https://github.com/stellar/soroban-examples
git clone -b v22.0.1 https://github.com/stellar/soroban-examples
```

Or, skip the development environment setup and open this example in [Gitpod][oigp].
Expand Down Expand Up @@ -278,7 +278,7 @@ Then we check for the standard token function names and verify that for these fu

Open the [`account/src/test.rs`] file to follow along.

[`account/src/test.rs`]: https://github.com/stellar/soroban-examples/tree/v21.6.0/account/src/test.rs
[`account/src/test.rs`]: https://github.com/stellar/soroban-examples/tree/v22.0.1/account/src/test.rs

Refer to another examples for the general information on the test setup.

Expand Down
10 changes: 5 additions & 5 deletions docs/build/smart-contracts/example-contracts/custom-types.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ The [custom types example] demonstrates how to define your own data structures t

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)][oigp]

[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v21.6.0
[custom types example]: https://github.com/stellar/soroban-examples/tree/v21.6.0/custom_types
[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v22.0.1
[custom types example]: https://github.com/stellar/soroban-examples/tree/v22.0.1/custom_types
[storing data example]: ../getting-started/storing-data.mdx

## Run the Example

First go through the [Setup] process to get your development environment configured, then clone the `v21.6.0` tag of `soroban-examples` repository:
First go through the [Setup] process to get your development environment configured, then clone the `v22.0.1` tag of `soroban-examples` repository:

[setup]: ../getting-started/setup.mdx

```
git clone -b v21.6.0 https://github.com/stellar/soroban-examples
git clone -b v22.0.1 https://github.com/stellar/soroban-examples
```

Or, skip the development environment setup and open this example in [Gitpod][oigp].
Expand Down Expand Up @@ -97,7 +97,7 @@ impl IncrementContract {
}
```

Ref: https://github.com/stellar/soroban-examples/tree/v21.6.0/custom_types
Ref: https://github.com/stellar/soroban-examples/tree/v22.0.1/custom_types

## How it Works

Expand Down
10 changes: 5 additions & 5 deletions docs/build/smart-contracts/example-contracts/deployer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ In this example there are two contracts that are compiled separately, and the te

:::

[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v21.6.0
[deployer example]: https://github.com/stellar/soroban-examples/tree/v21.6.0/deployer
[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v22.0.1
[deployer example]: https://github.com/stellar/soroban-examples/tree/v22.0.1/deployer

## Run the Example

First go through the [Setup] process to get your development environment configured, then clone the `v21.6.0` tag of `soroban-examples` repository:
First go through the [Setup] process to get your development environment configured, then clone the `v22.0.1` tag of `soroban-examples` repository:

[setup]: ../getting-started/setup.mdx

```
git clone -b v21.6.0 https://github.com/stellar/soroban-examples
git clone -b v22.0.1 https://github.com/stellar/soroban-examples
```

Or, skip the development environment setup and open this example in [Gitpod][oigp].
Expand Down Expand Up @@ -108,7 +108,7 @@ impl Deployer {
}
```

Ref: https://github.com/stellar/soroban-examples/tree/v21.6.0/deployer
Ref: https://github.com/stellar/soroban-examples/tree/v22.0.1/deployer

## How it Works

Expand Down
10 changes: 5 additions & 5 deletions docs/build/smart-contracts/example-contracts/errors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ The [errors example] demonstrates how to define and generate errors in a contrac

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)][oigp]

[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v21.6.0
[errors example]: https://github.com/stellar/soroban-examples/tree/v21.6.0/errors
[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v22.0.1
[errors example]: https://github.com/stellar/soroban-examples/tree/v22.0.1/errors
[storing data example]: ../getting-started/storing-data.mdx

## Run the Example

First go through the [Setup] process to get your development environment configured, then clone the `v21.6.0` tag of `soroban-examples` repository:
First go through the [Setup] process to get your development environment configured, then clone the `v22.0.1` tag of `soroban-examples` repository:

[setup]: ../getting-started/setup.mdx

```
git clone -b v21.6.0 https://github.com/stellar/soroban-examples
git clone -b v22.0.1 https://github.com/stellar/soroban-examples
```

Or, skip the development environment setup and open this example in [Gitpod][oigp].
Expand Down Expand Up @@ -120,7 +120,7 @@ impl IncrementContract {
}
```

Ref: https://github.com/stellar/soroban-examples/tree/v21.6.0/errors
Ref: https://github.com/stellar/soroban-examples/tree/v22.0.1/errors

## How it Works

Expand Down
10 changes: 5 additions & 5 deletions docs/build/smart-contracts/example-contracts/events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ The [events example] demonstrates how to publish events from a contract. This ex

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)][oigp]

[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v21.6.0
[events example]: https://github.com/stellar/soroban-examples/tree/v21.6.0/events
[oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v22.0.1
[events example]: https://github.com/stellar/soroban-examples/tree/v22.0.1/events
[storing data example]: ../getting-started/storing-data.mdx

## Run the Example

First go through the [Setup] process to get your development environment configured, then clone the `v21.6.0` tag of `soroban-examples` repository:
First go through the [Setup] process to get your development environment configured, then clone the `v22.0.1` tag of `soroban-examples` repository:

[setup]: ../getting-started/setup.mdx

```
git clone -b v21.6.0 https://github.com/stellar/soroban-examples
git clone -b v22.0.1 https://github.com/stellar/soroban-examples
```

Or, skip the development environment setup and open this example in [Gitpod][oigp].
Expand Down Expand Up @@ -87,7 +87,7 @@ impl IncrementContract {
}
```

Ref: https://github.com/stellar/soroban-examples/tree/v21.6.0/events
Ref: https://github.com/stellar/soroban-examples/tree/v22.0.1/events

## How it Works

Expand Down
Loading

0 comments on commit a0d3a2d

Please sign in to comment.