@pushchain/core 6.0.25 → 6.0.27-alpha.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/AGW.md +194 -0
- package/CHANGELOG.md +74 -0
- package/README.md +2 -0
- package/package.json +7 -1
- package/src/lib/agentic/agentic.d.ts +23 -0
- package/src/lib/agentic/agentic.js +51 -0
- package/src/lib/agentic/agentic.types.d.ts +409 -0
- package/src/lib/agentic/agentic.types.js +3 -0
- package/src/lib/agentic/capabilities.d.ts +37 -0
- package/src/lib/agentic/capabilities.js +64 -0
- package/src/lib/agentic/chain.d.ts +3 -0
- package/src/lib/agentic/chain.js +15 -0
- package/src/lib/agentic/codec/abi-layout.d.ts +15 -0
- package/src/lib/agentic/codec/abi-layout.js +121 -0
- package/src/lib/agentic/codec/defaults.d.ts +51 -0
- package/src/lib/agentic/codec/defaults.js +53 -0
- package/src/lib/agentic/codec/ids.d.ts +35 -0
- package/src/lib/agentic/codec/ids.js +74 -0
- package/src/lib/agentic/codec/native.d.ts +75 -0
- package/src/lib/agentic/codec/native.js +328 -0
- package/src/lib/agentic/codec/rules.d.ts +45 -0
- package/src/lib/agentic/codec/rules.js +110 -0
- package/src/lib/agentic/codec/selectors.d.ts +19 -0
- package/src/lib/agentic/codec/selectors.js +60 -0
- package/src/lib/agentic/codec/session.d.ts +54 -0
- package/src/lib/agentic/codec/session.js +65 -0
- package/src/lib/agentic/codec/svm-accounts.d.ts +35 -0
- package/src/lib/agentic/codec/svm-accounts.js +68 -0
- package/src/lib/agentic/codec/svm-idl.d.ts +11 -0
- package/src/lib/agentic/codec/svm-idl.js +226 -0
- package/src/lib/agentic/codec/svm-terms.d.ts +157 -0
- package/src/lib/agentic/codec/svm-terms.js +242 -0
- package/src/lib/agentic/codec/universal-terms.d.ts +67 -0
- package/src/lib/agentic/codec/universal-terms.js +41 -0
- package/src/lib/agentic/codec/universal.d.ts +14 -0
- package/src/lib/agentic/codec/universal.js +157 -0
- package/src/lib/agentic/constants.d.ts +11 -0
- package/src/lib/agentic/constants.js +15 -0
- package/src/lib/agentic/context.d.ts +29 -0
- package/src/lib/agentic/context.js +56 -0
- package/src/lib/agentic/contracts/abi/v5/agent-validator.d.ts +105 -0
- package/src/lib/agentic/contracts/abi/v5/agent-validator.js +149 -0
- package/src/lib/agentic/contracts/abi/v5/agw-factory.d.ts +847 -0
- package/src/lib/agentic/contracts/abi/v5/agw-factory.js +1108 -0
- package/src/lib/agentic/contracts/abi/v5/agw.d.ts +1211 -0
- package/src/lib/agentic/contracts/abi/v5/agw.js +1588 -0
- package/src/lib/agentic/contracts/abi/v5/index.d.ts +6 -0
- package/src/lib/agentic/contracts/abi/v5/index.js +17 -0
- package/src/lib/agentic/contracts/abi/v5/smart-session.d.ts +1493 -0
- package/src/lib/agentic/contracts/abi/v5/smart-session.js +1965 -0
- package/src/lib/agentic/contracts/abi/v5/universal-rules-policy.d.ts +1640 -0
- package/src/lib/agentic/contracts/abi/v5/universal-rules-policy.js +2160 -0
- package/src/lib/agentic/contracts/donut-v5.d.ts +11 -0
- package/src/lib/agentic/contracts/donut-v5.js +15 -0
- package/src/lib/agentic/contracts/prc20-metadata.d.ts +26 -0
- package/src/lib/agentic/contracts/prc20-metadata.js +87 -0
- package/src/lib/agentic/contracts/reader.d.ts +35 -0
- package/src/lib/agentic/contracts/reader.js +16 -0
- package/src/lib/agentic/contracts/v5.d.ts +5323 -0
- package/src/lib/agentic/contracts/v5.js +316 -0
- package/src/lib/agentic/deployments.d.ts +61 -0
- package/src/lib/agentic/deployments.js +203 -0
- package/src/lib/agentic/errors.d.ts +71 -0
- package/src/lib/agentic/errors.js +92 -0
- package/src/lib/agentic/execution/guards.d.ts +9 -0
- package/src/lib/agentic/execution/guards.js +30 -0
- package/src/lib/agentic/execution/outbound.d.ts +55 -0
- package/src/lib/agentic/execution/outbound.js +187 -0
- package/src/lib/agentic/execution/send.d.ts +9 -0
- package/src/lib/agentic/execution/send.js +276 -0
- package/src/lib/agentic/execution/svm-instruction.d.ts +24 -0
- package/src/lib/agentic/execution/svm-instruction.js +40 -0
- package/src/lib/agentic/execution/svm-outbound.d.ts +18 -0
- package/src/lib/agentic/execution/svm-outbound.js +86 -0
- package/src/lib/agentic/execution/svm-payload.d.ts +18 -0
- package/src/lib/agentic/execution/svm-payload.js +136 -0
- package/src/lib/agentic/execution/svm-public.d.ts +5 -0
- package/src/lib/agentic/execution/svm-public.js +182 -0
- package/src/lib/agentic/execution/svm-quote.d.ts +11 -0
- package/src/lib/agentic/execution/svm-quote.js +24 -0
- package/src/lib/agentic/execution/svm-send.d.ts +44 -0
- package/src/lib/agentic/execution/svm-send.js +90 -0
- package/src/lib/agentic/index.d.ts +5 -0
- package/src/lib/agentic/index.js +10 -0
- package/src/lib/agentic/management/common.d.ts +29 -0
- package/src/lib/agentic/management/common.js +114 -0
- package/src/lib/agentic/management/create.d.ts +16 -0
- package/src/lib/agentic/management/create.js +271 -0
- package/src/lib/agentic/management/duplicates.d.ts +4 -0
- package/src/lib/agentic/management/duplicates.js +20 -0
- package/src/lib/agentic/management/label.d.ts +3 -0
- package/src/lib/agentic/management/label.js +17 -0
- package/src/lib/agentic/management/prepare.d.ts +7 -0
- package/src/lib/agentic/management/prepare.js +95 -0
- package/src/lib/agentic/management/rules-write.d.ts +42 -0
- package/src/lib/agentic/management/rules-write.js +279 -0
- package/src/lib/agentic/management/svm-context.d.ts +25 -0
- package/src/lib/agentic/management/svm-context.js +55 -0
- package/src/lib/agentic/management/svm-metadata.d.ts +10 -0
- package/src/lib/agentic/management/svm-metadata.js +56 -0
- package/src/lib/agentic/management/svm-public.d.ts +6 -0
- package/src/lib/agentic/management/svm-public.js +125 -0
- package/src/lib/agentic/management/svm.d.ts +27 -0
- package/src/lib/agentic/management/svm.js +150 -0
- package/src/lib/agentic/presets/catalog.d.ts +21 -0
- package/src/lib/agentic/presets/catalog.js +10 -0
- package/src/lib/agentic/presets/index.d.ts +5 -0
- package/src/lib/agentic/presets/index.js +190 -0
- package/src/lib/agentic/presets/types.d.ts +44 -0
- package/src/lib/agentic/presets/types.js +3 -0
- package/src/lib/agentic/public-rule.d.ts +9 -0
- package/src/lib/agentic/public-rule.js +342 -0
- package/src/lib/agentic/reads/checkpoints.d.ts +17 -0
- package/src/lib/agentic/reads/checkpoints.js +109 -0
- package/src/lib/agentic/reads/rules.d.ts +42 -0
- package/src/lib/agentic/reads/rules.js +286 -0
- package/src/lib/agentic/reads/snapshot.d.ts +28 -0
- package/src/lib/agentic/reads/snapshot.js +85 -0
- package/src/lib/agentic/reads/svm.d.ts +17 -0
- package/src/lib/agentic/reads/svm.js +52 -0
- package/src/lib/agentic/reads/wallets.d.ts +25 -0
- package/src/lib/agentic/reads/wallets.js +122 -0
- package/src/lib/agentic/response.d.ts +41 -0
- package/src/lib/agentic/response.js +358 -0
- package/src/lib/agentic/revert.d.ts +7 -0
- package/src/lib/agentic/revert.js +102 -0
- package/src/lib/agentic/runtime.d.ts +58 -0
- package/src/lib/agentic/runtime.js +95 -0
- package/src/lib/agentic/utils.d.ts +57 -0
- package/src/lib/agentic/utils.js +165 -0
- package/src/lib/agentic/wallet.d.ts +32 -0
- package/src/lib/agentic/wallet.js +130 -0
- package/src/lib/constants/chain.js +1 -1
- package/src/lib/constants/enums.d.ts +6 -3
- package/src/lib/constants/enums.js +6 -3
- package/src/lib/constants/index.d.ts +65 -7
- package/src/lib/constants/index.js +18 -3
- package/src/lib/constants/read-state.d.ts +15 -2
- package/src/lib/constants/read-state.js +19 -3
- package/src/lib/index.d.ts +9 -3
- package/src/lib/index.js +11 -2
- package/src/lib/orchestrator/internals/errors.d.ts +7 -0
- package/src/lib/orchestrator/internals/errors.js +13 -1
- package/src/lib/orchestrator/internals/execute-standard.d.ts +3 -1
- package/src/lib/orchestrator/internals/execute-standard.js +3 -3
- package/src/lib/orchestrator/internals/outbound-sync.js +52 -7
- package/src/lib/orchestrator/internals/push-chain-tx.d.ts +1 -1
- package/src/lib/orchestrator/internals/push-chain-tx.js +13 -1
- package/src/lib/orchestrator/orchestrator.d.ts +3 -0
- package/src/lib/orchestrator/orchestrator.js +13 -1
- package/src/lib/orchestrator/orchestrator.types.d.ts +8 -0
- package/src/lib/orchestrator/route-detector.js +3 -2
- package/src/lib/orchestrator/svm-idl/resolve.d.ts +2 -0
- package/src/lib/orchestrator/svm-idl/resolve.js +11 -1
- package/src/lib/progress-hook/progress-hook.js +84 -0
- package/src/lib/progress-hook/progress-hook.types.d.ts +14 -2
- package/src/lib/progress-hook/progress-hook.types.js +13 -0
- package/src/lib/push-chain/push-chain.d.ts +58 -16
- package/src/lib/push-chain/push-chain.js +68 -8
- package/src/lib/push-client/push-client.d.ts +7 -0
- package/src/lib/push-client/push-client.js +41 -15
- package/src/lib/read-state/destination.js +6 -1
- package/src/lib/read-state/envelopes/evm.js +2 -3
- package/src/lib/read-state/envelopes/svm.js +11 -1
- package/src/lib/read-state/read-executor.js +4 -0
- package/src/lib/read-state/read-params.d.ts +71 -26
- package/src/lib/read-state/read-params.js +60 -15
- package/src/lib/read-state/read-state.types.d.ts +44 -1
- package/src/lib/read-state/read-state.types.js +23 -1
- package/src/lib/read-state/read-tracker.d.ts +6 -1
- package/src/lib/read-state/read-tracker.js +83 -17
- package/src/lib/read-state/registry.js +2 -3
- package/src/lib/read-state/result-decoder.js +6 -0
- package/src/lib/read-state/spec-builder.js +2 -2
- package/src/lib/read-state/svm-account.d.ts +20 -0
- package/src/lib/read-state/svm-account.js +114 -0
- package/src/lib/read-state/svm-pda.d.ts +13 -0
- package/src/lib/read-state/svm-pda.js +147 -0
- package/src/lib/universal/prc20-address.d.ts +15 -0
- package/src/lib/universal/prc20-address.js +135 -0
- package/src/lib/utils.d.ts +6 -13
- package/src/lib/utils.js +5 -128
- package/src/lib/vm-client/evm-client.js +34 -20
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Public section-7 discovery constants; deployment wiring stays internal. */
|
|
2
|
+
export declare const AGENTIC: Readonly<{
|
|
3
|
+
WALLET: "agentic:wallet";
|
|
4
|
+
PRESETS: Readonly<{
|
|
5
|
+
CATEGORY: Readonly<{
|
|
6
|
+
DEXES: "DEXES";
|
|
7
|
+
LENDING: "LENDING";
|
|
8
|
+
PREDICTION: "PREDICTION";
|
|
9
|
+
}>;
|
|
10
|
+
}>;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AGENTIC = void 0;
|
|
4
|
+
/** Public section-7 discovery constants; deployment wiring stays internal. */
|
|
5
|
+
exports.AGENTIC = Object.freeze({
|
|
6
|
+
WALLET: 'agentic:wallet',
|
|
7
|
+
PRESETS: Object.freeze({
|
|
8
|
+
CATEGORY: Object.freeze({
|
|
9
|
+
DEXES: 'DEXES',
|
|
10
|
+
LENDING: 'LENDING',
|
|
11
|
+
PREDICTION: 'PREDICTION',
|
|
12
|
+
}),
|
|
13
|
+
}),
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type Address } from 'viem';
|
|
2
|
+
import { CHAIN } from '../constants/enums';
|
|
3
|
+
import { type AgenticGeneration } from './deployments';
|
|
4
|
+
import type { AgenticRuntime } from './runtime';
|
|
5
|
+
import type { AgenticDoor } from './agentic.types';
|
|
6
|
+
/**
|
|
7
|
+
* Identity of an agentic client. Three values stay separate:
|
|
8
|
+
* - signerOrigin: the key that signs (universal.origin)
|
|
9
|
+
* - signerPushAccount: its Push identity — EOA or UEA for its origin chain;
|
|
10
|
+
* pays Push gas and is the identity ownership checks use
|
|
11
|
+
* - wallet: the AGW, the execution account (universal.account)
|
|
12
|
+
*/
|
|
13
|
+
export interface AgenticExecutionContext {
|
|
14
|
+
wallet: Address;
|
|
15
|
+
door: AgenticDoor;
|
|
16
|
+
signerPushAccount: Address;
|
|
17
|
+
signerOrigin: {
|
|
18
|
+
chain: CHAIN;
|
|
19
|
+
address: string;
|
|
20
|
+
};
|
|
21
|
+
generation: AgenticGeneration;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Initialization-time resolution for `initialize(signer, { agenticWallet })`.
|
|
25
|
+
* Owner → owner door. Otherwise at least one ENABLED rule must name the
|
|
26
|
+
* signer's Push identity (expired-but-enabled still qualifies; expiry is an
|
|
27
|
+
* on-chain send check). Nothing here is cached for later sends.
|
|
28
|
+
*/
|
|
29
|
+
export declare function resolveAgenticContext(runtime: AgenticRuntime, walletInput: string): Promise<AgenticExecutionContext>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveAgenticContext = resolveAgenticContext;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
const capabilities_1 = require("./capabilities");
|
|
6
|
+
const deployments_1 = require("./deployments");
|
|
7
|
+
const errors_1 = require("./errors");
|
|
8
|
+
const rules_1 = require("./reads/rules");
|
|
9
|
+
const snapshot_1 = require("./reads/snapshot");
|
|
10
|
+
/**
|
|
11
|
+
* Initialization-time resolution for `initialize(signer, { agenticWallet })`.
|
|
12
|
+
* Owner → owner door. Otherwise at least one ENABLED rule must name the
|
|
13
|
+
* signer's Push identity (expired-but-enabled still qualifies; expiry is an
|
|
14
|
+
* on-chain send check). Nothing here is cached for later sends.
|
|
15
|
+
*/
|
|
16
|
+
async function resolveAgenticContext(runtime, walletInput) {
|
|
17
|
+
let wallet;
|
|
18
|
+
try {
|
|
19
|
+
wallet = (0, viem_1.getAddress)(walletInput);
|
|
20
|
+
}
|
|
21
|
+
catch (cause) {
|
|
22
|
+
throw new errors_1.AgenticError(errors_1.AGENTIC_ERROR_CODE.NOT_AGENTIC_WALLET, `"${walletInput}" is not an address`, {
|
|
23
|
+
cause,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
const generation = await (0, deployments_1.resolveWalletGeneration)(runtime.reader, runtime.network, wallet);
|
|
27
|
+
const signerPushAccount = runtime.signerPushAccount();
|
|
28
|
+
const snap = await snapshot_1.Snapshot.at(runtime.reader);
|
|
29
|
+
const owner = (0, viem_1.getAddress)(await snap.read(wallet, generation.contracts.abis.wallet, 'owner'));
|
|
30
|
+
let door;
|
|
31
|
+
if (owner === signerPushAccount) {
|
|
32
|
+
(0, capabilities_1.requireCapability)(generation.capabilities, capabilities_1.AgenticCapability.OWNER_EXECUTE);
|
|
33
|
+
door = 'owner';
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
(0, capabilities_1.requireCapability)(generation.capabilities, capabilities_1.AgenticCapability.AGENT_EXECUTE);
|
|
37
|
+
const active = await (0, rules_1.readActiveRules)(snap, generation, wallet);
|
|
38
|
+
if (!active.some((r) => r.agent === signerPushAccount)) {
|
|
39
|
+
throw new errors_1.AgenticError(errors_1.AGENTIC_ERROR_CODE.NOT_OWNER_OR_AGENT, `${signerPushAccount} is neither the owner of ${wallet} nor the agent of an enabled rule`, {
|
|
40
|
+
hint: runtime.signerIsPushNative()
|
|
41
|
+
? 'Grant a rule to this Push address, or initialize with the owner signer.'
|
|
42
|
+
: 'An external key acts through its UEA for the chain it was initialized on; grant the rule to that UEA (PushChain.utils.account.deriveExecutorAccount).',
|
|
43
|
+
details: { wallet, signerPushAccount, owner },
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
door = 'agent';
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
wallet,
|
|
50
|
+
door,
|
|
51
|
+
signerPushAccount,
|
|
52
|
+
signerOrigin: runtime.signerOrigin(),
|
|
53
|
+
generation,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
export declare const AGENT_VALIDATOR_ABI: readonly [{
|
|
2
|
+
readonly type: "function";
|
|
3
|
+
readonly name: "isInitialized";
|
|
4
|
+
readonly inputs: readonly [{
|
|
5
|
+
readonly name: "";
|
|
6
|
+
readonly type: "address";
|
|
7
|
+
readonly internalType: "address";
|
|
8
|
+
}];
|
|
9
|
+
readonly outputs: readonly [{
|
|
10
|
+
readonly name: "";
|
|
11
|
+
readonly type: "bool";
|
|
12
|
+
readonly internalType: "bool";
|
|
13
|
+
}];
|
|
14
|
+
readonly stateMutability: "pure";
|
|
15
|
+
}, {
|
|
16
|
+
readonly type: "function";
|
|
17
|
+
readonly name: "isModuleType";
|
|
18
|
+
readonly inputs: readonly [{
|
|
19
|
+
readonly name: "moduleTypeId";
|
|
20
|
+
readonly type: "uint256";
|
|
21
|
+
readonly internalType: "uint256";
|
|
22
|
+
}];
|
|
23
|
+
readonly outputs: readonly [{
|
|
24
|
+
readonly name: "";
|
|
25
|
+
readonly type: "bool";
|
|
26
|
+
readonly internalType: "bool";
|
|
27
|
+
}];
|
|
28
|
+
readonly stateMutability: "pure";
|
|
29
|
+
}, {
|
|
30
|
+
readonly type: "function";
|
|
31
|
+
readonly name: "onInstall";
|
|
32
|
+
readonly inputs: readonly [{
|
|
33
|
+
readonly name: "";
|
|
34
|
+
readonly type: "bytes";
|
|
35
|
+
readonly internalType: "bytes";
|
|
36
|
+
}];
|
|
37
|
+
readonly outputs: readonly [];
|
|
38
|
+
readonly stateMutability: "pure";
|
|
39
|
+
}, {
|
|
40
|
+
readonly type: "function";
|
|
41
|
+
readonly name: "onUninstall";
|
|
42
|
+
readonly inputs: readonly [{
|
|
43
|
+
readonly name: "";
|
|
44
|
+
readonly type: "bytes";
|
|
45
|
+
readonly internalType: "bytes";
|
|
46
|
+
}];
|
|
47
|
+
readonly outputs: readonly [];
|
|
48
|
+
readonly stateMutability: "pure";
|
|
49
|
+
}, {
|
|
50
|
+
readonly type: "function";
|
|
51
|
+
readonly name: "validateConfig";
|
|
52
|
+
readonly inputs: readonly [{
|
|
53
|
+
readonly name: "data";
|
|
54
|
+
readonly type: "bytes";
|
|
55
|
+
readonly internalType: "bytes";
|
|
56
|
+
}];
|
|
57
|
+
readonly outputs: readonly [{
|
|
58
|
+
readonly name: "";
|
|
59
|
+
readonly type: "bool";
|
|
60
|
+
readonly internalType: "bool";
|
|
61
|
+
}];
|
|
62
|
+
readonly stateMutability: "pure";
|
|
63
|
+
}, {
|
|
64
|
+
readonly type: "function";
|
|
65
|
+
readonly name: "validateSignatureWithData";
|
|
66
|
+
readonly inputs: readonly [{
|
|
67
|
+
readonly name: "";
|
|
68
|
+
readonly type: "bytes32";
|
|
69
|
+
readonly internalType: "bytes32";
|
|
70
|
+
}, {
|
|
71
|
+
readonly name: "sig";
|
|
72
|
+
readonly type: "bytes";
|
|
73
|
+
readonly internalType: "bytes";
|
|
74
|
+
}, {
|
|
75
|
+
readonly name: "data";
|
|
76
|
+
readonly type: "bytes";
|
|
77
|
+
readonly internalType: "bytes";
|
|
78
|
+
}];
|
|
79
|
+
readonly outputs: readonly [{
|
|
80
|
+
readonly name: "validSig";
|
|
81
|
+
readonly type: "bool";
|
|
82
|
+
readonly internalType: "bool";
|
|
83
|
+
}];
|
|
84
|
+
readonly stateMutability: "pure";
|
|
85
|
+
}, {
|
|
86
|
+
readonly type: "error";
|
|
87
|
+
readonly name: "AlreadyInitialized";
|
|
88
|
+
readonly inputs: readonly [{
|
|
89
|
+
readonly name: "smartAccount";
|
|
90
|
+
readonly type: "address";
|
|
91
|
+
readonly internalType: "address";
|
|
92
|
+
}];
|
|
93
|
+
}, {
|
|
94
|
+
readonly type: "error";
|
|
95
|
+
readonly name: "MalformedConfig";
|
|
96
|
+
readonly inputs: readonly [];
|
|
97
|
+
}, {
|
|
98
|
+
readonly type: "error";
|
|
99
|
+
readonly name: "NotInitialized";
|
|
100
|
+
readonly inputs: readonly [{
|
|
101
|
+
readonly name: "smartAccount";
|
|
102
|
+
readonly type: "address";
|
|
103
|
+
readonly internalType: "address";
|
|
104
|
+
}];
|
|
105
|
+
}];
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AGENT_VALIDATOR_ABI = void 0;
|
|
4
|
+
// GENERATED by packages/core/scripts/agw-local/gen-abi.mjs — do not edit.
|
|
5
|
+
// Source: packages/core/scripts/agw-local/abis/validator.json
|
|
6
|
+
// push-agentic-wallets@2e61e133e641b4e0e1ddbdc9306b0903b60e4dbb
|
|
7
|
+
// sha256(AgentValidator.json) = a4570ddc373241580de8742cbb3d9f2c837094c65bfd1cdd52243ca0c38196fd
|
|
8
|
+
exports.AGENT_VALIDATOR_ABI = [
|
|
9
|
+
{
|
|
10
|
+
"type": "function",
|
|
11
|
+
"name": "isInitialized",
|
|
12
|
+
"inputs": [
|
|
13
|
+
{
|
|
14
|
+
"name": "",
|
|
15
|
+
"type": "address",
|
|
16
|
+
"internalType": "address"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"outputs": [
|
|
20
|
+
{
|
|
21
|
+
"name": "",
|
|
22
|
+
"type": "bool",
|
|
23
|
+
"internalType": "bool"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"stateMutability": "pure"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "function",
|
|
30
|
+
"name": "isModuleType",
|
|
31
|
+
"inputs": [
|
|
32
|
+
{
|
|
33
|
+
"name": "moduleTypeId",
|
|
34
|
+
"type": "uint256",
|
|
35
|
+
"internalType": "uint256"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"outputs": [
|
|
39
|
+
{
|
|
40
|
+
"name": "",
|
|
41
|
+
"type": "bool",
|
|
42
|
+
"internalType": "bool"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"stateMutability": "pure"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"type": "function",
|
|
49
|
+
"name": "onInstall",
|
|
50
|
+
"inputs": [
|
|
51
|
+
{
|
|
52
|
+
"name": "",
|
|
53
|
+
"type": "bytes",
|
|
54
|
+
"internalType": "bytes"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"outputs": [],
|
|
58
|
+
"stateMutability": "pure"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"type": "function",
|
|
62
|
+
"name": "onUninstall",
|
|
63
|
+
"inputs": [
|
|
64
|
+
{
|
|
65
|
+
"name": "",
|
|
66
|
+
"type": "bytes",
|
|
67
|
+
"internalType": "bytes"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"outputs": [],
|
|
71
|
+
"stateMutability": "pure"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "function",
|
|
75
|
+
"name": "validateConfig",
|
|
76
|
+
"inputs": [
|
|
77
|
+
{
|
|
78
|
+
"name": "data",
|
|
79
|
+
"type": "bytes",
|
|
80
|
+
"internalType": "bytes"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"outputs": [
|
|
84
|
+
{
|
|
85
|
+
"name": "",
|
|
86
|
+
"type": "bool",
|
|
87
|
+
"internalType": "bool"
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"stateMutability": "pure"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"type": "function",
|
|
94
|
+
"name": "validateSignatureWithData",
|
|
95
|
+
"inputs": [
|
|
96
|
+
{
|
|
97
|
+
"name": "",
|
|
98
|
+
"type": "bytes32",
|
|
99
|
+
"internalType": "bytes32"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "sig",
|
|
103
|
+
"type": "bytes",
|
|
104
|
+
"internalType": "bytes"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "data",
|
|
108
|
+
"type": "bytes",
|
|
109
|
+
"internalType": "bytes"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"outputs": [
|
|
113
|
+
{
|
|
114
|
+
"name": "validSig",
|
|
115
|
+
"type": "bool",
|
|
116
|
+
"internalType": "bool"
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"stateMutability": "pure"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"type": "error",
|
|
123
|
+
"name": "AlreadyInitialized",
|
|
124
|
+
"inputs": [
|
|
125
|
+
{
|
|
126
|
+
"name": "smartAccount",
|
|
127
|
+
"type": "address",
|
|
128
|
+
"internalType": "address"
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"type": "error",
|
|
134
|
+
"name": "MalformedConfig",
|
|
135
|
+
"inputs": []
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"type": "error",
|
|
139
|
+
"name": "NotInitialized",
|
|
140
|
+
"inputs": [
|
|
141
|
+
{
|
|
142
|
+
"name": "smartAccount",
|
|
143
|
+
"type": "address",
|
|
144
|
+
"internalType": "address"
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
];
|
|
149
|
+
//# sourceMappingURL=agent-validator.js.map
|