@verana-labs/verana-types 0.10.1-dev.11 → 0.10.1-dev.13

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 (82) 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} +56 -56
  12. package/dist/codec/google/protobuf/any.d.ts +143 -0
  13. package/dist/codec/google/protobuf/any.js +139 -0
  14. package/dist/codec/verana/co/module/v1/module.d.ts +29 -0
  15. package/dist/codec/verana/co/module/v1/module.js +98 -0
  16. package/dist/codec/verana/co/v1/genesis.d.ts +28 -0
  17. package/dist/codec/verana/co/v1/genesis.js +121 -0
  18. package/dist/codec/verana/co/v1/params.d.ts +29 -0
  19. package/dist/codec/verana/co/v1/params.js +81 -0
  20. package/dist/codec/verana/co/v1/query.d.ts +111 -0
  21. package/dist/codec/verana/co/v1/query.js +484 -0
  22. package/dist/codec/verana/co/v1/tx.d.ts +172 -0
  23. package/dist/codec/verana/co/v1/tx.js +639 -0
  24. package/dist/codec/verana/co/v1/types.d.ts +60 -0
  25. package/dist/codec/verana/co/v1/types.js +384 -0
  26. package/dist/codec/verana/cs/v1/query.d.ts +2 -2
  27. package/dist/codec/verana/cs/v1/query.js +21 -21
  28. package/dist/codec/verana/cs/v1/tx.d.ts +1 -1
  29. package/dist/codec/verana/cs/v1/tx.js +22 -22
  30. package/dist/codec/verana/cs/v1/types.d.ts +6 -2
  31. package/dist/codec/verana/cs/v1/types.js +30 -30
  32. package/dist/codec/verana/{tr → ec}/module/module.d.ts +1 -1
  33. package/dist/codec/verana/{tr → ec}/module/module.js +2 -2
  34. package/dist/codec/verana/{tr → ec}/v1/genesis.d.ts +10 -12
  35. package/dist/codec/verana/{tr → ec}/v1/genesis.js +16 -56
  36. package/dist/codec/verana/{tr → ec}/v1/params.d.ts +1 -1
  37. package/dist/codec/verana/{tr → ec}/v1/params.js +2 -2
  38. package/dist/codec/verana/ec/v1/query.d.ts +109 -0
  39. package/dist/codec/verana/{tr → ec}/v1/query.js +69 -71
  40. package/dist/codec/verana/ec/v1/tx.d.ts +152 -0
  41. package/dist/codec/verana/{tr → ec}/v1/tx.js +85 -403
  42. package/dist/codec/verana/ec/v1/types.d.ts +67 -0
  43. package/dist/codec/verana/ec/v1/types.js +422 -0
  44. package/dist/codec/verana/gf/module/v1/module.d.ts +29 -0
  45. package/dist/codec/verana/gf/module/v1/module.js +98 -0
  46. package/dist/codec/verana/gf/v1/genesis.d.ts +29 -0
  47. package/dist/codec/verana/gf/v1/genesis.js +137 -0
  48. package/dist/codec/verana/gf/v1/params.d.ts +28 -0
  49. package/dist/codec/verana/gf/v1/params.js +81 -0
  50. package/dist/codec/verana/gf/v1/query.d.ts +108 -0
  51. package/dist/codec/verana/gf/v1/query.js +462 -0
  52. package/dist/codec/verana/gf/v1/tx.d.ts +142 -0
  53. package/dist/codec/verana/gf/v1/tx.js +486 -0
  54. package/dist/codec/verana/{tr → gf}/v1/types.d.ts +18 -48
  55. package/dist/codec/verana/gf/v1/types.js +477 -0
  56. package/dist/codec/verana/{perm → pp}/module/module.d.ts +1 -1
  57. package/dist/codec/verana/{perm → pp}/module/module.js +2 -2
  58. package/dist/codec/verana/{perm → pp}/v1/genesis.d.ts +9 -9
  59. package/dist/codec/verana/{perm → pp}/v1/genesis.js +26 -26
  60. package/dist/codec/verana/{perm → pp}/v1/params.d.ts +1 -1
  61. package/dist/codec/verana/{perm → pp}/v1/params.js +2 -2
  62. package/dist/codec/verana/pp/v1/query.d.ts +208 -0
  63. package/dist/codec/verana/{perm → pp}/v1/query.js +148 -148
  64. package/dist/codec/verana/pp/v1/tx.d.ts +437 -0
  65. package/dist/codec/verana/{perm → pp}/v1/tx.js +255 -249
  66. package/dist/codec/verana/pp/v1/types.d.ts +140 -0
  67. package/dist/codec/verana/{perm → pp}/v1/types.js +278 -262
  68. package/dist/helpers/aminoConverters.d.ts +6 -4
  69. package/dist/helpers/aminoConverters.js +6 -4
  70. package/dist/index.d.ts +4 -2
  71. package/dist/index.js +4 -2
  72. package/dist/signing.d.ts +36 -32
  73. package/dist/signing.js +85 -68
  74. package/package.json +1 -1
  75. package/dist/amino-converter/perm.d.ts +0 -12
  76. package/dist/amino-converter/tr.js +0 -107
  77. package/dist/codec/verana/perm/v1/query.d.ts +0 -208
  78. package/dist/codec/verana/perm/v1/tx.d.ts +0 -441
  79. package/dist/codec/verana/perm/v1/types.d.ts +0 -134
  80. package/dist/codec/verana/tr/v1/query.d.ts +0 -117
  81. package/dist/codec/verana/tr/v1/tx.d.ts +0 -255
  82. package/dist/codec/verana/tr/v1/types.js +0 -809
