Skip to content

Commit bb2dfff

Browse files
committedMay 31, 2024·
Merge branch 'main' of github.com:algorand-devrel/orakle-coding-assignment-2024
2 parents e022ac6 + 0fd5e84 commit bb2dfff

File tree

3 files changed

+25
-24
lines changed

3 files changed

+25
-24
lines changed
 

‎projects/orakle-nft-marketplace-app-contracts/smart_contracts/nft_marketplace/contract.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def buy(
153153
- 메서드 호출자(Txn.sender)가 앱의 생성자(Global.creator_address)인지 체크해야합니다.
154154
155155
# 2단계: withdraw_and_delete 메서드는 아래 기능들을 수행합니다.
156-
1. 앱 계정에 있는 에셋(ASA)을 앱 계정으로 전송합니다. (AssetTransfer Transaction)
156+
1. 앱 계정에 있는 에셋(ASA)을 앱 호출자 계정으로 전송합니다. (AssetTransfer Transaction)
157157
이때 asset_close_to 패러미터를 앱 생성자(판매자)로 설정하여
158158
앱 계정에 남아있는 에셋 전부를 앱 생성자(판매자)에게 보냅니다.
159159
에셋의 수량과 무관하게 전 수량 송금되기 때문에 에셋 수량(asset_amount)은 설정하지 않으셔도 됩니다.

‎projects/orakle-nft-marketplace-app-frontend/.env.template

+21-21
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,30 @@
33
# uncomment below to use
44
# ======================
55

6-
# VITE_ENVIRONMENT=local
6+
VITE_ENVIRONMENT=local
77

8-
# # Algod
9-
# VITE_ALGOD_TOKEN=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
10-
# VITE_ALGOD_SERVER=http://localhost
11-
# VITE_ALGOD_PORT=4001
12-
# VITE_ALGOD_NETWORK=""
8+
# Algod
9+
VITE_ALGOD_TOKEN=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
10+
VITE_ALGOD_SERVER=http://localhost
11+
VITE_ALGOD_PORT=4001
12+
VITE_ALGOD_NETWORK=""
1313

14-
# # Indexer
15-
# VITE_INDEXER_TOKEN=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
16-
# VITE_INDEXER_SERVER=http://localhost
17-
# VITE_INDEXER_PORT=8980
14+
# Indexer
15+
VITE_INDEXER_TOKEN=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
16+
VITE_INDEXER_SERVER=http://localhost
17+
VITE_INDEXER_PORT=8980
1818

19-
# # KMD
20-
# # Please note:
21-
# # 1. This is only needed for LocalNet since
22-
# # by default KMD provider is ignored on other networks.
23-
# # 2. AlgoKit LocalNet starts with a single wallet called 'unencrypted-default-wallet',
24-
# # with heaps of tokens available for testing.
25-
# VITE_KMD_TOKEN=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
26-
# VITE_KMD_SERVER=http://localhost
27-
# VITE_KMD_PORT=4002
28-
# VITE_KMD_WALLET="unencrypted-default-wallet"
29-
# VITE_KMD_PASSWORD=""
19+
# KMD
20+
# Please note:
21+
# 1. This is only needed for LocalNet since
22+
# by default KMD provider is ignored on other networks.
23+
# 2. AlgoKit LocalNet starts with a single wallet called 'unencrypted-default-wallet',
24+
# with heaps of tokens available for testing.
25+
VITE_KMD_TOKEN=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
26+
VITE_KMD_SERVER=http://localhost
27+
VITE_KMD_PORT=4002
28+
VITE_KMD_WALLET="unencrypted-default-wallet"
29+
VITE_KMD_PASSWORD=""
3030

3131
# # ======================
3232
# # TestNet configuration:

‎projects/orakle-nft-marketplace-app-frontend/src/utils/getCurrentNftmClient.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ export function getCurrentNftmClient(
3434
주목!!!
3535
- 3번째 줄에서 import { NftMarketplaceClient } from '../contracts/NftMarketplace'로 import한 클래스는
3636
Nft 마켓플레이스 앱을 빌드할때 자동 생성된 클라이언트 클래스입니다.
37-
- id값에는 currentAppId를 넣어주세요.
37+
- 이 문제는 getCurrentNftmClient 함수의 인수로 들어오는 4개의 인수를 모두 사용하셔서 푸셔야 합니다.
38+
- id값에는 getCurrentNftmClient의 인수값으로 들어오는 currentAppId를 넣어주세요.
3839
- sender값에는 { addr: activeAddress!, signer }를 복붙해주세요. useWallet를 통해 현재 연결된 지갑 주소와 서명자를 포함한 객체를 설정해주는 코드입니다.
39-
- NftMarketplaceClient 생성자의 두번째 인자인 algod는 algorandClient.client 안에 있습니다.
40+
- NftMarketplaceClient 생성자의 두번째 인자인 algod는 getCurrentNftmClient의 인수값으로 들어오는 algorandClient의 algorandClient.client 안에 있습니다.
4041
4142
힌트: https://github.com/algorandfoundation/algokit-client-generator-ts/blob/main/docs/usage.md#creating-an-application-client-instance
4243
*/

0 commit comments

Comments
 (0)
Please sign in to comment.