pshenmic-dpp 1.1.0-dev.1 → 1.1.0-dev.2

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.
@@ -115,20 +115,20 @@ export const verifyTokenTotalSupplyProof: (a: number, b: number, c: number, d: n
115
115
  export const verifiedtokensbalancesforidentitywasm_type_name: (a: number, b: number) => void;
116
116
  export const verifiedtokensbalancesforidentitywasm_struct_name: (a: number) => void;
117
117
  export const verifyTokensBalancesForIdentityProof: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
118
- export const __wbg_verifiedtokentotalsupplywasm_free: (a: number, b: number) => void;
119
118
  export const __wbg_verifiedidentitynoncewasm_free: (a: number, b: number) => void;
120
- export const __wbg_verifiedidentitycontractnoncewasm_free: (a: number, b: number) => void;
121
119
  export const __wbg_verifiedtotalcreditswasm_free: (a: number, b: number) => void;
120
+ export const __wbg_verifiedidentitycontractnoncewasm_free: (a: number, b: number) => void;
121
+ export const __wbg_verifiedtokentotalsupplywasm_free: (a: number, b: number) => void;
122
122
  export const __wbg_verifiedtokensbalancesforidentitywasm_free: (a: number, b: number) => void;
123
123
  export const __wbg_verifiedidentitybyuniquekeyhashwasm_free: (a: number, b: number) => void;
124
+ export const verifiedidentitynoncewasm_nonce: (a: number, b: number) => void;
125
+ export const verifiedidentitynoncewasm_root_hash: (a: number) => number;
126
+ export const verifiedidentitybyuniquekeyhashwasm_identity: (a: number) => number;
127
+ export const verifiedidentitybyuniquekeyhashwasm_root_hash: (a: number) => number;
124
128
  export const verifiedidentitycontractnoncewasm_contract_nonce: (a: number, b: number) => void;
125
129
  export const verifiedidentitycontractnoncewasm_root_hash: (a: number) => number;
126
130
  export const verifiedtokensbalancesforidentitywasm_balances: (a: number) => number;
127
131
  export const verifiedtokensbalancesforidentitywasm_root_hash: (a: number) => number;
128
- export const verifiedidentitybyuniquekeyhashwasm_identity: (a: number) => number;
129
- export const verifiedidentitybyuniquekeyhashwasm_root_hash: (a: number) => number;
130
- export const verifiedidentitynoncewasm_nonce: (a: number, b: number) => void;
131
- export const verifiedidentitynoncewasm_root_hash: (a: number) => number;
132
132
  export const __wbg_partialidentitywasm_free: (a: number, b: number) => void;
133
133
  export const partialidentitywasm_new: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: bigint, h: number) => void;
134
134
  export const partialidentitywasm_id: (a: number) => number;
@@ -828,16 +828,16 @@ export const batchtransitionwasm_fromHex: (a: number, b: number, c: number) => v
828
828
  export const tokenpaymentinfowasm_set_minimum_token_cost: (a: number, b: number, c: bigint) => void;
829
829
  export const tokenfreezetransitionwasm_new: (a: number, b: number, c: number, d: number, e: number) => void;
830
830
  export const tokenunfreezetransitionwasm_new: (a: number, b: number, c: number, d: number, e: number) => void;
831
- export const __wbg_tokenfreezetransitionwasm_free: (a: number, b: number) => void;
832
- export const __wbg_tokenemergencyactiontransitionwasm_free: (a: number, b: number) => void;
833
831
  export const __wbg_tokenunfreezetransitionwasm_free: (a: number, b: number) => void;
834
832
  export const __wbg_documentupdatepricetransitionwasm_free: (a: number, b: number) => void;
835
833
  export const __wbg_documentdeletetransitionwasm_free: (a: number, b: number) => void;
834
+ export const __wbg_tokenemergencyactiontransitionwasm_free: (a: number, b: number) => void;
835
+ export const __wbg_tokenfreezetransitionwasm_free: (a: number, b: number) => void;
836
+ export const tokenunfreezetransitionwasm_get_base: (a: number) => number;
837
+ export const tokenemergencyactiontransitionwasm_get_base: (a: number) => number;
836
838
  export const tokenfreezetransitionwasm_get_base: (a: number) => number;
837
839
  export const documentupdatepricetransitionwasm_get_price: (a: number) => bigint;
838
840
  export const documentupdatepricetransitionwasm_get_base: (a: number) => number;
839
- export const tokenunfreezetransitionwasm_get_base: (a: number) => number;
840
- export const tokenemergencyactiontransitionwasm_get_base: (a: number) => number;
841
841
  export const documentupdatepricetransitionwasm_set_price: (a: number, b: bigint) => void;
842
842
  export const tokenunfreezetransitionwasm_set_base: (a: number, b: number) => void;
843
843
  export const tokenemergencyactiontransitionwasm_set_base: (a: number, b: number) => void;
