@q00bs/agent-sdk 1.0.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/Q00bsAgent.d.ts +331 -0
- package/dist/Q00bsAgent.d.ts.map +1 -0
- package/dist/Q00bsAgent.js +695 -0
- package/dist/Q00bsAgent.js.map +1 -0
- package/dist/abis/AgentEscrow.d.ts +336 -0
- package/dist/abis/AgentEscrow.d.ts.map +1 -0
- package/dist/abis/AgentEscrow.js +206 -0
- package/dist/abis/AgentEscrow.js.map +1 -0
- package/dist/abis/AgentRegistry.d.ts +496 -0
- package/dist/abis/AgentRegistry.d.ts.map +1 -0
- package/dist/abis/AgentRegistry.js +280 -0
- package/dist/abis/AgentRegistry.js.map +1 -0
- package/dist/abis/ConsensusModule.d.ts +270 -0
- package/dist/abis/ConsensusModule.d.ts.map +1 -0
- package/dist/abis/ConsensusModule.js +157 -0
- package/dist/abis/ConsensusModule.js.map +1 -0
- package/dist/abis/ERC8004Identity.d.ts +293 -0
- package/dist/abis/ERC8004Identity.d.ts.map +1 -0
- package/dist/abis/ERC8004Identity.js +223 -0
- package/dist/abis/ERC8004Identity.js.map +1 -0
- package/dist/abis/ERC8004Reputation.d.ts +362 -0
- package/dist/abis/ERC8004Reputation.d.ts.map +1 -0
- package/dist/abis/ERC8004Reputation.js +229 -0
- package/dist/abis/ERC8004Reputation.js.map +1 -0
- package/dist/abis/ERC8004Validation.d.ts +234 -0
- package/dist/abis/ERC8004Validation.d.ts.map +1 -0
- package/dist/abis/ERC8004Validation.js +162 -0
- package/dist/abis/ERC8004Validation.js.map +1 -0
- package/dist/abis/Q00bFactory.d.ts +123 -0
- package/dist/abis/Q00bFactory.d.ts.map +1 -0
- package/dist/abis/Q00bFactory.js +65 -0
- package/dist/abis/Q00bFactory.js.map +1 -0
- package/dist/abis/TheQ00bs.d.ts +119 -0
- package/dist/abis/TheQ00bs.d.ts.map +1 -0
- package/dist/abis/TheQ00bs.js +73 -0
- package/dist/abis/TheQ00bs.js.map +1 -0
- package/dist/abis/index.d.ts +9 -0
- package/dist/abis/index.d.ts.map +1 -0
- package/dist/abis/index.js +17 -0
- package/dist/abis/index.js.map +1 -0
- package/dist/client.d.ts +111 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +134 -0
- package/dist/client.js.map +1 -0
- package/dist/consensus.d.ts +85 -0
- package/dist/consensus.d.ts.map +1 -0
- package/dist/consensus.js +227 -0
- package/dist/consensus.js.map +1 -0
- package/dist/constants.d.ts +85 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +113 -0
- package/dist/constants.js.map +1 -0
- package/dist/discovery.d.ts +70 -0
- package/dist/discovery.d.ts.map +1 -0
- package/dist/discovery.js +214 -0
- package/dist/discovery.js.map +1 -0
- package/dist/erc8004.d.ts +311 -0
- package/dist/erc8004.d.ts.map +1 -0
- package/dist/erc8004.js +824 -0
- package/dist/erc8004.js.map +1 -0
- package/dist/errors.d.ts +107 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +210 -0
- package/dist/errors.js.map +1 -0
- package/dist/escrow.d.ts +86 -0
- package/dist/escrow.d.ts.map +1 -0
- package/dist/escrow.js +267 -0
- package/dist/escrow.js.map +1 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +118 -0
- package/dist/index.js.map +1 -0
- package/dist/privy.d.ts +197 -0
- package/dist/privy.d.ts.map +1 -0
- package/dist/privy.js +524 -0
- package/dist/privy.js.map +1 -0
- package/dist/trust.d.ts +49 -0
- package/dist/trust.d.ts.map +1 -0
- package/dist/trust.js +117 -0
- package/dist/trust.js.map +1 -0
- package/dist/types.d.ts +472 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +36 -0
- package/dist/types.js.map +1 -0
- package/package.json +30 -0
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AGENT_REGISTRY_ABI = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* ABI for the AgentRegistry contract.
|
|
6
|
+
*
|
|
7
|
+
* This contract is an ERC-721 that registers AI agents as NFTs on Base.
|
|
8
|
+
* Each agent is tied to a q00b side position, inherits trust from its owner,
|
|
9
|
+
* and has configurable permissions (spend limits, hop limits, delegation).
|
|
10
|
+
*
|
|
11
|
+
* Deploy this contract BEFORE using the SDK (see contracts/deploy.js).
|
|
12
|
+
*/
|
|
13
|
+
exports.AGENT_REGISTRY_ABI = [
|
|
14
|
+
// ── Registration ──────────────────────────────────────────
|
|
15
|
+
{
|
|
16
|
+
inputs: [
|
|
17
|
+
{ internalType: 'address', name: 'agentWallet', type: 'address' },
|
|
18
|
+
{ internalType: 'uint8', name: 'sidePosition', type: 'uint8' },
|
|
19
|
+
{ internalType: 'bytes32', name: 'capabilitiesHash', type: 'bytes32' },
|
|
20
|
+
],
|
|
21
|
+
name: 'registerAgent',
|
|
22
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
23
|
+
stateMutability: 'nonpayable',
|
|
24
|
+
type: 'function',
|
|
25
|
+
},
|
|
26
|
+
// ── Agent Management ──────────────────────────────────────
|
|
27
|
+
{
|
|
28
|
+
inputs: [{ internalType: 'uint256', name: 'agentId', type: 'uint256' }],
|
|
29
|
+
name: 'deactivateAgent',
|
|
30
|
+
outputs: [],
|
|
31
|
+
stateMutability: 'nonpayable',
|
|
32
|
+
type: 'function',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
inputs: [{ internalType: 'uint256', name: 'agentId', type: 'uint256' }],
|
|
36
|
+
name: 'reactivateAgent',
|
|
37
|
+
outputs: [],
|
|
38
|
+
stateMutability: 'nonpayable',
|
|
39
|
+
type: 'function',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
inputs: [{ internalType: 'uint256', name: 'agentId', type: 'uint256' }],
|
|
43
|
+
name: 'freezeAgent',
|
|
44
|
+
outputs: [],
|
|
45
|
+
stateMutability: 'nonpayable',
|
|
46
|
+
type: 'function',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
inputs: [{ internalType: 'uint256', name: 'agentId', type: 'uint256' }],
|
|
50
|
+
name: 'unfreezeAgent',
|
|
51
|
+
outputs: [],
|
|
52
|
+
stateMutability: 'nonpayable',
|
|
53
|
+
type: 'function',
|
|
54
|
+
},
|
|
55
|
+
// ── Permissions ───────────────────────────────────────────
|
|
56
|
+
{
|
|
57
|
+
inputs: [
|
|
58
|
+
{ internalType: 'uint256', name: 'agentId', type: 'uint256' },
|
|
59
|
+
{ internalType: 'uint256', name: 'maxTransactionValue', type: 'uint256' },
|
|
60
|
+
{ internalType: 'uint256', name: 'dailySpendLimit', type: 'uint256' },
|
|
61
|
+
{ internalType: 'uint8', name: 'maxOutboundHops', type: 'uint8' },
|
|
62
|
+
{ internalType: 'uint8', name: 'maxInboundHops', type: 'uint8' },
|
|
63
|
+
{ internalType: 'bool', name: 'canDelegate', type: 'bool' },
|
|
64
|
+
{ internalType: 'bool', name: 'requiresConsensusForHigh', type: 'bool' },
|
|
65
|
+
],
|
|
66
|
+
name: 'updatePermissions',
|
|
67
|
+
outputs: [],
|
|
68
|
+
stateMutability: 'nonpayable',
|
|
69
|
+
type: 'function',
|
|
70
|
+
},
|
|
71
|
+
// ── Capabilities ──────────────────────────────────────────
|
|
72
|
+
{
|
|
73
|
+
inputs: [
|
|
74
|
+
{ internalType: 'uint256', name: 'agentId', type: 'uint256' },
|
|
75
|
+
{ internalType: 'bytes32', name: 'newCapabilitiesHash', type: 'bytes32' },
|
|
76
|
+
],
|
|
77
|
+
name: 'updateCapabilities',
|
|
78
|
+
outputs: [],
|
|
79
|
+
stateMutability: 'nonpayable',
|
|
80
|
+
type: 'function',
|
|
81
|
+
},
|
|
82
|
+
// ── Trust ─────────────────────────────────────────────────
|
|
83
|
+
{
|
|
84
|
+
inputs: [
|
|
85
|
+
{ internalType: 'uint256', name: 'agentId', type: 'uint256' },
|
|
86
|
+
{ internalType: 'int256', name: 'delta', type: 'int256' },
|
|
87
|
+
{ internalType: 'string', name: 'reason', type: 'string' },
|
|
88
|
+
],
|
|
89
|
+
name: 'updateTrustScore',
|
|
90
|
+
outputs: [],
|
|
91
|
+
stateMutability: 'nonpayable',
|
|
92
|
+
type: 'function',
|
|
93
|
+
},
|
|
94
|
+
// ── Trust Verification ────────────────────────────────────
|
|
95
|
+
{
|
|
96
|
+
inputs: [
|
|
97
|
+
{ internalType: 'uint256', name: 'agentA', type: 'uint256' },
|
|
98
|
+
{ internalType: 'uint256', name: 'agentB', type: 'uint256' },
|
|
99
|
+
],
|
|
100
|
+
name: 'canCommunicate',
|
|
101
|
+
outputs: [
|
|
102
|
+
{ internalType: 'bool', name: '', type: 'bool' },
|
|
103
|
+
{ internalType: 'uint8', name: '', type: 'uint8' },
|
|
104
|
+
],
|
|
105
|
+
stateMutability: 'view',
|
|
106
|
+
type: 'function',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
inputs: [
|
|
110
|
+
{ internalType: 'uint256', name: 'queryingAgent', type: 'uint256' },
|
|
111
|
+
{ internalType: 'uint256', name: 'targetAgent', type: 'uint256' },
|
|
112
|
+
],
|
|
113
|
+
name: 'getEffectiveTrust',
|
|
114
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
115
|
+
stateMutability: 'view',
|
|
116
|
+
type: 'function',
|
|
117
|
+
},
|
|
118
|
+
// ── Spend Tracking ────────────────────────────────────────
|
|
119
|
+
{
|
|
120
|
+
inputs: [
|
|
121
|
+
{ internalType: 'uint256', name: 'agentId', type: 'uint256' },
|
|
122
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
123
|
+
],
|
|
124
|
+
name: 'recordSpend',
|
|
125
|
+
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
126
|
+
stateMutability: 'nonpayable',
|
|
127
|
+
type: 'function',
|
|
128
|
+
},
|
|
129
|
+
// ── View Functions ────────────────────────────────────────
|
|
130
|
+
{
|
|
131
|
+
inputs: [{ internalType: 'uint256', name: 'agentId', type: 'uint256' }],
|
|
132
|
+
name: 'getAgent',
|
|
133
|
+
outputs: [
|
|
134
|
+
{
|
|
135
|
+
components: [
|
|
136
|
+
{ internalType: 'address', name: 'wallet', type: 'address' },
|
|
137
|
+
{ internalType: 'address', name: 'ownerQ00b', type: 'address' },
|
|
138
|
+
{ internalType: 'uint8', name: 'sidePosition', type: 'uint8' },
|
|
139
|
+
{ internalType: 'bytes32', name: 'capabilitiesHash', type: 'bytes32' },
|
|
140
|
+
{ internalType: 'uint256', name: 'trustScore', type: 'uint256' },
|
|
141
|
+
{ internalType: 'uint256', name: 'registeredAt', type: 'uint256' },
|
|
142
|
+
{ internalType: 'uint256', name: 'lastActiveAt', type: 'uint256' },
|
|
143
|
+
{ internalType: 'bool', name: 'active', type: 'bool' },
|
|
144
|
+
{ internalType: 'bool', name: 'frozen', type: 'bool' },
|
|
145
|
+
],
|
|
146
|
+
internalType: 'struct AgentRegistry.Agent',
|
|
147
|
+
name: '',
|
|
148
|
+
type: 'tuple',
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
stateMutability: 'view',
|
|
152
|
+
type: 'function',
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
inputs: [{ internalType: 'address', name: 'wallet', type: 'address' }],
|
|
156
|
+
name: 'getAgentByWallet',
|
|
157
|
+
outputs: [
|
|
158
|
+
{ internalType: 'uint256', name: '', type: 'uint256' },
|
|
159
|
+
{
|
|
160
|
+
components: [
|
|
161
|
+
{ internalType: 'address', name: 'wallet', type: 'address' },
|
|
162
|
+
{ internalType: 'address', name: 'ownerQ00b', type: 'address' },
|
|
163
|
+
{ internalType: 'uint8', name: 'sidePosition', type: 'uint8' },
|
|
164
|
+
{ internalType: 'bytes32', name: 'capabilitiesHash', type: 'bytes32' },
|
|
165
|
+
{ internalType: 'uint256', name: 'trustScore', type: 'uint256' },
|
|
166
|
+
{ internalType: 'uint256', name: 'registeredAt', type: 'uint256' },
|
|
167
|
+
{ internalType: 'uint256', name: 'lastActiveAt', type: 'uint256' },
|
|
168
|
+
{ internalType: 'bool', name: 'active', type: 'bool' },
|
|
169
|
+
{ internalType: 'bool', name: 'frozen', type: 'bool' },
|
|
170
|
+
],
|
|
171
|
+
internalType: 'struct AgentRegistry.Agent',
|
|
172
|
+
name: '',
|
|
173
|
+
type: 'tuple',
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
stateMutability: 'view',
|
|
177
|
+
type: 'function',
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
inputs: [{ internalType: 'address', name: 'owner', type: 'address' }],
|
|
181
|
+
name: 'getOwnerAgents',
|
|
182
|
+
outputs: [{ internalType: 'uint256[]', name: '', type: 'uint256[]' }],
|
|
183
|
+
stateMutability: 'view',
|
|
184
|
+
type: 'function',
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
inputs: [{ internalType: 'uint256', name: 'agentId', type: 'uint256' }],
|
|
188
|
+
name: 'getAgentPermissions',
|
|
189
|
+
outputs: [
|
|
190
|
+
{
|
|
191
|
+
components: [
|
|
192
|
+
{ internalType: 'uint256', name: 'maxTransactionValue', type: 'uint256' },
|
|
193
|
+
{ internalType: 'uint256', name: 'dailySpendLimit', type: 'uint256' },
|
|
194
|
+
{ internalType: 'uint256', name: 'dailySpent', type: 'uint256' },
|
|
195
|
+
{ internalType: 'uint256', name: 'lastSpendReset', type: 'uint256' },
|
|
196
|
+
{ internalType: 'uint8', name: 'maxOutboundHops', type: 'uint8' },
|
|
197
|
+
{ internalType: 'uint8', name: 'maxInboundHops', type: 'uint8' },
|
|
198
|
+
{ internalType: 'bool', name: 'canDelegate', type: 'bool' },
|
|
199
|
+
{ internalType: 'bool', name: 'requiresConsensusForHigh', type: 'bool' },
|
|
200
|
+
],
|
|
201
|
+
internalType: 'struct AgentRegistry.AgentPermissions',
|
|
202
|
+
name: '',
|
|
203
|
+
type: 'tuple',
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
stateMutability: 'view',
|
|
207
|
+
type: 'function',
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
inputs: [{ internalType: 'uint256', name: 'agentId', type: 'uint256' }],
|
|
211
|
+
name: 'isAgentActive',
|
|
212
|
+
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
213
|
+
stateMutability: 'view',
|
|
214
|
+
type: 'function',
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
inputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
218
|
+
name: 'walletToAgent',
|
|
219
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
220
|
+
stateMutability: 'view',
|
|
221
|
+
type: 'function',
|
|
222
|
+
},
|
|
223
|
+
// ── ERC-721 Standard ──────────────────────────────────────
|
|
224
|
+
{
|
|
225
|
+
inputs: [],
|
|
226
|
+
name: 'totalSupply',
|
|
227
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
228
|
+
stateMutability: 'view',
|
|
229
|
+
type: 'function',
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
inputs: [{ internalType: 'uint256', name: 'tokenId', type: 'uint256' }],
|
|
233
|
+
name: 'ownerOf',
|
|
234
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
235
|
+
stateMutability: 'view',
|
|
236
|
+
type: 'function',
|
|
237
|
+
},
|
|
238
|
+
// ── Events ────────────────────────────────────────────────
|
|
239
|
+
{
|
|
240
|
+
anonymous: false,
|
|
241
|
+
inputs: [
|
|
242
|
+
{ indexed: true, internalType: 'uint256', name: 'agentId', type: 'uint256' },
|
|
243
|
+
{ indexed: true, internalType: 'address', name: 'wallet', type: 'address' },
|
|
244
|
+
{ indexed: true, internalType: 'address', name: 'ownerQ00b', type: 'address' },
|
|
245
|
+
{ indexed: false, internalType: 'uint8', name: 'sidePosition', type: 'uint8' },
|
|
246
|
+
],
|
|
247
|
+
name: 'AgentRegistered',
|
|
248
|
+
type: 'event',
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
anonymous: false,
|
|
252
|
+
inputs: [
|
|
253
|
+
{ indexed: true, internalType: 'uint256', name: 'agentId', type: 'uint256' },
|
|
254
|
+
{ indexed: true, internalType: 'address', name: 'by', type: 'address' },
|
|
255
|
+
],
|
|
256
|
+
name: 'AgentDeactivated',
|
|
257
|
+
type: 'event',
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
anonymous: false,
|
|
261
|
+
inputs: [
|
|
262
|
+
{ indexed: true, internalType: 'uint256', name: 'agentId', type: 'uint256' },
|
|
263
|
+
{ indexed: true, internalType: 'address', name: 'by', type: 'address' },
|
|
264
|
+
],
|
|
265
|
+
name: 'AgentReactivated',
|
|
266
|
+
type: 'event',
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
anonymous: false,
|
|
270
|
+
inputs: [
|
|
271
|
+
{ indexed: true, internalType: 'uint256', name: 'agentId', type: 'uint256' },
|
|
272
|
+
{ indexed: false, internalType: 'uint256', name: 'oldScore', type: 'uint256' },
|
|
273
|
+
{ indexed: false, internalType: 'uint256', name: 'newScore', type: 'uint256' },
|
|
274
|
+
{ indexed: false, internalType: 'string', name: 'reason', type: 'string' },
|
|
275
|
+
],
|
|
276
|
+
name: 'TrustScoreUpdated',
|
|
277
|
+
type: 'event',
|
|
278
|
+
},
|
|
279
|
+
];
|
|
280
|
+
//# sourceMappingURL=AgentRegistry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentRegistry.js","sourceRoot":"","sources":["../../src/abis/AgentRegistry.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;GAQG;AACU,QAAA,kBAAkB,GAAG;IAChC,6DAA6D;IAC7D;QACE,MAAM,EAAE;YACN,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE;YAC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E,IAAI,EAAE,SAAS,EAAE;SACxE;QACD,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,OAAO;KACd;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;YAC5E,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE;YAC9E,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE;YAC9E,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC3E;QACD,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,OAAO;KACd;CACO,CAAC"}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ABI for the ConsensusModule contract.
|
|
3
|
+
*
|
|
4
|
+
* Multi-agent voting for high-stakes actions. When an agent wants to do
|
|
5
|
+
* something risky (large transfer, authority delegation), it must first
|
|
6
|
+
* get approval from peer agents in its trust network.
|
|
7
|
+
*
|
|
8
|
+
* Risk tiers:
|
|
9
|
+
* ≤ 0.01 ETH → No consensus needed
|
|
10
|
+
* ≤ 0.1 ETH → 2 of 6 agents approve
|
|
11
|
+
* ≤ 1 ETH → 4 of 6 agents approve
|
|
12
|
+
* > 1 ETH → 4 of 6 agents + human owner approve
|
|
13
|
+
*/
|
|
14
|
+
export declare const CONSENSUS_MODULE_ABI: readonly [{
|
|
15
|
+
readonly inputs: readonly [{
|
|
16
|
+
readonly internalType: "uint256";
|
|
17
|
+
readonly name: "initiatorAgentId";
|
|
18
|
+
readonly type: "uint256";
|
|
19
|
+
}, {
|
|
20
|
+
readonly internalType: "bytes32";
|
|
21
|
+
readonly name: "actionHash";
|
|
22
|
+
readonly type: "bytes32";
|
|
23
|
+
}, {
|
|
24
|
+
readonly internalType: "uint256";
|
|
25
|
+
readonly name: "value";
|
|
26
|
+
readonly type: "uint256";
|
|
27
|
+
}, {
|
|
28
|
+
readonly internalType: "uint256";
|
|
29
|
+
readonly name: "timeout";
|
|
30
|
+
readonly type: "uint256";
|
|
31
|
+
}];
|
|
32
|
+
readonly name: "requestConsensus";
|
|
33
|
+
readonly outputs: readonly [{
|
|
34
|
+
readonly internalType: "uint256";
|
|
35
|
+
readonly name: "";
|
|
36
|
+
readonly type: "uint256";
|
|
37
|
+
}];
|
|
38
|
+
readonly stateMutability: "nonpayable";
|
|
39
|
+
readonly type: "function";
|
|
40
|
+
}, {
|
|
41
|
+
readonly inputs: readonly [{
|
|
42
|
+
readonly internalType: "uint256";
|
|
43
|
+
readonly name: "requestId";
|
|
44
|
+
readonly type: "uint256";
|
|
45
|
+
}, {
|
|
46
|
+
readonly internalType: "uint256";
|
|
47
|
+
readonly name: "voterAgentId";
|
|
48
|
+
readonly type: "uint256";
|
|
49
|
+
}, {
|
|
50
|
+
readonly internalType: "bool";
|
|
51
|
+
readonly name: "approve";
|
|
52
|
+
readonly type: "bool";
|
|
53
|
+
}];
|
|
54
|
+
readonly name: "vote";
|
|
55
|
+
readonly outputs: readonly [];
|
|
56
|
+
readonly stateMutability: "nonpayable";
|
|
57
|
+
readonly type: "function";
|
|
58
|
+
}, {
|
|
59
|
+
readonly inputs: readonly [{
|
|
60
|
+
readonly internalType: "uint256";
|
|
61
|
+
readonly name: "requestId";
|
|
62
|
+
readonly type: "uint256";
|
|
63
|
+
}];
|
|
64
|
+
readonly name: "humanApprove";
|
|
65
|
+
readonly outputs: readonly [];
|
|
66
|
+
readonly stateMutability: "nonpayable";
|
|
67
|
+
readonly type: "function";
|
|
68
|
+
}, {
|
|
69
|
+
readonly inputs: readonly [{
|
|
70
|
+
readonly internalType: "uint256";
|
|
71
|
+
readonly name: "requestId";
|
|
72
|
+
readonly type: "uint256";
|
|
73
|
+
}];
|
|
74
|
+
readonly name: "markExecuted";
|
|
75
|
+
readonly outputs: readonly [];
|
|
76
|
+
readonly stateMutability: "nonpayable";
|
|
77
|
+
readonly type: "function";
|
|
78
|
+
}, {
|
|
79
|
+
readonly inputs: readonly [{
|
|
80
|
+
readonly internalType: "uint256";
|
|
81
|
+
readonly name: "requestId";
|
|
82
|
+
readonly type: "uint256";
|
|
83
|
+
}];
|
|
84
|
+
readonly name: "markExpired";
|
|
85
|
+
readonly outputs: readonly [];
|
|
86
|
+
readonly stateMutability: "nonpayable";
|
|
87
|
+
readonly type: "function";
|
|
88
|
+
}, {
|
|
89
|
+
readonly inputs: readonly [{
|
|
90
|
+
readonly internalType: "uint256";
|
|
91
|
+
readonly name: "requestId";
|
|
92
|
+
readonly type: "uint256";
|
|
93
|
+
}];
|
|
94
|
+
readonly name: "getRequest";
|
|
95
|
+
readonly outputs: readonly [{
|
|
96
|
+
readonly components: readonly [{
|
|
97
|
+
readonly internalType: "uint256";
|
|
98
|
+
readonly name: "initiatorAgentId";
|
|
99
|
+
readonly type: "uint256";
|
|
100
|
+
}, {
|
|
101
|
+
readonly internalType: "bytes32";
|
|
102
|
+
readonly name: "actionHash";
|
|
103
|
+
readonly type: "bytes32";
|
|
104
|
+
}, {
|
|
105
|
+
readonly internalType: "uint256";
|
|
106
|
+
readonly name: "value";
|
|
107
|
+
readonly type: "uint256";
|
|
108
|
+
}, {
|
|
109
|
+
readonly internalType: "uint8";
|
|
110
|
+
readonly name: "requiredApprovals";
|
|
111
|
+
readonly type: "uint8";
|
|
112
|
+
}, {
|
|
113
|
+
readonly internalType: "uint8";
|
|
114
|
+
readonly name: "currentApprovals";
|
|
115
|
+
readonly type: "uint8";
|
|
116
|
+
}, {
|
|
117
|
+
readonly internalType: "uint8";
|
|
118
|
+
readonly name: "currentRejections";
|
|
119
|
+
readonly type: "uint8";
|
|
120
|
+
}, {
|
|
121
|
+
readonly internalType: "uint8";
|
|
122
|
+
readonly name: "state";
|
|
123
|
+
readonly type: "uint8";
|
|
124
|
+
}, {
|
|
125
|
+
readonly internalType: "uint256";
|
|
126
|
+
readonly name: "createdAt";
|
|
127
|
+
readonly type: "uint256";
|
|
128
|
+
}, {
|
|
129
|
+
readonly internalType: "uint256";
|
|
130
|
+
readonly name: "expiresAt";
|
|
131
|
+
readonly type: "uint256";
|
|
132
|
+
}, {
|
|
133
|
+
readonly internalType: "bool";
|
|
134
|
+
readonly name: "humanApprovalRequired";
|
|
135
|
+
readonly type: "bool";
|
|
136
|
+
}, {
|
|
137
|
+
readonly internalType: "bool";
|
|
138
|
+
readonly name: "humanApproved";
|
|
139
|
+
readonly type: "bool";
|
|
140
|
+
}, {
|
|
141
|
+
readonly internalType: "address";
|
|
142
|
+
readonly name: "humanApprover";
|
|
143
|
+
readonly type: "address";
|
|
144
|
+
}];
|
|
145
|
+
readonly internalType: "struct ConsensusModule.ConsensusRequest";
|
|
146
|
+
readonly name: "";
|
|
147
|
+
readonly type: "tuple";
|
|
148
|
+
}];
|
|
149
|
+
readonly stateMutability: "view";
|
|
150
|
+
readonly type: "function";
|
|
151
|
+
}, {
|
|
152
|
+
readonly inputs: readonly [{
|
|
153
|
+
readonly internalType: "uint256";
|
|
154
|
+
readonly name: "requestId";
|
|
155
|
+
readonly type: "uint256";
|
|
156
|
+
}];
|
|
157
|
+
readonly name: "getVoters";
|
|
158
|
+
readonly outputs: readonly [{
|
|
159
|
+
readonly internalType: "uint256[]";
|
|
160
|
+
readonly name: "";
|
|
161
|
+
readonly type: "uint256[]";
|
|
162
|
+
}];
|
|
163
|
+
readonly stateMutability: "view";
|
|
164
|
+
readonly type: "function";
|
|
165
|
+
}, {
|
|
166
|
+
readonly inputs: readonly [{
|
|
167
|
+
readonly internalType: "uint256";
|
|
168
|
+
readonly name: "requestId";
|
|
169
|
+
readonly type: "uint256";
|
|
170
|
+
}];
|
|
171
|
+
readonly name: "isApproved";
|
|
172
|
+
readonly outputs: readonly [{
|
|
173
|
+
readonly internalType: "bool";
|
|
174
|
+
readonly name: "";
|
|
175
|
+
readonly type: "bool";
|
|
176
|
+
}];
|
|
177
|
+
readonly stateMutability: "view";
|
|
178
|
+
readonly type: "function";
|
|
179
|
+
}, {
|
|
180
|
+
readonly inputs: readonly [];
|
|
181
|
+
readonly name: "requestCount";
|
|
182
|
+
readonly outputs: readonly [{
|
|
183
|
+
readonly internalType: "uint256";
|
|
184
|
+
readonly name: "";
|
|
185
|
+
readonly type: "uint256";
|
|
186
|
+
}];
|
|
187
|
+
readonly stateMutability: "view";
|
|
188
|
+
readonly type: "function";
|
|
189
|
+
}, {
|
|
190
|
+
readonly anonymous: false;
|
|
191
|
+
readonly inputs: readonly [{
|
|
192
|
+
readonly indexed: true;
|
|
193
|
+
readonly internalType: "uint256";
|
|
194
|
+
readonly name: "requestId";
|
|
195
|
+
readonly type: "uint256";
|
|
196
|
+
}, {
|
|
197
|
+
readonly indexed: true;
|
|
198
|
+
readonly internalType: "uint256";
|
|
199
|
+
readonly name: "initiatorAgentId";
|
|
200
|
+
readonly type: "uint256";
|
|
201
|
+
}, {
|
|
202
|
+
readonly indexed: false;
|
|
203
|
+
readonly internalType: "bytes32";
|
|
204
|
+
readonly name: "actionHash";
|
|
205
|
+
readonly type: "bytes32";
|
|
206
|
+
}, {
|
|
207
|
+
readonly indexed: false;
|
|
208
|
+
readonly internalType: "uint256";
|
|
209
|
+
readonly name: "value";
|
|
210
|
+
readonly type: "uint256";
|
|
211
|
+
}, {
|
|
212
|
+
readonly indexed: false;
|
|
213
|
+
readonly internalType: "uint8";
|
|
214
|
+
readonly name: "requiredApprovals";
|
|
215
|
+
readonly type: "uint8";
|
|
216
|
+
}];
|
|
217
|
+
readonly name: "ConsensusRequested";
|
|
218
|
+
readonly type: "event";
|
|
219
|
+
}, {
|
|
220
|
+
readonly anonymous: false;
|
|
221
|
+
readonly inputs: readonly [{
|
|
222
|
+
readonly indexed: true;
|
|
223
|
+
readonly internalType: "uint256";
|
|
224
|
+
readonly name: "requestId";
|
|
225
|
+
readonly type: "uint256";
|
|
226
|
+
}, {
|
|
227
|
+
readonly indexed: true;
|
|
228
|
+
readonly internalType: "uint256";
|
|
229
|
+
readonly name: "voterAgentId";
|
|
230
|
+
readonly type: "uint256";
|
|
231
|
+
}, {
|
|
232
|
+
readonly indexed: false;
|
|
233
|
+
readonly internalType: "bool";
|
|
234
|
+
readonly name: "approved";
|
|
235
|
+
readonly type: "bool";
|
|
236
|
+
}];
|
|
237
|
+
readonly name: "VoteCast";
|
|
238
|
+
readonly type: "event";
|
|
239
|
+
}, {
|
|
240
|
+
readonly anonymous: false;
|
|
241
|
+
readonly inputs: readonly [{
|
|
242
|
+
readonly indexed: true;
|
|
243
|
+
readonly internalType: "uint256";
|
|
244
|
+
readonly name: "requestId";
|
|
245
|
+
readonly type: "uint256";
|
|
246
|
+
}, {
|
|
247
|
+
readonly indexed: false;
|
|
248
|
+
readonly internalType: "bool";
|
|
249
|
+
readonly name: "approved";
|
|
250
|
+
readonly type: "bool";
|
|
251
|
+
}];
|
|
252
|
+
readonly name: "ConsensusReached";
|
|
253
|
+
readonly type: "event";
|
|
254
|
+
}, {
|
|
255
|
+
readonly anonymous: false;
|
|
256
|
+
readonly inputs: readonly [{
|
|
257
|
+
readonly indexed: true;
|
|
258
|
+
readonly internalType: "uint256";
|
|
259
|
+
readonly name: "requestId";
|
|
260
|
+
readonly type: "uint256";
|
|
261
|
+
}, {
|
|
262
|
+
readonly indexed: false;
|
|
263
|
+
readonly internalType: "address";
|
|
264
|
+
readonly name: "human";
|
|
265
|
+
readonly type: "address";
|
|
266
|
+
}];
|
|
267
|
+
readonly name: "HumanApproval";
|
|
268
|
+
readonly type: "event";
|
|
269
|
+
}];
|
|
270
|
+
//# sourceMappingURL=ConsensusModule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConsensusModule.d.ts","sourceRoot":"","sources":["../../src/abis/ConsensusModule.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgJvB,CAAC"}
|