Skip to content

Commit 7409f9f

Browse files
committed
Test
1 parent ee88386 commit 7409f9f

File tree

3 files changed

+19
-21
lines changed

3 files changed

+19
-21
lines changed

.github/workflows/yarn-build-fmt-lint.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ jobs:
4242
uses: actions/setup-node@v4
4343
with:
4444
node-version: ${{ env.NODE_VERSION }}
45-
cache: 'yarn'
46-
cache-dependency-path: ${{ matrix.packages }}/yarn.lock
4745

4846
- name: Run install
4947
working-directory: ${{ matrix.packages }}
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
## Unreleased changes
22

3-
- Change the dApp to use new `signCIS3Message` function from the BrowserWallet.
3+
- Change the dApp to use new `signCIS3Message` function from the BrowserWallet.
44

55
## 1.0.3
66

7-
- Fix `Writable` error via polyfill in `walletConnect` dependency.
7+
- Fix `Writable` error via polyfill in `walletConnect` dependency.
88

99
## 1.0.2
1010

11-
- Update `ccd-js-gen` tool to version "^1.2.0".
11+
- Update `ccd-js-gen` tool to version "^1.2.0".
1212

1313
## 1.0.1
1414

15-
- Change `http` to `https` in the hardcoded node connection at the front end.
15+
- Change `http` to `https` in the hardcoded node connection at the front end.
1616

1717
## 1.0.0
1818

19-
- Initial auction sponsored transaction front end
19+
- Initial auction sponsored transaction front end

sponsoredTransactionsAuction/frontend/README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
This front end interacts with the [sponsored-enabled-auction](https://github.com/Concordium/concordium-rust-smart-contracts/tree/main/examples/sponsored-tx-enabled-auction) and the [cis2-multi](https://github.com/Concordium/concordium-rust-smart-contracts/tree/main/examples/cis2-multi) smart contracts. Users can bid for the items in the auction contract by using a sponsored-transaction-enabled token as a payment method (no CCD required in the user's wallet). This web app supports the following flows with the browser wallet:
44

5-
- Mint payment tokens to your wallet.
6-
- Add an item to the auction contract.
7-
- View your item from the auction contract.
8-
- Bid for an item without sending a transaction from the browser wallet. In other words, without paying for the transaction fees from your browser wallet. This flow first computes the message hash for the bid transaction which you have to sign in your browser wallet. Then this signature is submit to the `/bid` backend endpoint.
5+
- Mint payment tokens to your wallet.
6+
- Add an item to the auction contract.
7+
- View your item from the auction contract.
8+
- Bid for an item without sending a transaction from the browser wallet. In other words, without paying for the transaction fees from your browser wallet. This flow first computes the message hash for the bid transaction which you have to sign in your browser wallet. Then this signature is submit to the `/bid` backend endpoint.
99

1010
The backend creates a sponsored transaction and submits it to the `permit` function in the smart contract {index: CIS2_TOKEN_CONTRACT_INDEX, subindex: 0}. You can look up the CIS2_TOKEN_CONTRACT_INDEX in the `package.json` file. The backend returns the transaction hash to the frontend.
1111

@@ -17,21 +17,21 @@ The smart contract code at {index: AUCTION_CONTRACT_INDEX, subindex: 0} can be f
1717

1818
## Prerequisites
1919

20-
- Browser wallet extension version 1.5.2 or above must be installed in Google Chrome and the Concordium testnet needs to be selected.
20+
- Browser wallet extension version 1.5.2 or above must be installed in Google Chrome and the Concordium testnet needs to be selected.
2121

2222
## Running the sponsored txs example (without backend -> submitting the sponsored transaction to chain will fail)
2323

24-
- Run `yarn install` in a terminal in this folder.
25-
- Run `yarn build` in a terminal in this folder.
26-
- Run `yarn dev` in a terminal in this folder.
27-
- Open URL logged in console (typically http://127.0.0.1:5173).
24+
- Run `yarn install` in a terminal in this folder.
25+
- Run `yarn build` in a terminal in this folder.
26+
- Run `yarn dev` in a terminal in this folder.
27+
- Open URL logged in console (typically http://127.0.0.1:5173).
2828

2929
Hot-reload (useful for development) is enabled.
3030

3131
## Running the sponsored txs example (with backend -> submitting the sponsored transaction to chain will work)
3232

33-
- Run `yarn install` in a terminal in this folder.
34-
- Run `yarn build` in a terminal in this folder.
33+
- Run `yarn install` in a terminal in this folder.
34+
- Run `yarn build` in a terminal in this folder.
3535

3636
This creates a `dist` folder which can be served via the backend. Start the backend server by following the instructions in the [README.md file](../backend/README.md).
3737

@@ -43,6 +43,6 @@ Run `yarn fmt` and `yarn lint-fix` before committing to ensure consistent format
4343

4444
The frontend uses smart contract clients generated by the [`ccd-js-gen`](https://github.com/Concordium/concordium-node-sdk-js/tree/main/packages/ccd-js-gen) package. To re-generate a client for the e.g. `cis2-multi` smart contract (after updating the logic of the smart contract) execute the following steps:
4545

46-
- Generate the smart contract module by running `cargo concordium build --out ./cis2_multi.wasm.v1` in the smart contract project folder [cis2-multi](https://github.com/Concordium/concordium-rust-smart-contracts/tree/main/examples/cis2-multi).
47-
- Replace the `cis2_multi.wasm.v1` file in [this folder](https://github.com/Concordium/concordium-dapp-examples/tree/main/sponsoredTransactionsAuction/frontend/contracts) with the newly generated module.
48-
- Re-generate the client by running the command `yarn generate-client` in this folder. Troubleshooting: Check that your node version is at least `18.0.0` (as specified in the `package.json` file) for the command.
46+
- Generate the smart contract module by running `cargo concordium build --out ./cis2_multi.wasm.v1` in the smart contract project folder [cis2-multi](https://github.com/Concordium/concordium-rust-smart-contracts/tree/main/examples/cis2-multi).
47+
- Replace the `cis2_multi.wasm.v1` file in [this folder](https://github.com/Concordium/concordium-dapp-examples/tree/main/sponsoredTransactionsAuction/frontend/contracts) with the newly generated module.
48+
- Re-generate the client by running the command `yarn generate-client` in this folder. Troubleshooting: Check that your node version is at least `18.0.0` (as specified in the `package.json` file) for the command.

0 commit comments

Comments
 (0)