repo_name string | dataset string | owner string | lang string | func_name string | code string | docstring string | url string | sha string |
|---|---|---|---|---|---|---|---|---|
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeBit | storeBit(value: boolean | number) {
this._bits.writeBit(value);
return this;
} | /**
* Write a single bit
* @param value bit to write, true or positive number for 1, false or zero or negative for 0
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L73-L76 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeBits | storeBits(src: BitString) {
this._bits.writeBits(src);
return this;
} | /**
* Write bits from BitString
* @param src source bits
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L83-L86 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeBuffer | storeBuffer(src: Buffer, bytes?: Maybe<number>) {
if (bytes !== undefined && bytes !== null) {
if (src.length !== bytes) {
throw Error(`Buffer length ${src.length} is not equal to ${bytes}`);
}
}
this._bits.writeBuffer(src);
return this;
} | /**
* Store Buffer
* @param src source buffer
* @param bytes optional number of bytes to write
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L94-L102 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeMaybeBuffer | storeMaybeBuffer(src: Buffer | null, bytes?: Maybe<number>) {
if (src !== null) {
this.storeBit(1);
this.storeBuffer(src, bytes);
} else {
this.storeBit(0);
}
return this;
} | /**
* Store Maybe Buffer
* @param src source buffer or null
* @param bytes optional number of bytes to write
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L110-L118 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeUint | storeUint(value: bigint | number, bits: number) {
this._bits.writeUint(value, bits);
return this;
} | /**
* Store uint value
* @param value value as bigint or number
* @param bits number of bits to write
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L126-L129 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeMaybeUint | storeMaybeUint(value: Maybe<number | bigint>, bits: number) {
if (value !== null && value !== undefined) {
this.storeBit(1);
this.storeUint(value, bits);
} else {
this.storeBit(0);
}
return this;
} | /**
* Store maybe uint value
* @param value value as bigint or number, null or undefined
* @param bits number of bits to write
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L137-L145 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeInt | storeInt(value: bigint | number, bits: number) {
this._bits.writeInt(value, bits);
return this;
} | /**
* Store int value
* @param value value as bigint or number
* @param bits number of bits to write
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L153-L156 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeMaybeInt | storeMaybeInt(value: Maybe<number | bigint>, bits: number) {
if (value !== null && value !== undefined) {
this.storeBit(1);
this.storeInt(value, bits);
} else {
this.storeBit(0);
}
return this;
} | /**
* Store maybe int value
* @param value value as bigint or number, null or undefined
* @param bits number of bits to write
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L164-L172 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeVarUint | storeVarUint(value: number | bigint, bits: number) {
this._bits.writeVarUint(value, bits);
return this;
} | /**
* Store varuint value
* @param value value as bigint or number
* @param bits number of bits to write to header
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L180-L183 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeMaybeVarUint | storeMaybeVarUint(value: Maybe<number | bigint>, bits: number) {
if (value !== null && value !== undefined) {
this.storeBit(1);
this.storeVarUint(value, bits);
} else {
this.storeBit(0);
}
return this;
} | /**
* Store maybe varuint value
* @param value value as bigint or number, null or undefined
* @param bits number of bits to write to header
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L191-L199 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeVarInt | storeVarInt(value: number | bigint, bits: number) {
this._bits.writeVarInt(value, bits);
return this;
} | /**
* Store varint value
* @param value value as bigint or number
* @param bits number of bits to write to header
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L207-L210 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeMaybeVarInt | storeMaybeVarInt(value: Maybe<number | bigint>, bits: number) {
if (value !== null && value !== undefined) {
this.storeBit(1);
this.storeVarInt(value, bits);
} else {
this.storeBit(0);
}
return this;
} | /**
* Store maybe varint value
* @param value value as bigint or number, null or undefined
* @param bits number of bits to write to header
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L218-L226 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeCoins | storeCoins(amount: number | bigint) {
this._bits.writeCoins(amount);
return this;
} | /**
* Store coins value
* @param amount amount of coins
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L233-L236 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeMaybeCoins | storeMaybeCoins(amount: Maybe<number | bigint>) {
if (amount !== null && amount !== undefined) {
this.storeBit(1);
this.storeCoins(amount);
} else {
this.storeBit(0);
}
return this;
} | /**
* Store maybe coins value
* @param amount amount of coins, null or undefined
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L243-L251 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeAddress | storeAddress(address: Maybe<Address | ExternalAddress>) {
this._bits.writeAddress(address);
return this;
} | /**
* Store address
* @param addres address to store
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L258-L261 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeRef | storeRef(cell: Cell | Builder) {
// Check refs
if (this._refs.length >= 4) {
throw new Error("Too many references");
}
// Store reference
if (cell instanceof Cell) {
this._refs.push(cell);
} else if (cell instanceof Builder) {
this._r... | /**
* Store reference
* @param cell cell or builder to store
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L268-L285 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeMaybeRef | storeMaybeRef(cell?: Maybe<Cell | Builder>) {
if (cell) {
this.storeBit(1);
this.storeRef(cell);
} else {
this.storeBit(0);
}
return this;
} | /**
* Store reference if not null
* @param cell cell or builder to store
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L292-L301 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeSlice | storeSlice(src: Slice) {
let c = src.clone();
if (c.remainingBits > 0) {
this.storeBits(c.loadBits(c.remainingBits));
}
while (c.remainingRefs > 0) {
this.storeRef(c.loadRef());
}
return this;
} | /**
* Store slice it in this builder
* @param src source slice
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L307-L316 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeMaybeSlice | storeMaybeSlice(src?: Maybe<Slice>) {
if (src) {
this.storeBit(1);
this.storeSlice(src);
} else {
this.storeBit(0);
}
return this;
} | /**
* Store slice in this builder if not null
* @param src source slice
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L322-L330 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeBuilder | storeBuilder(src: Builder) {
return this.storeSlice(src.endCell().beginParse());
} | /**
* Store builder
* @param src builder to store
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L337-L339 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeMaybeBuilder | storeMaybeBuilder(src?: Maybe<Builder>) {
if (src) {
this.storeBit(1);
this.storeBuilder(src);
} else {
this.storeBit(0);
}
return this;
} | /**
* Store builder if not null
* @param src builder to store
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L346-L354 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeWritable | storeWritable(writer: ((builder: Builder) => void) | Writable) {
if (typeof writer === 'object') {
writer.writeTo(this);
} else {
writer(this);
}
return this;
} | /**
* Store writer or builder
* @param writer writer or builder to store
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L361-L368 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeMaybeWritable | storeMaybeWritable(writer?: Maybe<((builder: Builder) => void) | Writable>) {
if (writer) {
this.storeBit(1);
this.storeWritable(writer);
} else {
this.storeBit(0);
}
return this;
} | /**
* Store writer or builder if not null
* @param writer writer or builder to store
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L375-L383 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.store | store(writer: ((builder: Builder) => void) | Writable) {
this.storeWritable(writer);
return this;
} | /**
* Store object in this builder
* @param writer Writable or writer functuin
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L389-L392 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeStringTail | storeStringTail(src: string) {
writeString(src, this);
return this;
} | /**
* Store string tail
* @param src source string
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L399-L402 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeMaybeStringTail | storeMaybeStringTail(src?: Maybe<string>) {
if (src !== null && src !== undefined) {
this.storeBit(1);
writeString(src, this);
} else {
this.storeBit(0);
}
return this;
} | /**
* Store string tail
* @param src source string
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L409-L417 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeStringRefTail | storeStringRefTail(src: string) {
this.storeRef(beginCell()
.storeStringTail(src));
return this;
} | /**
* Store string tail in ref
* @param src source string
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L424-L428 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeMaybeStringRefTail | storeMaybeStringRefTail(src?: Maybe<string | null>) {
if (src !== null && src !== undefined) {
this.storeBit(1);
this.storeStringRefTail(src);
} else {
this.storeBit(0);
}
return this;
} | /**
* Store maybe string tail in ref
* @param src source string
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L435-L443 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeDict | storeDict<K extends DictionaryKeyTypes, V>(dict?: Maybe<Dictionary<K, V>>, key?: Maybe<DictionaryKey<K>>, value?: Maybe<DictionaryValue<V>>) {
if (dict) {
dict.store(this, key, value);
} else {
this.storeBit(0);
}
return this;
} | /**
* Store dictionary in this builder
* @param dict dictionary to store
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L450-L457 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.storeDictDirect | storeDictDirect<K extends DictionaryKeyTypes, V>(dict: Dictionary<K, V>, key?: Maybe<DictionaryKey<K>>, value?: Maybe<DictionaryValue<V>>) {
dict.storeDirect(this, key, value);
return this;
} | /**
* Store dictionary in this builder directly
* @param dict dictionary to store
* @returns this builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L464-L467 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.endCell | endCell(opts?: { exotic?: boolean }) {
return new Cell({
bits: this._bits.build(),
refs: this._refs,
exotic: opts?.exotic
});
} | /**
* Complete cell
* @param opts options
* @returns cell
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L474-L480 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.asCell | asCell() {
return this.endCell();
} | /**
* Convert to cell
* @returns cell
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L486-L488 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Builder.asSlice | asSlice() {
return this.endCell().beginParse();
} | /**
* Convert to slice
* @returns slice
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Builder.ts#L494-L496 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Cell.fromBoc | static fromBoc(src: Buffer) {
return deserializeBoc(src);
} | /**
* Deserialize cells from BOC
* @param src source buffer
* @returns array of cells
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Cell.ts#L32-L34 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Cell.fromBase64 | static fromBase64(src: string): Cell {
let parsed = Cell.fromBoc(Buffer.from(src, 'base64'));
if (parsed.length !== 1) {
throw new Error("Deserialized more than one cell");
}
return parsed[0];
} | /**
* Helper class that deserializes a single cell from BOC in base64
* @param src source string
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Cell.ts#L40-L46 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Cell.isExotic | get isExotic() {
return this.type !== CellType.Ordinary;
} | /**
* Check if cell is exotic
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Cell.ts#L130-L132 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Cell.beginParse | beginParse = (allowExotic: boolean = false) => {
if (this.isExotic && !allowExotic) {
throw new Error("Exotic cells cannot be parsed");
}
return new Slice(new BitReader(this.bits), this.refs);
} | /**
* Beging cell parsing
* @returns a new slice
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Cell.ts#L138-L143 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Cell.hash | hash = (level: number = 3): Buffer => {
return this._hashes[Math.min(this._hashes.length - 1, level)];
} | /**
* Get cell hash
* @param level level
* @returns cell hash
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Cell.ts#L150-L152 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Cell.depth | depth = (level: number = 3): number => {
return this._depths[Math.min(this._depths.length - 1, level)];
} | /**
* Get cell depth
* @param level level
* @returns cell depth
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Cell.ts#L159-L161 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Cell.level | level = (): number => {
return this.mask.level;
} | /**
* Get cell level
* @returns cell level
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Cell.ts#L167-L169 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Cell.equals | equals = (other: Cell): boolean => {
return this.hash().equals(other.hash());
} | /**
* Checks cell to be euqal to another cell
* @param other other cell
* @returns true if cells are equal
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Cell.ts#L176-L178 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Cell.toBoc | toBoc(opts?: { idx?: boolean | null | undefined, crc32?: boolean | null | undefined }): Buffer {
let idx = (opts && opts.idx !== null && opts.idx !== undefined) ? opts.idx : false;
let crc32 = (opts && opts.crc32 !== null && opts.crc32 !== undefined) ? opts.crc32 : true;
return serializeBoc(this... | /**
* Serializes cell to BOC
* @param opts options
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Cell.ts#L184-L188 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Cell.toString | toString(indent?: string): string {
let id = indent || '';
let t = 'x';
if (this.isExotic) {
if (this.type === CellType.MerkleProof) {
t = 'p';
} else if (this.type === CellType.MerkleUpdate) {
t = 'u';
} else if (this.type === ... | /**
* Format cell to string
* @param indent indentation
* @returns string representation
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Cell.ts#L195-L213 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Cell.asSlice | asSlice() {
return this.beginParse();
} | /**
* Covnert cell to slice
* @returns slice
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Cell.ts#L219-L221 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Cell.asBuilder | asBuilder() {
return beginCell().storeSlice(this.asSlice());
} | /**
* Convert cell to a builder that has this cell stored
* @returns builder
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Cell.ts#L227-L229 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.remainingBits | get remainingBits() {
return this._reader.remaining;
} | /**
* Get remaining bits
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L33-L35 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.offsetBits | get offsetBits() {
return this._reader.offset;
} | /**
* Get offset bits
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L40-L42 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.remainingRefs | get remainingRefs() {
return this._refs.length - this._refsOffset;
} | /**
* Get remaining refs
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L47-L49 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.offsetRefs | get offsetRefs() {
return this._refsOffset;
} | /**
* Get offset refs
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L54-L56 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.skip | skip(bits: number) {
this._reader.skip(bits);
return this;
} | /**
* Skip bits
* @param bits
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L62-L65 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadBit | loadBit() {
return this._reader.loadBit();
} | /**
* Load a single bit
* @returns true or false depending on the bit value
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L71-L73 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.preloadBit | preloadBit() {
return this._reader.preloadBit();
} | /**
* Preload a signle bit
* @returns true or false depending on the bit value
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L79-L81 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadBoolean | loadBoolean() {
return this.loadBit();
} | /**
* Load a boolean
* @returns true or false depending on the bit value
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L87-L89 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadMaybeBoolean | loadMaybeBoolean() {
if (this.loadBit()) {
return this.loadBoolean();
} else {
return null;
}
} | /**
* Load maybe boolean
* @returns true or false depending on the bit value or null
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L95-L101 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadBits | loadBits(bits: number) {
return this._reader.loadBits(bits);
} | /**
* Load bits as a new BitString
* @param bits number of bits to read
* @returns new BitString
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L108-L110 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.preloadBits | preloadBits(bits: number) {
return this._reader.preloadBits(bits);
} | /**
* Preload bits as a new BitString
* @param bits number of bits to read
* @returns new BitString
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L117-L119 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadUint | loadUint(bits: number) {
return this._reader.loadUint(bits);
} | /**
* Load uint
* @param bits number of bits to read
* @returns uint value
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L126-L128 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadUintBig | loadUintBig(bits: number) {
return this._reader.loadUintBig(bits);
} | /**
* Load uint
* @param bits number of bits to read
* @returns uint value
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L135-L137 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.preloadUint | preloadUint(bits: number) {
return this._reader.preloadUint(bits);
} | /**
* Preload uint
* @param bits number of bits to read
* @returns uint value
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L144-L146 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.preloadUintBig | preloadUintBig(bits: number) {
return this._reader.preloadUintBig(bits);
} | /**
* Preload uint
* @param bits number of bits to read
* @returns uint value
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L153-L155 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadMaybeUint | loadMaybeUint(bits: number) {
if (this.loadBit()) {
return this.loadUint(bits);
} else {
return null;
}
} | /**
* Load maybe uint
* @param bits number of bits to read
* @returns uint value or null
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L162-L168 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadMaybeUintBig | loadMaybeUintBig(bits: number) {
if (this.loadBit()) {
return this.loadUintBig(bits);
} else {
return null;
}
} | /**
* Load maybe uint
* @param bits number of bits to read
* @returns uint value or null
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L175-L181 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadInt | loadInt(bits: number) {
return this._reader.loadInt(bits);
} | /**
* Load int
* @param bits number of bits to read
* @returns int value
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L188-L190 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadIntBig | loadIntBig(bits: number) {
return this._reader.loadIntBig(bits);
} | /**
* Load int
* @param bits number of bits to read
* @returns int value
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L197-L199 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.preloadInt | preloadInt(bits: number) {
return this._reader.preloadInt(bits);
} | /**
* Preload int
* @param bits number of bits to read
* @returns int value
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L206-L208 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.preloadIntBig | preloadIntBig(bits: number) {
return this._reader.preloadIntBig(bits);
} | /**
* Preload int
* @param bits number of bits to read
* @returns int value
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L215-L217 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadMaybeInt | loadMaybeInt(bits: number) {
if (this.loadBit()) {
return this.loadInt(bits);
} else {
return null;
}
} | /**
* Load maybe uint
* @param bits number of bits to read
* @returns uint value or null
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L224-L230 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadMaybeIntBig | loadMaybeIntBig(bits: number) {
if (this.loadBit()) {
return this.loadIntBig(bits);
} else {
return null;
}
} | /**
* Load maybe uint
* @param bits number of bits to read
* @returns uint value or null
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L237-L243 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadVarUint | loadVarUint(bits: number) {
return this._reader.loadVarUint(bits);
} | /**
* Load varuint
* @param bits number of bits to read in header
* @returns varuint value
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L250-L252 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadVarUintBig | loadVarUintBig(bits: number) {
return this._reader.loadVarUintBig(bits);
} | /**
* Load varuint
* @param bits number of bits to read in header
* @returns varuint value
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L259-L261 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.preloadVarUint | preloadVarUint(bits: number) {
return this._reader.preloadVarUint(bits);
} | /**
* Preload varuint
* @param bits number of bits to read in header
* @returns varuint value
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L268-L270 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.preloadVarUintBig | preloadVarUintBig(bits: number) {
return this._reader.preloadVarUintBig(bits);
} | /**
* Preload varuint
* @param bits number of bits to read in header
* @returns varuint value
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L277-L279 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadVarInt | loadVarInt(bits: number) {
return this._reader.loadVarInt(bits);
} | /**
* Load varint
* @param bits number of bits to read in header
* @returns varint value
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L286-L288 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadVarIntBig | loadVarIntBig(bits: number) {
return this._reader.loadVarIntBig(bits);
} | /**
* Load varint
* @param bits number of bits to read in header
* @returns varint value
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L296-L298 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.preloadVarInt | preloadVarInt(bits: number) {
return this._reader.preloadVarInt(bits);
} | /**
* Preload varint
* @param bits number of bits to read in header
* @returns varint value
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L305-L307 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.preloadVarIntBig | preloadVarIntBig(bits: number) {
return this._reader.preloadVarIntBig(bits);
} | /**
* Preload varint
* @param bits number of bits to read in header
* @returns varint value
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L314-L316 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadCoins | loadCoins() {
return this._reader.loadCoins();
} | /**
* Load coins
* @returns coins value
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L322-L324 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.preloadCoins | preloadCoins() {
return this._reader.preloadCoins();
} | /**
* Preload coins
* @returns coins value
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L330-L332 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadMaybeCoins | loadMaybeCoins() {
if (this._reader.loadBit()) {
return this._reader.loadCoins();
} else {
return null;
}
} | /**
* Load maybe coins
* @returns coins value or null
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L338-L344 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadAddress | loadAddress() {
return this._reader.loadAddress();
} | /**
* Load internal Address
* @returns Address
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L350-L352 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadMaybeAddress | loadMaybeAddress() {
return this._reader.loadMaybeAddress();
} | /**
* Load optional internal Address
* @returns Address or null
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L358-L360 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadExternalAddress | loadExternalAddress() {
return this._reader.loadExternalAddress();
} | /**
* Load external address
* @returns ExternalAddress
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L366-L368 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadMaybeExternalAddress | loadMaybeExternalAddress() {
return this._reader.loadMaybeExternalAddress();
} | /**
* Load optional external address
* @returns ExternalAddress or null
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L374-L376 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadAddressAny | loadAddressAny() {
return this._reader.loadAddressAny();
} | /**
* Load address
* @returns Address, ExternalAddress or null
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L382-L384 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadRef | loadRef() {
if (this._refsOffset >= this._refs.length) {
throw new Error("No more references");
}
return this._refs[this._refsOffset++];
} | /**
* Load reference
* @returns Cell
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L390-L395 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.preloadRef | preloadRef() {
if (this._refsOffset >= this._refs.length) {
throw new Error("No more references");
}
return this._refs[this._refsOffset];
} | /**
* Preload reference
* @returns Cell
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L401-L406 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadMaybeRef | loadMaybeRef() {
if (this.loadBit()) {
return this.loadRef();
} else {
return null;
}
} | /**
* Load optional reference
* @returns Cell or null
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L412-L418 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.preloadMaybeRef | preloadMaybeRef() {
if (this.preloadBit()) {
return this.preloadRef();
} else {
return null;
}
} | /**
* Preload optional reference
* @returns Cell or null
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L424-L430 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadBuffer | loadBuffer(bytes: number) {
return this._reader.loadBuffer(bytes);
} | /**
* Load byte buffer
* @param bytes number of bytes to load
* @returns Buffer
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L437-L439 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.preloadBuffer | preloadBuffer(bytes: number) {
return this._reader.preloadBuffer(bytes);
} | /**
* Load byte buffer
* @param bytes number of bytes to load
* @returns Buffer
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L446-L448 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadStringTail | loadStringTail() {
return readString(this);
} | /**
* Load string tail
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L453-L455 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadMaybeStringTail | loadMaybeStringTail() {
if (this.loadBit()) {
return readString(this);
} else {
return null;
}
} | /**
* Load maybe string tail
* @returns string or null
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L461-L467 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadStringRefTail | loadStringRefTail() {
return readString(this.loadRef().beginParse());
} | /**
* Load string tail from ref
* @returns string
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L473-L475 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadMaybeStringRefTail | loadMaybeStringRefTail() {
const ref = this.loadMaybeRef();
if (ref) {
return readString(ref.beginParse());
} else {
return null;
}
} | /**
* Load maybe string tail from ref
* @returns string or null
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L481-L488 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadDict | loadDict<K extends DictionaryKeyTypes, V>(key: DictionaryKey<K>, value: DictionaryValue<V>): Dictionary<K, V> {
return Dictionary.load(key, value, this);
} | /**
* Loads dictionary
* @param key key description
* @param value value description
* @returns Dictionary<K, V>
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L496-L498 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.loadDictDirect | loadDictDirect<K extends DictionaryKeyTypes, V>(key: DictionaryKey<K>, value: DictionaryValue<V>): Dictionary<K, V> {
return Dictionary.loadDirect(key, value, this);
} | /**
* Loads dictionary directly from current slice
* @param key key description
* @param value value description
* @returns Dictionary<K, V>
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L506-L508 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.endParse | endParse() {
if (this.remainingBits > 0 || this.remainingRefs > 0) {
throw new Error("Slice is not empty");
}
} | /**
* Checks if slice is empty
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L513-L517 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.asCell | asCell() {
return beginCell().storeSlice(this).endCell();
} | /**
* Convert slice to cell
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L522-L524 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.asBuilder | asBuilder() {
return beginCell().storeSlice(this);
} | /**
*
* @returns
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L530-L532 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
js-wallet-sdk | github_2023 | okx | typescript | Slice.clone | clone(fromStart: boolean = false): Slice {
if (fromStart) {
let reader = this._reader.clone();
reader.reset();
return new Slice(reader, this._refs);
} else {
let res = new Slice(this._reader, this._refs);
res._refsOffset = this._refsOffset;
... | /**
* Clone slice
* @returns cloned slice
*/ | https://github.com/okx/js-wallet-sdk/blob/dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89/packages/coin-ton/src/ton-core/boc/Slice.ts#L538-L548 | dcb1ce39ebfdf747ec71ee657f11d5b2df0bba89 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.