@@ -1248,23 +1248,22 @@ export const __wbg_set_distributioninvertedlogarithmicwasm_n: (a: number, b: big
1248
1248
  export const __wbg_set_distributioninvertedlogarithmicwasm_o: (a: number, b: bigint) => void;
1249
1249
  export const __wbg_set_distributioninvertedlogarithmicwasm_b: (a: number, b: bigint) => void;
1250
1250
  export const __wbg_set_timebaseddistributionwasm_interval: (a: number, b: bigint) => void;
1251
+ export const __wbg_set_distributionlogarithmicwasm_startMoment: (a: number, b: number, c: bigint) => void;
1251
1252
  export const __wbg_set_distributionstepdecreasingamountwasm_startDecreasingOffset: (a: number, b: number, c: bigint) => void;
1252
1253
  export const __wbg_set_distributionlinearwasm_startStep: (a: number, b: number, c: bigint) => void;
1254
+ export const __wbg_set_distributionrandomwasm_min: (a: number, b: bigint) => void;
1255
+ export const __wbg_get_distributionrandomwasm_min: (a: number) => bigint;
1253
1256
  export const __wbg_set_distributioninvertedlogarithmicwasm_startMoment: (a: number, b: number, c: bigint) => void;
1254
- export const __wbg_distributioninvertedlogarithmicwasm_free: (a: number, b: number) => void;
1255
1257
  export const __wbg_set_distributionpolynomialwasm_startMoment: (a: number, b: number, c: bigint) => void;
1256
- export const __wbg_distributionpolynomialwasm_free: (a: number, b: number) => void;
1257
- export const __wbg_set_distributionlogarithmicwasm_startMoment: (a: number, b: number, c: bigint) => void;
1258
- export const __wbg_distributionlogarithmicwasm_free: (a: number, b: number) => void;
1259
- export const __wbg_get_distributionrandomwasm_min: (a: number) => bigint;
1260
- export const __wbg_get_distributionlinearwasm_maxValue: (a: number, b: number) => void;
1261
- export const __wbg_get_distributionlinearwasm_minValue: (a: number, b: number) => void;
1262
- export const __wbg_get_distributionlinearwasm_startingAmount: (a: number) => bigint;
1263
- export const __wbg_get_distributionlinearwasm_startStep: (a: number, b: number) => void;
1264
- export const __wbg_get_distributionlinearwasm_d: (a: number) => bigint;
1265
- export const __wbg_get_distributionlinearwasm_a: (a: number) => bigint;
1266
- export const __wbg_get_distributionstepdecreasingamountwasm_minValue: (a: number, b: number) => void;
1267
- export const __wbg_get_distributionstepdecreasingamountwasm_startDecreasingOffset: (a: number, b: number) => void;
1258
+ export const __wbg_get_distributionpolynomialwasm_maxValue: (a: number, b: number) => void;
1259
+ export const __wbg_get_distributionpolynomialwasm_minValue: (a: number, b: number) => void;
1260
+ export const __wbg_get_distributionpolynomialwasm_b: (a: number) => bigint;
1261
+ export const __wbg_get_distributionpolynomialwasm_startMoment: (a: number, b: number) => void;
1262
+ export const __wbg_get_distributionpolynomialwasm_o: (a: number) => bigint;
1263
+ export const __wbg_get_distributionpolynomialwasm_n: (a: number) => bigint;
1264
+ export const __wbg_get_distributionpolynomialwasm_m: (a: number) => bigint;
1265
+ export const __wbg_get_distributionpolynomialwasm_d: (a: number) => bigint;
1266
+ export const __wbg_get_distributionpolynomialwasm_a: (a: number) => bigint;
1268
1267
  export const __wbg_get_timebaseddistributionwasm_interval: (a: number) => bigint;
1269
1268
  export const __wbg_get_distributionlogarithmicwasm_maxValue: (a: number, b: number) => void;
1270
1269
  export const __wbg_get_distributionlogarithmicwasm_minValue: (a: number, b: number) => void;
@@ -1275,15 +1274,12 @@ export const __wbg_get_distributionlogarithmicwasm_n: (a: number) => bigint;
1275
1274
  export const __wbg_get_distributionlogarithmicwasm_m: (a: number) => bigint;
1276
1275
  export const __wbg_get_distributionlogarithmicwasm_d: (a: number) => bigint;
1277
1276
  export const __wbg_get_distributionlogarithmicwasm_a: (a: number) => bigint;
1278
- export const __wbg_get_distributionpolynomialwasm_maxValue: (a: number, b: number) => void;
1279
- export const __wbg_get_distributionpolynomialwasm_minValue: (a: number, b: number) => void;
1280
- export const __wbg_get_distributionpolynomialwasm_b: (a: number) => bigint;
1281
- export const __wbg_get_distributionpolynomialwasm_startMoment: (a: number, b: number) => void;
1282
- export const __wbg_get_distributionpolynomialwasm_o: (a: number) => bigint;
1283
- export const __wbg_get_distributionpolynomialwasm_n: (a: number) => bigint;
1284
- export const __wbg_get_distributionpolynomialwasm_m: (a: number) => bigint;
1285
- export const __wbg_get_distributionpolynomialwasm_d: (a: number) => bigint;
1286
- export const __wbg_get_distributionpolynomialwasm_a: (a: number) => bigint;
1277
+ export const __wbg_get_distributionlinearwasm_maxValue: (a: number, b: number) => void;
1278
+ export const __wbg_get_distributionlinearwasm_minValue: (a: number, b: number) => void;
1279
+ export const __wbg_get_distributionlinearwasm_startingAmount: (a: number) => bigint;
1280
+ export const __wbg_get_distributionlinearwasm_startStep: (a: number, b: number) => void;
1281
+ export const __wbg_get_distributionlinearwasm_d: (a: number) => bigint;
1282
+ export const __wbg_get_distributionlinearwasm_a: (a: number) => bigint;
1287
1283
  export const __wbg_get_distributioninvertedlogarithmicwasm_maxValue: (a: number, b: number) => void;
1288
1284
  export const __wbg_get_distributioninvertedlogarithmicwasm_minValue: (a: number, b: number) => void;
1289
1285
  export const __wbg_get_distributioninvertedlogarithmicwasm_b: (a: number) => bigint;
@@ -1293,23 +1289,27 @@ export const __wbg_get_distributioninvertedlogarithmicwasm_n: (a: number) => big
1293
1289
  export const __wbg_get_distributioninvertedlogarithmicwasm_m: (a: number) => bigint;
1294
1290
  export const __wbg_get_distributioninvertedlogarithmicwasm_d: (a: number) => bigint;
1295
1291
  export const __wbg_get_distributioninvertedlogarithmicwasm_a: (a: number) => bigint;
1292
+ export const __wbg_get_distributionstepdecreasingamountwasm_minValue: (a: number, b: number) => void;
1293
+ export const __wbg_get_distributionstepdecreasingamountwasm_startDecreasingOffset: (a: number, b: number) => void;
1296
1294
  export const __wbg_set_distributionlinearwasm_maxValue: (a: number, b: number, c: bigint) => void;
1297
1295
  export const __wbg_set_distributionlinearwasm_minValue: (a: number, b: number, c: bigint) => void;
1296
+ export const __wbg_set_distributioninvertedlogarithmicwasm_maxValue: (a: number, b: number, c: bigint) => void;
1297
+ export const __wbg_set_distributioninvertedlogarithmicwasm_minValue: (a: number, b: number, c: bigint) => void;
1298
1298
  export const __wbg_set_distributionstepdecreasingamountwasm_minValue: (a: number, b: number, c: bigint) => void;
1299
1299
  export const __wbg_set_distributionpolynomialwasm_maxValue: (a: number, b: number, c: bigint) => void;
1300
1300
  export const __wbg_set_distributionpolynomialwasm_minValue: (a: number, b: number, c: bigint) => void;
1301
- export const __wbg_set_distributioninvertedlogarithmicwasm_maxValue: (a: number, b: number, c: bigint) => void;
1302
- export const __wbg_set_distributioninvertedlogarithmicwasm_minValue: (a: number, b: number, c: bigint) => void;
1303
1301
  export const __wbg_set_distributionlogarithmicwasm_maxValue: (a: number, b: number, c: bigint) => void;
1304
1302
  export const __wbg_set_distributionlogarithmicwasm_minValue: (a: number, b: number, c: bigint) => void;
1305
- export const __wbg_set_distributionrandomwasm_min: (a: number, b: bigint) => void;
1303
+ export const __wbg_distributionpolynomialwasm_free: (a: number, b: number) => void;
1304
+ export const __wbg_distributioninvertedlogarithmicwasm_free: (a: number, b: number) => void;
1305
+ export const __wbg_distributionlogarithmicwasm_free: (a: number, b: number) => void;
1306
1306
  export const __wbg_tokenmarketplaceruleswasm_free: (a: number, b: number) => void;
1307
1307
  export const __wbg_timebaseddistributionwasm_free: (a: number, b: number) => void;
1308
1308
  export const epochbaseddistributionwasm_set_function: (a: number, b: number) => void;
1309
1309
  export const __wbg_epochbaseddistributionwasm_free: (a: number, b: number) => void;
1310
- export const timebaseddistributionwasm_set_function: (a: number, b: number) => void;
1311
1310
  export const timebaseddistributionwasm_get_function: (a: number) => number;
1312
1311
  export const epochbaseddistributionwasm_get_function: (a: number) => number;
1312
+ export const timebaseddistributionwasm_set_function: (a: number, b: number) => void;
1313
1313
  export const __wbg_statetransitionwasm_free: (a: number, b: number) => void;
1314
1314
  export const statetransitionwasm_type_name: (a: number, b: number) => void;
1315
1315
  export const statetransitionwasm_struct_name: (a: number) => void;
@@ -0,0 +1,7 @@
1
+ let replacer_func = (key, value) => {
2
+ return (value !== undefined && value?.type === 'Buffer') ? value.data : value;
3
+ };
4
+
5
+ export function stringify(data) {
6
+ return JSON.stringify(data, replacer_func)
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pshenmic-dpp",
3
- "version": "1.1.0-dev.1",
3
+ "version": "1.1.0-dev.2",
4
4
  "main": "dist/wasm/index.js",
5
5
  "types": "dist/wasm/index.d.ts",
6
6
  "repository": {