Skip to content

Commit 1689629

Browse files
authored
Merge pull request #69 from algorandfoundation/update-alpha
Update alpha from main
2 parents 9490b44 + 7093693 commit 1689629

File tree

264 files changed

+16267
-32879
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

264 files changed

+16267
-32879
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: "\U0001F41C Bug report"
3+
about: Report a reproducible bug.
4+
title: ''
5+
labels: new-bug
6+
assignees: ''
7+
---
8+
9+
### Subject of the issue
10+
11+
<!-- Describe your issue here. -->
12+
13+
### Your environment
14+
15+
<!--
16+
* Please provide information about your environment.
17+
* This will give us a good idea about your environment
18+
-->
19+
20+
### Steps to reproduce
21+
22+
1.
23+
2.
24+
25+
### Expected behaviour
26+
27+
### Actual behaviour
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: "\U0001F514 Feature Request"
3+
about: Suggestions for how we can improve the algorand platform.
4+
title: ''
5+
labels: new-feature-request
6+
assignees: ''
7+
---
8+
9+
## Problem
10+
11+
<!-- What is the problem that we’re trying to solve? -->
12+
13+
## Solution
14+
15+
<!-- Do you have a potential/suggested solution? Document more than one if possible. -->
16+
17+
### Proposal
18+
19+
<!-- Describe the solution you’d like in detail. -->
20+
21+
### Pros and Cons
22+
23+
<!-- What are the advantages and disadvantages of this solution? -->
24+
25+
## Dependencies
26+
27+
<!-- Does the solution have any team or design dependencies? -->

.github/workflows/pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
- 'docs/**'
1010
- 'scripts/**'
1111

12-
1312
permissions:
1413
contents: read
1514

@@ -19,8 +18,9 @@ jobs:
1918
uses: ./.github/workflows/node-ci.yml
2019
with:
2120
pre-test-script: |
22-
pipx install algokit
23-
algokit localnet start
21+
pipx install algokit --python 3.12.6
22+
algokit localnet reset --update
23+
pipx install puyapy --python 3.12.6
2424
node-version: 20.x
2525
run-build: true
2626
run-commit-lint: true

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
with:
2323
pre-test-script: |
2424
pipx install algokit
25-
algokit localnet start
25+
algokit localnet reset --update
26+
pipx install puyapy
2627
node-version: 20.x
2728
run-build: true
2829
run-commit-lint: true
@@ -63,3 +64,5 @@ jobs:
6364
token: ${{ secrets.NPM_TOKEN }}
6465
package: artifacts/algo-ts-testing/package.json
6566
access: 'public'
67+
# Tagging 'main' branch with latest for now, even though it's beta because we don't have a non-beta
68+
tag: ${{ github.ref_name == 'alpha' && 'alpha' || github.ref_name == 'main' && 'latest' || github.ref_name == 'release' && 'latest' || 'pre-release' }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,4 @@ out/
6565

6666

6767
examples/debug-out/
68+
examples/**/data/

.tstoolkitrc.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ const config: TsToolkitConfig = {
1010
exports: {
1111
'.': 'index.ts',
1212
'./runtime-helpers': 'runtime-helpers.ts',
13-
'./test-transformer': 'test-transformer/index.ts',
13+
'./internal': 'internal/index.ts',
14+
'./internal/arc4': 'internal/arc4.ts',
15+
'./internal/op': 'internal/op.ts',
16+
'./vitest-transformer': 'test-transformer/vitest-transformer.ts',
17+
'./jest-transformer': 'test-transformer/jest-transformer.ts',
1418
},
1519
},
1620
}

CONTRIBUTING.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Contributing to Algorand TypeScript Testing
2+
3+
Contributions are welcome. For new features, please open an issue to discuss first.
4+
5+
## Workflow
6+
7+
We use [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/#summary). User-facing changes should include at least one `fix:` or `feat:` commit for release notes. Other conventions like `docs:` or `test:` are optional but helpful.
8+
9+
## Local Development
10+
11+
To set up the project locally:
12+
13+
1. **Install Node.js**: Download from [nodejs.org](https://nodejs.org/).
14+
15+
1. **Install Python 3.12+**.
16+
17+
1. **Install Puya**:
18+
19+
```sh
20+
pipx install puyapy --python 3.12.6
21+
```
22+
23+
1. **Install AlgoKit CLI**: Follow the guide from [Algokit](https://github.com/algorandfoundation/algokit-cli?tab=readme-ov-file#install).
24+
25+
1. **Start localnet**:
26+
27+
```sh
28+
algokit localnet start
29+
# or `algokit localnet reset --update` to update localnet docker images
30+
```
31+
32+
1. **Install npm dependencies**:
33+
34+
```sh
35+
npm install
36+
```
37+
38+
1. **Run tests**:
39+
```sh
40+
npm test
41+
```
42+
43+
## Common Commands
44+
45+
Here are some common commands you will use with npm:
46+
47+
- **Generate API reference documentation** `npm run script:documentation`
48+
- **Fix linting errors** `npm run lint:fix`
49+
- **Build a distribution locally** `npm run build`
50+
- **Compile all contracts used by tests for debugging** `npm run script:refresh-test-artifacts`
51+
- **Compile all example contracts for debugging** `npm run script:compile-examples`

0 commit comments

Comments
 (0)