@fairmint/open-captable-protocol-daml-js 0.2.146 → 0.2.148
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/lib/DA/Set/Types/index.d.ts +1 -0
- package/lib/DA/Set/Types/index.js +8 -0
- package/lib/DA/Set/Types/module.d.ts +15 -0
- package/lib/DA/Set/Types/module.js +23 -0
- package/lib/DA/Set/index.d.ts +2 -0
- package/lib/DA/Set/index.js +9 -0
- package/lib/DA/index.d.ts +1 -0
- package/lib/DA/index.js +2 -0
- package/lib/Nft/Reference/V1/NftAsset/module.d.ts +1 -1
- package/lib/Nft/Reference/V1/NftAsset/module.js +1 -1
- package/lib/Nft/Reference/V1/NftRegistry/module.d.ts +1 -1
- package/lib/Nft/Reference/V1/NftRegistry/module.js +1 -1
- package/lib/Nft/Reference/V1/ReceiveAuthorization/module.d.ts +1 -1
- package/lib/Nft/Reference/V1/ReceiveAuthorization/module.js +1 -1
- package/lib/Splice/Api/Token/AllocationInstructionV1/index.d.ts +1 -0
- package/lib/Splice/Api/Token/AllocationInstructionV1/index.js +8 -0
- package/lib/Splice/Api/Token/AllocationInstructionV1/module.d.ts +147 -0
- package/lib/Splice/Api/Token/AllocationInstructionV1/module.js +215 -0
- package/lib/Splice/Api/Token/AllocationV1/index.d.ts +1 -0
- package/lib/Splice/Api/Token/AllocationV1/index.js +8 -0
- package/lib/Splice/Api/Token/AllocationV1/module.d.ts +151 -0
- package/lib/Splice/Api/Token/AllocationV1/module.js +205 -0
- package/lib/Splice/Api/Token/HoldingV1/index.d.ts +1 -0
- package/lib/Splice/Api/Token/HoldingV1/index.js +8 -0
- package/lib/Splice/Api/Token/HoldingV1/module.d.ts +58 -0
- package/lib/Splice/Api/Token/HoldingV1/module.js +75 -0
- package/lib/Splice/Api/Token/MetadataV1/index.d.ts +1 -0
- package/lib/Splice/Api/Token/MetadataV1/index.js +8 -0
- package/lib/Splice/Api/Token/MetadataV1/module.d.ts +89 -0
- package/lib/Splice/Api/Token/MetadataV1/module.js +113 -0
- package/lib/Splice/Api/Token/TransferInstructionV1/index.d.ts +1 -0
- package/lib/Splice/Api/Token/TransferInstructionV1/index.js +8 -0
- package/lib/Splice/Api/Token/TransferInstructionV1/module.d.ts +200 -0
- package/lib/Splice/Api/Token/TransferInstructionV1/module.js +294 -0
- package/lib/Splice/Api/Token/index.d.ts +5 -0
- package/lib/Splice/Api/Token/index.js +17 -0
- package/lib/Splice/Api/index.d.ts +1 -0
- package/lib/Splice/Api/index.js +2 -0
- package/lib/nft-api-v01-package-namespace.d.ts +4 -0
- package/lib/nft-api-v01-package-namespace.js +4 -0
- package/package.json +3 -2
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
// Generated from Splice/Api/Token/AllocationV1.daml
|
|
2
|
+
/* eslint-disable @typescript-eslint/camelcase */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
5
|
+
import * as jtv from '@mojotech/json-type-validation';
|
|
6
|
+
import * as damlTypes from '@daml/types';
|
|
7
|
+
|
|
8
|
+
import * as pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f from '../MetadataV1';
|
|
9
|
+
import * as pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b from '../HoldingV1';
|
|
10
|
+
import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../DA/Internal/Template';
|
|
11
|
+
|
|
12
|
+
export declare type Allocation = damlTypes.Interface<'#splice-api-token-allocation-v1:Splice.Api.Token.AllocationV1:Allocation'> & AllocationView;
|
|
13
|
+
export declare interface AllocationInterface {
|
|
14
|
+
Archive: damlTypes.Choice<Allocation, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<Allocation, undefined>>;
|
|
15
|
+
Allocation_Withdraw: damlTypes.Choice<Allocation, Allocation_Withdraw, Allocation_WithdrawResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<Allocation, undefined>>;
|
|
16
|
+
Allocation_Cancel: damlTypes.Choice<Allocation, Allocation_Cancel, Allocation_CancelResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<Allocation, undefined>>;
|
|
17
|
+
Allocation_ExecuteTransfer: damlTypes.Choice<Allocation, Allocation_ExecuteTransfer, Allocation_ExecuteTransferResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<Allocation, undefined>>;
|
|
18
|
+
}
|
|
19
|
+
export declare const Allocation:
|
|
20
|
+
damlTypes.InterfaceCompanion<Allocation, undefined, '#splice-api-token-allocation-v1:Splice.Api.Token.AllocationV1:Allocation'> &
|
|
21
|
+
damlTypes.FromTemplate<Allocation, unknown> &
|
|
22
|
+
AllocationInterface;
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
export declare type Allocation_WithdrawResult = {
|
|
26
|
+
senderHoldingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
27
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export declare const Allocation_WithdrawResult:
|
|
31
|
+
damlTypes.Serializable<Allocation_WithdrawResult> & {
|
|
32
|
+
}
|
|
33
|
+
;
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
export declare type Allocation_CancelResult = {
|
|
37
|
+
senderHoldingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
38
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export declare const Allocation_CancelResult:
|
|
42
|
+
damlTypes.Serializable<Allocation_CancelResult> & {
|
|
43
|
+
}
|
|
44
|
+
;
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
export declare type Allocation_ExecuteTransferResult = {
|
|
48
|
+
senderHoldingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
49
|
+
receiverHoldingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
50
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export declare const Allocation_ExecuteTransferResult:
|
|
54
|
+
damlTypes.Serializable<Allocation_ExecuteTransferResult> & {
|
|
55
|
+
}
|
|
56
|
+
;
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
export declare type Allocation_Withdraw = {
|
|
60
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export declare const Allocation_Withdraw:
|
|
64
|
+
damlTypes.Serializable<Allocation_Withdraw> & {
|
|
65
|
+
}
|
|
66
|
+
;
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
export declare type Allocation_Cancel = {
|
|
70
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export declare const Allocation_Cancel:
|
|
74
|
+
damlTypes.Serializable<Allocation_Cancel> & {
|
|
75
|
+
}
|
|
76
|
+
;
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
export declare type Allocation_ExecuteTransfer = {
|
|
80
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export declare const Allocation_ExecuteTransfer:
|
|
84
|
+
damlTypes.Serializable<Allocation_ExecuteTransfer> & {
|
|
85
|
+
}
|
|
86
|
+
;
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
export declare type AllocationView = {
|
|
90
|
+
allocation: AllocationSpecification;
|
|
91
|
+
holdingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
92
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export declare const AllocationView:
|
|
96
|
+
damlTypes.Serializable<AllocationView> & {
|
|
97
|
+
}
|
|
98
|
+
;
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
export declare type AllocationSpecification = {
|
|
102
|
+
settlement: SettlementInfo;
|
|
103
|
+
transferLegId: string;
|
|
104
|
+
transferLeg: TransferLeg;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export declare const AllocationSpecification:
|
|
108
|
+
damlTypes.Serializable<AllocationSpecification> & {
|
|
109
|
+
}
|
|
110
|
+
;
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
export declare type TransferLeg = {
|
|
114
|
+
sender: damlTypes.Party;
|
|
115
|
+
receiver: damlTypes.Party;
|
|
116
|
+
amount: damlTypes.Numeric;
|
|
117
|
+
instrumentId: pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.InstrumentId;
|
|
118
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export declare const TransferLeg:
|
|
122
|
+
damlTypes.Serializable<TransferLeg> & {
|
|
123
|
+
}
|
|
124
|
+
;
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
export declare type SettlementInfo = {
|
|
128
|
+
executor: damlTypes.Party;
|
|
129
|
+
settlementRef: Reference;
|
|
130
|
+
requestedAt: damlTypes.Time;
|
|
131
|
+
allocateBefore: damlTypes.Time;
|
|
132
|
+
settleBefore: damlTypes.Time;
|
|
133
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
export declare const SettlementInfo:
|
|
137
|
+
damlTypes.Serializable<SettlementInfo> & {
|
|
138
|
+
}
|
|
139
|
+
;
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
export declare type Reference = {
|
|
143
|
+
id: string;
|
|
144
|
+
cid: damlTypes.Optional<damlTypes.ContractId<pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.AnyContract>>;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
export declare const Reference:
|
|
148
|
+
damlTypes.Serializable<Reference> & {
|
|
149
|
+
}
|
|
150
|
+
;
|
|
151
|
+
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
9
|
+
var jtv = require('@mojotech/json-type-validation');
|
|
10
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
11
|
+
var damlTypes = require('@daml/types');
|
|
12
|
+
|
|
13
|
+
var pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f = require('../MetadataV1');
|
|
14
|
+
var pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b = require('../HoldingV1');
|
|
15
|
+
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../DA/Internal/Template');
|
|
16
|
+
|
|
17
|
+
exports.Allocation = damlTypes.assembleInterface(
|
|
18
|
+
'#splice-api-token-allocation-v1:Splice.Api.Token.AllocationV1:Allocation',
|
|
19
|
+
'93c942ae2b4c2ba674fb152fe38473c507bda4e82b4e4c5da55a552a9d8cce1d:Splice.Api.Token.AllocationV1:Allocation',
|
|
20
|
+
function () { return exports.AllocationView; },
|
|
21
|
+
{
|
|
22
|
+
Archive: {
|
|
23
|
+
template: function () { return exports.Allocation; },
|
|
24
|
+
choiceName: 'Archive',
|
|
25
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
26
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
27
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
28
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
29
|
+
},
|
|
30
|
+
Allocation_Withdraw: {
|
|
31
|
+
template: function () { return exports.Allocation; },
|
|
32
|
+
choiceName: 'Allocation_Withdraw',
|
|
33
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Allocation_Withdraw.decoder; }),
|
|
34
|
+
argumentEncode: function (__typed__) { return exports.Allocation_Withdraw.encode(__typed__); },
|
|
35
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.Allocation_WithdrawResult.decoder; }),
|
|
36
|
+
resultEncode: function (__typed__) { return exports.Allocation_WithdrawResult.encode(__typed__); },
|
|
37
|
+
},
|
|
38
|
+
Allocation_Cancel: {
|
|
39
|
+
template: function () { return exports.Allocation; },
|
|
40
|
+
choiceName: 'Allocation_Cancel',
|
|
41
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Allocation_Cancel.decoder; }),
|
|
42
|
+
argumentEncode: function (__typed__) { return exports.Allocation_Cancel.encode(__typed__); },
|
|
43
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.Allocation_CancelResult.decoder; }),
|
|
44
|
+
resultEncode: function (__typed__) { return exports.Allocation_CancelResult.encode(__typed__); },
|
|
45
|
+
},
|
|
46
|
+
Allocation_ExecuteTransfer: {
|
|
47
|
+
template: function () { return exports.Allocation; },
|
|
48
|
+
choiceName: 'Allocation_ExecuteTransfer',
|
|
49
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Allocation_ExecuteTransfer.decoder; }),
|
|
50
|
+
argumentEncode: function (__typed__) { return exports.Allocation_ExecuteTransfer.encode(__typed__); },
|
|
51
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.Allocation_ExecuteTransferResult.decoder; }),
|
|
52
|
+
resultEncode: function (__typed__) { return exports.Allocation_ExecuteTransferResult.encode(__typed__); },
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
exports.Allocation_WithdrawResult = {
|
|
59
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({senderHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
|
|
60
|
+
encode: function (__typed__) {
|
|
61
|
+
return {
|
|
62
|
+
senderHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).encode(__typed__.senderHoldingCids),
|
|
63
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
,
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
exports.Allocation_CancelResult = {
|
|
72
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({senderHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
|
|
73
|
+
encode: function (__typed__) {
|
|
74
|
+
return {
|
|
75
|
+
senderHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).encode(__typed__.senderHoldingCids),
|
|
76
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
,
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
exports.Allocation_ExecuteTransferResult = {
|
|
85
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({senderHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).decoder, receiverHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
|
|
86
|
+
encode: function (__typed__) {
|
|
87
|
+
return {
|
|
88
|
+
senderHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).encode(__typed__.senderHoldingCids),
|
|
89
|
+
receiverHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).encode(__typed__.receiverHoldingCids),
|
|
90
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
,
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
exports.Allocation_Withdraw = {
|
|
99
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.decoder, }); }),
|
|
100
|
+
encode: function (__typed__) {
|
|
101
|
+
return {
|
|
102
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.encode(__typed__.extraArgs),
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
,
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
exports.Allocation_Cancel = {
|
|
111
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.decoder, }); }),
|
|
112
|
+
encode: function (__typed__) {
|
|
113
|
+
return {
|
|
114
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.encode(__typed__.extraArgs),
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
,
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
exports.Allocation_ExecuteTransfer = {
|
|
123
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.decoder, }); }),
|
|
124
|
+
encode: function (__typed__) {
|
|
125
|
+
return {
|
|
126
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.encode(__typed__.extraArgs),
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
,
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
exports.AllocationView = {
|
|
135
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({allocation: exports.AllocationSpecification.decoder, holdingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
|
|
136
|
+
encode: function (__typed__) {
|
|
137
|
+
return {
|
|
138
|
+
allocation: exports.AllocationSpecification.encode(__typed__.allocation),
|
|
139
|
+
holdingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).encode(__typed__.holdingCids),
|
|
140
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
,
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
exports.AllocationSpecification = {
|
|
149
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({settlement: exports.SettlementInfo.decoder, transferLegId: damlTypes.Text.decoder, transferLeg: exports.TransferLeg.decoder, }); }),
|
|
150
|
+
encode: function (__typed__) {
|
|
151
|
+
return {
|
|
152
|
+
settlement: exports.SettlementInfo.encode(__typed__.settlement),
|
|
153
|
+
transferLegId: damlTypes.Text.encode(__typed__.transferLegId),
|
|
154
|
+
transferLeg: exports.TransferLeg.encode(__typed__.transferLeg),
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
,
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
exports.TransferLeg = {
|
|
163
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({sender: damlTypes.Party.decoder, receiver: damlTypes.Party.decoder, amount: damlTypes.Numeric(10).decoder, instrumentId: pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.InstrumentId.decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
|
|
164
|
+
encode: function (__typed__) {
|
|
165
|
+
return {
|
|
166
|
+
sender: damlTypes.Party.encode(__typed__.sender),
|
|
167
|
+
receiver: damlTypes.Party.encode(__typed__.receiver),
|
|
168
|
+
amount: damlTypes.Numeric(10).encode(__typed__.amount),
|
|
169
|
+
instrumentId: pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.InstrumentId.encode(__typed__.instrumentId),
|
|
170
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
,
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
exports.SettlementInfo = {
|
|
179
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({executor: damlTypes.Party.decoder, settlementRef: exports.Reference.decoder, requestedAt: damlTypes.Time.decoder, allocateBefore: damlTypes.Time.decoder, settleBefore: damlTypes.Time.decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
|
|
180
|
+
encode: function (__typed__) {
|
|
181
|
+
return {
|
|
182
|
+
executor: damlTypes.Party.encode(__typed__.executor),
|
|
183
|
+
settlementRef: exports.Reference.encode(__typed__.settlementRef),
|
|
184
|
+
requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
|
|
185
|
+
allocateBefore: damlTypes.Time.encode(__typed__.allocateBefore),
|
|
186
|
+
settleBefore: damlTypes.Time.encode(__typed__.settleBefore),
|
|
187
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
,
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
exports.Reference = {
|
|
196
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({id: damlTypes.Text.decoder, cid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.AnyContract)).decoder), }); }),
|
|
197
|
+
encode: function (__typed__) {
|
|
198
|
+
return {
|
|
199
|
+
id: damlTypes.Text.encode(__typed__.id),
|
|
200
|
+
cid: damlTypes.Optional(damlTypes.ContractId(pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.AnyContract)).encode(__typed__.cid),
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
,
|
|
204
|
+
};
|
|
205
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './module';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
__export(require('./module'));
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// Generated from Splice/Api/Token/HoldingV1.daml
|
|
2
|
+
/* eslint-disable @typescript-eslint/camelcase */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
5
|
+
import * as jtv from '@mojotech/json-type-validation';
|
|
6
|
+
import * as damlTypes from '@daml/types';
|
|
7
|
+
|
|
8
|
+
import * as pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f from '../MetadataV1';
|
|
9
|
+
import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../DA/Internal/Template';
|
|
10
|
+
import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../../DA/Time/Types';
|
|
11
|
+
|
|
12
|
+
export declare type Holding = damlTypes.Interface<'#splice-api-token-holding-v1:Splice.Api.Token.HoldingV1:Holding'> & HoldingView;
|
|
13
|
+
export declare interface HoldingInterface {
|
|
14
|
+
Archive: damlTypes.Choice<Holding, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<Holding, undefined>>;
|
|
15
|
+
}
|
|
16
|
+
export declare const Holding:
|
|
17
|
+
damlTypes.InterfaceCompanion<Holding, undefined, '#splice-api-token-holding-v1:Splice.Api.Token.HoldingV1:Holding'> &
|
|
18
|
+
damlTypes.FromTemplate<Holding, unknown> &
|
|
19
|
+
HoldingInterface;
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
export declare type HoldingView = {
|
|
23
|
+
owner: damlTypes.Party;
|
|
24
|
+
instrumentId: InstrumentId;
|
|
25
|
+
amount: damlTypes.Numeric;
|
|
26
|
+
lock: damlTypes.Optional<Lock>;
|
|
27
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export declare const HoldingView:
|
|
31
|
+
damlTypes.Serializable<HoldingView> & {
|
|
32
|
+
}
|
|
33
|
+
;
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
export declare type Lock = {
|
|
37
|
+
holders: damlTypes.Party[];
|
|
38
|
+
expiresAt: damlTypes.Optional<damlTypes.Time>;
|
|
39
|
+
expiresAfter: damlTypes.Optional<pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime>;
|
|
40
|
+
context: damlTypes.Optional<string>;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export declare const Lock:
|
|
44
|
+
damlTypes.Serializable<Lock> & {
|
|
45
|
+
}
|
|
46
|
+
;
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
export declare type InstrumentId = {
|
|
50
|
+
admin: damlTypes.Party;
|
|
51
|
+
id: string;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export declare const InstrumentId:
|
|
55
|
+
damlTypes.Serializable<InstrumentId> & {
|
|
56
|
+
}
|
|
57
|
+
;
|
|
58
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
9
|
+
var jtv = require('@mojotech/json-type-validation');
|
|
10
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
11
|
+
var damlTypes = require('@daml/types');
|
|
12
|
+
|
|
13
|
+
var pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f = require('../MetadataV1');
|
|
14
|
+
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../DA/Internal/Template');
|
|
15
|
+
var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../../DA/Time/Types');
|
|
16
|
+
|
|
17
|
+
exports.Holding = damlTypes.assembleInterface(
|
|
18
|
+
'#splice-api-token-holding-v1:Splice.Api.Token.HoldingV1:Holding',
|
|
19
|
+
'718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b:Splice.Api.Token.HoldingV1:Holding',
|
|
20
|
+
function () { return exports.HoldingView; },
|
|
21
|
+
{
|
|
22
|
+
Archive: {
|
|
23
|
+
template: function () { return exports.Holding; },
|
|
24
|
+
choiceName: 'Archive',
|
|
25
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
26
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
27
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
28
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
exports.HoldingView = {
|
|
35
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({owner: damlTypes.Party.decoder, instrumentId: exports.InstrumentId.decoder, amount: damlTypes.Numeric(10).decoder, lock: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.Lock).decoder), meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
|
|
36
|
+
encode: function (__typed__) {
|
|
37
|
+
return {
|
|
38
|
+
owner: damlTypes.Party.encode(__typed__.owner),
|
|
39
|
+
instrumentId: exports.InstrumentId.encode(__typed__.instrumentId),
|
|
40
|
+
amount: damlTypes.Numeric(10).encode(__typed__.amount),
|
|
41
|
+
lock: damlTypes.Optional(exports.Lock).encode(__typed__.lock),
|
|
42
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
,
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
exports.Lock = {
|
|
51
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({holders: damlTypes.List(damlTypes.Party).decoder, expiresAt: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), expiresAfter: jtv.Decoder.withDefault(null, damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime).decoder), context: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
|
|
52
|
+
encode: function (__typed__) {
|
|
53
|
+
return {
|
|
54
|
+
holders: damlTypes.List(damlTypes.Party).encode(__typed__.holders),
|
|
55
|
+
expiresAt: damlTypes.Optional(damlTypes.Time).encode(__typed__.expiresAt),
|
|
56
|
+
expiresAfter: damlTypes.Optional(pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime).encode(__typed__.expiresAfter),
|
|
57
|
+
context: damlTypes.Optional(damlTypes.Text).encode(__typed__.context),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
,
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
exports.InstrumentId = {
|
|
66
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({admin: damlTypes.Party.decoder, id: damlTypes.Text.decoder, }); }),
|
|
67
|
+
encode: function (__typed__) {
|
|
68
|
+
return {
|
|
69
|
+
admin: damlTypes.Party.encode(__typed__.admin),
|
|
70
|
+
id: damlTypes.Text.encode(__typed__.id),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
,
|
|
74
|
+
};
|
|
75
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './module';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable-next-line no-unused-vars */
|
|
3
|
+
function __export(m) {
|
|
4
|
+
/* eslint-disable-next-line no-prototype-builtins */
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
__export(require('./module'));
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// Generated from Splice/Api/Token/MetadataV1.daml
|
|
2
|
+
/* eslint-disable @typescript-eslint/camelcase */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
5
|
+
import * as jtv from '@mojotech/json-type-validation';
|
|
6
|
+
import * as damlTypes from '@daml/types';
|
|
7
|
+
|
|
8
|
+
import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../DA/Internal/Template';
|
|
9
|
+
import * as pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 from '../../../../DA/Time/Types';
|
|
10
|
+
|
|
11
|
+
export declare type AnyContract = damlTypes.Interface<'#splice-api-token-metadata-v1:Splice.Api.Token.MetadataV1:AnyContract'> & AnyContractView;
|
|
12
|
+
export declare interface AnyContractInterface {
|
|
13
|
+
Archive: damlTypes.Choice<AnyContract, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<AnyContract, undefined>>;
|
|
14
|
+
}
|
|
15
|
+
export declare const AnyContract:
|
|
16
|
+
damlTypes.InterfaceCompanion<AnyContract, undefined, '#splice-api-token-metadata-v1:Splice.Api.Token.MetadataV1:AnyContract'> &
|
|
17
|
+
damlTypes.FromTemplate<AnyContract, unknown> &
|
|
18
|
+
AnyContractInterface;
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
export declare type ChoiceExecutionMetadata = {
|
|
22
|
+
meta: Metadata;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export declare const ChoiceExecutionMetadata:
|
|
26
|
+
damlTypes.Serializable<ChoiceExecutionMetadata> & {
|
|
27
|
+
}
|
|
28
|
+
;
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export declare type ExtraArgs = {
|
|
32
|
+
context: ChoiceContext;
|
|
33
|
+
meta: Metadata;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export declare const ExtraArgs:
|
|
37
|
+
damlTypes.Serializable<ExtraArgs> & {
|
|
38
|
+
}
|
|
39
|
+
;
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
export declare type Metadata = {
|
|
43
|
+
values: { [key: string]: string };
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export declare const Metadata:
|
|
47
|
+
damlTypes.Serializable<Metadata> & {
|
|
48
|
+
}
|
|
49
|
+
;
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
export declare type ChoiceContext = {
|
|
53
|
+
values: { [key: string]: AnyValue };
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export declare const ChoiceContext:
|
|
57
|
+
damlTypes.Serializable<ChoiceContext> & {
|
|
58
|
+
}
|
|
59
|
+
;
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
export declare type AnyContractView = {
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export declare const AnyContractView:
|
|
66
|
+
damlTypes.Serializable<AnyContractView> & {
|
|
67
|
+
}
|
|
68
|
+
;
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
export declare type AnyValue =
|
|
72
|
+
| { tag: 'AV_Text'; value: string }
|
|
73
|
+
| { tag: 'AV_Int'; value: damlTypes.Int }
|
|
74
|
+
| { tag: 'AV_Decimal'; value: damlTypes.Numeric }
|
|
75
|
+
| { tag: 'AV_Bool'; value: boolean }
|
|
76
|
+
| { tag: 'AV_Date'; value: damlTypes.Date }
|
|
77
|
+
| { tag: 'AV_Time'; value: damlTypes.Time }
|
|
78
|
+
| { tag: 'AV_RelTime'; value: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime }
|
|
79
|
+
| { tag: 'AV_Party'; value: damlTypes.Party }
|
|
80
|
+
| { tag: 'AV_ContractId'; value: damlTypes.ContractId<AnyContract> }
|
|
81
|
+
| { tag: 'AV_List'; value: AnyValue[] }
|
|
82
|
+
| { tag: 'AV_Map'; value: { [key: string]: AnyValue } }
|
|
83
|
+
;
|
|
84
|
+
|
|
85
|
+
export declare const AnyValue:
|
|
86
|
+
damlTypes.Serializable<AnyValue> & {
|
|
87
|
+
}
|
|
88
|
+
;
|
|
89
|
+
|