@0xpolygonid/js-sdk 1.20.3 → 1.21.1
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.
- package/dist/browser/esm/index.js +16 -5
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/browser/umd/index.js +16 -5
- package/dist/browser/umd/index.js.map +1 -1
- package/dist/node/cjs/iden3comm/handlers/contract-request.js +0 -1
- package/dist/node/cjs/proof/provers/inputs-generator.js +16 -4
- package/dist/node/esm/iden3comm/handlers/contract-request.js +0 -1
- package/dist/node/esm/proof/provers/inputs-generator.js +16 -4
- package/dist/types/iden3comm/types/protocol/contract-request.d.ts +4 -3
- package/package.json +1 -1
|
@@ -78782,7 +78782,6 @@ var PolygonIdSdk = (function (exports) {
|
|
|
78782
78782
|
to: request.from,
|
|
78783
78783
|
body: {
|
|
78784
78784
|
transaction_data: request.body.transaction_data,
|
|
78785
|
-
reason: request.body.reason,
|
|
78786
78785
|
scope: []
|
|
78787
78786
|
}
|
|
78788
78787
|
};
|
|
@@ -79416,11 +79415,25 @@ var PolygonIdSdk = (function (exports) {
|
|
|
79416
79415
|
exports.Operators.NIN,
|
|
79417
79416
|
exports.Operators.NE
|
|
79418
79417
|
];
|
|
79418
|
+
const v2OnChainOperations = [
|
|
79419
|
+
exports.Operators.EQ,
|
|
79420
|
+
exports.Operators.LT,
|
|
79421
|
+
exports.Operators.GT,
|
|
79422
|
+
exports.Operators.IN,
|
|
79423
|
+
exports.Operators.NIN,
|
|
79424
|
+
exports.Operators.NE
|
|
79425
|
+
];
|
|
79419
79426
|
const circuitValidator = {
|
|
79420
79427
|
[exports.CircuitId.AtomicQueryMTPV2]: { maxQueriesCount: 1, supportedOperations: v2Operations },
|
|
79421
|
-
[exports.CircuitId.AtomicQueryMTPV2OnChain]: {
|
|
79428
|
+
[exports.CircuitId.AtomicQueryMTPV2OnChain]: {
|
|
79429
|
+
maxQueriesCount: 1,
|
|
79430
|
+
supportedOperations: v2OnChainOperations
|
|
79431
|
+
},
|
|
79422
79432
|
[exports.CircuitId.AtomicQuerySigV2]: { maxQueriesCount: 1, supportedOperations: v2Operations },
|
|
79423
|
-
[exports.CircuitId.AtomicQuerySigV2OnChain]: {
|
|
79433
|
+
[exports.CircuitId.AtomicQuerySigV2OnChain]: {
|
|
79434
|
+
maxQueriesCount: 1,
|
|
79435
|
+
supportedOperations: v2OnChainOperations
|
|
79436
|
+
},
|
|
79424
79437
|
[exports.CircuitId.AtomicQueryV3]: { maxQueriesCount: 1, supportedOperations: allOperations },
|
|
79425
79438
|
[exports.CircuitId.AtomicQueryV3OnChain]: { maxQueriesCount: 1, supportedOperations: allOperations },
|
|
79426
79439
|
[exports.CircuitId.AuthV2]: { maxQueriesCount: 0, supportedOperations: [] },
|
|
@@ -79487,7 +79500,6 @@ var PolygonIdSdk = (function (exports) {
|
|
|
79487
79500
|
circuitInputs.signature = signature;
|
|
79488
79501
|
circuitInputs.challenge = params.challenge;
|
|
79489
79502
|
const query = circuitQueries[0];
|
|
79490
|
-
query.operator = this.transformV2QueryOperator(query.operator);
|
|
79491
79503
|
circuitInputs.query = query;
|
|
79492
79504
|
circuitInputs.claim = {
|
|
79493
79505
|
issuerID: circuitClaimData.issuerId,
|
|
@@ -79546,7 +79558,6 @@ var PolygonIdSdk = (function (exports) {
|
|
|
79546
79558
|
circuitInputs.profileNonce = BigInt(params.authProfileNonce);
|
|
79547
79559
|
circuitInputs.skipClaimRevocationCheck = params.skipRevocation;
|
|
79548
79560
|
const query = circuitQueries[0];
|
|
79549
|
-
query.operator = this.transformV2QueryOperator(query.operator);
|
|
79550
79561
|
circuitInputs.query = query;
|
|
79551
79562
|
circuitInputs.currentTimeStamp = b$4(new Date());
|
|
79552
79563
|
if (authClaimData.treeState) {
|