Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sandbox): update create nft & integration TXs #132

Merged
merged 1 commit into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion examples/create-token/CreateNftCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import FormLabel from '@mui/joy/FormLabel'
import Button from '@mui/joy/Button'
import { createToken } from '../manifests/tokens'
import { useRdt } from '../rdt/hooks/useRdt'
import { accounts } from '../../src/data-request/builders/accounts'
import { Alert, Stack } from '@mui/joy'
import { useLogger } from '../components/Logger'
import { Card } from '../components/Card'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ a) Deposit entire worktop to Alpha`,
['accountAlpha', 'accountBravo', 'componentAlpha', 'componentBravo'],
`Instantiate another gumball machine prior to this scenario, again assuming price of 1

1) Withdraw 2 XRD from Alpha
2) Create bucket of 2 XRD
1) Withdraw 8 XRD from Alpha
2) Create bucket of 8 XRD
3) Call buy_gumball on machine Alpha with bucket
4) Create bucket of all XRD
4) Create bucket of 7 XRD
5) Call buy_gumball on machine Bravo with bucket
6) Deposit entire worktop to Bravo`,
],
Expand Down
6 changes: 3 additions & 3 deletions examples/manifests/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ export const getExample6 = (
}: GumballMachineExampleConfig
) =>
`
CALL_METHOD Address("${accountAlpha}") "withdraw" Address("${xrdAddress}") Decimal("2");
TAKE_FROM_WORKTOP Address("${xrdAddress}") Decimal("2") Bucket("xrd");
CALL_METHOD Address("${accountAlpha}") "withdraw" Address("${xrdAddress}") Decimal("8");
TAKE_FROM_WORKTOP Address("${xrdAddress}") Decimal("8") Bucket("xrd");
CALL_METHOD Address("${componentAlpha?.address}") "buy_gumball" Bucket("xrd");
TAKE_FROM_WORKTOP Address("${xrdAddress}") Decimal("1") Bucket("restxrd");
TAKE_FROM_WORKTOP Address("${xrdAddress}") Decimal("7") Bucket("restxrd");
CALL_METHOD Address("${componentBravo?.address}") "buy_gumball" Bucket("restxrd");
CALL_METHOD Address("${accountBravo}") "try_deposit_batch_or_abort" Expression("ENTIRE_WORKTOP") Enum<0u8>();
`
16 changes: 4 additions & 12 deletions examples/manifests/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ CALL_METHOD
Enum<0u8>()
Enum<1u8>()
true
Enum<NonFungibleDataSchema::Local>(
Enum<0u8>(
Enum<0u8>(
Tuple(
Array<Enum>(
Expand All @@ -94,15 +94,14 @@ CALL_METHOD
Enum<0u8>(
12u8
),
Enum<1u8>(
1u64
Enum<0u8>(
198u8
),
Enum<0u8>(
10u8
)
)
),
Enum<12u8>()
)
),
Array<Tuple>(
Tuple(
Expand All @@ -119,16 +118,9 @@ CALL_METHOD
)
)
)
),
Tuple(
Enum<1u8>(
"UncheckedUrl"
),
Enum<0u8>()
)
),
Array<Enum>(
Enum<0u8>(),
Enum<0u8>()
)
)
Expand Down