@dipansrimany/mlink-sdk 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @mlink/sdk
|
|
2
2
|
|
|
3
3
|
SDK for building Mantle Blinks - shareable blockchain transaction URLs for Mantle Network.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install @
|
|
8
|
+
npm install @dipansrimany/mlink-sdk
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Quick Start
|
|
@@ -13,7 +13,7 @@ npm install @mantle-blinks/sdk
|
|
|
13
13
|
### 1. Create an Action
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import { createAction, button, input, parseEther } from '@
|
|
16
|
+
import { createAction, button, input, parseEther } from '@dipansrimany/mlink-sdk';
|
|
17
17
|
|
|
18
18
|
export const tipAction = createAction({
|
|
19
19
|
title: 'Tip the Developer',
|
|
@@ -46,7 +46,7 @@ export const tipAction = createAction({
|
|
|
46
46
|
|
|
47
47
|
```typescript
|
|
48
48
|
// app/api/actions/tip/route.ts
|
|
49
|
-
import { createNextHandler } from '@
|
|
49
|
+
import { createNextHandler } from '@dipansrimany/mlink-sdk/next';
|
|
50
50
|
import { tipAction } from './action';
|
|
51
51
|
|
|
52
52
|
export const { GET, POST, OPTIONS } = createNextHandler(tipAction);
|
|
@@ -56,7 +56,7 @@ export const { GET, POST, OPTIONS } = createNextHandler(tipAction);
|
|
|
56
56
|
|
|
57
57
|
```typescript
|
|
58
58
|
import express from 'express';
|
|
59
|
-
import { createExpressHandler } from '@
|
|
59
|
+
import { createExpressHandler } from '@dipansrimany/mlink-sdk/express';
|
|
60
60
|
import { tipAction } from './action';
|
|
61
61
|
|
|
62
62
|
const app = express();
|