Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trading-runner: misc fixes #447

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/trading-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"build": "pnpm -w run build-all",
"cli": "pnpm build && tsx src/index.ts",
"cli": "tsx src/index.ts",
"clean": "rimraf ./dist ./.cache",
"typecheck": "tsc --noEmit"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/trading-runner/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { toReadableAmount } from "./utils";

// For demonstration purposes, create a globally accessible TurnkeyClient
const turnkeyClient = new TurnkeySDKServer({
apiBaseUrl: "https://api.turnkey.com",
apiBaseUrl: process.env.BASE_URL!,
apiPublicKey: process.env.API_PUBLIC_KEY!,
apiPrivateKey: process.env.API_PRIVATE_KEY!,
defaultOrganizationId: process.env.ORGANIZATION_ID!,
Expand Down
2 changes: 1 addition & 1 deletion examples/trading-runner/src/requests/createPolicy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default async function createPolicy(
condition: string
): Promise<string> {
try {
const { policyId } = await turnkeyClient.apiClient().createPolicy({
const { policyId } = await turnkeyClient.createPolicy({
policyName,
condition,
consensus,
Expand Down
2 changes: 1 addition & 1 deletion examples/trading-runner/src/requests/createPrivateKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default async function createPrivateKey(
console.log("creating a new Ethereum private key on Turnkey...\n");

try {
const { privateKeys } = await turnkeyClient.apiClient().createPrivateKeys({
const { privateKeys } = await turnkeyClient.createPrivateKeys({
privateKeys: [
{
privateKeyName,
Expand Down
2 changes: 1 addition & 1 deletion examples/trading-runner/src/requests/createUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default async function createUser(
publicKey: string
): Promise<string> {
try {
const { userIds } = await turnkeyClient.apiClient().createApiOnlyUsers({
const { userIds } = await turnkeyClient.createApiOnlyUsers({
apiOnlyUsers: [
{
userName,
Expand Down
Loading