Skip to content
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
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.658.2
speakeasyVersion: 1.659.0
sources:
chainkit-source:
sourceNamespace: avalanche-sdk-chainkit-typescript
sourceRevisionDigest: sha256:9fee7d090be1dd467728b0ba83dabc5c4a8d1c507678f99832acdfd9aa6fb010
sourceBlobDigest: sha256:791df338e1bc1a9d1dc86e284ae6404bd667a7f4957a5623b0ef6d4bc126711b
sourceRevisionDigest: sha256:a2725e93698de1ec0e06309de395a7be6b7d18f64148e05150a262aa7f76a608
sourceBlobDigest: sha256:179e4d223f82564b1c25d36dbf57c7a232d861a96bd54c3ad44089d4262716d7
tags:
- latest
- speakeasy-sdk-regen-1763232057
- speakeasy-sdk-regen-1763577819
- 1.0.0
targets:
chainkit-sdk:
source: chainkit-source
sourceNamespace: avalanche-sdk-chainkit-typescript
sourceRevisionDigest: sha256:9fee7d090be1dd467728b0ba83dabc5c4a8d1c507678f99832acdfd9aa6fb010
sourceBlobDigest: sha256:791df338e1bc1a9d1dc86e284ae6404bd667a7f4957a5623b0ef6d4bc126711b
sourceRevisionDigest: sha256:a2725e93698de1ec0e06309de395a7be6b7d18f64148e05150a262aa7f76a608
sourceBlobDigest: sha256:179e4d223f82564b1c25d36dbf57c7a232d861a96bd54c3ad44089d4262716d7
codeSamplesNamespace: avalanche-sdk-chainkit-typescript-code-samples
codeSamplesRevisionDigest: sha256:f1944be210c241d8993f8b95d9ca896f31322ac89f11f906f8cc3ab84404309c
codeSamplesRevisionDigest: sha256:0f57006ca4e06cd1c43089c12b5c185b31e98856e28bda13e441caafc9f9a6a1
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
16 changes: 10 additions & 6 deletions chainkit/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 125b8491-d8a2-4e4f-ad7e-83badf249c68
management:
docChecksum: 527ef490a067f9f34c8b22e229aee190
docChecksum: 15cecdbe980748d5e71fd0a1cef97ddf
docVersion: 1.0.0
speakeasyVersion: 1.658.2
speakeasyVersion: 1.659.0
generationVersion: 2.755.9
releaseVersion: 0.3.0-alpha.10
configChecksum: 23dc04d58371ed9ebb90e06ee91d1be3
releaseVersion: 0.3.0-alpha.11
configChecksum: 7c73dbc14327a4c23c9f491eda8c79b2
repoURL: https://github.com/ava-labs/avalanche-sdk-typescript.git
repoSubDirectory: chainkit
installationURL: https://gitpkg.now.sh/ava-labs/avalanche-sdk-typescript/chainkit
Expand Down Expand Up @@ -493,7 +493,9 @@ generatedFiles:
- docs/models/operations/getutxosbyaddressesv2globals.md
- docs/models/operations/getutxosbyaddressesv2request.md
- docs/models/operations/getutxosbyaddressesv2response.md
- docs/models/operations/getutxosbyaddressesv2responsebody.md
- docs/models/operations/getutxosbyaddressesv2responsebody1.md
- docs/models/operations/getutxosbyaddressesv2responsebody2.md
- docs/models/operations/getutxosbyaddressesv2responseresult.md
- docs/models/operations/getvalidatorsbydaterangerequest.md
- docs/models/operations/getvalidatorsbydaterangeresponse.md
- docs/models/operations/getvertexbyhashglobals.md
Expand Down Expand Up @@ -6288,6 +6290,8 @@ examples:
application/json: {"message": "<value>", "statusCode": 502, "error": "Bad Gateway"}
"503":
application/json: {"message": ["<value 1>", "<value 2>"], "statusCode": 503, "error": "Service Unavailable"}
"201":
application/json: {"utxos": [], "chainInfo": {"chainName": "p-chain", "network": "mainnet"}}
live-check:
speakeasy-default-live-check:
responses:
Expand Down Expand Up @@ -6334,4 +6338,4 @@ examplesVersion: 1.0.2
generatedTests: {}
releaseNotes: |
## Typescript SDK Changes Detected:
* `avalanche.avaxSupply.get()`: `response.l1validatorfees` **Added**
* `avalanche.data.primaryNetwork.utxos.listByAddressesV2()`: `response.status[201]` **Added** **Breaking** :warning:
2 changes: 1 addition & 1 deletion chainkit/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
typescript:
version: 0.3.0-alpha.10
version: 0.3.0-alpha.11
acceptHeaderEnum: true
additionalDependencies:
dependencies:
Expand Down
12 changes: 11 additions & 1 deletion chainkit/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,14 @@ Based on:
### Generated
- [typescript v0.3.0-alpha.10] chainkit
### Releases
- [NPM v0.3.0-alpha.10] https://www.npmjs.com/package/@avalanche-sdk/chainkit/v/0.3.0-alpha.10 - chainkit
- [NPM v0.3.0-alpha.10] https://www.npmjs.com/package/@avalanche-sdk/chainkit/v/0.3.0-alpha.10 - chainkit

