diff --git a/package.json b/package.json index e00e4d6..38ea229 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "dependencies": { "@inquirer/prompts": "^7.4.1", "@rhinestone/module-sdk": "^0.2.8", - "@rhinestone/sdk": "^1.0.17", + "@rhinestone/sdk": "^1.0.23", "@rhinestone/shared-configs": "^1.4.4", "abitype": "^1.0.8", "axios": "^1.10.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 098a8c5..f6ad968 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,8 +15,8 @@ importers: specifier: ^0.2.8 version: 0.2.11(viem@2.37.5(typescript@5.9.2)) '@rhinestone/sdk': - specifier: ^1.0.17 - version: 1.0.17(typescript@5.9.2)(viem@2.37.5(typescript@5.9.2)) + specifier: ^1.0.23 + version: 1.0.23(typescript@5.9.2)(viem@2.37.5(typescript@5.9.2)) '@rhinestone/shared-configs': specifier: ^1.4.4 version: 1.4.4(typescript@5.9.2)(viem@2.37.5(typescript@5.9.2)) @@ -358,11 +358,17 @@ packages: peerDependencies: viem: ^2.0.0 - '@rhinestone/sdk@1.0.17': - resolution: {integrity: sha512-qNu5DPOrE/1ZRcGbKx5zOvT0Q+7by6HGZZvtsa8hOOXCq7wQjkel2rW8uC9Jix1keIPWQ4I8YbMLn69+UUlX1g==} + '@rhinestone/sdk@1.0.23': + resolution: {integrity: sha512-/kQhDK/HdPFBRcL8Uan1uOjuENJb/j5iXPZCWh9BQZEhWdmlTty3DxcPGRMilhpD40wywXBB/kRbAjDflZ0NUw==} peerDependencies: viem: ^2.28.0 + '@rhinestone/shared-configs@1.4.19': + resolution: {integrity: sha512-PHMe/LizQiVzfiQNNth3nUKb18c3RmZ0EiuqkJqueAQ7Zz1NwpFPwh8vyvI7fwl208dAD3/coiXwahinzqUjPA==} + peerDependencies: + typescript: ^5 + viem: ^2.28.0 + '@rhinestone/shared-configs@1.4.4': resolution: {integrity: sha512-DdXdFoRuwCz9px38tDXWDGucMNmS4aSqzVOd4Uwhs0Od8Qb05xUuAHn2u7BdThttxDN/GrRzkod1bsnw0KhFHw==} peerDependencies: @@ -871,9 +877,9 @@ snapshots: tslib: 2.8.1 viem: 2.37.5(typescript@5.9.2) - '@rhinestone/sdk@1.0.17(typescript@5.9.2)(viem@2.37.5(typescript@5.9.2))': + '@rhinestone/sdk@1.0.23(typescript@5.9.2)(viem@2.37.5(typescript@5.9.2))': dependencies: - '@rhinestone/shared-configs': 1.4.4(typescript@5.9.2)(viem@2.37.5(typescript@5.9.2)) + '@rhinestone/shared-configs': 1.4.19(typescript@5.9.2)(viem@2.37.5(typescript@5.9.2)) ox: 0.9.12(typescript@5.9.2) solady: 0.1.26 viem: 2.37.5(typescript@5.9.2) @@ -881,6 +887,11 @@ snapshots: - typescript - zod + '@rhinestone/shared-configs@1.4.19(typescript@5.9.2)(viem@2.37.5(typescript@5.9.2))': + dependencies: + typescript: 5.9.2 + viem: 2.37.5(typescript@5.9.2) + '@rhinestone/shared-configs@1.4.4(typescript@5.9.2)(viem@2.37.5(typescript@5.9.2))': dependencies: typescript: 5.9.2 diff --git a/src/get-address.ts b/src/get-address.ts index ac2aa76..e5fc976 100644 --- a/src/get-address.ts +++ b/src/get-address.ts @@ -38,13 +38,13 @@ export const main = async () => { const rhinestone = new RhinestoneSDK({ apiKey: rhinestoneApiKey, endpointUrl: orchestratorUrl, + useDevContracts: environmentString !== "prod", }); const rhinestoneAccount = await rhinestone.createAccount({ owners: { type: "ecdsa" as const, accounts: [owner], }, - useDevContracts: environment.url != undefined, }); const address = await rhinestoneAccount.getAddress(); diff --git a/src/get-balance.ts b/src/get-balance.ts index cdac642..fcb2bda 100644 --- a/src/get-balance.ts +++ b/src/get-balance.ts @@ -40,6 +40,7 @@ export const main = async () => { const rhinestone = new RhinestoneSDK({ apiKey: rhinestoneApiKey, endpointUrl: orchestratorUrl, + useDevContracts: environmentString !== "prod", }); const rhinestoneAccount = await rhinestone.createAccount({ owners: { diff --git a/src/main.ts b/src/main.ts index 63a4a29..c078328 100644 --- a/src/main.ts +++ b/src/main.ts @@ -38,13 +38,13 @@ export const processIntent = async ( const rhinestone = new RhinestoneSDK({ apiKey: rhinestoneApiKey, endpointUrl: orchestratorUrl, + useDevContracts: environmentString !== "prod", }); const rhinestoneAccount = await rhinestone.createAccount({ owners: { type: "ecdsa" as const, accounts: [owner], }, - useDevContracts: environment.url != undefined, }); // get the target chain and source chains diff --git a/src/new-intent.ts b/src/new-intent.ts index 1570fc7..88aecbe 100644 --- a/src/new-intent.ts +++ b/src/new-intent.ts @@ -29,6 +29,7 @@ export const main = async () => { const rhinestone = new RhinestoneSDK({ apiKey: rhinestoneApiKey, endpointUrl: orchestratorUrl, + useDevContracts: environmentString !== "prod", }); const rhinestoneAccount = await rhinestone.createAccount({ owners: { diff --git a/src/utils/environments.ts b/src/utils/environments.ts index 488553f..ffeab3b 100644 --- a/src/utils/environments.ts +++ b/src/utils/environments.ts @@ -2,7 +2,7 @@ export const getEnvironment = (environmentString: string) => { switch (environmentString) { case "prod": return { - url: undefined, + url: "https://v1.orchestrator.rhinestone.dev", apiKey: process.env.PROD_API_KEY, }; case "dev":