@tari-project/tarijs 0.1.20 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/package.json +8 -11
  2. package/dist/index.js +0 -1063
  3. package/dist/index.js.map +0 -1
  4. package/dist/node_modules/@tari-project/typescript-bindings/index.d.ts +0 -111
  5. package/dist/node_modules/@tari-project/typescript-bindings/src/helpers/helpers.d.ts +0 -11
  6. package/dist/node_modules/@tari-project/typescript-bindings/src/types/AccessRule.d.ts +0 -4
  7. package/dist/node_modules/@tari-project/typescript-bindings/src/types/Account.d.ts +0 -7
  8. package/dist/node_modules/@tari-project/typescript-bindings/src/types/Amount.d.ts +0 -1
  9. package/dist/node_modules/@tari-project/typescript-bindings/src/types/Arg.d.ts +0 -5
  10. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ArgDef.d.ts +0 -5
  11. package/dist/node_modules/@tari-project/typescript-bindings/src/types/AuthHook.d.ts +0 -5
  12. package/dist/node_modules/@tari-project/typescript-bindings/src/types/Block.d.ts +0 -31
  13. package/dist/node_modules/@tari-project/typescript-bindings/src/types/BucketId.d.ts +0 -1
  14. package/dist/node_modules/@tari-project/typescript-bindings/src/types/Claims.d.ts +0 -7
  15. package/dist/node_modules/@tari-project/typescript-bindings/src/types/Command.d.ts +0 -13
  16. package/dist/node_modules/@tari-project/typescript-bindings/src/types/Committee.d.ts +0 -3
  17. package/dist/node_modules/@tari-project/typescript-bindings/src/types/CommitteeInfo.d.ts +0 -5
  18. package/dist/node_modules/@tari-project/typescript-bindings/src/types/CommitteeShardInfo.d.ts +0 -10
  19. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ComponentAccessRules.d.ts +0 -5
  20. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ComponentAddress.d.ts +0 -1
  21. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ComponentBody.d.ts +0 -3
  22. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ComponentHeader.d.ts +0 -13
  23. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ComponentKey.d.ts +0 -1
  24. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ConfidentialClaim.d.ts +0 -8
  25. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ConfidentialOutput.d.ts +0 -8
  26. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ConfidentialOutputStatement.d.ts +0 -9
  27. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ConfidentialStatement.d.ts +0 -8
  28. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ConfidentialTransferInputSelection.d.ts +0 -1
  29. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ConfidentialWithdrawProof.d.ts +0 -7
  30. package/dist/node_modules/@tari-project/typescript-bindings/src/types/Decision.d.ts +0 -1
  31. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ElgamalVerifiableBalance.d.ts +0 -4
  32. package/dist/node_modules/@tari-project/typescript-bindings/src/types/EntityId.d.ts +0 -1
  33. package/dist/node_modules/@tari-project/typescript-bindings/src/types/Epoch.d.ts +0 -1
  34. package/dist/node_modules/@tari-project/typescript-bindings/src/types/Event.d.ts +0 -9
  35. package/dist/node_modules/@tari-project/typescript-bindings/src/types/Evidence.d.ts +0 -5
  36. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ExecuteResult.d.ts +0 -4
  37. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ExecutedTransaction.d.ts +0 -21
  38. package/dist/node_modules/@tari-project/typescript-bindings/src/types/FeeBreakdown.d.ts +0 -5
  39. package/dist/node_modules/@tari-project/typescript-bindings/src/types/FeeClaim.d.ts +0 -6
  40. package/dist/node_modules/@tari-project/typescript-bindings/src/types/FeeClaimAddress.d.ts +0 -1
  41. package/dist/node_modules/@tari-project/typescript-bindings/src/types/FeeCostBreakdown.d.ts +0 -6
  42. package/dist/node_modules/@tari-project/typescript-bindings/src/types/FeeReceipt.d.ts +0 -7
  43. package/dist/node_modules/@tari-project/typescript-bindings/src/types/FeeSource.d.ts +0 -1
  44. package/dist/node_modules/@tari-project/typescript-bindings/src/types/FinalizeResult.d.ts +0 -13
  45. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ForeignProposal.d.ts +0 -10
  46. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ForeignProposalState.d.ts +0 -1
  47. package/dist/node_modules/@tari-project/typescript-bindings/src/types/FunctionDef.d.ts +0 -8
  48. package/dist/node_modules/@tari-project/typescript-bindings/src/types/IndexedValue.d.ts +0 -5
  49. package/dist/node_modules/@tari-project/typescript-bindings/src/types/IndexedWellKnownTypes.d.ts +0 -18
  50. package/dist/node_modules/@tari-project/typescript-bindings/src/types/Instruction.d.ts +0 -40
  51. package/dist/node_modules/@tari-project/typescript-bindings/src/types/InstructionResult.d.ts +0 -6
  52. package/dist/node_modules/@tari-project/typescript-bindings/src/types/JrpcPermission.d.ts +0 -14
  53. package/dist/node_modules/@tari-project/typescript-bindings/src/types/JrpcPermissions.d.ts +0 -2
  54. package/dist/node_modules/@tari-project/typescript-bindings/src/types/LeaderFee.d.ts +0 -4
  55. package/dist/node_modules/@tari-project/typescript-bindings/src/types/LockFlag.d.ts +0 -1
  56. package/dist/node_modules/@tari-project/typescript-bindings/src/types/LogEntry.d.ts +0 -5
  57. package/dist/node_modules/@tari-project/typescript-bindings/src/types/LogLevel.d.ts +0 -1
  58. package/dist/node_modules/@tari-project/typescript-bindings/src/types/Metadata.d.ts +0 -1
  59. package/dist/node_modules/@tari-project/typescript-bindings/src/types/NetworkCommitteeInfo.d.ts +0 -6
  60. package/dist/node_modules/@tari-project/typescript-bindings/src/types/NodeHeight.d.ts +0 -1
  61. package/dist/node_modules/@tari-project/typescript-bindings/src/types/NonFungible.d.ts +0 -4
  62. package/dist/node_modules/@tari-project/typescript-bindings/src/types/NonFungibleAddress.d.ts +0 -1
  63. package/dist/node_modules/@tari-project/typescript-bindings/src/types/NonFungibleAddressContents.d.ts +0 -6
  64. package/dist/node_modules/@tari-project/typescript-bindings/src/types/NonFungibleContainer.d.ts +0 -2
  65. package/dist/node_modules/@tari-project/typescript-bindings/src/types/NonFungibleId.d.ts +0 -9
  66. package/dist/node_modules/@tari-project/typescript-bindings/src/types/NonFungibleIndex.d.ts +0 -4
  67. package/dist/node_modules/@tari-project/typescript-bindings/src/types/NonFungibleIndexAddress.d.ts +0 -5
  68. package/dist/node_modules/@tari-project/typescript-bindings/src/types/NonFungibleToken.d.ts +0 -9
  69. package/dist/node_modules/@tari-project/typescript-bindings/src/types/Ordering.d.ts +0 -1
  70. package/dist/node_modules/@tari-project/typescript-bindings/src/types/OwnerRule.d.ts +0 -6
  71. package/dist/node_modules/@tari-project/typescript-bindings/src/types/PeerAddress.d.ts +0 -1
  72. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ProofId.d.ts +0 -1
  73. package/dist/node_modules/@tari-project/typescript-bindings/src/types/QuorumCertificate.d.ts +0 -15
  74. package/dist/node_modules/@tari-project/typescript-bindings/src/types/QuorumDecision.d.ts +0 -1
  75. package/dist/node_modules/@tari-project/typescript-bindings/src/types/RejectReason.d.ts +0 -11
  76. package/dist/node_modules/@tari-project/typescript-bindings/src/types/RequireRule.d.ts +0 -8
  77. package/dist/node_modules/@tari-project/typescript-bindings/src/types/Resource.d.ts +0 -16
  78. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ResourceAccessRules.d.ts +0 -9
  79. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ResourceAddress.d.ts +0 -1
  80. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ResourceContainer.d.ts +0 -25
  81. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ResourceType.d.ts +0 -1
  82. package/dist/node_modules/@tari-project/typescript-bindings/src/types/RestrictedAccessRule.d.ts +0 -8
  83. package/dist/node_modules/@tari-project/typescript-bindings/src/types/RuleRequirement.d.ts +0 -12
  84. package/dist/node_modules/@tari-project/typescript-bindings/src/types/Shard.d.ts +0 -1
  85. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ShardEvidence.d.ts +0 -5
  86. package/dist/node_modules/@tari-project/typescript-bindings/src/types/Substate.d.ts +0 -5
  87. package/dist/node_modules/@tari-project/typescript-bindings/src/types/SubstateAddress.d.ts +0 -1
  88. package/dist/node_modules/@tari-project/typescript-bindings/src/types/SubstateDestroyed.d.ts +0 -9
  89. package/dist/node_modules/@tari-project/typescript-bindings/src/types/SubstateDiff.d.ts +0 -6
  90. package/dist/node_modules/@tari-project/typescript-bindings/src/types/SubstateId.d.ts +0 -24
  91. package/dist/node_modules/@tari-project/typescript-bindings/src/types/SubstateLockFlag.d.ts +0 -1
  92. package/dist/node_modules/@tari-project/typescript-bindings/src/types/SubstateRecord.d.ts +0 -19
  93. package/dist/node_modules/@tari-project/typescript-bindings/src/types/SubstateRequirement.d.ts +0 -5
  94. package/dist/node_modules/@tari-project/typescript-bindings/src/types/SubstateType.d.ts +0 -1
  95. package/dist/node_modules/@tari-project/typescript-bindings/src/types/SubstateValue.d.ts +0 -25
  96. package/dist/node_modules/@tari-project/typescript-bindings/src/types/TemplateDef.d.ts +0 -4
  97. package/dist/node_modules/@tari-project/typescript-bindings/src/types/TemplateDefV1.d.ts +0 -6
  98. package/dist/node_modules/@tari-project/typescript-bindings/src/types/Transaction.d.ts +0 -15
  99. package/dist/node_modules/@tari-project/typescript-bindings/src/types/TransactionAtom.d.ts +0 -10
  100. package/dist/node_modules/@tari-project/typescript-bindings/src/types/TransactionPoolRecord.d.ts +0 -16
  101. package/dist/node_modules/@tari-project/typescript-bindings/src/types/TransactionPoolStage.d.ts +0 -1
  102. package/dist/node_modules/@tari-project/typescript-bindings/src/types/TransactionReceipt.d.ts +0 -9
  103. package/dist/node_modules/@tari-project/typescript-bindings/src/types/TransactionReceiptAddress.d.ts +0 -1
  104. package/dist/node_modules/@tari-project/typescript-bindings/src/types/TransactionResult.d.ts +0 -9
  105. package/dist/node_modules/@tari-project/typescript-bindings/src/types/TransactionSignature.d.ts +0 -4
  106. package/dist/node_modules/@tari-project/typescript-bindings/src/types/TransactionStatus.d.ts +0 -1
  107. package/dist/node_modules/@tari-project/typescript-bindings/src/types/Type.d.ts +0 -9
  108. package/dist/node_modules/@tari-project/typescript-bindings/src/types/UnclaimedConfidentialOutput.d.ts +0 -4
  109. package/dist/node_modules/@tari-project/typescript-bindings/src/types/UnsignedTransaction.d.ts +0 -10
  110. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ValidatorSignature.d.ts +0 -7
  111. package/dist/node_modules/@tari-project/typescript-bindings/src/types/Vault.d.ts +0 -4
  112. package/dist/node_modules/@tari-project/typescript-bindings/src/types/VaultId.d.ts +0 -1
  113. package/dist/node_modules/@tari-project/typescript-bindings/src/types/VersionedSubstateId.d.ts +0 -5
  114. package/dist/node_modules/@tari-project/typescript-bindings/src/types/VersionedSubstateIdLockIntent.d.ts +0 -6
  115. package/dist/node_modules/@tari-project/typescript-bindings/src/types/ViewableBalanceProof.d.ts +0 -10
  116. package/dist/src/index.d.ts +0 -9
  117. package/dist/src/providers/index.d.ts +0 -16
  118. package/dist/src/providers/metamask/index.d.ts +0 -30
  119. package/dist/src/providers/metamask/utils.d.ts +0 -38
  120. package/dist/src/providers/tari_universe/index.d.ts +0 -3
  121. package/dist/src/providers/tari_universe/provider.d.ts +0 -23
  122. package/dist/src/providers/tari_universe/types.d.ts +0 -30
  123. package/dist/src/providers/types.d.ts +0 -65
  124. package/dist/src/providers/wallet_daemon/index.d.ts +0 -3
  125. package/dist/src/providers/wallet_daemon/provider.d.ts +0 -35
  126. package/dist/src/providers/wallet_daemon/tari_permissions.d.ts +0 -216
  127. package/dist/src/providers/wallet_daemon/webrtc.d.ts +0 -20
  128. package/dist/src/providers/wallet_daemon/webrtc_transport.d.ts +0 -10
  129. package/dist/src/utils.d.ts +0 -2
