@fairmint/open-captable-protocol-daml-js 0.0.35 → 0.0.37

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": "00bdc20e1c8e420f0226e8cb2cf9e400bea8ddf47e5783712abe18af32927d500dca1112206e78f96f8d2613864101a3f4106df372ff3e25e05559e97e039e943ae34f4f60",
4
- "templateId": "596c18b9d7918141c1bffa842125d0c39042f0524986f64607d321c05924e661:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
3
+ "ocpFactoryContractId": "00de7d61440e6629a49b19d4ce42cfcecf5e0b88cff5e5d5958b736e898503632eca11122036e73290d34bbc2b81655303df25c55fbc543edffe69c8b155df3a34ae5c065e",
4
+ "templateId": "a39ae3bcf8e14173c3f2c157ef5f658c3ff3385f583bfd5700a66388f7ee0dcb:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
5
5
  },
6
6
  "devnet": {
7
- "ocpFactoryContractId": "0053d041adfa3aadbc5be86f8989c655cb5e9803da015a1e830c88a8677ec51e11ca111220423e54b2f725f927ceaf1ff7a447db4a9633eaf038f63f2f525434e67d0a9a95",
8
- "templateId": "596c18b9d7918141c1bffa842125d0c39042f0524986f64607d321c05924e661:Fairmint.OpenCapTable.OcpFactory:OcpFactory"
7
+ "ocpFactoryContractId": "00f3ba714828bad736fee8e2bfd63ad609726878b7431795f2a44d2bec8f0a407aca111220fe0a1139af2d57fb7ffa66d8672055b8e7955e1918f37b6cce9eb98d064571fa",
8
+ "templateId": "a39ae3bcf8e14173c3f2c157ef5f658c3ff3385f583bfd5700a66388f7ee0dcb: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-v07:Fairmint.OpenCapTable.Issuer:Issuer'> &
49
+ damlTypes.Template<Issuer, undefined, '#OpenCapTable-v09: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-v07:Fairmint.OpenCapTable.Issuer:Issuer',
48
+ templateId: '#OpenCapTable-v09: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, ['596c18b9d7918141c1bffa842125d0c39042f0524986f64607d321c05924e661', '#OpenCapTable-v07']);
90
+ damlTypes.registerTemplate(exports.Issuer, ['a39ae3bcf8e14173c3f2c157ef5f658c3ff3385f583bfd5700a66388f7ee0dcb', '#OpenCapTable-v09']);
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-v07:Fairmint.OpenCapTable.IssuerAuthorization:IssuerAuthorization'> &
47
+ damlTypes.Template<IssuerAuthorization, undefined, '#OpenCapTable-v09: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-v07:Fairmint.OpenCapTable.IssuerAuthorization:IssuerAuthorization',
47
+ templateId: '#OpenCapTable-v09: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, ['596c18b9d7918141c1bffa842125d0c39042f0524986f64607d321c05924e661', '#OpenCapTable-v07']);
88
+ damlTypes.registerTemplate(exports.IssuerAuthorization, ['a39ae3bcf8e14173c3f2c157ef5f658c3ff3385f583bfd5700a66388f7ee0dcb', '#OpenCapTable-v09']);
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-v07:Fairmint.OpenCapTable.OcpFactory:OcpFactory'> &
35
+ damlTypes.Template<OcpFactory, undefined, '#OpenCapTable-v09: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-v07:Fairmint.OpenCapTable.OcpFactory:OcpFactory',
35
+ templateId: '#OpenCapTable-v09: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, ['596c18b9d7918141c1bffa842125d0c39042f0524986f64607d321c05924e661', '#OpenCapTable-v07']);
67
+ damlTypes.registerTemplate(exports.OcpFactory, ['a39ae3bcf8e14173c3f2c157ef5f658c3ff3385f583bfd5700a66388f7ee0dcb', '#OpenCapTable-v09']);
68
68
 
@@ -36,7 +36,7 @@ export declare interface StockClassInterface {
36
36
  IssueStock: damlTypes.Choice<StockClass, IssueStock, damlTypes.ContractId<Fairmint_OpenCapTable_StockPosition.StockPosition>, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StockClass, undefined>>;
37
37
  }
38
38
  export declare const StockClass:
39
- damlTypes.Template<StockClass, undefined, '#OpenCapTable-v07:Fairmint.OpenCapTable.StockClass:StockClass'> &
39
+ damlTypes.Template<StockClass, undefined, '#OpenCapTable-v09:Fairmint.OpenCapTable.StockClass:StockClass'> &
40
40
  damlTypes.ToInterface<StockClass, never> &
41
41
  StockClassInterface;
42
42
 
@@ -33,7 +33,7 @@ exports.IssueStock = {
33
33
 
34
34
  exports.StockClass = damlTypes.assembleTemplate(
35
35
  {
36
- templateId: '#OpenCapTable-v07:Fairmint.OpenCapTable.StockClass:StockClass',
36
+ templateId: '#OpenCapTable-v09:Fairmint.OpenCapTable.StockClass:StockClass',
37
37
  keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
38
38
  keyEncode: function () { throw 'EncodeError'; },
39
39
  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, }); }),
