stable-layer-sdk 1.0.0 → 1.0.2

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.
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { StableLayerSDK } from "./index";
10
+ import { StableLayerClient } from "./index";
11
11
  import { Transaction } from "@mysten/sui/transactions";
12
12
  import { getFullnodeUrl, SuiClient } from "@mysten/sui/client";
13
13
  import { describe, it, expect, beforeAll } from "vitest";
@@ -20,12 +20,12 @@ describe("StableLayerSDK", () => {
20
20
  let sdk;
21
21
  let suiClient;
22
22
  beforeAll(() => {
23
- sdk = new StableLayerSDK(testConfig);
23
+ sdk = new StableLayerClient(testConfig);
24
24
  suiClient = new SuiClient({ url: getFullnodeUrl("mainnet") });
25
25
  });
26
26
  describe("constructor", () => {
27
27
  it("should initialize with correct config", () => {
28
- expect(sdk).toBeInstanceOf(StableLayerSDK);
28
+ expect(sdk).toBeInstanceOf(StableLayerClient);
29
29
  });
30
30
  });
31
31
  describe("buildMintTx", () => {
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Transaction } from "@mysten/sui/transactions";
2
2
  import { StableLayerConfig, MintTransactionParams, BurnTransactionParams, ClaimTransactionParams, StableCoinType } from "./interface";
3
- export declare class StableLayerSDK {
3
+ export declare class StableLayerClient {
4
4
  private bucketClient;
5
5
  private suiClient;
6
6
  private sender;
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ import { release } from "./generated/yield_usdb/yield_usdb";
15
15
  import { fulfillBurn, mint, requestBurn, } from "./generated/stable_layer/stable_layer";
16
16
  import { claim, pay, receive, } from "./generated/stable_vault_farm/stable_vault_farm";
17
17
  import { STABLE_REGISTRY } from "./libs/constants";
18
- export class StableLayerSDK {
18
+ export class StableLayerClient {
19
19
  constructor(config) {
20
20
  this.bucketClient = new BucketClient({ network: config.network });
21
21
  this.suiClient = new SuiClient({ url: getFullnodeUrl(config.network) });
@@ -1,7 +1,6 @@
1
1
  import { Transaction } from "@mysten/sui/transactions";
2
- import { Network } from "@bucket-protocol/sdk";
3
2
  export interface StableLayerConfig {
4
- network: Network;
3
+ network: "mainnet" | "testnet";
5
4
  sender: string;
6
5
  }
7
6
  export interface MintTransactionParams {
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "stable-layer-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "A TypeScript SDK for Stable Layer",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/StableLayer/stable-layer-sdk"
8
8
  },
9
+ "type": "module",
9
10
  "main": "dist/index.js",
10
11
  "types": "dist/index.d.ts",
11
12
  "files": [
@@ -41,5 +42,9 @@
41
42
  },
42
43
  "resolutions": {
43
44
  "@mysten/sui": "^1.44.0"
45
+ },
46
+ "publishConfig": {
47
+ "access": "public",
48
+ "provenance": true
44
49
  }
45
50
  }