@steerprotocol/curator-tools 1.3.0 → 1.4.1

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/README.md CHANGED
@@ -58,8 +58,10 @@ Canonical overrides are stored on **Arbitrum One**, and the payload’s `chainId
58
58
  - **Schema string**: `address vault,uint256 chainId,uint256 strategyTokenId,string manifestCid`
59
59
  - **Semantics**: `chainId` is `targetChainId` (it may differ from `block.chainid`)
60
60
  - **SchemaRegistry (Arbitrum One)**: `0xA310da9c5B885E7fb3fbA9D66E9Ba6Df512b78eB`
61
+ - **Resolver (Arbitrum One)**: `0xD36E3f33c6f1814F6923835Ae7dC508FEDA14b62`
61
62
  - **Schema revocable**: `true`
62
- - **Schema UID**: (run `script/RegisterSteerCrosschainSchema.s.sol` to print the UID)
63
+ - **Schema UID**: `0x2a8ed2dea14b650384d87e1a9fdcd56ab7489fac437134f594f518d9538cbab9`
64
+ - **Deprecated schema (no resolver)**: `0x62b656756a16bd3d2ef501cd9493c603fd90b050d6e9cfffc8e450639ce30a27` (registered with resolver `address(0)`, so it enforces no on-chain curator checks)
63
65
 
64
66
  ## User Flows
65
67
 
@@ -220,5 +222,6 @@ Automated versioning and NPM publishing are handled via **Semantic Release**.
220
222
 
221
223
  ## Security
222
224
  - All administrative actions are restricted to the `owner`.
223
- - Resolver validation enforces curator authorization per vault; the payload includes a `targetChainId` for cross-chain overrides stored on Arbitrum One.
225
+ - Resolver validation enforces curator authorization per vault on both attestation and revocation (removing a curator prevents them from attesting *and* revoking prior attestations).
226
+ - The payload includes a `targetChainId` for cross-chain overrides stored on Arbitrum One.
224
227
  - Input validation is enforced on both smart contract and client-side levels.
package/dist/index.d.mts CHANGED
@@ -6,8 +6,8 @@ interface StrategyStoreConfig {
6
6
  registryAddress?: string;
7
7
  }
8
8
  declare class StrategyStore {
9
- static readonly ARBITRUM_ONE_RESOLVER_ADDRESS = "0xD36E3f33c6f1814F6923835Ae7dC508FEDA14b62";
10
- static readonly ARBITRUM_ONE_CROSSCHAIN_SCHEMA_UID = "0x2a8ed2dea14b650384d87e1a9fdcd56ab7489fac437134f594f518d9538cbab9";
9
+ static readonly ARBITRUM_ONE_RESOLVER_ADDRESS = "0x6628d1Bf82F34de132d0e1c60DEB574C1352d5A7";
10
+ static readonly ARBITRUM_ONE_CROSSCHAIN_SCHEMA_UID = "0xf1a6a394d1f3dd832a15e5b750963d929812e2b74d2dcea68ddf9f75691f16bf";
11
11
  static encodeOverrideAttestationData(vault: string, targetChainId: number | bigint, strategyTokenId: bigint, manifestCid: string): string;
12
12
  private resolver;
13
13
  private registry?;
package/dist/index.mjs CHANGED
@@ -15,8 +15,8 @@ var REGISTRY_ABI = [
15
15
  "function getVaultDetails(address _address) view returns (tuple(uint8 state, uint256 tokenId, uint256 vaultID, string payloadIpfs, address vaultAddress, string beaconName))"
16
16
  ];
17
17
  var StrategyStore = class _StrategyStore {
18
- static ARBITRUM_ONE_RESOLVER_ADDRESS = "0xD36E3f33c6f1814F6923835Ae7dC508FEDA14b62";
19
- static ARBITRUM_ONE_CROSSCHAIN_SCHEMA_UID = "0x2a8ed2dea14b650384d87e1a9fdcd56ab7489fac437134f594f518d9538cbab9";
18
+ static ARBITRUM_ONE_RESOLVER_ADDRESS = "0x6628d1Bf82F34de132d0e1c60DEB574C1352d5A7";
19
+ static ARBITRUM_ONE_CROSSCHAIN_SCHEMA_UID = "0xf1a6a394d1f3dd832a15e5b750963d929812e2b74d2dcea68ddf9f75691f16bf";
20
20
  static encodeOverrideAttestationData(vault, targetChainId, strategyTokenId, manifestCid) {
21
21
  const validatedVault = AddressSchema.parse(vault);
22
22
  return ethers.AbiCoder.defaultAbiCoder().encode(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steerprotocol/curator-tools",
3
- "version": "1.3.0",
3
+ "version": "1.4.1",
4
4
  "description": "Steer Protocol Curator Override Tools",
5
5
  "publishConfig": {
6
6
  "access": "public"