@fairmint/open-captable-protocol-daml-js 0.0.39 → 0.0.41

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.
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "mainnet": {
3
- "ocpFactoryContractId": "00367dbd61ded8e086ec457eae841daa1b922e6042499d8e5ed5f89ee2760e17e7ca11122005631aea81b48e29b6e00898c6315c1fb8cd2c68bae4314df8bfe619fb5c181e",
4
- "templateId": "5d1607d2a5e5bfed21e0501b03e8b7cfa20c886dfef6e87ec9fbf4434b112720:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
3
+ "ocpFactoryContractId": "00884407d6031653b08e0ccc67e974c9a1d8a72b24d4c7100107d29b49ee863592ca111220762beb57a6667c976aead79ddfbe102fa22569beaee88631feb3ae12c8bcdd39",
4
+ "templateId": "c480f158acf374fc9afe4c07224e88f0a63030927788320e8707bf8a2773e9df:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
5
5
  },
6
6
  "devnet": {
7
- "ocpFactoryContractId": "00c86b0cb33c8a666c2ecdd56264b05ae6d98f5c25a3632a08909537af463be96fca111220a6b8da63138edaaffab35ea6fdc0e2ff9a5163e601cca66903c7f6eda313b700",
8
- "templateId": "5d1607d2a5e5bfed21e0501b03e8b7cfa20c886dfef6e87ec9fbf4434b112720:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
7
+ "ocpFactoryContractId": "00e415f8400f85a7980d7ba0533f73b2f3508a2273c44ebc25bf592b85bb3a2cf6ca1112200e8a700d2727268ee70dc69f4a748f238af145407406ce7267bc2756837882b9",
8
+ "templateId": "c480f158acf374fc9afe4c07224e88f0a63030927788320e8707bf8a2773e9df:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
9
9
  }
10
10
  }
@@ -46,7 +46,7 @@ export declare interface IssuerInterface {
46
46
  UpdateIssuerData: damlTypes.Choice<Issuer, UpdateIssuerData, damlTypes.ContractId<Issuer>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Issuer, undefined>>;
47
47
  }
48
48
  export declare const Issuer:
49
- damlTypes.Template<Issuer, undefined, '#OpenCapTable-v10:Fairmint.OpenCapTable.Issuer:Issuer'> &
49
+ damlTypes.Template<Issuer, undefined, '#OpenCapTable-v11:Fairmint.OpenCapTable.Issuer:Issuer'> &
50
50
  damlTypes.ToInterface<Issuer, never> &
51
51
  IssuerInterface;
52
52
 
