@verana-labs/verana-types 0.10.1-dev.12 → 0.10.1-dev.14

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.
Files changed (61) hide show
  1. package/dist/amino-converter/co.d.ts +3 -0
  2. package/dist/amino-converter/co.js +164 -0
  3. package/dist/amino-converter/cs.js +2 -2
  4. package/dist/amino-converter/ec.d.ts +4 -0
  5. package/dist/amino-converter/ec.js +63 -0
  6. package/dist/amino-converter/{tr.d.ts → gf.d.ts} +0 -3
  7. package/dist/amino-converter/gf.js +48 -0
  8. package/dist/amino-converter/group.d.ts +3 -0
  9. package/dist/amino-converter/group.js +91 -0
  10. package/dist/amino-converter/pp.d.ts +12 -0
  11. package/dist/amino-converter/{perm.js → pp.js} +95 -79
  12. package/dist/codec/verana/cs/v1/query.d.ts +2 -2
  13. package/dist/codec/verana/cs/v1/query.js +21 -21
  14. package/dist/codec/verana/cs/v1/tx.d.ts +1 -1
  15. package/dist/codec/verana/cs/v1/tx.js +22 -22
  16. package/dist/codec/verana/cs/v1/types.d.ts +6 -2
  17. package/dist/codec/verana/cs/v1/types.js +30 -30
  18. package/dist/codec/verana/de/v1/query.d.ts +72 -4
  19. package/dist/codec/verana/de/v1/query.js +261 -19
  20. package/dist/codec/verana/de/v1/types.d.ts +124 -34
  21. package/dist/codec/verana/de/v1/types.js +361 -109
  22. package/dist/codec/verana/{tr → ec}/module/module.d.ts +1 -1
  23. package/dist/codec/verana/{tr → ec}/module/module.js +2 -2
  24. package/dist/codec/verana/{tr → ec}/v1/genesis.d.ts +10 -12
  25. package/dist/codec/verana/{tr → ec}/v1/genesis.js +16 -56
  26. package/dist/codec/verana/{tr → ec}/v1/params.d.ts +1 -1
  27. package/dist/codec/verana/{tr → ec}/v1/params.js +2 -2
  28. package/dist/codec/verana/ec/v1/query.d.ts +109 -0
  29. package/dist/codec/verana/{tr → ec}/v1/query.js +69 -71
  30. package/dist/codec/verana/ec/v1/tx.d.ts +152 -0
  31. package/dist/codec/verana/{tr → ec}/v1/tx.js +85 -403
  32. package/dist/codec/verana/ec/v1/types.d.ts +67 -0
  33. package/dist/codec/verana/ec/v1/types.js +422 -0
  34. package/dist/codec/verana/{perm → pp}/module/module.d.ts +1 -1
  35. package/dist/codec/verana/{perm → pp}/module/module.js +2 -2
  36. package/dist/codec/verana/{perm → pp}/v1/genesis.d.ts +9 -9
  37. package/dist/codec/verana/{perm → pp}/v1/genesis.js +26 -26
  38. package/dist/codec/verana/{perm → pp}/v1/params.d.ts +1 -1
  39. package/dist/codec/verana/{perm → pp}/v1/params.js +2 -2
  40. package/dist/codec/verana/pp/v1/query.d.ts +208 -0
  41. package/dist/codec/verana/{perm → pp}/v1/query.js +148 -148
  42. package/dist/codec/verana/pp/v1/tx.d.ts +447 -0
  43. package/dist/codec/verana/{perm → pp}/v1/tx.js +412 -302
  44. package/dist/codec/verana/pp/v1/types.d.ts +137 -0
  45. package/dist/codec/verana/{perm → pp}/v1/types.js +270 -345
  46. package/dist/helpers/aminoConverters.d.ts +6 -4
  47. package/dist/helpers/aminoConverters.js +6 -4
  48. package/dist/index.d.ts +4 -2
  49. package/dist/index.js +4 -2
  50. package/dist/signing.d.ts +36 -32
  51. package/dist/signing.js +85 -68
  52. package/package.json +1 -1
  53. package/dist/amino-converter/perm.d.ts +0 -12
  54. package/dist/amino-converter/tr.js +0 -107
  55. package/dist/codec/verana/perm/v1/query.d.ts +0 -208
  56. package/dist/codec/verana/perm/v1/tx.d.ts +0 -441
  57. package/dist/codec/verana/perm/v1/types.d.ts +0 -134
  58. package/dist/codec/verana/tr/v1/query.d.ts +0 -117
  59. package/dist/codec/verana/tr/v1/tx.d.ts +0 -255
  60. package/dist/codec/verana/tr/v1/types.d.ts +0 -105
  61. package/dist/codec/verana/tr/v1/types.js +0 -809
