@rhinestone/sdk 2.0.0-beta.33 → 2.0.0-beta.35

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.
Files changed (36) hide show
  1. package/dist/src/accounts/hca.d.ts.map +1 -1
  2. package/dist/src/accounts/hca.js +4 -1
  3. package/dist/src/accounts/index.d.ts.map +1 -1
  4. package/dist/src/accounts/index.js +8 -3
  5. package/dist/src/accounts/signing/common.d.ts.map +1 -1
  6. package/dist/src/accounts/signing/common.js +3 -2
  7. package/dist/src/accounts/startale.d.ts.map +1 -1
  8. package/dist/src/accounts/startale.js +4 -4
  9. package/dist/src/execution/utils.d.ts.map +1 -1
  10. package/dist/src/execution/utils.js +2 -2
  11. package/dist/src/index.d.ts.map +1 -1
  12. package/dist/src/index.js +10 -1
  13. package/dist/src/modules/read.d.ts +1 -1
  14. package/dist/src/modules/read.d.ts.map +1 -1
  15. package/dist/src/modules/read.js +23 -4
  16. package/dist/src/modules/validators/core.d.ts +2 -2
  17. package/dist/src/modules/validators/core.d.ts.map +1 -1
  18. package/dist/src/modules/validators/core.js +9 -17
  19. package/dist/src/orchestrator/caip2.d.ts +10 -3
  20. package/dist/src/orchestrator/caip2.d.ts.map +1 -1
  21. package/dist/src/orchestrator/caip2.js +25 -28
  22. package/dist/src/orchestrator/client.d.ts.map +1 -1
  23. package/dist/src/orchestrator/client.js +15 -10
  24. package/dist/src/orchestrator/consts.d.ts +1 -1
  25. package/dist/src/orchestrator/consts.js +1 -1
  26. package/dist/src/orchestrator/destinations.d.ts.map +1 -1
  27. package/dist/src/orchestrator/destinations.js +8 -4
  28. package/dist/src/orchestrator/wire.d.ts +30 -0
  29. package/dist/src/orchestrator/wire.d.ts.map +1 -0
  30. package/dist/src/orchestrator/wire.gen.d.ts +3962 -0
  31. package/dist/src/orchestrator/wire.gen.d.ts.map +1 -0
  32. package/dist/src/orchestrator/wire.gen.js +1 -0
  33. package/dist/src/orchestrator/wire.js +1 -0
  34. package/dist/src/types.d.ts +1 -1
  35. package/dist/src/types.d.ts.map +1 -1
  36. package/package.json +2 -2
@@ -22,7 +22,7 @@ const solanaMainnet = {
22
22
  };
23
23
  const tronMainnet = {
24
24
  name: 'Tron',
25
- caip2: 'tron:0x2b6653dc',
25
+ caip2: 'tron:mainnet',
26
26
  kind: 'tvm',
27
27
  nativeCurrency: { name: 'Tron', symbol: 'TRX', decimals: 6 },
28
28
  };
@@ -30,11 +30,15 @@ const tronMainnet = {
30
30
  // and Tron it settles on an EVM chain (HyperEVM, 999), but the deposit is
31
31
  // solver-mediated: the orchestrator builds the core-deposit executions and the
32
32
  // user signs no destination session, so it belongs with the descriptor-addressed
33
- // destinations rather than the standard EVM signing path. The CAIP-2 reference
34
- // is the virtual id; the orchestrator maps 1337 999 for settlement.
33
+ // destinations rather than the standard EVM signing path. The canonical CAIP-2
34
+ // id is `hypercore:mainnet` (the orchestrator emits this since shared-configs
35
+ // 1.6.14 / RHI-4560; `eip155:1337` was wrong because 1337 is the
36
+ // Hardhat/Ganache local chain id). It still resolves to the numeric virtual id
37
+ // 1337, which the orchestrator maps to 999 for settlement; HyperCore stays
38
+ // EVM-addressed (`isNonEvmChainId(1337) === false`).
35
39
  const hyperCoreMainnet = {
36
40
  name: 'HyperCore',
37
- caip2: 'eip155:1337',
41
+ caip2: 'hypercore:mainnet',
38
42
  kind: 'hypercore',
39
43
  nativeCurrency: { name: 'Hyperliquid', symbol: 'HYPE', decimals: 18 },
40
44
  };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Friendly named aliases over the generated {@link wire.gen} types.
3
+ *
4
+ * The generated spec inlines every schema (no `components.schemas`), so the
5
+ * request/response shapes are otherwise only reachable through deep
6
+ * `operations[...]` indexing. These aliases give the orchestrator client stable
7
+ * names to adapt against; when the wire shape drifts, regenerating `wire.gen.ts`
8
+ * surfaces the change as a typecheck error at the adapter boundary in
9
+ * `client.ts`.
10
+ */
11
+ import type { operations } from './wire.gen.js';
12
+ type SuccessJson<O extends keyof operations, S extends number> = operations[O]['responses'] extends Record<S, {
13
+ content: {
14
+ 'application/json': infer T;
15
+ };
16
+ }> ? T : never;
17
+ export type WireQuoteResponse = SuccessJson<'createQuote', 200>;
18
+ export type WireRoute = WireQuoteResponse['routes'][number];
19
+ export type WireCost = WireRoute['cost'];
20
+ export type WireCostInputEntry = WireCost['input'][number];
21
+ export type WireCostOutputEntry = WireCost['output'][number];
22
+ export type WireAppFee = NonNullable<WireRoute['appFee']>[number];
23
+ export type WireBridgeFill = NonNullable<WireRoute['bridgeFill']>;
24
+ export type WireTokenRequirements = NonNullable<WireRoute['tokenRequirements']>;
25
+ export type WireSplitResponse = SuccessJson<'getSplit', 200>;
26
+ export type WireIntentSubmitResponse = SuccessJson<'createIntent', 201>;
27
+ export type WireIntentStatus = SuccessJson<'getIntent', 200>;
28
+ export type WirePortfolioResponse = SuccessJson<'getPortfolio', 200>;
29
+ export {};
30
+ //# sourceMappingURL=wire.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wire.d.ts","sourceRoot":"","sources":["../../../orchestrator/wire.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,KAAK,WAAW,CACd,CAAC,SAAS,MAAM,UAAU,EAC1B,CAAC,SAAS,MAAM,IACd,UAAU,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,SAAS,MAAM,CAC3C,CAAC,EACD;IAAE,OAAO,EAAE;QAAE,kBAAkB,EAAE,MAAM,CAAC,CAAA;KAAE,CAAA;CAAE,CAC7C,GACG,CAAC,GACD,KAAK,CAAA;AAGT,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,aAAa,EAAE,GAAG,CAAC,CAAA;AAC/D,MAAM,MAAM,SAAS,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAA;AAC3D,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAC,MAAM,CA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