## 2025-11-20 21:26:03
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.659.0 (2.755.9) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.3.0-alpha.11] chainkit
### Releases
- [NPM v0.3.0-alpha.11] https://www.npmjs.com/package/@avalanche-sdk/chainkit/v/0.3.0-alpha.11 - chainkit
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ let value: GetUtxosByAddressesV2Response = {

## Fields

| Field | Type | Required | Description |
| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- |
| `result` | *operations.GetUtxosByAddressesV2ResponseBody* | :heavy_check_mark: | N/A |
| Field | Type | Required | Description |
| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ |
| `result` | *operations.GetUtxosByAddressesV2ResponseResult* | :heavy_check_mark: | N/A |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GetUtxosByAddressesV2ResponseBody
# GetUtxosByAddressesV2ResponseBody1

Successful response

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# GetUtxosByAddressesV2ResponseBody2

Successful response


## Supported Types

### `components.ListPChainUtxosResponse`

```typescript
const value: components.ListPChainUtxosResponse = {
utxos: [
{
addresses: [
"avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw",
],
asset: {
assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof",
name: "Avalanche",
symbol: "AVAX",
denomination: 9,
type: "nft",
amount: "5001000",
},
consumedOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
consumingTxHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c",
createdOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
utxoId: "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC",
amount: "871.14",
assetId: "<id>",
blockNumber: "<value>",
blockTimestamp: 9647.88,
outputIndex: 5158.07,
txHash: "<value>",
utxoType: "STAKE",
},
],
chainInfo: {
chainName: "c-chain",
network: "mainnet",
},
};
```

### `components.ListUtxosResponse`

```typescript
const value: components.ListUtxosResponse = {
utxos: [
{
addresses: [
"avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw",
],
asset: {
assetId: "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof",
name: "Avalanche",
symbol: "AVAX",
denomination: 9,
type: "nft",
amount: "5001000",
},
consumedOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
consumingTxHash: "3j9JpF1aGuQtLLbo3YkvvKkWrCZViXZjdeJQWUSEY5hcqUn2c",
createdOnChainId: "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
utxoId: "68vLva9kfKUsX88ZPM8jdbf8qHUZRoZSFH6NdpAVTspkfrXDC",
consumingTxTimestamp: 1599696000,
creationTxHash: "FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z",
credentials: [
{
signature:
"bWWoZUu0Z3STjuk/+2az7M4vP0oqc9NtiA7kOdqINCIE/2+5va5R1KNCWwEX5jE1xVHLvAxU2LHTN5gK8m84HwA",
publicKey: "AdMQOtubgBFFJu++0faHPIIA6KmdZ2ERErMRGzyy6juI",
},
],
locktime: 0,
outputIndex: "38",
threshold: 1,
timestamp: 1599696000,
utxoType: "mint",
},
],
chainInfo: {
chainName: "c-chain",
network: "mainnet",
},
};
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# GetUtxosByAddressesV2ResponseResult


## Supported Types

### `operations.GetUtxosByAddressesV2ResponseBody1`

```typescript
const value: operations.GetUtxosByAddressesV2ResponseBody1 = {
utxos: [],
chainInfo: {
chainName: "c-chain",
network: "mainnet",
},
};
```

### `operations.GetUtxosByAddressesV2ResponseBody2`

```typescript
const value: operations.GetUtxosByAddressesV2ResponseBody2 = {
utxos: [],
chainInfo: {
chainName: "c-chain",
network: "mainnet",
},
};
```

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import { ListPendingPrimaryNetworkRewardsRequest } from "@avalanche-sdk/chainkit/models/operations";

let value: ListPendingPrimaryNetworkRewardsRequest = {
addresses: "avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg",
nodeIds:
"NodeID-111111111111111111116DBWJs,NodeID-222222222222222222227DBWJs",
sortOrder: "asc",
Expand All @@ -17,7 +16,7 @@ let value: ListPendingPrimaryNetworkRewardsRequest = {

| Field | Type | Required | Description | Example |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `addresses` | *string* | :heavy_minus_sign: | A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". One of addresses or nodeIds is required. | avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg |
| `addresses` | *string* | :heavy_minus_sign: | A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". One of addresses or nodeIds is required. | |
| `pageToken` | *string* | :heavy_minus_sign: | A page token, received from a previous list call. Provide this to retrieve the subsequent page. | |
| `pageSize` | *number* | :heavy_minus_sign: | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100. | 10 |
| `network` | [components.GlobalParamNetwork](../../models/components/globalparamnetwork.md) | :heavy_minus_sign: | Either mainnet or testnet/fuji. | mainnet |
Expand Down
2 changes: 1 addition & 1 deletion chainkit/examples/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions chainkit/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion chainkit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@avalanche-sdk/chainkit",
"version": "0.3.0-alpha.10",
"version": "0.3.0-alpha.11",
"author": "Sayan Kar",
"license": "BSD-3-Clause",
"publishConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ async function $do(
M.json(200, operations.GetUtxosByAddressesV2Response$inboundSchema, {
key: "Result",
}),
M.json(201, operations.GetUtxosByAddressesV2Response$inboundSchema, {
key: "Result",
}),
M.jsonErr(400, errors.BadRequestError$inboundSchema),
M.jsonErr(401, errors.UnauthorizedError$inboundSchema),
M.jsonErr(403, errors.ForbiddenError$inboundSchema),
Expand Down
4 changes: 2 additions & 2 deletions chainkit/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "1.0.0",
sdkVersion: "0.3.0-alpha.10",
sdkVersion: "0.3.0-alpha.11",
genVersion: "2.755.9",
userAgent:
"speakeasy-sdk/typescript 0.3.0-alpha.10 2.755.9 1.0.0 @avalanche-sdk/chainkit",
"speakeasy-sdk/typescript 0.3.0-alpha.11 2.755.9 1.0.0 @avalanche-sdk/chainkit",
} as const;
2 changes: 1 addition & 1 deletion chainkit/src/mcp-server/mcp-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const routes = buildRouteMap({
export const app = buildApplication(routes, {
name: "mcp",
versionInfo: {
currentVersion: "0.3.0-alpha.10",
currentVersion: "0.3.0-alpha.11",
},
});

Expand Down
2 changes: 1 addition & 1 deletion chainkit/src/mcp-server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export function createMCPServer(deps: {
}) {
const server = new McpServer({
name: "Avalanche",
version: "0.3.0-alpha.10",
version: "0.3.0-alpha.11",
});

const client = new AvalancheCore({
Expand Down
Loading