Skip to content

feat: calculate fee with algokit core #407

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

Merged
merged 19 commits into from
May 29, 2025
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
35 changes: 35 additions & 0 deletions .github/workflows/check_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
workflow_call:
secrets:
npm-auth-token:
description: NPM auth token (don't pass in on a PR build on a public repository)
required: false

jobs:
check_docs:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: 'https://npm.pkg.github.com'
cache: 'npm'
cache-dependency-path: ./package-lock.json

- name: Check docs are up to date
shell: bash
run: |
npm ci --ignore-scripts
npm run generate:code-docs
# Add untracked files as empty so they come up in diff
git add -N .
# Print changed files and error out if there are changes after generating docs
git diff --exit-code --name-only
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27 changes: 7 additions & 20 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ name: Pull Request

on:
pull_request:
branches: [main]
branches: [main, future]

permissions:
contents: read
packages: read

jobs:
pull_request:
Expand All @@ -21,23 +22,9 @@ jobs:
npx --yes wait-on tcp:4001 -t 30000
audit-script: |
npm run audit

check_docs:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Check docs are up to date
shell: bash
run: |
npm ci --ignore-scripts
npm run generate:code-docs
# Add untracked files as empty so they come up in diff
git add -N .
# Print changed files and error out if there are changes after generating docs
git diff --exit-code --name-only
name: Check docs
uses: ./.github/workflows/check_docs.yml
secrets:
npm-auth-token: ${{ secrets.GITHUB_TOKEN }}
32 changes: 5 additions & 27 deletions .github/workflows/release_to_github.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish
name: Publish to GitHub

on:
push:
Expand Down Expand Up @@ -30,32 +30,10 @@ jobs:
npm-auth-token: ${{ secrets.GITHUB_TOKEN }}

check_docs:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: 'https://npm.pkg.github.com'
cache: 'npm'
cache-dependency-path: ./package-lock.json

- name: Check docs are up to date
shell: bash
run: |
npm ci --ignore-scripts
npm run generate:code-docs
# Add untracked files as empty so they come up in diff
git add -N .
# Print changed files and error out if there are changes after generating docs
git diff --exit-code --name-only
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Check docs
uses: ./.github/workflows/check_docs.yml
secrets:
npm-auth-token: ${{ secrets.GITHUB_TOKEN }}

build:
name: Build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ URLTokenBaseHTTPClient.delete

#### Defined in

[src/types/algo-http-client-with-retry.ts:206](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algo-http-client-with-retry.ts#L206)
[src/types/algo-http-client-with-retry.ts:218](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algo-http-client-with-retry.ts#L218)

___

Expand Down Expand Up @@ -230,4 +230,4 @@ URLTokenBaseHTTPClient.post

#### Defined in

[src/types/algo-http-client-with-retry.ts:145](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algo-http-client-with-retry.ts#L145)
[src/types/algo-http-client-with-retry.ts:157](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algo-http-client-with-retry.ts#L157)
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

#### Defined in

[src/types/algokit-core-bridge.ts:59](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algokit-core-bridge.ts#L59)
[src/types/algokit-core-bridge.ts:66](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algokit-core-bridge.ts#L66)

## Properties

Expand All @@ -52,7 +52,7 @@

#### Defined in

[src/types/algokit-core-bridge.ts:56](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algokit-core-bridge.ts#L56)
[src/types/algokit-core-bridge.ts:63](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algokit-core-bridge.ts#L63)

___

Expand All @@ -62,7 +62,7 @@ ___

#### Defined in

[src/types/algokit-core-bridge.ts:57](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algokit-core-bridge.ts#L57)
[src/types/algokit-core-bridge.ts:64](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algokit-core-bridge.ts#L64)

## Methods

Expand All @@ -86,7 +86,7 @@ algodApi.SecurityAuthentication.applySecurityAuthentication

#### Defined in

[src/types/algokit-core-bridge.ts:73](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algokit-core-bridge.ts#L73)
[src/types/algokit-core-bridge.ts:80](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algokit-core-bridge.ts#L80)

___

Expand All @@ -104,4 +104,4 @@ algodApi.SecurityAuthentication.getName

#### Defined in

[src/types/algokit-core-bridge.ts:69](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algokit-core-bridge.ts#L69)
[src/types/algokit-core-bridge.ts:76](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/algokit-core-bridge.ts#L76)
Loading