Skip to content

Commit

Permalink
chore(docs): improve docs and logo (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
zfy0701 authored Jan 31, 2024
1 parent 5516c11 commit a7ec35f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
6 changes: 5 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Typemove
<p align="center">
<img src="./images/logo.png" width="300" alt="TypeChain">
</p>

# TypeMove
Generate TypeScript bindings for Move smart contracts. (currently support Aptos & SUI).
Developed by [Sentio](sentio.xyz).
## Features
Expand Down
Binary file added images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion packages/aptos/Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Typemove
<p align="center">
<img src="../../images/logo.png" width="300" alt="TypeChain">
</p>

# TypeMove
Generate TypeScript bindings for Aptos contracts.
## Features
- Code generation for Aptos smart contract based on ABI
Expand Down
12 changes: 8 additions & 4 deletions packages/sui/Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Typemove
<p align="center">
<img src="../../images/logo.png" width="300" alt="TypeChain">
</p>

# TypeMove
Generate TypeScript bindings for Sui contracts.
## Features
- Code generation for SUI smart contract based on ABI
Expand Down Expand Up @@ -43,7 +47,7 @@ A few examples:

### Decode Object
```typescript
import { defaultMoveCoder } from '../move-coder.js'
import { defaultMoveCoder } from '@typemove/sui'
import { single_collateral } from './types/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.js'
const res = await defaultMoveCoder().decodedType(
Expand All @@ -52,8 +56,8 @@ const res = await defaultMoveCoder().decodedType(
)
```

<details>
<summary>Without TypeMove</summary>
<details open>
<summary>Click to see what's like without TypeMove</summary>

```typescript
export interface Info {
Expand Down

0 comments on commit a7ec35f

Please sign in to comment.