-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalkahest_proof.json
More file actions
146 lines (146 loc) · 5.49 KB
/
alkahest_proof.json
File metadata and controls
146 lines (146 loc) · 5.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"timestamp": "2026-03-23T07:04:23.919Z",
"test": "alkahest-ts SDK integration verification",
"sdkVersion": "0.7.5",
"chain": "Base Sepolia (chainId 84532)",
"steps": [
{
"step": "1. SDK import",
"status": "PASS",
"exports": [
"makeClient",
"contractAddresses",
"supportedChains",
"encodeTrustedOracleDemand"
],
"supportedChains": [
"Base Sepolia",
"Sepolia",
"Filecoin Calibration",
"GenLayer Bradbury",
"Ethereum"
]
},
{
"step": "2. Base Sepolia contract addresses",
"status": "PASS",
"eas": "0x4200000000000000000000000000000000000021",
"trustedOracleArbiter": "0x3664b11BcCCeCA27C21BBAB43548961eD14d4D6D",
"stringObligation": "0x544873C22A3228798F91a71C4ef7a9bFe96E7CE0",
"nativeTokenEscrowObligation": "0x8a1172D32B8cEf14094cF1E7d6F3d1A36D949FDe",
"erc20EscrowObligation": "0x1Fe964348Ec42D9Bb1A072503ce8b4744266FF43"
},
{
"step": "3. Demand encode/decode round-trip",
"status": "PASS",
"innerDemandBytes": 578,
"fullDemandBytes": 834,
"decodedOracle": "0x0000000000000000000000000000000000000001",
"decodedTask": "Analyze DeFi protocol risk",
"decodedMinRep": 5000
},
{
"step": "4. Alkahest client creation",
"status": "PASS",
"hasNativeTokenEscrow": true,
"hasStringObligation": true,
"hasTrustedOracleArbiter": true,
"hasArbitrationListener": true,
"contractAddresses": {
"trustedOracleArbiter": "0x3664b11BcCCeCA27C21BBAB43548961eD14d4D6D",
"stringObligation": "0x544873C22A3228798F91a71C4ef7a9bFe96E7CE0",
"nativeTokenEscrow": "0x8a1172D32B8cEf14094cF1E7d6F3d1A36D949FDe",
"eas": "0x4200000000000000000000000000000000000021"
}
},
{
"step": "5. On-chain contract reachability",
"status": "PASS",
"eas": "0x4200000000000000000000000000000000000021 (4120 bytes)",
"trustedOracleArbiter": "0x3664b11BcCCeCA27C21BBAB43548961eD14d4D6D (3934 bytes)",
"stringObligation": "0x544873C22A3228798F91a71C4ef7a9bFe96E7CE0 (7990 bytes)",
"nativeTokenEscrow": "0x8a1172D32B8cEf14094cF1E7d6F3d1A36D949FDe (14586 bytes)",
"agentRegistry": "0xcCEfce0Eb734Df5dFcBd68DB6Cf2bc80e8A87D98 (13440 bytes)"
},
{
"step": "6. AgentRegistry live data",
"status": "PASS",
"totalRegisteredAgents": 5,
"sampleAgent": {
"agentId": 1,
"reputationScore": 5000,
"tasksCompleted": 0,
"tasksFailed": 0,
"totalAttestations": 0
}
},
{
"step": "7. Escrow flow architecture",
"status": "PASS",
"pattern": "Delegator -> Escrow(ETH) -> Worker(StringObligation) -> Oracle(TrustAgent) -> Collect",
"flowMethods": {
"createEscrow": "function",
"fulfillTask": "function",
"arbitrate": "function",
"collectEscrow": "function",
"reclaimExpired": "function",
"encodeDemand": "function",
"decodeDemand": "function",
"waitForArbitration": "function",
"listenForRequests": "function"
},
"demandEncoding": {
"arbiter": "0x3664b11BcCCeCA27C21BBAB43548961eD14d4D6D",
"oracle": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"taskDescription": "Test task",
"requiredCapability": "audit",
"minReputationScore": 7500
}
}
],
"passed": true,
"summary": {
"passed": 7,
"total": 7,
"allPassed": true
},
"liveEscrowDemo": {
"timestamp": "2026-03-23T07:04:45.906Z",
"network": "Base Sepolia (chainId 84532)",
"wallet": "0x54eeFbb7b3F701eEFb7fa99473A60A6bf5fE16D7",
"escrowAmountEth": "0.001",
"note": "Steps 1-3 executed on-chain with real ETH. Step 4 (collect) reverted with InvalidFulfillment because same wallet was used for delegator+worker+oracle (Alkahest requires separate fulfiller). A second WORKER_KEY with Base Sepolia ETH is needed for full end-to-end collect.",
"step1_createEscrow": {
"status": "SUCCESS",
"txHash": "0xdb442c26dbb46e170a44f48487380f50e913b3337ccd7de23e6ba762a9e221c2",
"escrowUid": "0xd91b4286c97ccabb724c9c0dda7c528c5b9b665067b78be441460f48098b0265",
"task": "Analyze DeFi protocol risk for Compound V3",
"requiredCapability": "research",
"minReputationScore": 5000,
"oracleAddress": "0x54eeFbb7b3F701eEFb7fa99473A60A6bf5fE16D7"
},
"step2_workerFulfill": {
"status": "SUCCESS",
"txHash": "0x2fcf00aa2d378d4f501d2fa96db38677ec9dac65632d1e84fab11f3353f395f1",
"fulfillmentUid": "0xc685ab8026aa643d9dd98e0a690db42d8b9a9fb000647ec2e49c891bf19f2c8f"
},
"step3_oracleArbitrate": {
"status": "SUCCESS",
"txHash": "0xa147815b553620e6bc4ccae654615f0853cb5dcaf08a545930ec1f6de12f163f",
"decision": "APPROVE",
"workerAgentId": 1,
"workerScore": 5000,
"threshold": 5000
},
"step4_collect": {
"status": "REVERTED",
"error": "InvalidFulfillment",
"reason": "Same address used for delegator and worker; Alkahest escrow contract requires distinct fulfiller address"
},
"basescanLinks": {
"escrowTx": "https://sepolia.basescan.org/tx/0xdb442c26dbb46e170a44f48487380f50e913b3337ccd7de23e6ba762a9e221c2",
"fulfillTx": "https://sepolia.basescan.org/tx/0x2fcf00aa2d378d4f501d2fa96db38677ec9dac65632d1e84fab11f3353f395f1",
"arbitrateTx": "https://sepolia.basescan.org/tx/0xa147815b553620e6bc4ccae654615f0853cb5dcaf08a545930ec1f6de12f163f"
}
}
}