diff --git a/packages/coin-base/src/currency.ts b/packages/coin-base/src/currency.ts index 5772ccd..5bfef7a 100644 --- a/packages/coin-base/src/currency.ts +++ b/packages/coin-base/src/currency.ts @@ -40,7 +40,7 @@ export enum Currency { Celestia = 2854, DYDX = 2897, Kaspa = 111111, - NoStrAssets = 22000, + NostrAssets = 1237, } export enum segwitType { diff --git a/packages/coin-nostrassets/README.md b/packages/coin-nostrassets/README.md index 93357cb..9043d0a 100644 --- a/packages/coin-nostrassets/README.md +++ b/packages/coin-nostrassets/README.md @@ -1,5 +1,5 @@ # @okxweb3/coin-nostrassets -NoStrAssets SDK is used to interact with the protocol NoStrAssets , it contains various functions can be used to web3 wallet. +NostrAssets SDK is used to interact with the protocol NoStrAssets , it contains various functions can be used to web3 wallet. ## Installation diff --git a/packages/coin-nostrassets/src/NoStrAssetsWallet.ts b/packages/coin-nostrassets/src/NostrAssetsWallet.ts similarity index 98% rename from packages/coin-nostrassets/src/NoStrAssetsWallet.ts rename to packages/coin-nostrassets/src/NostrAssetsWallet.ts index c61c4aa..00f0f58 100644 --- a/packages/coin-nostrassets/src/NoStrAssetsWallet.ts +++ b/packages/coin-nostrassets/src/NostrAssetsWallet.ts @@ -50,7 +50,7 @@ export type NewAddressData = { publicKey?: string; }; -export class NoStrAssetsWallet extends BaseWallet { +export class NostrAssetsWallet extends BaseWallet { async getDerivedPath(param: GetDerivedPathParam): Promise { return `m/86'/0'/0'/0/${param.index}` } diff --git a/packages/coin-nostrassets/src/index.ts b/packages/coin-nostrassets/src/index.ts index 2f6b9ae..0cec68e 100644 --- a/packages/coin-nostrassets/src/index.ts +++ b/packages/coin-nostrassets/src/index.ts @@ -1,4 +1,4 @@ -export * from "./NoStrAssetsWallet"; +export * from "./NostrAssetsWallet"; export * from "./nostrassets"; export * from "./keys"; export * from "./event"; diff --git a/packages/coin-nostrassets/tests/nostrassetswallet.test.ts b/packages/coin-nostrassets/tests/nostrassetswallet.test.ts index 8054431..e2fa22e 100644 --- a/packages/coin-nostrassets/tests/nostrassetswallet.test.ts +++ b/packages/coin-nostrassets/tests/nostrassetswallet.test.ts @@ -1,7 +1,7 @@ -import {NoStrAssetsWallet, addressFromPrvKey, CryptTextParams, verifySignature, nipOpType} from "../src"; +import {NostrAssetsWallet, addressFromPrvKey, CryptTextParams, verifySignature, nipOpType} from "../src"; import {SignTxParams} from "@okxweb3/coin-base"; -const wallet = new NoStrAssetsWallet(); +const wallet = new NostrAssetsWallet(); const prv = 'bb1c93508b962c7efb0a340848538b2c5f7ba6c44e55f52389aa132a2fd3521a' describe("nostr", () => { test("address", async () => {