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.615.2
speakeasyVersion: 1.634.2
sources:
chainkit-source:
sourceNamespace: avalanche-sdk-chainkit-typescript
sourceRevisionDigest: sha256:cfe370ddd4ba0a6e5a340c0b2d68cedb640d48b60864a473cdaaf79791556ba4
sourceBlobDigest: sha256:5190eecf888dbdc22a9ed99701a3e3e49dc60b8891a330aabc78799b081131ef
sourceRevisionDigest: sha256:59ac504c0511850d2633bfc83cee76f200bb0fca87e8f01cbb6f175da8d57661
sourceBlobDigest: sha256:944c2b40205a220b3babc11cb5ec0f888d5c0486e991b02768496e6306bc9f7a
tags:
- latest
- speakeasy-sdk-regen-1757788697
- speakeasy-sdk-regen-1759257679
- 1.0.0
targets:
chainkit-sdk:
source: chainkit-source
sourceNamespace: avalanche-sdk-chainkit-typescript
sourceRevisionDigest: sha256:cfe370ddd4ba0a6e5a340c0b2d68cedb640d48b60864a473cdaaf79791556ba4
sourceBlobDigest: sha256:5190eecf888dbdc22a9ed99701a3e3e49dc60b8891a330aabc78799b081131ef
sourceRevisionDigest: sha256:59ac504c0511850d2633bfc83cee76f200bb0fca87e8f01cbb6f175da8d57661
sourceBlobDigest: sha256:944c2b40205a220b3babc11cb5ec0f888d5c0486e991b02768496e6306bc9f7a
codeSamplesNamespace: avalanche-sdk-chainkit-typescript-code-samples
codeSamplesRevisionDigest: sha256:73b8822b1ace940bedd01c7efbf7590e228ae09358295c207bab303eba939a23
codeSamplesRevisionDigest: sha256:74707066b1a60fd6f21f9d4940b6105300655b87912a373dc24e9638acc82b9d
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
21 changes: 8 additions & 13 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: 479a52111fec3db2812074b39b435d3f
docChecksum: 3386adb8fc02033c5c7a66a83e459def
docVersion: 1.0.0
speakeasyVersion: 1.615.2
generationVersion: 2.698.4
releaseVersion: 0.3.0-alpha.2
configChecksum: 3133161de03981e4684a6e6d384f6441
speakeasyVersion: 1.634.2
generationVersion: 2.721.3
releaseVersion: 0.3.0-alpha.3
configChecksum: ef9b3a4b4a3677200c1fb51438254e60
repoURL: https://github.com/ava-labs/avalanche-sdk-typescript.git
repoSubDirectory: chainkit
installationURL: https://gitpkg.now.sh/ava-labs/avalanche-sdk-typescript/chainkit
Expand All @@ -15,7 +15,7 @@ features:
typescript:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.12
core: 3.21.22
core: 3.21.26
defaultEnabledRetries: 0.1.0
deprecations: 2.81.1
enumUnions: 0.1.0
Expand All @@ -36,7 +36,7 @@ features:
responseFormat: 0.2.3
retries: 2.83.0
sdkHooks: 0.3.0
unions: 2.85.11
unions: 2.86.0
webhooks: 1.5.0
generatedFiles:
- .gitattributes
Expand Down Expand Up @@ -6170,9 +6170,4 @@ examples:
application/json: {"message": "<value>", "statusCode": 503, "error": "Service Unavailable"}
examplesVersion: 1.0.2
generatedTests: {}
releaseNotes: |
## Typescript SDK Changes Detected:
* `avalanche.metrics.chains.getIcmMetrics()`: **Added**
* `avalanche.metrics.chains.getIcmRollingWindowMetrics()`: **Added**
* `avalanche.avaxSupply.get()`: **Added**
* `avalanche.metrics.chains.getTeleporterMetrics()`: **Deleted** **Breaking** :warning:
releaseNotes: "## Typescript SDK Changes Detected:\n* `avalanche.metrics.chains.getMetrics()`: \n * `request.metric` **Changed**\n* `avalanche.metrics.chains.getRollingWindowMetrics()`: \n * `request.metric` **Changed**\n* `avalanche.metrics.chains.getIcmMetrics()`: \n * `request.metric` **Changed**\n* `avalanche.metrics.chains.getIcmRollingWindowMetrics()`: \n * `request.metric` **Changed**\n"
4 changes: 3 additions & 1 deletion chainkit/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
typescript:
version: 0.3.0-alpha.2
version: 0.3.0-alpha.3
acceptHeaderEnum: true
additionalDependencies:
dependencies:
json-canonicalize: ^1.0.6
Expand Down Expand Up @@ -56,6 +57,7 @@ typescript:
jsonpath: rfc9535
maxMethodParams: 0
methodArguments: require-security-and-request
modelPropertyCasing: camel
moduleFormat: dual
outputModelSuffix: output
packageName: '@avalanche-sdk/chainkit'
Expand Down
7 changes: 2 additions & 5 deletions chainkit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,7 @@ bun add @avalanche-sdk/chainkit
### Yarn