@@ -1,13 +0,0 @@
1
- import type { Event } from "./Event";
2
- import type { FeeReceipt } from "./FeeReceipt";
3
- import type { InstructionResult } from "./InstructionResult";
4
- import type { LogEntry } from "./LogEntry";
5
- import type { TransactionResult } from "./TransactionResult";
6
- export interface FinalizeResult {
7
- transaction_hash: Uint8Array;
8
- events: Array<Event>;
9
- logs: Array<LogEntry>;
10
- execution_results: Array<InstructionResult>;
11
- result: TransactionResult;
12
- fee_receipt: FeeReceipt;
13
- }
@@ -1,10 +0,0 @@
1
- import type { ForeignProposalState } from "./ForeignProposalState";
2
- import type { NodeHeight } from "./NodeHeight";
3
- export interface ForeignProposal {
4
- shard: number;
5
- block_id: string;
6
- state: ForeignProposalState;
7
- proposed_height: NodeHeight | null;
8
- transactions: Array<string>;
9
- base_layer_block_height: number;
10
- }
@@ -1 +0,0 @@
1
- export type ForeignProposalState = "New" | "Proposed" | "Deleted";
@@ -1,8 +0,0 @@
1
- import type { ArgDef } from "./ArgDef";
2
- import type { Type } from "./Type";
3
- export interface FunctionDef {
4
- name: string;
5
- arguments: Array<ArgDef>;
6
- output: Type;
7
- is_mut: boolean;
8
- }
@@ -1,5 +0,0 @@
1
- import type { IndexedWellKnownTypes } from "./IndexedWellKnownTypes";
2
- export interface IndexedValue {
3
- indexed: IndexedWellKnownTypes;
4
- value: any;
5
- }
@@ -1,18 +0,0 @@
1
- import type { BucketId } from "./BucketId";
2
- import type { ComponentAddress } from "./ComponentAddress";
3
- import type { Metadata } from "./Metadata";
4
- import type { NonFungibleAddress } from "./NonFungibleAddress";
5
- import type { ProofId } from "./ProofId";
6
- import type { ResourceAddress } from "./ResourceAddress";
7
- import type { TransactionReceiptAddress } from "./TransactionReceiptAddress";
8
- import type { VaultId } from "./VaultId";
9
- export interface IndexedWellKnownTypes {
10
- bucket_ids: Array<BucketId>;
11
- proof_ids: Array<ProofId>;
12
- component_addresses: Array<ComponentAddress>;
13
- resource_addresses: Array<ResourceAddress>;
14
- transaction_receipt_addresses: Array<TransactionReceiptAddress>;
15
- non_fungible_addresses: Array<NonFungibleAddress>;
16
- vault_ids: Array<VaultId>;
17
- metadata: Array<Metadata>;
18
- }
@@ -1,40 +0,0 @@
1
- import type { Arg } from "./Arg";
2
- import type { ComponentAddress } from "./ComponentAddress";
3
- import type { ConfidentialClaim } from "./ConfidentialClaim";
4
- import type { LogLevel } from "./LogLevel";
5
- export type Instruction = {
6
- CreateAccount: {
7
- owner_public_key: string;
8
- workspace_bucket: string | null;
9
- };
10
- } | {
11
- CallFunction: {
12
- template_address: Uint8Array;
13
- function: string;
14
- args: Array<Arg>;
15
- };
16
- } | {
17
- CallMethod: {
18
- component_address: ComponentAddress;
19
- method: string;
20
- args: Array<string>;
21
- };
22
- } | {
23
- PutLastInstructionOutputOnWorkspace: {
24
- key: Array<number>;
25
- };
26
- } | {
27
- EmitLog: {
28
- level: LogLevel;
29
- message: string;
30
- };
31
- } | {
32
- ClaimBurn: {
33
- claim: ConfidentialClaim;
34
- };
35
- } | {
36
- ClaimValidatorFees: {
37
- epoch: number;
38
- validator_public_key: string;
39
- };
40
- } | "DropAllProofsInWorkspace";
@@ -1,6 +0,0 @@
1
- import type { IndexedValue } from "./IndexedValue";
2
- import type { Type } from "./Type";
3
- export interface InstructionResult {
4
- indexed: IndexedValue;
5
- return_type: Type;
6
- }
@@ -1,14 +0,0 @@
1
- import type { ComponentAddress } from "./ComponentAddress";
2
- import type { ResourceAddress } from "./ResourceAddress";
3
- import type { SubstateId } from "./SubstateId";
4
- export type JrpcPermission = "AccountInfo" | {
5
- NftGetOwnershipProof: ResourceAddress | null;
6
- } | {
7
- AccountBalance: SubstateId;
8
- } | {
9
- AccountList: ComponentAddress | null;
10
- } | "SubstatesRead" | "TemplatesRead" | "KeyList" | "TransactionGet" | {
11
- TransactionSend: SubstateId | null;
12
- } | {
13
- GetNft: [SubstateId | null, ResourceAddress | null];
14
- } | "StartWebrtc" | "Admin";
@@ -1,2 +0,0 @@
1
- import type { JrpcPermission } from "./JrpcPermission";
2
- export type JrpcPermissions = Array<JrpcPermission>;
@@ -1,4 +0,0 @@
1
- export interface LeaderFee {
2
- fee: number;
3
- global_exhaust_burn: number;
4
- }
@@ -1 +0,0 @@
1
- export type LockFlag = "Read" | "Write";
@@ -1,5 +0,0 @@
1
- import type { LogLevel } from "./LogLevel";
2
- export interface LogEntry {
3
- message: string;
4
- level: LogLevel;
5
- }
@@ -1 +0,0 @@
1
- export type LogLevel = "Error" | "Warn" | "Info" | "Debug";
@@ -1 +0,0 @@
1
- export type Metadata = string;
@@ -1,6 +0,0 @@
1
- import type { CommitteeShardInfo } from "./CommitteeShardInfo";
2
- import type { Epoch } from "./Epoch";
3
- export interface NetworkCommitteeInfo<TAddr> {
4
- epoch: Epoch;
5
- committees: Array<CommitteeShardInfo<TAddr>>;
6
- }
@@ -1 +0,0 @@
1
- export type NodeHeight = number;
@@ -1,4 +0,0 @@
1
- export interface NonFungible {
2
- data: any;
3
- mutable_data: any;
4
- }
@@ -1 +0,0 @@
1
- export type NonFungibleAddress = string;
@@ -1,6 +0,0 @@
1
- import type { NonFungibleId } from "./NonFungibleId";
2
- import type { ResourceAddress } from "./ResourceAddress";
3
- export interface NonFungibleAddressContents {
4
- resource_address: ResourceAddress;
5
- id: NonFungibleId;
6
- }
@@ -1,2 +0,0 @@
1
- import type { NonFungible } from "./NonFungible";
2
- export type NonFungibleContainer = NonFungible | null;
@@ -1,9 +0,0 @@
1
- export type NonFungibleId = {
2
- U256: Array<number>;
3
- } | {
4
- String: string;
5
- } | {
6
- Uint32: number;
7
- } | {
8
- Uint64: number;
9
- };
@@ -1,4 +0,0 @@
1
- import type { NonFungibleAddress } from "./NonFungibleAddress";
2
- export interface NonFungibleIndex {
3
- referenced_address: NonFungibleAddress;
4
- }
@@ -1,5 +0,0 @@
1
- import type { ResourceAddress } from "./ResourceAddress";
2
- export interface NonFungibleIndexAddress {
3
- resource_address: ResourceAddress;
4
- index: number;
5
- }
@@ -1,9 +0,0 @@
1
- import type { NonFungibleId } from "./NonFungibleId";
2
- import type { VaultId } from "./VaultId";
3
- export interface NonFungibleToken {
4
- vault_id: VaultId;
5
- nft_id: NonFungibleId;
6
- data: any;
7
- mutable_data: any;
8
- is_burned: boolean;
9
- }
@@ -1 +0,0 @@
1
- export type Ordering = "Ascending" | "Descending";
@@ -1,6 +0,0 @@
1
- import type { AccessRule } from "./AccessRule";
2
- export type OwnerRule = "OwnedBySigner" | "None" | {
3
- ByAccessRule: AccessRule;
4
- } | {
5
- ByPublicKey: Array<number>;
6
- };
@@ -1 +0,0 @@
1
- export type PeerAddress = string;
@@ -1 +0,0 @@
1
- export type ProofId = number;
@@ -1,15 +0,0 @@
1
- import type { Epoch } from "./Epoch";
2
- import type { NodeHeight } from "./NodeHeight";
3
- import type { QuorumDecision } from "./QuorumDecision";
4
- import type { Shard } from "./Shard";
5
- import type { ValidatorSignature } from "./ValidatorSignature";
6
- export interface QuorumCertificate {
7
- qc_id: string;
8
- block_id: string;
9
- block_height: NodeHeight;
10
- epoch: Epoch;
11
- shard: Shard;
12
- signatures: Array<ValidatorSignature>;
13
- leaf_hashes: Array<string>;
14
- decision: QuorumDecision;
15
- }
@@ -1 +0,0 @@
1
- export type QuorumDecision = "Accept" | "Reject";
@@ -1,11 +0,0 @@
1
- export type RejectReason = {
2
- ShardsNotPledged: string;
3
- } | {
4
- ExecutionFailure: string;
5
- } | "PreviousQcRejection" | {
6
- ShardPledgedToAnotherPayload: string;
7
- } | {
8
- ShardRejected: string;
9
- } | "FeeTransactionFailed" | {
10
- FeesNotPaid: string;
11
- };
@@ -1,8 +0,0 @@
1
- import type { RuleRequirement } from "./RuleRequirement";
2
- export type RequireRule = {
3
- Require: RuleRequirement;
4
- } | {
5
- AnyOf: Array<RuleRequirement>;
6
- } | {
7
- AllOf: Array<RuleRequirement>;
8
- };
@@ -1,16 +0,0 @@
1
- import type { Amount } from "./Amount";
2
- import type { AuthHook } from "./AuthHook";
3
- import type { Metadata } from "./Metadata";
4
- import type { OwnerRule } from "./OwnerRule";
5
- import type { ResourceAccessRules } from "./ResourceAccessRules";
6
- import type { ResourceType } from "./ResourceType";
7
- export interface Resource {
8
- resource_type: ResourceType;
9
- owner_rule: OwnerRule;
10
- owner_key: Array<number>;
11
- access_rules: ResourceAccessRules;
12
- metadata: Metadata;
13
- total_supply: Amount;
14
- view_key: string | null;
15
- auth_hook: AuthHook | null;
16
- }
@@ -1,9 +0,0 @@
1
- import type { AccessRule } from "./AccessRule";
2
- export interface ResourceAccessRules {
3
- mintable: AccessRule;
4
- burnable: AccessRule;
5
- recallable: AccessRule;
6
- withdrawable: AccessRule;
7
- depositable: AccessRule;
8
- update_non_fungible_data: AccessRule;
9
- }
@@ -1 +0,0 @@
1
- export type ResourceAddress = string;
@@ -1,25 +0,0 @@
1
- import type { Amount } from "./Amount";
2
- import type { NonFungibleId } from "./NonFungibleId";
3
- import type { ResourceAddress } from "./ResourceAddress";
4
- export type ResourceContainer = {
5
- Fungible: {
6
- address: ResourceAddress;
7
- amount: Amount;
8
- locked_amount: Amount;
9
- };
10
- } | {
11
- NonFungible: {
12
- address: ResourceAddress;
13
- token_ids: Array<NonFungibleId>;
14
- locked_token_ids: Array<NonFungibleId>;
15
- };
16
- } | {
17
- Confidential: {
18
- address: ResourceAddress;
19
- commitments: Record<string, ConfidentialOutput>;
20
- revealed_amount: Amount;
21
- locked_commitments: Record<string, ConfidentialOutput>;
22
- locked_revealed_amount: Amount;
23
- };
24
- };
25
- import { ConfidentialOutput } from "./ConfidentialOutput";
@@ -1 +0,0 @@
1
- export type ResourceType = "Fungible" | "NonFungible" | "Confidential";
@@ -1,8 +0,0 @@
1
- import type { RequireRule } from "./RequireRule";
2
- export type RestrictedAccessRule = {
3
- Require: RequireRule;
4
- } | {
5
- AnyOf: Array<RestrictedAccessRule>;
6
- } | {
7
- AllOf: Array<RestrictedAccessRule>;
8
- };
@@ -1,12 +0,0 @@
1
- import type { ComponentAddress } from "./ComponentAddress";
2
- import type { NonFungibleAddress } from "./NonFungibleAddress";
3
- import type { ResourceAddress } from "./ResourceAddress";
4
- export type RuleRequirement = {
5
- Resource: ResourceAddress;
6
- } | {
7
- NonFungibleAddress: NonFungibleAddress;
8
- } | {
9
- ScopedToComponent: ComponentAddress;
10
- } | {
11
- ScopedToTemplate: Uint8Array;
12
- };
@@ -1 +0,0 @@
1
- export type Shard = number;
@@ -1,5 +0,0 @@
1
- import type { SubstateLockFlag } from "./SubstateLockFlag";
2
- export interface ShardEvidence {
3
- qc_ids: Array<string>;
4
- lock: SubstateLockFlag;
5
- }
@@ -1,5 +0,0 @@
1
- import type { SubstateValue } from "./SubstateValue";
2
- export interface Substate {
3
- substate: SubstateValue;
4
- version: number;
5
- }
@@ -1 +0,0 @@
1
- export type SubstateAddress = string;
@@ -1,9 +0,0 @@
1
- import type { Epoch } from "./Epoch";
2
- import type { Shard } from "./Shard";
3
- export interface SubstateDestroyed {
4
- by_transaction: string;
5
- justify: string;
6
- by_block: string;
7
- at_epoch: Epoch;
8
- by_shard: Shard;
9
- }
@@ -1,6 +0,0 @@
1
- import type { Substate } from "./Substate";
2
- import type { SubstateId } from "./SubstateId";
3
- export interface SubstateDiff {
4
- up_substates: Array<[SubstateId, Substate]>;
5
- down_substates: Array<[SubstateId, number]>;
6
- }
@@ -1,24 +0,0 @@
1
- import type { ComponentAddress } from "./ComponentAddress";
2
- import type { FeeClaimAddress } from "./FeeClaimAddress";
3
- import type { NonFungibleAddress } from "./NonFungibleAddress";
4
- import type { NonFungibleIndexAddress } from "./NonFungibleIndexAddress";
5
- import type { ResourceAddress } from "./ResourceAddress";
6
- import type { TransactionReceiptAddress } from "./TransactionReceiptAddress";
7
- import type { VaultId } from "./VaultId";
8
- export type SubstateId = {
9
- Component: ComponentAddress;
10
- } | {
11
- Resource: ResourceAddress;
12
- } | {
13
- Vault: VaultId;
14
- } | {
15
- UnclaimedConfidentialOutput: string;
16
- } | {
17
- NonFungible: NonFungibleAddress;
18
- } | {
19
- NonFungibleIndex: NonFungibleIndexAddress;
20
- } | {
21
- TransactionReceipt: TransactionReceiptAddress;
22
- } | {
23
- FeeClaim: FeeClaimAddress;
24
- };
@@ -1 +0,0 @@
1
- export type SubstateLockFlag = "Read" | "Write" | "Output";
@@ -1,19 +0,0 @@
1
- import type { Epoch } from "./Epoch";
2
- import type { NodeHeight } from "./NodeHeight";
3
- import type { Shard } from "./Shard";
4
- import type { SubstateDestroyed } from "./SubstateDestroyed";
5
- import type { SubstateId } from "./SubstateId";
6
- import type { SubstateValue } from "./SubstateValue";
7
- export interface SubstateRecord {
8
- substate_id: SubstateId;
9
- version: number;
10
- substate_value: SubstateValue;
11
- state_hash: string;
12
- created_by_transaction: string;
13
- created_justify: string;
14
- created_block: string;
15
- created_height: NodeHeight;
16
- created_by_shard: Shard;
17
- created_at_epoch: Epoch;
18
- destroyed: SubstateDestroyed | null;
19
- }
@@ -1,5 +0,0 @@
1
- import type { SubstateId } from "./SubstateId";
2
- export interface SubstateRequirement {
3
- substate_id: SubstateId;
4
- version: number | null;
5
- }
@@ -1 +0,0 @@
1
- export type SubstateType = "Component" | "Resource" | "Vault" | "UnclaimedConfidentialOutput" | "NonFungible" | "TransactionReceipt" | "FeeClaim";
@@ -1,25 +0,0 @@
1
- import type { ComponentHeader } from "./ComponentHeader";
2
- import type { FeeClaim } from "./FeeClaim";
3
- import type { NonFungibleContainer } from "./NonFungibleContainer";
4
- import type { NonFungibleIndex } from "./NonFungibleIndex";
5
- import type { Resource } from "./Resource";
6
- import type { TransactionReceipt } from "./TransactionReceipt";
7
- import type { UnclaimedConfidentialOutput } from "./UnclaimedConfidentialOutput";
8
- import type { Vault } from "./Vault";
9
- export type SubstateValue = {
10
- Component: ComponentHeader;
11
- } | {
12
- Resource: Resource;
13
- } | {
14
- Vault: Vault;
15
- } | {
16
- NonFungible: NonFungibleContainer;
17
- } | {
18
- NonFungibleIndex: NonFungibleIndex;
19
- } | {
20
- UnclaimedConfidentialOutput: UnclaimedConfidentialOutput;
21
- } | {
22
- TransactionReceipt: TransactionReceipt;
23
- } | {
24
- FeeClaim: FeeClaim;
25
- };
@@ -1,4 +0,0 @@
1
- import type { TemplateDefV1 } from "./TemplateDefV1";
2
- export type TemplateDef = {
3
- V1: TemplateDefV1;
4
- };
@@ -1,6 +0,0 @@
1
- import type { FunctionDef } from "./FunctionDef";
2
- export interface TemplateDefV1 {
3
- template_name: string;
4
- tari_version: string;
5
- functions: Array<FunctionDef>;
6
- }
@@ -1,15 +0,0 @@
1
- import type { Epoch } from "./Epoch";
2
- import type { Instruction } from "./Instruction";
3
- import type { SubstateRequirement } from "./SubstateRequirement";
4
- import type { TransactionSignature } from "./TransactionSignature";
5
- import type { VersionedSubstateId } from "./VersionedSubstateId";
6
- export interface Transaction {
7
- id: string;
8
- fee_instructions: Array<Instruction>;
9
- instructions: Array<Instruction>;
10
- inputs: Array<SubstateRequirement>;
11
- min_epoch: Epoch | null;
12
- max_epoch: Epoch | null;
13
- signatures: Array<TransactionSignature>;
14
- filled_inputs: Array<VersionedSubstateId>;
15
- }
@@ -1,10 +0,0 @@
1
- import type { Decision } from "./Decision";
2
- import type { Evidence } from "./Evidence";
3
- import type { LeaderFee } from "./LeaderFee";
4
- export interface TransactionAtom {
5
- id: string;
6
- decision: Decision;
7
- evidence: Evidence;
8
- transaction_fee: number;
9
- leader_fee: LeaderFee | null;
10
- }
@@ -1,16 +0,0 @@
1
- import type { Decision } from "./Decision";
2
- import type { Evidence } from "./Evidence";
3
- import type { LeaderFee } from "./LeaderFee";
4
- import type { TransactionPoolStage } from "./TransactionPoolStage";
5
- export interface TransactionPoolRecord {
6
- transaction_id: string;
7
- evidence: Evidence;
8
- transaction_fee: number;
9
- leader_fee: LeaderFee | null;
10
- stage: TransactionPoolStage;
11
- pending_stage: TransactionPoolStage | null;
12
- original_decision: Decision;
13
- local_decision: Decision | null;
14
- remote_decision: Decision | null;
15
- is_ready: boolean;
16
- }
@@ -1 +0,0 @@
1
- export type TransactionPoolStage = "New" | "Prepared" | "LocalPrepared" | "AllPrepared" | "SomePrepared" | "LocalOnly";
@@ -1,9 +0,0 @@
1
- import type { Event } from "./Event";
2
- import type { FeeReceipt } from "./FeeReceipt";
3
- import type { LogEntry } from "./LogEntry";
4
- export interface TransactionReceipt {
5
- transaction_hash: Uint8Array;
6
- events: Array<Event>;
7
- logs: Array<LogEntry>;
8
- fee_receipt: FeeReceipt;
9
- }
@@ -1 +0,0 @@
1
- export type TransactionReceiptAddress = string;
@@ -1,9 +0,0 @@
1
- import type { RejectReason } from "./RejectReason";
2
- import type { SubstateDiff } from "./SubstateDiff";
3
- export type TransactionResult = {
4
- Accept: SubstateDiff;
5
- } | {
6
- AcceptFeeRejectRest: [SubstateDiff, RejectReason];
7
- } | {
8
- Reject: RejectReason;
9
- };
@@ -1,4 +0,0 @@
1
- export interface TransactionSignature {
2
- public_key: string;
3
- signature: string;
4
- }
@@ -1 +0,0 @@
1
- export type TransactionStatus = "New" | "DryRun" | "Pending" | "Accepted" | "Rejected" | "InvalidTransaction" | "OnlyFeeAccepted";
@@ -1,9 +0,0 @@
1
- export type Type = "Unit" | "Bool" | "I8" | "I16" | "I32" | "I64" | "I128" | "U8" | "U16" | "U32" | "U64" | "U128" | "String" | {
2
- Vec: Type;
3
- } | {
4
- Tuple: Array<Type>;
5
- } | {
6
- Other: {
7
- name: string;
8
- };
9
- };
@@ -1,4 +0,0 @@
1
- export interface UnclaimedConfidentialOutput {
2
- commitment: string;
3
- encrypted_data: Array<number>;
4
- }
@@ -1,10 +0,0 @@
1
- import type { Epoch } from "./Epoch";
2
- import type { Instruction } from "./Instruction";
3
- import type { SubstateRequirement } from "./SubstateRequirement";
4
- export interface UnsignedTransaction {
5
- fee_instructions: Array<Instruction>;
6
- instructions: Array<Instruction>;
7
- inputs: Array<SubstateRequirement>;
8
- min_epoch: Epoch | null;
9
- max_epoch: Epoch | null;
10
- }