@@ -1,15 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MsgSelfCreatePermissionAminoConverter = exports.MsgRepayPermissionSlashedTrustDepositAminoConverter = exports.MsgSlashPermissionTrustDepositAminoConverter = exports.MsgCreateOrUpdatePermissionSessionAminoConverter = exports.MsgCancelPermissionVPLastRequestAminoConverter = exports.MsgSetPermissionVPToValidatedAminoConverter = exports.MsgRenewPermissionVPAminoConverter = exports.MsgStartPermissionVPAminoConverter = exports.MsgRevokePermissionAminoConverter = exports.MsgAdjustPermissionAminoConverter = exports.MsgCreateRootPermissionAminoConverter = void 0;
4
- const tx_1 = require("../codec/verana/perm/v1/tx");
5
- const types_1 = require("../codec/verana/perm/v1/types");
3
+ exports.MsgSelfCreateParticipantAminoConverter = exports.MsgRepayParticipantSlashedTrustDepositAminoConverter = exports.MsgSlashParticipantTrustDepositAminoConverter = exports.MsgCreateOrUpdateParticipantSessionAminoConverter = exports.MsgCancelParticipantOPLastRequestAminoConverter = exports.MsgSetParticipantOPToValidatedAminoConverter = exports.MsgRenewParticipantOPAminoConverter = exports.MsgStartParticipantOPAminoConverter = exports.MsgRevokeParticipantAminoConverter = exports.MsgSetParticipantEffectiveUntilAminoConverter = exports.MsgCreateRootParticipantAminoConverter = void 0;
4
+ const tx_1 = require("../codec/verana/pp/v1/tx");
5
+ const types_1 = require("../codec/verana/pp/v1/types");
6
6
  const helpers_1 = require("./util/helpers");
