"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./unsignedTransaction-DA4tlY5u.js"),c=require("./keypair-DWucLGoA.js"),u=require("./platform-CCG_jgOO.js");async function d(r,e){const[,i]=await n.SuiPlatform.chainFromRpc(r);return new g(i,r,c.Ed25519Keypair.deriveKeypair(e,"m/44'/784'/0'/0'/0'"))}class g{_chain;_client;_signer;_debug;constructor(e,i,t,s){this._chain=e,this._client=i,this._signer=t,this._debug=s}chain(){return this._chain}address(){return this._signer.toSuiAddress()}async signAndSend(e){const i=[];for(const t of e){const{description:s,transaction:a}=t;this._debug&&console.log(`Signing ${s} for ${this.address()}`);try{const o=await this._client.signAndExecuteTransaction({transaction:a,signer:this._signer});i.push(o.digest)}catch(o){throw o}}return i}}const h={Address:n.SuiAddress,Platform:n.SuiPlatform,getSigner:d,protocols:{WormholeCore:()=>Promise.resolve().then(()=>require("./index-D7gCsil9.js")),TokenBridge:()=>Promise.resolve().then(()=>require("./index-Cys9e11O.js")),CircleBridge:()=>Promise.resolve().then(()=>require("./index-Cg1Xo1eZ.js"))},getChain:(r,e,i)=>new n.SuiChain(e,new n.SuiPlatform(r,u.applyChainsConfigConfigOverrides(r,n._platform$1,{[e]:i})))};exports.default=h;
