Skip to content

Commit

Permalink
Merge pull request #1 from rhinestonewtf/feature/cleanup-v0.0.1
Browse files Browse the repository at this point in the history
feat: cleanup for v0.0.1
  • Loading branch information
legion2002 authored Dec 6, 2024
2 parents c31862d + f831eef commit 6171d9f
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 21 deletions.
12 changes: 6 additions & 6 deletions .size-limit.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[
{
"name": "module-sdk (esm)",
"name": "orchestrator-sdk (esm)",
"path": "./src/_esm/index.js",
"limit": "1.5 kB",
"limit": "90 kB",
"import": "*"
},
{
"name": "module-sdk (cjs)",
"name": "orchestrator-sdk (cjs)",
"path": "./src/_cjs/index.js",
"limit": "1.5 kB"
"limit": "190 kB"
},
{
"name": "module-sdk (minimal surface - tree-shaking)",
"name": "orchestrator-sdk (minimal surface - tree-shaking)",
"path": "./src/_esm/index.js",
"limit": "1.5 kB",
"limit": "90 kB",
"import": "{ getOrchestrator }"
}
]
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"type": "module",
"name": "orchestrator-sdk",
"version": "0.0.1",
"description": "A TypeScript library for using the Rhinestone Orchestrator",
"scripts": {
"prepare": "npm run build",
"build": "npm run clean && npm run build:cjs && npm run build:esm && npm run build:types",
Expand Down
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ For API documentation, visit: [Swagger Docs](https://orchestrator-prototype-38oy
### Installation

```bash
npm install viem @rhinestone/orchestrator-sdk
npm install viem @rhinestone/module-sdk @rhinestone/orchestrator-sdk
```

```bash
pnpm install viem @rhinestone/orchestrator-sdk
pnpm install viem @rhinestone/module-sdk @rhinestone/orchestrator-sdk
```

```bash
yarn add viem @rhinestone/orchestrator-sdk
yarn add viem @rhinestone/module-sdk @rhinestone/orchestrator-sdk
```

```bash
bun install viem @rhinestone/orchestrator-sdk
bun install viem @rhinestone/module-sdk @rhinestone/orchestrator-sdk
```

### Quick Start
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ORCHESTRATOR_PUBLIC_KEY, ORCHESTRATOR_URL } from './constants'
import { ORCHESTRATOR_URL } from './constants'
import { Orchestrator } from './orchestrator'

export * from './orchestrator'
Expand All @@ -7,6 +7,7 @@ export * from './constants'
export * from './utils'

export { Orchestrator }

export function getOrchestrator(apiKey: string): Orchestrator {
return new Orchestrator(ORCHESTRATOR_URL, apiKey)
}
8 changes: 2 additions & 6 deletions src/orchestrator.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import { Execution } from '@rhinestone/module-sdk'
import { Address, Hex } from 'viem'
import { signOrderBundleWithOwnableValidator } from './common/signer'
import { MetaIntent, SignedIntent, SignedOrderBundle } from './types'
import { Execution, MetaIntent, SignedIntent, SignedOrderBundle } from './types'
import { convertBigIntFields } from './utils'

const axios = require('axios')

require('dotenv').config()
import axios from 'axios'

export class Orchestrator {
private serverUrl: string
Expand Down
3 changes: 2 additions & 1 deletion src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"./package.json": "./package.json"
},
"peerDependencies": {
"viem": "^2.17.8"
"viem": "^2.17.8",
"@rhinestone/module-sdk": "^0.1.29"
},
"homepage": "https://docs.rhinestone.wtf/orchestrator-sdk",
"bugs": {
Expand Down

0 comments on commit 6171d9f

Please sign in to comment.