@weblock-wallet/sdk 0.1.44 → 0.1.46

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/dist/index.d.cts CHANGED
@@ -421,6 +421,10 @@ declare class WeBlockSDK {
421
421
  signIn: (provider: "google.com") => Promise<SignInResponse>;
422
422
  createWallet: (password: string) => Promise<WalletResponse>;
423
423
  retrieveWallet: (password: string) => Promise<WalletResponse>;
424
+ /**
425
+ * ✅ 추가: PIN reset API 노출
426
+ */
427
+ resetPin: (newPassword: string) => Promise<WalletResponse>;
424
428
  signOut: () => Promise<void>;
425
429
  };
426
430
  readonly wallet: {
@@ -458,23 +462,6 @@ declare class WeBlockSDK {
458
462
  address: string;
459
463
  name?: string;
460
464
  }) => Promise<void>;
461
- getTokenBalance: (params: {
462
- networkId: string;
463
- tokenAddress: string;
464
- walletAddress: string;
465
- }) => Promise<string>;
466
- approveToken: (params: {
467
- networkId: string;
468
- tokenAddress: string;
469
- spender: string;
470
- amount: string;
471
- }) => Promise<string>;
472
- getAllowance: (params: {
473
- networkId: string;
474
- tokenAddress: string;
475
- owner: string;
476
- spender: string;
477
- }) => Promise<string>;
478
465
  on: (event: string, listener: (...args: any[]) => void) => void;
479
466
  off: (event: string, listener: (...args: any[]) => void) => void;
480
467
  getTokenInfo: (params: TokenInfoParams) => Promise<TokenMetadata>;
package/dist/index.d.ts CHANGED
@@ -421,6 +421,10 @@ declare class WeBlockSDK {
421
421
  signIn: (provider: "google.com") => Promise<SignInResponse>;
422
422
  createWallet: (password: string) => Promise<WalletResponse>;
423
423
  retrieveWallet: (password: string) => Promise<WalletResponse>;
424
+ /**
425
+ * ✅ 추가: PIN reset API 노출
426
+ */
427
+ resetPin: (newPassword: string) => Promise<WalletResponse>;
424
428
  signOut: () => Promise<void>;
425
429
  };
426
430
  readonly wallet: {
@@ -458,23 +462,6 @@ declare class WeBlockSDK {
458
462
  address: string;
459
463
  name?: string;
460
464
  }) => Promise<void>;
461
- getTokenBalance: (params: {
462
- networkId: string;
463
- tokenAddress: string;
464
- walletAddress: string;
465
- }) => Promise<string>;
466
- approveToken: (params: {
467
- networkId: string;
468
- tokenAddress: string;
469
- spender: string;
470
- amount: string;
471
- }) => Promise<string>;
472
- getAllowance: (params: {
473
- networkId: string;
474
- tokenAddress: string;
475
- owner: string;
476
- spender: string;
477
- }) => Promise<string>;
478
465
  on: (event: string, listener: (...args: any[]) => void) => void;
479
466
  off: (event: string, listener: (...args: any[]) => void) => void;
480
467
  getTokenInfo: (params: TokenInfoParams) => Promise<TokenMetadata>;
package/dist/index.js CHANGED
@@ -106539,6 +106539,12 @@ var WeBlockSDK = class {
106539
106539
  retrieveWallet: async (password) => {
106540
106540
  return this.userModule.retrieveWallet(password);
106541
106541
  },
106542
+ /**
106543
+ * ✅ 추가: PIN reset API 노출
106544
+ */
106545
+ resetPin: async (newPassword) => {
106546
+ return this.userModule.resetPin(newPassword);
106547
+ },
106542
106548
  signOut: async () => {
106543
106549
  return this.userModule.signOut();
106544
106550
  }
@@ -106597,37 +106603,6 @@ var WeBlockSDK = class {
106597
106603
  addNFTCollection: async (params) => {
106598
106604
  return this.assetModule.addNFTCollection(params);
106599
106605
  },
106600
- // checkSecurityTokenCompliance: async (params: {
106601
- // networkId: string
106602
- // tokenAddress: string
106603
- // from: string
106604
- // to: string
106605
- // amount: string
106606
- // }): Promise<{
106607
- // canTransfer: boolean
106608
- // reasons?: string[]
106609
- // }> => {
106610
- // return this.assetModule.checkSecurityTokenCompliance(params)
106611
- // },
106612
- getTokenBalance: async (params) => {
106613
- return this.assetModule.getTokenBalance(params);
106614
- },
106615
- approveToken: async (params) => {
106616
- return this.assetModule.approveToken(params);
106617
- },
106618
- getAllowance: async (params) => {
106619
- return this.assetModule.getAllowance(params);
106620
- },
106621
- // getTokenInfo: async (params: {
106622
- // networkId: string
106623
- // tokenAddress: string
106624
- // }): Promise<{
106625
- // name: string
106626
- // symbol: string
106627
- // decimals: number
106628
- // }> => {
106629
- // return this.assetModule.getTokenInfo(params)
106630
- // },
106631
106606
  on: (event, listener) => {
106632
106607
  this.assetModule.on(event, listener);
106633
106608
  },