Socket
Socket
Sign inDemoInstall

@solana/signers

Package Overview
Dependencies
Maintainers
14
Versions
840
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solana/signers - npm Package Compare versions

Comparing version 2.0.0-experimental.40c54bd to 2.0.0-experimental.699bde0

106

dist/index.development.js

@@ -44,3 +44,3 @@ this.globalThis = this.globalThis || {};

return {
description: description ?? `fixed(${fixedBytes}, ${data.description})`,
description: description != null ? description : `fixed(${fixedBytes}, ${data.description})`,
fixedSize: fixedBytes,

@@ -90,2 +90,3 @@ maxSize: fixedBytes

function sharedNumberFactory(input) {
var _a;
let littleEndian;

@@ -98,3 +99,3 @@ let defaultDescription = input.name;

return {
description: input.config.description ?? defaultDescription,
description: (_a = input.config.description) != null ? _a : defaultDescription,
fixedSize: input.size,

@@ -136,27 +137,30 @@ littleEndian,

function toArrayBuffer(bytes, offset, length) {
const bytesOffset = bytes.byteOffset + (offset ?? 0);
const bytesLength = length ?? bytes.byteLength;
const bytesOffset = bytes.byteOffset + (offset != null ? offset : 0);
const bytesLength = length != null ? length : bytes.byteLength;
return bytes.buffer.slice(bytesOffset, bytesOffset + bytesLength);
}
var getShortU16Encoder = (config = {}) => ({
description: config.description ?? "shortU16",
encode: (value) => {
assertNumberIsBetweenForCodec("shortU16", 0, 65535, value);
const bytes = [0];
for (let ii = 0; ; ii += 1) {
const alignedValue = value >> ii * 7;
if (alignedValue === 0) {
break;
var getShortU16Encoder = (config = {}) => {
var _a;
return {
description: (_a = config.description) != null ? _a : "shortU16",
encode: (value) => {
assertNumberIsBetweenForCodec("shortU16", 0, 65535, value);
const bytes = [0];
for (let ii = 0; ; ii += 1) {
const alignedValue = value >> ii * 7;
if (alignedValue === 0) {
break;
}
const nextSevenBits = 127 & alignedValue;
bytes[ii] = nextSevenBits;
if (ii > 0) {
bytes[ii - 1] |= 128;
}
}
const nextSevenBits = 127 & alignedValue;
bytes[ii] = nextSevenBits;
if (ii > 0) {
bytes[ii - 1] |= 128;
}
}
return new Uint8Array(bytes);
},
fixedSize: null,
maxSize: 3
});
return new Uint8Array(bytes);
},
fixedSize: null,
maxSize: 3
};
};
var getU32Encoder = (config = {}) => numberEncoderFactory({

@@ -279,5 +283,6 @@ config,

var getStringEncoder = (config = {}) => {
const size = config.size ?? getU32Encoder();
const encoding = config.encoding ?? getUtf8Encoder();
const description = config.description ?? `string(${encoding.description}; ${getSizeDescription(size)})`;
var _a, _b, _c;
const size = (_a = config.size) != null ? _a : getU32Encoder();
const encoding = (_b = config.encoding) != null ? _b : getUtf8Encoder();
const description = (_c = config.description) != null ? _c : `string(${encoding.description}; ${getSizeDescription(size)})`;
if (size === "variable") {

@@ -301,5 +306,6 @@ return { ...encoding, description };

var getStringDecoder = (config = {}) => {
const size = config.size ?? getU32Decoder();
const encoding = config.encoding ?? getUtf8Decoder();
const description = config.description ?? `string(${encoding.description}; ${getSizeDescription(size)})`;
var _a, _b, _c;
const size = (_a = config.size) != null ? _a : getU32Decoder();
const encoding = (_b = config.encoding) != null ? _b : getUtf8Decoder();
const description = (_c = config.description) != null ? _c : `string(${encoding.description}; ${getSizeDescription(size)})`;
if (size === "variable") {

@@ -363,4 +369,5 @@ return { ...encoding, description };

async function assertKeyGenerationIsAvailable() {
var _a;
assertIsSecureContext();
if (typeof globalThis.crypto === "undefined" || typeof globalThis.crypto.subtle?.generateKey !== "function") {
if (typeof globalThis.crypto === "undefined" || typeof ((_a = globalThis.crypto.subtle) == null ? void 0 : _a.generateKey) !== "function") {
throw new Error("No key generation implementation could be found");

@@ -375,4 +382,5 @@ }

async function assertKeyExporterIsAvailable() {
var _a;
assertIsSecureContext();
if (typeof globalThis.crypto === "undefined" || typeof globalThis.crypto.subtle?.exportKey !== "function") {
if (typeof globalThis.crypto === "undefined" || typeof ((_a = globalThis.crypto.subtle) == null ? void 0 : _a.exportKey) !== "function") {
throw new Error("No key export implementation could be found");

@@ -382,4 +390,5 @@ }

async function assertSigningCapabilityIsAvailable() {
var _a;
assertIsSecureContext();
if (typeof globalThis.crypto === "undefined" || typeof globalThis.crypto.subtle?.sign !== "function") {
if (typeof globalThis.crypto === "undefined" || typeof ((_a = globalThis.crypto.subtle) == null ? void 0 : _a.sign) !== "function") {
throw new Error("No signing implementation could be found");

@@ -444,5 +453,6 @@ }

function getAddressEncoder(config) {
var _a;
return mapEncoder(
getStringEncoder({
description: config?.description ?? "Address",
description: (_a = config == null ? void 0 : config.description) != null ? _a : "Address",
encoding: getMemoizedBase58Encoder(),

@@ -455,4 +465,5 @@ size: 32

function getAddressDecoder(config) {
var _a;
return getStringDecoder({
description: config?.description ?? "Address",
description: (_a = config == null ? void 0 : config.description) != null ? _a : "Address",
encoding: getMemoizedBase58Decoder(),

@@ -531,3 +542,3 @@ size: 32

return {
description: description ?? `array(${item.description}; ${getArrayLikeCodecSizeDescription(size)})`,
description: description != null ? description : `array(${item.description}; ${getArrayLikeCodecSizeDescription(size)})`,
fixedSize: getArrayLikeCodecSizeFromChildren(size, [item.fixedSize]),

@@ -538,3 +549,4 @@ maxSize: getArrayLikeCodecSizeFromChildren(size, [item.maxSize])

function getArrayEncoder(item, config = {}) {
const size = config.size ?? getU32Encoder();
var _a;
const size = (_a = config.size) != null ? _a : getU32Encoder();
return {

@@ -551,5 +563,6 @@ ...arrayCodecHelper(item, size, config.description),

function getBytesEncoder(config = {}) {
const size = config.size ?? "variable";
var _a, _b;
const size = (_a = config.size) != null ? _a : "variable";
const sizeDescription = typeof size === "object" ? size.description : `${size}`;
const description = config.description ?? `bytes(${sizeDescription})`;
const description = (_b = config.description) != null ? _b : `bytes(${sizeDescription})`;
const byteEncoder = {

@@ -579,3 +592,3 @@ description,

return {
description: description ?? `struct(${fieldDescriptions})`,
description: description != null ? description : `struct(${fieldDescriptions})`,
fixedSize: sumCodecSizes(fields.map(([, field]) => field.fixedSize)),

@@ -616,3 +629,4 @@ maxSize: sumCodecSizes(fields.map(([, field]) => field.maxSize))

function upsert(addressMap, address2, update) {
addressMap[address2] = update(addressMap[address2] ?? { role: AccountRole.READONLY });
var _a;
addressMap[address2] = update((_a = addressMap[address2]) != null ? _a : { role: AccountRole.READONLY });
}

@@ -914,3 +928,3 @@ var TYPE = Symbol("AddressMapTypeProperty");

...encoder,
description: description ?? encoder.description
description: description != null ? description : encoder.description
};

@@ -955,2 +969,3 @@ }

(instruction) => {
var _a, _b;
if (instruction.accountIndices !== void 0 && instruction.data !== void 0) {

@@ -961,4 +976,4 @@ return instruction;

...instruction,
accountIndices: instruction.accountIndices ?? [],
data: instruction.data ?? new Uint8Array(0)
accountIndices: (_a = instruction.accountIndices) != null ? _a : [],
data: (_b = instruction.data) != null ? _b : new Uint8Array(0)
};

@@ -1005,2 +1020,3 @@ }

(value) => {
var _a;
if (value.version === "legacy") {

@@ -1011,3 +1027,3 @@ return value;

...value,
addressTableLookups: value.addressTableLookups ?? []
addressTableLookups: (_a = value.addressTableLookups) != null ? _a : []
};

@@ -1014,0 +1030,0 @@ }

@@ -5,27 +5,27 @@ this.globalThis = this.globalThis || {};

function w(e,n,r=0){if(n.length-r<=0)throw new Error(`Codec [${e}] cannot decode empty byte arrays.`)}function x(e,n,r,t=0){let i=r.length-t;if(i<n)throw new Error(`Codec [${e}] expected ${n} bytes, got ${i}.`)}var b=e=>{let n=e.filter(o=>o.length);if(n.length===0)return e.length?e[0]:new Uint8Array;if(n.length===1)return n[0];let r=n.reduce((o,s)=>o+s.length,0),t=new Uint8Array(r),i=0;return n.forEach(o=>{t.set(o,i),i+=o.length;}),t},Ae=(e,n)=>{if(e.length>=n)return e;let r=new Uint8Array(n).fill(0);return r.set(e),r},R=(e,n)=>Ae(e.length<=n?e:e.slice(0,n),n);function ne(e,n,r){return {description:r??`fixed(${n}, ${e.description})`,fixedSize:n,maxSize:n}}function C(e,n,r){return {...ne(e,n,r),encode:t=>R(e.encode(t),n)}}function O(e,n,r){return {...ne(e,n,r),decode:(t,i=0)=>{x("fixCodec",n,t,i),(i>0||t.length>n)&&(t=t.slice(i,i+n)),e.fixedSize!==null&&(t=R(t,e.fixedSize));let[o]=e.decode(t,0);return [o,i+n]}}}function T(e,n){return {description:e.description,encode:r=>e.encode(n(r)),fixedSize:e.fixedSize,maxSize:e.maxSize}}function re(e,n,r,t){if(t<n||t>r)throw new Error(`Codec [${e}] expected number to be in the range [${n}, ${r}], got ${t}.`)}function te(e){let n,r=e.name;return e.size>1&&(n=!("endian"in e.config)||e.config.endian===0,r+=n?"(le)":"(be)"),{description:e.config.description??r,fixedSize:e.size,littleEndian:n,maxSize:e.size}}function ie(e){let n=te(e);return {description:n.description,encode(r){e.range&&re(e.name,e.range[0],e.range[1],r);let t=new ArrayBuffer(e.size);return e.set(new DataView(t),r,n.littleEndian),new Uint8Array(t)},fixedSize:n.fixedSize,maxSize:n.maxSize}}function we(e){let n=te(e);return {decode(r,t=0){w(n.description,r,t),x(n.description,e.size,r,t);let i=new DataView(Te(r,t,e.size));return [e.get(i,n.littleEndian),t+e.size]},description:n.description,fixedSize:n.fixedSize,maxSize:n.maxSize}}function Te(e,n,r){let t=e.byteOffset+(n??0),i=r??e.byteLength;return e.buffer.slice(t,t+i)}var m=(e={})=>({description:e.description??"shortU16",encode:n=>{re("shortU16",0,65535,n);let r=[0];for(let t=0;;t+=1){let i=n>>t*7;if(i===0)break;let o=127&i;r[t]=o,t>0&&(r[t-1]|=128);}return new Uint8Array(r)},fixedSize:null,maxSize:3});var k=(e={})=>ie({config:e,name:"u32",range:[0,+"0xffffffff"],set:(n,r,t)=>n.setUint32(0,r,t),size:4}),L=(e={})=>we({config:e,get:(n,r)=>n.getUint32(0,r),name:"u32",size:4});var h=(e={})=>ie({config:e,name:"u8",range:[0,+"0xff"],set:(n,r)=>n.setUint8(0,r),size:1});function ze(e,n,r=n){if(!n.match(new RegExp(`^[${e}]*$`)))throw new Error(`Expected a string of base ${e.length}, got [${r}].`)}var Ee=e=>{let n=e.length,r=BigInt(n);return {description:`base${n}`,encode(t){if(ze(e,t),t==="")return new Uint8Array;let i=[...t],o=i.findIndex(p=>p!==e[0]);o=o===-1?i.length:o;let s=Array(o).fill(0);if(o===i.length)return Uint8Array.from(s);let a=i.slice(o),l=0n,d=1n;for(let p=a.length-1;p>=0;p-=1)l+=d*BigInt(e.indexOf(a[p])),d*=r;let u=[];for(;l>0n;)u.unshift(Number(l%256n)),l/=256n;return Uint8Array.from(s.concat(u))},fixedSize:null,maxSize:null}},ve=e=>{let n=e.length,r=BigInt(n);return {decode(t,i=0){let o=i===0?t:t.slice(i);if(o.length===0)return ["",0];let s=o.findIndex(u=>u!==0);s=s===-1?o.length:s;let a=e[0].repeat(s);if(s===o.length)return [a,t.length];let l=o.slice(s).reduce((u,p)=>u*256n+BigInt(p),0n),d=[];for(;l>0n;)d.unshift(e[Number(l%r)]),l/=r;return [a+d.join(""),t.length]},description:`base${n}`,fixedSize:null,maxSize:null}};var oe="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",M=()=>Ee(oe),_=()=>ve(oe);var Ie=e=>e.replace(/\u0000/g,"");var De=globalThis.TextDecoder,Ce=globalThis.TextEncoder,Be=()=>{let e;return {description:"utf8",encode:n=>new Uint8Array((e||(e=new Ce)).encode(n)),fixedSize:null,maxSize:null}},ke=()=>{let e;return {decode(n,r=0){let t=(e||(e=new De)).decode(n.slice(r));return [Ie(t),n.length]},description:"utf8",fixedSize:null,maxSize:null}};var $=(e={})=>{let n=e.size??k(),r=e.encoding??Be(),t=e.description??`string(${r.description}; ${se(n)})`;return n==="variable"?{...r,description:t}:typeof n=="number"?C(r,n,t):{description:t,encode:i=>{let o=r.encode(i),s=n.encode(o.length);return b([s,o])},fixedSize:null,maxSize:null}},F=(e={})=>{let n=e.size??L(),r=e.encoding??ke(),t=e.description??`string(${r.description}; ${se(n)})`;return n==="variable"?{...r,description:t}:typeof n=="number"?O(r,n,t):{decode:(i,o=0)=>{w("string",i,o);let[s,a]=n.decode(i,o),l=Number(s);o=a;let d=i.slice(o,o+l);x("string",l,d);let[u,p]=r.decode(d);return o+=p,[u,o]},description:t,fixedSize:null,maxSize:null}};function se(e){return typeof e=="object"?e.description:`${e}`}function K(){if(!globalThis.isSecureContext)throw new Error("Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts")}var S;async function Me(e){return S===void 0&&(S=new Promise(n=>{e.generateKey("Ed25519",!1,["sign","verify"]).catch(()=>{n(S=!1);}).then(()=>{n(S=!0);});})),typeof S=="boolean"?S:await S}async function ae(){if(K(),typeof globalThis.crypto>"u"||typeof globalThis.crypto.subtle?.generateKey!="function")throw new Error("No key generation implementation could be found");if(!await Me(globalThis.crypto.subtle))throw new Error(`This runtime does not support the generation of Ed25519 key pairs.
function w(e,n,r=0){if(n.length-r<=0)throw new Error(`Codec [${e}] cannot decode empty byte arrays.`)}function x(e,n,r,t=0){let o=r.length-t;if(o<n)throw new Error(`Codec [${e}] expected ${n} bytes, got ${o}.`)}var b=e=>{let n=e.filter(i=>i.length);if(n.length===0)return e.length?e[0]:new Uint8Array;if(n.length===1)return n[0];let r=n.reduce((i,s)=>i+s.length,0),t=new Uint8Array(r),o=0;return n.forEach(i=>{t.set(i,o),o+=i.length;}),t},Te=(e,n)=>{if(e.length>=n)return e;let r=new Uint8Array(n).fill(0);return r.set(e),r},R=(e,n)=>Te(e.length<=n?e:e.slice(0,n),n);function re(e,n,r){return {description:r!=null?r:`fixed(${n}, ${e.description})`,fixedSize:n,maxSize:n}}function C(e,n,r){return {...re(e,n,r),encode:t=>R(e.encode(t),n)}}function O(e,n,r){return {...re(e,n,r),decode:(t,o=0)=>{x("fixCodec",n,t,o),(o>0||t.length>n)&&(t=t.slice(o,o+n)),e.fixedSize!==null&&(t=R(t,e.fixedSize));let[i]=e.decode(t,0);return [i,o+n]}}}function z(e,n){return {description:e.description,encode:r=>e.encode(n(r)),fixedSize:e.fixedSize,maxSize:e.maxSize}}function te(e,n,r,t){if(t<n||t>r)throw new Error(`Codec [${e}] expected number to be in the range [${n}, ${r}], got ${t}.`)}function oe(e){var t;let n,r=e.name;return e.size>1&&(n=!("endian"in e.config)||e.config.endian===0,r+=n?"(le)":"(be)"),{description:(t=e.config.description)!=null?t:r,fixedSize:e.size,littleEndian:n,maxSize:e.size}}function ie(e){let n=oe(e);return {description:n.description,encode(r){e.range&&te(e.name,e.range[0],e.range[1],r);let t=new ArrayBuffer(e.size);return e.set(new DataView(t),r,n.littleEndian),new Uint8Array(t)},fixedSize:n.fixedSize,maxSize:n.maxSize}}function Ee(e){let n=oe(e);return {decode(r,t=0){w(n.description,r,t),x(n.description,e.size,r,t);let o=new DataView(ve(r,t,e.size));return [e.get(o,n.littleEndian),t+e.size]},description:n.description,fixedSize:n.fixedSize,maxSize:n.maxSize}}function ve(e,n,r){let t=e.byteOffset+(n!=null?n:0),o=r!=null?r:e.byteLength;return e.buffer.slice(t,t+o)}var p=(e={})=>{var n;return {description:(n=e.description)!=null?n:"shortU16",encode:r=>{te("shortU16",0,65535,r);let t=[0];for(let o=0;;o+=1){let i=r>>o*7;if(i===0)break;let s=127&i;t[o]=s,o>0&&(t[o-1]|=128);}return new Uint8Array(t)},fixedSize:null,maxSize:3}};var k=(e={})=>ie({config:e,name:"u32",range:[0,+"0xffffffff"],set:(n,r,t)=>n.setUint32(0,r,t),size:4}),L=(e={})=>Ee({config:e,get:(n,r)=>n.getUint32(0,r),name:"u32",size:4});var h=(e={})=>ie({config:e,name:"u8",range:[0,+"0xff"],set:(n,r)=>n.setUint8(0,r),size:1});function Ie(e,n,r=n){if(!n.match(new RegExp(`^[${e}]*$`)))throw new Error(`Expected a string of base ${e.length}, got [${r}].`)}var De=e=>{let n=e.length,r=BigInt(n);return {description:`base${n}`,encode(t){if(Ie(e,t),t==="")return new Uint8Array;let o=[...t],i=o.findIndex(m=>m!==e[0]);i=i===-1?o.length:i;let s=Array(i).fill(0);if(i===o.length)return Uint8Array.from(s);let a=o.slice(i),d=0n,c=1n;for(let m=a.length-1;m>=0;m-=1)d+=c*BigInt(e.indexOf(a[m])),c*=r;let f=[];for(;d>0n;)f.unshift(Number(d%256n)),d/=256n;return Uint8Array.from(s.concat(f))},fixedSize:null,maxSize:null}},Ce=e=>{let n=e.length,r=BigInt(n);return {decode(t,o=0){let i=o===0?t:t.slice(o);if(i.length===0)return ["",0];let s=i.findIndex(f=>f!==0);s=s===-1?i.length:s;let a=e[0].repeat(s);if(s===i.length)return [a,t.length];let d=i.slice(s).reduce((f,m)=>f*256n+BigInt(m),0n),c=[];for(;d>0n;)c.unshift(e[Number(d%r)]),d/=r;return [a+c.join(""),t.length]},description:`base${n}`,fixedSize:null,maxSize:null}};var se="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",M=()=>De(se),_=()=>Ce(se);var Be=e=>e.replace(/\u0000/g,"");var ke=globalThis.TextDecoder,Me=globalThis.TextEncoder,$e=()=>{let e;return {description:"utf8",encode:n=>new Uint8Array((e||(e=new Me)).encode(n)),fixedSize:null,maxSize:null}},Ue=()=>{let e;return {decode(n,r=0){let t=(e||(e=new ke)).decode(n.slice(r));return [Be(t),n.length]},description:"utf8",fixedSize:null,maxSize:null}};var $=(e={})=>{var o,i,s;let n=(o=e.size)!=null?o:k(),r=(i=e.encoding)!=null?i:$e(),t=(s=e.description)!=null?s:`string(${r.description}; ${ae(n)})`;return n==="variable"?{...r,description:t}:typeof n=="number"?C(r,n,t):{description:t,encode:a=>{let d=r.encode(a),c=n.encode(d.length);return b([c,d])},fixedSize:null,maxSize:null}},F=(e={})=>{var o,i,s;let n=(o=e.size)!=null?o:L(),r=(i=e.encoding)!=null?i:Ue(),t=(s=e.description)!=null?s:`string(${r.description}; ${ae(n)})`;return n==="variable"?{...r,description:t}:typeof n=="number"?O(r,n,t):{decode:(a,d=0)=>{w("string",a,d);let[c,f]=n.decode(a,d),m=Number(c);d=f;let ne=a.slice(d,d+m);x("string",m,ne);let[we,ze]=r.decode(ne);return d+=ze,[we,d]},description:t,fixedSize:null,maxSize:null}};function ae(e){return typeof e=="object"?e.description:`${e}`}function K(){if(!globalThis.isSecureContext)throw new Error("Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts")}var S;async function Pe(e){return S===void 0&&(S=new Promise(n=>{e.generateKey("Ed25519",!1,["sign","verify"]).catch(()=>{n(S=!1);}).then(()=>{n(S=!0);});})),typeof S=="boolean"?S:await S}async function de(){var e;if(K(),typeof globalThis.crypto>"u"||typeof((e=globalThis.crypto.subtle)==null?void 0:e.generateKey)!="function")throw new Error("No key generation implementation could be found");if(!await Pe(globalThis.crypto.subtle))throw new Error(`This runtime does not support the generation of Ed25519 key pairs.
Install and import \`@solana/webcrypto-ed25519-polyfill\` before generating keys in environments that do not support Ed25519.
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20`)}async function de(){if(K(),typeof globalThis.crypto>"u"||typeof globalThis.crypto.subtle?.exportKey!="function")throw new Error("No key export implementation could be found")}async function ce(){if(K(),typeof globalThis.crypto>"u"||typeof globalThis.crypto.subtle?.sign!="function")throw new Error("No signing implementation could be found")}var j,V;function H(){return j||(j=M()),j}function $e(){return V||(V=_()),V}function ue(e){return !(e.length<32||e.length>44||H().encode(e).byteLength!==32)}function fe(e){try{if(e.length<32||e.length>44)throw new Error("Expected input string to decode to a byte array of length 32.");let t=H().encode(e).byteLength;if(t!==32)throw new Error(`Expected input string to decode to a byte array of length 32. Actual length: ${t}`)}catch(n){throw new Error(`\`${e}\` is not a base-58 encoded address`,{cause:n})}}function Ue(e){return fe(e),e}function W(e){return T($({description:e?.description??"Address",encoding:H(),size:32}),n=>Ue(n))}function le(e){return F({description:e?.description??"Address",encoding:$e(),size:32})}function U(){return new Intl.Collator("en",{caseFirst:"lower",ignorePunctuation:!1,localeMatcher:"best fit",numeric:!1,sensitivity:"variant",usage:"sort"}).compare}async function P(e){if(await de(),e.type!=="public"||e.algorithm.name!=="Ed25519")throw new Error("The `CryptoKey` must be an `Ed25519` public key");let n=await crypto.subtle.exportKey("raw",e),[r]=le().decode(new Uint8Array(n));return r}async function ge(){return await ae(),await crypto.subtle.generateKey("Ed25519",!1,["sign","verify"])}async function N(e,n){await ce();let r=await crypto.subtle.sign("Ed25519",e,n);return new Uint8Array(r)}function G(e){return e.reduce((n,r)=>n===null||r===null?null:n+r,0)}function Ne(e){return typeof e=="object"?e.description:`${e}`}function pe(e,n){if(typeof e!="number")return null;if(e===0)return 0;let r=G(n);return r===null?null:r*e}function Re(e,n){return typeof e=="object"?e.encode(n):new Uint8Array}function Oe(e,n,r){if(n!==r)throw new Error(`Expected [${e}] to have ${n} items, got ${r}.`)}function Le(e,n,r){if(n==="remainder"&&e.fixedSize===null)throw new Error('Codecs of "remainder" size must have fixed-size items.');return {description:r??`array(${e.description}; ${Ne(n)})`,fixedSize:pe(n,[e.fixedSize]),maxSize:pe(n,[e.maxSize])}}function y(e,n={}){let r=n.size??k();return {...Le(e,r,n.description),encode:t=>(typeof r=="number"&&Oe("array",r,t.length),b([Re(r,t.length),...t.map(i=>e.encode(i))]))}}function me(e={}){let n=e.size??"variable",r=typeof n=="object"?n.description:`${n}`,t=e.description??`bytes(${r})`,i={description:t,encode:o=>o,fixedSize:null,maxSize:null};return n==="variable"?i:typeof n=="number"?C(i,n,t):{...i,encode:o=>{let s=i.encode(o),a=n.encode(s.length);return b([a,s])}}}function _e(e,n){let r=e.map(([t,i])=>`${String(t)}: ${i.description}`).join(", ");return {description:n??`struct(${r})`,fixedSize:G(e.map(([,t])=>t.fixedSize)),maxSize:G(e.map(([,t])=>t.maxSize))}}function A(e,n={}){return {..._e(e,n.description),encode:r=>{let t=e.map(([i,o])=>o.encode(r[i]));return b(t)}}}var z=(e=>(e[e.WRITABLE_SIGNER=3]="WRITABLE_SIGNER",e[e.READONLY_SIGNER=2]="READONLY_SIGNER",e[e.WRITABLE=1]="WRITABLE",e[e.READONLY=0]="READONLY",e))(z||{}),Fe=1;function E(e){return e>=2}function v(e){return (e&Fe)!==0}function he(e,n){return e|n}function Se(e,n,r){e[n]=r(e[n]??{role:z.READONLY});}var c=Symbol("AddressMapTypeProperty");function Ke(e,n){let r={[e]:{[c]:0,role:z.WRITABLE_SIGNER}},t=new Set;for(let i of n){Se(r,i.programAddress,s=>{if(t.add(i.programAddress),c in s){if(v(s.role))switch(s[c]){case 0:throw new Error(`This transaction includes an address (\`${i.programAddress}\`) which is both invoked and set as the fee payer. Program addresses may not pay fees.`);default:throw new Error(`This transaction includes an address (\`${i.programAddress}\`) which is both invoked and marked writable. Program addresses may not be writable.`)}if(s[c]===2)return s}return {[c]:2,role:z.READONLY}});let o;if(i.accounts)for(let s of i.accounts)Se(r,s.address,a=>{let{address:l,...d}=s;if(c in a)switch(a[c]){case 0:return a;case 1:{let u=he(a.role,d.role);if("lookupTableAddress"in d){if(a.lookupTableAddress!==d.lookupTableAddress&&(o||(o=U()))(d.lookupTableAddress,a.lookupTableAddress)<0)return {[c]:1,...d,role:u}}else if(E(d.role))return {[c]:2,role:u};return a.role!==u?{...a,role:u}:a}case 2:{let u=he(a.role,d.role);if(t.has(s.address)){if(v(d.role))throw new Error(`This transaction includes an address (\`${s.address}\`) which is both invoked and marked writable. Program addresses may not be writable.`);return a.role!==u?{...a,role:u}:a}else return "lookupTableAddress"in d&&!E(a.role)?{...d,[c]:1,role:u}:a.role!==u?{...a,role:u}:a}}return "lookupTableAddress"in d?{...d,[c]:1}:{...d,[c]:2}});}return r}function je(e){let n;return Object.entries(e).sort(([t,i],[o,s])=>{if(i[c]!==s[c]){if(i[c]===0)return -1;if(s[c]===0)return 1;if(i[c]===2)return -1;if(s[c]===2)return 1}let a=E(i.role);if(a!==E(s.role))return a?-1:1;let l=v(i.role);return l!==v(s.role)?l?-1:1:(n||(n=U()),i[c]===1&&s[c]===1&&i.lookupTableAddress!==s.lookupTableAddress?n(i.lookupTableAddress,s.lookupTableAddress):n(t,o))}).map(([t,i])=>({address:t,...i}))}function Ve(e){var n;let r={};for(let t of e){if(!("lookupTableAddress"in t))continue;let i=r[n=t.lookupTableAddress]||(r[n]={readableIndices:[],writableIndices:[]});t.role===z.WRITABLE?i.writableIndices.push(t.addressIndex):i.readableIndices.push(t.addressIndex);}return Object.keys(r).sort(U()).map(t=>({lookupTableAddress:t,...r[t]}))}function He(e){let n=0,r=0,t=0;for(let i of e){if("lookupTableAddress"in i)break;let o=v(i.role);E(i.role)?(t++,o||r++):o||n++;}return {numReadonlyNonSignerAccounts:n,numReadonlySignerAccounts:r,numSignerAccounts:t}}function We(e){let n={};for(let[r,t]of e.entries())n[t.address]=r;return n}function Ge(e,n){let r=We(n);return e.map(({accounts:t,data:i,programAddress:o})=>({programAddressIndex:r[o],...t?{accountIndices:t.map(({address:s})=>r[s])}:null,...i?{data:i}:null}))}function Ye(e){return "nonce"in e?e.nonce:e.blockhash}function Xe(e){let n=e.findIndex(t=>"lookupTableAddress"in t);return (n===-1?e:e.slice(0,n)).map(({address:t})=>t)}function qe(e){let n=Ke(e.feePayer,e.instructions),r=je(n);return {...e.version!=="legacy"?{addressTableLookups:Ve(r)}:null,header:He(r),instructions:Ge(e.instructions,r),lifetimeToken:Ye(e.lifetimeConstraint),staticAccounts:Xe(r),version:e.version}}var Ze="lookupTableAddress",Je="writableIndices",Qe="readableIndices",en="addressTableLookup",Y;function nn(){return Y||(Y=A([["lookupTableAddress",W({description:Ze})],["writableIndices",y(h(),{description:Je,size:m()})],["readableIndices",y(h(),{description:Qe,size:m()})]],{description:en})),Y}var X;function rn(){return X||(X=h()),X}function q(e){let n=rn();return {...n,description:e??n.description}}var tn=void 0,on=void 0,sn=void 0,an=void 0;function dn(){return A([["numSignerAccounts",q(tn)],["numReadonlySignerAccounts",q(on)],["numReadonlyNonSignerAccounts",q(sn)]],{description:an})}var cn="programAddressIndex",un=void 0,fn="accountIndices",ln="data",Z;function gn(){return Z||(Z=T(A([["programAddressIndex",h({description:cn})],["accountIndices",y(h({description:un}),{description:fn,size:m()})],["data",me({description:ln,size:m()})]]),e=>e.accountIndices!==void 0&&e.data!==void 0?e:{...e,accountIndices:e.accountIndices??[],data:e.data??new Uint8Array(0)})),Z}var pn=128,mn={description:"",fixedSize:null,maxSize:1};function hn(e){if(e==="legacy")return new Uint8Array;if(e<0||e>127)throw new Error(`Transaction version must be in the range [0, 127]. \`${e}\` given.`);return new Uint8Array([e|pn])}function Sn(){return {...mn,encode:hn}}var yn="staticAccounts",xn="lifetimeToken",bn="instructions",An="addressTableLookups";function wn(){return A(ye())}function Tn(){return T(A([...ye(),["addressTableLookups",zn()]]),e=>e.version==="legacy"?e:{...e,addressTableLookups:e.addressTableLookups??[]})}function ye(){return [["version",Sn()],["header",dn()],["staticAccounts",y(W(),{description:yn,size:m()})],["lifetimeToken",$({description:xn,encoding:M(),size:32})],["instructions",y(gn(),{description:bn,size:m()})]]}function zn(){return y(nn(),{description:An,size:m()})}var En="message";function vn(){return {description:En,encode:e=>e.version==="legacy"?wn().encode(e):Tn().encode(e),fixedSize:null,maxSize:null}}async function xe(e,n){let r=qe(n),t="signatures"in n?{...n.signatures}:{},i=vn().encode(r),o=await Promise.all(e.map(a=>Promise.all([P(a.publicKey),N(a.privateKey,i)])));for(let[a,l]of o)t[a]=l;let s={...n,signatures:t};return Object.freeze(s),s}function I(e){return "signMessages"in e&&typeof e.signMessages=="function"}function yr(e){if(!I(e))throw new Error("The provided value does not implement the MessagePartialSigner interface")}function D(e){return "signTransactions"in e&&typeof e.signTransactions=="function"}function Ar(e){if(!D(e))throw new Error("The provided value does not implement the TransactionPartialSigner interface")}function In(e){return "keyPair"in e&&typeof e.keyPair=="object"&&I(e)&&D(e)}function Mr(e){if(!In(e))throw new Error("The provided value does not implement the KeyPairSigner interface")}async function Dn(e){let n=await P(e.publicKey);return Object.freeze({address:n,keyPair:e,signMessages:t=>Promise.all(t.map(async i=>Object.freeze({[n]:await N(e.privateKey,i.content)}))),signTransactions:t=>Promise.all(t.map(async i=>{let o=await xe([e],i);return Object.freeze({[n]:o.signatures[n]})}))})}async function $r(){return Dn(await ge())}function J(e){return ue(e.address)&&"modifyAndSignMessages"in e&&typeof e.modifyAndSignMessages=="function"}function Or(e){if(!J(e))throw new Error("The provided value does not implement the MessageModifyingSigner interface")}function Cn(e){return I(e)||J(e)}function Hr(e){if(!Cn(e))throw new Error("The provided value does not implement any of the MessageSigner interfaces")}var be=globalThis.TextEncoder;function Jr(e,n={}){return Object.freeze({content:typeof e=="string"?new be().encode(e):e,signatures:Object.freeze({...n})})}function Q(e){return "modifyAndSignTransactions"in e&&typeof e.modifyAndSignTransactions=="function"}function nt(e){if(!Q(e))throw new Error("The provided value does not implement the TransactionModifyingSigner interface")}function ee(e){return "signAndSendTransactions"in e&&typeof e.signAndSendTransactions=="function"}function it(e){if(!ee(e))throw new Error("The provided value does not implement the TransactionSendingSigner interface")}function Bn(e){return D(e)||Q(e)||ee(e)}function gt(e){if(!Bn(e))throw new Error("The provided value does not implement any of the TransactionSigner interfaces")}
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20`)}async function ce(){var e;if(K(),typeof globalThis.crypto>"u"||typeof((e=globalThis.crypto.subtle)==null?void 0:e.exportKey)!="function")throw new Error("No key export implementation could be found")}async function ue(){var e;if(K(),typeof globalThis.crypto>"u"||typeof((e=globalThis.crypto.subtle)==null?void 0:e.sign)!="function")throw new Error("No signing implementation could be found")}var j,V;function H(){return j||(j=M()),j}function Ne(){return V||(V=_()),V}function fe(e){return !(e.length<32||e.length>44||H().encode(e).byteLength!==32)}function le(e){try{if(e.length<32||e.length>44)throw new Error("Expected input string to decode to a byte array of length 32.");let t=H().encode(e).byteLength;if(t!==32)throw new Error(`Expected input string to decode to a byte array of length 32. Actual length: ${t}`)}catch(n){throw new Error(`\`${e}\` is not a base-58 encoded address`,{cause:n})}}function Re(e){return le(e),e}function W(e){var n;return z($({description:(n=e==null?void 0:e.description)!=null?n:"Address",encoding:H(),size:32}),r=>Re(r))}function ge(e){var n;return F({description:(n=e==null?void 0:e.description)!=null?n:"Address",encoding:Ne(),size:32})}function U(){return new Intl.Collator("en",{caseFirst:"lower",ignorePunctuation:!1,localeMatcher:"best fit",numeric:!1,sensitivity:"variant",usage:"sort"}).compare}async function P(e){if(await ce(),e.type!=="public"||e.algorithm.name!=="Ed25519")throw new Error("The `CryptoKey` must be an `Ed25519` public key");let n=await crypto.subtle.exportKey("raw",e),[r]=ge().decode(new Uint8Array(n));return r}async function me(){return await de(),await crypto.subtle.generateKey("Ed25519",!1,["sign","verify"])}async function N(e,n){await ue();let r=await crypto.subtle.sign("Ed25519",e,n);return new Uint8Array(r)}function G(e){return e.reduce((n,r)=>n===null||r===null?null:n+r,0)}function Le(e){return typeof e=="object"?e.description:`${e}`}function pe(e,n){if(typeof e!="number")return null;if(e===0)return 0;let r=G(n);return r===null?null:r*e}function _e(e,n){return typeof e=="object"?e.encode(n):new Uint8Array}function Fe(e,n,r){if(n!==r)throw new Error(`Expected [${e}] to have ${n} items, got ${r}.`)}function Ke(e,n,r){if(n==="remainder"&&e.fixedSize===null)throw new Error('Codecs of "remainder" size must have fixed-size items.');return {description:r!=null?r:`array(${e.description}; ${Le(n)})`,fixedSize:pe(n,[e.fixedSize]),maxSize:pe(n,[e.maxSize])}}function y(e,n={}){var t;let r=(t=n.size)!=null?t:k();return {...Ke(e,r,n.description),encode:o=>(typeof r=="number"&&Fe("array",r,o.length),b([_e(r,o.length),...o.map(i=>e.encode(i))]))}}function he(e={}){var i,s;let n=(i=e.size)!=null?i:"variable",r=typeof n=="object"?n.description:`${n}`,t=(s=e.description)!=null?s:`bytes(${r})`,o={description:t,encode:a=>a,fixedSize:null,maxSize:null};return n==="variable"?o:typeof n=="number"?C(o,n,t):{...o,encode:a=>{let d=o.encode(a),c=n.encode(d.length);return b([c,d])}}}function je(e,n){let r=e.map(([t,o])=>`${String(t)}: ${o.description}`).join(", ");return {description:n!=null?n:`struct(${r})`,fixedSize:G(e.map(([,t])=>t.fixedSize)),maxSize:G(e.map(([,t])=>t.maxSize))}}function A(e,n={}){return {...je(e,n.description),encode:r=>{let t=e.map(([o,i])=>i.encode(r[o]));return b(t)}}}var T=(e=>(e[e.WRITABLE_SIGNER=3]="WRITABLE_SIGNER",e[e.READONLY_SIGNER=2]="READONLY_SIGNER",e[e.WRITABLE=1]="WRITABLE",e[e.READONLY=0]="READONLY",e))(T||{}),Ve=1;function E(e){return e>=2}function v(e){return (e&Ve)!==0}function Se(e,n){return e|n}function ye(e,n,r){var t;e[n]=r((t=e[n])!=null?t:{role:T.READONLY});}var u=Symbol("AddressMapTypeProperty");function He(e,n){let r={[e]:{[u]:0,role:T.WRITABLE_SIGNER}},t=new Set;for(let o of n){ye(r,o.programAddress,s=>{if(t.add(o.programAddress),u in s){if(v(s.role))switch(s[u]){case 0:throw new Error(`This transaction includes an address (\`${o.programAddress}\`) which is both invoked and set as the fee payer. Program addresses may not pay fees.`);default:throw new Error(`This transaction includes an address (\`${o.programAddress}\`) which is both invoked and marked writable. Program addresses may not be writable.`)}if(s[u]===2)return s}return {[u]:2,role:T.READONLY}});let i;if(o.accounts)for(let s of o.accounts)ye(r,s.address,a=>{let{address:d,...c}=s;if(u in a)switch(a[u]){case 0:return a;case 1:{let f=Se(a.role,c.role);if("lookupTableAddress"in c){if(a.lookupTableAddress!==c.lookupTableAddress&&(i||(i=U()))(c.lookupTableAddress,a.lookupTableAddress)<0)return {[u]:1,...c,role:f}}else if(E(c.role))return {[u]:2,role:f};return a.role!==f?{...a,role:f}:a}case 2:{let f=Se(a.role,c.role);if(t.has(s.address)){if(v(c.role))throw new Error(`This transaction includes an address (\`${s.address}\`) which is both invoked and marked writable. Program addresses may not be writable.`);return a.role!==f?{...a,role:f}:a}else return "lookupTableAddress"in c&&!E(a.role)?{...c,[u]:1,role:f}:a.role!==f?{...a,role:f}:a}}return "lookupTableAddress"in c?{...c,[u]:1}:{...c,[u]:2}});}return r}function We(e){let n;return Object.entries(e).sort(([t,o],[i,s])=>{if(o[u]!==s[u]){if(o[u]===0)return -1;if(s[u]===0)return 1;if(o[u]===2)return -1;if(s[u]===2)return 1}let a=E(o.role);if(a!==E(s.role))return a?-1:1;let d=v(o.role);return d!==v(s.role)?d?-1:1:(n||(n=U()),o[u]===1&&s[u]===1&&o.lookupTableAddress!==s.lookupTableAddress?n(o.lookupTableAddress,s.lookupTableAddress):n(t,i))}).map(([t,o])=>({address:t,...o}))}function Ge(e){var r;let n={};for(let t of e){if(!("lookupTableAddress"in t))continue;let o=n[r=t.lookupTableAddress]||(n[r]={readableIndices:[],writableIndices:[]});t.role===T.WRITABLE?o.writableIndices.push(t.addressIndex):o.readableIndices.push(t.addressIndex);}return Object.keys(n).sort(U()).map(t=>({lookupTableAddress:t,...n[t]}))}function Ye(e){let n=0,r=0,t=0;for(let o of e){if("lookupTableAddress"in o)break;let i=v(o.role);E(o.role)?(t++,i||r++):i||n++;}return {numReadonlyNonSignerAccounts:n,numReadonlySignerAccounts:r,numSignerAccounts:t}}function Xe(e){let n={};for(let[r,t]of e.entries())n[t.address]=r;return n}function qe(e,n){let r=Xe(n);return e.map(({accounts:t,data:o,programAddress:i})=>({programAddressIndex:r[i],...t?{accountIndices:t.map(({address:s})=>r[s])}:null,...o?{data:o}:null}))}function Ze(e){return "nonce"in e?e.nonce:e.blockhash}function Je(e){let n=e.findIndex(t=>"lookupTableAddress"in t);return (n===-1?e:e.slice(0,n)).map(({address:t})=>t)}function Qe(e){let n=He(e.feePayer,e.instructions),r=We(n);return {...e.version!=="legacy"?{addressTableLookups:Ge(r)}:null,header:Ye(r),instructions:qe(e.instructions,r),lifetimeToken:Ze(e.lifetimeConstraint),staticAccounts:Je(r),version:e.version}}var en="lookupTableAddress",nn="writableIndices",rn="readableIndices",tn="addressTableLookup",Y;function on(){return Y||(Y=A([["lookupTableAddress",W({description:en})],["writableIndices",y(h(),{description:nn,size:p()})],["readableIndices",y(h(),{description:rn,size:p()})]],{description:tn})),Y}var X;function sn(){return X||(X=h()),X}function q(e){let n=sn();return {...n,description:e!=null?e:n.description}}var an=void 0,dn=void 0,cn=void 0,un=void 0;function fn(){return A([["numSignerAccounts",q(an)],["numReadonlySignerAccounts",q(dn)],["numReadonlyNonSignerAccounts",q(cn)]],{description:un})}var ln="programAddressIndex",gn=void 0,mn="accountIndices",pn="data",Z;function hn(){return Z||(Z=z(A([["programAddressIndex",h({description:ln})],["accountIndices",y(h({description:gn}),{description:mn,size:p()})],["data",he({description:pn,size:p()})]]),e=>{var n,r;return e.accountIndices!==void 0&&e.data!==void 0?e:{...e,accountIndices:(n=e.accountIndices)!=null?n:[],data:(r=e.data)!=null?r:new Uint8Array(0)}})),Z}var Sn=128,yn={description:"",fixedSize:null,maxSize:1};function xn(e){if(e==="legacy")return new Uint8Array;if(e<0||e>127)throw new Error(`Transaction version must be in the range [0, 127]. \`${e}\` given.`);return new Uint8Array([e|Sn])}function bn(){return {...yn,encode:xn}}var An="staticAccounts",wn="lifetimeToken",zn="instructions",Tn="addressTableLookups";function En(){return A(xe())}function vn(){return z(A([...xe(),["addressTableLookups",In()]]),e=>{var n;return e.version==="legacy"?e:{...e,addressTableLookups:(n=e.addressTableLookups)!=null?n:[]}})}function xe(){return [["version",bn()],["header",fn()],["staticAccounts",y(W(),{description:An,size:p()})],["lifetimeToken",$({description:wn,encoding:M(),size:32})],["instructions",y(hn(),{description:zn,size:p()})]]}function In(){return y(on(),{description:Tn,size:p()})}var Dn="message";function Cn(){return {description:Dn,encode:e=>e.version==="legacy"?En().encode(e):vn().encode(e),fixedSize:null,maxSize:null}}async function be(e,n){let r=Qe(n),t="signatures"in n?{...n.signatures}:{},o=Cn().encode(r),i=await Promise.all(e.map(a=>Promise.all([P(a.publicKey),N(a.privateKey,o)])));for(let[a,d]of i)t[a]=d;let s={...n,signatures:t};return Object.freeze(s),s}function I(e){return "signMessages"in e&&typeof e.signMessages=="function"}function Ar(e){if(!I(e))throw new Error("The provided value does not implement the MessagePartialSigner interface")}function D(e){return "signTransactions"in e&&typeof e.signTransactions=="function"}function Tr(e){if(!D(e))throw new Error("The provided value does not implement the TransactionPartialSigner interface")}function Bn(e){return "keyPair"in e&&typeof e.keyPair=="object"&&I(e)&&D(e)}function Pr(e){if(!Bn(e))throw new Error("The provided value does not implement the KeyPairSigner interface")}async function kn(e){let n=await P(e.publicKey);return Object.freeze({address:n,keyPair:e,signMessages:t=>Promise.all(t.map(async o=>Object.freeze({[n]:await N(e.privateKey,o.content)}))),signTransactions:t=>Promise.all(t.map(async o=>{let i=await be([e],o);return Object.freeze({[n]:i.signatures[n]})}))})}async function Nr(){return kn(await me())}function J(e){return fe(e.address)&&"modifyAndSignMessages"in e&&typeof e.modifyAndSignMessages=="function"}function Fr(e){if(!J(e))throw new Error("The provided value does not implement the MessageModifyingSigner interface")}function Mn(e){return I(e)||J(e)}function Yr(e){if(!Mn(e))throw new Error("The provided value does not implement any of the MessageSigner interfaces")}var Ae=globalThis.TextEncoder;function nt(e,n={}){return Object.freeze({content:typeof e=="string"?new Ae().encode(e):e,signatures:Object.freeze({...n})})}function Q(e){return "modifyAndSignTransactions"in e&&typeof e.modifyAndSignTransactions=="function"}function ot(e){if(!Q(e))throw new Error("The provided value does not implement the TransactionModifyingSigner interface")}function ee(e){return "signAndSendTransactions"in e&&typeof e.signAndSendTransactions=="function"}function at(e){if(!ee(e))throw new Error("The provided value does not implement the TransactionSendingSigner interface")}function $n(e){return D(e)||Q(e)||ee(e)}function ht(e){if(!$n(e))throw new Error("The provided value does not implement any of the TransactionSigner interfaces")}
exports.assertIsKeyPairSigner = Mr;
exports.assertIsMessageModifyingSigner = Or;
exports.assertIsMessagePartialSigner = yr;
exports.assertIsMessageSigner = Hr;
exports.assertIsTransactionModifyingSigner = nt;
exports.assertIsTransactionPartialSigner = Ar;
exports.assertIsTransactionSendingSigner = it;
exports.assertIsTransactionSigner = gt;
exports.createSignableMessage = Jr;
exports.createSignerFromKeyPair = Dn;
exports.generateKeyPairSigner = $r;
exports.isKeyPairSigner = In;
exports.assertIsKeyPairSigner = Pr;
exports.assertIsMessageModifyingSigner = Fr;
exports.assertIsMessagePartialSigner = Ar;
exports.assertIsMessageSigner = Yr;
exports.assertIsTransactionModifyingSigner = ot;
exports.assertIsTransactionPartialSigner = Tr;
exports.assertIsTransactionSendingSigner = at;
exports.assertIsTransactionSigner = ht;
exports.createSignableMessage = nt;
exports.createSignerFromKeyPair = kn;
exports.generateKeyPairSigner = Nr;
exports.isKeyPairSigner = Bn;
exports.isMessageModifyingSigner = J;
exports.isMessagePartialSigner = I;
exports.isMessageSigner = Cn;
exports.isMessageSigner = Mn;
exports.isTransactionModifyingSigner = Q;
exports.isTransactionPartialSigner = D;
exports.isTransactionSendingSigner = ee;
exports.isTransactionSigner = Bn;
exports.isTransactionSigner = $n;

@@ -32,0 +32,0 @@ return exports;

{
"name": "@solana/signers",
"version": "2.0.0-experimental.40c54bd",
"version": "2.0.0-experimental.699bde0",
"description": "An abstraction layer over signing messages and transactions in Solana",

@@ -52,5 +52,5 @@ "exports": {

"dependencies": {
"@solana/addresses": "2.0.0-experimental.40c54bd",
"@solana/keys": "2.0.0-experimental.40c54bd",
"@solana/transactions": "2.0.0-experimental.40c54bd"
"@solana/addresses": "2.0.0-experimental.699bde0",
"@solana/keys": "2.0.0-experimental.699bde0",
"@solana/transactions": "2.0.0-experimental.699bde0"
},

@@ -72,3 +72,3 @@ "devDependencies": {

"prettier": "^2.8",
"tsup": "7.2.0",
"tsup": "^8.0.1",
"typescript": "^5.2.2",

@@ -75,0 +75,0 @@ "version-from-git": "^1.1.1",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc