payid 2.0.3 → 2.1.0
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/{chunk-WQEZYX4X.js → chunk-2SY45STY.js} +4 -1
- package/dist/{chunk-K2B5UHYA.js → chunk-7BGLK4QF.js} +8 -8
- package/dist/core/client/index.js +6 -6
- package/dist/core/server/index.js +3 -3
- package/dist/decision-proof/index.js +2 -2
- package/dist/index.d.ts +33 -1
- package/dist/index.js +28 -16
- package/dist/rule/index.js +4 -4
- package/dist/sessionPolicy/index.js +1 -1
- package/package.json +1 -1
- package/dist/{chunk-AXLZUAYL.js → chunk-OBUATKF6.js} +3 -3
- package/dist/{chunk-FZNMDGVK.js → chunk-VPA2JXA5.js} +3 -3
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-F2KQGW76.js";
|
|
5
5
|
import {
|
|
6
6
|
generateDecisionProof
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OBUATKF6.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
10
|
} from "./chunk-MLKGABMK.js";
|
|
@@ -133,6 +133,9 @@ function createPayIDServer(params) {
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
export {
|
|
136
|
+
buildPayNativeCallData,
|
|
137
|
+
buildPayERC20CallData,
|
|
138
|
+
buildUserOperation,
|
|
136
139
|
PayIDServer,
|
|
137
140
|
createPayIDServer,
|
|
138
141
|
server_exports
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
combineRules
|
|
3
|
-
} from "./chunk-GG34PNTF.js";
|
|
4
|
-
import {
|
|
5
|
-
decodeSessionPolicy,
|
|
6
|
-
decodeSessionPolicyV2
|
|
7
|
-
} from "./chunk-BC77BLFK.js";
|
|
8
1
|
import {
|
|
9
2
|
evaluate,
|
|
10
3
|
loadWasm,
|
|
@@ -12,7 +5,14 @@ import {
|
|
|
12
5
|
} from "./chunk-F2KQGW76.js";
|
|
13
6
|
import {
|
|
14
7
|
generateDecisionProof
|
|
15
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OBUATKF6.js";
|
|
9
|
+
import {
|
|
10
|
+
decodeSessionPolicy,
|
|
11
|
+
decodeSessionPolicyV2
|
|
12
|
+
} from "./chunk-BC77BLFK.js";
|
|
13
|
+
import {
|
|
14
|
+
combineRules
|
|
15
|
+
} from "./chunk-GG34PNTF.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
18
|
} from "./chunk-MLKGABMK.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PayIDClient,
|
|
3
3
|
createPayIDClient
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-GG34PNTF.js";
|
|
6
|
-
import "../../chunk-BC77BLFK.js";
|
|
7
|
-
import "../../chunk-6VPSJFO4.js";
|
|
4
|
+
} from "../../chunk-7BGLK4QF.js";
|
|
8
5
|
import "../../chunk-F2KQGW76.js";
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-OBUATKF6.js";
|
|
7
|
+
import "../../chunk-BC77BLFK.js";
|
|
11
8
|
import "../../chunk-KDC67LIN.js";
|
|
9
|
+
import "../../chunk-GG34PNTF.js";
|
|
10
|
+
import "../../chunk-X7NYQ47Y.js";
|
|
11
|
+
import "../../chunk-6VPSJFO4.js";
|
|
12
12
|
import "../../chunk-MLKGABMK.js";
|
|
13
13
|
export {
|
|
14
14
|
PayIDClient,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PayIDServer,
|
|
3
3
|
createPayIDServer
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-2SY45STY.js";
|
|
5
5
|
import "../../chunk-F2KQGW76.js";
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-X7NYQ47Y.js";
|
|
6
|
+
import "../../chunk-OBUATKF6.js";
|
|
8
7
|
import "../../chunk-KDC67LIN.js";
|
|
8
|
+
import "../../chunk-X7NYQ47Y.js";
|
|
9
9
|
import "../../chunk-MLKGABMK.js";
|
|
10
10
|
export {
|
|
11
11
|
PayIDServer,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateDecisionProof
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-X7NYQ47Y.js";
|
|
3
|
+
} from "../chunk-OBUATKF6.js";
|
|
5
4
|
import "../chunk-KDC67LIN.js";
|
|
5
|
+
import "../chunk-X7NYQ47Y.js";
|
|
6
6
|
import "../chunk-MLKGABMK.js";
|
|
7
7
|
export {
|
|
8
8
|
generateDecisionProof
|
package/dist/index.d.ts
CHANGED
|
@@ -541,4 +541,36 @@ declare namespace eas {
|
|
|
541
541
|
export { type eas_EASAttestation as EASAttestation, eas_EASClient as EASClient, type eas_EASClientOptions as EASClientOptions, eas_EAS_ADDRESSES as EAS_ADDRESSES };
|
|
542
542
|
}
|
|
543
543
|
|
|
544
|
-
|
|
544
|
+
/**
|
|
545
|
+
* Encode calldata untuk payNative (native token: ETH, MATIC, A0GI, etc.)
|
|
546
|
+
*/
|
|
547
|
+
declare function buildPayNativeCallData(contractAddress: string, proof: DecisionProof, attestationUIDs?: string[]): string;
|
|
548
|
+
/**
|
|
549
|
+
* Encode calldata untuk payERC20
|
|
550
|
+
*/
|
|
551
|
+
declare function buildPayERC20CallData(contractAddress: string, proof: DecisionProof, attestationUIDs?: string[]): string;
|
|
552
|
+
|
|
553
|
+
declare function buildUserOperation(params: {
|
|
554
|
+
sender: string;
|
|
555
|
+
callData: string;
|
|
556
|
+
nonce: string;
|
|
557
|
+
gas: {
|
|
558
|
+
callGasLimit: string;
|
|
559
|
+
verificationGasLimit: string;
|
|
560
|
+
preVerificationGas: string;
|
|
561
|
+
maxFeePerGas: string;
|
|
562
|
+
maxPriorityFeePerGas: string;
|
|
563
|
+
};
|
|
564
|
+
initCode?: string;
|
|
565
|
+
paymasterAndData?: string;
|
|
566
|
+
}): UserOperation;
|
|
567
|
+
|
|
568
|
+
declare const index_UserOperation: typeof UserOperation;
|
|
569
|
+
declare const index_buildPayERC20CallData: typeof buildPayERC20CallData;
|
|
570
|
+
declare const index_buildPayNativeCallData: typeof buildPayNativeCallData;
|
|
571
|
+
declare const index_buildUserOperation: typeof buildUserOperation;
|
|
572
|
+
declare namespace index {
|
|
573
|
+
export { index_UserOperation as UserOperation, index_buildPayERC20CallData as buildPayERC20CallData, index_buildPayNativeCallData as buildPayNativeCallData, index_buildUserOperation as buildUserOperation };
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
export { Attestation, CHAINLINK_AGGREGATOR_ABI, type CacheStats, type CachedContact, type CachedRule, type CachedTx, DecisionProof, type DeployRuleOptions, type DeployRuleResult, type DraftPayment, type DraftStatus, FiatAdapter, type FiatEvaluationResult, type PayIDClient, type PayIDServer, type QRISPayload, ResolverOptions, type ReverseResolutionOptions, type ReverseResolutionResult, RuleConfig, RuleContext, RuleResult, type VerifyProofOptions, type VerifyProofResult, batchReverseResolve, clearAllCache, computeTxValueUsd, contactCache, createPayID, createPayIDClient, createPayIDServer, deployRule, draftCache, eas, index as erc4337, formatUsdValue, getCacheStats, historyCache, reverseResolvePayID, ruleCache, verifyAttestation, verifyProof };
|
package/dist/index.js
CHANGED
|
@@ -1,35 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
context_exports
|
|
3
3
|
} from "./chunk-BFCPKJ46.js";
|
|
4
|
-
import {
|
|
5
|
-
rule_exports
|
|
6
|
-
} from "./chunk-FZNMDGVK.js";
|
|
7
|
-
import {
|
|
8
|
-
PayIDClient,
|
|
9
|
-
client_exports
|
|
10
|
-
} from "./chunk-K2B5UHYA.js";
|
|
11
|
-
import "./chunk-GG34PNTF.js";
|
|
12
|
-
import {
|
|
13
|
-
sessionPolicy_exports
|
|
14
|
-
} from "./chunk-R674DZJS.js";
|
|
15
|
-
import "./chunk-BC77BLFK.js";
|
|
16
|
-
import "./chunk-6VPSJFO4.js";
|
|
17
4
|
import {
|
|
18
5
|
issuer_exports
|
|
19
6
|
} from "./chunk-E6VQETBC.js";
|
|
20
7
|
import "./chunk-YKCMGGYB.js";
|
|
8
|
+
import {
|
|
9
|
+
PayIDClient,
|
|
10
|
+
client_exports
|
|
11
|
+
} from "./chunk-7BGLK4QF.js";
|
|
21
12
|
import {
|
|
22
13
|
PayIDServer,
|
|
14
|
+
buildPayERC20CallData,
|
|
15
|
+
buildPayNativeCallData,
|
|
16
|
+
buildUserOperation,
|
|
23
17
|
server_exports
|
|
24
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2SY45STY.js";
|
|
25
19
|
import {
|
|
26
20
|
verifyAttestation
|
|
27
21
|
} from "./chunk-F2KQGW76.js";
|
|
28
22
|
import {
|
|
29
23
|
generateDecisionProof
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import
|
|
24
|
+
} from "./chunk-OBUATKF6.js";
|
|
25
|
+
import {
|
|
26
|
+
sessionPolicy_exports
|
|
27
|
+
} from "./chunk-R674DZJS.js";
|
|
28
|
+
import "./chunk-BC77BLFK.js";
|
|
32
29
|
import "./chunk-KDC67LIN.js";
|
|
30
|
+
import {
|
|
31
|
+
rule_exports
|
|
32
|
+
} from "./chunk-VPA2JXA5.js";
|
|
33
|
+
import "./chunk-GG34PNTF.js";
|
|
34
|
+
import "./chunk-X7NYQ47Y.js";
|
|
35
|
+
import "./chunk-6VPSJFO4.js";
|
|
33
36
|
import {
|
|
34
37
|
__export
|
|
35
38
|
} from "./chunk-MLKGABMK.js";
|
|
@@ -683,6 +686,14 @@ var ZGStorage = class {
|
|
|
683
686
|
return blob.toString();
|
|
684
687
|
}
|
|
685
688
|
};
|
|
689
|
+
|
|
690
|
+
// src/erc4337/index.ts
|
|
691
|
+
var erc4337_exports = {};
|
|
692
|
+
__export(erc4337_exports, {
|
|
693
|
+
buildPayERC20CallData: () => buildPayERC20CallData,
|
|
694
|
+
buildPayNativeCallData: () => buildPayNativeCallData,
|
|
695
|
+
buildUserOperation: () => buildUserOperation
|
|
696
|
+
});
|
|
686
697
|
export {
|
|
687
698
|
CHAINLINK_AGGREGATOR_ABI,
|
|
688
699
|
FiatAdapter,
|
|
@@ -698,6 +709,7 @@ export {
|
|
|
698
709
|
deployRule,
|
|
699
710
|
draftCache,
|
|
700
711
|
eas_exports as eas,
|
|
712
|
+
erc4337_exports as erc4337,
|
|
701
713
|
formatUsdValue,
|
|
702
714
|
generateDecisionProof,
|
|
703
715
|
getCacheStats,
|
package/dist/rule/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-VPA2JXA5.js";
|
|
2
2
|
import {
|
|
3
3
|
combineRules
|
|
4
4
|
} from "../chunk-GG34PNTF.js";
|
|
5
|
-
import {
|
|
6
|
-
canonicalizeRuleSet
|
|
7
|
-
} from "../chunk-6VPSJFO4.js";
|
|
8
5
|
import {
|
|
9
6
|
hashRuleSet
|
|
10
7
|
} from "../chunk-X7NYQ47Y.js";
|
|
8
|
+
import {
|
|
9
|
+
canonicalizeRuleSet
|
|
10
|
+
} from "../chunk-6VPSJFO4.js";
|
|
11
11
|
import "../chunk-MLKGABMK.js";
|
|
12
12
|
export {
|
|
13
13
|
canonicalizeRuleSet,
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
decodeSessionPolicyV2QR,
|
|
10
10
|
encodeSessionPolicyV2QR
|
|
11
11
|
} from "../chunk-BC77BLFK.js";
|
|
12
|
-
import "../chunk-6VPSJFO4.js";
|
|
13
12
|
import "../chunk-KDC67LIN.js";
|
|
13
|
+
import "../chunk-6VPSJFO4.js";
|
|
14
14
|
import "../chunk-MLKGABMK.js";
|
|
15
15
|
export {
|
|
16
16
|
SESSION_POLICY_V2_TYPES,
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
randomHex
|
|
3
|
+
} from "./chunk-KDC67LIN.js";
|
|
1
4
|
import {
|
|
2
5
|
hashContext,
|
|
3
6
|
hashRuleSet
|
|
4
7
|
} from "./chunk-X7NYQ47Y.js";
|
|
5
|
-
import {
|
|
6
|
-
randomHex
|
|
7
|
-
} from "./chunk-KDC67LIN.js";
|
|
8
8
|
|
|
9
9
|
// src/decision-proof/generate.ts
|
|
10
10
|
import { ethers, ZeroAddress } from "ethers";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
combineRules
|
|
3
3
|
} from "./chunk-GG34PNTF.js";
|
|
4
|
-
import {
|
|
5
|
-
canonicalizeRuleSet
|
|
6
|
-
} from "./chunk-6VPSJFO4.js";
|
|
7
4
|
import {
|
|
8
5
|
hashRuleSet
|
|
9
6
|
} from "./chunk-X7NYQ47Y.js";
|
|
7
|
+
import {
|
|
8
|
+
canonicalizeRuleSet
|
|
9
|
+
} from "./chunk-6VPSJFO4.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./chunk-MLKGABMK.js";
|