Skip to content

Commit

Permalink
update as per new package restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
Envoy-VC committed Dec 21, 2023
1 parent 535901e commit e30b848
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
15 changes: 3 additions & 12 deletions apps/docs/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,12 @@ Currently, Atomic Toolkit can be initialized using a Arweave Wallet or [Irys SDK
const key = JSON.parse(readFileSync('wallet.json').toString());

const atomicToolkit = new AtomicToolkit({
environment: 'mainnet',
jwk: key,
});
```

```ts Client-side
const atomicToolkit = new AtomicToolkitWeb({
environment: 'mainnet',
});
const atomicToolkit = new AtomicToolkitWeb({});
```

</CodeGroup>
Expand All @@ -78,8 +75,6 @@ const irys = new Irys({
await irys.ready();

const atomicToolkit = new AtomicToolkit({
environment: 'mainnet',
useIrys: true,
irys: irys,
});
```
Expand All @@ -95,8 +90,6 @@ const webIrys = new WebIrys({
await webIrys.ready();

const atomicToolkit = new AtomicToolkitWeb({
environment: 'mainnet',
useIrys: true,
irys: webIrys,
});
```
Expand All @@ -108,16 +101,14 @@ const atomicToolkit = new AtomicToolkitWeb({
Now that you have the SDK setup, you can create a new Atomic Asset.

```ts
const atomicToolkit = new AtomicToolkitWeb({
environment: 'mainnet',
});
const atomicToolkit = new AtomicToolkitWeb({});

// Simple Text File
const file = new File(['hello world'], 'hello.txt', {
type: 'text/plain',
});

const res = await atomicToolkit.createAtomicAsset(file, {
const res = await atomicToolkit.assets.createAtomicAsset(file, {
initialState: {
ticker: 'HELLO',
name: 'Hello World',
Expand Down
3 changes: 0 additions & 3 deletions apps/docs/usage/server-side.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import AtomicToolkit from 'atomic-toolkit';
const key = JSON.parse(readFileSync('wallet.json').toString());

const atomicToolkit = new AtomicToolkit({
environment: 'mainnet',
jwk: key,
});
```
Expand All @@ -28,7 +27,6 @@ const atomicToolkit = new AtomicToolkit({

The following params are available for this function and they must be passed in as an object:

- **environment**: `mainnet` | `testnet`: The environment to use. If testnet is used, warp for testnet will be used.
- **warp (optional)**: `Warp`: A Warp Instance to use with Deploy Plugin. If not provided, the default Warp instance for Mainnet will be used.
- **arweave (optional)**: `Arweave`: An Arweave Instance to use. If not provided, the default Arweave instance with gateway [arweave.net](arweave.net) will be used.
- **jwk**: `JWKInterface`: The Key to use for signing transactions. Should be a JWK object.
Expand Down Expand Up @@ -88,7 +86,6 @@ const warp = WarpFactory.forMainnet({
}).use(new DeployPlugin());

const atomicToolkit = new AtomicToolkit({
environment: 'mainnet',
warp,
arweave,
jwk: key,
Expand Down

0 comments on commit e30b848

Please sign in to comment.