@usebutr/sui 0.1.0 → 0.2.0

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.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { ChainBase, PlatformDiscoverer, WalletAdapter, WalletCapabilities } from "@usebutr/core";
2
- import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature, StandardEventsListener, WalletStandardAppModule, WalletStandardWallet, WalletStandardWallet as WalletStandardWallet$1, WalletStandardWalletAccount, WalletStandardWalletAccount as WalletStandardWalletAccount$1, WalletsApp } from "@usebutr/wallet-standard-shared";
2
+ import { WalletStandardWallet, WalletStandardWalletAccount } from "@usebutr/wallet-standard-shared";
3
3
 
4
4
  //#region src/wallet-standard-types.d.ts
5
5
  type SuiSignPersonalMessageInput = {
6
- account: WalletStandardWalletAccount$1;
6
+ account: WalletStandardWalletAccount;
7
7
  message: Uint8Array;
8
8
  };
9
9
  type SuiSignPersonalMessageOutput = {
@@ -14,7 +14,7 @@ type SuiSignPersonalMessageFeature = {
14
14
  signPersonalMessage(input: SuiSignPersonalMessageInput): Promise<SuiSignPersonalMessageOutput>;
15
15
  };
16
16
  type SuiSignTransactionInput = {
17
- account: WalletStandardWalletAccount$1;
17
+ account: WalletStandardWalletAccount;
18
18
  chain: string;
19
19
  transaction: {
20
20
  toJSON(): Promise<string>;
@@ -28,7 +28,7 @@ type SuiSignTransactionFeature = {
28
28
  signTransaction(input: SuiSignTransactionInput): Promise<SuiSignTransactionOutput>;
29
29
  };
30
30
  type SuiSignAndExecuteTransactionInput = {
31
- account: WalletStandardWalletAccount$1;
31
+ account: WalletStandardWalletAccount;
32
32
  chain: string;
33
33
  transaction: {
34
34
  toJSON(): Promise<string>;
@@ -64,7 +64,7 @@ declare const slugify: (name: string) => string;
64
64
  * has no "tell the wallet to switch network" RPC; the wallet's UI
65
65
  * controls its global cluster setting.
66
66
  */
67
- declare const buildSuiAdapter: (wallet: WalletStandardWallet$1,
67
+ declare const buildSuiAdapter: (wallet: WalletStandardWallet,
68
68
  /** Optional. Called with a function that pushes a synthetic
69
69
  * `disconnected` event to all current subscribers. The discovery
70
70
  * layer invokes it on Wallet Standard `unregister`. */
@@ -160,9 +160,9 @@ declare const suiDiscoverer: PlatformDiscoverer;
160
160
  */
161
161
  declare module "@usebutr/core" {
162
162
  interface SignerForPlatform {
163
- sui: WalletStandardWallet$1;
163
+ sui: WalletStandardWallet;
164
164
  }
165
165
  } //# sourceMappingURL=signer-augmentation.d.ts.map
166
166
  //#endregion
167
- export { SUI_CHAINS, SUI_CHAINS_LIST, type StandardConnectFeature, type StandardDisconnectFeature, type StandardEventsFeature, type StandardEventsListener, type SuiSignAndExecuteTransactionFeature, type SuiSignAndExecuteTransactionInput, type SuiSignAndExecuteTransactionOutput, type SuiSignPersonalMessageFeature, type SuiSignPersonalMessageInput, type SuiSignPersonalMessageOutput, type SuiSignTransactionFeature, type SuiSignTransactionInput, type SuiSignTransactionOutput, type WalletStandardAppModule, type WalletStandardCapabilityInput, type WalletStandardWallet, type WalletStandardWalletAccount, type WalletsApp, buildSuiAdapter, discoverSuiAdapters, resolveSuiCapabilities, slugify, suiDiscoverer };
167
+ export { SUI_CHAINS, SUI_CHAINS_LIST, type SuiSignAndExecuteTransactionFeature, type SuiSignAndExecuteTransactionInput, type SuiSignAndExecuteTransactionOutput, type SuiSignPersonalMessageFeature, type SuiSignPersonalMessageInput, type SuiSignPersonalMessageOutput, type SuiSignTransactionFeature, type SuiSignTransactionInput, type SuiSignTransactionOutput, type WalletStandardCapabilityInput, buildSuiAdapter, discoverSuiAdapters, resolveSuiCapabilities, slugify, suiDiscoverer };
168
168
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/wallet-standard-types.ts","../src/wallet-standard-adapter.ts","../src/wallet-standard.ts","../src/chains.ts","../src/capabilities.ts","../src/discoverer.ts","../src/signer-augmentation.ts"],"mappings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BAWrE;;;;;;AJzBiF;cKH7E,aAAA,EAAe,kBAGpB;;;;;;ALAkF;;;;YMDvE,iBAAA;IACR,GAAA,EAAK,sBAAoB;EAAA;AAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/wallet-standard-types.ts","../src/wallet-standard-adapter.ts","../src/wallet-standard.ts","../src/chains.ts","../src/capabilities.ts","../src/discoverer.ts","../src/signer-augmentation.ts"],"mappings":";;;;KAaK,2BAAA;EACH,OAAA,EAAS,2BAAA;EACT,OAAA,EAAS,UAAU;AAAA;AAAA,KAGhB,4BAAA;EACH,KAAA;EACA,SAAS;AAAA;AAAA,KAGN,6BAAA;EACH,mBAAA,CAAoB,KAAA,EAAO,2BAAA,GAA8B,OAAA,CAAQ,4BAAA;AAAA;AAAA,KAG9D,uBAAA;EACH,OAAA,EAAS,2BAAA;EACT,KAAA;EACA,WAAA;IAAe,MAAA,IAAU,OAAO;EAAA;AAAA;AAAA,KAG7B,wBAAA;EACH,KAAA;EACA,SAAS;AAAA;AAAA,KAGN,yBAAA;EACH,eAAA,CAAgB,KAAA,EAAO,uBAAA,GAA0B,OAAA,CAAQ,wBAAA;AAAA;AAAA,KAGtD,iCAAA;EACH,OAAA,EAAS,2BAAA;EACT,KAAA;EACA,WAAA;IAAe,MAAA,IAAU,OAAO;EAAA;AAAA;AAAA,KAG7B,kCAAA;EACH,KAAA;EACA,MAAA;EACA,OAAA;EACA,SAAA;AAAA;AAAA,KAGG,mCAAA;EACH,yBAAA,CACE,KAAA,EAAO,iCAAA,GACN,OAAA,CAAQ,kCAAA;AAAA;;;cCpBP,OAAA,GAAW,IAAY;;AD3BsD;;;;;;;;;AAI9D;AAAA;;;;AAKV;AAAA;;cC2EL,eAAA,GACJ,MAAA,EAAQ,oBAAA;;;;;AAIR,oBAAA,IAAwB,IAAA,0BACvB,aAAa;;;;;;AD1FmE;;;;;;;;;AAI9D;AAAA;;;cEMf,mBAAA,GAAuB,SAAA,GAAY,OAAA,EAAS,aAAa;;;cCdzD,UAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAiBA,eAAA,EAAiB,aAAa,CAAC,SAAA;;;KCtBhC,6BAAA;EACH,UAAA;EACA,QAAA;IACE,MAAA;IACA,yBAAA;IACA,WAAA;IACA,eAAA;EAAA;AAAA;;;;AJOiB;AAAA;;;;AAKV;AAAA;;;;cIKL,sBAAA,GAA0B,KAAA,EAAO,6BAAA,KAAgC,kBAWrE;;;;;;AJzBiF;cKH7E,aAAA,EAAe,kBAGpB;;;;;;ALAkF;;;;YMDvE,iBAAA;IACR,GAAA,EAAK,oBAAoB;EAAA;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usebutr/sui",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Wallet Standard adapter for butr (Sui).",
5
5
  "license": "MIT",
6
6
  "author": "Pedro Filho <pedro@filho.me>",
@@ -25,8 +25,8 @@
25
25
  "access": "public"
26
26
  },
27
27
  "dependencies": {
28
- "@usebutr/core": "0.1.0",
29
- "@usebutr/wallet-standard-shared": "0.1.0"
28
+ "@usebutr/core": "0.2.0",
29
+ "@usebutr/wallet-standard-shared": "0.2.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@wallet-standard/app": "^1.1.0",