@canton-network/core-ledger-client 0.27.2 → 0.28.1
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.cjs +145 -2362
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +148 -2354
- package/dist/index.js.map +1 -1
- package/dist/ledger-api-utils.d.ts +0 -33
- package/dist/ledger-api-utils.d.ts.map +1 -1
- package/dist/ledger-client.d.ts.map +1 -1
- package/package.json +7 -7
- package/dist/amulet-service.d.ts +0 -37
- package/dist/amulet-service.d.ts.map +0 -1
- package/dist/constants.d.ts +0 -14
- package/dist/constants.d.ts.map +0 -1
- package/dist/token-standard-service.d.ts +0 -142
- package/dist/token-standard-service.d.ts.map +0 -1
- package/dist/txparse/instrumentmap.d.ts +0 -18
- package/dist/txparse/instrumentmap.d.ts.map +0 -1
- package/dist/txparse/parser.d.ts +0 -27
- package/dist/txparse/parser.d.ts.map +0 -1
- package/dist/txparse/strict.d.ts +0 -3
- package/dist/txparse/strict.d.ts.map +0 -1
- package/dist/txparse/test-data/mock/eventsByContractIdResponses.d.ts +0 -1046
- package/dist/txparse/test-data/mock/eventsByContractIdResponses.d.ts.map +0 -1
- package/dist/txparse/types.d.ts +0 -159
- package/dist/txparse/types.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eventsByContractIdResponses.d.ts","sourceRoot":"","sources":["../../../../src/txparse/test-data/mock/eventsByContractIdResponses.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBA0mGC"}
|
package/dist/txparse/types.d.ts
DELETED
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { v3_3 } from '@canton-network/core-ledger-client-types';
|
|
2
|
-
import { Metadata } from '@canton-network/core-token-standard';
|
|
3
|
-
export type ViewValue = v3_3.components['schemas']['JsInterfaceView']['viewValue'];
|
|
4
|
-
export type JsActiveContract = v3_3.components['schemas']['JsActiveContract'];
|
|
5
|
-
export interface Transaction {
|
|
6
|
-
updateId: string;
|
|
7
|
-
offset: number;
|
|
8
|
-
recordTime: string;
|
|
9
|
-
synchronizerId: string;
|
|
10
|
-
events: TokenStandardEvent[];
|
|
11
|
-
}
|
|
12
|
-
export interface TokenStandardEvent {
|
|
13
|
-
label: Label;
|
|
14
|
-
lockedHoldingsChange: HoldingsChange;
|
|
15
|
-
/** lockedHoldingsChangeSummaries contains one summary per instrument. */
|
|
16
|
-
lockedHoldingsChangeSummaries: HoldingsChangeSummary[];
|
|
17
|
-
/** @deprecated lockedHoldingsChangeSummary is incorrect in a
|
|
18
|
-
* multi-instrument world. It will be removed in a future release, please
|
|
19
|
-
* use unlockedHoldingsChangeSummaries instead. */
|
|
20
|
-
lockedHoldingsChangeSummary: HoldingsChangeSummary;
|
|
21
|
-
unlockedHoldingsChange: HoldingsChange;
|
|
22
|
-
/** unlockedHoldingsChangeSummary contains one summary per instrument. */
|
|
23
|
-
unlockedHoldingsChangeSummaries: HoldingsChangeSummary[];
|
|
24
|
-
/** @deprecated unlockedHoldingsChangeSummary is incorrect in a
|
|
25
|
-
* multi-instrument world. It will be removed in a future release, please
|
|
26
|
-
* use unlockedHoldingsChangeSummaries instead. */
|
|
27
|
-
unlockedHoldingsChangeSummary: HoldingsChangeSummary;
|
|
28
|
-
transferInstruction: TransferInstructionView | null;
|
|
29
|
-
}
|
|
30
|
-
export interface Holding {
|
|
31
|
-
contractId: string;
|
|
32
|
-
owner: string;
|
|
33
|
-
instrumentId: {
|
|
34
|
-
admin: string;
|
|
35
|
-
id: string;
|
|
36
|
-
};
|
|
37
|
-
amount: string;
|
|
38
|
-
lock: HoldingLock | null;
|
|
39
|
-
meta: any;
|
|
40
|
-
}
|
|
41
|
-
export interface HoldingLock {
|
|
42
|
-
holders: string[];
|
|
43
|
-
expiresAt?: string;
|
|
44
|
-
expiresAfter?: string;
|
|
45
|
-
context?: string;
|
|
46
|
-
}
|
|
47
|
-
export interface HoldingsChange {
|
|
48
|
-
creates: Holding[];
|
|
49
|
-
archives: Holding[];
|
|
50
|
-
}
|
|
51
|
-
export interface HoldingsChangeSummary {
|
|
52
|
-
instrumentId: {
|
|
53
|
-
admin: string;
|
|
54
|
-
id: string;
|
|
55
|
-
};
|
|
56
|
-
numInputs: number;
|
|
57
|
-
inputAmount: string;
|
|
58
|
-
numOutputs: number;
|
|
59
|
-
outputAmount: string;
|
|
60
|
-
amountChange: string;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Same as TransferInstructionView in Daml when exercising a TransferInstruction choice,
|
|
64
|
-
* otherwise just meta and transfer.
|
|
65
|
-
*/
|
|
66
|
-
export interface TransferInstructionView {
|
|
67
|
-
originalInstructionCid: string | null;
|
|
68
|
-
transfer?: any;
|
|
69
|
-
status: {
|
|
70
|
-
before: any;
|
|
71
|
-
current: {
|
|
72
|
-
tag: TransferInstructionCurrentTag;
|
|
73
|
-
value: unknown;
|
|
74
|
-
} | null;
|
|
75
|
-
};
|
|
76
|
-
meta: Metadata | null;
|
|
77
|
-
multiStepCorrelationId?: string;
|
|
78
|
-
}
|
|
79
|
-
export type TransferInstructionCurrentTag = 'Pending' | 'Completed' | 'Rejected' | 'Withdrawn' | 'Failed';
|
|
80
|
-
export type Label = TransferOut | TransferIn | MergeSplit | Burn | Mint | Unlock | Lock | ExpireDust | UnknownAction;
|
|
81
|
-
type UnknownAction = RawArchive | RawCreate;
|
|
82
|
-
interface BaseLabel {
|
|
83
|
-
type: string;
|
|
84
|
-
meta: any;
|
|
85
|
-
}
|
|
86
|
-
interface KnownLabel extends BaseLabel {
|
|
87
|
-
mintAmount: string;
|
|
88
|
-
burnAmount: string;
|
|
89
|
-
reason: string | null;
|
|
90
|
-
tokenStandardChoice: TokenStandardChoice | null;
|
|
91
|
-
}
|
|
92
|
-
export interface TokenStandardChoice {
|
|
93
|
-
name: string;
|
|
94
|
-
choiceArgument: any;
|
|
95
|
-
exerciseResult: any;
|
|
96
|
-
}
|
|
97
|
-
export interface TransferOut extends KnownLabel {
|
|
98
|
-
type: 'TransferOut';
|
|
99
|
-
receiverAmounts: Array<{
|
|
100
|
-
receiver: string;
|
|
101
|
-
amount: string;
|
|
102
|
-
}>;
|
|
103
|
-
}
|
|
104
|
-
export interface TransferIn extends KnownLabel {
|
|
105
|
-
type: 'TransferIn';
|
|
106
|
-
sender: string;
|
|
107
|
-
}
|
|
108
|
-
export interface MergeSplit extends KnownLabel {
|
|
109
|
-
type: 'MergeSplit';
|
|
110
|
-
}
|
|
111
|
-
export interface Burn extends KnownLabel {
|
|
112
|
-
type: 'Burn';
|
|
113
|
-
}
|
|
114
|
-
export interface Mint extends KnownLabel {
|
|
115
|
-
type: 'Mint';
|
|
116
|
-
}
|
|
117
|
-
export interface Unlock extends KnownLabel {
|
|
118
|
-
type: 'Unlock';
|
|
119
|
-
}
|
|
120
|
-
export interface Lock extends KnownLabel {
|
|
121
|
-
type: 'Lock';
|
|
122
|
-
}
|
|
123
|
-
export interface ExpireDust extends KnownLabel {
|
|
124
|
-
type: 'ExpireDust';
|
|
125
|
-
}
|
|
126
|
-
export interface RawArchive extends BaseLabel {
|
|
127
|
-
type: 'Archive';
|
|
128
|
-
parentChoice: string;
|
|
129
|
-
contractId: string;
|
|
130
|
-
offset: number;
|
|
131
|
-
templateId: string;
|
|
132
|
-
packageName: string;
|
|
133
|
-
actingParties: string[];
|
|
134
|
-
payload: any;
|
|
135
|
-
meta: any;
|
|
136
|
-
}
|
|
137
|
-
export interface RawCreate extends BaseLabel {
|
|
138
|
-
type: 'Create' | 'Lock';
|
|
139
|
-
parentChoice: string;
|
|
140
|
-
contractId: string;
|
|
141
|
-
offset: number;
|
|
142
|
-
templateId: string;
|
|
143
|
-
payload: any;
|
|
144
|
-
packageName: string;
|
|
145
|
-
meta: any;
|
|
146
|
-
}
|
|
147
|
-
export declare const renderTransaction: (t: Transaction) => any;
|
|
148
|
-
export interface PrettyTransactions {
|
|
149
|
-
transactions: Transaction[];
|
|
150
|
-
nextOffset: number;
|
|
151
|
-
}
|
|
152
|
-
export interface PrettyContract<T = ViewValue> {
|
|
153
|
-
contractId: string;
|
|
154
|
-
interfaceViewValue: T;
|
|
155
|
-
activeContract: JsActiveContract;
|
|
156
|
-
fetchedAtOffset?: number | undefined;
|
|
157
|
-
}
|
|
158
|
-
export {};
|
|
159
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/txparse/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,0CAA0C,CAAA;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAA;AAE9D,MAAM,MAAM,SAAS,GACjB,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,iBAAiB,CAAC,CAAC,WAAW,CAAC,CAAA;AAC9D,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAA;AAC7E,MAAM,WAAW,WAAW;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,MAAM,CAAA;IACtB,MAAM,EAAE,kBAAkB,EAAE,CAAA;CAC/B;AAED,MAAM,WAAW,kBAAkB;IAC/B,KAAK,EAAE,KAAK,CAAA;IACZ,oBAAoB,EAAE,cAAc,CAAA;IACpC,yEAAyE;IACzE,6BAA6B,EAAE,qBAAqB,EAAE,CAAA;IACtD;;uDAEmD;IACnD,2BAA2B,EAAE,qBAAqB,CAAA;IAClD,sBAAsB,EAAE,cAAc,CAAA;IACtC,yEAAyE;IACzE,+BAA+B,EAAE,qBAAqB,EAAE,CAAA;IACxD;;uDAEmD;IACnD,6BAA6B,EAAE,qBAAqB,CAAA;IACpD,mBAAmB,EAAE,uBAAu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