diff --git a/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/ActiveSetUpdate.ts b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/ActiveSetUpdate.ts new file mode 100644 index 0000000000..20e5640581 --- /dev/null +++ b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/ActiveSetUpdate.ts @@ -0,0 +1,18 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * Specification on how the active set should be updated. + */ +export type ActiveSetUpdate = { +/** + * The expected number of nodes assigned entry gateway role (i.e. [`Role::EntryGateway`]) + */ +entry_gateways: number, +/** + * The expected number of nodes assigned exit gateway role (i.e. [`Role::ExitGateway`]) + */ +exit_gateways: number, +/** + * The expected number of nodes assigned the 'mixnode' role, i.e. total of [`Role::Layer1`], [`Role::Layer2`] and [`Role::Layer3`]. + */ +mixnodes: number, }; diff --git a/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/GatewayConfigUpdate.ts b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/GatewayConfigUpdate.ts new file mode 100644 index 0000000000..44738d7f32 --- /dev/null +++ b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/GatewayConfigUpdate.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type GatewayConfigUpdate = { host: string, mix_port: number, clients_port: number, location: string, version: string, }; diff --git a/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/Interval.ts b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/Interval.ts new file mode 100644 index 0000000000..5efd2d2dc5 --- /dev/null +++ b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/Interval.ts @@ -0,0 +1,30 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * Specification of a rewarding interval. + */ +export type Interval = { +/** + * Monotonously increasing id of this interval. + */ +id: number, +/** + * Number of epochs in this interval. + */ +epochs_in_interval: number, +/** + * The timestamp indicating the start of the current rewarding epoch. + */ +current_epoch_start: string, +/** + * Monotonously increasing id of the current epoch in this interval. + */ +current_epoch_id: number, +/** + * The duration of all epochs in this interval. + */ +epoch_length: { secs: number; nanos: number; }, +/** + * The total amount of elapsed epochs since the first epoch of the first interval. + */ +total_elapsed_epochs: number, }; diff --git a/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/IntervalRewardParams.ts b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/IntervalRewardParams.ts new file mode 100644 index 0000000000..a582bf138b --- /dev/null +++ b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/IntervalRewardParams.ts @@ -0,0 +1,51 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * Parameters required by the mix-mining reward distribution that do not change during an interval. + */ +export type IntervalRewardParams = { +/** + * Current value of the rewarding pool. + * It is expected to be constant throughout the interval. + */ +reward_pool: string, +/** + * Current value of the staking supply. + * It is expected to be constant throughout the interval. + */ +staking_supply: string, +/** + * Defines the percentage of stake needed to reach saturation for all of the nodes in the rewarded set. + * Also known as `beta`. + */ +staking_supply_scale_factor: string, +/** + * Current value of the computed reward budget per epoch, per node. + * It is expected to be constant throughout the interval. + */ +epoch_reward_budget: string, +/** + * Current value of the stake saturation point. + * It is expected to be constant throughout the interval. + */ +stake_saturation_point: string, +/** + * Current value of the sybil resistance percent (`alpha`). + * It is not really expected to be changing very often. + * As a matter of fact, unless there's a very specific reason, it should remain constant. + */ +sybil_resistance: string, +/** + * Current active set work factor. + * It is not really expected to be changing very often. + * As a matter of fact, unless there's a very specific reason, it should remain constant. + */ +active_set_work_factor: string, +/** + * Current maximum interval pool emission. + * Assuming all nodes in the rewarded set are fully saturated and have 100% performance, + * this % of the reward pool would get distributed in rewards to all operators and its delegators. + * It is not really expected to be changing very often. + * As a matter of fact, unless there's a very specific reason, it should remain constant. + */ +interval_pool_emission: string, }; diff --git a/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/IntervalRewardingParamsUpdate.ts b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/IntervalRewardingParamsUpdate.ts new file mode 100644 index 0000000000..7ed7f7907a --- /dev/null +++ b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/IntervalRewardingParamsUpdate.ts @@ -0,0 +1,35 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { RewardedSetParams } from "./RewardedSetParams"; + +/** + * Specification on how the rewarding params should be updated. + */ +export type IntervalRewardingParamsUpdate = { +/** + * Defines the new value of the reward pool. + */ +reward_pool: string | null, +/** + * Defines the new value of the staking supply. + */ +staking_supply: string | null, +/** + * Defines the new value of the staking supply scale factor. + */ +staking_supply_scale_factor: string | null, +/** + * Defines the new value of the sybil resistance percent. + */ +sybil_resistance_percent: string | null, +/** + * Defines the new value of the active set work factor. + */ +active_set_work_factor: string | null, +/** + * Defines the new value of the interval pool emission rate. + */ +interval_pool_emission: string | null, +/** + * Defines the parameters of the rewarded set. + */ +rewarded_set_params: RewardedSetParams | null, }; diff --git a/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/MixNodeConfigUpdate.ts b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/MixNodeConfigUpdate.ts new file mode 100644 index 0000000000..96bd132f52 --- /dev/null +++ b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/MixNodeConfigUpdate.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type MixNodeConfigUpdate = { host: string, mix_port: number, verloc_port: number, http_api_port: number, version: string, }; diff --git a/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/Mixnode.ts b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/Mixnode.ts new file mode 100644 index 0000000000..ada169d2b4 --- /dev/null +++ b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/Mixnode.ts @@ -0,0 +1,34 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * Information provided by the node operator during bonding that are used to allow other entities to use the services of this node. + */ +export type MixNode = { +/** + * Network address of this mixnode, for example 1.1.1.1 or foo.mixnode.com + */ +host: string, +/** + * Port used by this mixnode for listening for mix packets. + */ +mix_port: number, +/** + * Port used by this mixnode for listening for verloc requests. + */ +verloc_port: number, +/** + * Port used by this mixnode for its http(s) API + */ +http_api_port: number, +/** + * Base58-encoded x25519 public key used for sphinx key derivation. + */ +sphinx_key: string, +/** + * Base58-encoded ed25519 EdDSA public key. + */ +identity_key: string, +/** + * The self-reported semver version of this mixnode. + */ +version: string, }; diff --git a/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/NodeConfigUpdate.ts b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/NodeConfigUpdate.ts new file mode 100644 index 0000000000..b39d3997e4 --- /dev/null +++ b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/NodeConfigUpdate.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type NodeConfigUpdate = { host: string | null, custom_http_port: number | null, restore_default_http_port: boolean, }; diff --git a/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/NodeRewardingParameters.ts b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/NodeRewardingParameters.ts new file mode 100644 index 0000000000..8354619ff9 --- /dev/null +++ b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/NodeRewardingParameters.ts @@ -0,0 +1,15 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * Parameters used for rewarding particular node. + */ +export type NodeRewardingParameters = { +/** + * Performance of the particular node in the current epoch. + */ +performance: string, +/** + * Amount of work performed by this node in the current epoch + * also known as 'omega' in the paper + */ +work_factor: string, }; diff --git a/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/NymNode.ts b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/NymNode.ts new file mode 100644 index 0000000000..a113827957 --- /dev/null +++ b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/NymNode.ts @@ -0,0 +1,20 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * Information provided by the node operator during bonding that are used to allow other entities to use the services of this node. + */ +export type NymNode = { +/** + * Network address of this nym-node, for example 1.1.1.1 or foo.mixnode.com + * that is used to discover other capabilities of this node. + */ +host: string, +/** + * Allow specifying custom port for accessing the http, and thus self-described, api + * of this node for the capabilities discovery. + */ +custom_http_port: number | null, +/** + * Base58-encoded ed25519 EdDSA public key. + */ +identity_key: string, }; diff --git a/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/PendingMixnodeChanges.ts b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/PendingMixnodeChanges.ts new file mode 100644 index 0000000000..cddbfdba80 --- /dev/null +++ b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/PendingMixnodeChanges.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type PendingMixNodeChanges = { pledge_change: number | null, cost_params_change: number | null, }; diff --git a/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/PendingNodeChanges.ts b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/PendingNodeChanges.ts new file mode 100644 index 0000000000..b1667a190e --- /dev/null +++ b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/PendingNodeChanges.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type PendingNodeChanges = { pledge_change: number | null, cost_params_change: number | null, }; diff --git a/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/RewardEstimate.ts b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/RewardEstimate.ts new file mode 100644 index 0000000000..9eea44b06e --- /dev/null +++ b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/RewardEstimate.ts @@ -0,0 +1,20 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type RewardEstimate = { +/** + * The amount of **decimal** coins that are going to get distributed to the node, + * i.e. the operator and all its delegators. + */ +total_node_reward: string, +/** + * The share of the reward that is going to get distributed to the node operator. + */ +operator: string, +/** + * The share of the reward that is going to get distributed among the node delegators. + */ +delegates: string, +/** + * The operating cost of this node. Note: it's already included in the operator reward. + */ +operating_cost: string, }; diff --git a/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/RewardedSetParams.ts b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/RewardedSetParams.ts new file mode 100644 index 0000000000..e1d09ac0e3 --- /dev/null +++ b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/RewardedSetParams.ts @@ -0,0 +1,19 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type RewardedSetParams = { +/** + * The expected number of nodes assigned entry gateway role (i.e. [`Role::EntryGateway`]) + */ +entry_gateways: number, +/** + * The expected number of nodes assigned exit gateway role (i.e. [`Role::ExitGateway`]) + */ +exit_gateways: number, +/** + * The expected number of nodes assigned the 'mixnode' role, i.e. total of [`Role::Layer1`], [`Role::Layer2`] and [`Role::Layer3`]. + */ +mixnodes: number, +/** + * Number of nodes in the 'standby' set. (i.e. [`Role::Standby`]) + */ +standby: number, }; diff --git a/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/RewardingParams.ts b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/RewardingParams.ts new file mode 100644 index 0000000000..5c8263bb6d --- /dev/null +++ b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/RewardingParams.ts @@ -0,0 +1,12 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { IntervalRewardParams } from "./IntervalRewardParams"; +import type { RewardedSetParams } from "./RewardedSetParams"; + +/** + * Parameters used for reward calculation. + */ +export type RewardingParams = { +/** + * Parameters that should remain unchanged throughout an interval. + */ +interval: IntervalRewardParams, rewarded_set: RewardedSetParams, }; diff --git a/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/Role.ts b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/Role.ts new file mode 100644 index 0000000000..3bac0196bd --- /dev/null +++ b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/Role.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type Role = "EntryGateway" | "Layer1" | "Layer2" | "Layer3" | "ExitGateway" | "Standby"; diff --git a/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/UnbondedMixnode.ts b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/UnbondedMixnode.ts new file mode 100644 index 0000000000..adde1f385a --- /dev/null +++ b/common/cosmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/UnbondedMixnode.ts @@ -0,0 +1,23 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * Basic information of a node that used to be part of the mix network but has already unbonded. + */ +export type UnbondedMixnode = { +/** + * Base58-encoded ed25519 EdDSA public key. + */ +identity_key: string, +/** + * Address of the owner of this mixnode. + */ +owner: string, +/** + * Entity who bonded this mixnode on behalf of the owner. + * If exists, it's most likely the address of the vesting contract. + */ +proxy: string | null, +/** + * Block height at which this mixnode has unbonded. + */ +unbonding_height: number, }; diff --git a/common/cosmwasm-smart-contracts/vesting-contract/bindings/ts-packages/types/src/types/rust/Period.ts b/common/cosmwasm-smart-contracts/vesting-contract/bindings/ts-packages/types/src/types/rust/Period.ts new file mode 100644 index 0000000000..8dfc1576da --- /dev/null +++ b/common/cosmwasm-smart-contracts/vesting-contract/bindings/ts-packages/types/src/types/rust/Period.ts @@ -0,0 +1,6 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * The vesting period. + */ +export type Period = "Before" | { "In": number } | "After"; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/Account.ts b/common/types/bindings/ts-packages/types/src/types/rust/Account.ts new file mode 100644 index 0000000000..4980e9b69e --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/Account.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { CurrencyDenom } from "./CurrencyDenom"; + +export type Account = { client_address: string, base_mix_denom: string, display_mix_denom: CurrencyDenom, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/AccountEntry.ts b/common/types/bindings/ts-packages/types/src/types/rust/AccountEntry.ts new file mode 100644 index 0000000000..39db6db6cc --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/AccountEntry.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type AccountEntry = { id: string, address: string, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/AccountWithMnemonic.ts b/common/types/bindings/ts-packages/types/src/types/rust/AccountWithMnemonic.ts new file mode 100644 index 0000000000..82d73ac020 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/AccountWithMnemonic.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { Account } from "./Account"; + +export type AccountWithMnemonic = { account: Account, mnemonic: string, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/ActiveSetUpdate.ts b/common/types/bindings/ts-packages/types/src/types/rust/ActiveSetUpdate.ts new file mode 100644 index 0000000000..20e5640581 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/ActiveSetUpdate.ts @@ -0,0 +1,18 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * Specification on how the active set should be updated. + */ +export type ActiveSetUpdate = { +/** + * The expected number of nodes assigned entry gateway role (i.e. [`Role::EntryGateway`]) + */ +entry_gateways: number, +/** + * The expected number of nodes assigned exit gateway role (i.e. [`Role::ExitGateway`]) + */ +exit_gateways: number, +/** + * The expected number of nodes assigned the 'mixnode' role, i.e. total of [`Role::Layer1`], [`Role::Layer2`] and [`Role::Layer3`]. + */ +mixnodes: number, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/Balance.ts b/common/types/bindings/ts-packages/types/src/types/rust/Balance.ts new file mode 100644 index 0000000000..b2632511e3 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/Balance.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { DecCoin } from "./DecCoin"; + +export type Balance = { amount: DecCoin, printable_balance: string, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/Coin.ts b/common/types/bindings/ts-packages/types/src/types/rust/Coin.ts new file mode 100644 index 0000000000..4dc9188584 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/Coin.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type Coin = { denom: string, amount: bigint, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/CosmosFee.ts b/common/types/bindings/ts-packages/types/src/types/rust/CosmosFee.ts new file mode 100644 index 0000000000..bcb0edc1aa --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/CosmosFee.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { Coin } from "./Coin"; + +export type CosmosFee = { amount: Array, gas_limit: bigint, payer: string | null, granter: string | null, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/CurrencyDenom.ts b/common/types/bindings/ts-packages/types/src/types/rust/CurrencyDenom.ts new file mode 100644 index 0000000000..939585e625 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/CurrencyDenom.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type CurrencyDenom = "unknown" | "nym" | "nymt" | "nyx" | "nyxt"; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/DecCoin.ts b/common/types/bindings/ts-packages/types/src/types/rust/DecCoin.ts new file mode 100644 index 0000000000..5b0a446ba8 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/DecCoin.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { CurrencyDenom } from "./CurrencyDenom"; + +export type DecCoin = { denom: CurrencyDenom, amount: string, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/Delegation.ts b/common/types/bindings/ts-packages/types/src/types/rust/Delegation.ts new file mode 100644 index 0000000000..44112fa3cf --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/Delegation.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { DecCoin } from "./DecCoin"; + +export type Delegation = { owner: string, mix_id: number, amount: DecCoin, height: bigint, proxy: string | null, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/DelegationEvent.ts b/common/types/bindings/ts-packages/types/src/types/rust/DelegationEvent.ts new file mode 100644 index 0000000000..86a62f4c26 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/DelegationEvent.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { DecCoin } from "./DecCoin"; +import type { DelegationEventKind } from "./DelegationEventKind"; + +export type DelegationEvent = { kind: DelegationEventKind, mix_id: number, address: string, amount: DecCoin | null, proxy: string | null, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/DelegationEventKind.ts b/common/types/bindings/ts-packages/types/src/types/rust/DelegationEventKind.ts new file mode 100644 index 0000000000..ad43ee8282 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/DelegationEventKind.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type DelegationEventKind = "Delegate" | "Undelegate"; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/DelegationResult.ts b/common/types/bindings/ts-packages/types/src/types/rust/DelegationResult.ts new file mode 100644 index 0000000000..66cb790c18 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/DelegationResult.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { DecCoin } from "./DecCoin"; + +export type DelegationResult = { source_address: string, target_address: string, amount: DecCoin | null, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/DelegationSummaryResponse.ts b/common/types/bindings/ts-packages/types/src/types/rust/DelegationSummaryResponse.ts new file mode 100644 index 0000000000..113f6ac944 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/DelegationSummaryResponse.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { DecCoin } from "./DecCoin"; +import type { DelegationWithEverything } from "./DelegationWithEverything"; + +export type DelegationsSummaryResponse = { delegations: Array, total_delegations: DecCoin, total_rewards: DecCoin, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/DelegationWithEverything.ts b/common/types/bindings/ts-packages/types/src/types/rust/DelegationWithEverything.ts new file mode 100644 index 0000000000..ed8a84b8d7 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/DelegationWithEverything.ts @@ -0,0 +1,6 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { DecCoin } from "./DecCoin"; +import type { DelegationEvent } from "./DelegationEvent"; +import type { NodeCostParams } from "./MixNodeCostParams"; + +export type DelegationWithEverything = { owner: string, mix_id: number, node_identity: string, amount: DecCoin, accumulated_by_delegates: DecCoin | null, accumulated_by_operator: DecCoin | null, block_height: bigint, delegated_on_iso_datetime: string | null, cost_params: NodeCostParams | null, avg_uptime_percent: number | null, stake_saturation: string | null, uses_vesting_contract_tokens: boolean, unclaimed_rewards: DecCoin | null, errors: string | null, pending_events: Array, mixnode_is_unbonding: boolean | null, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/Fee.ts b/common/types/bindings/ts-packages/types/src/types/rust/Fee.ts new file mode 100644 index 0000000000..d88be5b4c4 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/Fee.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { CosmosFee } from "./CosmosFee"; + +export type Fee = { "Manual": CosmosFee } | { "Auto": number | null }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/FeeDetails.ts b/common/types/bindings/ts-packages/types/src/types/rust/FeeDetails.ts new file mode 100644 index 0000000000..7383077844 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/FeeDetails.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { DecCoin } from "./DecCoin"; +import type { Fee } from "./Fee"; + +export type FeeDetails = { amount: DecCoin | null, fee: Fee, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/Gas.ts b/common/types/bindings/ts-packages/types/src/types/rust/Gas.ts new file mode 100644 index 0000000000..a76fdfecd9 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/Gas.ts @@ -0,0 +1,7 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type Gas = { +/** + * units of gas used + */ +gas_units: bigint, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/GasInfo.ts b/common/types/bindings/ts-packages/types/src/types/rust/GasInfo.ts new file mode 100644 index 0000000000..b51eb3c02d --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/GasInfo.ts @@ -0,0 +1,12 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { Gas } from "./Gas"; + +export type GasInfo = { +/** + * GasWanted is the maximum units of work we allow this tx to perform. + */ +gas_wanted: Gas, +/** + * GasUsed is the amount of gas actually consumed. + */ +gas_used: Gas, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/Gateway.ts b/common/types/bindings/ts-packages/types/src/types/rust/Gateway.ts new file mode 100644 index 0000000000..7ecd1e6789 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/Gateway.ts @@ -0,0 +1,7 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type Gateway = { host: string, mix_port: number, clients_port: number, location: string, sphinx_key: string, +/** + * Base58 encoded ed25519 EdDSA public key of the gateway used to derive shared keys with clients + */ +identity_key: string, version: string, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/GatewayBond.ts b/common/types/bindings/ts-packages/types/src/types/rust/GatewayBond.ts new file mode 100644 index 0000000000..1bbdf83099 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/GatewayBond.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { DecCoin } from "./DecCoin"; +import type { Gateway } from "./Gateway"; + +export type GatewayBond = { pledge_amount: DecCoin, owner: string, block_height: bigint, gateway: Gateway, proxy: string | null, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/IntervalRewardingParamsUpdate.ts b/common/types/bindings/ts-packages/types/src/types/rust/IntervalRewardingParamsUpdate.ts new file mode 100644 index 0000000000..7ed7f7907a --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/IntervalRewardingParamsUpdate.ts @@ -0,0 +1,35 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { RewardedSetParams } from "./RewardedSetParams"; + +/** + * Specification on how the rewarding params should be updated. + */ +export type IntervalRewardingParamsUpdate = { +/** + * Defines the new value of the reward pool. + */ +reward_pool: string | null, +/** + * Defines the new value of the staking supply. + */ +staking_supply: string | null, +/** + * Defines the new value of the staking supply scale factor. + */ +staking_supply_scale_factor: string | null, +/** + * Defines the new value of the sybil resistance percent. + */ +sybil_resistance_percent: string | null, +/** + * Defines the new value of the active set work factor. + */ +active_set_work_factor: string | null, +/** + * Defines the new value of the interval pool emission rate. + */ +interval_pool_emission: string | null, +/** + * Defines the parameters of the rewarded set. + */ +rewarded_set_params: RewardedSetParams | null, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/MixNodeBond.ts b/common/types/bindings/ts-packages/types/src/types/rust/MixNodeBond.ts new file mode 100644 index 0000000000..730582750b --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/MixNodeBond.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { DecCoin } from "./DecCoin"; +import type { MixNode } from "./Mixnode"; + +export type MixNodeBond = { mix_id: number, owner: string, original_pledge: DecCoin, mix_node: MixNode, proxy: string | null, bonding_height: bigint, is_unbonding: boolean, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/MixNodeCostParams.ts b/common/types/bindings/ts-packages/types/src/types/rust/MixNodeCostParams.ts new file mode 100644 index 0000000000..8658f9c91e --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/MixNodeCostParams.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { DecCoin } from "./DecCoin"; + +export type NodeCostParams = { profit_margin_percent: string, interval_operating_cost: DecCoin, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/MixNodeDetails.ts b/common/types/bindings/ts-packages/types/src/types/rust/MixNodeDetails.ts new file mode 100644 index 0000000000..7103354d40 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/MixNodeDetails.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { MixNodeBond } from "./MixNodeBond"; +import type { NodeRewarding } from "./NodeRewarding"; + +export type MixNodeDetails = { bond_information: MixNodeBond, rewarding_details: NodeRewarding, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/Mixnode.ts b/common/types/bindings/ts-packages/types/src/types/rust/Mixnode.ts new file mode 100644 index 0000000000..ada169d2b4 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/Mixnode.ts @@ -0,0 +1,34 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * Information provided by the node operator during bonding that are used to allow other entities to use the services of this node. + */ +export type MixNode = { +/** + * Network address of this mixnode, for example 1.1.1.1 or foo.mixnode.com + */ +host: string, +/** + * Port used by this mixnode for listening for mix packets. + */ +mix_port: number, +/** + * Port used by this mixnode for listening for verloc requests. + */ +verloc_port: number, +/** + * Port used by this mixnode for its http(s) API + */ +http_api_port: number, +/** + * Base58-encoded x25519 public key used for sphinx key derivation. + */ +sphinx_key: string, +/** + * Base58-encoded ed25519 EdDSA public key. + */ +identity_key: string, +/** + * The self-reported semver version of this mixnode. + */ +version: string, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/NodeRewarding.ts b/common/types/bindings/ts-packages/types/src/types/rust/NodeRewarding.ts new file mode 100644 index 0000000000..1d472fbfcb --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/NodeRewarding.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { NodeCostParams } from "./MixNodeCostParams"; + +export type NodeRewarding = { cost_params: NodeCostParams, operator: string, delegates: string, total_unit_reward: string, unit_delegation: string, last_rewarded_epoch: number, unique_delegations: number, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/NymNodeBond.ts b/common/types/bindings/ts-packages/types/src/types/rust/NymNodeBond.ts new file mode 100644 index 0000000000..0d50d01f55 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/NymNodeBond.ts @@ -0,0 +1,39 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { DecCoin } from "./DecCoin"; + +export type NymNodeBond = { +/** + * Unique id assigned to the bonded node. + */ +node_id: number, +/** + * Address of the owner of this nym-node. + */ +owner: string, +/** + * Original amount pledged by the operator of this node. + */ +original_pledge: DecCoin, +/** + * Block height at which this nym-node has been bonded. + */ +bonding_height: bigint, +/** + * Flag to indicate whether this node is in the process of unbonding, + * that will conclude upon the epoch finishing. + */ +is_unbonding: boolean, +/** + * Network address of this nym-node, for example 1.1.1.1 or foo.mixnode.com + * that is used to discover other capabilities of this node. + */ +host: string, +/** + * Allow specifying custom port for accessing the http, and thus self-described, api + * of this node for the capabilities discovery. + */ +custom_http_port: number | null, +/** + * Base58-encoded ed25519 EdDSA public key. + */ +identity_key: string, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/NymNodeDetails.ts b/common/types/bindings/ts-packages/types/src/types/rust/NymNodeDetails.ts new file mode 100644 index 0000000000..3baee09908 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/NymNodeDetails.ts @@ -0,0 +1,21 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { NodeRewarding } from "./NodeRewarding"; +import type { NymNodeBond } from "./NymNodeBond"; +import type { PendingNodeChanges } from "./PendingNodeChanges"; + +/** + * Full details associated with given node. + */ +export type NymNodeDetails = { +/** + * Basic bond information of this node, such as owner address, original pledge, etc. + */ +bond_information: NymNodeBond, +/** + * Details used for computation of rewarding related data. + */ +rewarding_details: NodeRewarding, +/** + * Adjustments to the node that are scheduled to happen during future epoch/interval transitions. + */ +pending_changes: PendingNodeChanges, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/OriginalVestingResponse.ts b/common/types/bindings/ts-packages/types/src/types/rust/OriginalVestingResponse.ts new file mode 100644 index 0000000000..33d307ba18 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/OriginalVestingResponse.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { DecCoin } from "./DecCoin"; + +export type OriginalVestingResponse = { amount: DecCoin, number_of_periods: number, period_duration: bigint, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/PendingEpochEvent.ts b/common/types/bindings/ts-packages/types/src/types/rust/PendingEpochEvent.ts new file mode 100644 index 0000000000..9df4241249 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/PendingEpochEvent.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { PendingEpochEventData } from "./PendingEpochEventData"; + +export type PendingEpochEvent = { id: number, created_at: bigint, event: PendingEpochEventData, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/PendingEpochEventData.ts b/common/types/bindings/ts-packages/types/src/types/rust/PendingEpochEventData.ts new file mode 100644 index 0000000000..8ce22bacf9 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/PendingEpochEventData.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ActiveSetUpdate } from "./ActiveSetUpdate"; +import type { DecCoin } from "./DecCoin"; + +export type PendingEpochEventData = { "Delegate": { owner: string, mix_id: number, amount: DecCoin, proxy: string | null, } } | { "Undelegate": { owner: string, mix_id: number, proxy: string | null, } } | { "PledgeMore": { mix_id: number, amount: DecCoin, } } | { "DecreasePledge": { mix_id: number, decrease_by: DecCoin, } } | { "UnbondMixnode": { mix_id: number, } } | { "UpdateActiveSetSize": { new_size: number, } } | { "NymNodePledgeMore": { node_id: number, amount: DecCoin, } } | { "NymNodeDecreasePledge": { node_id: number, decrease_by: DecCoin, } } | { "UnbondNymNode": { node_id: number, } } | { "UpdateActiveSet": { update: ActiveSetUpdate, } }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/PendingIntervalEvent.ts b/common/types/bindings/ts-packages/types/src/types/rust/PendingIntervalEvent.ts new file mode 100644 index 0000000000..5358a2a823 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/PendingIntervalEvent.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { PendingIntervalEventData } from "./PendingIntervalEventData"; + +export type PendingIntervalEvent = { id: number, created_at: bigint, event: PendingIntervalEventData, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/PendingIntervalEventData.ts b/common/types/bindings/ts-packages/types/src/types/rust/PendingIntervalEventData.ts new file mode 100644 index 0000000000..788ea37be8 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/PendingIntervalEventData.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { IntervalRewardingParamsUpdate } from "./IntervalRewardingParamsUpdate"; +import type { NodeCostParams } from "./MixNodeCostParams"; + +export type PendingIntervalEventData = { "ChangeMixCostParams": { mix_id: number, new_costs: NodeCostParams, } } | { "ChangeNymNodeCostParams": { node_id: number, new_costs: NodeCostParams, } } | { "UpdateRewardingParams": { update: IntervalRewardingParamsUpdate, } } | { "UpdateIntervalConfig": { epochs_in_interval: number, epoch_duration_secs: bigint, } }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/PendingNodeChanges.ts b/common/types/bindings/ts-packages/types/src/types/rust/PendingNodeChanges.ts new file mode 100644 index 0000000000..b1667a190e --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/PendingNodeChanges.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type PendingNodeChanges = { pledge_change: number | null, cost_params_change: number | null, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/PledgeData.ts b/common/types/bindings/ts-packages/types/src/types/rust/PledgeData.ts new file mode 100644 index 0000000000..3accba8d63 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/PledgeData.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { DecCoin } from "./DecCoin"; + +export type PledgeData = { amount: DecCoin, block_time: bigint, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/RewardedSetParams.ts b/common/types/bindings/ts-packages/types/src/types/rust/RewardedSetParams.ts new file mode 100644 index 0000000000..e1d09ac0e3 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/RewardedSetParams.ts @@ -0,0 +1,19 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type RewardedSetParams = { +/** + * The expected number of nodes assigned entry gateway role (i.e. [`Role::EntryGateway`]) + */ +entry_gateways: number, +/** + * The expected number of nodes assigned exit gateway role (i.e. [`Role::ExitGateway`]) + */ +exit_gateways: number, +/** + * The expected number of nodes assigned the 'mixnode' role, i.e. total of [`Role::Layer1`], [`Role::Layer2`] and [`Role::Layer3`]. + */ +mixnodes: number, +/** + * Number of nodes in the 'standby' set. (i.e. [`Role::Standby`]) + */ +standby: number, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/RpcTransactionResponse.ts b/common/types/bindings/ts-packages/types/src/types/rust/RpcTransactionResponse.ts new file mode 100644 index 0000000000..6067e083ca --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/RpcTransactionResponse.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { DecCoin } from "./DecCoin"; +import type { Gas } from "./Gas"; + +export type RpcTransactionResponse = { index: number, tx_result_json: string, block_height: bigint, transaction_hash: string, gas_used: Gas, gas_wanted: Gas, fee: DecCoin | null, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/SendTxResult.ts b/common/types/bindings/ts-packages/types/src/types/rust/SendTxResult.ts new file mode 100644 index 0000000000..cb39f47184 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/SendTxResult.ts @@ -0,0 +1,6 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { DecCoin } from "./DecCoin"; +import type { Gas } from "./Gas"; +import type { TransactionDetails } from "./TransactionDetails"; + +export type SendTxResult = { block_height: bigint, code: number, details: TransactionDetails, gas_used: Gas, gas_wanted: Gas, tx_hash: string, fee: DecCoin | null, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/TransactionDetails.ts b/common/types/bindings/ts-packages/types/src/types/rust/TransactionDetails.ts new file mode 100644 index 0000000000..2bcef1a14d --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/TransactionDetails.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { DecCoin } from "./DecCoin"; + +export type TransactionDetails = { amount: DecCoin, from_address: string, to_address: string, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/TransactionExecuteResult.ts b/common/types/bindings/ts-packages/types/src/types/rust/TransactionExecuteResult.ts new file mode 100644 index 0000000000..5e5e902f90 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/TransactionExecuteResult.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { DecCoin } from "./DecCoin"; +import type { GasInfo } from "./GasInfo"; + +export type TransactionExecuteResult = { logs_json: string, msg_responses_json: string, transaction_hash: string, gas_info: GasInfo, fee: DecCoin | null, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/VestingAccountInfo.ts b/common/types/bindings/ts-packages/types/src/types/rust/VestingAccountInfo.ts new file mode 100644 index 0000000000..5602f9a381 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/VestingAccountInfo.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { DecCoin } from "./DecCoin"; +import type { VestingPeriod } from "./VestingPeriod"; + +export type VestingAccountInfo = { owner_address: string, staking_address: string | null, start_time: bigint, periods: Array, amount: DecCoin, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/VestingPeriod.ts b/common/types/bindings/ts-packages/types/src/types/rust/VestingPeriod.ts new file mode 100644 index 0000000000..242962750f --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/VestingPeriod.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type VestingPeriod = { start_time: bigint, period_seconds: bigint, }; diff --git a/common/types/bindings/ts-packages/types/src/types/rust/WrappedDelegationEvent.ts b/common/types/bindings/ts-packages/types/src/types/rust/WrappedDelegationEvent.ts new file mode 100644 index 0000000000..854982c359 --- /dev/null +++ b/common/types/bindings/ts-packages/types/src/types/rust/WrappedDelegationEvent.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { DelegationEvent } from "./DelegationEvent"; + +export type WrappedDelegationEvent = { event: DelegationEvent, node_identity: string, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/AnnotationResponse.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/AnnotationResponse.ts new file mode 100644 index 0000000000..d7d74a3c8f --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/AnnotationResponse.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { NodeAnnotation } from "./NodeAnnotation"; + +export type AnnotationResponse = { node_id: number, annotation: NodeAnnotation | null, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/ConfigScore.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/ConfigScore.ts new file mode 100644 index 0000000000..82930c798b --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/ConfigScore.ts @@ -0,0 +1,7 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type ConfigScore = { +/** + * Total score after taking all the criteria into consideration + */ +score: number, versions_behind: number | null, self_described_api_available: boolean, accepted_terms_and_conditions: boolean, runs_nym_node_binary: boolean, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/DeclaredRoles.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/DeclaredRoles.ts new file mode 100644 index 0000000000..1ddb236ff5 --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/DeclaredRoles.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type DeclaredRoles = { mixnode: boolean, entry: boolean, exit_nr: boolean, exit_ipr: boolean, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/DescribedNodeType.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/DescribedNodeType.ts new file mode 100644 index 0000000000..bc27071fea --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/DescribedNodeType.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type DescribedNodeType = "legacy_mixnode" | "legacy_gateway" | "nym_node"; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/DetailedNodePerformance.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/DetailedNodePerformance.ts new file mode 100644 index 0000000000..814619b026 --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/DetailedNodePerformance.ts @@ -0,0 +1,9 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ConfigScore } from "./ConfigScore"; +import type { RoutingScore } from "./RoutingScore"; + +export type DetailedNodePerformance = { +/** + * routing_score * config_score + */ +performance_score: number, routing_score: RoutingScore, config_score: ConfigScore, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/DisplayRole.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/DisplayRole.ts new file mode 100644 index 0000000000..621f5ce685 --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/DisplayRole.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type DisplayRole = "entryGateway" | "layer1" | "layer2" | "layer3" | "exitGateway" | "standby"; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/GatewayCoreStatusResponse.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/GatewayCoreStatusResponse.ts new file mode 100644 index 0000000000..7a7d1ed793 --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/GatewayCoreStatusResponse.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type GatewayCoreStatusResponse = { identity: string, count: number, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/HistoricalPerformanceResponse.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/HistoricalPerformanceResponse.ts new file mode 100644 index 0000000000..c0ba1e59c5 --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/HistoricalPerformanceResponse.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type HistoricalPerformanceResponse = { date: string, performance: number, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/HistoricalUptimeResponse.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/HistoricalUptimeResponse.ts new file mode 100644 index 0000000000..ba46e77889 --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/HistoricalUptimeResponse.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type HistoricalUptimeResponse = { date: string, uptime: number, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/InclusionProbabilityResponse.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/InclusionProbabilityResponse.ts new file mode 100644 index 0000000000..8295c20aba --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/InclusionProbabilityResponse.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { SelectionChance } from "./SelectionChance"; + +export type InclusionProbabilityResponse = { in_active: SelectionChance, in_reserve: SelectionChance, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/Interval.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/Interval.ts new file mode 100644 index 0000000000..5efd2d2dc5 --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/Interval.ts @@ -0,0 +1,30 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * Specification of a rewarding interval. + */ +export type Interval = { +/** + * Monotonously increasing id of this interval. + */ +id: number, +/** + * Number of epochs in this interval. + */ +epochs_in_interval: number, +/** + * The timestamp indicating the start of the current rewarding epoch. + */ +current_epoch_start: string, +/** + * Monotonously increasing id of the current epoch in this interval. + */ +current_epoch_id: number, +/** + * The duration of all epochs in this interval. + */ +epoch_length: { secs: number; nanos: number; }, +/** + * The total amount of elapsed epochs since the first epoch of the first interval. + */ +total_elapsed_epochs: number, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/IntervalRewardParams.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/IntervalRewardParams.ts new file mode 100644 index 0000000000..a582bf138b --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/IntervalRewardParams.ts @@ -0,0 +1,51 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +/** + * Parameters required by the mix-mining reward distribution that do not change during an interval. + */ +export type IntervalRewardParams = { +/** + * Current value of the rewarding pool. + * It is expected to be constant throughout the interval. + */ +reward_pool: string, +/** + * Current value of the staking supply. + * It is expected to be constant throughout the interval. + */ +staking_supply: string, +/** + * Defines the percentage of stake needed to reach saturation for all of the nodes in the rewarded set. + * Also known as `beta`. + */ +staking_supply_scale_factor: string, +/** + * Current value of the computed reward budget per epoch, per node. + * It is expected to be constant throughout the interval. + */ +epoch_reward_budget: string, +/** + * Current value of the stake saturation point. + * It is expected to be constant throughout the interval. + */ +stake_saturation_point: string, +/** + * Current value of the sybil resistance percent (`alpha`). + * It is not really expected to be changing very often. + * As a matter of fact, unless there's a very specific reason, it should remain constant. + */ +sybil_resistance: string, +/** + * Current active set work factor. + * It is not really expected to be changing very often. + * As a matter of fact, unless there's a very specific reason, it should remain constant. + */ +active_set_work_factor: string, +/** + * Current maximum interval pool emission. + * Assuming all nodes in the rewarded set are fully saturated and have 100% performance, + * this % of the reward pool would get distributed in rewards to all operators and its delegators. + * It is not really expected to be changing very often. + * As a matter of fact, unless there's a very specific reason, it should remain constant. + */ +interval_pool_emission: string, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/MixnodeCoreStatusResponse.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/MixnodeCoreStatusResponse.ts new file mode 100644 index 0000000000..8883216403 --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/MixnodeCoreStatusResponse.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type MixnodeCoreStatusResponse = { mix_id: number, count: number, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/MixnodeStatus.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/MixnodeStatus.ts new file mode 100644 index 0000000000..4047d50af3 --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/MixnodeStatus.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type MixnodeStatus = "active" | "standby" | "inactive" | "not_found"; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/MixnodeStatusResponse.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/MixnodeStatusResponse.ts new file mode 100644 index 0000000000..eb9221fc37 --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/MixnodeStatusResponse.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { MixnodeStatus } from "./MixnodeStatus"; + +export type MixnodeStatusResponse = { status: MixnodeStatus, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/NodeAnnotation.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/NodeAnnotation.ts new file mode 100644 index 0000000000..a9af2dac87 --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/NodeAnnotation.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { DetailedNodePerformance } from "./DetailedNodePerformance"; +import type { DisplayRole } from "./DisplayRole"; + +export type NodeAnnotation = { last_24h_performance: string, current_role: DisplayRole | null, detailed_performance: DetailedNodePerformance, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/NodeDatePerformanceResponse.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/NodeDatePerformanceResponse.ts new file mode 100644 index 0000000000..720f52e078 --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/NodeDatePerformanceResponse.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type NodeDatePerformanceResponse = { node_id: number, date: string, performance: number | null, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/NodePerformanceResponse.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/NodePerformanceResponse.ts new file mode 100644 index 0000000000..698ea013f8 --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/NodePerformanceResponse.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type NodePerformanceResponse = { node_id: number, performance: number | null, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/PaginatedResponse.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/PaginatedResponse.ts new file mode 100644 index 0000000000..26ed36c828 --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/PaginatedResponse.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { Pagination } from "./Pagination"; + +export type PaginatedResponse = { pagination: Pagination, data: Array, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/Pagination.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/Pagination.ts new file mode 100644 index 0000000000..b0a0d46b8a --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/Pagination.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type Pagination = { total: number, page: number, size: number, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/PerformanceHistoryResponse.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/PerformanceHistoryResponse.ts new file mode 100644 index 0000000000..9b1e93ebc9 --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/PerformanceHistoryResponse.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { HistoricalPerformanceResponse } from "./HistoricalPerformanceResponse"; +import type { PaginatedResponse } from "./PaginatedResponse"; + +export type PerformanceHistoryResponse = { node_id: number, history: PaginatedResponse, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/RewardEstimate.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/RewardEstimate.ts new file mode 100644 index 0000000000..9eea44b06e --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/RewardEstimate.ts @@ -0,0 +1,20 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type RewardEstimate = { +/** + * The amount of **decimal** coins that are going to get distributed to the node, + * i.e. the operator and all its delegators. + */ +total_node_reward: string, +/** + * The share of the reward that is going to get distributed to the node operator. + */ +operator: string, +/** + * The share of the reward that is going to get distributed among the node delegators. + */ +delegates: string, +/** + * The operating cost of this node. Note: it's already included in the operator reward. + */ +operating_cost: string, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/RewardEstimationResponse.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/RewardEstimationResponse.ts new file mode 100644 index 0000000000..257edccfb9 --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/RewardEstimationResponse.ts @@ -0,0 +1,6 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { Interval } from "./Interval"; +import type { RewardEstimate } from "./RewardEstimate"; +import type { RewardingParams } from "./RewardingParams"; + +export type RewardEstimationResponse = { estimation: RewardEstimate, reward_params: RewardingParams, epoch: Interval, as_at: number, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/RewardedSetParams.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/RewardedSetParams.ts new file mode 100644 index 0000000000..e1d09ac0e3 --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/RewardedSetParams.ts @@ -0,0 +1,19 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type RewardedSetParams = { +/** + * The expected number of nodes assigned entry gateway role (i.e. [`Role::EntryGateway`]) + */ +entry_gateways: number, +/** + * The expected number of nodes assigned exit gateway role (i.e. [`Role::ExitGateway`]) + */ +exit_gateways: number, +/** + * The expected number of nodes assigned the 'mixnode' role, i.e. total of [`Role::Layer1`], [`Role::Layer2`] and [`Role::Layer3`]. + */ +mixnodes: number, +/** + * Number of nodes in the 'standby' set. (i.e. [`Role::Standby`]) + */ +standby: number, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/RewardingParams.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/RewardingParams.ts new file mode 100644 index 0000000000..5c8263bb6d --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/RewardingParams.ts @@ -0,0 +1,12 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { IntervalRewardParams } from "./IntervalRewardParams"; +import type { RewardedSetParams } from "./RewardedSetParams"; + +/** + * Parameters used for reward calculation. + */ +export type RewardingParams = { +/** + * Parameters that should remain unchanged throughout an interval. + */ +interval: IntervalRewardParams, rewarded_set: RewardedSetParams, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/RoutingScore.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/RoutingScore.ts new file mode 100644 index 0000000000..f00098ef60 --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/RoutingScore.ts @@ -0,0 +1,7 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type RoutingScore = { +/** + * Total score after taking all the criteria into consideration + */ +score: number, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/SelectionChance.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/SelectionChance.ts new file mode 100644 index 0000000000..41c7333f96 --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/SelectionChance.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type SelectionChance = "High" | "Good" | "Low"; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/StakeSaturationResponse.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/StakeSaturationResponse.ts new file mode 100644 index 0000000000..58ebc65d53 --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/StakeSaturationResponse.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type StakeSaturationResponse = { saturation: string, uncapped_saturation: string, as_at: bigint, }; diff --git a/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/UptimeHistoryResponse.ts b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/UptimeHistoryResponse.ts new file mode 100644 index 0000000000..1370fdb206 --- /dev/null +++ b/nym-api/nym-api-requests/bindings/ts-packages/types/src/types/rust/UptimeHistoryResponse.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { HistoricalUptimeResponse } from "./HistoricalUptimeResponse"; +import type { PaginatedResponse } from "./PaginatedResponse"; + +export type UptimeHistoryResponse = { node_id: number, history: PaginatedResponse, };