@tari-project/ootle-ts-bindings 1.24.1 → 1.26.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 +3 -0
- package/dist/index.js +3 -0
- package/dist/types/Assertion.d.ts +18 -0
- package/dist/types/Assertion.js +1 -0
- package/dist/types/CheckOrd.d.ts +1 -0
- package/dist/types/CheckOrd.js +2 -0
- package/dist/types/Instruction.d.ts +3 -9
- package/dist/types/NftCheck.d.ts +1 -0
- package/dist/types/NftCheck.js +2 -0
- package/dist/types/tari-indexer-client/IndexerGetEpochManagerStatsResponse.d.ts +3 -0
- package/dist/types/wallet-types/PayFeeWithSwapParams.d.ts +9 -0
- package/dist/types/wallet-types/PayFeeWithSwapParams.js +1 -0
- package/dist/types/wallet-types/StealthTransferRequest.d.ts +2 -1
- package/dist/types/wallet-types/TransferFeeParams.d.ts +6 -0
- package/dist/types/wallet-types/TransferFeeParams.js +1 -0
- package/dist/wallet-types.d.ts +2 -0
- package/dist/wallet-types.js +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,12 +6,14 @@ export * from "./types/AccountWithAddress";
|
|
|
6
6
|
export * from "./types/AllocatableAddressType";
|
|
7
7
|
export * from "./types/Amount";
|
|
8
8
|
export * from "./types/ArgDef";
|
|
9
|
+
export * from "./types/Assertion";
|
|
9
10
|
export * from "./types/AuthHook";
|
|
10
11
|
export * from "./types/BlockHeader";
|
|
11
12
|
export * from "./types/BlockId";
|
|
12
13
|
export * from "./types/Block";
|
|
13
14
|
export * from "./types/BucketId";
|
|
14
15
|
export * from "./types/Bytes";
|
|
16
|
+
export * from "./types/CheckOrd";
|
|
15
17
|
export * from "./types/ClaimBurnOutputData";
|
|
16
18
|
export * from "./types/ClaimedOutputTombstoneAddress";
|
|
17
19
|
export * from "./types/ClaimedOutputTombstone";
|
|
@@ -69,6 +71,7 @@ export * from "./types/Metadata";
|
|
|
69
71
|
export * from "./types/MigrateFunction";
|
|
70
72
|
export * from "./types/MinotariBurnClaimProof";
|
|
71
73
|
export * from "./types/Network";
|
|
74
|
+
export * from "./types/NftCheck";
|
|
72
75
|
export * from "./types/NodeHeight";
|
|
73
76
|
export * from "./types/NonFungibleAddressContents";
|
|
74
77
|
export * from "./types/NonFungibleAddress";
|
package/dist/index.js
CHANGED
|
@@ -8,12 +8,14 @@ export * from "./types/AccountWithAddress";
|
|
|
8
8
|
export * from "./types/AllocatableAddressType";
|
|
9
9
|
export * from "./types/Amount";
|
|
10
10
|
export * from "./types/ArgDef";
|
|
11
|
+
export * from "./types/Assertion";
|
|
11
12
|
export * from "./types/AuthHook";
|
|
12
13
|
export * from "./types/BlockHeader";
|
|
13
14
|
export * from "./types/BlockId";
|
|
14
15
|
export * from "./types/Block";
|
|
15
16
|
export * from "./types/BucketId";
|
|
16
17
|
export * from "./types/Bytes";
|
|
18
|
+
export * from "./types/CheckOrd";
|
|
17
19
|
export * from "./types/ClaimBurnOutputData";
|
|
18
20
|
export * from "./types/ClaimedOutputTombstoneAddress";
|
|
19
21
|
export * from "./types/ClaimedOutputTombstone";
|
|
@@ -71,6 +73,7 @@ export * from "./types/Metadata";
|
|
|
71
73
|
export * from "./types/MigrateFunction";
|
|
72
74
|
export * from "./types/MinotariBurnClaimProof";
|
|
73
75
|
export * from "./types/Network";
|
|
76
|
+
export * from "./types/NftCheck";
|
|
74
77
|
export * from "./types/NodeHeight";
|
|
75
78
|
export * from "./types/NonFungibleAddressContents";
|
|
76
79
|
export * from "./types/NonFungibleAddress";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Amount } from "./Amount";
|
|
2
|
+
import type { CheckOrd } from "./CheckOrd";
|
|
3
|
+
import type { NftCheck } from "./NftCheck";
|
|
4
|
+
import type { NonFungibleId } from "./NonFungibleId";
|
|
5
|
+
import type { ResourceAddress } from "./ResourceAddress";
|
|
6
|
+
export type Assertion = {
|
|
7
|
+
BktAmt: {
|
|
8
|
+
resource_address: ResourceAddress;
|
|
9
|
+
is: CheckOrd;
|
|
10
|
+
amount: Amount;
|
|
11
|
+
};
|
|
12
|
+
} | "NtNil" | {
|
|
13
|
+
BktCtnNft: {
|
|
14
|
+
resource_address: ResourceAddress;
|
|
15
|
+
check: NftCheck;
|
|
16
|
+
nfts: Array<NonFungibleId>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CheckOrd = "Gt" | "Gte" | "Lt" | "Lte" | "Eq";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AllocatableAddressType } from "./AllocatableAddressType";
|
|
2
2
|
import type { Amount } from "./Amount";
|
|
3
|
+
import type { Assertion } from "./Assertion";
|
|
3
4
|
import type { ClaimBurnOutputData } from "./ClaimBurnOutputData";
|
|
4
5
|
import type { ComponentAccessRules } from "./ComponentAccessRules";
|
|
5
6
|
import type { ComponentReference } from "./ComponentReference";
|
|
@@ -9,7 +10,6 @@ import type { LogLevel } from "./LogLevel";
|
|
|
9
10
|
import type { MigrateFunction } from "./MigrateFunction";
|
|
10
11
|
import type { MinotariBurnClaimProof } from "./MinotariBurnClaimProof";
|
|
11
12
|
import type { OwnerRule } from "./OwnerRule";
|
|
12
|
-
import type { ResourceAddress } from "./ResourceAddress";
|
|
13
13
|
import type { ResourceAddressRef } from "./ResourceAddressRef";
|
|
14
14
|
import type { RistrettoPublicKeyBytes } from "./RistrettoPublicKeyBytes";
|
|
15
15
|
import type { StealthTransferStatement } from "./StealthTransferStatement";
|
|
@@ -53,10 +53,9 @@ export type Instruction = {
|
|
|
53
53
|
address: ValidatorFeePoolAddress;
|
|
54
54
|
};
|
|
55
55
|
} | "DropAllProofsInWorkspace" | {
|
|
56
|
-
|
|
56
|
+
Assert: {
|
|
57
57
|
key: WorkspaceOffsetId;
|
|
58
|
-
|
|
59
|
-
min_amount: Amount;
|
|
58
|
+
assertion: Assertion;
|
|
60
59
|
};
|
|
61
60
|
} | {
|
|
62
61
|
TakeFromBucket: {
|
|
@@ -79,11 +78,6 @@ export type Instruction = {
|
|
|
79
78
|
statement: StealthTransferStatement;
|
|
80
79
|
revealed_input_bucket: WorkspaceOffsetId | null;
|
|
81
80
|
};
|
|
82
|
-
} | {
|
|
83
|
-
PayFeeStealth: {
|
|
84
|
-
statement: StealthTransferStatement;
|
|
85
|
-
revealed_input_bucket: WorkspaceOffsetId | null;
|
|
86
|
-
};
|
|
87
81
|
} | {
|
|
88
82
|
PayFeeFromBucket: {
|
|
89
83
|
bucket: WorkspaceOffsetId;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type NftCheck = "AnyOf" | "AllOf" | "NoneOf" | "NotAllOf";
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { Epoch } from "../Epoch";
|
|
2
2
|
import type { Hash32 } from "../Hash32";
|
|
3
3
|
export type IndexerGetEpochManagerStatsResponse = {
|
|
4
|
+
/**
|
|
5
|
+
* The current epoch according to the indexer's epoch oracle view
|
|
6
|
+
*/
|
|
4
7
|
current_epoch: Epoch;
|
|
5
8
|
current_block_height: number;
|
|
6
9
|
current_block_hash: Hash32;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Amount } from "../Amount";
|
|
2
|
+
import type { ComponentAddress } from "../ComponentAddress";
|
|
3
|
+
import type { ResourceAddress } from "../ResourceAddress";
|
|
4
|
+
export type PayFeeWithSwapParams = {
|
|
5
|
+
pool_address: ComponentAddress;
|
|
6
|
+
input_resource: ResourceAddress;
|
|
7
|
+
input_amount: Amount;
|
|
8
|
+
min_xtr_output_amount: Amount;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,9 +3,10 @@ import type { UtxoInputSelection } from "../UtxoInputSelection";
|
|
|
3
3
|
import type { BadgeUsage } from "./BadgeUsage";
|
|
4
4
|
import type { ComponentAddressOrName } from "./ComponentAddressOrName";
|
|
5
5
|
import type { StealthTransfer } from "./StealthTransfer";
|
|
6
|
+
import type { TransferFeeParams } from "./TransferFeeParams";
|
|
6
7
|
export type StealthTransferRequest = {
|
|
7
8
|
owner_account: ComponentAddressOrName;
|
|
8
|
-
|
|
9
|
+
fee_params: TransferFeeParams;
|
|
9
10
|
input_selection: UtxoInputSelection;
|
|
10
11
|
resource_address: ResourceAddress;
|
|
11
12
|
badge_usage?: BadgeUsage;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/wallet-types.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export * from "./types/wallet-types/AuthGetMethodResponse";
|
|
|
41
41
|
export * from "./types/wallet-types/TransactionGetRequest";
|
|
42
42
|
export * from "./types/wallet-types/AuthRevokeTokenResponse";
|
|
43
43
|
export * from "./types/wallet-types/ProofsFinalizeRequest";
|
|
44
|
+
export * from "./types/wallet-types/PayFeeWithSwapParams";
|
|
44
45
|
export * from "./types/wallet-types/WebauthnStartRegisterRequest";
|
|
45
46
|
export * from "./types/wallet-types/FeePoolDetails";
|
|
46
47
|
export * from "./types/wallet-types/AccountsTransferRequest";
|
|
@@ -56,6 +57,7 @@ export * from "./types/wallet-types/ClaimBurnRequest";
|
|
|
56
57
|
export * from "./types/wallet-types/KeysListResponse";
|
|
57
58
|
export * from "./types/wallet-types/KeyId";
|
|
58
59
|
export * from "./types/wallet-types/SubstatesGetRequest";
|
|
60
|
+
export * from "./types/wallet-types/TransferFeeParams";
|
|
59
61
|
export * from "./types/wallet-types/TransactionSubmitRequest";
|
|
60
62
|
export * from "./types/wallet-types/AccountsGetBalancesResponse";
|
|
61
63
|
export * from "./types/wallet-types/TransactionGetAllResponse";
|
package/dist/wallet-types.js
CHANGED
|
@@ -43,6 +43,7 @@ export * from "./types/wallet-types/AuthGetMethodResponse";
|
|
|
43
43
|
export * from "./types/wallet-types/TransactionGetRequest";
|
|
44
44
|
export * from "./types/wallet-types/AuthRevokeTokenResponse";
|
|
45
45
|
export * from "./types/wallet-types/ProofsFinalizeRequest";
|
|
46
|
+
export * from "./types/wallet-types/PayFeeWithSwapParams";
|
|
46
47
|
export * from "./types/wallet-types/WebauthnStartRegisterRequest";
|
|
47
48
|
export * from "./types/wallet-types/FeePoolDetails";
|
|
48
49
|
export * from "./types/wallet-types/AccountsTransferRequest";
|
|
@@ -58,6 +59,7 @@ export * from "./types/wallet-types/ClaimBurnRequest";
|
|
|
58
59
|
export * from "./types/wallet-types/KeysListResponse";
|
|
59
60
|
export * from "./types/wallet-types/KeyId";
|
|
60
61
|
export * from "./types/wallet-types/SubstatesGetRequest";
|
|
62
|
+
export * from "./types/wallet-types/TransferFeeParams";
|
|
61
63
|
export * from "./types/wallet-types/TransactionSubmitRequest";
|
|
62
64
|
export * from "./types/wallet-types/AccountsGetBalancesResponse";
|
|
63
65
|
export * from "./types/wallet-types/TransactionGetAllResponse";
|