Skip to content

Commit

Permalink
fix docs after tests updated
Browse files Browse the repository at this point in the history
  • Loading branch information
PiVortex committed Sep 24, 2024
1 parent edf98a6 commit d8c8e55
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions docs/3.tutorials/auction/2-locking.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ We will now also test the `claim` method. The test will check that the `auctione
<TabItem value="rust" label="🦀 Rust">

<Github fname="test_basics.rs" language="rust"
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/02-owner-claims-money/tests/test_basics.rs#L89-L105"
start="89" end="105" />
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/02-owner-claims-money/tests/test_basics.rs#L96-L112"
start="96" end="112" />

</TabItem>

Expand Down
12 changes: 6 additions & 6 deletions docs/3.tutorials/auction/3-nft.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ To deploy the NFT contract, this time we're going to use `dev deploy` which crea
<TabItem value="rust" label="🦀 Rust">

<Github fname="test_basics.rs" language="rust"
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/03-owner-claims-winner-gets-nft/tests/test_basics.rs#L23-L24"
start="23" end="32" />
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/03-owner-claims-winner-gets-nft/tests/test_basics.rs#L30-L39"
start="30" end="39" />

</TabItem>

Expand All @@ -133,8 +133,8 @@ To start a proper auction the auction contract should own an NFT. To do this the
<TabItem value="rust" label="🦀 Rust">

<Github fname="test_basics.rs" language="rust"
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/03-owner-claims-winner-gets-nft/tests/test_basics.rs#L35-L53"
start="35" end="53" />
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/03-owner-claims-winner-gets-nft/tests/test_basics.rs#L42-L60"
start="42" end="60" />

</TabItem>

Expand All @@ -159,8 +159,8 @@ After `claim` is called, the test should verify that the auction winner now owns
<TabItem value="rust" label="🦀 Rust">

<Github fname="test_basics.rs" language="rust"
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/03-owner-claims-winner-gets-nft/tests/test_basics.rs#L144-L157"
start="144" end="157" />
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/03-owner-claims-winner-gets-nft/tests/test_basics.rs#L151-L164"
start="151" end="164" />

</TabItem>

Expand Down
38 changes: 19 additions & 19 deletions docs/3.tutorials/auction/4-ft.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ When the contract is deployed it is initialized with `new_default_meta` which se
<TabItem value="rust" label="🦀 Rust">

<Github fname="test_basics.rs" language="rust"
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/04-ft-owner-claims-winner-gets-nft/tests/test_basics.rs#L26-L39"
start="26" end="39" />
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/04-ft-owner-claims-winner-gets-nft/tests/test_basics.rs#L33-L46"
start="33" end="46" />

</TabItem>

Expand All @@ -238,8 +238,8 @@ In our tests, since we are creating a new fungible token and new accounts we wil
<TabItem value="rust" label="🦀 Rust">

<Github fname="test_basics.rs" language="rust"
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/04-ft-owner-claims-winner-gets-nft/tests/test_basics.rs#L74-L90"
start="74" end="90" />
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/04-ft-owner-claims-winner-gets-nft/tests/test_basics.rs#L81-L97"
start="81" end="97" />

</TabItem>

Expand All @@ -265,11 +265,11 @@ Then we will transfer the bidders FTs so they can use them to bid. A simple tran

<Language value="rust" language="rust">
<Github fname="Call ft_transfer"
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/04-ft-owner-claims-winner-gets-nft/tests/test_basics.rs#L95-L100"
start="95" end="100" />
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/04-ft-owner-claims-winner-gets-nft/tests/test_basics.rs#L100-L107"
start="100" end="107" />
<Github fname="ft_transfer definition"
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/04-ft-owner-claims-winner-gets-nft/tests/test_basics.rs#L284-L300"
start="284" end="300" />
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/04-ft-owner-claims-winner-gets-nft/tests/test_basics.rs#L291-L307"
start="291" end="307" />
</Language>

</TabItem>
Expand All @@ -296,11 +296,11 @@ As stated previously, to bid on the auction the bidder now calls `ft_transfer_ca

<Language value="rust" language="rust">
<Github fname="Call ft_transfer_call"
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/04-ft-owner-claims-winner-gets-nft/tests/test_basics.rs#L142-L154"
start="142" end="154" />
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/04-ft-owner-claims-winner-gets-nft/tests/test_basics.rs#L149-L161"
start="149" end="161" />
<Github fname="ft_transfer_call definition"
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/04-ft-owner-claims-winner-gets-nft/tests/test_basics.rs#L315-L330"
start="315" end="330" />
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/04-ft-owner-claims-winner-gets-nft/tests/test_basics.rs#L322-L337"
start="322" end="337" />
</Language>

</TabItem>
Expand All @@ -327,11 +327,11 @@ Previously, to check a user's $NEAR balance, we pulled the details from their ac

<Language value="rust" language="rust">
<Github fname="Call ft_balance_of"
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/04-ft-owner-claims-winner-gets-nft/tests/test_basics.rs#L156-L159"
start="156" end="159" />
<Github fname="ft_transfer_call definition"
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/04-ft-owner-claims-winner-gets-nft/tests/test_basics.rs#L302-L313"
start="302" end="313" />
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/04-ft-owner-claims-winner-gets-nft/tests/test_basics.rs#L163-L166"
start="163" end="166" />
<Github fname="ft_balance_of definition"
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/04-ft-owner-claims-winner-gets-nft/tests/test_basics.rs#L309-L320"
start="309" end="320" />
</Language>

</TabItem>
Expand Down Expand Up @@ -359,8 +359,8 @@ Previous to this, Bob made a bid of 60,000 and Alice was returned her bid bringi
<TabItem value="rust" label="🦀 Rust">

<Github fname="test_basics.rs" language="rust"
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/04-ft-owner-claims-winner-gets-nft/tests/test_basics.rs#L183-L200"
start="183" end="200" />
url="https://github.com/near-examples/auctions-tutorial/blob/main/contract-rs/04-ft-owner-claims-winner-gets-nft/tests/test_basics.rs#L190-L207"
start="190" end="207" />

</TabItem>

Expand Down

0 comments on commit d8c8e55

Please sign in to comment.