@@ -45,7 +45,7 @@ exports.CreateStockClass = {
45
45
 
46
46
  exports.Issuer = damlTypes.assembleTemplate(
47
47
  {
48
- templateId: '#OpenCapTable-v10:Fairmint.OpenCapTable.Issuer:Issuer',
48
+ templateId: '#OpenCapTable-v11:Fairmint.OpenCapTable.Issuer:Issuer',
49
49
  keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
50
50
  keyEncode: function () { throw 'EncodeError'; },
51
51
  decoder: damlTypes.lazyMemo(function () { return jtv.object({issuer: damlTypes.Party.decoder, issuer_data: Fairmint_OpenCapTable_Types.OcfIssuerData.decoder, system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).decoder, }); }),
@@ -87,5 +87,5 @@ exports.Issuer = damlTypes.assembleTemplate(
87
87
  );
88
88
 
89
89
 
90
- damlTypes.registerTemplate(exports.Issuer, ['5d1607d2a5e5bfed21e0501b03e8b7cfa20c886dfef6e87ec9fbf4434b112720', '#OpenCapTable-v10']);
90
+ damlTypes.registerTemplate(exports.Issuer, ['c480f158acf374fc9afe4c07224e88f0a63030927788320e8707bf8a2773e9df', '#OpenCapTable-v11']);
91
91
 
@@ -44,7 +44,7 @@ export declare interface IssuerAuthorizationInterface {
44
44
  WithdrawAuthorization: damlTypes.Choice<IssuerAuthorization, WithdrawAuthorization, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<IssuerAuthorization, undefined>>;
45
45
  }
46
46
  export declare const IssuerAuthorization:
47
- damlTypes.Template<IssuerAuthorization, undefined, '#OpenCapTable-v10:Fairmint.OpenCapTable.IssuerAuthorization:IssuerAuthorization'> &
47
+ damlTypes.Template<IssuerAuthorization, undefined, '#OpenCapTable-v11:Fairmint.OpenCapTable.IssuerAuthorization:IssuerAuthorization'> &
48
48
  damlTypes.ToInterface<IssuerAuthorization, never> &
49
49
  IssuerAuthorizationInterface;
50
50
 
@@ -44,7 +44,7 @@ exports.CreateIssuer = {
44
44
 
45
45
  exports.IssuerAuthorization = damlTypes.assembleTemplate(
46
46
  {
47
- templateId: '#OpenCapTable-v10:Fairmint.OpenCapTable.IssuerAuthorization:IssuerAuthorization',
47
+ templateId: '#OpenCapTable-v11:Fairmint.OpenCapTable.IssuerAuthorization:IssuerAuthorization',
48
48
  keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
49
49
  keyEncode: function () { throw 'EncodeError'; },
50
50
  decoder: damlTypes.lazyMemo(function () { return jtv.object({issuer: damlTypes.Party.decoder, system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).decoder, }); }),
@@ -85,5 +85,5 @@ exports.IssuerAuthorization = damlTypes.assembleTemplate(
85
85
  );
86
86
 
87
87
 
88
- damlTypes.registerTemplate(exports.IssuerAuthorization, ['5d1607d2a5e5bfed21e0501b03e8b7cfa20c886dfef6e87ec9fbf4434b112720', '#OpenCapTable-v10']);
88
+ damlTypes.registerTemplate(exports.IssuerAuthorization, ['c480f158acf374fc9afe4c07224e88f0a63030927788320e8707bf8a2773e9df', '#OpenCapTable-v11']);
89
89
 
@@ -32,7 +32,7 @@ export declare interface OcpFactoryInterface {
32
32
  AuthorizeIssuer: damlTypes.Choice<OcpFactory, AuthorizeIssuer, damlTypes.ContractId<Fairmint_OpenCapTable_IssuerAuthorization.IssuerAuthorization>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<OcpFactory, undefined>>;
33
33
  }
34
34
  export declare const OcpFactory:
35
- damlTypes.Template<OcpFactory, undefined, '#OpenCapTable-v10:Fairmint.OpenCapTable.OcpFactory:OcpFactory'> &
35
+ damlTypes.Template<OcpFactory, undefined, '#OpenCapTable-v11:Fairmint.OpenCapTable.OcpFactory:OcpFactory'> &
36
36
  damlTypes.ToInterface<OcpFactory, never> &
37
37
  OcpFactoryInterface;
38
38
 
@@ -32,7 +32,7 @@ exports.AuthorizeIssuer = {
32
32
 
33
33
  exports.OcpFactory = damlTypes.assembleTemplate(
34
34
  {
35
- templateId: '#OpenCapTable-v10:Fairmint.OpenCapTable.OcpFactory:OcpFactory',
35
+ templateId: '#OpenCapTable-v11:Fairmint.OpenCapTable.OcpFactory:OcpFactory',
36
36
  keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
37
37
  keyEncode: function () { throw 'EncodeError'; },
38
38
  decoder: damlTypes.lazyMemo(function () { return jtv.object({system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).decoder, }); }),
@@ -64,5 +64,5 @@ exports.OcpFactory = damlTypes.assembleTemplate(
64
64
  );
65
65
 
66
66
 
67
- damlTypes.registerTemplate(exports.OcpFactory, ['5d1607d2a5e5bfed21e0501b03e8b7cfa20c886dfef6e87ec9fbf4434b112720', '#OpenCapTable-v10']);
67
+ damlTypes.registerTemplate(exports.OcpFactory, ['c480f158acf374fc9afe4c07224e88f0a63030927788320e8707bf8a2773e9df', '#OpenCapTable-v11']);
68
68
 
@@ -47,7 +47,7 @@ export declare interface StockClassInterface {
47
47
  IssueStock: damlTypes.Choice<StockClass, IssueStock, damlTypes.ContractId<Fairmint_OpenCapTable_StockPosition.StockPosition>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StockClass, undefined>>;
48
48
  }
49
49
  export declare const StockClass:
50
- damlTypes.Template<StockClass, undefined, '#OpenCapTable-v10:Fairmint.OpenCapTable.StockClass:StockClass'> &
50
+ damlTypes.Template<StockClass, undefined, '#OpenCapTable-v11:Fairmint.OpenCapTable.StockClass:StockClass'> &
51
51
  damlTypes.ToInterface<StockClass, never> &
52
52
  StockClassInterface;
53
53
 
@@ -45,7 +45,7 @@ exports.UpdateStockClassData = {
45
45
 
46
46
  exports.StockClass = damlTypes.assembleTemplate(
47
47
  {
48
- templateId: '#OpenCapTable-v10:Fairmint.OpenCapTable.StockClass:StockClass',
48
+ templateId: '#OpenCapTable-v11:Fairmint.OpenCapTable.StockClass:StockClass',
49
49
  keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
50
50
  keyEncode: function () { throw 'EncodeError'; },
51
51
  decoder: damlTypes.lazyMemo(function () { return jtv.object({issuer: damlTypes.Party.decoder, stock_class_data: Fairmint_OpenCapTable_Types.OcfStockClassData.decoder, issued_shares: damlTypes.Int.decoder, system_operator: damlTypes.Party.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).decoder, }); }),
@@ -88,5 +88,5 @@ exports.StockClass = damlTypes.assembleTemplate(
88
88
  );
89
89
 
90
90
 
91
- damlTypes.registerTemplate(exports.StockClass, ['5d1607d2a5e5bfed21e0501b03e8b7cfa20c886dfef6e87ec9fbf4434b112720', '#OpenCapTable-v10']);
91
+ damlTypes.registerTemplate(exports.StockClass, ['c480f158acf374fc9afe4c07224e88f0a63030927788320e8707bf8a2773e9df', '#OpenCapTable-v11']);
92
92
 
@@ -35,7 +35,7 @@ export declare interface StockTransferProposalInterface {
35
35
  AcceptTransfer: damlTypes.Choice<StockTransferProposal, AcceptTransfer, damlTypes.ContractId<StockPosition>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StockTransferProposal, undefined>>;
36
36
  }
37
37
  export declare const StockTransferProposal:
38
- damlTypes.Template<StockTransferProposal, undefined, '#OpenCapTable-v10:Fairmint.OpenCapTable.StockPosition:StockTransferProposal'> &
38
+ damlTypes.Template<StockTransferProposal, undefined, '#OpenCapTable-v11:Fairmint.OpenCapTable.StockPosition:StockTransferProposal'> &
39
39
  damlTypes.ToInterface<StockTransferProposal, never> &
40
40
  StockTransferProposalInterface;
41
41
 
@@ -71,7 +71,7 @@ export declare interface StockPositionInterface {
71
71
  Archive: damlTypes.Choice<StockPosition, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StockPosition, undefined>>;
72
72
  }
73
73
  export declare const StockPosition:
74
- damlTypes.Template<StockPosition, undefined, '#OpenCapTable-v10:Fairmint.OpenCapTable.StockPosition:StockPosition'> &
74
+ damlTypes.Template<StockPosition, undefined, '#OpenCapTable-v11:Fairmint.OpenCapTable.StockPosition:StockPosition'> &
75
75
  damlTypes.ToInterface<StockPosition, never> &
76
76
  StockPositionInterface;
77
77
 
@@ -31,7 +31,7 @@ exports.AcceptTransfer = {
31
31
 
32
32
  exports.StockTransferProposal = damlTypes.assembleTemplate(
33
33
  {
34
- templateId: '#OpenCapTable-v10:Fairmint.OpenCapTable.StockPosition:StockTransferProposal',
34
+ templateId: '#OpenCapTable-v11:Fairmint.OpenCapTable.StockPosition:StockTransferProposal',
35
35
  keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
36
36
  keyEncode: function () { throw 'EncodeError'; },
37
37
  decoder: damlTypes.lazyMemo(function () { return jtv.object({system_operator: damlTypes.Party.decoder, issuer: damlTypes.Party.decoder, owner: damlTypes.Party.decoder, recipient: damlTypes.Party.decoder, quantity: damlTypes.Int.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).decoder, }); }),
@@ -67,7 +67,7 @@ exports.StockTransferProposal = damlTypes.assembleTemplate(
67
67
  );
68
68
 
69
69
 
70
- damlTypes.registerTemplate(exports.StockTransferProposal, ['5d1607d2a5e5bfed21e0501b03e8b7cfa20c886dfef6e87ec9fbf4434b112720', '#OpenCapTable-v10']);
70
+ damlTypes.registerTemplate(exports.StockTransferProposal, ['c480f158acf374fc9afe4c07224e88f0a63030927788320e8707bf8a2773e9df', '#OpenCapTable-v11']);
71
71
 
72
72
 
73
73
 
@@ -85,7 +85,7 @@ exports.ProposeTransfer = {
85
85
 
86
86
  exports.StockPosition = damlTypes.assembleTemplate(
87
87
  {
88
- templateId: '#OpenCapTable-v10:Fairmint.OpenCapTable.StockPosition:StockPosition',
88
+ templateId: '#OpenCapTable-v11:Fairmint.OpenCapTable.StockPosition:StockPosition',
89
89
  keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
90
90
  keyEncode: function () { throw 'EncodeError'; },
91
91
  decoder: damlTypes.lazyMemo(function () { return jtv.object({system_operator: damlTypes.Party.decoder, issuer: damlTypes.Party.decoder, owner: damlTypes.Party.decoder, quantity: damlTypes.Int.decoder, featured_app_right: damlTypes.ContractId(pkg7804375fe5e4c6d5afe067bd314c42fe0b7d005a1300019c73154dd939da4dda.Splice.Api.FeaturedAppRightV1.FeaturedAppRight).decoder, }); }),
@@ -120,5 +120,5 @@ exports.StockPosition = damlTypes.assembleTemplate(
120
120
  );
121
121
 
122
122
 
123
- damlTypes.registerTemplate(exports.StockPosition, ['5d1607d2a5e5bfed21e0501b03e8b7cfa20c886dfef6e87ec9fbf4434b112720', '#OpenCapTable-v10']);
123
+ damlTypes.registerTemplate(exports.StockPosition, ['c480f158acf374fc9afe4c07224e88f0a63030927788320e8707bf8a2773e9df', '#OpenCapTable-v11']);
124
124
 
@@ -175,8 +175,8 @@ export declare const OcfAddressType:
175
175
 
176
176
 
177
177
  export declare type OcfTaxID = {
178
- tax_id_type: string;
179
178
  tax_id: string;
179
+ country: string;
180
180
  };
181
181
 
182
182
  export declare const OcfTaxID:
@@ -186,11 +186,11 @@ exports.OcfAddressType = {
186
186
 
187
187
 
188
188
  exports.OcfTaxID = {
189
- decoder: damlTypes.lazyMemo(function () { return jtv.object({tax_id_type: damlTypes.Text.decoder, tax_id: damlTypes.Text.decoder, }); }),
189
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({tax_id: damlTypes.Text.decoder, country: damlTypes.Text.decoder, }); }),
190
190
  encode: function (__typed__) {
191
191
  return {
192
- tax_id_type: damlTypes.Text.encode(__typed__.tax_id_type),
193
192
  tax_id: damlTypes.Text.encode(__typed__.tax_id),
193
+ country: damlTypes.Text.encode(__typed__.country),
194
194
  };
195
195
  }
196
196
  ,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fairmint/open-captable-protocol-daml-js",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "description": "Open CapTable Protocol DAML smart contracts with generated JavaScript bindings",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -34,7 +34,7 @@
34
34
  "build": "daml build --all",
35
35
  "build:ts": "tsc",
36
36
  "clean": "daml clean --all",
37
- "codegen": "npm run build && cd OpenCapTable-v10 && daml codegen js && cd .. && cd OpenCapTableShared-v01 && daml codegen js && cd .. && cd OpenCapTableReports-v01 && daml codegen js && cd .. && npm run build:ts && tsx scripts/bundle-dependencies.ts && tsx scripts/create-package-index.ts",
37
+ "codegen": "npm run build && cd OpenCapTable-v11 && daml codegen js && cd .. && cd OpenCapTableShared-v01 && daml codegen js && cd .. && cd OpenCapTableReports-v01 && daml codegen js && cd .. && npm run build:ts && tsx scripts/bundle-dependencies.ts && tsx scripts/create-package-index.ts",
38
38
  "test": "cd Test && daml test",
39
39
  "test:imports": "tsx scripts/test-imports.ts",
40
40
  "upload-dar:ocp": "npm run build && ts-node scripts/upload-dar.ts --network devnet && ts-node scripts/upload-dar.ts --network mainnet",