@kaspacom/kcc20-tx-builder 0.1.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/LICENSE +201 -0
- package/README.md +104 -0
- package/artifacts/KCC20.placeholder.json +77479 -0
- package/artifacts/KCC20FeeTicket.placeholder.json +16846 -0
- package/artifacts/KCC20Orderbook.placeholder.json +78001 -0
- package/artifacts/KCC20Vesting.placeholder.json +4298 -0
- package/artifacts/KCC20Wrapper.placeholder.json +12246 -0
- package/dist/abi.d.ts +44 -0
- package/dist/abi.d.ts.map +1 -0
- package/dist/abi.js +336 -0
- package/dist/abi.js.map +1 -0
- package/dist/action-source-resolver.d.ts +80 -0
- package/dist/action-source-resolver.d.ts.map +1 -0
- package/dist/action-source-resolver.js +412 -0
- package/dist/action-source-resolver.js.map +1 -0
- package/dist/artifacts.d.ts +14 -0
- package/dist/artifacts.d.ts.map +1 -0
- package/dist/artifacts.js +44 -0
- package/dist/artifacts.js.map +1 -0
- package/dist/builder.d.ts +12 -0
- package/dist/builder.d.ts.map +1 -0
- package/dist/builder.js +18 -0
- package/dist/builder.js.map +1 -0
- package/dist/cjs/abi.d.ts +43 -0
- package/dist/cjs/abi.js +361 -0
- package/dist/cjs/abi.js.map +1 -0
- package/dist/cjs/action-source-resolver.d.ts +79 -0
- package/dist/cjs/action-source-resolver.js +435 -0
- package/dist/cjs/action-source-resolver.js.map +1 -0
- package/dist/cjs/artifacts.d.ts +13 -0
- package/dist/cjs/artifacts.js +51 -0
- package/dist/cjs/artifacts.js.map +1 -0
- package/dist/cjs/builder.d.ts +11 -0
- package/dist/cjs/builder.js +22 -0
- package/dist/cjs/builder.js.map +1 -0
- package/dist/cjs/deploy-operation.d.ts +103 -0
- package/dist/cjs/deploy-operation.js +335 -0
- package/dist/cjs/deploy-operation.js.map +1 -0
- package/dist/cjs/encoding.d.ts +5 -0
- package/dist/cjs/encoding.js +51 -0
- package/dist/cjs/encoding.js.map +1 -0
- package/dist/cjs/engine.d.ts +40 -0
- package/dist/cjs/engine.js +8972 -0
- package/dist/cjs/engine.js.map +1 -0
- package/dist/cjs/errors.d.ts +7 -0
- package/dist/cjs/errors.js +23 -0
- package/dist/cjs/errors.js.map +1 -0
- package/dist/cjs/fee-ticket-operation.d.ts +204 -0
- package/dist/cjs/fee-ticket-operation.js +327 -0
- package/dist/cjs/fee-ticket-operation.js.map +1 -0
- package/dist/cjs/index.d.ts +27 -0
- package/dist/cjs/index.js +45 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/ladder-limit-orders.d.ts +41 -0
- package/dist/cjs/ladder-limit-orders.js +129 -0
- package/dist/cjs/ladder-limit-orders.js.map +1 -0
- package/dist/cjs/mint-availability-operation.d.ts +56 -0
- package/dist/cjs/mint-availability-operation.js +95 -0
- package/dist/cjs/mint-availability-operation.js.map +1 -0
- package/dist/cjs/models.d.ts +90 -0
- package/dist/cjs/models.js +6 -0
- package/dist/cjs/models.js.map +1 -0
- package/dist/cjs/operations.d.ts +6 -0
- package/dist/cjs/operations.js +41 -0
- package/dist/cjs/operations.js.map +1 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/paid-mint-amount.d.ts +69 -0
- package/dist/cjs/paid-mint-amount.js +281 -0
- package/dist/cjs/paid-mint-amount.js.map +1 -0
- package/dist/cjs/protocol.d.ts +21 -0
- package/dist/cjs/protocol.js +25 -0
- package/dist/cjs/protocol.js.map +1 -0
- package/dist/cjs/runtime.d.ts +27 -0
- package/dist/cjs/runtime.js +3 -0
- package/dist/cjs/runtime.js.map +1 -0
- package/dist/cjs/sale-common.d.ts +287 -0
- package/dist/cjs/sale-common.js +928 -0
- package/dist/cjs/sale-common.js.map +1 -0
- package/dist/cjs/source-provider.d.ts +11 -0
- package/dist/cjs/source-provider.js +3 -0
- package/dist/cjs/source-provider.js.map +1 -0
- package/dist/cjs/source-validation.d.ts +9 -0
- package/dist/cjs/source-validation.js +33 -0
- package/dist/cjs/source-validation.js.map +1 -0
- package/dist/cjs/token-amount.d.ts +31 -0
- package/dist/cjs/token-amount.js +252 -0
- package/dist/cjs/token-amount.js.map +1 -0
- package/dist/cjs/token-operation.d.ts +135 -0
- package/dist/cjs/token-operation.js +236 -0
- package/dist/cjs/token-operation.js.map +1 -0
- package/dist/cjs/trade-fee.d.ts +60 -0
- package/dist/cjs/trade-fee.js +185 -0
- package/dist/cjs/trade-fee.js.map +1 -0
- package/dist/cjs/trading-operation.d.ts +212 -0
- package/dist/cjs/trading-operation.js +587 -0
- package/dist/cjs/trading-operation.js.map +1 -0
- package/dist/cjs/verify-operation.d.ts +79 -0
- package/dist/cjs/verify-operation.js +246 -0
- package/dist/cjs/verify-operation.js.map +1 -0
- package/dist/cjs/wallet-operation.d.ts +52 -0
- package/dist/cjs/wallet-operation.js +58 -0
- package/dist/cjs/wallet-operation.js.map +1 -0
- package/dist/cjs/wasm-provider.d.ts +15 -0
- package/dist/cjs/wasm-provider.js +20 -0
- package/dist/cjs/wasm-provider.js.map +1 -0
- package/dist/cjs/wrapper-operation.d.ts +196 -0
- package/dist/cjs/wrapper-operation.js +317 -0
- package/dist/cjs/wrapper-operation.js.map +1 -0
- package/dist/deploy-operation.d.ts +104 -0
- package/dist/deploy-operation.d.ts.map +1 -0
- package/dist/deploy-operation.js +327 -0
- package/dist/deploy-operation.js.map +1 -0
- package/dist/encoding.d.ts +6 -0
- package/dist/encoding.d.ts.map +1 -0
- package/dist/encoding.js +44 -0
- package/dist/encoding.js.map +1 -0
- package/dist/engine.d.ts +41 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/engine.js +8969 -0
- package/dist/engine.js.map +1 -0
- package/dist/errors.d.ts +8 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +18 -0
- package/dist/errors.js.map +1 -0
- package/dist/fee-ticket-operation.d.ts +205 -0
- package/dist/fee-ticket-operation.d.ts.map +1 -0
- package/dist/fee-ticket-operation.js +320 -0
- package/dist/fee-ticket-operation.js.map +1 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/dist/ladder-limit-orders.d.ts +42 -0
- package/dist/ladder-limit-orders.d.ts.map +1 -0
- package/dist/ladder-limit-orders.js +121 -0
- package/dist/ladder-limit-orders.js.map +1 -0
- package/dist/mint-availability-operation.d.ts +57 -0
- package/dist/mint-availability-operation.d.ts.map +1 -0
- package/dist/mint-availability-operation.js +91 -0
- package/dist/mint-availability-operation.js.map +1 -0
- package/dist/models.d.ts +91 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/models.js +3 -0
- package/dist/models.js.map +1 -0
- package/dist/operations.d.ts +7 -0
- package/dist/operations.d.ts.map +1 -0
- package/dist/operations.js +36 -0
- package/dist/operations.js.map +1 -0
- package/dist/paid-mint-amount.d.ts +70 -0
- package/dist/paid-mint-amount.d.ts.map +1 -0
- package/dist/paid-mint-amount.js +268 -0
- package/dist/paid-mint-amount.js.map +1 -0
- package/dist/protocol.d.ts +22 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/protocol.js +22 -0
- package/dist/protocol.js.map +1 -0
- package/dist/runtime.d.ts +28 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +2 -0
- package/dist/runtime.js.map +1 -0
- package/dist/sale-common.d.ts +288 -0
- package/dist/sale-common.d.ts.map +1 -0
- package/dist/sale-common.js +844 -0
- package/dist/sale-common.js.map +1 -0
- package/dist/source-provider.d.ts +12 -0
- package/dist/source-provider.d.ts.map +1 -0
- package/dist/source-provider.js +2 -0
- package/dist/source-provider.js.map +1 -0
- package/dist/source-validation.d.ts +10 -0
- package/dist/source-validation.d.ts.map +1 -0
- package/dist/source-validation.js +28 -0
- package/dist/source-validation.js.map +1 -0
- package/dist/token-amount.d.ts +32 -0
- package/dist/token-amount.d.ts.map +1 -0
- package/dist/token-amount.js +237 -0
- package/dist/token-amount.js.map +1 -0
- package/dist/token-operation.d.ts +136 -0
- package/dist/token-operation.d.ts.map +1 -0
- package/dist/token-operation.js +231 -0
- package/dist/token-operation.js.map +1 -0
- package/dist/trade-fee.d.ts +61 -0
- package/dist/trade-fee.d.ts.map +1 -0
- package/dist/trade-fee.js +173 -0
- package/dist/trade-fee.js.map +1 -0
- package/dist/trading-operation.d.ts +213 -0
- package/dist/trading-operation.d.ts.map +1 -0
- package/dist/trading-operation.js +580 -0
- package/dist/trading-operation.js.map +1 -0
- package/dist/verify-operation.d.ts +80 -0
- package/dist/verify-operation.d.ts.map +1 -0
- package/dist/verify-operation.js +243 -0
- package/dist/verify-operation.js.map +1 -0
- package/dist/wallet-operation.d.ts +53 -0
- package/dist/wallet-operation.d.ts.map +1 -0
- package/dist/wallet-operation.js +55 -0
- package/dist/wallet-operation.js.map +1 -0
- package/dist/wasm-provider.d.ts +16 -0
- package/dist/wasm-provider.d.ts.map +1 -0
- package/dist/wasm-provider.js +17 -0
- package/dist/wasm-provider.js.map +1 -0
- package/dist/wrapper-operation.d.ts +197 -0
- package/dist/wrapper-operation.d.ts.map +1 -0
- package/dist/wrapper-operation.js +311 -0
- package/dist/wrapper-operation.js.map +1 -0
- package/index.d.ts +1 -0
- package/package.json +84 -0
- package/src/abi.ts +493 -0
- package/src/action-source-resolver.ts +660 -0
- package/src/artifacts.ts +87 -0
- package/src/builder.ts +37 -0
- package/src/deploy-operation.ts +458 -0
- package/src/encoding.ts +58 -0
- package/src/engine.ts +13226 -0
- package/src/errors.ts +35 -0
- package/src/fee-ticket-operation.ts +518 -0
- package/src/index.ts +27 -0
- package/src/ladder-limit-orders.ts +184 -0
- package/src/mint-availability-operation.ts +146 -0
- package/src/models.ts +103 -0
- package/src/operations.ts +46 -0
- package/src/paid-mint-amount.ts +402 -0
- package/src/protocol.ts +28 -0
- package/src/runtime.ts +29 -0
- package/src/sale-common.ts +1238 -0
- package/src/source-provider.ts +12 -0
- package/src/source-validation.ts +47 -0
- package/src/token-amount.ts +302 -0
- package/src/token-operation.ts +384 -0
- package/src/trade-fee.ts +264 -0
- package/src/trading-operation.ts +842 -0
- package/src/verify-operation.ts +400 -0
- package/src/wallet-operation.ts +86 -0
- package/src/wasm-provider.ts +32 -0
- package/src/wrapper-operation.ts +531 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type Kcc20BuilderErrorCode = "INVALID_INPUT" | "MISSING_SOURCE" | "STALE_SOURCE" | "ARTIFACT_MISMATCH" | "UNSUPPORTED_OPERATION" | "WASM_CAPABILITY_MISSING" | "SERIALIZATION_FAILED";
|
|
2
|
+
export declare class Kcc20BuilderError extends Error {
|
|
3
|
+
readonly code: Kcc20BuilderErrorCode;
|
|
4
|
+
readonly details: Readonly<Record<string, string>>;
|
|
5
|
+
constructor(code: Kcc20BuilderErrorCode, message: string, details?: Record<string, string>);
|
|
6
|
+
}
|
|
7
|
+
export declare function requireHex64(value: string, label: string): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Kcc20BuilderError = void 0;
|
|
4
|
+
exports.requireHex64 = requireHex64;
|
|
5
|
+
class Kcc20BuilderError extends Error {
|
|
6
|
+
code;
|
|
7
|
+
details;
|
|
8
|
+
constructor(code, message, details = {}) {
|
|
9
|
+
super(message);
|
|
10
|
+
this.name = "Kcc20BuilderError";
|
|
11
|
+
this.code = code;
|
|
12
|
+
this.details = Object.freeze({ ...details });
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Kcc20BuilderError = Kcc20BuilderError;
|
|
16
|
+
function requireHex64(value, label) {
|
|
17
|
+
const normalized = value.trim().replace(/^0x/i, "").toLowerCase();
|
|
18
|
+
if (!/^[0-9a-f]{64}$/.test(normalized)) {
|
|
19
|
+
throw new Kcc20BuilderError("INVALID_INPUT", `${label} must be 32-byte hex`);
|
|
20
|
+
}
|
|
21
|
+
return normalized;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":";;;AAyBA,oCASC;AAzBD,MAAa,iBAAkB,SAAQ,KAAK;IACjC,IAAI,CAAwB;IAC5B,OAAO,CAAmC;IAEnD,YACE,IAA2B,EAC3B,OAAe,EACf,UAAkC,EAAE;QAEpC,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;QAChC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/C,CAAC;CACF;AAdD,8CAcC;AAED,SAAgB,YAAY,CAAC,KAAa,EAAE,KAAa;IACvD,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IAClE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;QACvC,MAAM,IAAI,iBAAiB,CACzB,eAAe,EACf,GAAG,KAAK,sBAAsB,CAC/B,CAAC;IACJ,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { type Kcc20IndexedCovenantUtxo } from "./action-source-resolver.js";
|
|
2
|
+
export interface FeeTicketRootDeployDraft {
|
|
3
|
+
utilityTokenId: string;
|
|
4
|
+
utilityTokenAmount: string;
|
|
5
|
+
discountBps: number;
|
|
6
|
+
supportedMarketIds?: string[];
|
|
7
|
+
}
|
|
8
|
+
export interface FeeTicketWalletInfo {
|
|
9
|
+
walletAddress: string;
|
|
10
|
+
kcc20Owner: string;
|
|
11
|
+
}
|
|
12
|
+
export interface FeeTicketRootOperationOptions {
|
|
13
|
+
network?: string;
|
|
14
|
+
createdAt?: string;
|
|
15
|
+
requestId?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function buildFeeTicketRootDeployOperation(walletInfo: FeeTicketWalletInfo, draft: FeeTicketRootDeployDraft, options?: FeeTicketRootOperationOptions): {
|
|
18
|
+
requestId: string;
|
|
19
|
+
description: string;
|
|
20
|
+
payload: {
|
|
21
|
+
params: Record<string, unknown>;
|
|
22
|
+
signing: {
|
|
23
|
+
standard: string;
|
|
24
|
+
walletAction: string;
|
|
25
|
+
status: string;
|
|
26
|
+
builderKey: string;
|
|
27
|
+
builderStatus: string;
|
|
28
|
+
submitTransactionSupported: boolean;
|
|
29
|
+
missingDependencies: string[];
|
|
30
|
+
missingSources: never[];
|
|
31
|
+
};
|
|
32
|
+
sourceRequirements: Record<string, unknown>[];
|
|
33
|
+
signerRequirements: Record<string, unknown>[];
|
|
34
|
+
warnings: string[];
|
|
35
|
+
tokenIdentity?: Record<string, unknown> | undefined;
|
|
36
|
+
schema: string;
|
|
37
|
+
status: string;
|
|
38
|
+
requestId: string;
|
|
39
|
+
chain: string;
|
|
40
|
+
network: string;
|
|
41
|
+
createdAt: string;
|
|
42
|
+
owner: import("./wallet-operation.js").Kcc20WalletOperationOwner;
|
|
43
|
+
operation: string;
|
|
44
|
+
contract: string;
|
|
45
|
+
action: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export interface FeeTicketRootInfo {
|
|
49
|
+
configured: boolean;
|
|
50
|
+
enabled: boolean;
|
|
51
|
+
rootId?: string;
|
|
52
|
+
rootOwner?: string;
|
|
53
|
+
utilityTokenId?: string;
|
|
54
|
+
utilityTokenAmount?: string;
|
|
55
|
+
discountBps?: number;
|
|
56
|
+
supportedMarketIds?: string[];
|
|
57
|
+
batchCreateSupported?: boolean;
|
|
58
|
+
maxTicketBatchQuantity?: number;
|
|
59
|
+
}
|
|
60
|
+
export declare function buildFeeTicketCreateOperation(walletInfo: FeeTicketWalletInfo, input: {
|
|
61
|
+
root: FeeTicketRootInfo;
|
|
62
|
+
quantity: number;
|
|
63
|
+
rootUtxos: readonly Kcc20IndexedCovenantUtxo[];
|
|
64
|
+
utilityTokenUtxos: readonly Kcc20IndexedCovenantUtxo[];
|
|
65
|
+
}, options?: FeeTicketRootOperationOptions): {
|
|
66
|
+
requestId: string;
|
|
67
|
+
description: string;
|
|
68
|
+
payload: {
|
|
69
|
+
params: Record<string, unknown>;
|
|
70
|
+
signing: {
|
|
71
|
+
standard: string;
|
|
72
|
+
walletAction: string;
|
|
73
|
+
status: string;
|
|
74
|
+
builderKey: string;
|
|
75
|
+
builderStatus: string;
|
|
76
|
+
submitTransactionSupported: boolean;
|
|
77
|
+
missingDependencies: string[];
|
|
78
|
+
missingSources: never[];
|
|
79
|
+
};
|
|
80
|
+
sourceRequirements: Record<string, unknown>[];
|
|
81
|
+
signerRequirements: Record<string, unknown>[];
|
|
82
|
+
warnings: string[];
|
|
83
|
+
tokenIdentity?: Record<string, unknown> | undefined;
|
|
84
|
+
schema: string;
|
|
85
|
+
status: string;
|
|
86
|
+
requestId: string;
|
|
87
|
+
chain: string;
|
|
88
|
+
network: string;
|
|
89
|
+
createdAt: string;
|
|
90
|
+
owner: import("./wallet-operation.js").Kcc20WalletOperationOwner;
|
|
91
|
+
operation: string;
|
|
92
|
+
contract: string;
|
|
93
|
+
action: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
export declare function buildFeeTicketBurnOperation(walletInfo: FeeTicketWalletInfo, input: {
|
|
97
|
+
root: FeeTicketRootInfo;
|
|
98
|
+
ticketOutpoints: readonly string[];
|
|
99
|
+
rootUtxos: readonly Kcc20IndexedCovenantUtxo[];
|
|
100
|
+
}, options?: FeeTicketRootOperationOptions): {
|
|
101
|
+
requestId: string;
|
|
102
|
+
description: string;
|
|
103
|
+
payload: {
|
|
104
|
+
params: Record<string, unknown>;
|
|
105
|
+
signing: {
|
|
106
|
+
standard: string;
|
|
107
|
+
walletAction: string;
|
|
108
|
+
status: string;
|
|
109
|
+
builderKey: string;
|
|
110
|
+
builderStatus: string;
|
|
111
|
+
submitTransactionSupported: boolean;
|
|
112
|
+
missingDependencies: string[];
|
|
113
|
+
missingSources: never[];
|
|
114
|
+
};
|
|
115
|
+
sourceRequirements: Record<string, unknown>[];
|
|
116
|
+
signerRequirements: Record<string, unknown>[];
|
|
117
|
+
warnings: string[];
|
|
118
|
+
tokenIdentity?: Record<string, unknown> | undefined;
|
|
119
|
+
schema: string;
|
|
120
|
+
status: string;
|
|
121
|
+
requestId: string;
|
|
122
|
+
chain: string;
|
|
123
|
+
network: string;
|
|
124
|
+
createdAt: string;
|
|
125
|
+
owner: import("./wallet-operation.js").Kcc20WalletOperationOwner;
|
|
126
|
+
operation: string;
|
|
127
|
+
contract: string;
|
|
128
|
+
action: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
export declare function buildFeeTicketTransferOperation(walletInfo: FeeTicketWalletInfo, input: {
|
|
132
|
+
root: FeeTicketRootInfo;
|
|
133
|
+
recipientOwner: string;
|
|
134
|
+
ticketOutpoints: readonly string[];
|
|
135
|
+
rootUtxos: readonly Kcc20IndexedCovenantUtxo[];
|
|
136
|
+
}, options?: FeeTicketRootOperationOptions): {
|
|
137
|
+
requestId: string;
|
|
138
|
+
description: string;
|
|
139
|
+
payload: {
|
|
140
|
+
params: Record<string, unknown>;
|
|
141
|
+
signing: {
|
|
142
|
+
standard: string;
|
|
143
|
+
walletAction: string;
|
|
144
|
+
status: string;
|
|
145
|
+
builderKey: string;
|
|
146
|
+
builderStatus: string;
|
|
147
|
+
submitTransactionSupported: boolean;
|
|
148
|
+
missingDependencies: string[];
|
|
149
|
+
missingSources: never[];
|
|
150
|
+
};
|
|
151
|
+
sourceRequirements: Record<string, unknown>[];
|
|
152
|
+
signerRequirements: Record<string, unknown>[];
|
|
153
|
+
warnings: string[];
|
|
154
|
+
tokenIdentity?: Record<string, unknown> | undefined;
|
|
155
|
+
schema: string;
|
|
156
|
+
status: string;
|
|
157
|
+
requestId: string;
|
|
158
|
+
chain: string;
|
|
159
|
+
network: string;
|
|
160
|
+
createdAt: string;
|
|
161
|
+
owner: import("./wallet-operation.js").Kcc20WalletOperationOwner;
|
|
162
|
+
operation: string;
|
|
163
|
+
contract: string;
|
|
164
|
+
action: string;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
export declare function buildFeeTicketRootUpdateOperation(walletInfo: FeeTicketWalletInfo, input: {
|
|
168
|
+
root: FeeTicketRootInfo;
|
|
169
|
+
utilityTokenAmount?: string;
|
|
170
|
+
discountBps?: number;
|
|
171
|
+
supportedMarketIds?: string[];
|
|
172
|
+
enabled?: boolean;
|
|
173
|
+
rootUtxos: readonly Kcc20IndexedCovenantUtxo[];
|
|
174
|
+
}, options?: FeeTicketRootOperationOptions): {
|
|
175
|
+
requestId: string;
|
|
176
|
+
description: string;
|
|
177
|
+
payload: {
|
|
178
|
+
params: Record<string, unknown>;
|
|
179
|
+
signing: {
|
|
180
|
+
standard: string;
|
|
181
|
+
walletAction: string;
|
|
182
|
+
status: string;
|
|
183
|
+
builderKey: string;
|
|
184
|
+
builderStatus: string;
|
|
185
|
+
submitTransactionSupported: boolean;
|
|
186
|
+
missingDependencies: string[];
|
|
187
|
+
missingSources: never[];
|
|
188
|
+
};
|
|
189
|
+
sourceRequirements: Record<string, unknown>[];
|
|
190
|
+
signerRequirements: Record<string, unknown>[];
|
|
191
|
+
warnings: string[];
|
|
192
|
+
tokenIdentity?: Record<string, unknown> | undefined;
|
|
193
|
+
schema: string;
|
|
194
|
+
status: string;
|
|
195
|
+
requestId: string;
|
|
196
|
+
chain: string;
|
|
197
|
+
network: string;
|
|
198
|
+
createdAt: string;
|
|
199
|
+
owner: import("./wallet-operation.js").Kcc20WalletOperationOwner;
|
|
200
|
+
operation: string;
|
|
201
|
+
contract: string;
|
|
202
|
+
action: string;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildFeeTicketRootDeployOperation = buildFeeTicketRootDeployOperation;
|
|
4
|
+
exports.buildFeeTicketCreateOperation = buildFeeTicketCreateOperation;
|
|
5
|
+
exports.buildFeeTicketBurnOperation = buildFeeTicketBurnOperation;
|
|
6
|
+
exports.buildFeeTicketTransferOperation = buildFeeTicketTransferOperation;
|
|
7
|
+
exports.buildFeeTicketRootUpdateOperation = buildFeeTicketRootUpdateOperation;
|
|
8
|
+
const wallet_operation_js_1 = require("./wallet-operation.js");
|
|
9
|
+
const action_source_resolver_js_1 = require("./action-source-resolver.js");
|
|
10
|
+
const token_amount_js_1 = require("./token-amount.js");
|
|
11
|
+
const HEX_64_RE = /^[a-fA-F0-9]{64}$/;
|
|
12
|
+
const U64_MAX = (1n << 64n) - 1n;
|
|
13
|
+
function buildFeeTicketRootDeployOperation(walletInfo, draft, options = {}) {
|
|
14
|
+
const utilityTokenId = requireHex64(draft.utilityTokenId, "utilityTokenId");
|
|
15
|
+
const utilityTokenAmount = requireU64(draft.utilityTokenAmount, "utilityTokenAmount");
|
|
16
|
+
const discountBps = requireBps(draft.discountBps, "discountBps");
|
|
17
|
+
const supportedMarketIds = (draft.supportedMarketIds ?? []).map((id) => requireHex64(id, "supportedMarketIds"));
|
|
18
|
+
const requestId = options.requestId ?? `fee-ticket-root-deploy-${randomOperationId()}`;
|
|
19
|
+
const network = options.network ?? "testnet-10";
|
|
20
|
+
return (0, wallet_operation_js_1.buildKcc20WalletOperationFromPlan)(walletInfo, {
|
|
21
|
+
builderKey: "fee-ticket.deploy-root",
|
|
22
|
+
operation: "deploy-fee-ticket-root",
|
|
23
|
+
contract: "KCC20FeeTicket",
|
|
24
|
+
action: "deployRoot",
|
|
25
|
+
description: "Build a FeeTicket root deploy request.",
|
|
26
|
+
params: {
|
|
27
|
+
utilityTokenId,
|
|
28
|
+
utilityTokenAmount: utilityTokenAmount.toString(),
|
|
29
|
+
discountBps,
|
|
30
|
+
supportedMarketIds,
|
|
31
|
+
rootOwner: walletInfo.kcc20Owner,
|
|
32
|
+
rootOwnerType: "pubkey",
|
|
33
|
+
},
|
|
34
|
+
sourceRequirements: [
|
|
35
|
+
{
|
|
36
|
+
type: "kaspa-funding-utxo",
|
|
37
|
+
ownerAddress: walletInfo.walletAddress,
|
|
38
|
+
purpose: "fund FeeTicket root deploy transaction",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
type: "compiled-fee-ticket-artifact",
|
|
42
|
+
contract: "FeeTicket",
|
|
43
|
+
purpose: "construct FeeTicket root covenant output",
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
signerRequirements: [
|
|
47
|
+
{
|
|
48
|
+
type: "wallet-owner",
|
|
49
|
+
owner: walletInfo.kcc20Owner,
|
|
50
|
+
address: walletInfo.walletAddress,
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
warnings: [
|
|
54
|
+
"This builds the on-chain FeeTicket root transaction only. Save the returned root covenant ID after broadcast so the platform config can trust it.",
|
|
55
|
+
],
|
|
56
|
+
}, { ...options, requestId, network });
|
|
57
|
+
}
|
|
58
|
+
function buildFeeTicketCreateOperation(walletInfo, input, options = {}) {
|
|
59
|
+
const root = requireConfiguredRoot(input.root);
|
|
60
|
+
if (!Number.isInteger(input.quantity) || input.quantity < 1) {
|
|
61
|
+
throw new Error("quantity must be a positive integer");
|
|
62
|
+
}
|
|
63
|
+
const maxQuantity = root.maxTicketBatchQuantity ?? 1;
|
|
64
|
+
if (input.quantity > maxQuantity) {
|
|
65
|
+
throw new Error(`Active FeeTicket root supports at most ${maxQuantity} ticket(s) per transaction`);
|
|
66
|
+
}
|
|
67
|
+
if (input.quantity > 1 && root.batchCreateSupported !== true) {
|
|
68
|
+
throw new Error("Active FeeTicket root does not support batch creation");
|
|
69
|
+
}
|
|
70
|
+
const rootOwner = requireHex64(root.rootOwner, "rootOwner");
|
|
71
|
+
const activeRoot = selectSingleRoot(input.rootUtxos, rootOwner);
|
|
72
|
+
const denomination = requireU64(root.utilityTokenAmount, "utilityTokenAmount");
|
|
73
|
+
if (denomination <= 0n)
|
|
74
|
+
throw new Error("utilityTokenAmount must be positive");
|
|
75
|
+
const total = denomination * BigInt(input.quantity);
|
|
76
|
+
if (total > U64_MAX)
|
|
77
|
+
throw new Error("FeeTicket batch utility token amount exceeds u64 max");
|
|
78
|
+
const utilityCandidates = (0, action_source_resolver_js_1.ownerNativeHolderUtxos)(input.utilityTokenUtxos, walletInfo.kcc20Owner);
|
|
79
|
+
const utility = (0, action_source_resolver_js_1.selectOwnerNativeHolderUtxo)(input.utilityTokenUtxos, walletInfo.kcc20Owner, total.toString());
|
|
80
|
+
const utilitySummary = (0, action_source_resolver_js_1.summarizeHolderUtxos)(utilityCandidates, total.toString());
|
|
81
|
+
if (!utility) {
|
|
82
|
+
throw new Error(utilitySummary.fragmented
|
|
83
|
+
? "Utility-token balance is fragmented; consolidate token UTXOs first"
|
|
84
|
+
: "No utility-token holder UTXO has enough balance");
|
|
85
|
+
}
|
|
86
|
+
return (0, wallet_operation_js_1.buildKcc20WalletOperationFromPlan)(walletInfo, {
|
|
87
|
+
builderKey: "fee-ticket.create-from-utility-burn",
|
|
88
|
+
operation: "create-fee-ticket",
|
|
89
|
+
contract: "FeeTicket",
|
|
90
|
+
action: "createFromUtilityBurn",
|
|
91
|
+
description: "Build a FeeTicket creation request from utility-token burn.",
|
|
92
|
+
params: {
|
|
93
|
+
rootId: root.rootId,
|
|
94
|
+
rootOwner,
|
|
95
|
+
utilityTokenId: root.utilityTokenId,
|
|
96
|
+
utilityTokenAmount: root.utilityTokenAmount,
|
|
97
|
+
utilityTokenUtxo: utility,
|
|
98
|
+
activeRootUtxo: activeRoot,
|
|
99
|
+
activeRootCandidateUtxos: [activeRoot],
|
|
100
|
+
quantity: input.quantity,
|
|
101
|
+
totalUtilityTokenAmount: total.toString(),
|
|
102
|
+
discountBps: root.discountBps,
|
|
103
|
+
supportedMarketIds: root.supportedMarketIds ?? [],
|
|
104
|
+
ticketOwner: walletInfo.kcc20Owner,
|
|
105
|
+
ticketOwnerType: "pubkey",
|
|
106
|
+
},
|
|
107
|
+
sourceRequirements: [
|
|
108
|
+
activeRootRequirement(root.rootId, rootOwner, activeRoot, `spend and recreate FeeTicket root while minting ${input.quantity} ticket(s)`),
|
|
109
|
+
{
|
|
110
|
+
type: "kcc20-utility-token-holder-utxo",
|
|
111
|
+
covenantId: root.utilityTokenId,
|
|
112
|
+
owner: walletInfo.kcc20Owner,
|
|
113
|
+
minimumTokenAmount: total.toString(),
|
|
114
|
+
...utilitySummary,
|
|
115
|
+
selectedOutpoint: utility.outpoint,
|
|
116
|
+
amount: utility.state?.["amount"],
|
|
117
|
+
address: utility.address,
|
|
118
|
+
identifierType: utility.state?.["identifierType"],
|
|
119
|
+
purpose: "burn utility tokens to mint fee discount tickets",
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
warnings: [
|
|
123
|
+
"Wallet must burn the configured utility-token amount before ticket issuance.",
|
|
124
|
+
"One FeeTicket UTXO represents one fee credit.",
|
|
125
|
+
],
|
|
126
|
+
}, options);
|
|
127
|
+
}
|
|
128
|
+
function buildFeeTicketBurnOperation(walletInfo, input, options = {}) {
|
|
129
|
+
const root = requireConfiguredRoot(input.root);
|
|
130
|
+
const outpoints = requireDistinctOutpoints(input.ticketOutpoints);
|
|
131
|
+
const selected = (0, action_source_resolver_js_1.selectOwnerFeeTicketUtxos)(input.rootUtxos, walletInfo.kcc20Owner, outpoints);
|
|
132
|
+
return (0, wallet_operation_js_1.buildKcc20WalletOperationFromPlan)(walletInfo, {
|
|
133
|
+
builderKey: "fee-ticket.burn",
|
|
134
|
+
operation: "burn-fee-ticket",
|
|
135
|
+
contract: "FeeTicket",
|
|
136
|
+
action: "burn",
|
|
137
|
+
description: "Build a fee discount ticket burn/cleanup request.",
|
|
138
|
+
params: {
|
|
139
|
+
rootId: root.rootId,
|
|
140
|
+
ticketOutpoints: outpoints,
|
|
141
|
+
ticketUtxos: selected,
|
|
142
|
+
owner: walletInfo.kcc20Owner,
|
|
143
|
+
},
|
|
144
|
+
sourceRequirements: selected.map((ticket) => ({
|
|
145
|
+
type: "fee-ticket-utxo",
|
|
146
|
+
rootId: root.rootId,
|
|
147
|
+
outpoint: ticket.outpoint,
|
|
148
|
+
owner: walletInfo.kcc20Owner,
|
|
149
|
+
selectedOutpoint: ticket.outpoint,
|
|
150
|
+
amountSompi: ticket.amountSompi,
|
|
151
|
+
address: ticket.address,
|
|
152
|
+
})),
|
|
153
|
+
warnings: ["FeeTicket cleanup burns unused tickets only."],
|
|
154
|
+
}, options);
|
|
155
|
+
}
|
|
156
|
+
function buildFeeTicketTransferOperation(walletInfo, input, options = {}) {
|
|
157
|
+
const root = requireConfiguredRoot(input.root);
|
|
158
|
+
const owner = (0, token_amount_js_1.normalizeKcc20OwnerIdentifier)(walletInfo.kcc20Owner, "wallet owner");
|
|
159
|
+
const recipientOwner = (0, token_amount_js_1.normalizeKcc20OwnerIdentifier)(input.recipientOwner, "recipientOwner");
|
|
160
|
+
if (recipientOwner === owner)
|
|
161
|
+
throw new Error("recipientOwner must be different from the wallet owner");
|
|
162
|
+
const outpoints = requireDistinctOutpoints(input.ticketOutpoints);
|
|
163
|
+
const selected = (0, action_source_resolver_js_1.selectOwnerFeeTicketUtxos)(input.rootUtxos, owner, outpoints);
|
|
164
|
+
return (0, wallet_operation_js_1.buildKcc20WalletOperationFromPlan)(walletInfo, {
|
|
165
|
+
builderKey: "fee-ticket.transfer",
|
|
166
|
+
operation: "transfer-fee-ticket",
|
|
167
|
+
contract: "FeeTicket",
|
|
168
|
+
action: "transferByOwnerSig",
|
|
169
|
+
description: "Build a fee discount ticket owner-transfer request.",
|
|
170
|
+
params: {
|
|
171
|
+
rootId: root.rootId,
|
|
172
|
+
utilityTokenId: root.utilityTokenId,
|
|
173
|
+
owner,
|
|
174
|
+
recipientOwner,
|
|
175
|
+
ticketOutpoints: outpoints,
|
|
176
|
+
ticketUtxos: selected,
|
|
177
|
+
},
|
|
178
|
+
sourceRequirements: selected.map((ticket) => ({
|
|
179
|
+
type: "fee-ticket-utxo",
|
|
180
|
+
rootId: root.rootId,
|
|
181
|
+
outpoint: ticket.outpoint,
|
|
182
|
+
owner,
|
|
183
|
+
recipientOwner,
|
|
184
|
+
purpose: "transfer FeeTicket ownership while preserving locked KAS",
|
|
185
|
+
selectedOutpoint: ticket.outpoint,
|
|
186
|
+
amountSompi: ticket.amountSompi,
|
|
187
|
+
address: ticket.address,
|
|
188
|
+
})),
|
|
189
|
+
warnings: [
|
|
190
|
+
"Transferred coupons remain one-use FeeTicket UTXOs and retain their locked KAS.",
|
|
191
|
+
"Only the recipient owner can use, burn, or transfer the recreated coupons.",
|
|
192
|
+
],
|
|
193
|
+
}, options);
|
|
194
|
+
}
|
|
195
|
+
function buildFeeTicketRootUpdateOperation(walletInfo, input, options = {}) {
|
|
196
|
+
const root = requireConfiguredRoot(input.root, false);
|
|
197
|
+
const rootOwner = requireHex64(root.rootOwner, "rootOwner");
|
|
198
|
+
if (rootOwner !== walletInfo.kcc20Owner.toLowerCase()) {
|
|
199
|
+
throw new Error("FeeTicket root update requires the configured root owner");
|
|
200
|
+
}
|
|
201
|
+
const activeRoot = selectSingleRoot(input.rootUtxos, rootOwner);
|
|
202
|
+
const utilityTokenAmount = (input.utilityTokenAmount ??
|
|
203
|
+
root.utilityTokenAmount);
|
|
204
|
+
if (requireU64(utilityTokenAmount, "utilityTokenAmount") <= 0n) {
|
|
205
|
+
throw new Error("utilityTokenAmount must be positive");
|
|
206
|
+
}
|
|
207
|
+
const discountBps = requireBps(input.discountBps ?? root.discountBps, "discountBps");
|
|
208
|
+
const supportedMarketIds = (input.supportedMarketIds ??
|
|
209
|
+
root.supportedMarketIds ??
|
|
210
|
+
[]).map((id) => requireHex64(id, "supportedMarketIds"));
|
|
211
|
+
return (0, wallet_operation_js_1.buildKcc20WalletOperationFromPlan)(walletInfo, {
|
|
212
|
+
builderKey: "fee-ticket.update-denomination",
|
|
213
|
+
operation: "update-fee-ticket-denomination",
|
|
214
|
+
contract: "FeeTicket",
|
|
215
|
+
action: "updateDenomination",
|
|
216
|
+
description: "Build a FeeTicket root denomination update request.",
|
|
217
|
+
params: {
|
|
218
|
+
rootId: root.rootId,
|
|
219
|
+
utilityTokenId: root.utilityTokenId,
|
|
220
|
+
currentUtilityTokenAmount: root.utilityTokenAmount,
|
|
221
|
+
utilityTokenAmount,
|
|
222
|
+
discountBps,
|
|
223
|
+
supportedMarketIds,
|
|
224
|
+
enabled: input.enabled ?? root.enabled,
|
|
225
|
+
rootOwner,
|
|
226
|
+
rootOwnerType: "pubkey",
|
|
227
|
+
activeRootUtxo: activeRoot,
|
|
228
|
+
activeRootCandidateUtxos: [activeRoot],
|
|
229
|
+
},
|
|
230
|
+
sourceRequirements: [
|
|
231
|
+
activeRootRequirement(root.rootId, rootOwner, activeRoot, "spend and recreate FeeTicket root with updated denomination"),
|
|
232
|
+
{
|
|
233
|
+
type: "kaspa-funding-utxo",
|
|
234
|
+
ownerAddress: walletInfo.walletAddress,
|
|
235
|
+
purpose: "fund FeeTicket root update transaction",
|
|
236
|
+
},
|
|
237
|
+
],
|
|
238
|
+
warnings: [
|
|
239
|
+
"Update backend root configuration only after the signed transaction is broadcast and indexed.",
|
|
240
|
+
],
|
|
241
|
+
}, options);
|
|
242
|
+
}
|
|
243
|
+
function requireConfiguredRoot(root, requireEnabled = true) {
|
|
244
|
+
if (!root.configured || (requireEnabled && !root.enabled))
|
|
245
|
+
throw new Error("FeeTicket root is not configured");
|
|
246
|
+
requireHex64(root.rootId, "rootId");
|
|
247
|
+
requireHex64(root.rootOwner, "rootOwner");
|
|
248
|
+
requireHex64(root.utilityTokenId, "utilityTokenId");
|
|
249
|
+
requireU64(root.utilityTokenAmount, "utilityTokenAmount");
|
|
250
|
+
requireBps(root.discountBps, "discountBps");
|
|
251
|
+
return root;
|
|
252
|
+
}
|
|
253
|
+
function selectSingleRoot(utxos, rootOwner) {
|
|
254
|
+
const candidates = utxos.filter((utxo) => Number(utxo.state?.["mode"] ?? utxo.state?.["stateMode"]) === 1 &&
|
|
255
|
+
(!utxo.state?.["ownerIdentifier"] ||
|
|
256
|
+
String(utxo.state["ownerIdentifier"]).toLowerCase() === rootOwner));
|
|
257
|
+
if (candidates.length !== 1)
|
|
258
|
+
throw new Error(candidates.length
|
|
259
|
+
? "FeeTicket root has multiple active UTXOs"
|
|
260
|
+
: "FeeTicket root has no active UTXO");
|
|
261
|
+
return candidates[0];
|
|
262
|
+
}
|
|
263
|
+
function activeRootRequirement(rootId, owner, root, purpose) {
|
|
264
|
+
return {
|
|
265
|
+
type: "active-fee-ticket-root",
|
|
266
|
+
rootId,
|
|
267
|
+
owner,
|
|
268
|
+
selectedOutpoint: root.outpoint,
|
|
269
|
+
amountSompi: root.amountSompi,
|
|
270
|
+
address: root.address,
|
|
271
|
+
purpose,
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
function requireDistinctOutpoints(values) {
|
|
275
|
+
if (!values.length)
|
|
276
|
+
throw new Error("at least one FeeTicket outpoint is required");
|
|
277
|
+
const normalized = values.map((value) => {
|
|
278
|
+
const item = String(value).trim().toLowerCase();
|
|
279
|
+
if (!/^[a-f0-9]{64}:\d+$/.test(item))
|
|
280
|
+
throw new Error(`invalid FeeTicket outpoint: ${value}`);
|
|
281
|
+
return item;
|
|
282
|
+
});
|
|
283
|
+
if (new Set(normalized).size !== normalized.length)
|
|
284
|
+
throw new Error("FeeTicket outpoints must be distinct");
|
|
285
|
+
return normalized;
|
|
286
|
+
}
|
|
287
|
+
function requireHex64(value, field) {
|
|
288
|
+
const normalized = String(value ?? "")
|
|
289
|
+
.trim()
|
|
290
|
+
.toLowerCase()
|
|
291
|
+
.replace(/^0x/, "");
|
|
292
|
+
if (!HEX_64_RE.test(normalized)) {
|
|
293
|
+
throw new Error(`${field} must be 64 hex characters`);
|
|
294
|
+
}
|
|
295
|
+
return normalized;
|
|
296
|
+
}
|
|
297
|
+
function requireU64(value, field) {
|
|
298
|
+
const normalized = String(value ?? "").trim();
|
|
299
|
+
if (!/^(0|[1-9]\d*)$/.test(normalized)) {
|
|
300
|
+
throw new Error(`${field} must be an unsigned integer`);
|
|
301
|
+
}
|
|
302
|
+
const parsed = BigInt(normalized);
|
|
303
|
+
if (parsed > U64_MAX) {
|
|
304
|
+
throw new Error(`${field} exceeds u64 max`);
|
|
305
|
+
}
|
|
306
|
+
return parsed;
|
|
307
|
+
}
|
|
308
|
+
function requireBps(value, field) {
|
|
309
|
+
if (!Number.isInteger(value) || value < 0 || value > 10_000) {
|
|
310
|
+
throw new Error(`${field} must be 0..10000`);
|
|
311
|
+
}
|
|
312
|
+
return value;
|
|
313
|
+
}
|
|
314
|
+
function randomOperationId() {
|
|
315
|
+
return globalThis.crypto?.randomUUID?.() ?? fallbackRandomId();
|
|
316
|
+
}
|
|
317
|
+
function fallbackRandomId() {
|
|
318
|
+
const bytes = new Uint8Array(16);
|
|
319
|
+
globalThis.crypto?.getRandomValues?.(bytes);
|
|
320
|
+
if (bytes.some((byte) => byte !== 0)) {
|
|
321
|
+
return [...bytes]
|
|
322
|
+
.map((byte) => byte.toString(16).padStart(2, "0"))
|
|
323
|
+
.join("");
|
|
324
|
+
}
|
|
325
|
+
return `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
|
|
326
|
+
}
|
|
327
|
+
//# sourceMappingURL=fee-ticket-operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fee-ticket-operation.js","sourceRoot":"","sources":["../../src/fee-ticket-operation.ts"],"names":[],"mappings":";;AA+BA,8EA2DC;AAeD,sEAyGC;AAED,kEA2CC;AAED,0EAyDC;AAED,8EAwEC;AApYD,+DAA0E;AAC1E,2EAMqC;AACrC,uDAAkE;AAElE,MAAM,SAAS,GAAG,mBAAmB,CAAC;AACtC,MAAM,OAAO,GAAG,CAAC,EAAE,IAAI,GAAG,CAAC,GAAG,EAAE,CAAC;AAoBjC,SAAgB,iCAAiC,CAC/C,UAA+B,EAC/B,K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Q,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;AAC7E,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export * from "./artifacts.js";
|
|
2
|
+
export * from "./action-source-resolver.js";
|
|
3
|
+
export * from "./abi.js";
|
|
4
|
+
export * from "./builder.js";
|
|
5
|
+
export * from "./deploy-operation.js";
|
|
6
|
+
export * from "./errors.js";
|
|
7
|
+
export * from "./encoding.js";
|
|
8
|
+
export * from "./engine.js";
|
|
9
|
+
export * from "./fee-ticket-operation.js";
|
|
10
|
+
export * from "./ladder-limit-orders.js";
|
|
11
|
+
export * from "./mint-availability-operation.js";
|
|
12
|
+
export * from "./models.js";
|
|
13
|
+
export * from "./operations.js";
|
|
14
|
+
export * from "./paid-mint-amount.js";
|
|
15
|
+
export * from "./token-amount.js";
|
|
16
|
+
export * from "./token-operation.js";
|
|
17
|
+
export * from "./trade-fee.js";
|
|
18
|
+
export * from "./trading-operation.js";
|
|
19
|
+
export * from "./protocol.js";
|
|
20
|
+
export * from "./runtime.js";
|
|
21
|
+
export * as saleCommon from "./sale-common.js";
|
|
22
|
+
export * from "./source-provider.js";
|
|
23
|
+
export * from "./source-validation.js";
|
|
24
|
+
export * from "./wasm-provider.js";
|
|
25
|
+
export * from "./wallet-operation.js";
|
|
26
|
+
export * from "./wrapper-operation.js";
|
|
27
|
+
export * from "./verify-operation.js";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.saleCommon = void 0;
|
|
18
|
+
__exportStar(require("./artifacts.js"), exports);
|
|
19
|
+
__exportStar(require("./action-source-resolver.js"), exports);
|
|
20
|
+
__exportStar(require("./abi.js"), exports);
|
|
21
|
+
__exportStar(require("./builder.js"), exports);
|
|
22
|
+
__exportStar(require("./deploy-operation.js"), exports);
|
|
23
|
+
__exportStar(require("./errors.js"), exports);
|
|
24
|
+
__exportStar(require("./encoding.js"), exports);
|
|
25
|
+
__exportStar(require("./engine.js"), exports);
|
|
26
|
+
__exportStar(require("./fee-ticket-operation.js"), exports);
|
|
27
|
+
__exportStar(require("./ladder-limit-orders.js"), exports);
|
|
28
|
+
__exportStar(require("./mint-availability-operation.js"), exports);
|
|
29
|
+
__exportStar(require("./models.js"), exports);
|
|
30
|
+
__exportStar(require("./operations.js"), exports);
|
|
31
|
+
__exportStar(require("./paid-mint-amount.js"), exports);
|
|
32
|
+
__exportStar(require("./token-amount.js"), exports);
|
|
33
|
+
__exportStar(require("./token-operation.js"), exports);
|
|
34
|
+
__exportStar(require("./trade-fee.js"), exports);
|
|
35
|
+
__exportStar(require("./trading-operation.js"), exports);
|
|
36
|
+
__exportStar(require("./protocol.js"), exports);
|
|
37
|
+
__exportStar(require("./runtime.js"), exports);
|
|
38
|
+
exports.saleCommon = require("./sale-common.js");
|
|
39
|
+
__exportStar(require("./source-provider.js"), exports);
|
|
40
|
+
__exportStar(require("./source-validation.js"), exports);
|
|
41
|
+
__exportStar(require("./wasm-provider.js"), exports);
|
|
42
|
+
__exportStar(require("./wallet-operation.js"), exports);
|
|
43
|
+
__exportStar(require("./wrapper-operation.js"), exports);
|
|
44
|
+
__exportStar(require("./verify-operation.js"), exports);
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,8DAA4C;AAC5C,2CAAyB;AACzB,+CAA6B;AAC7B,wDAAsC;AACtC,8CAA4B;AAC5B,gDAA8B;AAC9B,8CAA4B;AAC5B,4DAA0C;AAC1C,2DAAyC;AACzC,mEAAiD;AACjD,8CAA4B;AAC5B,kDAAgC;AAChC,wDAAsC;AACtC,oDAAkC;AAClC,uDAAqC;AACrC,iDAA+B;AAC/B,yDAAuC;AACvC,gDAA8B;AAC9B,+CAA6B;AAC7B,iDAA+C;AAC/C,uDAAqC;AACrC,yDAAuC;AACvC,qDAAmC;AACnC,wDAAsC;AACtC,yDAAuC;AACvC,wDAAsC"}
|