Skip to content

Commit 4c68076

Browse files
authored
feat(turbo-ci): Add out-of-sync ts-sdk ci workflow (#8750)
Closes #7590 [run-ci]
1 parent 4a0735e commit 4c68076

File tree

5 files changed

+69
-8
lines changed

5 files changed

+69
-8
lines changed

.changeset/quiet-pandas-sneeze.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@iota/graphql-transport': minor
3+
'@iota/iota-sdk': minor
4+
---
5+
6+
Sync with Node changes.

.github/workflows/turbo_hierarchy.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,49 @@ jobs:
3737
uses: "./.github/actions/diffs"
3838
id: diff
3939

40+
sync:
41+
name: ts-sdk sync with Node Changes
42+
runs-on: self-hosted-x64
43+
concurrency:
44+
group: turbo-sync-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
45+
cancel-in-progress: ${{ github.ref != 'refs/heads/develop' }}
46+
if: (github.event.pull_request.draft == false || contains(github.event.pull_request.body, '[run-ci]'))
47+
steps:
48+
- name: Checkout
49+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
50+
with:
51+
fetch-depth: 2
52+
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
53+
- name: Install Nodejs
54+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
55+
with:
56+
node-version: "20"
57+
cache: "pnpm"
58+
- name: Install dependencies
59+
run: pnpm install --frozen-lockfile
60+
- name: Turbo Cache
61+
id: turbo-cache
62+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
63+
with:
64+
path: .turbo
65+
key: turbo-${{ runner.os }}-${{ github.sha }}
66+
restore-keys: |
67+
turbo-${{ runner.os }}-
68+
- name: Node Sync
69+
run: |
70+
cd sdk/typescript
71+
pnpm update-graphql-schemas
72+
pnpm update-open-rpc-client-types
73+
cd ../graphql-transport
74+
pnpm codegen
75+
if [ -z "$(git status --porcelain)" ]; then
76+
echo "No sync needed"
77+
else
78+
echo "Sync is needed!"
79+
git status
80+
exit 1
81+
fi
82+
4083
audit:
4184
name: pnpm audit
4285
runs-on: self-hosted-x64

sdk/graphql-transport/src/generated/queries.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,12 @@ export type Epoch = {
14981498
* epoch.
14991499
*/
15001500
transactionBlocks: TransactionBlockConnection;
1501-
/** Validator related properties, including the active validators. */
1501+
/**
1502+
* Validator related properties, including the active validators.
1503+
*
1504+
* For epochs other than the current the data provided refer to the start
1505+
* of the epoch.
1506+
*/
15021507
validatorSet?: Maybe<ValidatorSet>;
15031508
};
15041509

@@ -5562,14 +5567,17 @@ export type Validator = {
55625567
operationCap?: Maybe<MoveObject>;
55635568
/**
55645569
* Pending pool token withdrawn during the current epoch, emptied at epoch
5565-
* boundaries.
5570+
* boundaries. Zero for past epochs.
55665571
*/
55675572
pendingPoolTokenWithdraw?: Maybe<Scalars['BigInt']['output']>;
5568-
/** Pending stake amount for this epoch. */
5573+
/**
5574+
* Pending stake amount for the current epoch, emptied at epoch boundaries.
5575+
* Zero for past epochs.
5576+
*/
55695577
pendingStake?: Maybe<Scalars['BigInt']['output']>;
55705578
/**
55715579
* Pending stake withdrawn during the current epoch, emptied at epoch
5572-
* boundaries.
5580+
* boundaries. Zero for past epochs.
55735581
*/
55745582
pendingTotalIotaWithdraw?: Maybe<Scalars['BigInt']['output']>;
55755583
/** Total number of pool tokens issued by the pool. */

sdk/typescript/src/client/types/params.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ export interface UnsafeMoveCallParams {
460460
typeArguments: string[];
461461
/**
462462
* the arguments to be passed into the Move function, in
463-
* [IotaJson](/developer/references/iota-api) format
463+
* [IotaJson](https://docs.iota.org/developer/references/iota-api) format
464464
*/
465465
arguments: unknown[];
466466
/**

sdk/typescript/src/graphql/generated/2025.2/schema.graphql

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)