@zing-protocol/zing-sdk 0.1.1 → 0.1.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.
@@ -4,7 +4,7 @@ export declare const PLATFORMS: readonly ["twitter"];
4
4
  export type PlatformType = (typeof PLATFORMS)[number];
5
5
  export declare const WORKS: readonly ["article"];
6
6
  export type WorkType = (typeof WORKS)[number];
7
- export declare const COIN_SYMBOLS: readonly ["USDC"];
7
+ export declare const COIN_SYMBOLS: readonly ["USDC", "WAL"];
8
8
  export type CoinSymbol = (typeof COIN_SYMBOLS)[number];
9
9
  export declare const AUTH_PROVIDER_ICON_PATH: Record<AuthProvider, string>;
10
10
  export declare const WALRUS_UPLOAD_FLOW_STAGES: readonly ["encode", "register_blob", "upload", "certify_blob", "publish"];
@@ -1,7 +1,7 @@
1
1
  export const AUTH_PROVIDDERS = ["Google"];
2
2
  export const PLATFORMS = ["twitter"];
3
3
  export const WORKS = ["article"];
4
- export const COIN_SYMBOLS = ["USDC"];
4
+ export const COIN_SYMBOLS = ["USDC", "WAL"];
5
5
  export const AUTH_PROVIDER_ICON_PATH = {
6
6
  Google: "icons/google.svg",
7
7
  };
@@ -14,4 +14,5 @@ export const WALRUS_UPLOAD_FLOW_STAGES = [
14
14
  ];
15
15
  export const COIN_DECIMALS = {
16
16
  USDC: 6,
17
+ WAL: 9,
17
18
  };
@@ -42,6 +42,7 @@ export const mainnetWalrusConfig = {
42
42
  // coins
43
43
  export const mainnetCoinConfig = {
44
44
  USDC: "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC",
45
+ WAL: "0x356a26eb9e012a68958082340d4c4116e7f55615cf27affcff209cf0ae544f59::wal::WAL",
45
46
  };
46
47
  // seal
47
48
  export const mainnetSealConfig = {
@@ -43,6 +43,7 @@ export const testnetWalrusConfig = {
43
43
  // coins
44
44
  export const testnetCoinConfig = {
45
45
  USDC: "0xa1ec7fc00a6f40db9693ad1415d0c193ad3906494428cf252621037bd7117e29::usdc::USDC",
46
+ WAL: "0x8270feb7375eee355e64fdb69c50abb6b5f9393a722883c1cf45f8e26048810a::wal::WAL",
46
47
  };
47
48
  export const testnetSealConfig = {
48
49
  serverConfigs: [
package/dist/const.d.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  import type { SuiNetwork } from "./types.js";
2
2
  import type { KeyServerConfig } from "@mysten/seal";
3
- export declare const WALRUS_UPLOAD_RELAY_BASE_URL: Record<SuiNetwork, string>;
4
3
  export declare const SEAL_SERVERS_CONFIGS: Record<SuiNetwork, KeyServerConfig[]>;
package/dist/const.js CHANGED
@@ -1,10 +1,3 @@
1
- // // Walrus upload relay
2
- export const WALRUS_UPLOAD_RELAY_BASE_URL = {
3
- mainnet: "https://walrus-upload-relay-production-73a4.up.railway.app",
4
- testnet: "https://walrus-upload-relay-production-73a4.up.railway.app",
5
- };
6
- // Platform
7
- // seal
8
1
  export const SEAL_SERVERS_CONFIGS = {
9
2
  mainnet: [
10
3
  {
@@ -12,7 +12,6 @@ export function useZingInfiniteQuery(input, options = {}, memo = []) {
12
12
  const methodMap = zingInfiniteQueryMethodMap(zingClient);
13
13
  const { method, params, limit = 20 } = input;
14
14
  return useInfiniteQuery({
15
- // eslint-disable-next-line @tanstack/query/exhaustive-deps
16
15
  queryKey: [zingClient.network, method, memo],
17
16
  queryFn: async ({ pageParam }) => {
18
17
  const fn = methodMap[method];
@@ -19,7 +19,6 @@ export function useZingQueries(options) {
19
19
  const queryConfigs = options.queries.map((queryConfig) => {
20
20
  const { method, params, ...queryOptions } = queryConfig;
21
21
  return {
22
- // eslint-disable-next-line @tanstack/query/exhaustive-deps
23
22
  queryKey: [zingClient.network, method, params],
24
23
  queryFn: async () => {
25
24
  const fn = methodMap[method];
@@ -20,7 +20,6 @@ export function useZingQuery(input, options = {}, memo = []) {
20
20
  const methodMap = zingQueryMethodMap(zingClient);
21
21
  const { method, params } = input;
22
22
  return useQuery({
23
- // eslint-disable-next-line @tanstack/query/exhaustive-deps
24
23
  queryKey: [zingClient.network, method, memo],
25
24
  gcTime: options.gcTime,
26
25
  staleTime: options.staleTime,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@zing-protocol/zing-sdk",
3
3
  "sideEffects": false,
4
4
  "type": "module",
5
- "version": "0.1.1",
5
+ "version": "0.1.2",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "exports": {
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "scripts": {
15
15
  "build": "tsc",
16
- "type-check": "tsc --noEmit"
16
+ "lint": "eslint ."
17
17
  },
18
18
  "dependencies": {
19
19
  "@mysten/seal": "^1.0.1",