@revibase/wallet-adapter 0.0.2 → 0.0.4

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
@@ -1,4 +1,5 @@
1
1
  import { TransactionDetails, MessageAuthenticationResponse, ClientAuthorizationCallback, JitoTipsConfig, BasePayload } from '@revibase/core';
2
+ export { ClientAuthorizationCallback, ClientAuthorizationCompleteRequest, ClientAuthorizationStartRequest, getSecp256r1MessageHash } from '@revibase/core';
2
3
  import { Instruction, AddressesByLookupTableAddress, TransactionSigner, Address } from 'gill';
3
4
 
4
5
  declare const RevibaseSignAndSendTransaction = "revibase:SignAndSendTransaction";
@@ -42,6 +43,7 @@ interface InitializeWalletArgs {
42
43
  proverEndpoint?: string;
43
44
  compressionApiEndpoint?: string;
44
45
  jitoTipsConfig?: JitoTipsConfig;
46
+ authEndpoint?: string;
45
47
  }
46
48
  declare function initializeWallet(input: InitializeWalletArgs): void;
47
49
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { TransactionDetails, MessageAuthenticationResponse, ClientAuthorizationCallback, JitoTipsConfig, BasePayload } from '@revibase/core';
2
+ export { ClientAuthorizationCallback, ClientAuthorizationCompleteRequest, ClientAuthorizationStartRequest, getSecp256r1MessageHash } from '@revibase/core';
2
3
  import { Instruction, AddressesByLookupTableAddress, TransactionSigner, Address } from 'gill';
3
4
 
4
5
  declare const RevibaseSignAndSendTransaction = "revibase:SignAndSendTransaction";
@@ -42,6 +43,7 @@ interface InitializeWalletArgs {
42
43
  proverEndpoint?: string;
43
44
  compressionApiEndpoint?: string;
44
45
  jitoTipsConfig?: JitoTipsConfig;
46
+ authEndpoint?: string;
45
47
  }
46
48
  declare function initializeWallet(input: InitializeWalletArgs): void;