@@ -1,12 +1,12 @@
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;
7
+ exports.MsgCreateRootParticipantAminoConverter = {
8
+ aminoType: "verana/x/pp/MsgCreateRootParticipant",
9
+ // [MOD-PERM-MSG-7-3] spec v4 draft 13: perm.role is hardcoded to ECOSYSTEM;
10
10
  // vs_operator is not set on root permissions.
11
11
  toAmino: (m) => {
12
12
  var _a, _b, _c;
@@ -24,7 +24,7 @@ exports.MsgCreateRootPermissionAminoConverter = {
24
24
  },
25
25
  fromAmino: (a) => {
26
26
  var _a, _b, _c;
27
- return tx_1.MsgCreateRootPermission.fromPartial({
27
+ return tx_1.MsgCreateRootParticipant.fromPartial({
28
28
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
29
29
  operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
30
30
  schemaId: (0, helpers_1.strToU64)(a.schema_id) != null ? Number((0, helpers_1.strToU64)(a.schema_id).toString()) : 0,
@@ -37,8 +37,8 @@ exports.MsgCreateRootPermissionAminoConverter = {
37
37
  });
38
38
  },
39
39
  };
40
- exports.MsgAdjustPermissionAminoConverter = {
41
- aminoType: "verana/x/perm/MsgAdjustPermission",
40
+ exports.MsgSetParticipantEffectiveUntilAminoConverter = {
41
+ aminoType: "verana/x/pp/MsgSetPartEffectiveUntil",
42
42
  toAmino: (m) => {
43
43
  var _a, _b;
44
44
  return (0, helpers_1.clean)({
@@ -50,7 +50,7 @@ exports.MsgAdjustPermissionAminoConverter = {
50
50
  },
51
51
  fromAmino: (a) => {
52
52
  var _a, _b;
53
- return tx_1.MsgAdjustPermission.fromPartial({
53
+ return tx_1.MsgSetParticipantEffectiveUntil.fromPartial({
54
54
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
55
55
  operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
56
56
  id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
@@ -58,8 +58,8 @@ exports.MsgAdjustPermissionAminoConverter = {
58
58
  });
59
59
  },
60
60
  };
61
- exports.MsgRevokePermissionAminoConverter = {
62
- aminoType: "verana/x/perm/MsgRevokePermission",
61
+ exports.MsgRevokeParticipantAminoConverter = {
62
+ aminoType: "verana/x/pp/MsgRevokeParticipant",
63
63
  toAmino: (m) => {
64
64
  var _a, _b;
65
65
  return (0, helpers_1.clean)({
@@ -70,22 +70,22 @@ exports.MsgRevokePermissionAminoConverter = {
70
70
  },
71
71
  fromAmino: (a) => {
72
72
  var _a, _b;
73
- return tx_1.MsgRevokePermission.fromPartial({
73
+ return tx_1.MsgRevokeParticipant.fromPartial({
74
74
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
75
75
  operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
76
76
  id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
77
77
  });
78
78
  },
79
79
  };
80
- exports.MsgStartPermissionVPAminoConverter = {
81
- aminoType: "verana/x/perm/MsgStartPermissionVP",
80
+ exports.MsgStartParticipantOPAminoConverter = {
81
+ aminoType: "verana/x/pp/MsgStartParticipantOP",
82
82
  toAmino: (m) => {
83
83
  var _a, _b, _c, _d, _e, _f;
84
84
  return (0, helpers_1.clean)({
85
85
  corporation: (_a = m.corporation) !== null && _a !== void 0 ? _a : "",
86
86
  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),
87
+ role: (_c = m.role) !== null && _c !== void 0 ? _c : types_1.ParticipantRole.UNSPECIFIED,
88
+ validator_participant_id: (0, helpers_1.u64ToStr)(m.validatorParticipantId),
89
89
  did: (_d = m.did) !== null && _d !== void 0 ? _d : "",
90
90
  validation_fees: m.validationFees ? { value: (0, helpers_1.u64ToStr)(m.validationFees.value) } : undefined,
91
91
  issuance_fees: m.issuanceFees ? { value: (0, helpers_1.u64ToStr)(m.issuanceFees.value) } : undefined,
@@ -100,11 +100,11 @@ exports.MsgStartPermissionVPAminoConverter = {
100
100
  },
101
101
  fromAmino: (a) => {
102
102
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
103
- return tx_1.MsgStartPermissionVP.fromPartial({
103
+ return tx_1.MsgStartParticipantOP.fromPartial({
104
104
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
105
105
  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,
106
+ role: (_c = a.role) !== null && _c !== void 0 ? _c : types_1.ParticipantRole.UNSPECIFIED,
107
+ validatorParticipantId: (0, helpers_1.strToU64)(a.validator_participant_id) != null ? Number((0, helpers_1.strToU64)(a.validator_participant_id).toString()) : 0,
108
108
  did: (_d = a.did) !== null && _d !== void 0 ? _d : "",
109
109
  validationFees: a.validation_fees ? { value: Number((_e = a.validation_fees.value) !== null && _e !== void 0 ? _e : a.validation_fees) } : undefined,
110
110
  issuanceFees: a.issuance_fees ? { value: Number((_f = a.issuance_fees.value) !== null && _f !== void 0 ? _f : a.issuance_fees) } : undefined,
@@ -118,8 +118,8 @@ exports.MsgStartPermissionVPAminoConverter = {
118
118
  });
119
119
  },
120
120
  };
121
- exports.MsgRenewPermissionVPAminoConverter = {
122
- aminoType: "verana/x/perm/MsgRenewPermissionVP",
121
+ exports.MsgRenewParticipantOPAminoConverter = {
122
+ aminoType: "verana/x/pp/MsgRenewParticipantOP",
123
123
  // [MOD-PERM-MSG-2-1] spec v4 draft 13 parameters: corporation, operator, id.
124
124
  toAmino: (m) => {
125
125
  var _a, _b;
@@ -131,15 +131,15 @@ exports.MsgRenewPermissionVPAminoConverter = {
131
131
  },
132
132
  fromAmino: (a) => {
133
133
  var _a, _b;
134
- return tx_1.MsgRenewPermissionVP.fromPartial({
134
+ return tx_1.MsgRenewParticipantOP.fromPartial({
135
135
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
136
136
  operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
137
137
  id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
138
138
  });
139
139
  },
140
140
  };
141
- exports.MsgSetPermissionVPToValidatedAminoConverter = {
142
- aminoType: "verana/x/perm/MsgSetPermVPValidated",
141
+ exports.MsgSetParticipantOPToValidatedAminoConverter = {
142
+ aminoType: "verana/x/pp/MsgSetPartOPValidated",
143
143
  toAmino: (m) => {
144
144
  var _a, _b, _c;
145
145
  return (0, helpers_1.clean)({
@@ -150,14 +150,14 @@ exports.MsgSetPermissionVPToValidatedAminoConverter = {
150
150
  validation_fees: (0, helpers_1.u64ToStr)(m.validationFees),
151
151
  issuance_fees: (0, helpers_1.u64ToStr)(m.issuanceFees),
152
152
  verification_fees: (0, helpers_1.u64ToStr)(m.verificationFees),
153
- vp_summary_digest: (_c = m.vpSummaryDigest) !== null && _c !== void 0 ? _c : "",
153
+ op_summary_digest: (_c = m.opSummaryDigest) !== null && _c !== void 0 ? _c : "",
154
154
  issuance_fee_discount: (0, helpers_1.u64ToStr)(m.issuanceFeeDiscount),
155
155
  verification_fee_discount: (0, helpers_1.u64ToStr)(m.verificationFeeDiscount),
156
156
  });
157
157
  },
158
158
  fromAmino: (a) => {
159
159
  var _a, _b, _c;
160
- return tx_1.MsgSetPermissionVPToValidated.fromPartial({
160
+ return tx_1.MsgSetParticipantOPToValidated.fromPartial({
161
161
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
162
162
  operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
163
163
  id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
@@ -165,7 +165,7 @@ exports.MsgSetPermissionVPToValidatedAminoConverter = {
165
165
  validationFees: (0, helpers_1.strToU64)(a.validation_fees) != null ? Number((0, helpers_1.strToU64)(a.validation_fees).toString()) : 0,
166
166
  issuanceFees: (0, helpers_1.strToU64)(a.issuance_fees) != null ? Number((0, helpers_1.strToU64)(a.issuance_fees).toString()) : 0,
167
167
  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 : "",
168
+ opSummaryDigest: (_c = a.op_summary_digest) !== null && _c !== void 0 ? _c : "",
169
169
  issuanceFeeDiscount: (0, helpers_1.strToU64)(a.issuance_fee_discount) != null
170
170
  ? Number((0, helpers_1.strToU64)(a.issuance_fee_discount).toString())
171
171
  : 0,
@@ -175,8 +175,8 @@ exports.MsgSetPermissionVPToValidatedAminoConverter = {
175
175
  });
176
176
  },
177
177
  };
178
- exports.MsgCancelPermissionVPLastRequestAminoConverter = {
179
- aminoType: "verana/x/perm/MsgCancelPermVPLastReq",
178
+ exports.MsgCancelParticipantOPLastRequestAminoConverter = {
179
+ aminoType: "verana/x/pp/MsgCancelPartOPLastReq",
180
180
  toAmino: (m) => {
181
181
  var _a, _b;
182
182
  return (0, helpers_1.clean)({
@@ -187,46 +187,46 @@ exports.MsgCancelPermissionVPLastRequestAminoConverter = {
187
187
  },
188
188
  fromAmino: (a) => {
189
189
  var _a, _b;
190
- return tx_1.MsgCancelPermissionVPLastRequest.fromPartial({
190
+ return tx_1.MsgCancelParticipantOPLastRequest.fromPartial({
191
191
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
192
192
  operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
193
193
  id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
194
194
  });
195
195
  },
196
196
  };
197
- exports.MsgCreateOrUpdatePermissionSessionAminoConverter = {
198
- aminoType: "verana/x/perm/MsgCreateOrUpdatePermSess",
197
+ exports.MsgCreateOrUpdateParticipantSessionAminoConverter = {
198
+ aminoType: "verana/x/pp/MsgCreateOrUpdatePartSess",
199
199
  toAmino: (m) => {
200
200
  var _a, _b, _c, _d;
201
201
  return (0, helpers_1.clean)({
202
202
  corporation: (_a = m.corporation) !== null && _a !== void 0 ? _a : "",
203
203
  operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
204
204
  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),
205
+ issuer_participant_id: (0, helpers_1.u64ToStr)(m.issuerParticipantId),
206
+ verifier_participant_id: (0, helpers_1.u64ToStr)(m.verifierParticipantId),
207
+ agent_participant_id: (0, helpers_1.u64ToStr)(m.agentParticipantId),
208
+ wallet_agent_participant_id: (0, helpers_1.u64ToStr)(m.walletAgentParticipantId),
209
209
  digest: (_d = m.digest) !== null && _d !== void 0 ? _d : undefined,
210
210
  });
211
211
  },
212
212
  fromAmino: (a) => {
213
213
  var _a, _b, _c, _d;
214
- return tx_1.MsgCreateOrUpdatePermissionSession.fromPartial({
214
+ return tx_1.MsgCreateOrUpdateParticipantSession.fromPartial({
215
215
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
216
216
  operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
217
217
  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())
218
+ issuerParticipantId: (0, helpers_1.strToU64)(a.issuer_participant_id) != null ? Number((0, helpers_1.strToU64)(a.issuer_participant_id).toString()) : 0,
219
+ verifierParticipantId: (0, helpers_1.strToU64)(a.verifier_participant_id) != null ? Number((0, helpers_1.strToU64)(a.verifier_participant_id).toString()) : 0,
220
+ agentParticipantId: (0, helpers_1.strToU64)(a.agent_participant_id) != null ? Number((0, helpers_1.strToU64)(a.agent_participant_id).toString()) : 0,
221
+ walletAgentParticipantId: (0, helpers_1.strToU64)(a.wallet_agent_participant_id) != null
222
+ ? Number((0, helpers_1.strToU64)(a.wallet_agent_participant_id).toString())
223
223
  : 0,
224
224
  digest: (_d = a.digest) !== null && _d !== void 0 ? _d : "",
225
225
  });
226
226
  },
227
227
  };
228
- exports.MsgSlashPermissionTrustDepositAminoConverter = {
229
- aminoType: "verana/x/perm/MsgSlashPermTD",
228
+ exports.MsgSlashParticipantTrustDepositAminoConverter = {
229
+ aminoType: "verana/x/pp/MsgSlashParticipantTD",
230
230
  // [MOD-PERM-MSG-12-1] spec v4 draft 13 adds mandatory reason.
231
231
  toAmino: (m) => {
232
232
  var _a, _b, _c;
@@ -240,7 +240,7 @@ exports.MsgSlashPermissionTrustDepositAminoConverter = {
240
240
  },
241
241
  fromAmino: (a) => {
242
242
  var _a, _b, _c;
243
- return tx_1.MsgSlashPermissionTrustDeposit.fromPartial({
243
+ return tx_1.MsgSlashParticipantTrustDeposit.fromPartial({
244
244
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
245
245
  operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
246
246
  id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
@@ -249,8 +249,8 @@ exports.MsgSlashPermissionTrustDepositAminoConverter = {
249
249
  });
250
250
  },
251
251
  };
252
- exports.MsgRepayPermissionSlashedTrustDepositAminoConverter = {
253
- aminoType: "verana/x/perm/MsgRepayPermSlashedTD",
252
+ exports.MsgRepayParticipantSlashedTrustDepositAminoConverter = {
253
+ aminoType: "verana/x/pp/MsgRepayPartSlashedTD",
254
254
  toAmino: (m) => {
255
255
  var _a, _b;
256
256
  return (0, helpers_1.clean)({
@@ -261,22 +261,22 @@ exports.MsgRepayPermissionSlashedTrustDepositAminoConverter = {
261
261
  },
262
262
  fromAmino: (a) => {
263
263
  var _a, _b;
264
- return tx_1.MsgRepayPermissionSlashedTrustDeposit.fromPartial({
264
+ return tx_1.MsgRepayParticipantSlashedTrustDeposit.fromPartial({
265
265
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
266
266
  operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
267
267
  id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
268
268
  });
269
269
  },
270
270
  };
271
- exports.MsgSelfCreatePermissionAminoConverter = {
272
- aminoType: "verana/x/perm/MsgSelfCreatePermission",
271
+ exports.MsgSelfCreateParticipantAminoConverter = {
272
+ aminoType: "verana/x/pp/MsgSelfCreateParticipant",
273
273
  toAmino: (m) => {
274
274
  var _a, _b, _c, _d, _e, _f;
275
275
  return (0, helpers_1.clean)({
276
276
  corporation: (_a = m.corporation) !== null && _a !== void 0 ? _a : "",
277
277
  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),
278
+ role: (_c = m.role) !== null && _c !== void 0 ? _c : 0,
279
+ validator_participant_id: (0, helpers_1.u64ToStr)(m.validatorParticipantId),
280
280
  did: (_d = m.did) !== null && _d !== void 0 ? _d : "",
281
281
  effective_from: (0, helpers_1.dateToIsoAmino)(m.effectiveFrom),
282
282
  effective_until: (0, helpers_1.dateToIsoAmino)(m.effectiveUntil),
@@ -292,11 +292,11 @@ exports.MsgSelfCreatePermissionAminoConverter = {
292
292
  },
293
293
  fromAmino: (a) => {
294
294
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
295
- return tx_1.MsgSelfCreatePermission.fromPartial({
295
+ return tx_1.MsgSelfCreateParticipant.fromPartial({
296
296
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
297
297
  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,
298
+ role: (_c = a.role) !== null && _c !== void 0 ? _c : 0,
299
+ validatorParticipantId: (0, helpers_1.strToU64)(a.validator_participant_id) != null ? Number((0, helpers_1.strToU64)(a.validator_participant_id).toString()) : 0,
300
300
  did: (_d = a.did) !== null && _d !== void 0 ? _d : "",
301
301
  effectiveFrom: (0, helpers_1.isoToDate)(a.effective_from),
302
302
  effectiveUntil: (0, helpers_1.isoToDate)(a.effective_until),
@@ -0,0 +1,143 @@
1
+ import * as _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "google.protobuf";
3
+ /**
4
+ * `Any` contains an arbitrary serialized protocol buffer message along with a
5
+ * URL that describes the type of the serialized message.
6
+ *
7
+ * Protobuf library provides support to pack/unpack Any values in the form
8
+ * of utility functions or additional generated methods of the Any type.
9
+ *
10
+ * Example 1: Pack and unpack a message in C++.
11
+ *
12
+ * Foo foo = ...;
13
+ * Any any;
14
+ * any.PackFrom(foo);
15
+ * ...
16
+ * if (any.UnpackTo(&foo)) {
17
+ * ...
18
+ * }
19
+ *
20
+ * Example 2: Pack and unpack a message in Java.
21
+ *
22
+ * Foo foo = ...;
23
+ * Any any = Any.pack(foo);
24
+ * ...
25
+ * if (any.is(Foo.class)) {
26
+ * foo = any.unpack(Foo.class);
27
+ * }
28
+ * // or ...
29
+ * if (any.isSameTypeAs(Foo.getDefaultInstance())) {
30
+ * foo = any.unpack(Foo.getDefaultInstance());
31
+ * }
32
+ *
33
+ * Example 3: Pack and unpack a message in Python.
34
+ *
35
+ * foo = Foo(...)
36
+ * any = Any()
37
+ * any.Pack(foo)
38
+ * ...
39
+ * if any.Is(Foo.DESCRIPTOR):
40
+ * any.Unpack(foo)
41
+ * ...
42
+ *
43
+ * Example 4: Pack and unpack a message in Go
44
+ *
45
+ * foo := &pb.Foo{...}
46
+ * any, err := anypb.New(foo)
47
+ * if err != nil {
48
+ * ...
49
+ * }
50
+ * ...
51
+ * foo := &pb.Foo{}
52
+ * if err := any.UnmarshalTo(foo); err != nil {
53
+ * ...
54
+ * }
55
+ *
56
+ * The pack methods provided by protobuf library will by default use
57
+ * 'type.googleapis.com/full.type.name' as the type URL and the unpack
58
+ * methods only use the fully qualified type name after the last '/'
59
+ * in the type URL, for example "foo.bar.com/x/y.z" will yield type
60
+ * name "y.z".
61
+ *
62
+ * JSON
63
+ * ====
64
+ * The JSON representation of an `Any` value uses the regular
65
+ * representation of the deserialized, embedded message, with an
66
+ * additional field `@type` which contains the type URL. Example:
67
+ *
68
+ * package google.profile;
69
+ * message Person {
70
+ * string first_name = 1;
71
+ * string last_name = 2;
72
+ * }
73
+ *
74
+ * {
75
+ * "@type": "type.googleapis.com/google.profile.Person",
76
+ * "firstName": <string>,
77
+ * "lastName": <string>
78
+ * }
79
+ *
80
+ * If the embedded message type is well-known and has a custom JSON
81
+ * representation, that representation will be embedded adding a field
82
+ * `value` which holds the custom JSON in addition to the `@type`
83
+ * field. Example (for message [google.protobuf.Duration][]):
84
+ *
85
+ * {
86
+ * "@type": "type.googleapis.com/google.protobuf.Duration",
87
+ * "value": "1.212s"
88
+ * }
89
+ */
90
+ export interface Any {
91
+ /**
92
+ * A URL/resource name that uniquely identifies the type of the serialized
93
+ * protocol buffer message. This string must contain at least
94
+ * one "/" character. The last segment of the URL's path must represent
95
+ * the fully qualified name of the type (as in
96
+ * `path/google.protobuf.Duration`). The name should be in a canonical form
97
+ * (e.g., leading "." is not accepted).
98
+ *
99
+ * In practice, teams usually precompile into the binary all types that they
100
+ * expect it to use in the context of Any. However, for URLs which use the
101
+ * scheme `http`, `https`, or no scheme, one can optionally set up a type
102
+ * server that maps type URLs to message definitions as follows:
103
+ *
104
+ * * If no scheme is provided, `https` is assumed.
105
+ * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
106
+ * value in binary format, or produce an error.
107
+ * * Applications are allowed to cache lookup results based on the
108
+ * URL, or have them precompiled into a binary to avoid any
109
+ * lookup. Therefore, binary compatibility needs to be preserved
110
+ * on changes to types. (Use versioned type names to manage
111
+ * breaking changes.)
112
+ *
113
+ * Note: this functionality is not currently available in the official
114
+ * protobuf release, and it is not used for type URLs beginning with
115
+ * type.googleapis.com. As of May 2023, there are no widely used type server
116
+ * implementations and no plans to implement one.
117
+ *
118
+ * Schemes other than `http`, `https` (or the empty scheme) might be
119
+ * used with implementation specific semantics.
120
+ */
121
+ typeUrl: string;
122
+ /** Must be a valid serialized protocol buffer of the above specified type. */
123
+ value: Uint8Array;
124
+ }
125
+ export declare const Any: {
126
+ encode(message: Any, writer?: _m0.Writer): _m0.Writer;
127
+ decode(input: _m0.Reader | Uint8Array, length?: number): Any;
128
+ fromJSON(object: any): Any;
129
+ toJSON(message: Any): unknown;
130
+ create<I extends Exact<DeepPartial<Any>, I>>(base?: I): Any;
131
+ fromPartial<I extends Exact<DeepPartial<Any>, I>>(object: I): Any;
132
+ };
133
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
134
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
135
+ [K in keyof T]?: DeepPartial<T[K]>;
136
+ } : Partial<T>;
137
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
138
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
139
+ [K in keyof P]: Exact<P[K], I[K]>;
140
+ } & {
141
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
142
+ };
143
+ export {};
@@ -0,0 +1,139 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.2
5
+ // protoc unknown
6
+ // source: google/protobuf/any.proto
7
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
8
+ if (k2 === undefined) k2 = k;
9
+ var desc = Object.getOwnPropertyDescriptor(m, k);
10
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
11
+ desc = { enumerable: true, get: function() { return m[k]; } };
12
+ }
13
+ Object.defineProperty(o, k2, desc);
14
+ }) : (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ o[k2] = m[k];
17
+ }));
18
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
19
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
20
+ }) : function(o, v) {
21
+ o["default"] = v;
22
+ });
23
+ var __importStar = (this && this.__importStar) || (function () {
24
+ var ownKeys = function(o) {
25
+ ownKeys = Object.getOwnPropertyNames || function (o) {
26
+ var ar = [];
27
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
28
+ return ar;
29
+ };
30
+ return ownKeys(o);
31
+ };
32
+ return function (mod) {
33
+ if (mod && mod.__esModule) return mod;
34
+ var result = {};
35
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
36
+ __setModuleDefault(result, mod);
37
+ return result;
38
+ };
39
+ })();
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.Any = exports.protobufPackage = void 0;
42
+ /* eslint-disable */
43
+ const _m0 = __importStar(require("protobufjs/minimal"));
44
+ exports.protobufPackage = "google.protobuf";
45
+ function createBaseAny() {
46
+ return { typeUrl: "", value: new Uint8Array(0) };
47
+ }
48
+ exports.Any = {
49
+ encode(message, writer = _m0.Writer.create()) {
50
+ if (message.typeUrl !== "") {
51
+ writer.uint32(10).string(message.typeUrl);
52
+ }
53
+ if (message.value.length !== 0) {
54
+ writer.uint32(18).bytes(message.value);
55
+ }
56
+ return writer;
57
+ },
58
+ decode(input, length) {
59
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
60
+ let end = length === undefined ? reader.len : reader.pos + length;
61
+ const message = createBaseAny();
62
+ while (reader.pos < end) {
63
+ const tag = reader.uint32();
64
+ switch (tag >>> 3) {
65
+ case 1:
66
+ if (tag !== 10) {
67
+ break;
68
+ }
69
+ message.typeUrl = reader.string();
70
+ continue;
71
+ case 2:
72
+ if (tag !== 18) {
73
+ break;
74
+ }
75
+ message.value = reader.bytes();
76
+ continue;
77
+ }
78
+ if ((tag & 7) === 4 || tag === 0) {
79
+ break;
80
+ }
81
+ reader.skipType(tag & 7);
82
+ }
83
+ return message;
84
+ },
85
+ fromJSON(object) {
86
+ return {
87
+ typeUrl: isSet(object.typeUrl) ? globalThis.String(object.typeUrl) : "",
88
+ value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),
89
+ };
90
+ },
91
+ toJSON(message) {
92
+ const obj = {};
93
+ if (message.typeUrl !== "") {
94
+ obj.typeUrl = message.typeUrl;
95
+ }
96
+ if (message.value.length !== 0) {
97
+ obj.value = base64FromBytes(message.value);
98
+ }
99
+ return obj;
100
+ },
101
+ create(base) {
102
+ return exports.Any.fromPartial(base !== null && base !== void 0 ? base : {});
103
+ },
104
+ fromPartial(object) {
105
+ var _a, _b;
106
+ const message = createBaseAny();
107
+ message.typeUrl = (_a = object.typeUrl) !== null && _a !== void 0 ? _a : "";
108
+ message.value = (_b = object.value) !== null && _b !== void 0 ? _b : new Uint8Array(0);
109
+ return message;
110
+ },
111
+ };
112
+ function bytesFromBase64(b64) {
113
+ if (globalThis.Buffer) {
114
+ return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
115
+ }
116
+ else {
117
+ const bin = globalThis.atob(b64);
118
+ const arr = new Uint8Array(bin.length);
119
+ for (let i = 0; i < bin.length; ++i) {
120
+ arr[i] = bin.charCodeAt(i);
121
+ }
122
+ return arr;
123
+ }
124
+ }
125
+ function base64FromBytes(arr) {
126
+ if (globalThis.Buffer) {
127
+ return globalThis.Buffer.from(arr).toString("base64");
128
+ }
129
+ else {
130
+ const bin = [];
131
+ arr.forEach((byte) => {
132
+ bin.push(globalThis.String.fromCharCode(byte));
133
+ });
134
+ return globalThis.btoa(bin.join(""));
135
+ }
136
+ }
137
+ function isSet(value) {
138
+ return value !== null && value !== undefined;
139
+ }
@@ -0,0 +1,29 @@
1
+ import * as _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "verana.co.module.v1";
3
+ /** Module is the config object for the module. */
4
+ export interface Module {
5
+ /**
6
+ * authority defines the custom module authority.
7
+ * If not set, defaults to the governance module.
8
+ */
9
+ authority: string;
10
+ }
11
+ export declare const Module: {
12
+ encode(message: Module, writer?: _m0.Writer): _m0.Writer;
13
+ decode(input: _m0.Reader | Uint8Array, length?: number): Module;
14
+ fromJSON(object: any): Module;
15
+ toJSON(message: Module): unknown;
16
+ create<I extends Exact<DeepPartial<Module>, I>>(base?: I): Module;
17
+ fromPartial<I extends Exact<DeepPartial<Module>, I>>(object: I): Module;
18
+ };
19
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
20
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
21
+ [K in keyof T]?: DeepPartial<T[K]>;
22
+ } : Partial<T>;
23
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
24
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
25
+ [K in keyof P]: Exact<P[K], I[K]>;
26
+ } & {
27
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
28
+ };
29
+ export {};