@fairmint/open-captable-protocol-daml-js 0.2.144 → 0.2.147
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/OpenCapTable-v34/.daml/dist/OpenCapTable-v34-0.0.1.dar +0 -0
- package/generated/ocp-factory-contract-id.json +4 -8
- package/lib/CantonPayments/Airdrop/Airdrop/module.js +2 -2
- package/lib/CantonPayments/Airdrop/AirdropFactory/module.js +2 -2
- package/lib/CantonPayments/Airdrop/PersonalAirdrop/module.js +2 -2
- package/lib/CantonPayments/Airdrop/SimpleAirdrop/module.js +2 -2
- package/lib/CantonPayments/PaymentStream/ActivePaymentStream/module.js +4 -4
- package/lib/CantonPayments/PaymentStream/PartyMigrationProposal/module.js +2 -2
- package/lib/CantonPayments/PaymentStream/PaymentStreamFactory/module.js +2 -2
- package/lib/CantonPayments/PaymentStream/ProposedPaymentStream/module.js +2 -2
- package/lib/DA/Internal/index.d.ts +1 -1
- package/lib/DA/index.d.ts +4 -1
- package/lib/DA/index.js +6 -0
- package/lib/Fairmint/OpenCapTable/CapTable/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/IssuerAuthorization/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleAcceptance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleCancellation/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleConversion/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleIssuance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleRetraction/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/ConvertibleTransfer/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/Document/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationAcceptance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationCancellation/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationExercise/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationIssuance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRelease/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRepricing/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationRetraction/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/EquityCompensationTransfer/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/Issuer/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/IssuerAuthorizedSharesAdjustment/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/Stakeholder/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StakeholderRelationshipChangeEvent/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StakeholderStatusChangeEvent/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockAcceptance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockCancellation/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockClass/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockClassAuthorizedSharesAdjustment/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockClassConversionRatioAdjustment/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockClassSplit/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockConsolidation/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockConversion/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockIssuance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockLegendTemplate/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockPlan/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockPlanPoolAdjustment/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockPlanReturnToPool/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockReissuance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockRepurchase/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockRetraction/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/StockTransfer/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/Valuation/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/VestingAcceleration/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/VestingEvent/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/VestingStart/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/VestingTerms/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/WarrantAcceptance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/WarrantCancellation/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/WarrantExercise/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/WarrantIssuance/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/WarrantRetraction/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OCF/WarrantTransfer/module.js +2 -2
- package/lib/Fairmint/OpenCapTable/OcpFactory/module.js +2 -2
- package/lib/Fairmint/OpenCapTableReports/CompanyValuationReport/module.js +2 -2
- package/lib/Fairmint/OpenCapTableReports/ReportsFactory/module.js +2 -2
- package/lib/Nft/Api/V1/Nft/index.d.ts +1 -0
- package/lib/Nft/Api/V1/Nft/index.js +8 -0
- package/lib/Nft/Api/V1/Nft/module.d.ts +20 -0
- package/lib/Nft/Api/V1/Nft/module.js +31 -0
- package/lib/Nft/Api/V1/Types/index.d.ts +1 -0
- package/lib/Nft/Api/V1/Types/index.js +8 -0
- package/lib/Nft/Api/V1/Types/module.d.ts +179 -0
- package/lib/Nft/Api/V1/Types/module.js +218 -0
- package/lib/Nft/Api/V1/index.d.ts +4 -0
- package/lib/Nft/Api/V1/index.js +11 -0
- package/lib/Nft/Api/index.d.ts +2 -0
- package/lib/Nft/Api/index.js +9 -0
- package/lib/Nft/Reference/V1/NftAsset/index.d.ts +1 -0
- package/lib/Nft/Reference/V1/NftAsset/index.js +8 -0
- package/lib/Nft/Reference/V1/NftAsset/module.d.ts +105 -0
- package/lib/Nft/Reference/V1/NftAsset/module.js +183 -0
- package/lib/Nft/Reference/V1/NftRegistry/index.d.ts +1 -0
- package/lib/Nft/Reference/V1/NftRegistry/index.js +8 -0
- package/lib/Nft/Reference/V1/NftRegistry/module.d.ts +97 -0
- package/lib/Nft/Reference/V1/NftRegistry/module.js +150 -0
- package/lib/Nft/Reference/V1/ReceiveAuthorization/index.d.ts +1 -0
- package/lib/Nft/Reference/V1/ReceiveAuthorization/index.js +8 -0
- package/lib/Nft/Reference/V1/ReceiveAuthorization/module.d.ts +41 -0
- package/lib/Nft/Reference/V1/ReceiveAuthorization/module.js +68 -0
- package/lib/Nft/Reference/V1/index.d.ts +6 -0
- package/lib/Nft/Reference/V1/index.js +13 -0
- package/lib/Nft/Reference/index.d.ts +2 -0
- package/lib/Nft/Reference/index.js +9 -0
- package/lib/Nft/index.d.ts +2 -0
- package/lib/Nft/index.js +6 -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 +2 -1
- package/lib/Splice/Api/index.js +2 -0
- package/lib/Splice/index.d.ts +16 -30
- package/lib/Splice/index.js +2 -0
- package/lib/index.d.ts +2 -1
- package/lib/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 +35 -30
- package/types/ocp-factory-contract-id-json.d.ts +12 -0
- package/types/paymentStreams-factory-contract-id-json.d.ts +24 -0
- package/types/reports-factory-contract-id-json.d.ts +12 -0
- package/generated/ocp-factory-contract-id.json.d.ts +0 -11
- package/generated/paymentStreams-factory-contract-id.json.d.ts +0 -23
- package/generated/reports-factory-contract-id.json.d.ts +0 -11
|
@@ -0,0 +1,183 @@
|
|
|
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 pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d = require('../../../../nft-api-v01-package-namespace.js');
|
|
15
|
+
|
|
16
|
+
var Nft_Reference_V1_ReceiveAuthorization = require('../../../../Nft/Reference/V1/ReceiveAuthorization/module');
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
exports.Expire = {
|
|
20
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, }); }),
|
|
21
|
+
encode: function (__typed__) {
|
|
22
|
+
return {
|
|
23
|
+
actor: damlTypes.Party.encode(__typed__.actor),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
,
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
exports.Withdraw = {
|
|
32
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
33
|
+
encode: function (__typed__) {
|
|
34
|
+
return {
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
,
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
exports.Reject = {
|
|
43
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
44
|
+
encode: function (__typed__) {
|
|
45
|
+
return {
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
,
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
exports.Accept = {
|
|
54
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
55
|
+
encode: function (__typed__) {
|
|
56
|
+
return {
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
,
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
exports.NftTransferOffer = damlTypes.assembleTemplate(
|
|
65
|
+
{
|
|
66
|
+
templateId: '#NftReference-v01:Nft.Reference.V1.NftAsset:NftTransferOffer',
|
|
67
|
+
templateIdWithPackageId: '26b30a7f62594fcc31537552d9ca5ca633ea70228c74c9cd588d1cf75303d529:Nft.Reference.V1.NftAsset:NftTransferOffer',
|
|
68
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
69
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
70
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({registry_authority: damlTypes.Party.decoder, operator: damlTypes.Party.decoder, sender: damlTypes.Party.decoder, registration: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.NftRegistration.decoder, transfer_offer: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.TransferOfferTerms.decoder, }); }),
|
|
71
|
+
encode: function (__typed__) {
|
|
72
|
+
return {
|
|
73
|
+
registry_authority: damlTypes.Party.encode(__typed__.registry_authority),
|
|
74
|
+
operator: damlTypes.Party.encode(__typed__.operator),
|
|
75
|
+
sender: damlTypes.Party.encode(__typed__.sender),
|
|
76
|
+
registration: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.NftRegistration.encode(__typed__.registration),
|
|
77
|
+
transfer_offer: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.TransferOfferTerms.encode(__typed__.transfer_offer),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
,
|
|
81
|
+
Accept: {
|
|
82
|
+
template: function () { return exports.NftTransferOffer; },
|
|
83
|
+
choiceName: 'Accept',
|
|
84
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Accept.decoder; }),
|
|
85
|
+
argumentEncode: function (__typed__) { return exports.Accept.encode(__typed__); },
|
|
86
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Nft.Nft).decoder; }),
|
|
87
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Nft.Nft).encode(__typed__); },
|
|
88
|
+
},
|
|
89
|
+
Reject: {
|
|
90
|
+
template: function () { return exports.NftTransferOffer; },
|
|
91
|
+
choiceName: 'Reject',
|
|
92
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Reject.decoder; }),
|
|
93
|
+
argumentEncode: function (__typed__) { return exports.Reject.encode(__typed__); },
|
|
94
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Nft.Nft).decoder; }),
|
|
95
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Nft.Nft).encode(__typed__); },
|
|
96
|
+
},
|
|
97
|
+
Withdraw: {
|
|
98
|
+
template: function () { return exports.NftTransferOffer; },
|
|
99
|
+
choiceName: 'Withdraw',
|
|
100
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Withdraw.decoder; }),
|
|
101
|
+
argumentEncode: function (__typed__) { return exports.Withdraw.encode(__typed__); },
|
|
102
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Nft.Nft).decoder; }),
|
|
103
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Nft.Nft).encode(__typed__); },
|
|
104
|
+
},
|
|
105
|
+
Expire: {
|
|
106
|
+
template: function () { return exports.NftTransferOffer; },
|
|
107
|
+
choiceName: 'Expire',
|
|
108
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Expire.decoder; }),
|
|
109
|
+
argumentEncode: function (__typed__) { return exports.Expire.encode(__typed__); },
|
|
110
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Nft.Nft).decoder; }),
|
|
111
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Nft.Nft).encode(__typed__); },
|
|
112
|
+
},
|
|
113
|
+
Archive: {
|
|
114
|
+
template: function () { return exports.NftTransferOffer; },
|
|
115
|
+
choiceName: 'Archive',
|
|
116
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
117
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
118
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
119
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
120
|
+
},
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
, pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Nft.Nft
|
|
124
|
+
);
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
damlTypes.registerTemplate(exports.NftTransferOffer, ['26b30a7f62594fcc31537552d9ca5ca633ea70228c74c9cd588d1cf75303d529', '#NftReference-v01']);
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
exports.OfferTransfer = {
|
|
132
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({transfer_offer: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.TransferOfferTerms.decoder, receive_authorization_cid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(Nft_Reference_V1_ReceiveAuthorization.StandingReceiveAuthorization)).decoder), }); }),
|
|
133
|
+
encode: function (__typed__) {
|
|
134
|
+
return {
|
|
135
|
+
transfer_offer: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.TransferOfferTerms.encode(__typed__.transfer_offer),
|
|
136
|
+
receive_authorization_cid: damlTypes.Optional(damlTypes.ContractId(Nft_Reference_V1_ReceiveAuthorization.StandingReceiveAuthorization)).encode(__typed__.receive_authorization_cid),
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
,
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
exports.NftAsset = damlTypes.assembleTemplate(
|
|
145
|
+
{
|
|
146
|
+
templateId: '#NftReference-v01:Nft.Reference.V1.NftAsset:NftAsset',
|
|
147
|
+
templateIdWithPackageId: '26b30a7f62594fcc31537552d9ca5ca633ea70228c74c9cd588d1cf75303d529:Nft.Reference.V1.NftAsset:NftAsset',
|
|
148
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
149
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
150
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({registry_authority: damlTypes.Party.decoder, operator: damlTypes.Party.decoder, holder: damlTypes.Party.decoder, registration: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.NftRegistration.decoder, }); }),
|
|
151
|
+
encode: function (__typed__) {
|
|
152
|
+
return {
|
|
153
|
+
registry_authority: damlTypes.Party.encode(__typed__.registry_authority),
|
|
154
|
+
operator: damlTypes.Party.encode(__typed__.operator),
|
|
155
|
+
holder: damlTypes.Party.encode(__typed__.holder),
|
|
156
|
+
registration: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.NftRegistration.encode(__typed__.registration),
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
,
|
|
160
|
+
OfferTransfer: {
|
|
161
|
+
template: function () { return exports.NftAsset; },
|
|
162
|
+
choiceName: 'OfferTransfer',
|
|
163
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.OfferTransfer.decoder; }),
|
|
164
|
+
argumentEncode: function (__typed__) { return exports.OfferTransfer.encode(__typed__); },
|
|
165
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Nft.Nft).decoder; }),
|
|
166
|
+
resultEncode: function (__typed__) { return damlTypes.ContractId(pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Nft.Nft).encode(__typed__); },
|
|
167
|
+
},
|
|
168
|
+
Archive: {
|
|
169
|
+
template: function () { return exports.NftAsset; },
|
|
170
|
+
choiceName: 'Archive',
|
|
171
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
172
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
173
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
174
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
175
|
+
},
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
, pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Nft.Nft
|
|
179
|
+
);
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
damlTypes.registerTemplate(exports.NftAsset, ['26b30a7f62594fcc31537552d9ca5ca633ea70228c74c9cd588d1cf75303d529', '#NftReference-v01']);
|
|
183
|
+
|
|
@@ -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,97 @@
|
|
|
1
|
+
// Generated from Nft/Reference/V1/NftRegistry.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 pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d from '../../../../nft-api-v01-package-namespace.js';
|
|
10
|
+
|
|
11
|
+
export declare type Mint = {
|
|
12
|
+
holder: damlTypes.Party;
|
|
13
|
+
registration: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.NftRegistration;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export declare const Mint:
|
|
17
|
+
damlTypes.Serializable<Mint> & {
|
|
18
|
+
}
|
|
19
|
+
;
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
export declare type NftRegistry = {
|
|
23
|
+
registry_authority: damlTypes.Party;
|
|
24
|
+
operator: damlTypes.Party;
|
|
25
|
+
registry: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.RegistryIdentity;
|
|
26
|
+
collection_scope: damlTypes.Optional<pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.CollectionIdentity>;
|
|
27
|
+
collection_registries: damlTypes.Map<pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.CollectionIdentity, damlTypes.ContractId<CollectionRegistry>>;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export declare interface NftRegistryInterface {
|
|
31
|
+
Mint: damlTypes.Choice<NftRegistry, Mint, MintResult, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<NftRegistry, undefined>>;
|
|
32
|
+
Archive: damlTypes.Choice<NftRegistry, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<NftRegistry, undefined>>;
|
|
33
|
+
}
|
|
34
|
+
export declare const NftRegistry:
|
|
35
|
+
damlTypes.Template<NftRegistry, undefined, '#NftReference-v01:Nft.Reference.V1.NftRegistry:NftRegistry'> &
|
|
36
|
+
damlTypes.ToInterface<NftRegistry, never> &
|
|
37
|
+
NftRegistryInterface;
|
|
38
|
+
|
|
39
|
+
export declare namespace NftRegistry {
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
export declare type MintInCollection = {
|
|
45
|
+
holder: damlTypes.Party;
|
|
46
|
+
registration: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.NftRegistration;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export declare const MintInCollection:
|
|
50
|
+
damlTypes.Serializable<MintInCollection> & {
|
|
51
|
+
}
|
|
52
|
+
;
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
export declare type CollectionRegistry = {
|
|
56
|
+
registry_authority: damlTypes.Party;
|
|
57
|
+
operator: damlTypes.Party;
|
|
58
|
+
registry: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.RegistryIdentity;
|
|
59
|
+
collection: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.CollectionIdentity;
|
|
60
|
+
registered_tokens: damlTypes.Map<string, {}>;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export declare interface CollectionRegistryInterface {
|
|
64
|
+
MintInCollection: damlTypes.Choice<CollectionRegistry, MintInCollection, CollectionMintResult, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<CollectionRegistry, undefined>>;
|
|
65
|
+
Archive: damlTypes.Choice<CollectionRegistry, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<CollectionRegistry, undefined>>;
|
|
66
|
+
}
|
|
67
|
+
export declare const CollectionRegistry:
|
|
68
|
+
damlTypes.Template<CollectionRegistry, undefined, '#NftReference-v01:Nft.Reference.V1.NftRegistry:CollectionRegistry'> &
|
|
69
|
+
damlTypes.ToInterface<CollectionRegistry, never> &
|
|
70
|
+
CollectionRegistryInterface;
|
|
71
|
+
|
|
72
|
+
export declare namespace CollectionRegistry {
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
export declare type CollectionMintResult = {
|
|
78
|
+
collection_registry_cid: damlTypes.ContractId<CollectionRegistry>;
|
|
79
|
+
nft_cid: damlTypes.ContractId<pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Nft.Nft>;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export declare const CollectionMintResult:
|
|
83
|
+
damlTypes.Serializable<CollectionMintResult> & {
|
|
84
|
+
}
|
|
85
|
+
;
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
export declare type MintResult = {
|
|
89
|
+
registry_cid: damlTypes.ContractId<NftRegistry>;
|
|
90
|
+
nft_cid: damlTypes.ContractId<pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Nft.Nft>;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export declare const MintResult:
|
|
94
|
+
damlTypes.Serializable<MintResult> & {
|
|
95
|
+
}
|
|
96
|
+
;
|
|
97
|
+
|
|
@@ -0,0 +1,150 @@
|
|
|
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 pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d = require('../../../../nft-api-v01-package-namespace.js');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
exports.Mint = {
|
|
18
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({holder: damlTypes.Party.decoder, registration: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.NftRegistration.decoder, }); }),
|
|
19
|
+
encode: function (__typed__) {
|
|
20
|
+
return {
|
|
21
|
+
holder: damlTypes.Party.encode(__typed__.holder),
|
|
22
|
+
registration: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.NftRegistration.encode(__typed__.registration),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
,
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
exports.NftRegistry = damlTypes.assembleTemplate(
|
|
31
|
+
{
|
|
32
|
+
templateId: '#NftReference-v01:Nft.Reference.V1.NftRegistry:NftRegistry',
|
|
33
|
+
templateIdWithPackageId: '26b30a7f62594fcc31537552d9ca5ca633ea70228c74c9cd588d1cf75303d529:Nft.Reference.V1.NftRegistry:NftRegistry',
|
|
34
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
35
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
36
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({registry_authority: damlTypes.Party.decoder, operator: damlTypes.Party.decoder, registry: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.RegistryIdentity.decoder, collection_scope: jtv.Decoder.withDefault(null, damlTypes.Optional(pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.CollectionIdentity).decoder), collection_registries: damlTypes.Map(pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.CollectionIdentity, damlTypes.ContractId(exports.CollectionRegistry)).decoder, }); }),
|
|
37
|
+
encode: function (__typed__) {
|
|
38
|
+
return {
|
|
39
|
+
registry_authority: damlTypes.Party.encode(__typed__.registry_authority),
|
|
40
|
+
operator: damlTypes.Party.encode(__typed__.operator),
|
|
41
|
+
registry: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.RegistryIdentity.encode(__typed__.registry),
|
|
42
|
+
collection_scope: damlTypes.Optional(pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.CollectionIdentity).encode(__typed__.collection_scope),
|
|
43
|
+
collection_registries: damlTypes.Map(pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.CollectionIdentity, damlTypes.ContractId(exports.CollectionRegistry)).encode(__typed__.collection_registries),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
,
|
|
47
|
+
Mint: {
|
|
48
|
+
template: function () { return exports.NftRegistry; },
|
|
49
|
+
choiceName: 'Mint',
|
|
50
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Mint.decoder; }),
|
|
51
|
+
argumentEncode: function (__typed__) { return exports.Mint.encode(__typed__); },
|
|
52
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.MintResult.decoder; }),
|
|
53
|
+
resultEncode: function (__typed__) { return exports.MintResult.encode(__typed__); },
|
|
54
|
+
},
|
|
55
|
+
Archive: {
|
|
56
|
+
template: function () { return exports.NftRegistry; },
|
|
57
|
+
choiceName: 'Archive',
|
|
58
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
59
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
60
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
61
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
62
|
+
},
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
damlTypes.registerTemplate(exports.NftRegistry, ['26b30a7f62594fcc31537552d9ca5ca633ea70228c74c9cd588d1cf75303d529', '#NftReference-v01']);
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
exports.MintInCollection = {
|
|
73
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({holder: damlTypes.Party.decoder, registration: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.NftRegistration.decoder, }); }),
|
|
74
|
+
encode: function (__typed__) {
|
|
75
|
+
return {
|
|
76
|
+
holder: damlTypes.Party.encode(__typed__.holder),
|
|
77
|
+
registration: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.NftRegistration.encode(__typed__.registration),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
,
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
exports.CollectionRegistry = damlTypes.assembleTemplate(
|
|
86
|
+
{
|
|
87
|
+
templateId: '#NftReference-v01:Nft.Reference.V1.NftRegistry:CollectionRegistry',
|
|
88
|
+
templateIdWithPackageId: '26b30a7f62594fcc31537552d9ca5ca633ea70228c74c9cd588d1cf75303d529:Nft.Reference.V1.NftRegistry:CollectionRegistry',
|
|
89
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
90
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
91
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({registry_authority: damlTypes.Party.decoder, operator: damlTypes.Party.decoder, registry: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.RegistryIdentity.decoder, collection: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.CollectionIdentity.decoder, registered_tokens: damlTypes.Map(damlTypes.Text, damlTypes.Unit).decoder, }); }),
|
|
92
|
+
encode: function (__typed__) {
|
|
93
|
+
return {
|
|
94
|
+
registry_authority: damlTypes.Party.encode(__typed__.registry_authority),
|
|
95
|
+
operator: damlTypes.Party.encode(__typed__.operator),
|
|
96
|
+
registry: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.RegistryIdentity.encode(__typed__.registry),
|
|
97
|
+
collection: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.CollectionIdentity.encode(__typed__.collection),
|
|
98
|
+
registered_tokens: damlTypes.Map(damlTypes.Text, damlTypes.Unit).encode(__typed__.registered_tokens),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
,
|
|
102
|
+
MintInCollection: {
|
|
103
|
+
template: function () { return exports.CollectionRegistry; },
|
|
104
|
+
choiceName: 'MintInCollection',
|
|
105
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.MintInCollection.decoder; }),
|
|
106
|
+
argumentEncode: function (__typed__) { return exports.MintInCollection.encode(__typed__); },
|
|
107
|
+
resultDecoder: damlTypes.lazyMemo(function () { return exports.CollectionMintResult.decoder; }),
|
|
108
|
+
resultEncode: function (__typed__) { return exports.CollectionMintResult.encode(__typed__); },
|
|
109
|
+
},
|
|
110
|
+
Archive: {
|
|
111
|
+
template: function () { return exports.CollectionRegistry; },
|
|
112
|
+
choiceName: 'Archive',
|
|
113
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
114
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
115
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
116
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
117
|
+
},
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
);
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
damlTypes.registerTemplate(exports.CollectionRegistry, ['26b30a7f62594fcc31537552d9ca5ca633ea70228c74c9cd588d1cf75303d529', '#NftReference-v01']);
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
exports.CollectionMintResult = {
|
|
128
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({collection_registry_cid: damlTypes.ContractId(exports.CollectionRegistry).decoder, nft_cid: damlTypes.ContractId(pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Nft.Nft).decoder, }); }),
|
|
129
|
+
encode: function (__typed__) {
|
|
130
|
+
return {
|
|
131
|
+
collection_registry_cid: damlTypes.ContractId(exports.CollectionRegistry).encode(__typed__.collection_registry_cid),
|
|
132
|
+
nft_cid: damlTypes.ContractId(pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Nft.Nft).encode(__typed__.nft_cid),
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
,
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
exports.MintResult = {
|
|
141
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({registry_cid: damlTypes.ContractId(exports.NftRegistry).decoder, nft_cid: damlTypes.ContractId(pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Nft.Nft).decoder, }); }),
|
|
142
|
+
encode: function (__typed__) {
|
|
143
|
+
return {
|
|
144
|
+
registry_cid: damlTypes.ContractId(exports.NftRegistry).encode(__typed__.registry_cid),
|
|
145
|
+
nft_cid: damlTypes.ContractId(pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Nft.Nft).encode(__typed__.nft_cid),
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
,
|
|
149
|
+
};
|
|
150
|
+
|
|
@@ -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,41 @@
|
|
|
1
|
+
// Generated from Nft/Reference/V1/ReceiveAuthorization.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 pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d from '../../../../nft-api-v01-package-namespace.js';
|
|
10
|
+
|
|
11
|
+
export declare type Revoke = {
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export declare const Revoke:
|
|
15
|
+
damlTypes.Serializable<Revoke> & {
|
|
16
|
+
}
|
|
17
|
+
;
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
export declare type StandingReceiveAuthorization = {
|
|
21
|
+
registry_authority: damlTypes.Party;
|
|
22
|
+
operator: damlTypes.Party;
|
|
23
|
+
receiver: damlTypes.Party;
|
|
24
|
+
registry: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.RegistryIdentity;
|
|
25
|
+
collection_scope: damlTypes.Optional<pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.CollectionIdentity>;
|
|
26
|
+
expires_at: damlTypes.Optional<damlTypes.Time>;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export declare interface StandingReceiveAuthorizationInterface {
|
|
30
|
+
Archive: damlTypes.Choice<StandingReceiveAuthorization, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StandingReceiveAuthorization, undefined>>;
|
|
31
|
+
Revoke: damlTypes.Choice<StandingReceiveAuthorization, Revoke, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StandingReceiveAuthorization, undefined>>;
|
|
32
|
+
}
|
|
33
|
+
export declare const StandingReceiveAuthorization:
|
|
34
|
+
damlTypes.Template<StandingReceiveAuthorization, undefined, '#NftReference-v01:Nft.Reference.V1.ReceiveAuthorization:StandingReceiveAuthorization'> &
|
|
35
|
+
damlTypes.ToInterface<StandingReceiveAuthorization, never> &
|
|
36
|
+
StandingReceiveAuthorizationInterface;
|
|
37
|
+
|
|
38
|
+
export declare namespace StandingReceiveAuthorization {
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
@@ -0,0 +1,68 @@
|
|
|
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 pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d = require('../../../../nft-api-v01-package-namespace.js');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
exports.Revoke = {
|
|
18
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({}); }),
|
|
19
|
+
encode: function (__typed__) {
|
|
20
|
+
return {
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
,
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
exports.StandingReceiveAuthorization = damlTypes.assembleTemplate(
|
|
29
|
+
{
|
|
30
|
+
templateId: '#NftReference-v01:Nft.Reference.V1.ReceiveAuthorization:StandingReceiveAuthorization',
|
|
31
|
+
templateIdWithPackageId: '26b30a7f62594fcc31537552d9ca5ca633ea70228c74c9cd588d1cf75303d529:Nft.Reference.V1.ReceiveAuthorization:StandingReceiveAuthorization',
|
|
32
|
+
keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
|
|
33
|
+
keyEncode: function () { throw 'EncodeError'; },
|
|
34
|
+
decoder: damlTypes.lazyMemo(function () { return jtv.object({registry_authority: damlTypes.Party.decoder, operator: damlTypes.Party.decoder, receiver: damlTypes.Party.decoder, registry: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.RegistryIdentity.decoder, collection_scope: jtv.Decoder.withDefault(null, damlTypes.Optional(pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.CollectionIdentity).decoder), expires_at: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), }); }),
|
|
35
|
+
encode: function (__typed__) {
|
|
36
|
+
return {
|
|
37
|
+
registry_authority: damlTypes.Party.encode(__typed__.registry_authority),
|
|
38
|
+
operator: damlTypes.Party.encode(__typed__.operator),
|
|
39
|
+
receiver: damlTypes.Party.encode(__typed__.receiver),
|
|
40
|
+
registry: pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.RegistryIdentity.encode(__typed__.registry),
|
|
41
|
+
collection_scope: damlTypes.Optional(pkgc264d58182e48d557c56e93220fc5afbb9d254375dd85286418915a164815c8d.Nft.Api.V1.Types.CollectionIdentity).encode(__typed__.collection_scope),
|
|
42
|
+
expires_at: damlTypes.Optional(damlTypes.Time).encode(__typed__.expires_at),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
,
|
|
46
|
+
Archive: {
|
|
47
|
+
template: function () { return exports.StandingReceiveAuthorization; },
|
|
48
|
+
choiceName: 'Archive',
|
|
49
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
|
|
50
|
+
argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
|
|
51
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
52
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
53
|
+
},
|
|
54
|
+
Revoke: {
|
|
55
|
+
template: function () { return exports.StandingReceiveAuthorization; },
|
|
56
|
+
choiceName: 'Revoke',
|
|
57
|
+
argumentDecoder: damlTypes.lazyMemo(function () { return exports.Revoke.decoder; }),
|
|
58
|
+
argumentEncode: function (__typed__) { return exports.Revoke.encode(__typed__); },
|
|
59
|
+
resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
|
|
60
|
+
resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
|
|
61
|
+
},
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
damlTypes.registerTemplate(exports.StandingReceiveAuthorization, ['26b30a7f62594fcc31537552d9ca5ca633ea70228c74c9cd588d1cf75303d529', '#NftReference-v01']);
|
|
68
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
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 NftAsset = require('./NftAsset');
|
|
9
|
+
exports.NftAsset = NftAsset;
|
|
10
|
+
var NftRegistry = require('./NftRegistry');
|
|
11
|
+
exports.NftRegistry = NftRegistry;
|
|
12
|
+
var ReceiveAuthorization = require('./ReceiveAuthorization');
|
|
13
|
+
exports.ReceiveAuthorization = ReceiveAuthorization;
|
|
@@ -0,0 +1,9 @@
|
|
|
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 V1 = require('./V1');
|
|
9
|
+
exports.V1 = V1;
|
package/lib/Nft/index.js
ADDED
|
@@ -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;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from './FeaturedAppRightV1';
|
|
1
|
+
export * as FeaturedAppRightV1 from './FeaturedAppRightV1';
|
|
2
|
+
export * as Token from './Token';
|
package/lib/Splice/Api/index.js
CHANGED