@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
|
@@ -57900,7 +57900,6 @@ class ContractRequestHandler extends AbstractMessageHandler {
|
|
|
57900
57900
|
to: request.from,
|
|
57901
57901
|
body: {
|
|
57902
57902
|
transaction_data: request.body.transaction_data,
|
|
57903
|
-
reason: request.body.reason,
|
|
57904
57903
|
scope: []
|
|
57905
57904
|
}
|
|
57906
57905
|
};
|
|
@@ -58534,11 +58533,25 @@ const v2Operations = [
|
|
|
58534
58533
|
Operators.NIN,
|
|
58535
58534
|
Operators.NE
|
|
58536
58535
|
];
|
|
58536
|
+
const v2OnChainOperations = [
|
|
58537
|
+
Operators.EQ,
|
|
58538
|
+
Operators.LT,
|
|
58539
|
+
Operators.GT,
|
|
58540
|
+
Operators.IN,
|
|
58541
|
+
Operators.NIN,
|
|
58542
|
+
Operators.NE
|
|
58543
|
+
];
|
|
58537
58544
|
const circuitValidator = {
|
|
58538
58545
|
[CircuitId.AtomicQueryMTPV2]: { maxQueriesCount: 1, supportedOperations: v2Operations },
|
|
58539
|
-
[CircuitId.AtomicQueryMTPV2OnChain]: {
|
|
58546
|
+
[CircuitId.AtomicQueryMTPV2OnChain]: {
|
|
58547
|
+
maxQueriesCount: 1,
|
|
58548
|
+
supportedOperations: v2OnChainOperations
|
|
58549
|
+
},
|
|
58540
58550
|
[CircuitId.AtomicQuerySigV2]: { maxQueriesCount: 1, supportedOperations: v2Operations },
|
|
58541
|
-
[CircuitId.AtomicQuerySigV2OnChain]: {
|
|
58551
|
+
[CircuitId.AtomicQuerySigV2OnChain]: {
|
|
58552
|
+
maxQueriesCount: 1,
|
|
58553
|
+
supportedOperations: v2OnChainOperations
|
|
58554
|
+
},
|
|
58542
58555
|
[CircuitId.AtomicQueryV3]: { maxQueriesCount: 1, supportedOperations: allOperations },
|
|
58543
58556
|
[CircuitId.AtomicQueryV3OnChain]: { maxQueriesCount: 1, supportedOperations: allOperations },
|
|
58544
58557
|
[CircuitId.AuthV2]: { maxQueriesCount: 0, supportedOperations: [] },
|
|
@@ -58605,7 +58618,6 @@ class InputGenerator {
|
|
|
58605
58618
|
circuitInputs.signature = signature;
|
|
58606
58619
|
circuitInputs.challenge = params.challenge;
|
|
58607
58620
|
const query = circuitQueries[0];
|
|
58608
|
-
query.operator = this.transformV2QueryOperator(query.operator);
|
|
58609
58621
|
circuitInputs.query = query;
|
|
58610
58622
|
circuitInputs.claim = {
|
|
58611
58623
|
issuerID: circuitClaimData.issuerId,
|
|
@@ -58664,7 +58676,6 @@ class InputGenerator {
|
|
|
58664
58676
|
circuitInputs.profileNonce = BigInt(params.authProfileNonce);
|
|
58665
58677
|
circuitInputs.skipClaimRevocationCheck = params.skipRevocation;
|
|
58666
58678
|
const query = circuitQueries[0];
|
|
58667
|
-
query.operator = this.transformV2QueryOperator(query.operator);
|
|
58668
58679
|
circuitInputs.query = query;
|
|
58669
58680
|
circuitInputs.currentTimeStamp = getUnixTimestamp(new Date());
|
|
58670
58681
|
if (authClaimData.treeState) {
|