47
49
 
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import {initialize,signAndSendTransaction,signTransactionWithPasskey,fetchUserAccountData,Secp256r1Key,getFeePayer,fetchSettingsAccountData,getSignedSecp256r1Key,retrieveTransactionManager,getSignedTransactionManager,tokenTransferIntent,nativeTransferIntent,signAndSendBundledTransactions,createPopUp,getSettingsFromIndex,prepareTransactionMessage,getJitoTipsConfig,prepareTransactionBundle,prepareTransactionSync,signMessageWithPasskey,getWalletAddressFromIndex,SignedSecp256r1Key}from'@revibase/core';import {registerWallet,bytesEqual,ReadonlyWalletAccount}from'@wallet-standard/core';var Ec="revibase:SignAndSendTransaction",lc="revibase:BuildTransaction",gc="revibase:SignMessage";var mn=1,Mn=2,pn=3,hn=4,Ln=5,yn=6,Un=7,bn=8,wn=9,Fn=10,vn=-32700,Pn=-32603,Bn=-32602,zn=-32601,xn=-32600,kn=-32019,Wn=-32018,Gn=-32017,Vn=-32016,Hn=-32015,Kn=-32014,Yn=-32013,jn=-32012,$n=-32011,Xn=-32010,Zn=-32009,Qn=-32008,qn=-32007,Jn=-32006,er=-32005,tr=-32004,nr=-32003,rr=-32002,ir=-32001,ne=28e5,re=2800001,or=2800002,xe=2800003,ke=2800004,We=2800005,Ge=2800006,Ve=2800007,He=2800008,Ke=2800009,Ye=2800010,je=2800011,ar=323e4,sr=32300001,cr=3230002,dr=3230003,ur=3230004,Ir=361e4,Ar=3610001,_r=3610002,Tr=3610003,Er=3610004,lr=3610005,gr=3610006,Rr=3610007,Dr=3611e3,Nr=3704e3,Sr=3704001,Cr=3704002,fr=3704003,Or=3704004,mr=4128e3,Mr=4128001,pr=4128002,hr=4615e3,Lr=4615001,yr=4615002,Ur=4615003,br=4615004,wr=4615005,Fr=4615006,vr=4615007,Pr=4615008,Br=4615009,zr=4615010,xr=4615011,kr=4615012,Wr=4615013,Gr=4615014,Vr=4615015,Hr=4615016,Kr=4615017,Yr=4615018,jr=4615019,$r=4615020,Xr=4615021,Zr=4615022,Qr=4615023,qr=4615024,Jr=4615025,ei=4615026,ti=4615027,ni=4615028,ri=4615029,ii=4615030,oi=4615031,ai=4615032,si=4615033,ci=4615034,di=4615035,ui=4615036,Ii=4615037,Ai=4615038,_i=4615039,Ti=4615040,Ei=4615041,li=4615042,gi=4615043,Ri=4615044,Di=4615045,Ni=4615046,Si=4615047,Ci=4615048,fi=4615049,Oi=4615050,mi=4615051,Mi=4615052,pi=4615053,hi=4615054,Li=5508e3,yi=5508001,Ui=5508002,bi=5508003,wi=5508004,Fi=5508005,vi=5508006,Pi=5508007,Bi=5508008,zi=5508009,xi=5508010,ki=5508011,ie=5663e3,Y=5663001,oe=5663002,ae=5663003,se=5663004,$e=5663005,Xe=5663006,Ze=5663007,Qe=5663008,qe=5663009,Wi=5663010,Gi=5663011,Je=5663012,Vi=5663013,Hi=5663014,et=5663015,ce=5663016,tt=5663017,nt=5663018,rt=5663019,it=5663020,de=5663021,ot=5663022,Ki=705e4,Yi=7050001,ji=7050002,$i=7050003,Xi=7050004,Zi=7050005,Qi=7050006,qi=7050007,Ji=7050008,eo=7050009,to=7050010,no=7050011,ro=7050012,io=7050013,oo=7050014,ao=7050015,so=7050016,co=7050017,uo=7050018,Io=7050019,Ao=7050020,_o=7050021,To=7050022,Eo=7050023,lo=7050024,go=7050025,Ro=7050026,Do=7050027,No=7050028,So=7050029,Co=7050030,fo=7050031,Oo=7050032,mo=7050033,Mo=7050034,po=7050035,ho=7050036,Lo=7618e3,yo=7618001,Uo=7618002,bo=7618003,at=8078e3,ue=8078001,st=8078002,ct=8078003,dt=8078004,ut=8078005,It=8078006,Ie=8078007,At=8078008,_t=8078009,Tt=8078010,Ae=8078011,x=8078012,Et=8078013,lt=8078014,gt=8078015,Rt=8078016,_e=8078017,Dt=8078018,wo=8078019,Nt=8078020,St=8078021,Ct=8078022,ft=8078023,Fo=81e5,vo=8100001,Po=8100002,Bo=8100003,zo=819e4,xo=8190001,ko=8190002,Wo=8190003,Go=8190004,Vo=99e5,Ho=9900001,Ko=9900002,Yo=9900003,jo=9900004,$o=9900005,Xo=9900006;function Ot(e){return Array.isArray(e)?"%5B"+e.map(Ot).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function Zo([e,t]){return `${e}=${Ot(t)}`}function Qo(e){let t=Object.entries(e).map(Zo).join("&");return Buffer.from(t,"utf8").toString("base64")}var qo={[ar]:"Account not found at address: $address",[ur]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[dr]:"Expected decoded account at address: $address",[cr]:"Failed to decode account data at address: $address",[sr]:"Accounts not found at addresses: $addresses",[Ke]:"Unable to find a viable program address bump seed.",[or]:"$putativeAddress is not a base58-encoded address.",[ne]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[xe]:"The `CryptoKey` must be an `Ed25519` public key.",[je]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[He]:"Invalid seeds; point must fall off the Ed25519 curve.",[ke]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[Ge]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[Ve]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[We]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[Ye]:"Program address cannot end with PDA marker.",[re]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[hn]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[mn]:"The network has progressed past the last block for which this transaction could have been committed.",[at]:"Codec [$codecDescription] cannot decode empty byte arrays.",[Ct]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Nt]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[ut]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[It]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[dt]:"Encoder and decoder must either both be fixed-size or variable-size.",[At]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[st]:"Expected a fixed-size codec, got a variable-size one.",[Et]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[ct]:"Expected a variable-size codec, got a fixed-size one.",[wo]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[ue]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[Dt]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[_t]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[Tt]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[gt]:"Invalid literal union variant. Expected one of [$variants], got $value.",[Ie]:"Expected [$codecDescription] to have $expected items, got $actual.",[x]:"Invalid value $value for base $base with alphabet $alphabet.",[Rt]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[Ae]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[lt]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[St]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[_e]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[ft]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[Dr]:"No random values implementation could be found.",[Br]:"instruction requires an uninitialized account",[Qr]:"instruction tries to borrow reference for an account which is already borrowed",[qr]:"instruction left account with an outstanding borrowed reference",[Xr]:"program other than the account's owner changed the size of the account data",[wr]:"account data too small for instruction",[Zr]:"instruction expected an executable account",[Ni]:"An account does not have enough lamports to be rent-exempt",[Ci]:"Program arithmetic overflowed",[Di]:"Failed to serialize or deserialize account data: $encodedData",[hi]:"Builtin programs must consume compute units",[ai]:"Cross-program invocation call depth too deep",[Ai]:"Computational budget exceeded",[ei]:"custom program error: #$code",[Kr]:"instruction contains duplicate accounts",[Jr]:"instruction modifications of multiply-passed account differ",[ii]:"executable accounts must be rent exempt",[ni]:"instruction changed executable accounts data",[ri]:"instruction changed the balance of an executable account",[Yr]:"instruction changed executable bit of an account",[Gr]:"instruction modified data of an account it does not own",[Wr]:"instruction spent from the balance of an account it does not own",[Lr]:"generic instruction error",[Oi]:"Provided owner is not allowed",[gi]:"Account is immutable",[Ri]:"Incorrect authority provided",[vr]:"incorrect program id for instruction",[Fr]:"insufficient funds for instruction",[br]:"invalid account data for instruction",[Si]:"Invalid account owner",[yr]:"invalid program argument",[ti]:"program returned invalid error code",[Ur]:"invalid instruction data",[Ii]:"Failed to reallocate account data",[ui]:"Provided seeds do not result in a valid address",[mi]:"Accounts data allocations exceeded the maximum allowed per transaction",[Mi]:"Max accounts exceeded",[pi]:"Max instruction trace length exceeded",[di]:"Length of the seed is too long for address generation",[si]:"An account required by the instruction is missing",[Pr]:"missing required signature for instruction",[kr]:"instruction illegally modified the program id of an account",[$r]:"insufficient account keys for instruction",[_i]:"Cross-program invocation with unauthorized signer or writable account",[Ti]:"Failed to create program execution environment",[li]:"Program failed to compile",[Ei]:"Program failed to complete",[Hr]:"instruction modified data of a read-only account",[Vr]:"instruction changed the balance of a read-only account",[ci]:"Cross-program invocation reentrancy not allowed for this instruction",[jr]:"instruction modified rent epoch of an account",[xr]:"sum of account balances before and after instruction do not match",[zr]:"instruction requires an initialized account",[hr]:"",[oi]:"Unsupported program id",[fi]:"Unsupported sysvar",[$o]:"Invalid instruction plan kind: $kind.",[Uo]:"The provided instruction plan is empty.",[bo]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute and the `cause` error for more details.",[Lo]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[Xo]:"Invalid transaction plan kind: $kind.",[yo]:"No more instructions to pack; the message packer has completed the instruction plan.",[mr]:"The instruction does not have any accounts.",[Mr]:"The instruction does not have any data.",[pr]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[Ln]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[Mn]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[Ko]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[jo]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Ho]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Vo]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Yo]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Pn]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[Bn]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[xn]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[zn]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[vn]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[jn]:"$__serverMessage",[ir]:"$__serverMessage",[tr]:"$__serverMessage",[Kn]:"$__serverMessage",[Gn]:"Epoch rewards period still active at slot $slot",[Xn]:"$__serverMessage",[Zn]:"$__serverMessage",[kn]:"Failed to query long-term storage; please try again",[Vn]:"Minimum context slot has not been reached",[er]:"Node is unhealthy; behind by $numSlotsBehind slots",[Qn]:"No snapshot",[rr]:"Transaction simulation failed",[Wn]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[qn]:"$__serverMessage",[$n]:"Transaction history is not available from this node",[Jn]:"$__serverMessage",[Yn]:"Transaction signature length mismatch",[nr]:"Transaction signature verification failure",[Hn]:"$__serverMessage",[Nr]:"Key pair bytes must be of length 64, got $byteLength.",[Sr]:"Expected private key bytes with length 32. Actual length: $actualLength.",[Cr]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[Or]:"The provided private key does not match the provided public key.",[fr]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[yn]:"Lamports value must be in the range [0, 2e64-1]",[Un]:"`$value` cannot be parsed as a `BigInt`",[Fn]:"$message",[bn]:"`$value` cannot be parsed as a `Number`",[pn]:"No nonce account could be found at address `$nonceAccountAddress`",[zo]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[ko]:"WebSocket was closed before payload could be added to the send buffer",[Wo]:"WebSocket connection closed",[Go]:"WebSocket failed to connect",[xo]:"Failed to obtain a subscription id from the server",[Bo]:"Could not find an API plan for RPC method: `$method`",[Fo]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[Po]:"HTTP error ($statusCode): $message",[vo]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Li]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[yi]:"The provided value does not implement the `KeyPairSigner` interface",[bi]:"The provided value does not implement the `MessageModifyingSigner` interface",[wi]:"The provided value does not implement the `MessagePartialSigner` interface",[Ui]:"The provided value does not implement any of the `MessageSigner` interfaces",[vi]:"The provided value does not implement the `TransactionModifyingSigner` interface",[Pi]:"The provided value does not implement the `TransactionPartialSigner` interface",[Bi]:"The provided value does not implement the `TransactionSendingSigner` interface",[Fi]:"The provided value does not implement any of the `TransactionSigner` interfaces",[zi]:"More than one `TransactionSendingSigner` was identified.",[xi]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[ki]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[Rr]:"Cannot export a non-extractable key.",[Ar]:"No digest implementation could be found.",[Ir]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[_r]:`This runtime does not support the generation of Ed25519 key pairs.
1
+ import {initialize,signAndSendTransaction,signTransactionWithPasskey,fetchUserAccountData,Secp256r1Key,getFeePayer,fetchSettingsAccountData,getSignedSecp256r1Key,retrieveTransactionManager,getSignedTransactionManager,tokenTransferIntent,nativeTransferIntent,signAndSendBundledTransactions,createPopUp,getSettingsFromIndex,prepareTransactionMessage,getJitoTipsConfig,prepareTransactionBundle,prepareTransactionSync,signMessageWithPasskey,getWalletAddressFromIndex,SignedSecp256r1Key}from'@revibase/core';export{getSecp256r1MessageHash}from'@revibase/core';import {registerWallet,bytesEqual,ReadonlyWalletAccount}from'@wallet-standard/core';var Ec="revibase:SignAndSendTransaction",lc="revibase:BuildTransaction",gc="revibase:SignMessage";var mn=1,Mn=2,pn=3,hn=4,Ln=5,yn=6,Un=7,bn=8,wn=9,Fn=10,vn=-32700,Pn=-32603,Bn=-32602,zn=-32601,xn=-32600,kn=-32019,Wn=-32018,Gn=-32017,Vn=-32016,Hn=-32015,Kn=-32014,Yn=-32013,jn=-32012,$n=-32011,Xn=-32010,Zn=-32009,Qn=-32008,qn=-32007,Jn=-32006,er=-32005,tr=-32004,nr=-32003,rr=-32002,ir=-32001,ne=28e5,re=2800001,or=2800002,xe=2800003,ke=2800004,We=2800005,Ge=2800006,Ve=2800007,He=2800008,Ke=2800009,Ye=2800010,je=2800011,ar=323e4,sr=32300001,cr=3230002,dr=3230003,ur=3230004,Ir=361e4,Ar=3610001,_r=3610002,Tr=3610003,Er=3610004,lr=3610005,gr=3610006,Rr=3610007,Dr=3611e3,Nr=3704e3,Sr=3704001,Cr=3704002,fr=3704003,Or=3704004,mr=4128e3,Mr=4128001,pr=4128002,hr=4615e3,Lr=4615001,yr=4615002,Ur=4615003,br=4615004,wr=4615005,Fr=4615006,vr=4615007,Pr=4615008,Br=4615009,zr=4615010,xr=4615011,kr=4615012,Wr=4615013,Gr=4615014,Vr=4615015,Hr=4615016,Kr=4615017,Yr=4615018,jr=4615019,$r=4615020,Xr=4615021,Zr=4615022,Qr=4615023,qr=4615024,Jr=4615025,ei=4615026,ti=4615027,ni=4615028,ri=4615029,ii=4615030,oi=4615031,ai=4615032,si=4615033,ci=4615034,di=4615035,ui=4615036,Ii=4615037,Ai=4615038,_i=4615039,Ti=4615040,Ei=4615041,li=4615042,gi=4615043,Ri=4615044,Di=4615045,Ni=4615046,Si=4615047,Ci=4615048,fi=4615049,Oi=4615050,mi=4615051,Mi=4615052,pi=4615053,hi=4615054,Li=5508e3,yi=5508001,Ui=5508002,bi=5508003,wi=5508004,Fi=5508005,vi=5508006,Pi=5508007,Bi=5508008,zi=5508009,xi=5508010,ki=5508011,ie=5663e3,Y=5663001,oe=5663002,ae=5663003,se=5663004,$e=5663005,Xe=5663006,Ze=5663007,Qe=5663008,qe=5663009,Wi=5663010,Gi=5663011,Je=5663012,Vi=5663013,Hi=5663014,et=5663015,ce=5663016,tt=5663017,nt=5663018,rt=5663019,it=5663020,de=5663021,ot=5663022,Ki=705e4,Yi=7050001,ji=7050002,$i=7050003,Xi=7050004,Zi=7050005,Qi=7050006,qi=7050007,Ji=7050008,eo=7050009,to=7050010,no=7050011,ro=7050012,io=7050013,oo=7050014,ao=7050015,so=7050016,co=7050017,uo=7050018,Io=7050019,Ao=7050020,_o=7050021,To=7050022,Eo=7050023,lo=7050024,go=7050025,Ro=7050026,Do=7050027,No=7050028,So=7050029,Co=7050030,fo=7050031,Oo=7050032,mo=7050033,Mo=7050034,po=7050035,ho=7050036,Lo=7618e3,yo=7618001,Uo=7618002,bo=7618003,at=8078e3,ue=8078001,st=8078002,ct=8078003,dt=8078004,ut=8078005,It=8078006,Ie=8078007,At=8078008,_t=8078009,Tt=8078010,Ae=8078011,x=8078012,Et=8078013,lt=8078014,gt=8078015,Rt=8078016,_e=8078017,Dt=8078018,wo=8078019,Nt=8078020,St=8078021,Ct=8078022,ft=8078023,Fo=81e5,vo=8100001,Po=8100002,Bo=8100003,zo=819e4,xo=8190001,ko=8190002,Wo=8190003,Go=8190004,Vo=99e5,Ho=9900001,Ko=9900002,Yo=9900003,jo=9900004,$o=9900005,Xo=9900006;function Ot(e){return Array.isArray(e)?"%5B"+e.map(Ot).join("%2C%20")+"%5D":typeof e=="bigint"?`${e}n`:encodeURIComponent(String(e!=null&&Object.getPrototypeOf(e)===null?{...e}:e))}function Zo([e,t]){return `${e}=${Ot(t)}`}function Qo(e){let t=Object.entries(e).map(Zo).join("&");return Buffer.from(t,"utf8").toString("base64")}var qo={[ar]:"Account not found at address: $address",[ur]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[dr]:"Expected decoded account at address: $address",[cr]:"Failed to decode account data at address: $address",[sr]:"Accounts not found at addresses: $addresses",[Ke]:"Unable to find a viable program address bump seed.",[or]:"$putativeAddress is not a base58-encoded address.",[ne]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[xe]:"The `CryptoKey` must be an `Ed25519` public key.",[je]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[He]:"Invalid seeds; point must fall off the Ed25519 curve.",[ke]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[Ge]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[Ve]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[We]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[Ye]:"Program address cannot end with PDA marker.",[re]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[hn]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[mn]:"The network has progressed past the last block for which this transaction could have been committed.",[at]:"Codec [$codecDescription] cannot decode empty byte arrays.",[Ct]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Nt]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[ut]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[It]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[dt]:"Encoder and decoder must either both be fixed-size or variable-size.",[At]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[st]:"Expected a fixed-size codec, got a variable-size one.",[Et]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[ct]:"Expected a variable-size codec, got a fixed-size one.",[wo]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[ue]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[Dt]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[_t]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[Tt]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[gt]:"Invalid literal union variant. Expected one of [$variants], got $value.",[Ie]:"Expected [$codecDescription] to have $expected items, got $actual.",[x]:"Invalid value $value for base $base with alphabet $alphabet.",[Rt]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[Ae]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[lt]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[St]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[_e]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[ft]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[Dr]:"No random values implementation could be found.",[Br]:"instruction requires an uninitialized account",[Qr]:"instruction tries to borrow reference for an account which is already borrowed",[qr]:"instruction left account with an outstanding borrowed reference",[Xr]:"program other than the account's owner changed the size of the account data",[wr]:"account data too small for instruction",[Zr]:"instruction expected an executable account",[Ni]:"An account does not have enough lamports to be rent-exempt",[Ci]:"Program arithmetic overflowed",[Di]:"Failed to serialize or deserialize account data: $encodedData",[hi]:"Builtin programs must consume compute units",[ai]:"Cross-program invocation call depth too deep",[Ai]:"Computational budget exceeded",[ei]:"custom program error: #$code",[Kr]:"instruction contains duplicate accounts",[Jr]:"instruction modifications of multiply-passed account differ",[ii]:"executable accounts must be rent exempt",[ni]:"instruction changed executable accounts data",[ri]:"instruction changed the balance of an executable account",[Yr]:"instruction changed executable bit of an account",[Gr]:"instruction modified data of an account it does not own",[Wr]:"instruction spent from the balance of an account it does not own",[Lr]:"generic instruction error",[Oi]:"Provided owner is not allowed",[gi]:"Account is immutable",[Ri]:"Incorrect authority provided",[vr]:"incorrect program id for instruction",[Fr]:"insufficient funds for instruction",[br]:"invalid account data for instruction",[Si]:"Invalid account owner",[yr]:"invalid program argument",[ti]:"program returned invalid error code",[Ur]:"invalid instruction data",[Ii]:"Failed to reallocate account data",[ui]:"Provided seeds do not result in a valid address",[mi]:"Accounts data allocations exceeded the maximum allowed per transaction",[Mi]:"Max accounts exceeded",[pi]:"Max instruction trace length exceeded",[di]:"Length of the seed is too long for address generation",[si]:"An account required by the instruction is missing",[Pr]:"missing required signature for instruction",[kr]:"instruction illegally modified the program id of an account",[$r]:"insufficient account keys for instruction",[_i]:"Cross-program invocation with unauthorized signer or writable account",[Ti]:"Failed to create program execution environment",[li]:"Program failed to compile",[Ei]:"Program failed to complete",[Hr]:"instruction modified data of a read-only account",[Vr]:"instruction changed the balance of a read-only account",[ci]:"Cross-program invocation reentrancy not allowed for this instruction",[jr]:"instruction modified rent epoch of an account",[xr]:"sum of account balances before and after instruction do not match",[zr]:"instruction requires an initialized account",[hr]:"",[oi]:"Unsupported program id",[fi]:"Unsupported sysvar",[$o]:"Invalid instruction plan kind: $kind.",[Uo]:"The provided instruction plan is empty.",[bo]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute and the `cause` error for more details.",[Lo]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[Xo]:"Invalid transaction plan kind: $kind.",[yo]:"No more instructions to pack; the message packer has completed the instruction plan.",[mr]:"The instruction does not have any accounts.",[Mr]:"The instruction does not have any data.",[pr]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[Ln]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[Mn]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[Ko]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[jo]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Ho]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Vo]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Yo]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Pn]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[Bn]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[xn]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[zn]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[vn]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[jn]:"$__serverMessage",[ir]:"$__serverMessage",[tr]:"$__serverMessage",[Kn]:"$__serverMessage",[Gn]:"Epoch rewards period still active at slot $slot",[Xn]:"$__serverMessage",[Zn]:"$__serverMessage",[kn]:"Failed to query long-term storage; please try again",[Vn]:"Minimum context slot has not been reached",[er]:"Node is unhealthy; behind by $numSlotsBehind slots",[Qn]:"No snapshot",[rr]:"Transaction simulation failed",[Wn]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[qn]:"$__serverMessage",[$n]:"Transaction history is not available from this node",[Jn]:"$__serverMessage",[Yn]:"Transaction signature length mismatch",[nr]:"Transaction signature verification failure",[Hn]:"$__serverMessage",[Nr]:"Key pair bytes must be of length 64, got $byteLength.",[Sr]:"Expected private key bytes with length 32. Actual length: $actualLength.",[Cr]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[Or]:"The provided private key does not match the provided public key.",[fr]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[yn]:"Lamports value must be in the range [0, 2e64-1]",[Un]:"`$value` cannot be parsed as a `BigInt`",[Fn]:"$message",[bn]:"`$value` cannot be parsed as a `Number`",[pn]:"No nonce account could be found at address `$nonceAccountAddress`",[zo]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[ko]:"WebSocket was closed before payload could be added to the send buffer",[Wo]:"WebSocket connection closed",[Go]:"WebSocket failed to connect",[xo]:"Failed to obtain a subscription id from the server",[Bo]:"Could not find an API plan for RPC method: `$method`",[Fo]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[Po]:"HTTP error ($statusCode): $message",[vo]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Li]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[yi]:"The provided value does not implement the `KeyPairSigner` interface",[bi]:"The provided value does not implement the `MessageModifyingSigner` interface",[wi]:"The provided value does not implement the `MessagePartialSigner` interface",[Ui]:"The provided value does not implement any of the `MessageSigner` interfaces",[vi]:"The provided value does not implement the `TransactionModifyingSigner` interface",[Pi]:"The provided value does not implement the `TransactionPartialSigner` interface",[Bi]:"The provided value does not implement the `TransactionSendingSigner` interface",[Fi]:"The provided value does not implement any of the `TransactionSigner` interfaces",[zi]:"More than one `TransactionSendingSigner` was identified.",[xi]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[ki]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[Rr]:"Cannot export a non-extractable key.",[Ar]:"No digest implementation could be found.",[Ir]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[_r]:`This runtime does not support the generation of Ed25519 key pairs.
2
2
 
3
3
  Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
4
4