@zkp2p/contracts-v2 0.0.1 → 0.0.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.
- package/README.md +34 -8
- package/_cjs/abis/base/CashappReclaimVerifier.json +513 -0
- package/_cjs/abis/base/Escrow.json +2315 -0
- package/_cjs/abis/base/MercadoPagoReclaimVerifier.json +539 -0
- package/_cjs/abis/base/NullifierRegistry.json +213 -0
- package/_cjs/abis/base/RevolutReclaimVerifier.json +513 -0
- package/_cjs/abis/base/VenmoReclaimVerifier.json +500 -0
- package/_cjs/abis/base/WiseReclaimVerifier.json +513 -0
- package/_cjs/abis/base/ZelleBaseVerifier.json +377 -0
- package/_cjs/abis/base/ZelleBoAReclaimVerifier.json +424 -0
- package/_cjs/abis/base/ZelleChaseReclaimVerifier.json +437 -0
- package/_cjs/abis/base/ZelleCitiReclaimVerifier.json +424 -0
- package/_cjs/abis/base/index.js +11 -0
- package/_cjs/abis/base.cjs +14 -0
- package/_cjs/abis/base.mjs +16 -0
- package/_cjs/abis/baseSepolia/Escrow.json +2222 -0
- package/_cjs/abis/baseSepolia/EscrowRegistry.json +214 -0
- package/_cjs/abis/baseSepolia/NullifierRegistry.json +213 -0
- package/_cjs/abis/baseSepolia/Orchestrator.json +1121 -0
- package/_cjs/abis/baseSepolia/PaymentVerifierRegistry.json +332 -0
- package/_cjs/abis/baseSepolia/PostIntentHookRegistry.json +181 -0
- package/_cjs/abis/baseSepolia/ProtocolViewer.json +1382 -0
- package/_cjs/abis/baseSepolia/RelayerRegistry.json +162 -0
- package/_cjs/abis/baseSepolia/SimpleAttestationVerifier.json +215 -0
- package/_cjs/abis/baseSepolia/USDCMock.json +293 -0
- package/_cjs/abis/baseSepolia/UnifiedPaymentVerifier.json +545 -0
- package/_cjs/abis/baseSepolia/index.js +11 -0
- package/_cjs/abis/baseSepolia.cjs +14 -0
- package/_cjs/abis/baseSepolia.mjs +16 -0
- package/_cjs/addresses/base.json +1 -1
- package/_cjs/addresses/baseSepolia.json +1 -1
- package/_cjs/paymentMethods/baseSepolia.json +1 -1
- package/_cjs/paymentMethods/index.json +1 -1
- package/_cjs/types/contracts/Escrow.js +2688 -0
- package/_cjs/types/contracts/Orchestrator.js +1290 -0
- package/_cjs/types/contracts/ProtocolViewer.js +527 -0
- package/_cjs/types/contracts/index.js +12 -0
- package/_cjs/types/contracts/interfaces/IAttestationVerifier.js +114 -0
- package/_cjs/types/contracts/interfaces/IEscrow.js +1434 -0
- package/_cjs/types/contracts/interfaces/IEscrowRegistry.js +150 -0
- package/_cjs/types/contracts/interfaces/INullifierRegistry.js +141 -0
- package/_cjs/types/contracts/interfaces/IOrchestrator.js +704 -0
- package/_cjs/types/contracts/interfaces/IPaymentVerifier.js +154 -0
- package/_cjs/types/contracts/interfaces/IPaymentVerifierRegistry.js +233 -0
- package/_cjs/types/contracts/interfaces/IPostIntentHook.js +165 -0
- package/_cjs/types/contracts/interfaces/IPostIntentHookRegistry.js +126 -0
- package/_cjs/types/contracts/interfaces/IProtocolViewer.js +334 -0
- package/_cjs/types/contracts/interfaces/IRelayerRegistry.js +126 -0
- package/_cjs/types/contracts/interfaces/index.js +14 -0
- package/_cjs/types/contracts/registries/EscrowRegistry.js +463 -0
- package/_cjs/types/contracts/registries/NullifierRegistry.js +447 -0
- package/_cjs/types/contracts/registries/PaymentVerifierRegistry.js +657 -0
- package/_cjs/types/contracts/registries/PostIntentHookRegistry.js +414 -0
- package/_cjs/types/contracts/registries/RelayerRegistry.js +371 -0
- package/_cjs/types/contracts/registries/index.js +8 -0
- package/_cjs/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.js +828 -0
- package/_cjs/types/contracts/unifiedVerifier/SimpleAttestationVerifier.js +415 -0
- package/_cjs/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.js +931 -0
- package/_cjs/types/contracts/unifiedVerifier/index.js +6 -0
- package/_esm/abis/base/CashappReclaimVerifier.json +513 -0
- package/_esm/abis/base/Escrow.json +2315 -0
- package/_esm/abis/base/MercadoPagoReclaimVerifier.json +539 -0
- package/_esm/abis/base/NullifierRegistry.json +213 -0
- package/_esm/abis/base/RevolutReclaimVerifier.json +513 -0
- package/_esm/abis/base/VenmoReclaimVerifier.json +500 -0
- package/_esm/abis/base/WiseReclaimVerifier.json +513 -0
- package/_esm/abis/base/ZelleBaseVerifier.json +377 -0
- package/_esm/abis/base/ZelleBoAReclaimVerifier.json +424 -0
- package/_esm/abis/base/ZelleChaseReclaimVerifier.json +437 -0
- package/_esm/abis/base/ZelleCitiReclaimVerifier.json +424 -0
- package/_esm/abis/base/index.js +11 -0
- package/_esm/abis/base.cjs +14 -0
- package/_esm/abis/base.mjs +16 -0
- package/_esm/abis/baseSepolia/Escrow.json +2222 -0
- package/_esm/abis/baseSepolia/EscrowRegistry.json +214 -0
- package/_esm/abis/baseSepolia/NullifierRegistry.json +213 -0
- package/_esm/abis/baseSepolia/Orchestrator.json +1121 -0
- package/_esm/abis/baseSepolia/PaymentVerifierRegistry.json +332 -0
- package/_esm/abis/baseSepolia/PostIntentHookRegistry.json +181 -0
- package/_esm/abis/baseSepolia/ProtocolViewer.json +1382 -0
- package/_esm/abis/baseSepolia/RelayerRegistry.json +162 -0
- package/_esm/abis/baseSepolia/SimpleAttestationVerifier.json +215 -0
- package/_esm/abis/baseSepolia/USDCMock.json +293 -0
- package/_esm/abis/baseSepolia/UnifiedPaymentVerifier.json +545 -0
- package/_esm/abis/baseSepolia/index.js +11 -0
- package/_esm/abis/baseSepolia.cjs +14 -0
- package/_esm/abis/baseSepolia.mjs +16 -0
- package/_esm/addresses/base.json +1 -1
- package/_esm/addresses/baseSepolia.json +1 -1
- package/_esm/paymentMethods/baseSepolia.json +1 -1
- package/_esm/paymentMethods/index.json +1 -1
- package/_esm/types/contracts/Escrow.js +2688 -0
- package/_esm/types/contracts/Orchestrator.js +1290 -0
- package/_esm/types/contracts/ProtocolViewer.js +527 -0
- package/_esm/types/contracts/index.js +12 -0
- package/_esm/types/contracts/interfaces/IAttestationVerifier.js +114 -0
- package/_esm/types/contracts/interfaces/IEscrow.js +1434 -0
- package/_esm/types/contracts/interfaces/IEscrowRegistry.js +150 -0
- package/_esm/types/contracts/interfaces/INullifierRegistry.js +141 -0
- package/_esm/types/contracts/interfaces/IOrchestrator.js +704 -0
- package/_esm/types/contracts/interfaces/IPaymentVerifier.js +154 -0
- package/_esm/types/contracts/interfaces/IPaymentVerifierRegistry.js +233 -0
- package/_esm/types/contracts/interfaces/IPostIntentHook.js +165 -0
- package/_esm/types/contracts/interfaces/IPostIntentHookRegistry.js +126 -0
- package/_esm/types/contracts/interfaces/IProtocolViewer.js +334 -0
- package/_esm/types/contracts/interfaces/IRelayerRegistry.js +126 -0
- package/_esm/types/contracts/interfaces/index.js +14 -0
- package/_esm/types/contracts/registries/EscrowRegistry.js +463 -0
- package/_esm/types/contracts/registries/NullifierRegistry.js +447 -0
- package/_esm/types/contracts/registries/PaymentVerifierRegistry.js +657 -0
- package/_esm/types/contracts/registries/PostIntentHookRegistry.js +414 -0
- package/_esm/types/contracts/registries/RelayerRegistry.js +371 -0
- package/_esm/types/contracts/registries/index.js +8 -0
- package/_esm/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.js +828 -0
- package/_esm/types/contracts/unifiedVerifier/SimpleAttestationVerifier.js +415 -0
- package/_esm/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.js +931 -0
- package/_esm/types/contracts/unifiedVerifier/index.js +6 -0
- package/_types/abis/base.d.ts +12 -0
- package/_types/abis/baseSepolia.d.ts +12 -0
- package/abis/base.cjs +14 -0
- package/abis/base.d.ts +12 -0
- package/abis/base.mjs +16 -0
- package/abis/baseSepolia.cjs +14 -0
- package/abis/baseSepolia.d.ts +12 -0
- package/abis/baseSepolia.mjs +16 -0
- package/addresses/base.json +1 -1
- package/addresses/baseSepolia.json +1 -1
- package/package.json +23 -6
- package/paymentMethods/baseSepolia.json +1 -1
- package/paymentMethods/index.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export type { BaseUnifiedPaymentVerifier } from "./BaseUnifiedPaymentVerifier";
|
|
5
|
+
export type { SimpleAttestationVerifier } from "./SimpleAttestationVerifier";
|
|
6
|
+
export type { UnifiedPaymentVerifier } from "./UnifiedPaymentVerifier";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Auto-generated TypeScript definitions for base ABIs
|
|
2
|
+
export declare const CashappReclaimVerifier: any;
|
|
3
|
+
export declare const Escrow: any;
|
|
4
|
+
export declare const MercadoPagoReclaimVerifier: any;
|
|
5
|
+
export declare const NullifierRegistry: any;
|
|
6
|
+
export declare const RevolutReclaimVerifier: any;
|
|
7
|
+
export declare const VenmoReclaimVerifier: any;
|
|
8
|
+
export declare const WiseReclaimVerifier: any;
|
|
9
|
+
export declare const ZelleBaseVerifier: any;
|
|
10
|
+
export declare const ZelleBoAReclaimVerifier: any;
|
|
11
|
+
export declare const ZelleChaseReclaimVerifier: any;
|
|
12
|
+
export declare const ZelleCitiReclaimVerifier: any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Auto-generated TypeScript definitions for baseSepolia ABIs
|
|
2
|
+
export declare const Escrow: any;
|
|
3
|
+
export declare const EscrowRegistry: any;
|
|
4
|
+
export declare const NullifierRegistry: any;
|
|
5
|
+
export declare const Orchestrator: any;
|
|
6
|
+
export declare const PaymentVerifierRegistry: any;
|
|
7
|
+
export declare const PostIntentHookRegistry: any;
|
|
8
|
+
export declare const ProtocolViewer: any;
|
|
9
|
+
export declare const RelayerRegistry: any;
|
|
10
|
+
export declare const SimpleAttestationVerifier: any;
|
|
11
|
+
export declare const USDCMock: any;
|
|
12
|
+
export declare const UnifiedPaymentVerifier: any;
|
package/abis/base.cjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Auto-generated CommonJS wrapper for base ABIs
|
|
2
|
+
module.exports = {
|
|
3
|
+
CashappReclaimVerifier: require('./base/CashappReclaimVerifier.json'),
|
|
4
|
+
Escrow: require('./base/Escrow.json'),
|
|
5
|
+
MercadoPagoReclaimVerifier: require('./base/MercadoPagoReclaimVerifier.json'),
|
|
6
|
+
NullifierRegistry: require('./base/NullifierRegistry.json'),
|
|
7
|
+
RevolutReclaimVerifier: require('./base/RevolutReclaimVerifier.json'),
|
|
8
|
+
VenmoReclaimVerifier: require('./base/VenmoReclaimVerifier.json'),
|
|
9
|
+
WiseReclaimVerifier: require('./base/WiseReclaimVerifier.json'),
|
|
10
|
+
ZelleBaseVerifier: require('./base/ZelleBaseVerifier.json'),
|
|
11
|
+
ZelleBoAReclaimVerifier: require('./base/ZelleBoAReclaimVerifier.json'),
|
|
12
|
+
ZelleChaseReclaimVerifier: require('./base/ZelleChaseReclaimVerifier.json'),
|
|
13
|
+
ZelleCitiReclaimVerifier: require('./base/ZelleCitiReclaimVerifier.json')
|
|
14
|
+
};
|
package/abis/base.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Auto-generated TypeScript definitions for base ABIs
|
|
2
|
+
export declare const CashappReclaimVerifier: any;
|
|
3
|
+
export declare const Escrow: any;
|
|
4
|
+
export declare const MercadoPagoReclaimVerifier: any;
|
|
5
|
+
export declare const NullifierRegistry: any;
|
|
6
|
+
export declare const RevolutReclaimVerifier: any;
|
|
7
|
+
export declare const VenmoReclaimVerifier: any;
|
|
8
|
+
export declare const WiseReclaimVerifier: any;
|
|
9
|
+
export declare const ZelleBaseVerifier: any;
|
|
10
|
+
export declare const ZelleBoAReclaimVerifier: any;
|
|
11
|
+
export declare const ZelleChaseReclaimVerifier: any;
|
|
12
|
+
export declare const ZelleCitiReclaimVerifier: any;
|
package/abis/base.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Auto-generated ESM wrapper for base ABIs
|
|
2
|
+
import CashappReclaimVerifier from './base/CashappReclaimVerifier.json' assert { type: 'json' };
|
|
3
|
+
import Escrow from './base/Escrow.json' assert { type: 'json' };
|
|
4
|
+
import MercadoPagoReclaimVerifier from './base/MercadoPagoReclaimVerifier.json' assert { type: 'json' };
|
|
5
|
+
import NullifierRegistry from './base/NullifierRegistry.json' assert { type: 'json' };
|
|
6
|
+
import RevolutReclaimVerifier from './base/RevolutReclaimVerifier.json' assert { type: 'json' };
|
|
7
|
+
import VenmoReclaimVerifier from './base/VenmoReclaimVerifier.json' assert { type: 'json' };
|
|
8
|
+
import WiseReclaimVerifier from './base/WiseReclaimVerifier.json' assert { type: 'json' };
|
|
9
|
+
import ZelleBaseVerifier from './base/ZelleBaseVerifier.json' assert { type: 'json' };
|
|
10
|
+
import ZelleBoAReclaimVerifier from './base/ZelleBoAReclaimVerifier.json' assert { type: 'json' };
|
|
11
|
+
import ZelleChaseReclaimVerifier from './base/ZelleChaseReclaimVerifier.json' assert { type: 'json' };
|
|
12
|
+
import ZelleCitiReclaimVerifier from './base/ZelleCitiReclaimVerifier.json' assert { type: 'json' };
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
CashappReclaimVerifier, Escrow, MercadoPagoReclaimVerifier, NullifierRegistry, RevolutReclaimVerifier, VenmoReclaimVerifier, WiseReclaimVerifier, ZelleBaseVerifier, ZelleBoAReclaimVerifier, ZelleChaseReclaimVerifier, ZelleCitiReclaimVerifier
|
|
16
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Auto-generated CommonJS wrapper for baseSepolia ABIs
|
|
2
|
+
module.exports = {
|
|
3
|
+
Escrow: require('./baseSepolia/Escrow.json'),
|
|
4
|
+
EscrowRegistry: require('./baseSepolia/EscrowRegistry.json'),
|
|
5
|
+
NullifierRegistry: require('./baseSepolia/NullifierRegistry.json'),
|
|
6
|
+
Orchestrator: require('./baseSepolia/Orchestrator.json'),
|
|
7
|
+
PaymentVerifierRegistry: require('./baseSepolia/PaymentVerifierRegistry.json'),
|
|
8
|
+
PostIntentHookRegistry: require('./baseSepolia/PostIntentHookRegistry.json'),
|
|
9
|
+
ProtocolViewer: require('./baseSepolia/ProtocolViewer.json'),
|
|
10
|
+
RelayerRegistry: require('./baseSepolia/RelayerRegistry.json'),
|
|
11
|
+
SimpleAttestationVerifier: require('./baseSepolia/SimpleAttestationVerifier.json'),
|
|
12
|
+
USDCMock: require('./baseSepolia/USDCMock.json'),
|
|
13
|
+
UnifiedPaymentVerifier: require('./baseSepolia/UnifiedPaymentVerifier.json')
|
|
14
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Auto-generated TypeScript definitions for baseSepolia ABIs
|
|
2
|
+
export declare const Escrow: any;
|
|
3
|
+
export declare const EscrowRegistry: any;
|
|
4
|
+
export declare const NullifierRegistry: any;
|
|
5
|
+
export declare const Orchestrator: any;
|
|
6
|
+
export declare const PaymentVerifierRegistry: any;
|
|
7
|
+
export declare const PostIntentHookRegistry: any;
|
|
8
|
+
export declare const ProtocolViewer: any;
|
|
9
|
+
export declare const RelayerRegistry: any;
|
|
10
|
+
export declare const SimpleAttestationVerifier: any;
|
|
11
|
+
export declare const USDCMock: any;
|
|
12
|
+
export declare const UnifiedPaymentVerifier: any;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Auto-generated ESM wrapper for baseSepolia ABIs
|
|
2
|
+
import Escrow from './baseSepolia/Escrow.json' assert { type: 'json' };
|
|
3
|
+
import EscrowRegistry from './baseSepolia/EscrowRegistry.json' assert { type: 'json' };
|
|
4
|
+
import NullifierRegistry from './baseSepolia/NullifierRegistry.json' assert { type: 'json' };
|
|
5
|
+
import Orchestrator from './baseSepolia/Orchestrator.json' assert { type: 'json' };
|
|
6
|
+
import PaymentVerifierRegistry from './baseSepolia/PaymentVerifierRegistry.json' assert { type: 'json' };
|
|
7
|
+
import PostIntentHookRegistry from './baseSepolia/PostIntentHookRegistry.json' assert { type: 'json' };
|
|
8
|
+
import ProtocolViewer from './baseSepolia/ProtocolViewer.json' assert { type: 'json' };
|
|
9
|
+
import RelayerRegistry from './baseSepolia/RelayerRegistry.json' assert { type: 'json' };
|
|
10
|
+
import SimpleAttestationVerifier from './baseSepolia/SimpleAttestationVerifier.json' assert { type: 'json' };
|
|
11
|
+
import USDCMock from './baseSepolia/USDCMock.json' assert { type: 'json' };
|
|
12
|
+
import UnifiedPaymentVerifier from './baseSepolia/UnifiedPaymentVerifier.json' assert { type: 'json' };
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
Escrow, EscrowRegistry, NullifierRegistry, Orchestrator, PaymentVerifierRegistry, PostIntentHookRegistry, ProtocolViewer, RelayerRegistry, SimpleAttestationVerifier, USDCMock, UnifiedPaymentVerifier
|
|
16
|
+
};
|
package/addresses/base.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zkp2p/contracts-v2",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "ZKP2P V2 smart contract interfaces and utilities",
|
|
5
5
|
"main": "./_cjs/index.js",
|
|
6
6
|
"module": "./_esm/index.js",
|
|
@@ -17,10 +17,11 @@
|
|
|
17
17
|
"utils"
|
|
18
18
|
],
|
|
19
19
|
"scripts": {
|
|
20
|
-
"build": "yarn clean && yarn extract && yarn bundle",
|
|
20
|
+
"build": "yarn clean && yarn extract && yarn generate:wrappers && yarn bundle",
|
|
21
21
|
"build:full": "yarn build",
|
|
22
22
|
"clean": "rimraf _cjs _esm _types addresses abis constants paymentMethods types utils",
|
|
23
23
|
"extract": "ts-node --transpile-only scripts/extract-all.ts",
|
|
24
|
+
"generate:wrappers": "ts-node --transpile-only scripts/generate-abi-wrappers.ts",
|
|
24
25
|
"compile": "echo 'Skipping tsc, using Rollup for compilation'",
|
|
25
26
|
"bundle": "ts-node --transpile-only scripts/build-modules.ts",
|
|
26
27
|
"test": "jest --passWithNoTests",
|
|
@@ -40,10 +41,6 @@
|
|
|
40
41
|
"./addresses/*": {
|
|
41
42
|
"default": "./addresses/*.json"
|
|
42
43
|
},
|
|
43
|
-
"./abis/*": {
|
|
44
|
-
"types": "./abis/*/index.d.ts",
|
|
45
|
-
"default": "./abis/*/*.json"
|
|
46
|
-
},
|
|
47
44
|
"./constants": {
|
|
48
45
|
"types": "./constants/index.d.ts",
|
|
49
46
|
"default": "./constants/index.json"
|
|
@@ -68,6 +65,26 @@
|
|
|
68
65
|
"./utils/protocolUtils": {
|
|
69
66
|
"types": "./utils/protocolUtils.d.ts",
|
|
70
67
|
"default": "./utils/protocolUtils.ts"
|
|
68
|
+
},
|
|
69
|
+
"./abis/base": {
|
|
70
|
+
"types": "./abis/base.d.ts",
|
|
71
|
+
"import": "./abis/base.mjs",
|
|
72
|
+
"require": "./abis/base.cjs",
|
|
73
|
+
"default": "./abis/base.cjs"
|
|
74
|
+
},
|
|
75
|
+
"./abis/base/*.json": "./abis/base/*.json",
|
|
76
|
+
"./abis/baseSepolia": {
|
|
77
|
+
"types": "./abis/baseSepolia.d.ts",
|
|
78
|
+
"import": "./abis/baseSepolia.mjs",
|
|
79
|
+
"require": "./abis/baseSepolia.cjs",
|
|
80
|
+
"default": "./abis/baseSepolia.cjs"
|
|
81
|
+
},
|
|
82
|
+
"./abis/baseSepolia/*.json": "./abis/baseSepolia/*.json",
|
|
83
|
+
"./abis": {
|
|
84
|
+
"types": "./abis/index.ts",
|
|
85
|
+
"import": "./abis/index.ts",
|
|
86
|
+
"require": "./abis/index.ts",
|
|
87
|
+
"default": "./abis/index.ts"
|
|
71
88
|
}
|
|
72
89
|
},
|
|
73
90
|
"sideEffects": false,
|