@tari-project/tarijs-builders 0.13.1 → 0.14.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Amount, Network, TransactionArg } from "@tari-project/tarijs-types";
|
|
2
|
-
import { ComponentAddress,
|
|
2
|
+
import { ComponentAddress, MinotariBurnClaimProof, ClaimBurnOutputData, ConfidentialWithdrawProof, Instruction, ResourceAddress, SubstateRequirement, Transaction, TransactionSignature, UnsignedTransaction, PublishedTemplateAddress, UnsignedTransactionV1, AllocatableAddressType } from "@tari-project/typescript-bindings";
|
|
3
3
|
import { NamedArg } from "../helpers";
|
|
4
4
|
/**
|
|
5
5
|
* This interface defines the constructor for a Transaction object.
|
|
@@ -158,7 +158,7 @@ export interface Builder {
|
|
|
158
158
|
* - If `withdraw_proof` is required by the burn process, it must be included.
|
|
159
159
|
* - This method should be used only when recovering burned confidential resources.
|
|
160
160
|
*/
|
|
161
|
-
claimBurn(claim:
|
|
161
|
+
claimBurn(claim: MinotariBurnClaimProof, output_data: ClaimBurnOutputData): this;
|
|
162
162
|
addInput(inputObject: SubstateRequirement): this;
|
|
163
163
|
/** Adds a raw instruction to the transaction.
|
|
164
164
|
*
|
|
@@ -251,7 +251,7 @@ export declare class TransactionBuilder implements Builder {
|
|
|
251
251
|
callMethod<T extends TariMethodDefinition>(method: T, args: Exclude<T["args"], undefined>): this;
|
|
252
252
|
createAccount(ownerPublicKey: string, workspaceBucket?: string): this;
|
|
253
253
|
createProof(account: ComponentAddress, resourceAddress: ResourceAddress): this;
|
|
254
|
-
claimBurn(claim:
|
|
254
|
+
claimBurn(claim: MinotariBurnClaimProof, output_data: ClaimBurnOutputData): this;
|
|
255
255
|
allocateAddress(allocatableType: AllocatableAddressType, workspaceId: string): this;
|
|
256
256
|
assertBucketContains(workspaceName: string, resource_address: ResourceAddress, min_amount: Amount): this;
|
|
257
257
|
/**
|
|
@@ -53,7 +53,7 @@ export class TransactionBuilder {
|
|
|
53
53
|
const workspace_id = workspaceBucket ? this.getOffsetIdFromWorkspaceName(workspaceBucket) : null;
|
|
54
54
|
return this.addInstruction({
|
|
55
55
|
CreateAccount: {
|
|
56
|
-
|
|
56
|
+
owner_public_key: ownerPublicKey,
|
|
57
57
|
owner_rule: null, // Custom owner rule is not set by default
|
|
58
58
|
access_rules: null, // Custom access rules are not set by default
|
|
59
59
|
workspace_id,
|
|
@@ -69,10 +69,11 @@ export class TransactionBuilder {
|
|
|
69
69
|
},
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
-
claimBurn(claim) {
|
|
72
|
+
claimBurn(claim, output_data) {
|
|
73
73
|
return this.addInstruction({
|
|
74
74
|
ClaimBurn: {
|
|
75
75
|
claim,
|
|
76
|
+
output_data,
|
|
76
77
|
},
|
|
77
78
|
});
|
|
78
79
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tari-project/tarijs-builders",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"author": "The Tari Community",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@tari-project/typescript-bindings": ">=1.
|
|
14
|
-
"@tari-project/tari-signer": "^0.
|
|
15
|
-
"@tari-project/tari-
|
|
16
|
-
"@tari-project/tarijs-types": "^0.
|
|
13
|
+
"@tari-project/typescript-bindings": ">=1.17.0",
|
|
14
|
+
"@tari-project/tari-universe-signer": "^0.14.0",
|
|
15
|
+
"@tari-project/tari-signer": "^0.14.0",
|
|
16
|
+
"@tari-project/tarijs-types": "^0.14.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/node": "^22.13.1",
|