@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,113 @@
|
|
|
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 pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../../DA/Internal/Template');
|
|
14
|
+
var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../../DA/Time/Types');
|
|
15
|
+
|
|
16
|
+
exports.AnyContract = damlTypes.assembleInterface(
|
|
17
|
+
'#splice-api-token-metadata-v1:Splice.Api.Token.MetadataV1:AnyContract',
|
|
18
|
+
'4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f:Splice.Api.Token.MetadataV1:AnyContract',
|
|
19
|
+
function () { return exports.AnyContractView; },
|
|
20
|
+
{
|
|
21
|
+
Archive: {
|
|
22
|
+
template: function () { return exports.AnyContract; },
|
|
23
|
+
choiceName: 'Archive',
|
|
24
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
25
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
26
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
27
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
exports.ChoiceExecutionMetadata = {
|
|
34
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({meta: exports.Metadata.decoder, }); }),
|
|
35
|
+
encode: function (__typed__) {
|
|
36
|
+
return {
|
|
37
|
+
meta: exports.Metadata.encode(__typed__.meta),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
,
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
exports.ExtraArgs = {
|
|
46
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({context: exports.ChoiceContext.decoder, meta: exports.Metadata.decoder, }); }),
|
|
47
|
+
encode: function (__typed__) {
|
|
48
|
+
return {
|
|
49
|
+
context: exports.ChoiceContext.encode(__typed__.context),
|
|
50
|
+
meta: exports.Metadata.encode(__typed__.meta),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
,
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
exports.Metadata = {
|
|
59
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({values: damlTypes.TextMap(damlTypes.Text).decoder, }); }),
|
|
60
|
+
encode: function (__typed__) {
|
|
61
|
+
return {
|
|
62
|
+
values: damlTypes.TextMap(damlTypes.Text).encode(__typed__.values),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
,
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
exports.ChoiceContext = {
|
|
71
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({values: damlTypes.TextMap(exports.AnyValue).decoder, }); }),
|
|
72
|
+
encode: function (__typed__) {
|
|
73
|
+
return {
|
|
74
|
+
values: damlTypes.TextMap(exports.AnyValue).encode(__typed__.values),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
,
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
exports.AnyContractView = {
|
|
83
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
84
|
+
encode: function (__typed__) {
|
|
85
|
+
return {
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
,
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
exports.AnyValue = {
|
|
94
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('AV_Text'), value: damlTypes.Text.decoder, }), jtv.object({tag: jtv.constant('AV_Int'), value: damlTypes.Int.decoder, }), jtv.object({tag: jtv.constant('AV_Decimal'), value: damlTypes.Numeric(10).decoder, }), jtv.object({tag: jtv.constant('AV_Bool'), value: damlTypes.Bool.decoder, }), jtv.object({tag: jtv.constant('AV_Date'), value: damlTypes.Date.decoder, }), jtv.object({tag: jtv.constant('AV_Time'), value: damlTypes.Time.decoder, }), jtv.object({tag: jtv.constant('AV_RelTime'), value: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.decoder, }), jtv.object({tag: jtv.constant('AV_Party'), value: damlTypes.Party.decoder, }), jtv.object({tag: jtv.constant('AV_ContractId'), value: damlTypes.ContractId(exports.AnyContract).decoder, }), jtv.object({tag: jtv.constant('AV_List'), value: damlTypes.List(exports.AnyValue).decoder, }), jtv.object({tag: jtv.constant('AV_Map'), value: damlTypes.TextMap(exports.AnyValue).decoder, })); }),
|
|
95
|
+
encode: function (__typed__) {
|
|
96
|
+
switch(__typed__.tag) {
|
|
97
|
+
case 'AV_Text': return {tag: __typed__.tag, value: damlTypes.Text.encode(__typed__.value)};
|
|
98
|
+
case 'AV_Int': return {tag: __typed__.tag, value: damlTypes.Int.encode(__typed__.value)};
|
|
99
|
+
case 'AV_Decimal': return {tag: __typed__.tag, value: damlTypes.Numeric(10).encode(__typed__.value)};
|
|
100
|
+
case 'AV_Bool': return {tag: __typed__.tag, value: damlTypes.Bool.encode(__typed__.value)};
|
|
101
|
+
case 'AV_Date': return {tag: __typed__.tag, value: damlTypes.Date.encode(__typed__.value)};
|
|
102
|
+
case 'AV_Time': return {tag: __typed__.tag, value: damlTypes.Time.encode(__typed__.value)};
|
|
103
|
+
case 'AV_RelTime': return {tag: __typed__.tag, value: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(__typed__.value)};
|
|
104
|
+
case 'AV_Party': return {tag: __typed__.tag, value: damlTypes.Party.encode(__typed__.value)};
|
|
105
|
+
case 'AV_ContractId': return {tag: __typed__.tag, value: damlTypes.ContractId(exports.AnyContract).encode(__typed__.value)};
|
|
106
|
+
case 'AV_List': return {tag: __typed__.tag, value: damlTypes.List(exports.AnyValue).encode(__typed__.value)};
|
|
107
|
+
case 'AV_Map': return {tag: __typed__.tag, value: damlTypes.TextMap(exports.AnyValue).encode(__typed__.value)};
|
|
108
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type AnyValue';
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
,
|
|
112
|
+
};
|
|
113
|
+
|
|
@@ -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,200 @@
|
|
|
1
|
+
// Generated from Splice/Api/Token/TransferInstructionV1.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 TransferFactory = damlTypes.Interface<'#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferFactory'> & TransferFactoryView;
|
|
13
|
+
export declare interface TransferFactoryInterface {
|
|
14
|
+
Archive: damlTypes.Choice<TransferFactory, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferFactory, undefined>>;
|
|
15
|
+
TransferFactory_Transfer: damlTypes.Choice<TransferFactory, TransferFactory_Transfer, TransferInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferFactory, undefined>>;
|
|
16
|
+
TransferFactory_PublicFetch: damlTypes.Choice<TransferFactory, TransferFactory_PublicFetch, TransferFactoryView, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferFactory, undefined>>;
|
|
17
|
+
}
|
|
18
|
+
export declare const TransferFactory:
|
|
19
|
+
damlTypes.InterfaceCompanion<TransferFactory, undefined, '#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferFactory'> &
|
|
20
|
+
damlTypes.FromTemplate<TransferFactory, unknown> &
|
|
21
|
+
TransferFactoryInterface;
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
export declare type TransferInstruction = damlTypes.Interface<'#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferInstruction'> & TransferInstructionView;
|
|
25
|
+
export declare interface TransferInstructionInterface {
|
|
26
|
+
Archive: damlTypes.Choice<TransferInstruction, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferInstruction, undefined>>;
|
|
27
|
+
TransferInstruction_Accept: damlTypes.Choice<TransferInstruction, TransferInstruction_Accept, TransferInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferInstruction, undefined>>;
|
|
28
|
+
TransferInstruction_Reject: damlTypes.Choice<TransferInstruction, TransferInstruction_Reject, TransferInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferInstruction, undefined>>;
|
|
29
|
+
TransferInstruction_Withdraw: damlTypes.Choice<TransferInstruction, TransferInstruction_Withdraw, TransferInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferInstruction, undefined>>;
|
|
30
|
+
TransferInstruction_Update: damlTypes.Choice<TransferInstruction, TransferInstruction_Update, TransferInstructionResult, undefined> & damlTypes.ChoiceFrom<damlTypes.InterfaceCompanion<TransferInstruction, undefined>>;
|
|
31
|
+
}
|
|
32
|
+
export declare const TransferInstruction:
|
|
33
|
+
damlTypes.InterfaceCompanion<TransferInstruction, undefined, '#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferInstruction'> &
|
|
34
|
+
damlTypes.FromTemplate<TransferInstruction, unknown> &
|
|
35
|
+
TransferInstructionInterface;
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
export declare type TransferFactoryView = {
|
|
39
|
+
admin: damlTypes.Party;
|
|
40
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export declare const TransferFactoryView:
|
|
44
|
+
damlTypes.Serializable<TransferFactoryView> & {
|
|
45
|
+
}
|
|
46
|
+
;
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
export declare type TransferFactory_PublicFetch = {
|
|
50
|
+
expectedAdmin: damlTypes.Party;
|
|
51
|
+
actor: damlTypes.Party;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export declare const TransferFactory_PublicFetch:
|
|
55
|
+
damlTypes.Serializable<TransferFactory_PublicFetch> & {
|
|
56
|
+
}
|
|
57
|
+
;
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
export declare type TransferFactory_Transfer = {
|
|
61
|
+
expectedAdmin: damlTypes.Party;
|
|
62
|
+
transfer: Transfer;
|
|
63
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export declare const TransferFactory_Transfer:
|
|
67
|
+
damlTypes.Serializable<TransferFactory_Transfer> & {
|
|
68
|
+
}
|
|
69
|
+
;
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
export declare type TransferInstruction_Update = {
|
|
73
|
+
extraActors: damlTypes.Party[];
|
|
74
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export declare const TransferInstruction_Update:
|
|
78
|
+
damlTypes.Serializable<TransferInstruction_Update> & {
|
|
79
|
+
}
|
|
80
|
+
;
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
export declare type TransferInstruction_Withdraw = {
|
|
84
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export declare const TransferInstruction_Withdraw:
|
|
88
|
+
damlTypes.Serializable<TransferInstruction_Withdraw> & {
|
|
89
|
+
}
|
|
90
|
+
;
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
export declare type TransferInstruction_Reject = {
|
|
94
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export declare const TransferInstruction_Reject:
|
|
98
|
+
damlTypes.Serializable<TransferInstruction_Reject> & {
|
|
99
|
+
}
|
|
100
|
+
;
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
export declare type TransferInstruction_Accept = {
|
|
104
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.ExtraArgs;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export declare const TransferInstruction_Accept:
|
|
108
|
+
damlTypes.Serializable<TransferInstruction_Accept> & {
|
|
109
|
+
}
|
|
110
|
+
;
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
export declare type TransferInstructionView = {
|
|
114
|
+
originalInstructionCid: damlTypes.Optional<damlTypes.ContractId<TransferInstruction>>;
|
|
115
|
+
transfer: Transfer;
|
|
116
|
+
status: TransferInstructionStatus;
|
|
117
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export declare const TransferInstructionView:
|
|
121
|
+
damlTypes.Serializable<TransferInstructionView> & {
|
|
122
|
+
}
|
|
123
|
+
;
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
export declare type TransferInstructionStatus =
|
|
127
|
+
| { tag: 'TransferPendingReceiverAcceptance'; value: {} }
|
|
128
|
+
| { tag: 'TransferPendingInternalWorkflow'; value: TransferInstructionStatus.TransferPendingInternalWorkflow }
|
|
129
|
+
;
|
|
130
|
+
|
|
131
|
+
export declare const TransferInstructionStatus:
|
|
132
|
+
damlTypes.Serializable<TransferInstructionStatus> & {
|
|
133
|
+
TransferPendingInternalWorkflow: damlTypes.Serializable<TransferInstructionStatus.TransferPendingInternalWorkflow>;
|
|
134
|
+
}
|
|
135
|
+
;
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
export namespace TransferInstructionStatus {
|
|
139
|
+
type TransferPendingInternalWorkflow = {
|
|
140
|
+
pendingActions: damlTypes.Map<damlTypes.Party, string>;
|
|
141
|
+
};
|
|
142
|
+
} //namespace TransferInstructionStatus
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
export declare type TransferInstructionResult_Output =
|
|
146
|
+
| { tag: 'TransferInstructionResult_Pending'; value: TransferInstructionResult_Output.TransferInstructionResult_Pending }
|
|
147
|
+
| { tag: 'TransferInstructionResult_Completed'; value: TransferInstructionResult_Output.TransferInstructionResult_Completed }
|
|
148
|
+
| { tag: 'TransferInstructionResult_Failed'; value: {} }
|
|
149
|
+
;
|
|
150
|
+
|
|
151
|
+
export declare const TransferInstructionResult_Output:
|
|
152
|
+
damlTypes.Serializable<TransferInstructionResult_Output> & {
|
|
153
|
+
TransferInstructionResult_Pending: damlTypes.Serializable<TransferInstructionResult_Output.TransferInstructionResult_Pending>;
|
|
154
|
+
TransferInstructionResult_Completed: damlTypes.Serializable<TransferInstructionResult_Output.TransferInstructionResult_Completed>;
|
|
155
|
+
}
|
|
156
|
+
;
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
export namespace TransferInstructionResult_Output {
|
|
160
|
+
type TransferInstructionResult_Pending = {
|
|
161
|
+
transferInstructionCid: damlTypes.ContractId<TransferInstruction>;
|
|
162
|
+
};
|
|
163
|
+
} //namespace TransferInstructionResult_Output
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
export namespace TransferInstructionResult_Output {
|
|
167
|
+
type TransferInstructionResult_Completed = {
|
|
168
|
+
receiverHoldingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
169
|
+
};
|
|
170
|
+
} //namespace TransferInstructionResult_Output
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
export declare type TransferInstructionResult = {
|
|
174
|
+
output: TransferInstructionResult_Output;
|
|
175
|
+
senderChangeCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
176
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
export declare const TransferInstructionResult:
|
|
180
|
+
damlTypes.Serializable<TransferInstructionResult> & {
|
|
181
|
+
}
|
|
182
|
+
;
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
export declare type Transfer = {
|
|
186
|
+
sender: damlTypes.Party;
|
|
187
|
+
receiver: damlTypes.Party;
|
|
188
|
+
amount: damlTypes.Numeric;
|
|
189
|
+
instrumentId: pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.InstrumentId;
|
|
190
|
+
requestedAt: damlTypes.Time;
|
|
191
|
+
executeBefore: damlTypes.Time;
|
|
192
|
+
inputHoldingCids: damlTypes.ContractId<pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Splice.Api.Token.HoldingV1.Holding>[];
|
|
193
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Splice.Api.Token.MetadataV1.Metadata;
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
export declare const Transfer:
|
|
197
|
+
damlTypes.Serializable<Transfer> & {
|
|
198
|
+
}
|
|
199
|
+
;
|
|
200
|
+
|
|
@@ -0,0 +1,294 @@
|
|
|
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.TransferFactory = damlTypes.assembleInterface(
|
|
18
|
+
'#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferFactory',
|
|
19
|
+
'55ba4deb0ad4662c4168b39859738a0e91388d252286480c7331b3f71a517281:Splice.Api.Token.TransferInstructionV1:TransferFactory',
|
|
20
|
+
function () { return exports.TransferFactoryView; },
|
|
21
|
+
{
|
|
22
|
+
Archive: {
|
|
23
|
+
template: function () { return exports.TransferFactory; },
|
|
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
|
+
TransferFactory_Transfer: {
|
|
31
|
+
template: function () { return exports.TransferFactory; },
|
|
32
|
+
choiceName: 'TransferFactory_Transfer',
|
|
33
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferFactory_Transfer.decoder; }),
|
|
34
|
+
argumentEncode: function (__typed__) { return exports.TransferFactory_Transfer.encode(__typed__); },
|
|
35
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstructionResult.decoder; }),
|
|
36
|
+
resultEncode: function (__typed__) { return exports.TransferInstructionResult.encode(__typed__); },
|
|
37
|
+
},
|
|
38
|
+
TransferFactory_PublicFetch: {
|
|
39
|
+
template: function () { return exports.TransferFactory; },
|
|
40
|
+
choiceName: 'TransferFactory_PublicFetch',
|
|
41
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferFactory_PublicFetch.decoder; }),
|
|
42
|
+
argumentEncode: function (__typed__) { return exports.TransferFactory_PublicFetch.encode(__typed__); },
|
|
43
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferFactoryView.decoder; }),
|
|
44
|
+
resultEncode: function (__typed__) { return exports.TransferFactoryView.encode(__typed__); },
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
exports.TransferInstruction = damlTypes.assembleInterface(
|
|
50
|
+
'#splice-api-token-transfer-instruction-v1:Splice.Api.Token.TransferInstructionV1:TransferInstruction',
|
|
51
|
+
'55ba4deb0ad4662c4168b39859738a0e91388d252286480c7331b3f71a517281:Splice.Api.Token.TransferInstructionV1:TransferInstruction',
|
|
52
|
+
function () { return exports.TransferInstructionView; },
|
|
53
|
+
{
|
|
54
|
+
Archive: {
|
|
55
|
+
template: function () { return exports.TransferInstruction; },
|
|
56
|
+
choiceName: 'Archive',
|
|
57
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
58
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
59
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
60
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
61
|
+
},
|
|
62
|
+
TransferInstruction_Accept: {
|
|
63
|
+
template: function () { return exports.TransferInstruction; },
|
|
64
|
+
choiceName: 'TransferInstruction_Accept',
|
|
65
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstruction_Accept.decoder; }),
|
|
66
|
+
argumentEncode: function (__typed__) { return exports.TransferInstruction_Accept.encode(__typed__); },
|
|
67
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstructionResult.decoder; }),
|
|
68
|
+
resultEncode: function (__typed__) { return exports.TransferInstructionResult.encode(__typed__); },
|
|
69
|
+
},
|
|
70
|
+
TransferInstruction_Reject: {
|
|
71
|
+
template: function () { return exports.TransferInstruction; },
|
|
72
|
+
choiceName: 'TransferInstruction_Reject',
|
|
73
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstruction_Reject.decoder; }),
|
|
74
|
+
argumentEncode: function (__typed__) { return exports.TransferInstruction_Reject.encode(__typed__); },
|
|
75
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstructionResult.decoder; }),
|
|
76
|
+
resultEncode: function (__typed__) { return exports.TransferInstructionResult.encode(__typed__); },
|
|
77
|
+
},
|
|
78
|
+
TransferInstruction_Withdraw: {
|
|
79
|
+
template: function () { return exports.TransferInstruction; },
|
|
80
|
+
choiceName: 'TransferInstruction_Withdraw',
|
|
81
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstruction_Withdraw.decoder; }),
|
|
82
|
+
argumentEncode: function (__typed__) { return exports.TransferInstruction_Withdraw.encode(__typed__); },
|
|
83
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstructionResult.decoder; }),
|
|
84
|
+
resultEncode: function (__typed__) { return exports.TransferInstructionResult.encode(__typed__); },
|
|
85
|
+
},
|
|
86
|
+
TransferInstruction_Update: {
|
|
87
|
+
template: function () { return exports.TransferInstruction; },
|
|
88
|
+
choiceName: 'TransferInstruction_Update',
|
|
89
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstruction_Update.decoder; }),
|
|
90
|
+
argumentEncode: function (__typed__) { return exports.TransferInstruction_Update.encode(__typed__); },
|
|
91
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.TransferInstructionResult.decoder; }),
|
|
92
|
+
resultEncode: function (__typed__) { return exports.TransferInstructionResult.encode(__typed__); },
|
|
93
|
+
},
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
exports.TransferFactoryView = {
|
|
99
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({admin: damlTypes.Party.decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
|
|
100
|
+
encode: function (__typed__) {
|
|
101
|
+
return {
|
|
102
|
+
admin: damlTypes.Party.encode(__typed__.admin),
|
|
103
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
,
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
exports.TransferFactory_PublicFetch = {
|
|
112
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({expectedAdmin: damlTypes.Party.decoder, actor: damlTypes.Party.decoder, }); }),
|
|
113
|
+
encode: function (__typed__) {
|
|
114
|
+
return {
|
|
115
|
+
expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
|
|
116
|
+
actor: damlTypes.Party.encode(__typed__.actor),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
,
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
exports.TransferFactory_Transfer = {
|
|
125
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({expectedAdmin: damlTypes.Party.decoder, transfer: exports.Transfer.decoder, extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.decoder, }); }),
|
|
126
|
+
encode: function (__typed__) {
|
|
127
|
+
return {
|
|
128
|
+
expectedAdmin: damlTypes.Party.encode(__typed__.expectedAdmin),
|
|
129
|
+
transfer: exports.Transfer.encode(__typed__.transfer),
|
|
130
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.encode(__typed__.extraArgs),
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
,
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
exports.TransferInstruction_Update = {
|
|
139
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraActors: damlTypes.List(damlTypes.Party).decoder, extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.decoder, }); }),
|
|
140
|
+
encode: function (__typed__) {
|
|
141
|
+
return {
|
|
142
|
+
extraActors: damlTypes.List(damlTypes.Party).encode(__typed__.extraActors),
|
|
143
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.encode(__typed__.extraArgs),
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
,
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
exports.TransferInstruction_Withdraw = {
|
|
152
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.decoder, }); }),
|
|
153
|
+
encode: function (__typed__) {
|
|
154
|
+
return {
|
|
155
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.encode(__typed__.extraArgs),
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
,
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
exports.TransferInstruction_Reject = {
|
|
164
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.decoder, }); }),
|
|
165
|
+
encode: function (__typed__) {
|
|
166
|
+
return {
|
|
167
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.encode(__typed__.extraArgs),
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
,
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
exports.TransferInstruction_Accept = {
|
|
176
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.decoder, }); }),
|
|
177
|
+
encode: function (__typed__) {
|
|
178
|
+
return {
|
|
179
|
+
extraArgs: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.ExtraArgs.encode(__typed__.extraArgs),
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
,
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
exports.TransferInstructionView = {
|
|
188
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({originalInstructionCid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(exports.TransferInstruction)).decoder), transfer: exports.Transfer.decoder, status: exports.TransferInstructionStatus.decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
|
|
189
|
+
encode: function (__typed__) {
|
|
190
|
+
return {
|
|
191
|
+
originalInstructionCid: damlTypes.Optional(damlTypes.ContractId(exports.TransferInstruction)).encode(__typed__.originalInstructionCid),
|
|
192
|
+
transfer: exports.Transfer.encode(__typed__.transfer),
|
|
193
|
+
status: exports.TransferInstructionStatus.encode(__typed__.status),
|
|
194
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
,
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
exports.TransferInstructionStatus = {
|
|
203
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('TransferPendingReceiverAcceptance'), value: damlTypes.Unit.decoder, }), jtv.object({tag: jtv.constant('TransferPendingInternalWorkflow'), value: exports.TransferInstructionStatus.TransferPendingInternalWorkflow.decoder, })); }),
|
|
204
|
+
encode: function (__typed__) {
|
|
205
|
+
switch(__typed__.tag) {
|
|
206
|
+
case 'TransferPendingReceiverAcceptance': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
|
|
207
|
+
case 'TransferPendingInternalWorkflow': return {tag: __typed__.tag, value: exports.TransferInstructionStatus.TransferPendingInternalWorkflow.encode(__typed__.value)};
|
|
208
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type TransferInstructionStatus';
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
,
|
|
212
|
+
TransferPendingInternalWorkflow:({
|
|
213
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text).decoder, }); }),
|
|
214
|
+
encode: function (__typed__) {
|
|
215
|
+
return {
|
|
216
|
+
pendingActions: damlTypes.Map(damlTypes.Party, damlTypes.Text).encode(__typed__.pendingActions),
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
,
|
|
220
|
+
}),
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
exports.TransferInstructionResult_Output = {
|
|
228
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.object({tag: jtv.constant('TransferInstructionResult_Pending'), value: exports.TransferInstructionResult_Output.TransferInstructionResult_Pending.decoder, }), jtv.object({tag: jtv.constant('TransferInstructionResult_Completed'), value: exports.TransferInstructionResult_Output.TransferInstructionResult_Completed.decoder, }), jtv.object({tag: jtv.constant('TransferInstructionResult_Failed'), value: damlTypes.Unit.decoder, })); }),
|
|
229
|
+
encode: function (__typed__) {
|
|
230
|
+
switch(__typed__.tag) {
|
|
231
|
+
case 'TransferInstructionResult_Pending': return {tag: __typed__.tag, value: exports.TransferInstructionResult_Output.TransferInstructionResult_Pending.encode(__typed__.value)};
|
|
232
|
+
case 'TransferInstructionResult_Completed': return {tag: __typed__.tag, value: exports.TransferInstructionResult_Output.TransferInstructionResult_Completed.encode(__typed__.value)};
|
|
233
|
+
case 'TransferInstructionResult_Failed': return {tag: __typed__.tag, value: damlTypes.Unit.encode(__typed__.value)};
|
|
234
|
+
default: throw 'unrecognized type tag: ' + __typed__.tag + ' while serializing a value of type TransferInstructionResult_Output';
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
,
|
|
238
|
+
TransferInstructionResult_Pending:({
|
|
239
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({transferInstructionCid: damlTypes.ContractId(exports.TransferInstruction).decoder, }); }),
|
|
240
|
+
encode: function (__typed__) {
|
|
241
|
+
return {
|
|
242
|
+
transferInstructionCid: damlTypes.ContractId(exports.TransferInstruction).encode(__typed__.transferInstructionCid),
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
,
|
|
246
|
+
}),
|
|
247
|
+
TransferInstructionResult_Completed:({
|
|
248
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({receiverHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).decoder, }); }),
|
|
249
|
+
encode: function (__typed__) {
|
|
250
|
+
return {
|
|
251
|
+
receiverHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).encode(__typed__.receiverHoldingCids),
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
,
|
|
255
|
+
}),
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
exports.TransferInstructionResult = {
|
|
265
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({output: exports.TransferInstructionResult_Output.decoder, senderChangeCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
|
|
266
|
+
encode: function (__typed__) {
|
|
267
|
+
return {
|
|
268
|
+
output: exports.TransferInstructionResult_Output.encode(__typed__.output),
|
|
269
|
+
senderChangeCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).encode(__typed__.senderChangeCids),
|
|
270
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
,
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
exports.Transfer = {
|
|
279
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({sender: damlTypes.Party.decoder, receiver: damlTypes.Party.decoder, amount: damlTypes.Numeric(10).decoder, instrumentId: pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.InstrumentId.decoder, requestedAt: damlTypes.Time.decoder, executeBefore: damlTypes.Time.decoder, inputHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).decoder, meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.decoder, }); }),
|
|
280
|
+
encode: function (__typed__) {
|
|
281
|
+
return {
|
|
282
|
+
sender: damlTypes.Party.encode(__typed__.sender),
|
|
283
|
+
receiver: damlTypes.Party.encode(__typed__.receiver),
|
|
284
|
+
amount: damlTypes.Numeric(10).encode(__typed__.amount),
|
|
285
|
+
instrumentId: pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.InstrumentId.encode(__typed__.instrumentId),
|
|
286
|
+
requestedAt: damlTypes.Time.encode(__typed__.requestedAt),
|
|
287
|
+
executeBefore: damlTypes.Time.encode(__typed__.executeBefore),
|
|
288
|
+
inputHoldingCids: damlTypes.List(damlTypes.ContractId(pkg718a0f77e505a8de22f188bd4c87fe74101274e9d4cb1bfac7d09aec7158d35b.Holding)).encode(__typed__.inputHoldingCids),
|
|
289
|
+
meta: pkg4ded6b668cb3b64f7a88a30874cd41c75829f5e064b3fbbadf41ec7e8363354f.Metadata.encode(__typed__.meta),
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
,
|
|
293
|
+
};
|
|
294
|
+
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * as AllocationInstructionV1 from './AllocationInstructionV1';
|
|
2
|
+
export * as AllocationV1 from './AllocationV1';
|
|
3
|
+
export * as HoldingV1 from './HoldingV1';
|
|
4
|
+
export * as MetadataV1 from './MetadataV1';
|
|
5
|
+
export * as TransferInstructionV1 from './TransferInstructionV1';
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
var AllocationInstructionV1 = require('./AllocationInstructionV1');
|
|
9
|
+
exports.AllocationInstructionV1 = AllocationInstructionV1;
|
|
10
|
+
var AllocationV1 = require('./AllocationV1');
|
|
11
|
+
exports.AllocationV1 = AllocationV1;
|
|
12
|
+
var HoldingV1 = require('./HoldingV1');
|
|
13
|
+
exports.HoldingV1 = HoldingV1;
|
|
14
|
+
var MetadataV1 = require('./MetadataV1');
|
|
15
|
+
exports.MetadataV1 = MetadataV1;
|
|
16
|
+
var TransferInstructionV1 = require('./TransferInstructionV1');
|
|
17
|
+
exports.TransferInstructionV1 = TransferInstructionV1;
|
package/lib/Splice/Api/index.js
CHANGED