@tari-project/ootle-ts-bindings 1.23.3 → 1.24.0
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/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/types/Bytes.d.ts +3 -3
- package/dist/types/ComponentHeader.d.ts +2 -2
- package/dist/types/Event.d.ts +2 -2
- package/dist/types/FinalizeResult.d.ts +2 -2
- package/dist/types/{Hash.d.ts → Hash32.d.ts} +1 -1
- package/dist/types/Instruction.d.ts +3 -3
- package/dist/types/PrecisionAmount.d.ts +10 -0
- package/dist/types/PrecisionAmount.js +2 -0
- package/dist/types/RuleRequirement.d.ts +2 -2
- package/dist/types/UpSubstate.d.ts +2 -1
- package/dist/types/tari-indexer-client/ListSubstateItem.d.ts +2 -2
- package/dist/types/tari-indexer-client/ListSubstatesRequest.d.ts +2 -2
- package/dist/types/tari-indexer-client/TemplateMetadata.d.ts +2 -2
- package/dist/types/validator-node-client/GetTemplateRequest.d.ts +2 -2
- package/dist/types/validator-node-client/VNTemplateMetadata.d.ts +2 -2
- package/dist/types/wallet-types/AuthoredTemplate.d.ts +2 -2
- package/dist/types/wallet-types/TemplatesGetRequest.d.ts +2 -2
- package/dist/types/wallet-types/WalletSubstateInfo.d.ts +2 -2
- package/package.json +1 -1
- /package/dist/types/{Hash.js → Hash32.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -51,8 +51,8 @@ export * from "./types/FinalizeOutcome";
|
|
|
51
51
|
export * from "./types/FinalizeResult";
|
|
52
52
|
export * from "./types/ForeignProposalAtom";
|
|
53
53
|
export * from "./types/FunctionDef";
|
|
54
|
+
export * from "./types/Hash32";
|
|
54
55
|
export * from "./types/Hash64";
|
|
55
|
-
export * from "./types/Hash";
|
|
56
56
|
export * from "./types/IndexedValue";
|
|
57
57
|
export * from "./types/IndexedWellKnownTypes";
|
|
58
58
|
export * from "./types/InstructionArg";
|
|
@@ -85,6 +85,7 @@ export * from "./types/OwnerRule";
|
|
|
85
85
|
export * from "./types/PayRef";
|
|
86
86
|
export * from "./types/PedersenCommitmentBytes";
|
|
87
87
|
export * from "./types/PeerAddress";
|
|
88
|
+
export * from "./types/PrecisionAmount";
|
|
88
89
|
export * from "./types/ProofId";
|
|
89
90
|
export * from "./types/ProposalCertificate";
|
|
90
91
|
export * from "./types/PublishedTemplateAddress";
|
package/dist/index.js
CHANGED
|
@@ -53,8 +53,8 @@ export * from "./types/FinalizeOutcome";
|
|
|
53
53
|
export * from "./types/FinalizeResult";
|
|
54
54
|
export * from "./types/ForeignProposalAtom";
|
|
55
55
|
export * from "./types/FunctionDef";
|
|
56
|
+
export * from "./types/Hash32";
|
|
56
57
|
export * from "./types/Hash64";
|
|
57
|
-
export * from "./types/Hash";
|
|
58
58
|
export * from "./types/IndexedValue";
|
|
59
59
|
export * from "./types/IndexedWellKnownTypes";
|
|
60
60
|
export * from "./types/InstructionArg";
|
|
@@ -87,6 +87,7 @@ export * from "./types/OwnerRule";
|
|
|
87
87
|
export * from "./types/PayRef";
|
|
88
88
|
export * from "./types/PedersenCommitmentBytes";
|
|
89
89
|
export * from "./types/PeerAddress";
|
|
90
|
+
export * from "./types/PrecisionAmount";
|
|
90
91
|
export * from "./types/ProofId";
|
|
91
92
|
export * from "./types/ProposalCertificate";
|
|
92
93
|
export * from "./types/PublishedTemplateAddress";
|
package/dist/types/Bytes.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* A wrapper around a byte buffer that implements efficient serde serialisation.
|
|
3
3
|
*
|
|
4
4
|
* Unfortunately, because we cannot implement a specialized version of serde::Serialize (impl serde::Serialize for
|
|
5
|
-
* Vec<u8
|
|
6
|
-
* results in a significant size overhead. This wrapper uses the `Value::Bytes` variant (similar to `serde_as(as
|
|
7
|
-
* "Bytes")`).
|
|
5
|
+
* `Vec<u8>`) ciborium will represent bytes as `Array(vec![Integer(u8), ....])` instead of `Bytes(vec![u8, ...])`.
|
|
6
|
+
* which results in a significant size overhead. This wrapper uses the `Value::Bytes` variant (similar to `serde_as(as
|
|
7
|
+
* = "Bytes")`).
|
|
8
8
|
*/
|
|
9
9
|
export type Bytes = Uint8Array;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ComponentAccessRules } from "./ComponentAccessRules";
|
|
2
2
|
import type { ComponentBody } from "./ComponentBody";
|
|
3
3
|
import type { EntityId } from "./EntityId";
|
|
4
|
-
import type {
|
|
4
|
+
import type { Hash32 } from "./Hash32";
|
|
5
5
|
import type { OwnerRule } from "./OwnerRule";
|
|
6
6
|
import type { RistrettoPublicKeyBytes } from "./RistrettoPublicKeyBytes";
|
|
7
7
|
export type ComponentHeader = {
|
|
8
|
-
template_address:
|
|
8
|
+
template_address: Hash32;
|
|
9
9
|
module_name: string;
|
|
10
10
|
owner_key: RistrettoPublicKeyBytes | null;
|
|
11
11
|
owner_rule: OwnerRule;
|
package/dist/types/Event.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Hash32 } from "./Hash32";
|
|
2
2
|
import type { Metadata } from "./Metadata";
|
|
3
3
|
import type { SubstateId } from "./SubstateId";
|
|
4
4
|
export type Event = {
|
|
5
5
|
substate_id: SubstateId | null;
|
|
6
|
-
template_address:
|
|
6
|
+
template_address: Hash32;
|
|
7
7
|
topic: string;
|
|
8
8
|
payload: Metadata;
|
|
9
9
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Event } from "./Event";
|
|
2
2
|
import type { FeeReceipt } from "./FeeReceipt";
|
|
3
|
-
import type {
|
|
3
|
+
import type { Hash32 } from "./Hash32";
|
|
4
4
|
import type { InstructionResult } from "./InstructionResult";
|
|
5
5
|
import type { LogEntry } from "./LogEntry";
|
|
6
6
|
import type { TransactionResult } from "./TransactionResult";
|
|
7
7
|
export type FinalizeResult = {
|
|
8
|
-
transaction_hash:
|
|
8
|
+
transaction_hash: Hash32;
|
|
9
9
|
events: Array<Event>;
|
|
10
10
|
logs: Array<LogEntry>;
|
|
11
11
|
execution_results: Array<InstructionResult>;
|
|
@@ -3,7 +3,7 @@ import type { Amount } from "./Amount";
|
|
|
3
3
|
import type { ClaimBurnOutputData } from "./ClaimBurnOutputData";
|
|
4
4
|
import type { ComponentAccessRules } from "./ComponentAccessRules";
|
|
5
5
|
import type { ComponentReference } from "./ComponentReference";
|
|
6
|
-
import type {
|
|
6
|
+
import type { Hash32 } from "./Hash32";
|
|
7
7
|
import type { InstructionArg } from "./InstructionArg";
|
|
8
8
|
import type { LogLevel } from "./LogLevel";
|
|
9
9
|
import type { MigrateFunction } from "./MigrateFunction";
|
|
@@ -24,7 +24,7 @@ export type Instruction = {
|
|
|
24
24
|
};
|
|
25
25
|
} | {
|
|
26
26
|
CallFunction: {
|
|
27
|
-
address:
|
|
27
|
+
address: Hash32;
|
|
28
28
|
function: string;
|
|
29
29
|
args: Array<InstructionArg>;
|
|
30
30
|
};
|
|
@@ -92,6 +92,6 @@ export type Instruction = {
|
|
|
92
92
|
UpdateComponentTemplate: {
|
|
93
93
|
component: ComponentReference;
|
|
94
94
|
migrate: MigrateFunction | null;
|
|
95
|
-
new_template:
|
|
95
|
+
new_template: Hash32;
|
|
96
96
|
};
|
|
97
97
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A 192-bit signed amount.
|
|
3
|
+
*
|
|
4
|
+
* This is a general purpose signed integer, but is primarily used to represent the smallest unit of value in
|
|
5
|
+
* resources/vaults etc.
|
|
6
|
+
*
|
|
7
|
+
* This allows Tari to support a massive number tokens within resources.
|
|
8
|
+
* e.g. 2 ETH = 2 x 10^18 Gwei.
|
|
9
|
+
*/
|
|
10
|
+
export type PrecisionAmount = string | number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentAddress } from "./ComponentAddress";
|
|
2
|
-
import type {
|
|
2
|
+
import type { Hash32 } from "./Hash32";
|
|
3
3
|
import type { NonFungibleAddress } from "./NonFungibleAddress";
|
|
4
4
|
import type { ResourceAddress } from "./ResourceAddress";
|
|
5
5
|
/**
|
|
@@ -12,5 +12,5 @@ export type RuleRequirement = {
|
|
|
12
12
|
} | {
|
|
13
13
|
ScopedToComponent: ComponentAddress;
|
|
14
14
|
} | {
|
|
15
|
-
ScopedToTemplate:
|
|
15
|
+
ScopedToTemplate: Hash32;
|
|
16
16
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Hash32 } from "../Hash32";
|
|
2
2
|
import type { SubstateId } from "../SubstateId";
|
|
3
3
|
export type ListSubstateItem = {
|
|
4
4
|
substate_id: SubstateId;
|
|
5
5
|
module_name: string | null;
|
|
6
6
|
version: number;
|
|
7
|
-
template_address:
|
|
7
|
+
template_address: Hash32 | null;
|
|
8
8
|
timestamp: string;
|
|
9
9
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Hash32 } from "../Hash32";
|
|
2
2
|
import type { SubstateId } from "../SubstateId";
|
|
3
3
|
import type { SubstateType } from "../SubstateType";
|
|
4
4
|
export type ListSubstatesRequest = {
|
|
5
5
|
by_id: SubstateId | null;
|
|
6
|
-
filter_by_template:
|
|
6
|
+
filter_by_template: Hash32 | null;
|
|
7
7
|
filter_by_type: SubstateType | null;
|
|
8
8
|
limit: bigint | null;
|
|
9
9
|
offset: bigint | null;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Epoch } from "../Epoch";
|
|
2
|
-
import type {
|
|
2
|
+
import type { Hash32 } from "../Hash32";
|
|
3
3
|
import type { RistrettoPublicKeyBytes } from "../RistrettoPublicKeyBytes";
|
|
4
4
|
export type TemplateMetadata = {
|
|
5
5
|
name: string;
|
|
6
|
-
address:
|
|
6
|
+
address: Hash32;
|
|
7
7
|
binary_sha: string;
|
|
8
8
|
author_public_key: RistrettoPublicKeyBytes;
|
|
9
9
|
code_size: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Hash32 } from "../Hash32";
|
|
2
2
|
import type { RistrettoPublicKeyBytes } from "../RistrettoPublicKeyBytes";
|
|
3
3
|
export type VNTemplateMetadata = {
|
|
4
4
|
name: string;
|
|
5
|
-
address:
|
|
5
|
+
address: Hash32;
|
|
6
6
|
code_size: number;
|
|
7
7
|
author: RistrettoPublicKeyBytes;
|
|
8
8
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { FunctionDef } from "../FunctionDef";
|
|
2
|
-
import type {
|
|
2
|
+
import type { Hash32 } from "../Hash32";
|
|
3
3
|
import type { RistrettoPublicKeyBytes } from "../RistrettoPublicKeyBytes";
|
|
4
4
|
export type AuthoredTemplate = {
|
|
5
5
|
author_public_key: RistrettoPublicKeyBytes;
|
|
6
|
-
address:
|
|
6
|
+
address: Hash32;
|
|
7
7
|
name: string;
|
|
8
8
|
abi_version: number;
|
|
9
9
|
functions: Array<FunctionDef>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Hash32 } from "../Hash32";
|
|
2
2
|
import type { SubstateId } from "../SubstateId";
|
|
3
3
|
export type WalletSubstateInfo = {
|
|
4
4
|
substate_id: SubstateId;
|
|
5
5
|
parent_id: SubstateId | null;
|
|
6
6
|
module_name: string | null;
|
|
7
7
|
version: number;
|
|
8
|
-
template_address:
|
|
8
|
+
template_address: Hash32 | null;
|
|
9
9
|
};
|
package/package.json
CHANGED
|
File without changes
|