@@ -68,5 +68,5 @@ exports.StockClass = damlTypes.assembleTemplate(
68
68
  );
69
69
 
70
70
 
71
- damlTypes.registerTemplate(exports.StockClass, ['596c18b9d7918141c1bffa842125d0c39042f0524986f64607d321c05924e661', '#OpenCapTable-v07']);
71
+ damlTypes.registerTemplate(exports.StockClass, ['a39ae3bcf8e14173c3f2c157ef5f658c3ff3385f583bfd5700a66388f7ee0dcb', '#OpenCapTable-v09']);
72
72
 
@@ -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-v07:Fairmint.OpenCapTable.StockPosition:StockTransferProposal'> &
38
+ damlTypes.Template<StockTransferProposal, undefined, '#OpenCapTable-v09: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-v07:Fairmint.OpenCapTable.StockPosition:StockPosition'> &
74
+ damlTypes.Template<StockPosition, undefined, '#OpenCapTable-v09: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-v07:Fairmint.OpenCapTable.StockPosition:StockTransferProposal',
34
+ templateId: '#OpenCapTable-v09: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, ['596c18b9d7918141c1bffa842125d0c39042f0524986f64607d321c05924e661', '#OpenCapTable-v07']);
70
+ damlTypes.registerTemplate(exports.StockTransferProposal, ['a39ae3bcf8e14173c3f2c157ef5f658c3ff3385f583bfd5700a66388f7ee0dcb', '#OpenCapTable-v09']);
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-v07:Fairmint.OpenCapTable.StockPosition:StockPosition',
88
+ templateId: '#OpenCapTable-v09: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, ['596c18b9d7918141c1bffa842125d0c39042f0524986f64607d321c05924e661', '#OpenCapTable-v07']);
123
+ damlTypes.registerTemplate(exports.StockPosition, ['a39ae3bcf8e14173c3f2c157ef5f658c3ff3385f583bfd5700a66388f7ee0dcb', '#OpenCapTable-v09']);
124
124
 
