UNPKG

@raydium-io/raydium-sdk-v2

Version:

An SDK for building applications on top of Raydium.

2 lines 626 B
import t from"bn.js";function i(e){let r=Buffer.alloc(2);return r.writeUInt16LE(e),r}function B(e){let r=Buffer.alloc(2);return r.writeUInt16BE(e),r}function c(e){let r=Buffer.alloc(4);return r.writeInt32LE(e),r}function b(e){let r=Buffer.alloc(4);return r.writeInt32BE(e),r}function s(e){return(typeof e=="number"||typeof e=="bigint")&&(e=new t(e.toString())),e.toArrayLike(Buffer,"be",8)}function w(e){let r=new ArrayBuffer(1);return new DataView(r).setUint8(0,e),new Uint8Array(r)}export{c as i32ToBytes,b as i32ToBytesBE,i as u16ToBytes,B as u16ToBytesBE,s as u64ToBytes,w as u8ToBytes}; //# sourceMappingURL=utils.mjs.map