@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.
- package/package.json +8 -11
- package/dist/index.js +0 -1063
- package/dist/index.js.map +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/index.d.ts +0 -111
- package/dist/node_modules/@tari-project/typescript-bindings/src/helpers/helpers.d.ts +0 -11
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/AccessRule.d.ts +0 -4
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/Account.d.ts +0 -7
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/Amount.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/Arg.d.ts +0 -5
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ArgDef.d.ts +0 -5
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/AuthHook.d.ts +0 -5
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/Block.d.ts +0 -31
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/BucketId.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/Claims.d.ts +0 -7
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/Command.d.ts +0 -13
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/Committee.d.ts +0 -3
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/CommitteeInfo.d.ts +0 -5
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/CommitteeShardInfo.d.ts +0 -10
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ComponentAccessRules.d.ts +0 -5
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ComponentAddress.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ComponentBody.d.ts +0 -3
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ComponentHeader.d.ts +0 -13
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ComponentKey.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ConfidentialClaim.d.ts +0 -8
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ConfidentialOutput.d.ts +0 -8
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ConfidentialOutputStatement.d.ts +0 -9
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ConfidentialStatement.d.ts +0 -8
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ConfidentialTransferInputSelection.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ConfidentialWithdrawProof.d.ts +0 -7
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/Decision.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ElgamalVerifiableBalance.d.ts +0 -4
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/EntityId.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/Epoch.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/Event.d.ts +0 -9
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/Evidence.d.ts +0 -5
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ExecuteResult.d.ts +0 -4
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ExecutedTransaction.d.ts +0 -21
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/FeeBreakdown.d.ts +0 -5
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/FeeClaim.d.ts +0 -6
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/FeeClaimAddress.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/FeeCostBreakdown.d.ts +0 -6
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/FeeReceipt.d.ts +0 -7
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/FeeSource.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/FinalizeResult.d.ts +0 -13
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ForeignProposal.d.ts +0 -10
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ForeignProposalState.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/FunctionDef.d.ts +0 -8
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/IndexedValue.d.ts +0 -5
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/IndexedWellKnownTypes.d.ts +0 -18
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/Instruction.d.ts +0 -40
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/InstructionResult.d.ts +0 -6
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/JrpcPermission.d.ts +0 -14
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/JrpcPermissions.d.ts +0 -2
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/LeaderFee.d.ts +0 -4
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/LockFlag.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/LogEntry.d.ts +0 -5
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/LogLevel.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/Metadata.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/NetworkCommitteeInfo.d.ts +0 -6
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/NodeHeight.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/NonFungible.d.ts +0 -4
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/NonFungibleAddress.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/NonFungibleAddressContents.d.ts +0 -6
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/NonFungibleContainer.d.ts +0 -2
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/NonFungibleId.d.ts +0 -9
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/NonFungibleIndex.d.ts +0 -4
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/NonFungibleIndexAddress.d.ts +0 -5
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/NonFungibleToken.d.ts +0 -9
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/Ordering.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/OwnerRule.d.ts +0 -6
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/PeerAddress.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ProofId.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/QuorumCertificate.d.ts +0 -15
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/QuorumDecision.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/RejectReason.d.ts +0 -11
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/RequireRule.d.ts +0 -8
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/Resource.d.ts +0 -16
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ResourceAccessRules.d.ts +0 -9
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ResourceAddress.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ResourceContainer.d.ts +0 -25
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ResourceType.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/RestrictedAccessRule.d.ts +0 -8
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/RuleRequirement.d.ts +0 -12
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/Shard.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ShardEvidence.d.ts +0 -5
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/Substate.d.ts +0 -5
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/SubstateAddress.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/SubstateDestroyed.d.ts +0 -9
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/SubstateDiff.d.ts +0 -6
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/SubstateId.d.ts +0 -24
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/SubstateLockFlag.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/SubstateRecord.d.ts +0 -19
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/SubstateRequirement.d.ts +0 -5
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/SubstateType.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/SubstateValue.d.ts +0 -25
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/TemplateDef.d.ts +0 -4
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/TemplateDefV1.d.ts +0 -6
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/Transaction.d.ts +0 -15
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/TransactionAtom.d.ts +0 -10
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/TransactionPoolRecord.d.ts +0 -16
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/TransactionPoolStage.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/TransactionReceipt.d.ts +0 -9
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/TransactionReceiptAddress.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/TransactionResult.d.ts +0 -9
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/TransactionSignature.d.ts +0 -4
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/TransactionStatus.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/Type.d.ts +0 -9
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/UnclaimedConfidentialOutput.d.ts +0 -4
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/UnsignedTransaction.d.ts +0 -10
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ValidatorSignature.d.ts +0 -7
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/Vault.d.ts +0 -4
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/VaultId.d.ts +0 -1
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/VersionedSubstateId.d.ts +0 -5
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/VersionedSubstateIdLockIntent.d.ts +0 -6
- package/dist/node_modules/@tari-project/typescript-bindings/src/types/ViewableBalanceProof.d.ts +0 -10
- package/dist/src/index.d.ts +0 -9
- package/dist/src/providers/index.d.ts +0 -16
- package/dist/src/providers/metamask/index.d.ts +0 -30
- package/dist/src/providers/metamask/utils.d.ts +0 -38
- package/dist/src/providers/tari_universe/index.d.ts +0 -3
- package/dist/src/providers/tari_universe/provider.d.ts +0 -23
- package/dist/src/providers/tari_universe/types.d.ts +0 -30
- package/dist/src/providers/types.d.ts +0 -65
- package/dist/src/providers/wallet_daemon/index.d.ts +0 -3
- package/dist/src/providers/wallet_daemon/provider.d.ts +0 -35
- package/dist/src/providers/wallet_daemon/tari_permissions.d.ts +0 -216
- package/dist/src/providers/wallet_daemon/webrtc.d.ts +0 -20
- package/dist/src/providers/wallet_daemon/webrtc_transport.d.ts +0 -10
- 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
|
-
}
|
package/dist/node_modules/@tari-project/typescript-bindings/src/types/ForeignProposalState.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ForeignProposalState = "New" | "Proposed" | "Deleted";
|
package/dist/node_modules/@tari-project/typescript-bindings/src/types/IndexedWellKnownTypes.d.ts
DELETED
|
@@ -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,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 +0,0 @@
|
|
|
1
|
-
export type LockFlag = "Read" | "Write";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type LogLevel = "Error" | "Warn" | "Info" | "Debug";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type Metadata = string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type NodeHeight = number;
|
package/dist/node_modules/@tari-project/typescript-bindings/src/types/NonFungibleAddress.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type NonFungibleAddress = string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type Ordering = "Ascending" | "Descending";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type PeerAddress = string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ProofId = number;
|
package/dist/node_modules/@tari-project/typescript-bindings/src/types/QuorumCertificate.d.ts
DELETED
|
@@ -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,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 +0,0 @@
|
|
|
1
|
-
export type ResourceAddress = string;
|
package/dist/node_modules/@tari-project/typescript-bindings/src/types/ResourceContainer.d.ts
DELETED
|
@@ -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,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 +0,0 @@
|
|
|
1
|
-
export type SubstateAddress = string;
|
|
@@ -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 +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,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
|
-
}
|
package/dist/node_modules/@tari-project/typescript-bindings/src/types/TransactionPoolRecord.d.ts
DELETED
|
@@ -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
|
-
}
|
package/dist/node_modules/@tari-project/typescript-bindings/src/types/TransactionPoolStage.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type TransactionPoolStage = "New" | "Prepared" | "LocalPrepared" | "AllPrepared" | "SomePrepared" | "LocalOnly";
|
package/dist/node_modules/@tari-project/typescript-bindings/src/types/TransactionReceipt.d.ts
DELETED
|
@@ -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
|
-
}
|
package/dist/node_modules/@tari-project/typescript-bindings/src/types/TransactionReceiptAddress.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type TransactionReceiptAddress = string;
|
package/dist/node_modules/@tari-project/typescript-bindings/src/types/TransactionStatus.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type TransactionStatus = "New" | "DryRun" | "Pending" | "Accepted" | "Rejected" | "InvalidTransaction" | "OnlyFeeAccepted";
|
package/dist/node_modules/@tari-project/typescript-bindings/src/types/UnsignedTransaction.d.ts
DELETED
|
@@ -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
|
-
}
|