@raydium-io/raydium-sdk-v2
Version:
An SDK for building applications on top of Raydium.
2 lines • 626 B
JavaScript
import t from"bn.js";function i(r){let e=Buffer.alloc(2);return e.writeUInt16LE(r),e}function B(r){let e=Buffer.alloc(2);return e.writeUInt16BE(r),e}function c(r){let e=Buffer.alloc(4);return e.writeInt32LE(r),e}function b(r){let e=Buffer.alloc(4);return e.writeInt32BE(r),e}function s(r){return(typeof r=="number"||typeof r=="bigint")&&(r=new t(r.toString())),r.toArrayLike(Buffer,"be",8)}function y(r){let e=new ArrayBuffer(1);return new DataView(e).setUint8(0,r),new Uint8Array(e)}export{c as i32ToBytes,b as i32ToBytesBE,i as u16ToBytes,B as u16ToBytesBE,s as u64ToBytes,y as u8ToBytes};
//# sourceMappingURL=utils.mjs.map