@@ -46,7 +46,7 @@ export declare type OcfIssuerData = {
46
46
  dba: damlTypes.Optional<string>;
47
47
  country_subdivision_of_formation: damlTypes.Optional<string>;
48
48
  tax_ids: damlTypes.Optional<OcfTaxID[]>;
49
- email: damlTypes.Optional<string>;
49
+ email: damlTypes.Optional<OcfEmail>;
50
50
  phone: damlTypes.Optional<string>;
51
51
  address: damlTypes.Optional<OcfAddress>;
52
52
  initial_shares_authorized: damlTypes.Optional<damlTypes.Numeric>;
@@ -71,12 +71,12 @@ export declare const OcfStockClassType:
71
71
 
72
72
 
73
73
  export declare type OcfAddress = {
74
- line1: string;
75
- line2: damlTypes.Optional<string>;
76
- city: string;
77
- state: string;
78
- postal_code: string;
74
+ address_type: OcfAddressType;
75
+ street_suite: damlTypes.Optional<string>;
76
+ city: damlTypes.Optional<string>;
77
+ country_subdivision: damlTypes.Optional<string>;
79
78
  country: string;
79
+ postal_code: damlTypes.Optional<string>;
80
80
  };
81
81
 
82
82
  export declare const OcfAddress:
@@ -85,6 +85,19 @@ export declare const OcfAddress:
85
85
  ;
86
86
 
87
87
 
88
+ export declare type OcfAddressType =
89
+ | 'OcfAddressTypeLegal'
90
+ | 'OcfAddressTypeContact'
91
+ | 'OcfAddressTypeOther'
92
+ ;
93
+
94
+ export declare const OcfAddressType:
95
+ damlTypes.Serializable<OcfAddressType> & {
96
+ }
97
+ & { readonly keys: OcfAddressType[] } & { readonly [e in OcfAddressType]: e }
98
+ ;
99
+
100
+
88
101
  export declare type OcfTaxID = {
89
102
  tax_id_type: string;
90
103
  tax_id: string;
@@ -95,3 +108,26 @@ export declare const OcfTaxID:
95
108
  }
96
109
  ;
97
110
 
111
+
112
+ export declare type OcfEmail = {
113
+ email_type: OcfEmailType;
114
+ email_address: string;
115
+ };
116
+
117
+ export declare const OcfEmail:
118
+ damlTypes.Serializable<OcfEmail> & {
119
+ }
120
+ ;
121
+
122
+
123
+ export declare type OcfEmailType =
124
+ | 'OcfEmailTypeBusiness'
125
+ | 'OcfEmailTypePersonal'
126
+ ;
127
+
128
+ export declare const OcfEmailType:
129
+ damlTypes.Serializable<OcfEmailType> & {
130
+ }
131
+ & { readonly keys: OcfEmailType[] } & { readonly [e in OcfEmailType]: e }
132
+ ;
133
+
@@ -50,7 +50,7 @@ exports.OcfStockClassData = {
50
50
 
51
51
 
52
52
  exports.OcfIssuerData = {
53
- decoder: damlTypes.lazyMemo(function () { return jtv.object({legal_name: damlTypes.Text.decoder, formation_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), country_of_formation: damlTypes.Text.decoder, dba: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), country_subdivision_of_formation: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), tax_ids: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(exports.OcfTaxID)).decoder), email: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), phone: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), address: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfAddress).decoder), initial_shares_authorized: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), }); }),
53
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({legal_name: damlTypes.Text.decoder, formation_date: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Time).decoder), country_of_formation: damlTypes.Text.decoder, dba: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), country_subdivision_of_formation: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), tax_ids: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.List(exports.OcfTaxID)).decoder), email: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfEmail).decoder), phone: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), address: jtv.Decoder.withDefault(null, damlTypes.Optional(exports.OcfAddress).decoder), initial_shares_authorized: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Numeric(10)).decoder), }); }),
54
54
  encode: function (__typed__) {
55
55
  return {
56
56
  legal_name: damlTypes.Text.encode(__typed__.legal_name),
@@ -59,7 +59,7 @@ exports.OcfIssuerData = {
59
59
  dba: damlTypes.Optional(damlTypes.Text).encode(__typed__.dba),
60
60
  country_subdivision_of_formation: damlTypes.Optional(damlTypes.Text).encode(__typed__.country_subdivision_of_formation),
61
61
  tax_ids: damlTypes.Optional(damlTypes.List(exports.OcfTaxID)).encode(__typed__.tax_ids),
62
- email: damlTypes.Optional(damlTypes.Text).encode(__typed__.email),
62
+ email: damlTypes.Optional(exports.OcfEmail).encode(__typed__.email),
63
63
  phone: damlTypes.Optional(damlTypes.Text).encode(__typed__.phone),
64
64
  address: damlTypes.Optional(exports.OcfAddress).encode(__typed__.address),
65
65
  initial_shares_authorized: damlTypes.Optional(damlTypes.Numeric(10)).encode(__typed__.initial_shares_authorized),
@@ -81,15 +81,15 @@ exports.OcfStockClassType = {
81
81
 
82
82
 
83
83
  exports.OcfAddress = {
84
- decoder: damlTypes.lazyMemo(function () { return jtv.object({line1: damlTypes.Text.decoder, line2: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), city: damlTypes.Text.decoder, state: damlTypes.Text.decoder, postal_code: damlTypes.Text.decoder, country: damlTypes.Text.decoder, }); }),
84
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({address_type: exports.OcfAddressType.decoder, street_suite: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), city: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), country_subdivision: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), country: damlTypes.Text.decoder, postal_code: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
85
85
  encode: function (__typed__) {
86
86
  return {
87
- line1: damlTypes.Text.encode(__typed__.line1),
88
- line2: damlTypes.Optional(damlTypes.Text).encode(__typed__.line2),
89
- city: damlTypes.Text.encode(__typed__.city),
90
- state: damlTypes.Text.encode(__typed__.state),
91
- postal_code: damlTypes.Text.encode(__typed__.postal_code),
87
+ address_type: exports.OcfAddressType.encode(__typed__.address_type),
88
+ street_suite: damlTypes.Optional(damlTypes.Text).encode(__typed__.street_suite),
89
+ city: damlTypes.Optional(damlTypes.Text).encode(__typed__.city),
90
+ country_subdivision: damlTypes.Optional(damlTypes.Text).encode(__typed__.country_subdivision),
92
91
  country: damlTypes.Text.encode(__typed__.country),
92
+ postal_code: damlTypes.Optional(damlTypes.Text).encode(__typed__.postal_code),
93
93
  };
94
94
  }
95
95
  ,
@@ -97,6 +97,17 @@ exports.OcfAddress = {
97
97
 
98
98
 
99
99
 
100
+ exports.OcfAddressType = {
101
+ OcfAddressTypeLegal: 'OcfAddressTypeLegal',
102
+ OcfAddressTypeContact: 'OcfAddressTypeContact',
103
+ OcfAddressTypeOther: 'OcfAddressTypeOther',
104
+ keys: ['OcfAddressTypeLegal','OcfAddressTypeContact','OcfAddressTypeOther',],
105
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfAddressType.OcfAddressTypeLegal), jtv.constant(exports.OcfAddressType.OcfAddressTypeContact), jtv.constant(exports.OcfAddressType.OcfAddressTypeOther)); }),
106
+ encode: function (__typed__) { return __typed__; },
107
+ };
108
+
109
+
110
+
100
111
  exports.OcfTaxID = {
101
112
  decoder: damlTypes.lazyMemo(function () { return jtv.object({tax_id_type: damlTypes.Text.decoder, tax_id: damlTypes.Text.decoder, }); }),
102
113
  encode: function (__typed__) {
@@ -108,3 +119,26 @@ exports.OcfTaxID = {
108
119
  ,
109
120
  };
110
121
 
122
+
123
+
124
+ exports.OcfEmail = {
125
+ decoder: damlTypes.lazyMemo(function () { return jtv.object({email_type: exports.OcfEmailType.decoder, email_address: damlTypes.Text.decoder, }); }),
126
+ encode: function (__typed__) {
127
+ return {
128
+ email_type: exports.OcfEmailType.encode(__typed__.email_type),
129
+ email_address: damlTypes.Text.encode(__typed__.email_address),
130
+ };
131
+ }
132
+ ,
133
+ };
134
+
135
+
136
+
137
+ exports.OcfEmailType = {
138
+ OcfEmailTypeBusiness: 'OcfEmailTypeBusiness',
139
+ OcfEmailTypePersonal: 'OcfEmailTypePersonal',
140
+ keys: ['OcfEmailTypeBusiness','OcfEmailTypePersonal',],
141
+ decoder: damlTypes.lazyMemo(function () { return jtv.oneOf(jtv.constant(exports.OcfEmailType.OcfEmailTypeBusiness), jtv.constant(exports.OcfEmailType.OcfEmailTypePersonal)); }),
142
+ encode: function (__typed__) { return __typed__; },
143
+ };
144
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fairmint/open-captable-protocol-daml-js",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
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-v07 && 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-v09 && 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",