@provex/abis 1.2.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.
- package/dist/index.d.ts +48 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +48 -0
- package/dist/messaging/MessageBus.d.ts +289 -0
- package/dist/messaging/MessageBus.d.ts.map +1 -0
- package/dist/messaging/MessageBus.js +363 -0
- package/dist/messaging/index.d.ts +8 -0
- package/dist/messaging/index.d.ts.map +1 -0
- package/dist/messaging/index.js +7 -0
- package/dist/v2/Escrow.d.ts +425 -0
- package/dist/v2/Escrow.d.ts.map +1 -0
- package/dist/v2/Escrow.js +38 -0
- package/dist/v2/Verifiers.d.ts +22 -0
- package/dist/v2/Verifiers.d.ts.map +1 -0
- package/dist/v2/Verifiers.js +10 -0
- package/dist/v2/index.d.ts +8 -0
- package/dist/v2/index.d.ts.map +1 -0
- package/dist/v2/index.js +7 -0
- package/dist/v3/Escrow.d.ts +1725 -0
- package/dist/v3/Escrow.d.ts.map +1 -0
- package/dist/v3/Escrow.js +15 -0
- package/dist/v3/NullifierRegistry.d.ts +26 -0
- package/dist/v3/NullifierRegistry.d.ts.map +1 -0
- package/dist/v3/NullifierRegistry.js +20 -0
- package/dist/v3/Orchestrator.d.ts +883 -0
- package/dist/v3/Orchestrator.d.ts.map +1 -0
- package/dist/v3/Orchestrator.js +13 -0
- package/dist/v3/PaymentVerifierRegistry.d.ts +262 -0
- package/dist/v3/PaymentVerifierRegistry.d.ts.map +1 -0
- package/dist/v3/PaymentVerifierRegistry.js +7 -0
- package/dist/v3/UnifiedPaymentVerifier.d.ts +294 -0
- package/dist/v3/UnifiedPaymentVerifier.d.ts.map +1 -0
- package/dist/v3/UnifiedPaymentVerifier.js +12 -0
- package/dist/v3/index.d.ts +15 -0
- package/dist/v3/index.d.ts.map +1 -0
- package/dist/v3/index.js +14 -0
- package/package.json +44 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* V3 UnifiedPaymentVerifier ABI
|
|
3
|
+
*
|
|
4
|
+
* The UnifiedPaymentVerifier handles off-chain attestation-based payment verification.
|
|
5
|
+
* In v3, payments are verified by:
|
|
6
|
+
* 1. Attestation service signs an EIP-712 PaymentAttestation
|
|
7
|
+
* 2. User submits attestation + payment proof to verifyPayment
|
|
8
|
+
* 3. Verifier validates signature and releases funds
|
|
9
|
+
*
|
|
10
|
+
* This replaces V2's on-chain proof verification with a more flexible attestation model.
|
|
11
|
+
*/
|
|
12
|
+
export const UnifiedPaymentVerifierAbi = [{ "inputs": [{ "internalType": "contract IOrchestrator", "name": "_orchestrator", "type": "address" }, { "internalType": "contract INullifierRegistry", "name": "_nullifierRegistry", "type": "address" }, { "internalType": "contract IAttestationVerifier", "name": "_attestationVerifier", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "oldVerifier", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newVerifier", "type": "address" }], "name": "AttestationVerifierUpdated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "paymentMethod", "type": "bytes32" }], "name": "PaymentMethodAdded", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "paymentMethod", "type": "bytes32" }], "name": "PaymentMethodRemoved", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "intentHash", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "method", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "currency", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "timestamp", "type": "uint256" }, { "indexed": false, "internalType": "bytes32", "name": "paymentId", "type": "bytes32" }, { "indexed": false, "internalType": "bytes32", "name": "payeeId", "type": "bytes32" }], "name": "PaymentVerified", "type": "event" }, { "inputs": [], "name": "DOMAIN_SEPARATOR", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "_paymentMethod", "type": "bytes32" }], "name": "addPaymentMethod", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "attestationVerifier", "outputs": [{ "internalType": "contract IAttestationVerifier", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getPaymentMethods", "outputs": [{ "internalType": "bytes32[]", "name": "", "type": "bytes32[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "name": "isPaymentMethod", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "nullifierRegistry", "outputs": [{ "internalType": "contract INullifierRegistry", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "orchestrator", "outputs": [{ "internalType": "contract IOrchestrator", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "name": "paymentMethods", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "_paymentMethod", "type": "bytes32" }], "name": "removePaymentMethod", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_newVerifier", "type": "address" }], "name": "setAttestationVerifier", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "bytes32", "name": "intentHash", "type": "bytes32" }, { "internalType": "bytes", "name": "paymentProof", "type": "bytes" }, { "internalType": "bytes", "name": "data", "type": "bytes" }], "internalType": "struct IPaymentVerifier.VerifyPaymentData", "name": "_verifyPaymentData", "type": "tuple" }], "name": "verifyPayment", "outputs": [{ "components": [{ "internalType": "bool", "name": "success", "type": "bool" }, { "internalType": "bytes32", "name": "intentHash", "type": "bytes32" }, { "internalType": "uint256", "name": "releaseAmount", "type": "uint256" }], "internalType": "struct IPaymentVerifier.PaymentVerificationResult", "name": "result", "type": "tuple" }], "stateMutability": "nonpayable", "type": "function" }];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* V3 Contract ABIs
|
|
3
|
+
*
|
|
4
|
+
* ABIs for zkp2p v3 contracts. V3 is the current system with separated concerns:
|
|
5
|
+
* - Escrow: Fund management and deposit handling
|
|
6
|
+
* - Orchestrator: Intent signaling and fulfillment coordination
|
|
7
|
+
* - UnifiedPaymentVerifier: Off-chain attestation-based payment verification
|
|
8
|
+
* - PaymentVerifierRegistry: Payment method and currency management
|
|
9
|
+
*/
|
|
10
|
+
export { EscrowAbi } from "./Escrow.js";
|
|
11
|
+
export { OrchestratorAbi } from "./Orchestrator.js";
|
|
12
|
+
export { UnifiedPaymentVerifierAbi } from "./UnifiedPaymentVerifier.js";
|
|
13
|
+
export { PaymentVerifierRegistryAbi } from "./PaymentVerifierRegistry.js";
|
|
14
|
+
export { NullifierRegistryAbi } from "./NullifierRegistry.js";
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/v3/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/v3/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* V3 Contract ABIs
|
|
3
|
+
*
|
|
4
|
+
* ABIs for zkp2p v3 contracts. V3 is the current system with separated concerns:
|
|
5
|
+
* - Escrow: Fund management and deposit handling
|
|
6
|
+
* - Orchestrator: Intent signaling and fulfillment coordination
|
|
7
|
+
* - UnifiedPaymentVerifier: Off-chain attestation-based payment verification
|
|
8
|
+
* - PaymentVerifierRegistry: Payment method and currency management
|
|
9
|
+
*/
|
|
10
|
+
export { EscrowAbi } from "./Escrow.js";
|
|
11
|
+
export { OrchestratorAbi } from "./Orchestrator.js";
|
|
12
|
+
export { UnifiedPaymentVerifierAbi } from "./UnifiedPaymentVerifier.js";
|
|
13
|
+
export { PaymentVerifierRegistryAbi } from "./PaymentVerifierRegistry.js";
|
|
14
|
+
export { NullifierRegistryAbi } from "./NullifierRegistry.js";
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@provex/abis",
|
|
3
|
+
"version": "1.2.3",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/provex-tech/monorepo.git",
|
|
8
|
+
"directory": "packages/abis"
|
|
9
|
+
},
|
|
10
|
+
"main": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "restricted"
|
|
14
|
+
},
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"import": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./v2": {
|
|
21
|
+
"types": "./dist/v2/index.d.ts",
|
|
22
|
+
"import": "./dist/v2/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./v3": {
|
|
25
|
+
"types": "./dist/v3/index.d.ts",
|
|
26
|
+
"import": "./dist/v3/index.js"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist",
|
|
31
|
+
"README.md"
|
|
32
|
+
],
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "tsc",
|
|
35
|
+
"clean": "rm -rf dist"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"viem": "^2.0.0"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"typescript": "^5.0.0",
|
|
42
|
+
"viem": "2.40.2"
|
|
43
|
+
}
|
|
44
|
+
}
|