Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: trigger a new release #412

Merged
merged 1 commit into from
Apr 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bnb-chain/javascript-sdk",
"version": "1.0.2",
"version": "4.3.1",
"license": "Apache-2.0",
"main": "lib/index.js",
"typings": "lib/index.d.ts",

Unchanged files with check annotations Beta

import * as amino from "../src/amino"
import { unMarshalBinaryLengthPrefixed } from "../src/amino"

Check warning on line 2 in __tests__/decoder.test.ts

GitHub Actions / Test

'unMarshalBinaryLengthPrefixed' is defined but never used
import { AminoPrefix, StdTx, SendMsg } from "../src/types/"

Check warning on line 3 in __tests__/decoder.test.ts

GitHub Actions / Test

'StdTx' is defined but never used

Check warning on line 3 in __tests__/decoder.test.ts

GitHub Actions / Test

'SendMsg' is defined but never used
class Msg {
constructor(opts) {
const sequence = account.result && account.result.sequence
const newOrder: NewOrder = {
id: `BA36F0FAD74D8F41045463E4774F328F4AF779E5-${sequence! + 1}`,

Check warning on line 67 in __tests__/transaction.test.ts

GitHub Actions / Test

Forbidden non-null assertion
symbol: "BNB_USDT.B-B7C",
ordertype: 2,
side: 2,
import typeToTyp3 from "../../utils/encoderHelper"
const decoder = (bytes: Buffer, varType: any) => {

Check warning on line 11 in src/amino/decoder/index.ts

GitHub Actions / Test

Unexpected any. Specify a different type
const val = varType.decode(bytes, 0)
const offset = varType.encodingLength(val)
return { val, offset }
* */
export const unMarshalBinaryLengthPrefixed = (
bytes: Buffer,
type: any

Check warning on line 26 in src/amino/decoder/index.ts

GitHub Actions / Test

Unexpected any. Specify a different type
): any => {

Check warning on line 27 in src/amino/decoder/index.ts

GitHub Actions / Test

Unexpected any. Specify a different type
if (bytes.length === 0) throw new TypeError("Cannot decode empty bytes")
// read byte-length prefix
* @param {Object} type
* @returns {Object}
* */
export const unMarshalBinaryBare = (bytes: Buffer, type: any): any => {

Check warning on line 48 in src/amino/decoder/index.ts

GitHub Actions / Test

Unexpected any. Specify a different type

Check warning on line 48 in src/amino/decoder/index.ts

GitHub Actions / Test

Unexpected any. Specify a different type
if (!is.object(type)) throw new TypeError("type should be object")
if (!Buffer.isBuffer(bytes)) throw new TypeError("bytes must be buffer")
const decodeBinary = (
bytes: Buffer,
type: any,

Check warning on line 64 in src/amino/decoder/index.ts

GitHub Actions / Test

Unexpected any. Specify a different type
isLengthPrefixed?: boolean
): any => {
if (Buffer.isBuffer(type)) {