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

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.
@@ -102,6 +102,12 @@ export const verifiedtokencontractinfowasm_struct_name: (a: number) => void;
102
102
  export const verifiedtokencontractinfowasm_root_hash: (a: number) => number;
103
103
  export const verifiedtokencontractinfowasm_get_contract_info: (a: number) => number;
104
104
  export const verifyTokenContractInfoProof: (a: number, b: number, c: number, d: number, e: number) => void;
105
+ export const __wbg_verifiedtokendirectpurchaseprices_free: (a: number, b: number) => void;
106
+ export const verifiedtokendirectpurchaseprices_type_name: (a: number, b: number) => void;
107
+ export const verifiedtokendirectpurchaseprices_struct_name: (a: number) => void;
108
+ export const verifiedtokendirectpurchaseprices_root_hash: (a: number) => number;
109
+ export const verifiedtokendirectpurchaseprices_prices: (a: number, b: number) => void;
110
+ export const verifyTokenDirectPurchasePrices: (a: number, b: number, c: number, d: number, e: number) => void;
105
111
  export const __wbg_totalsingletokenbalancewasm_free: (a: number, b: number) => void;
106
112
  export const totalsingletokenbalancewasm_type_name: (a: number, b: number) => void;
107
113
  export const totalsingletokenbalancewasm_struct_name: (a: number) => void;
@@ -115,20 +121,20 @@ export const verifyTokenTotalSupplyProof: (a: number, b: number, c: number, d: n
115
121
  export const verifiedtokensbalancesforidentitywasm_type_name: (a: number, b: number) => void;
116
122
  export const verifiedtokensbalancesforidentitywasm_struct_name: (a: number) => void;
117
123
  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;
124
+ export const __wbg_verifiedtotalcreditswasm_free: (a: number, b: number) => void;
119
125
  export const __wbg_verifiedidentitynoncewasm_free: (a: number, b: number) => void;
126
+ export const __wbg_verifiedtokentotalsupplywasm_free: (a: number, b: number) => void;
120
127
  export const __wbg_verifiedidentitycontractnoncewasm_free: (a: number, b: number) => void;
121
- export const __wbg_verifiedtotalcreditswasm_free: (a: number, b: number) => void;
122
128
  export const __wbg_verifiedtokensbalancesforidentitywasm_free: (a: number, b: number) => void;
123
129
  export const __wbg_verifiedidentitybyuniquekeyhashwasm_free: (a: number, b: number) => void;
124
- export const verifiedidentitycontractnoncewasm_contract_nonce: (a: number, b: number) => void;
125
- 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
132
  export const verifiedidentitynoncewasm_nonce: (a: number, b: number) => void;
131
133
  export const verifiedidentitynoncewasm_root_hash: (a: number) => number;
134
+ export const verifiedidentitybyuniquekeyhashwasm_identity: (a: number) => number;
135
+ export const verifiedidentitybyuniquekeyhashwasm_root_hash: (a: number) => number;
136
+ export const verifiedidentitycontractnoncewasm_contract_nonce: (a: number, b: number) => void;
137
+ export const verifiedidentitycontractnoncewasm_root_hash: (a: number) => number;
132
138
  export const __wbg_partialidentitywasm_free: (a: number, b: number) => void;
133
139
  export const partialidentitywasm_new: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: bigint, h: number) => void;
134
140
  export const partialidentitywasm_id: (a: number) => number;
@@ -828,16 +834,16 @@ export const batchtransitionwasm_fromHex: (a: number, b: number, c: number) => v
828
834
  export const tokenpaymentinfowasm_set_minimum_token_cost: (a: number, b: number, c: bigint) => void;
829
835
  export const tokenfreezetransitionwasm_new: (a: number, b: number, c: number, d: number, e: number) => void;
830
836
  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
837
  export const __wbg_tokenunfreezetransitionwasm_free: (a: number, b: number) => void;
834
838
  export const __wbg_documentupdatepricetransitionwasm_free: (a: number, b: number) => void;
