lyra-plugin-onchain 0.1.10 → 0.1.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lyra-plugin-onchain",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "type": "module",
5
5
  "description": "The Sui on-chain tools for Lyra: SUI transfers, DeepBook market data, Walrus receipts/memory — every write policy-checked, simulated, and recorded on-chain via lyra::policy",
6
6
  "license": "MIT",
@@ -13,14 +13,28 @@
13
13
  "bugs": {
14
14
  "url": "https://github.com/rifkyeasy/lyra/issues"
15
15
  },
16
- "keywords": ["lyra", "ai", "agent", "sui", "defi", "deepbook", "walrus", "policy", "plugin"],
16
+ "keywords": [
17
+ "lyra",
18
+ "ai",
19
+ "agent",
20
+ "sui",
21
+ "defi",
22
+ "deepbook",
23
+ "walrus",
24
+ "policy",
25
+ "plugin"
26
+ ],
17
27
  "publishConfig": {
18
28
  "access": "public"
19
29
  },
20
30
  "engines": {
21
31
  "bun": ">=1.1"
22
32
  },
23
- "files": ["src", "!src/**/*.test.ts", "README.md"],
33
+ "files": [
34
+ "src",
35
+ "!src/**/*.test.ts",
36
+ "README.md"
37
+ ],
24
38
  "main": "./src/index.ts",
25
39
  "types": "./src/index.ts",
26
40
  "scripts": {
@@ -37,7 +51,7 @@
37
51
  "@scallop-io/sui-scallop-sdk": "^2.4.5",
38
52
  "@suilend/sdk": "1.1.99",
39
53
  "@suilend/sui-fe": "0.3.49",
40
- "lyra-core": "^0.1.10",
54
+ "lyra-core": "^0.1.11",
41
55
  "navi-sdk": "^1.7.3",
42
56
  "zod": "^3.23.8"
43
57
  }
package/src/tools/send.ts CHANGED
@@ -124,7 +124,7 @@ export function makeSuiSend(ctx: OnchainRuntimeContext): ToolDef<Args> {
124
124
  const receipt = res.objectChanges?.find(
125
125
  c =>
126
126
  c.type === 'created' &&
127
- String((c as { objectType?: string }).objectType).endsWith('::policy::ActionReceipt'),
127
+ String((c as { objectType?: string }).objectType).endsWith('::receipt::ActionReceipt'),
128
128
  ) as { objectId?: string } | undefined
129
129
 
130
130
  return {
package/src/vault.ts CHANGED
@@ -9,10 +9,13 @@
9
9
  import { type SuiNetwork, makeSuiClient } from './client'
10
10
  import { deriveAgentAddress } from './derive'
11
11
 
12
- // A module keeps its DEFINING package id for types/events: `policy` shipped in
13
- // the original publish; `vault` was added in the first upgrade.
14
- const ORIGINAL_PKG = '0x250880a4c1a268da8011b164f599d4e100cefce84f862d36396cd1a943ee8a35'
15
- const VAULT_PKG = '0xa40689cc541f57af123e90819e73eab8a551e4385ab91bee89d02f6691590211'
12
+ // Types/events are addressed by the id of the package that DEFINES them. The v1
13
+ // package is a single fresh publish (policy, vault, receipt, allowlist, constants
14
+ // all shipped together), so every module shares one id today. These stay separate
15
+ // constants so a FUTURE upgrade can again split the LATEST (moveCall) id from a
16
+ // module's DEFINING id without touching call sites.
17
+ const ORIGINAL_PKG = '0x1925bced9aeb16ca8159be0a10d39a0778fe618404443a4b6149116ad9997617'
18
+ const VAULT_PKG = '0x1925bced9aeb16ca8159be0a10d39a0778fe618404443a4b6149116ad9997617'
16
19
 
17
20
  export interface OwnerVault {
18
21
  policyId: string