Socket
Socket
Sign inDemoInstall

@swapkit/helpers

Package Overview
Dependencies
Maintainers
2
Versions
203
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swapkit/helpers - npm Package Compare versions

Comparing version 1.0.0-rc.103 to 1.0.0-rc.104

2

package.json

@@ -41,3 +41,3 @@ {

"types": "./src/index.ts",
"version": "1.0.0-rc.103"
"version": "1.0.0-rc.104"
}

@@ -28,3 +28,3 @@ import { describe, expect, test } from "bun:test";

test("returns correct memo for Thorname Register", () => {
const result = getMemoFor(MemoType.THORNAME_REGISTER, {
const result = getMemoFor(MemoType.NAME_REGISTER, {
name: "thorname",

@@ -39,3 +39,3 @@ chain: "BNB",

test("returns correct memo for Mayaname Register", () => {
const result = getMemoFor(MemoType.THORNAME_REGISTER, {
const result = getMemoFor(MemoType.NAME_REGISTER, {
name: "mayaname",

@@ -42,0 +42,0 @@ chain: "BNB",

import { Chain } from "../types/chains";
import { MemoType } from "../types/sdk";
export type ThornameRegisterParam = {
export type NameRegisterParam = {
name: string;

@@ -29,3 +29,3 @@ chain: string;

}>;
[MemoType.THORNAME_REGISTER]: Omit<ThornameRegisterParam, "preferredAsset" | "expiryBlock">;
[MemoType.NAME_REGISTER]: Omit<NameRegisterParam, "preferredAsset" | "expiryBlock">;
}[T];

@@ -46,4 +46,4 @@

case MemoType.THORNAME_REGISTER: {
const { name, chain, address, owner } = options as MemoOptions<MemoType.THORNAME_REGISTER>;
case MemoType.NAME_REGISTER: {
const { name, chain, address, owner } = options as MemoOptions<MemoType.NAME_REGISTER>;
return `${memoType}:${name}:${chain}:${address}${owner ? `:${owner}` : ""}`;

@@ -50,0 +50,0 @@ }

@@ -56,2 +56,5 @@ const errorMessages = {

core_transaction_user_rejected: 10315,
core_transaction_create_liquidity_cacao_error: 10316,
core_transaction_add_liquidity_no_cacao_address: 10306,
core_transaction_add_liquidity_cacao_error: 10307,

@@ -58,0 +61,0 @@ /**

@@ -43,3 +43,3 @@ import { z } from "zod";

LEAVE = "LEAVE",
THORNAME_REGISTER = "~",
NAME_REGISTER = "~",
UNBOND = "UNBOND",

@@ -46,0 +46,0 @@ WITHDRAW = "-",

Sorry, the diff of this file is too big to display

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