-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: transparent bindings and bigints
- Loading branch information
Showing
129 changed files
with
281 additions
and
313 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { Amount } from "./Amount"; | ||
import type { ComponentAddressOrName } from "./ComponentAddressOrName"; | ||
|
||
export interface AccountsCreateFreeTestCoinsRequest { | ||
account: ComponentAddressOrName | null; | ||
amount: Amount; | ||
max_fee: Amount | null; | ||
amount: number; | ||
max_fee: number | null; | ||
key_id: number | null; | ||
} |
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 |
---|---|---|
@@ -1,12 +1,10 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { Amount } from "./Amount"; | ||
import type { FinalizeResult } from "./FinalizeResult"; | ||
import type { TransactionId } from "./TransactionId"; | ||
|
||
export interface AccountsCreateFreeTestCoinsResponse { | ||
transaction_id: TransactionId; | ||
amount: Amount; | ||
fee: Amount; | ||
transaction_id: string; | ||
amount: number; | ||
fee: number; | ||
result: FinalizeResult; | ||
public_key: string; | ||
} |
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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { Amount } from "./Amount"; | ||
import type { ComponentAccessRules } from "./ComponentAccessRules"; | ||
|
||
export interface AccountsCreateRequest { | ||
account_name: string | null; | ||
custom_access_rules: ComponentAccessRules | null; | ||
max_fee: Amount | null; | ||
max_fee: number | null; | ||
is_default: boolean; | ||
key_id: bigint | null; | ||
key_id: number | null; | ||
} |
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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { Amount } from "./Amount"; | ||
import type { Arg } from "./Arg"; | ||
import type { ComponentAddressOrName } from "./ComponentAddressOrName"; | ||
|
||
export interface AccountsInvokeRequest { | ||
account: ComponentAddressOrName | null; | ||
method: string; | ||
args: Array<Arg>; | ||
max_fee: Amount | null; | ||
max_fee: number | null; | ||
} |
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,14 +1,13 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { Amount } from "./Amount"; | ||
import type { ResourceAddress } from "./ResourceAddress"; | ||
import type { ResourceType } from "./ResourceType"; | ||
import type { SubstateId } from "./SubstateId"; | ||
|
||
export interface BalanceEntry { | ||
vault_address: SubstateId; | ||
resource_address: ResourceAddress; | ||
balance: Amount; | ||
balance: number; | ||
resource_type: ResourceType; | ||
confidential_balance: Amount; | ||
confidential_balance: number; | ||
token_symbol: string | null; | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,25 +1,23 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { BlockId } from "./BlockId"; | ||
import type { Command } from "./Command"; | ||
import type { Epoch } from "./Epoch"; | ||
import type { NodeHeight } from "./NodeHeight"; | ||
import type { QuorumCertificate } from "./QuorumCertificate"; | ||
import type { Shard } from "./Shard"; | ||
|
||
export interface Block { | ||
id: BlockId; | ||
parent: BlockId; | ||
id: string; | ||
parent: string; | ||
justify: QuorumCertificate; | ||
height: NodeHeight; | ||
epoch: Epoch; | ||
proposed_by: string; | ||
total_leader_fee: bigint; | ||
total_leader_fee: number; | ||
merkle_root: string; | ||
commands: Array<Command>; | ||
is_dummy: boolean; | ||
is_processed: boolean; | ||
is_committed: boolean; | ||
foreign_indexes: Record<Shard, bigint>; | ||
foreign_indexes: Array<{ shard: string; counter: number }>; | ||
stored_at: string | null; | ||
signature: { public_nonce: string; signature: string } | null; | ||
} |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { Amount } from "./Amount"; | ||
import type { ComponentAddressOrName } from "./ComponentAddressOrName"; | ||
|
||
export interface ClaimBurnRequest { | ||
account: ComponentAddressOrName | null; | ||
claim_proof: string; | ||
max_fee: Amount | null; | ||
max_fee: number | null; | ||
key_id: number | null; | ||
} |
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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { Amount } from "./Amount"; | ||
import type { FinalizeResult } from "./FinalizeResult"; | ||
import type { TransactionId } from "./TransactionId"; | ||
|
||
export interface ClaimBurnResponse { | ||
transaction_id: TransactionId; | ||
fee: Amount; | ||
transaction_id: string; | ||
fee: number; | ||
result: FinalizeResult; | ||
} |
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
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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { Amount } from "./Amount"; | ||
import type { FinalizeResult } from "./FinalizeResult"; | ||
import type { TransactionId } from "./TransactionId"; | ||
|
||
export interface ClaimValidatorFeesResponse { | ||
transaction_id: TransactionId; | ||
fee: Amount; | ||
transaction_id: string; | ||
fee: number; | ||
result: FinalizeResult; | ||
} |
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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { Shard } from "./Shard"; | ||
|
||
export interface CommitteeShard { | ||
num_committees: number; | ||
num_members: number; | ||
shard: Shard; | ||
shard: number; | ||
} |
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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { Shard } from "./Shard"; | ||
import type { SubstateAddress } from "./SubstateAddress"; | ||
import type { ValidatorNode } from "./ValidatorNode"; | ||
|
||
export interface CommitteeShardInfo<TAddr> { | ||
shard: Shard; | ||
shard: number; | ||
substate_address_range: { start: SubstateAddress; end: SubstateAddress }; | ||
validators: Array<ValidatorNode<TAddr>>; | ||
} |
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
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
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
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { Amount } from "./Amount"; | ||
|
||
export interface ConfidentialCreateOutputProofRequest { | ||
amount: Amount; | ||
amount: number; | ||
} |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { EncryptedData } from "./EncryptedData"; | ||
|
||
export interface ConfidentialOutput { | ||
commitment: string; | ||
stealth_public_nonce: string; | ||
encrypted_data: EncryptedData; | ||
minimum_value_promise: bigint; | ||
encrypted_data: Array<number>; | ||
minimum_value_promise: number; | ||
} |
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 |
---|---|---|
@@ -1,12 +1,9 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { Amount } from "./Amount"; | ||
import type { EncryptedData } from "./EncryptedData"; | ||
import type { RistrettoPublicKeyBytes } from "./RistrettoPublicKeyBytes"; | ||
|
||
export interface ConfidentialStatement { | ||
commitment: Array<number>; | ||
sender_public_nonce: RistrettoPublicKeyBytes; | ||
encrypted_data: EncryptedData; | ||
minimum_value_promise: bigint; | ||
revealed_amount: Amount; | ||
sender_public_nonce: Array<number>; | ||
encrypted_data: Array<number>; | ||
minimum_value_promise: number; | ||
revealed_amount: number; | ||
} |
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 |
---|---|---|
@@ -1,13 +1,12 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { Amount } from "./Amount"; | ||
import type { ComponentAddressOrName } from "./ComponentAddressOrName"; | ||
import type { ResourceAddress } from "./ResourceAddress"; | ||
|
||
export interface ConfidentialTransferRequest { | ||
account: ComponentAddressOrName | null; | ||
amount: Amount; | ||
amount: number; | ||
resource_address: ResourceAddress; | ||
destination_public_key: string; | ||
max_fee: Amount | null; | ||
max_fee: number | null; | ||
dry_run: boolean; | ||
} |
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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { Amount } from "./Amount"; | ||
import type { FinalizeResult } from "./FinalizeResult"; | ||
import type { TransactionId } from "./TransactionId"; | ||
|
||
export interface ConfidentialTransferResponse { | ||
transaction_id: TransactionId; | ||
fee: Amount; | ||
transaction_id: string; | ||
fee: number; | ||
result: FinalizeResult; | ||
} |
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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
import type { BalanceProofSignature } from "./BalanceProofSignature"; | ||
import type { ConfidentialOutputProof } from "./ConfidentialOutputProof"; | ||
import type { PedersonCommitmentBytes } from "./PedersonCommitmentBytes"; | ||
|
||
export interface ConfidentialWithdrawProof { | ||
inputs: Array<PedersonCommitmentBytes>; | ||
inputs: Array<number>; | ||
output_proof: ConfidentialOutputProof; | ||
balance_proof: BalanceProofSignature; | ||
balance_proof: Array<number>; | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.