-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
91 changed files
with
873 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
...rt-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/ActiveSetUpdate.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
3 changes: 3 additions & 0 deletions
3
...ontracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/GatewayConfigUpdate.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
30 changes: 30 additions & 0 deletions
30
...asm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/Interval.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
51 changes: 51 additions & 0 deletions
51
...ntracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/IntervalRewardParams.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
35 changes: 35 additions & 0 deletions
35
...ixnet-contract/bindings/ts-packages/types/src/types/rust/IntervalRewardingParamsUpdate.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
3 changes: 3 additions & 0 deletions
3
...ontracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/MixNodeConfigUpdate.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
34 changes: 34 additions & 0 deletions
34
...wasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/Mixnode.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
3 changes: 3 additions & 0 deletions
3
...t-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/NodeConfigUpdate.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
15 changes: 15 additions & 0 deletions
15
...acts/mixnet-contract/bindings/ts-packages/types/src/types/rust/NodeRewardingParameters.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
20 changes: 20 additions & 0 deletions
20
...wasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/NymNode.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
3 changes: 3 additions & 0 deletions
3
...tracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/PendingMixnodeChanges.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
3 changes: 3 additions & 0 deletions
3
...contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/PendingNodeChanges.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
20 changes: 20 additions & 0 deletions
20
...art-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/RewardEstimate.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
19 changes: 19 additions & 0 deletions
19
...-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/RewardedSetParams.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
12 changes: 12 additions & 0 deletions
12
...rt-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/RewardingParams.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
3 changes: 3 additions & 0 deletions
3
...osmwasm-smart-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/Role.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
23 changes: 23 additions & 0 deletions
23
...rt-contracts/mixnet-contract/bindings/ts-packages/types/src/types/rust/UnbondedMixnode.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
6 changes: 6 additions & 0 deletions
6
...wasm-smart-contracts/vesting-contract/bindings/ts-packages/types/src/types/rust/Period.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
4 changes: 4 additions & 0 deletions
4
common/types/bindings/ts-packages/types/src/types/rust/Account.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
3 changes: 3 additions & 0 deletions
3
common/types/bindings/ts-packages/types/src/types/rust/AccountEntry.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
4 changes: 4 additions & 0 deletions
4
common/types/bindings/ts-packages/types/src/types/rust/AccountWithMnemonic.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
18 changes: 18 additions & 0 deletions
18
common/types/bindings/ts-packages/types/src/types/rust/ActiveSetUpdate.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
4 changes: 4 additions & 0 deletions
4
common/types/bindings/ts-packages/types/src/types/rust/Balance.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
3 changes: 3 additions & 0 deletions
3
common/types/bindings/ts-packages/types/src/types/rust/Coin.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
4 changes: 4 additions & 0 deletions
4
common/types/bindings/ts-packages/types/src/types/rust/CosmosFee.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<Coin>, gas_limit: bigint, payer: string | null, granter: string | null, }; |
3 changes: 3 additions & 0 deletions
3
common/types/bindings/ts-packages/types/src/types/rust/CurrencyDenom.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
4 changes: 4 additions & 0 deletions
4
common/types/bindings/ts-packages/types/src/types/rust/DecCoin.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
4 changes: 4 additions & 0 deletions
4
common/types/bindings/ts-packages/types/src/types/rust/Delegation.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
5 changes: 5 additions & 0 deletions
5
common/types/bindings/ts-packages/types/src/types/rust/DelegationEvent.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
3 changes: 3 additions & 0 deletions
3
common/types/bindings/ts-packages/types/src/types/rust/DelegationEventKind.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
4 changes: 4 additions & 0 deletions
4
common/types/bindings/ts-packages/types/src/types/rust/DelegationResult.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, }; |
Oops, something went wrong.