```bash
yarn add @avalanche-sdk/chainkit zod

# Note that Yarn does not install peer dependencies automatically. You will need
# to install zod as shown above.
yarn add @avalanche-sdk/chainkit
```

> [!NOTE]
Expand Down Expand Up @@ -879,7 +876,7 @@ httpClient.addHook("requestError", (error, request) => {
console.groupEnd();
});

const sdk = new Avalanche({ httpClient });
const sdk = new Avalanche({ httpClient: httpClient });
```
<!-- End Custom HTTP Client [http-client] -->

Expand Down
12 changes: 11 additions & 1 deletion chainkit/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,14 @@ Based on:
### Generated
- [typescript v0.3.0-alpha.2] chainkit
### Releases
- [NPM v0.3.0-alpha.2] https://www.npmjs.com/package/@avalanche-sdk/chainkit/v/0.3.0-alpha.2 - chainkit
- [NPM v0.3.0-alpha.2] https://www.npmjs.com/package/@avalanche-sdk/chainkit/v/0.3.0-alpha.2 - chainkit

## 2025-10-05 18:39:42
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.634.2 (2.721.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.3.0-alpha.3] chainkit
### Releases
- [NPM v0.3.0-alpha.3] https://www.npmjs.com/package/@avalanche-sdk/chainkit/v/0.3.0-alpha.3 - chainkit
2 changes: 1 addition & 1 deletion chainkit/docs/models/components/chainmetric.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ let value: ChainMetric = "activeAddresses";
## Values

```typescript
"activeAddresses" | "activeSenders" | "cumulativeTxCount" | "cumulativeAddresses" | "cumulativeContracts" | "cumulativeDeployers" | "gasUsed" | "txCount" | "avgGps" | "maxGps" | "avgTps" | "maxTps" | "avgGasPrice" | "maxGasPrice" | "feesPaid"
"activeAddresses" | "activeSenders" | "cumulativeTxCount" | "cumulativeAddresses" | "cumulativeContracts" | "cumulativeDeployers" | "contracts" | "deployers" | "gasUsed" | "txCount" | "avgGps" | "maxGps" | "avgTps" | "maxTps" | "avgGasPrice" | "maxGasPrice" | "feesPaid"
```
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ let value: ChainRollingWindowMetric = "txCount";
## Values

```typescript
"gasUsed" | "txCount" | "avgGps" | "maxGps" | "avgTps" | "maxTps" | "avgGasPrice" | "maxGasPrice" | "feesPaid"
"gasUsed" | "txCount" | "avgGps" | "maxGps" | "avgTps" | "maxTps" | "avgGasPrice" | "maxGasPrice" | "feesPaid" | "contracts" | "deployers"
```
20 changes: 10 additions & 10 deletions chainkit/docs/models/components/contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,37 @@

## Supported Types

### `components.Erc20Contract`
### `components.Erc721Contract`

```typescript
const value: components.Erc20Contract = {
const value: components.Erc721Contract = {
name: "Wrapped AVAX",
address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
ercType: "ERC-20",
ercType: "ERC-721",
symbol: "WAVAX",
decimals: 18,
};
```

### `components.Erc721Contract`
### `components.Erc1155Contract`

```typescript
const value: components.Erc721Contract = {
const value: components.Erc1155Contract = {
name: "Wrapped AVAX",
address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
ercType: "ERC-721",
ercType: "ERC-1155",
symbol: "WAVAX",
};
```

### `components.Erc1155Contract`
### `components.Erc20Contract`

```typescript
const value: components.Erc1155Contract = {
const value: components.Erc20Contract = {
name: "Wrapped AVAX",
address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
ercType: "ERC-1155",
ercType: "ERC-20",
symbol: "WAVAX",
decimals: 18,
};
```

Expand Down
2 changes: 1 addition & 1 deletion chainkit/docs/models/components/icmmetric.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ let value: ICMMetric = "ICMSrcDestMsgCount";
## Values

```typescript
"ICMSrcDestMsgCount" | "ICMSrcAggMsgCount" | "ICMDestAggMsgCount" | "ICMNetworkMsgCount"
"ICMSrcDestMsgCount" | "ICMSrcAggMsgCount" | "ICMSrcMsgCount" | "ICMDestAggMsgCount" | "ICMDestMsgCount" | "ICMNetworkAggMsgCount" | "ICMNetworkMsgCount"
```
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ let value: ICMRollingWindowMetric = "ICMSrcRollingWindowMsgCount";
## Values

```typescript
"ICMSrcRollingWindowMsgCount" | "ICMDestRollingWindowMsgCount" | "ICMSrcDestRollingWindowMsgCount" | "ICMNetworkRollingWindowMsgCount"
"ICMSrcRollingWindowMsgCount" | "ICMDestRollingWindowMsgCount" | "ICMSrcDestRollingWindowMsgCount" | "ICMNetworkRollingWindowMsgCount" | "ICMSrcRollingWindowAggMsgCount" | "ICMDestRollingWindowAggMsgCount" | "ICMNetworkRollingWindowAggMsgCount"
```
34 changes: 17 additions & 17 deletions chainkit/docs/models/components/listicmmessagesresponsemessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

## Supported Types

### `components.DeliveredIcmMessage`
### `components.PendingIcmMessage`

```typescript
const value: components.DeliveredIcmMessage = {
const value: components.PendingIcmMessage = {
messageId: "<id>",
icmContractAddress: "<value>",
sourceBlockchainId: "<id>",
Expand All @@ -16,9 +16,9 @@ const value: components.DeliveredIcmMessage = {
messageNonce: "<value>",
from: "<value>",
to: "<value>",
messageExecuted: true,
messageExecuted: false,
receipts: [],
receiptDelivered: true,
receiptDelivered: false,
rewardDetails: {
address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
name: "Wrapped AVAX",
Expand All @@ -38,21 +38,14 @@ const value: components.DeliveredIcmMessage = {
timestamp: 6459.73,
gasSpent: "<value>",
},
destinationTransaction: {
txHash: "<value>",
timestamp: 8250.11,
gasSpent: "<value>",
rewardRedeemer: "<value>",
delivererAddress: "<value>",
},
status: "delivered",
status: "pending",
};
```

### `components.PendingIcmMessage`
### `components.DeliveredIcmMessage`

```typescript
const value: components.PendingIcmMessage = {
const value: components.DeliveredIcmMessage = {
messageId: "<id>",
icmContractAddress: "<value>",
sourceBlockchainId: "<id>",
Expand All @@ -62,9 +55,9 @@ const value: components.PendingIcmMessage = {
messageNonce: "<value>",
from: "<value>",
to: "<value>",
messageExecuted: false,
messageExecuted: true,
receipts: [],
receiptDelivered: false,
receiptDelivered: true,
rewardDetails: {
address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
name: "Wrapped AVAX",
Expand All @@ -84,7 +77,14 @@ const value: components.PendingIcmMessage = {
timestamp: 6459.73,
gasSpent: "<value>",
},
status: "pending",
destinationTransaction: {
txHash: "<value>",
timestamp: 8250.11,
gasSpent: "<value>",
rewardRedeemer: "<value>",
delivererAddress: "<value>",
},
status: "delivered",
};
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

## Supported Types

### `components.DeliveredTeleporterMessage`
### `components.PendingTeleporterMessage`

```typescript
const value: components.DeliveredTeleporterMessage = {
const value: components.PendingTeleporterMessage = {
messageId: "<id>",
teleporterContractAddress: "<value>",
sourceBlockchainId: "<id>",
Expand Down Expand Up @@ -38,21 +38,14 @@ const value: components.DeliveredTeleporterMessage = {
timestamp: 1403.23,
gasSpent: "<value>",
},
destinationTransaction: {
txHash: "<value>",
timestamp: 4770.43,
gasSpent: "<value>",
rewardRedeemer: "<value>",
delivererAddress: "<value>",
},
status: "delivered",
status: "pending",
};
```

### `components.PendingTeleporterMessage`
### `components.DeliveredTeleporterMessage`

```typescript
const value: components.PendingTeleporterMessage = {
const value: components.DeliveredTeleporterMessage = {
messageId: "<id>",
teleporterContractAddress: "<value>",
sourceBlockchainId: "<id>",
Expand Down Expand Up @@ -84,7 +77,14 @@ const value: components.PendingTeleporterMessage = {
timestamp: 1403.23,
gasSpent: "<value>",
},
status: "pending",
destinationTransaction: {
txHash: "<value>",
timestamp: 4770.43,
gasSpent: "<value>",
rewardRedeemer: "<value>",
delivererAddress: "<value>",
},
status: "delivered",
};
```

Expand Down
28 changes: 14 additions & 14 deletions chainkit/docs/models/components/validator.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,20 @@ const value: components.ActiveValidatorDetails = {
};
```

### `components.PendingValidatorDetails`

```typescript
const value: components.PendingValidatorDetails = {
txHash: "<value>",
nodeId: "<id>",
subnetId: "<id>",
amountStaked: "<value>",
startTimestamp: 9843.29,
endTimestamp: 5112.58,
validationStatus: "pending",
};
```

### `components.CompletedValidatorDetails`

```typescript
Expand Down Expand Up @@ -66,17 +80,3 @@ const value: components.RemovedValidatorDetails = {
};
```

### `components.PendingValidatorDetails`

```typescript
const value: components.PendingValidatorDetails = {
txHash: "<value>",
nodeId: "<id>",
subnetId: "<id>",
amountStaked: "<value>",
startTimestamp: 9843.29,
endTimestamp: 5112.58,
validationStatus: "pending",
};
```

Loading