@agether/sdk 1.5.0 → 1.5.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/dist/MorphoClient-3UAKN2VR.mjs +6 -0
- package/dist/X402Client-PY4FOTQC.mjs +6 -0
- package/dist/chunk-GAFDBPDW.mjs +835 -0
- package/dist/chunk-PTXYOTCG.mjs +257 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +3 -8
- package/dist/cli.mjs +680 -0
- package/dist/index.js +3 -8
- package/dist/index.mjs +31 -1089
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -199,9 +199,9 @@ var CONTRACT_ADDRESSES = {
|
|
|
199
199
|
morphoBlue: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb"
|
|
200
200
|
},
|
|
201
201
|
[8453 /* Base */]: {
|
|
202
|
-
accountFactory: "
|
|
203
|
-
validationRegistry: "
|
|
204
|
-
agentReputation: "
|
|
202
|
+
accountFactory: "0x7D5D56416bAEA06a9DCBe3092eF335724C6320a0",
|
|
203
|
+
validationRegistry: "0xd196C32D2149270F56E209ba7aEE67CE9ceD2001",
|
|
204
|
+
agentReputation: "0x65c9cA1211809D3CF3A2707558198eb2b2bE623c",
|
|
205
205
|
usdc: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
|
|
206
206
|
identityRegistry: "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432",
|
|
207
207
|
morphoBlue: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb"
|
|
@@ -509,11 +509,6 @@ var MorphoClient = class {
|
|
|
509
509
|
let agentId;
|
|
510
510
|
if (balance > 0n && this.agentId) {
|
|
511
511
|
agentId = BigInt(this.agentId);
|
|
512
|
-
} else if (balance > 0n) {
|
|
513
|
-
throw new AgetherError(
|
|
514
|
-
"Wallet already has an ERC-8004 identity but agentId is unknown. Pass agentId in config.",
|
|
515
|
-
"AGENT_ID_UNKNOWN"
|
|
516
|
-
);
|
|
517
512
|
} else {
|
|
518
513
|
const regTx = await this.identityRegistry.register();
|
|
519
514
|
const regReceipt = await regTx.wait();
|