835
839
  export const __wbg_documentdeletetransitionwasm_free: (a: number, b: number) => void;
840
+ export const __wbg_tokenemergencyactiontransitionwasm_free: (a: number, b: number) => void;
841
+ export const __wbg_tokenfreezetransitionwasm_free: (a: number, b: number) => void;
842
+ export const tokenunfreezetransitionwasm_get_base: (a: number) => number;
843
+ export const tokenemergencyactiontransitionwasm_get_base: (a: number) => number;
836
844
  export const tokenfreezetransitionwasm_get_base: (a: number) => number;
837
845
  export const documentupdatepricetransitionwasm_get_price: (a: number) => bigint;
838
846
  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
847
  export const documentupdatepricetransitionwasm_set_price: (a: number, b: bigint) => void;
842
848
  export const tokenunfreezetransitionwasm_set_base: (a: number, b: number) => void;
843
849
  export const tokenemergencyactiontransitionwasm_set_base: (a: number, b: number) => void;
@@ -1248,23 +1254,22 @@ export const __wbg_set_distributioninvertedlogarithmicwasm_n: (a: number, b: big
1248
1254
  export const __wbg_set_distributioninvertedlogarithmicwasm_o: (a: number, b: bigint) => void;
1249
1255
  export const __wbg_set_distributioninvertedlogarithmicwasm_b: (a: number, b: bigint) => void;
1250
1256
  export const __wbg_set_timebaseddistributionwasm_interval: (a: number, b: bigint) => void;
1257
+ export const __wbg_set_distributionlogarithmicwasm_startMoment: (a: number, b: number, c: bigint) => void;
1251
1258
  export const __wbg_set_distributionstepdecreasingamountwasm_startDecreasingOffset: (a: number, b: number, c: bigint) => void;
1252
1259
  export const __wbg_set_distributionlinearwasm_startStep: (a: number, b: number, c: bigint) => void;
1260
+ export const __wbg_set_distributionrandomwasm_min: (a: number, b: bigint) => void;
1261
+ export const __wbg_get_distributionrandomwasm_min: (a: number) => bigint;
1253
1262
  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
1263
  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;
1264
+ export const __wbg_get_distributionpolynomialwasm_maxValue: (a: number, b: number) => void;
1265
+ export const __wbg_get_distributionpolynomialwasm_minValue: (a: number, b: number) => void;
1266
+ export const __wbg_get_distributionpolynomialwasm_b: (a: number) => bigint;
1267
+ export const __wbg_get_distributionpolynomialwasm_startMoment: (a: number, b: number) => void;
1268
+ export const __wbg_get_distributionpolynomialwasm_o: (a: number) => bigint;
1269
+ export const __wbg_get_distributionpolynomialwasm_n: (a: number) => bigint;
1270
+ export const __wbg_get_distributionpolynomialwasm_m: (a: number) => bigint;
1271
+ export const __wbg_get_distributionpolynomialwasm_d: (a: number) => bigint;
1272
+ export const __wbg_get_distributionpolynomialwasm_a: (a: number) => bigint;
1268
1273
  export const __wbg_get_timebaseddistributionwasm_interval: (a: number) => bigint;
1269
1274
  export const __wbg_get_distributionlogarithmicwasm_maxValue: (a: number, b: number) => void;
1270
1275
  export const __wbg_get_distributionlogarithmicwasm_minValue: (a: number, b: number) => void;
@@ -1275,15 +1280,12 @@ export const __wbg_get_distributionlogarithmicwasm_n: (a: number) => bigint;
1275
1280
  export const __wbg_get_distributionlogarithmicwasm_m: (a: number) => bigint;
1276
1281
  export const __wbg_get_distributionlogarithmicwasm_d: (a: number) => bigint;
1277
1282
  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;
1283
+ export const __wbg_get_distributionlinearwasm_maxValue: (a: number, b: number) => void;
1284
+ export const __wbg_get_distributionlinearwasm_minValue: (a: number, b: number) => void;
1285
+ export const __wbg_get_distributionlinearwasm_startingAmount: (a: number) => bigint;
1286
+ export const __wbg_get_distributionlinearwasm_startStep: (a: number, b: number) => void;
1287
+ export const __wbg_get_distributionlinearwasm_d: (a: number) => bigint;
1288
+ export const __wbg_get_distributionlinearwasm_a: (a: number) => bigint;
1287
1289
  export const __wbg_get_distributioninvertedlogarithmicwasm_maxValue: (a: number, b: number) => void;
1288
1290
  export const __wbg_get_distributioninvertedlogarithmicwasm_minValue: (a: number, b: number) => void;
1289
1291
  export const __wbg_get_distributioninvertedlogarithmicwasm_b: (a: number) => bigint;
@@ -1293,23 +1295,27 @@ export const __wbg_get_distributioninvertedlogarithmicwasm_n: (a: number) => big
1293
1295
  export const __wbg_get_distributioninvertedlogarithmicwasm_m: (a: number) => bigint;
1294
1296
  export const __wbg_get_distributioninvertedlogarithmicwasm_d: (a: number) => bigint;
1295
1297
  export const __wbg_get_distributioninvertedlogarithmicwasm_a: (a: number) => bigint;
1298
+ export const __wbg_get_distributionstepdecreasingamountwasm_minValue: (a: number, b: number) => void;
1299
+ export const __wbg_get_distributionstepdecreasingamountwasm_startDecreasingOffset: (a: number, b: number) => void;
1296
1300
  export const __wbg_set_distributionlinearwasm_maxValue: (a: number, b: number, c: bigint) => void;
1297
1301
  export const __wbg_set_distributionlinearwasm_minValue: (a: number, b: number, c: bigint) => void;
1302
+ export const __wbg_set_distributioninvertedlogarithmicwasm_maxValue: (a: number, b: number, c: bigint) => void;
1303
+ export const __wbg_set_distributioninvertedlogarithmicwasm_minValue: (a: number, b: number, c: bigint) => void;
1298
1304
  export const __wbg_set_distributionstepdecreasingamountwasm_minValue: (a: number, b: number, c: bigint) => void;
1299
1305
  export const __wbg_set_distributionpolynomialwasm_maxValue: (a: number, b: number, c: bigint) => void;
1300
1306
  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
1307
  export const __wbg_set_distributionlogarithmicwasm_maxValue: (a: number, b: number, c: bigint) => void;
1304
1308
  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;
1309
+ export const __wbg_distributionpolynomialwasm_free: (a: number, b: number) => void;
1310
+ export const __wbg_distributioninvertedlogarithmicwasm_free: (a: number, b: number) => void;
1311
+ export const __wbg_distributionlogarithmicwasm_free: (a: number, b: number) => void;
1306
1312
  export const __wbg_tokenmarketplaceruleswasm_free: (a: number, b: number) => void;
1307
1313
  export const __wbg_timebaseddistributionwasm_free: (a: number, b: number) => void;
1308
1314
  export const epochbaseddistributionwasm_set_function: (a: number, b: number) => void;
1309
1315
  export const __wbg_epochbaseddistributionwasm_free: (a: number, b: number) => void;
1310
- export const timebaseddistributionwasm_set_function: (a: number, b: number) => void;
1311
1316
  export const timebaseddistributionwasm_get_function: (a: number) => number;
1312
1317
  export const epochbaseddistributionwasm_get_function: (a: number) => number;
1318
+ export const timebaseddistributionwasm_set_function: (a: number, b: number) => void;
1313
1319
  export const __wbg_statetransitionwasm_free: (a: number, b: number) => void;
1314
1320
  export const statetransitionwasm_type_name: (a: number, b: number) => void;
1315
1321
  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.3",
4
4
  "main": "dist/wasm/index.js",
5
5
  "types": "dist/wasm/index.d.ts",
6
6
  "repository": {