@swapkit/helpers
Advanced tools
Comparing version 1.0.0-rc.103 to 1.0.0-rc.104
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
450771
7518