7
- exports.MsgCreateRootPermissionAminoConverter = {
8
- aminoType: "verana/x/perm/MsgCreateRootPermission",
9
- // [MOD-PERM-MSG-7-3] spec v4 draft 13: perm.type is hardcoded to ECOSYSTEM;
10
- // vs_operator is not set on root permissions.
7
+ exports.MsgCreateRootParticipantAminoConverter = {
8
+ aminoType: "verana/x/pp/MsgCreateRootParticipant",
9
+ // [MOD-PP-MSG-7-3] spec v4 draft 13: perm.role is hardcoded to ECOSYSTEM.
11
10
  toAmino: (m) => {
12
- var _a, _b, _c;
11
+ var _a, _b, _c, _d, _e, _f;
13
12
  return (0, helpers_1.clean)({
14
13
  corporation: (_a = m.corporation) !== null && _a !== void 0 ? _a : "",
15
14
  operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
@@ -20,11 +19,20 @@ exports.MsgCreateRootPermissionAminoConverter = {
20
19
  validation_fees: (0, helpers_1.u64ToStr)(m.validationFees),
21
20
  issuance_fees: (0, helpers_1.u64ToStr)(m.issuanceFees),
22
21
  verification_fees: (0, helpers_1.u64ToStr)(m.verificationFees),
22
+ // VSOA params (proto fields 10-15). The chain's aminojson encodes empty
23
+ // dont_omitempty Coin arrays as `null` (NOT []) and omits empty plain
24
+ // repeated/scalar fields. The sign bytes must match exactly.
25
+ vs_operator: m.vsOperator || undefined,
26
+ vs_operator_authz_msg_types: ((_d = m.vsOperatorAuthzMsgTypes) === null || _d === void 0 ? void 0 : _d.length) ? m.vsOperatorAuthzMsgTypes : undefined,
27
+ vs_operator_authz_spend_limit: ((_e = m.vsOperatorAuthzSpendLimit) === null || _e === void 0 ? void 0 : _e.length) ? m.vsOperatorAuthzSpendLimit : null,
28
+ vs_operator_authz_with_feegrant: m.vsOperatorAuthzWithFeegrant || undefined,
29
+ vs_operator_authz_fee_spend_limit: ((_f = m.vsOperatorAuthzFeeSpendLimit) === null || _f === void 0 ? void 0 : _f.length) ? m.vsOperatorAuthzFeeSpendLimit : null,
30
+ vs_operator_authz_period: (0, helpers_1.durationToAmino)(m.vsOperatorAuthzPeriod),
23
31
  });
24
32
  },
25
33
  fromAmino: (a) => {
26
- var _a, _b, _c;
27
- return tx_1.MsgCreateRootPermission.fromPartial({
34
+ var _a, _b, _c, _d, _e, _f, _g, _h;
35
+ return tx_1.MsgCreateRootParticipant.fromPartial({
28
36
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
29
37
  operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
30
38
  schemaId: (0, helpers_1.strToU64)(a.schema_id) != null ? Number((0, helpers_1.strToU64)(a.schema_id).toString()) : 0,
@@ -34,11 +42,17 @@ exports.MsgCreateRootPermissionAminoConverter = {
34
42
  validationFees: (0, helpers_1.strToU64)(a.validation_fees) != null ? Number((0, helpers_1.strToU64)(a.validation_fees).toString()) : 0,
35
43
  issuanceFees: (0, helpers_1.strToU64)(a.issuance_fees) != null ? Number((0, helpers_1.strToU64)(a.issuance_fees).toString()) : 0,
36
44
  verificationFees: (0, helpers_1.strToU64)(a.verification_fees) != null ? Number((0, helpers_1.strToU64)(a.verification_fees).toString()) : 0,
45
+ vsOperator: (_d = a.vs_operator) !== null && _d !== void 0 ? _d : "",
46
+ vsOperatorAuthzMsgTypes: (_e = a.vs_operator_authz_msg_types) !== null && _e !== void 0 ? _e : [],
47
+ vsOperatorAuthzSpendLimit: (_f = a.vs_operator_authz_spend_limit) !== null && _f !== void 0 ? _f : [],
48
+ vsOperatorAuthzWithFeegrant: (_g = a.vs_operator_authz_with_feegrant) !== null && _g !== void 0 ? _g : false,
49
+ vsOperatorAuthzFeeSpendLimit: (_h = a.vs_operator_authz_fee_spend_limit) !== null && _h !== void 0 ? _h : [],
50
+ vsOperatorAuthzPeriod: (0, helpers_1.aminoToDuration)(a.vs_operator_authz_period),
37
51
  });
38
52
  },
39
53
  };
40
- exports.MsgAdjustPermissionAminoConverter = {
41
- aminoType: "verana/x/perm/MsgAdjustPermission",
54
+ exports.MsgSetParticipantEffectiveUntilAminoConverter = {
55
+ aminoType: "verana/x/pp/MsgSetPartEffectiveUntil",
42
56
  toAmino: (m) => {
43
57
  var _a, _b;
44
58
  return (0, helpers_1.clean)({
@@ -50,7 +64,7 @@ exports.MsgAdjustPermissionAminoConverter = {
50
64
  },
51
65
  fromAmino: (a) => {
52
66
  var _a, _b;
53
- return tx_1.MsgAdjustPermission.fromPartial({
67
+ return tx_1.MsgSetParticipantEffectiveUntil.fromPartial({
54
68
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
55
69
  operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
56
70
  id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
@@ -58,8 +72,8 @@ exports.MsgAdjustPermissionAminoConverter = {
58
72
  });
59
73
  },
60
74
  };
61
- exports.MsgRevokePermissionAminoConverter = {
62
- aminoType: "verana/x/perm/MsgRevokePermission",
75
+ exports.MsgRevokeParticipantAminoConverter = {
76
+ aminoType: "verana/x/pp/MsgRevokeParticipant",
63
77
  toAmino: (m) => {
64
78
  var _a, _b;
65
79
  return (0, helpers_1.clean)({
@@ -70,57 +84,57 @@ exports.MsgRevokePermissionAminoConverter = {
70
84
  },
71
85
  fromAmino: (a) => {
72
86
  var _a, _b;
73
- return tx_1.MsgRevokePermission.fromPartial({
87
+ return tx_1.MsgRevokeParticipant.fromPartial({
74
88
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
75
89
  operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
76
90
  id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
77
91
  });
78
92
  },
79
93
  };
80
- exports.MsgStartPermissionVPAminoConverter = {
81
- aminoType: "verana/x/perm/MsgStartPermissionVP",
94
+ exports.MsgStartParticipantOPAminoConverter = {
95
+ aminoType: "verana/x/pp/MsgStartParticipantOP",
82
96
  toAmino: (m) => {
83
- var _a, _b, _c, _d, _e, _f;
97
+ var _a, _b, _c, _d, _e, _f, _g;
84
98
  return (0, helpers_1.clean)({
85
99
  corporation: (_a = m.corporation) !== null && _a !== void 0 ? _a : "",
86
100
  operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
87
- type: (_c = m.type) !== null && _c !== void 0 ? _c : types_1.PermissionType.UNSPECIFIED,
88
- validator_perm_id: (0, helpers_1.u64ToStr)(m.validatorPermId),
101
+ role: (_c = m.role) !== null && _c !== void 0 ? _c : types_1.ParticipantRole.UNSPECIFIED,
102
+ validator_participant_id: (0, helpers_1.u64ToStr)(m.validatorParticipantId),
89
103
  did: (_d = m.did) !== null && _d !== void 0 ? _d : "",
90
104
  validation_fees: m.validationFees ? { value: (0, helpers_1.u64ToStr)(m.validationFees.value) } : undefined,
91
105
  issuance_fees: m.issuanceFees ? { value: (0, helpers_1.u64ToStr)(m.issuanceFees.value) } : undefined,
92
106
  verification_fees: m.verificationFees ? { value: (0, helpers_1.u64ToStr)(m.verificationFees.value) } : undefined,
93
107
  vs_operator: m.vsOperator || undefined,
94
- vs_operator_authz_enabled: m.vsOperatorAuthzEnabled || undefined,
95
- vs_operator_authz_spend_limit: (_e = m.vsOperatorAuthzSpendLimit) !== null && _e !== void 0 ? _e : [],
108
+ vs_operator_authz_msg_types: ((_e = m.vsOperatorAuthzMsgTypes) === null || _e === void 0 ? void 0 : _e.length) ? m.vsOperatorAuthzMsgTypes : undefined,
109
+ vs_operator_authz_spend_limit: ((_f = m.vsOperatorAuthzSpendLimit) === null || _f === void 0 ? void 0 : _f.length) ? m.vsOperatorAuthzSpendLimit : null,
96
110
  vs_operator_authz_with_feegrant: m.vsOperatorAuthzWithFeegrant || undefined,
97
- vs_operator_authz_fee_spend_limit: (_f = m.vsOperatorAuthzFeeSpendLimit) !== null && _f !== void 0 ? _f : [],
98
- vs_operator_authz_spend_period: (0, helpers_1.durationToAmino)(m.vsOperatorAuthzSpendPeriod),
111
+ vs_operator_authz_fee_spend_limit: ((_g = m.vsOperatorAuthzFeeSpendLimit) === null || _g === void 0 ? void 0 : _g.length) ? m.vsOperatorAuthzFeeSpendLimit : null,
112
+ vs_operator_authz_period: (0, helpers_1.durationToAmino)(m.vsOperatorAuthzPeriod),
99
113
  });
100
114
  },
101
115
  fromAmino: (a) => {
102
116
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
103
- return tx_1.MsgStartPermissionVP.fromPartial({
117
+ return tx_1.MsgStartParticipantOP.fromPartial({
104
118
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
105
119
  operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
106
- type: (_c = a.type) !== null && _c !== void 0 ? _c : types_1.PermissionType.UNSPECIFIED,
107
- validatorPermId: (0, helpers_1.strToU64)(a.validator_perm_id) != null ? Number((0, helpers_1.strToU64)(a.validator_perm_id).toString()) : 0,
120
+ role: (_c = a.role) !== null && _c !== void 0 ? _c : types_1.ParticipantRole.UNSPECIFIED,
121
+ validatorParticipantId: (0, helpers_1.strToU64)(a.validator_participant_id) != null ? Number((0, helpers_1.strToU64)(a.validator_participant_id).toString()) : 0,
108
122
  did: (_d = a.did) !== null && _d !== void 0 ? _d : "",
109
123
  validationFees: a.validation_fees ? { value: Number((_e = a.validation_fees.value) !== null && _e !== void 0 ? _e : a.validation_fees) } : undefined,
110
124
  issuanceFees: a.issuance_fees ? { value: Number((_f = a.issuance_fees.value) !== null && _f !== void 0 ? _f : a.issuance_fees) } : undefined,
111
125
  verificationFees: a.verification_fees ? { value: Number((_g = a.verification_fees.value) !== null && _g !== void 0 ? _g : a.verification_fees) } : undefined,
112
126
  vsOperator: (_h = a.vs_operator) !== null && _h !== void 0 ? _h : "",
113
- vsOperatorAuthzEnabled: (_j = a.vs_operator_authz_enabled) !== null && _j !== void 0 ? _j : false,
127
+ vsOperatorAuthzMsgTypes: (_j = a.vs_operator_authz_msg_types) !== null && _j !== void 0 ? _j : [],
114
128
  vsOperatorAuthzSpendLimit: (_k = a.vs_operator_authz_spend_limit) !== null && _k !== void 0 ? _k : [],
115
129
  vsOperatorAuthzWithFeegrant: (_l = a.vs_operator_authz_with_feegrant) !== null && _l !== void 0 ? _l : false,
116
130
  vsOperatorAuthzFeeSpendLimit: (_m = a.vs_operator_authz_fee_spend_limit) !== null && _m !== void 0 ? _m : [],
117
- vsOperatorAuthzSpendPeriod: (0, helpers_1.aminoToDuration)(a.vs_operator_authz_spend_period),
131
+ vsOperatorAuthzPeriod: (0, helpers_1.aminoToDuration)(a.vs_operator_authz_period),
118
132
  });
119
133
  },
120
134
  };
121
- exports.MsgRenewPermissionVPAminoConverter = {
122
- aminoType: "verana/x/perm/MsgRenewPermissionVP",
123
- // [MOD-PERM-MSG-2-1] spec v4 draft 13 parameters: corporation, operator, id.
135
+ exports.MsgRenewParticipantOPAminoConverter = {
136
+ aminoType: "verana/x/pp/MsgRenewParticipantOP",
137
+ // [MOD-PP-MSG-2-1] spec v4 draft 13 parameters: corporation, operator, id.
124
138
  toAmino: (m) => {
125
139
  var _a, _b;
126
140
  return (0, helpers_1.clean)({
@@ -131,15 +145,15 @@ exports.MsgRenewPermissionVPAminoConverter = {
131
145
  },
132
146
  fromAmino: (a) => {
133
147
  var _a, _b;
134
- return tx_1.MsgRenewPermissionVP.fromPartial({
148
+ return tx_1.MsgRenewParticipantOP.fromPartial({
135
149
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
136
150
  operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
137
151
  id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
138
152
  });
139
153
  },
140
154
  };
141
- exports.MsgSetPermissionVPToValidatedAminoConverter = {
142
- aminoType: "verana/x/perm/MsgSetPermVPValidated",
155
+ exports.MsgSetParticipantOPToValidatedAminoConverter = {
156
+ aminoType: "verana/x/pp/MsgSetPartOPValidated",
143
157
  toAmino: (m) => {
144
158
  var _a, _b, _c;
145
159
  return (0, helpers_1.clean)({
@@ -150,14 +164,14 @@ exports.MsgSetPermissionVPToValidatedAminoConverter = {
150
164
  validation_fees: (0, helpers_1.u64ToStr)(m.validationFees),
151
165
  issuance_fees: (0, helpers_1.u64ToStr)(m.issuanceFees),
152
166
  verification_fees: (0, helpers_1.u64ToStr)(m.verificationFees),
153
- vp_summary_digest: (_c = m.vpSummaryDigest) !== null && _c !== void 0 ? _c : "",
154
- issuance_fee_discount: (0, helpers_1.u64ToStr)(m.issuanceFeeDiscount),
155
- verification_fee_discount: (0, helpers_1.u64ToStr)(m.verificationFeeDiscount),
167
+ op_summary_digest: (_c = m.opSummaryDigest) !== null && _c !== void 0 ? _c : "",
168
+ issuance_fee_discount: (0, helpers_1.u64ToStrIfNonZero)(m.issuanceFeeDiscount),
169
+ verification_fee_discount: (0, helpers_1.u64ToStrIfNonZero)(m.verificationFeeDiscount),
156
170
  });
157
171
  },
158
172
  fromAmino: (a) => {
159
173
  var _a, _b, _c;
160
- return tx_1.MsgSetPermissionVPToValidated.fromPartial({
174
+ return tx_1.MsgSetParticipantOPToValidated.fromPartial({
161
175
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
162
176
  operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
163
177
  id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
@@ -165,7 +179,7 @@ exports.MsgSetPermissionVPToValidatedAminoConverter = {
165
179
  validationFees: (0, helpers_1.strToU64)(a.validation_fees) != null ? Number((0, helpers_1.strToU64)(a.validation_fees).toString()) : 0,
166
180
  issuanceFees: (0, helpers_1.strToU64)(a.issuance_fees) != null ? Number((0, helpers_1.strToU64)(a.issuance_fees).toString()) : 0,
167
181
  verificationFees: (0, helpers_1.strToU64)(a.verification_fees) != null ? Number((0, helpers_1.strToU64)(a.verification_fees).toString()) : 0,
168
- vpSummaryDigest: (_c = a.vp_summary_digest) !== null && _c !== void 0 ? _c : "",
182
+ opSummaryDigest: (_c = a.op_summary_digest) !== null && _c !== void 0 ? _c : "",
169
183
  issuanceFeeDiscount: (0, helpers_1.strToU64)(a.issuance_fee_discount) != null
170
184
  ? Number((0, helpers_1.strToU64)(a.issuance_fee_discount).toString())
171
185
  : 0,
@@ -175,8 +189,8 @@ exports.MsgSetPermissionVPToValidatedAminoConverter = {
175
189
  });
176
190
  },
177
191
  };
178
- exports.MsgCancelPermissionVPLastRequestAminoConverter = {
179
- aminoType: "verana/x/perm/MsgCancelPermVPLastReq",
192
+ exports.MsgCancelParticipantOPLastRequestAminoConverter = {
193
+ aminoType: "verana/x/pp/MsgCancelPartOPLastReq",
180
194
  toAmino: (m) => {
181
195
  var _a, _b;
182
196
  return (0, helpers_1.clean)({
@@ -187,47 +201,47 @@ exports.MsgCancelPermissionVPLastRequestAminoConverter = {
187
201
  },
188
202
  fromAmino: (a) => {
189
203
  var _a, _b;
190
- return tx_1.MsgCancelPermissionVPLastRequest.fromPartial({
204
+ return tx_1.MsgCancelParticipantOPLastRequest.fromPartial({
191
205
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
192
206
  operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
193
207
  id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
194
208
  });
195
209
  },
196
210
  };
197
- exports.MsgCreateOrUpdatePermissionSessionAminoConverter = {
198
- aminoType: "verana/x/perm/MsgCreateOrUpdatePermSess",
211
+ exports.MsgCreateOrUpdateParticipantSessionAminoConverter = {
212
+ aminoType: "verana/x/pp/MsgCreateOrUpdatePartSess",
199
213
  toAmino: (m) => {
200
- var _a, _b, _c, _d;
214
+ var _a, _b, _c;
201
215
  return (0, helpers_1.clean)({
202
216
  corporation: (_a = m.corporation) !== null && _a !== void 0 ? _a : "",
203
217
  operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
204
218
  id: (_c = m.id) !== null && _c !== void 0 ? _c : "",
205
- issuer_perm_id: (0, helpers_1.u64ToStr)(m.issuerPermId),
206
- verifier_perm_id: (0, helpers_1.u64ToStr)(m.verifierPermId),
207
- agent_perm_id: (0, helpers_1.u64ToStr)(m.agentPermId),
208
- wallet_agent_perm_id: (0, helpers_1.u64ToStr)(m.walletAgentPermId),
209
- digest: (_d = m.digest) !== null && _d !== void 0 ? _d : undefined,
219
+ issuer_participant_id: (0, helpers_1.u64ToStrIfNonZero)(m.issuerParticipantId),
220
+ verifier_participant_id: (0, helpers_1.u64ToStrIfNonZero)(m.verifierParticipantId),
221
+ agent_participant_id: (0, helpers_1.u64ToStr)(m.agentParticipantId),
222
+ wallet_agent_participant_id: (0, helpers_1.u64ToStr)(m.walletAgentParticipantId),
223
+ digest: m.digest || undefined,
210
224
  });
211
225
  },
212
226
  fromAmino: (a) => {
213
227
  var _a, _b, _c, _d;
214
- return tx_1.MsgCreateOrUpdatePermissionSession.fromPartial({
228
+ return tx_1.MsgCreateOrUpdateParticipantSession.fromPartial({
215
229
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
216
230
  operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
217
231
  id: (_c = a.id) !== null && _c !== void 0 ? _c : "",
218
- issuerPermId: (0, helpers_1.strToU64)(a.issuer_perm_id) != null ? Number((0, helpers_1.strToU64)(a.issuer_perm_id).toString()) : 0,
219
- verifierPermId: (0, helpers_1.strToU64)(a.verifier_perm_id) != null ? Number((0, helpers_1.strToU64)(a.verifier_perm_id).toString()) : 0,
220
- agentPermId: (0, helpers_1.strToU64)(a.agent_perm_id) != null ? Number((0, helpers_1.strToU64)(a.agent_perm_id).toString()) : 0,
221
- walletAgentPermId: (0, helpers_1.strToU64)(a.wallet_agent_perm_id) != null
222
- ? Number((0, helpers_1.strToU64)(a.wallet_agent_perm_id).toString())
232
+ issuerParticipantId: (0, helpers_1.strToU64)(a.issuer_participant_id) != null ? Number((0, helpers_1.strToU64)(a.issuer_participant_id).toString()) : 0,
233
+ verifierParticipantId: (0, helpers_1.strToU64)(a.verifier_participant_id) != null ? Number((0, helpers_1.strToU64)(a.verifier_participant_id).toString()) : 0,
234
+ agentParticipantId: (0, helpers_1.strToU64)(a.agent_participant_id) != null ? Number((0, helpers_1.strToU64)(a.agent_participant_id).toString()) : 0,
235
+ walletAgentParticipantId: (0, helpers_1.strToU64)(a.wallet_agent_participant_id) != null
236
+ ? Number((0, helpers_1.strToU64)(a.wallet_agent_participant_id).toString())
223
237
  : 0,
224
238
  digest: (_d = a.digest) !== null && _d !== void 0 ? _d : "",
225
239
  });
226
240
  },
227
241
  };
228
- exports.MsgSlashPermissionTrustDepositAminoConverter = {
229
- aminoType: "verana/x/perm/MsgSlashPermTD",
230
- // [MOD-PERM-MSG-12-1] spec v4 draft 13 adds mandatory reason.
242
+ exports.MsgSlashParticipantTrustDepositAminoConverter = {
243
+ aminoType: "verana/x/pp/MsgSlashParticipantTD",
244
+ // [MOD-PP-MSG-12-1] spec v4 draft 13 adds mandatory reason.
231
245
  toAmino: (m) => {
232
246
  var _a, _b, _c;
233
247
  return (0, helpers_1.clean)({
@@ -240,7 +254,7 @@ exports.MsgSlashPermissionTrustDepositAminoConverter = {
240
254
  },
241
255
  fromAmino: (a) => {
242
256
  var _a, _b, _c;
243
- return tx_1.MsgSlashPermissionTrustDeposit.fromPartial({
257
+ return tx_1.MsgSlashParticipantTrustDeposit.fromPartial({
244
258
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
245
259
  operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
246
260
  id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
@@ -249,65 +263,67 @@ exports.MsgSlashPermissionTrustDepositAminoConverter = {
249
263
  });
250
264
  },
251
265
  };
252
- exports.MsgRepayPermissionSlashedTrustDepositAminoConverter = {
253
- aminoType: "verana/x/perm/MsgRepayPermSlashedTD",
266
+ exports.MsgRepayParticipantSlashedTrustDepositAminoConverter = {
267
+ aminoType: "verana/x/pp/MsgRepayPartSlashedTD",
254
268
  toAmino: (m) => {
255
269
  var _a, _b;
256
270
  return (0, helpers_1.clean)({
257
271
  corporation: (_a = m.corporation) !== null && _a !== void 0 ? _a : "",
258
272
  operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
259
273
  id: (0, helpers_1.u64ToStr)(m.id),
274
+ amount: (0, helpers_1.u64ToStrIfNonZero)(m.amount),
260
275
  });
261
276
  },
262
277
  fromAmino: (a) => {
263
278
  var _a, _b;
264
- return tx_1.MsgRepayPermissionSlashedTrustDeposit.fromPartial({
279
+ return tx_1.MsgRepayParticipantSlashedTrustDeposit.fromPartial({
265
280
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
266
281
  operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
267
282
  id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
283
+ amount: (0, helpers_1.strToU64)(a.amount) != null ? Number((0, helpers_1.strToU64)(a.amount).toString()) : 0,
268
284
  });
269
285
  },
270
286
  };
271
- exports.MsgSelfCreatePermissionAminoConverter = {
272
- aminoType: "verana/x/perm/MsgSelfCreatePermission",
287
+ exports.MsgSelfCreateParticipantAminoConverter = {
288
+ aminoType: "verana/x/pp/MsgSelfCreateParticipant",
273
289
  toAmino: (m) => {
274
- var _a, _b, _c, _d, _e, _f;
290
+ var _a, _b, _c, _d, _e, _f, _g;
275
291
  return (0, helpers_1.clean)({
276
292
  corporation: (_a = m.corporation) !== null && _a !== void 0 ? _a : "",
277
293
  operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
278
- type: (_c = m.type) !== null && _c !== void 0 ? _c : 0,
279
- validator_perm_id: (0, helpers_1.u64ToStr)(m.validatorPermId),
294
+ role: (_c = m.role) !== null && _c !== void 0 ? _c : 0,
295
+ validator_participant_id: (0, helpers_1.u64ToStr)(m.validatorParticipantId),
280
296
  did: (_d = m.did) !== null && _d !== void 0 ? _d : "",
281
297
  effective_from: (0, helpers_1.dateToIsoAmino)(m.effectiveFrom),
282
298
  effective_until: (0, helpers_1.dateToIsoAmino)(m.effectiveUntil),
283
299
  verification_fees: (0, helpers_1.u64ToStrIfNonZero)(m.verificationFees),
284
300
  validation_fees: (0, helpers_1.u64ToStrIfNonZero)(m.validationFees),
285
301
  vs_operator: m.vsOperator || undefined,
286
- vs_operator_authz_enabled: m.vsOperatorAuthzEnabled || undefined,
287
- vs_operator_authz_spend_limit: (_e = m.vsOperatorAuthzSpendLimit) !== null && _e !== void 0 ? _e : [],
302
+ vs_operator_authz_msg_types: ((_e = m.vsOperatorAuthzMsgTypes) === null || _e === void 0 ? void 0 : _e.length) ? m.vsOperatorAuthzMsgTypes : undefined,
303
+ vs_operator_authz_spend_limit: ((_f = m.vsOperatorAuthzSpendLimit) === null || _f === void 0 ? void 0 : _f.length) ? m.vsOperatorAuthzSpendLimit : null,
288
304
  vs_operator_authz_with_feegrant: m.vsOperatorAuthzWithFeegrant || undefined,
289
- vs_operator_authz_fee_spend_limit: (_f = m.vsOperatorAuthzFeeSpendLimit) !== null && _f !== void 0 ? _f : [],
290
- vs_operator_authz_spend_period: (0, helpers_1.durationToAmino)(m.vsOperatorAuthzSpendPeriod),
305
+ vs_operator_authz_fee_spend_limit: ((_g = m.vsOperatorAuthzFeeSpendLimit) === null || _g === void 0 ? void 0 : _g.length) ? m.vsOperatorAuthzFeeSpendLimit : null,
306
+ vs_operator_authz_period: (0, helpers_1.durationToAmino)(m.vsOperatorAuthzPeriod),
291
307
  });
292
308
  },
293
309
  fromAmino: (a) => {
294
310
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
295
- return tx_1.MsgSelfCreatePermission.fromPartial({
311
+ return tx_1.MsgSelfCreateParticipant.fromPartial({
296
312
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
297
313
  operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
298
- type: (_c = a.type) !== null && _c !== void 0 ? _c : 0,
299
- validatorPermId: (0, helpers_1.strToU64)(a.validator_perm_id) != null ? Number((0, helpers_1.strToU64)(a.validator_perm_id).toString()) : 0,
314
+ role: (_c = a.role) !== null && _c !== void 0 ? _c : 0,
315
+ validatorParticipantId: (0, helpers_1.strToU64)(a.validator_participant_id) != null ? Number((0, helpers_1.strToU64)(a.validator_participant_id).toString()) : 0,
300
316
  did: (_d = a.did) !== null && _d !== void 0 ? _d : "",
301
317
  effectiveFrom: (0, helpers_1.isoToDate)(a.effective_from),
302
318
  effectiveUntil: (0, helpers_1.isoToDate)(a.effective_until),
303
319
  verificationFees: (0, helpers_1.strToU64)(a.verification_fees) != null ? Number((0, helpers_1.strToU64)(a.verification_fees).toString()) : 0,
304
320
  validationFees: (0, helpers_1.strToU64)(a.validation_fees) != null ? Number((0, helpers_1.strToU64)(a.validation_fees).toString()) : 0,
305
321
  vsOperator: (_e = a.vs_operator) !== null && _e !== void 0 ? _e : "",
306
- vsOperatorAuthzEnabled: (_f = a.vs_operator_authz_enabled) !== null && _f !== void 0 ? _f : false,
322
+ vsOperatorAuthzMsgTypes: (_f = a.vs_operator_authz_msg_types) !== null && _f !== void 0 ? _f : [],
307
323
  vsOperatorAuthzSpendLimit: (_g = a.vs_operator_authz_spend_limit) !== null && _g !== void 0 ? _g : [],
308
324
  vsOperatorAuthzWithFeegrant: (_h = a.vs_operator_authz_with_feegrant) !== null && _h !== void 0 ? _h : false,
309
325
  vsOperatorAuthzFeeSpendLimit: (_j = a.vs_operator_authz_fee_spend_limit) !== null && _j !== void 0 ? _j : [],
310
- vsOperatorAuthzSpendPeriod: (0, helpers_1.aminoToDuration)(a.vs_operator_authz_spend_period),
326
+ vsOperatorAuthzPeriod: (0, helpers_1.aminoToDuration)(a.vs_operator_authz_period),
311
327
  });
312
328
  },
313
329
  };
@@ -11,14 +11,14 @@ export interface QueryParamsResponse {
11
11
  params: Params | undefined;
12
12
  }
13
13
  export interface QueryListCredentialSchemasRequest {
14
- /** optional */
15
- trId: number;
16
14
  modifiedAfter: Date | undefined;
17
15
  responseMaxSize: number;
18
16
  onlyActive: boolean;
19
17
  issuerOnboardingMode: IssuerOnboardingMode;
20
18
  verifierOnboardingMode: VerifierOnboardingMode;
21
19
  holderOnboardingMode: HolderOnboardingMode;
20
+ /** optional filter (replaces tr_id) */
21
+ ecosystemId: number;
22
22
  }
23
23
  export interface QueryListCredentialSchemasResponse {
24
24
  schemas: CredentialSchema[];
@@ -137,20 +137,17 @@ exports.QueryParamsResponse = {
137
137
  };
138
138
  function createBaseQueryListCredentialSchemasRequest() {
139
139
  return {
140
- trId: 0,
141
140
  modifiedAfter: undefined,
142
141
  responseMaxSize: 0,
143
142
  onlyActive: false,
144
143
  issuerOnboardingMode: 0,
145
144
  verifierOnboardingMode: 0,
146
145
  holderOnboardingMode: 0,
146
+ ecosystemId: 0,
147
147
  };
148
148
  }
149
149
  exports.QueryListCredentialSchemasRequest = {
150
150
  encode(message, writer = _m0.Writer.create()) {
151
- if (message.trId !== 0) {
152
- writer.uint32(8).uint64(message.trId);
153
- }
154
151
  if (message.modifiedAfter !== undefined) {
155
152
  timestamp_1.Timestamp.encode(toTimestamp(message.modifiedAfter), writer.uint32(18).fork()).ldelim();
156
153
  }
@@ -169,6 +166,9 @@ exports.QueryListCredentialSchemasRequest = {
169
166
  if (message.holderOnboardingMode !== 0) {
170
167
  writer.uint32(56).int32(message.holderOnboardingMode);
171
168
  }
169
+ if (message.ecosystemId !== 0) {
170
+ writer.uint32(64).uint64(message.ecosystemId);
171
+ }
172
172
  return writer;
173
173
  },
174
174
  decode(input, length) {
@@ -178,12 +178,6 @@ exports.QueryListCredentialSchemasRequest = {
178
178
  while (reader.pos < end) {
179
179
  const tag = reader.uint32();
180
180
  switch (tag >>> 3) {
181
- case 1:
182
- if (tag !== 8) {
183
- break;
184
- }
185
- message.trId = longToNumber(reader.uint64());
186
- continue;
187
181
  case 2:
188
182
  if (tag !== 18) {
189
183
  break;
@@ -220,6 +214,12 @@ exports.QueryListCredentialSchemasRequest = {
220
214
  }
221
215
  message.holderOnboardingMode = reader.int32();
222
216
  continue;
217
+ case 8:
218
+ if (tag !== 64) {
219
+ break;
220
+ }
221
+ message.ecosystemId = longToNumber(reader.uint64());
222
+ continue;
223
223
  }
224
224
  if ((tag & 7) === 4 || tag === 0) {
225
225
  break;
@@ -230,7 +230,6 @@ exports.QueryListCredentialSchemasRequest = {
230
230
  },
231
231
  fromJSON(object) {
232
232
  return {
233
- trId: isSet(object.trId) ? globalThis.Number(object.trId) : 0,
234
233
  modifiedAfter: isSet(object.modifiedAfter) ? fromJsonTimestamp(object.modifiedAfter) : undefined,
235
234
  responseMaxSize: isSet(object.responseMaxSize) ? globalThis.Number(object.responseMaxSize) : 0,
236
235
  onlyActive: isSet(object.onlyActive) ? globalThis.Boolean(object.onlyActive) : false,
@@ -243,13 +242,11 @@ exports.QueryListCredentialSchemasRequest = {
243
242
  holderOnboardingMode: isSet(object.holderOnboardingMode)
244
243
  ? (0, types_1.holderOnboardingModeFromJSON)(object.holderOnboardingMode)
245
244
  : 0,
245
+ ecosystemId: isSet(object.ecosystemId) ? globalThis.Number(object.ecosystemId) : 0,
246
246
  };
247
247
  },
248
248
  toJSON(message) {
249
249
  const obj = {};
250
- if (message.trId !== 0) {
251
- obj.trId = Math.round(message.trId);
252
- }
253
250
  if (message.modifiedAfter !== undefined) {
254
251
  obj.modifiedAfter = message.modifiedAfter.toISOString();
255
252
  }
@@ -268,6 +265,9 @@ exports.QueryListCredentialSchemasRequest = {
268
265
  if (message.holderOnboardingMode !== 0) {
269
266
  obj.holderOnboardingMode = (0, types_1.holderOnboardingModeToJSON)(message.holderOnboardingMode);
270
267
  }
268
+ if (message.ecosystemId !== 0) {
269
+ obj.ecosystemId = Math.round(message.ecosystemId);
270
+ }
271
271
  return obj;
272
272
  },
273
273
  create(base) {
@@ -276,13 +276,13 @@ exports.QueryListCredentialSchemasRequest = {
276
276
  fromPartial(object) {
277
277
  var _a, _b, _c, _d, _e, _f, _g;
278
278
  const message = createBaseQueryListCredentialSchemasRequest();
279
- message.trId = (_a = object.trId) !== null && _a !== void 0 ? _a : 0;
280
- message.modifiedAfter = (_b = object.modifiedAfter) !== null && _b !== void 0 ? _b : undefined;
281
- message.responseMaxSize = (_c = object.responseMaxSize) !== null && _c !== void 0 ? _c : 0;
282
- message.onlyActive = (_d = object.onlyActive) !== null && _d !== void 0 ? _d : false;
283
- message.issuerOnboardingMode = (_e = object.issuerOnboardingMode) !== null && _e !== void 0 ? _e : 0;
284
- message.verifierOnboardingMode = (_f = object.verifierOnboardingMode) !== null && _f !== void 0 ? _f : 0;
285
- message.holderOnboardingMode = (_g = object.holderOnboardingMode) !== null && _g !== void 0 ? _g : 0;
279
+ message.modifiedAfter = (_a = object.modifiedAfter) !== null && _a !== void 0 ? _a : undefined;
280
+ message.responseMaxSize = (_b = object.responseMaxSize) !== null && _b !== void 0 ? _b : 0;
281
+ message.onlyActive = (_c = object.onlyActive) !== null && _c !== void 0 ? _c : false;
282
+ message.issuerOnboardingMode = (_d = object.issuerOnboardingMode) !== null && _d !== void 0 ? _d : 0;
283
+ message.verifierOnboardingMode = (_e = object.verifierOnboardingMode) !== null && _e !== void 0 ? _e : 0;
284
+ message.holderOnboardingMode = (_f = object.holderOnboardingMode) !== null && _f !== void 0 ? _f : 0;
285
+ message.ecosystemId = (_g = object.ecosystemId) !== null && _g !== void 0 ? _g : 0;
286
286
  return message;
287
287
  },
288
288
  };
@@ -25,7 +25,6 @@ export interface MsgCreateCredentialSchema {
25
25
  corporation: string;
26
26
  /** operator is the account authorized by the corporation to run this Msg */
27
27
  operator: string;
28
- trId: number;
29
28
  jsonSchema: string;
30
29
  issuerGrantorValidationValidityPeriod: OptionalUInt32 | undefined;
31
30
  verifierGrantorValidationValidityPeriod: OptionalUInt32 | undefined;
@@ -38,6 +37,7 @@ export interface MsgCreateCredentialSchema {
38
37
  pricingAsset: string;
39
38
  digestAlgorithm: string;
40
39
  holderOnboardingMode: number;
40
+ ecosystemId: number;
41
41
  }
42
42
  export interface MsgCreateCredentialSchemaResponse {
43
43
  /** ID of the created credential schema for confirmation */