包详细信息

@bitgo/sdk-coin-icp

BitGo6kMIT1.17.4

BitGo SDK coin library for Internet Computer

自述文件

BitGo sdk-coin-icp

SDK coins provide a modular approach to a monolithic architecture. This and all BitGoJS SDK coins allow developers to use only the coins needed for a given project.

Installation

All coins are loaded traditionally through the bitgo package. If you are using coins individually, you will be accessing the coin via the @bitgo/sdk-api package.

In your project install both @bitgo/sdk-api and @bitgo/sdk-coin-icp.

npm i @bitgo/sdk-api @bitgo/sdk-coin-icp

Next, you will be able to initialize an instance of "bitgo" through @bitgo/sdk-api instead of bitgo.

import { BitGoAPI } from '@bitgo/sdk-api';
import { Icp } from '@bitgo/sdk-coin-icp';

const sdk = new BitGoAPI();

sdk.register('icp', Icp.createInstance);

Development

Most of the coin implementations are derived from @bitgo/sdk-core, @bitgo/statics, and coin specific packages. These implementations are used to interact with the BitGo API and BitGo platform services.

You will notice that the basic version of common class extensions have been provided to you and must be resolved before the package build will succeed. Upon initiation of a given SDK coin, you will need to verify that your coin has been included in the root tsconfig.packages.json and that the linting, formatting, and testing succeeds when run both within the coin and from the root of BitGoJS.

更新日志

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.17.4 (2025-06-25)

Note: Version bump only for package @bitgo/sdk-coin-icp

1.17.3 (2025-06-24)

Note: Version bump only for package @bitgo/sdk-coin-icp

1.17.2 (2025-06-18)

Note: Version bump only for package @bitgo/sdk-coin-icp

1.17.1 (2025-06-10)

Note: Version bump only for package @bitgo/sdk-coin-icp

1.17.0 (2025-06-05)

Features

1.16.0 (2025-06-02)

Features

  • rename audit function naming and signature (1a885ab)
  • sdk-coin-icp: refactor account balance and fee retrieval to use IcpAgent class (5b1c928)

1.15.2 (2025-05-28)

Note: Version bump only for package @bitgo/sdk-coin-icp

1.15.1 (2025-05-22)

Bug Fixes

  • sdk-coin-icp: enhance transaction ID generation with 32-bit range checks (e25c65c)

1.15.0 (2025-05-20)

Features

  • sdk-coin-icp: fix memo id validation (0970bcf)
  • sdk-coin-icp: integrate ic0 library for account balance retrieval (63df09e)

1.14.0 (2025-05-07)

Bug Fixes

  • sdk-coin-icp: update verifyTransaction to include signableHex parameter (9153969)

Features

  • sdk-coin-icp: support setting ingressEnd (a27e67d)

1.13.1 (2025-04-29)

Note: Version bump only for package @bitgo/sdk-coin-icp

1.13.0 (2025-04-25)

Bug Fixes

  • sdk-coin-icp: enhance hash functions to support Uint8Array in Utils class (dbe8eea)
  • sdk-coin-icp: update cbor-x import to use index-no-eval (6c3f6af)
  • sdk-coin-icp: update from() method to use PayloadsData (ea7b7e2)
  • sdk-coin-icp: update protobufjs dependency to version 7.5.0 (663b5ee)

Features

  • sdk-coin-icp: add protobuf definitions for message SendRequest (b1b62c3)
  • sdk-coin-icp: add transaction ID handling and related utilities (59d20a8)
  • sdk-coin-icp: implemented default memo as 0 and related changes (cab3bcc)
  • sdk-coin-icp: replace protoDefinition with staticProtoDefinition for protobuf parsing (34b8de0)

1.12.0 (2025-04-15)

Bug Fixes

  • sdk-coin-icp: validate pubkey only when set (854b279)

Features

  • sdk-coin-icp: add missing function implementations (5f99a06)
  • sdk-coin-icp: implement getHashFunction (22ddba1)
  • sdk-coin-icp: implement signTransaction method (26a28aa)
  • sdk-coin-icp: implemented recover() for WRW support (d6bd979)
  • sdk-coin-icp: make memo field optional in transaction interfaces and builders (f2d2088)

1.11.0 (2025-04-04)

Features

  • sdk-coin-icp: reduce the payload to 1 (c6905ce)

1.10.1 (2025-04-02)

Note: Version bump only for package @bitgo/sdk-coin-icp

1.10.0 (2025-03-28)

Bug Fixes

  • sdk-coin-icp: change combine method visibility from protected to public (ff50dff)

Features

  • sdk-coin-icp: implement combine method for signed transaction generation (9bf8d85)
  • sdk-coin-icp: improve transaction signature validation (6c8151e)

1.9.0 (2025-03-20)

Features

  • sdk-coin-icp: enhance raw transaction handling (d9402f4)
  • sdk-coin-icp: make from method asynchronous for improved transaction handling (de96c9d)

1.8.0 (2025-03-18)

Bug Fixes

  • sdk-coin-icp: fix popup_generate_addresses - isWalletAddress validation (cc4c5e4)
  • sdk-coin-icp: update payloads length and adjust interval for ingress expiries (8d153d5)
  • sdk-core: set default multisig if empty (e2727df)

Features

  • sdk-coin-icp: enhance address validation and add memo ID support (290c03e)
  • sdk-coin-icp: implement signing functionality and improve transaction validation (9ec7714)

1.7.0 (2025-03-06)

Bug Fixes

  • sdk-coin-icp: correct buffer handling for sender principal and principal conversion (b51b93c)

Features

  • sdk-coin-icp: add validation for ICP block hashes (3037e1e)
  • sdk-coin-icp: implemented parsedTransaction for unsigned txn (ffc2370)
  • sdk-coin-icp: implemented transaction parsing for signed txn (f2d4f73)

1.6.0 (2025-03-04)

Bug Fixes

  • dependency fixes for secp256 lib (826db0b)
  • root: replace elliptic with noble/curves/secp256k1 (50a208d)

Features

  • sdk-coin-icp: implemented transaction builder and validations for ICP (ecf68b8)
  • sdk-coin-icp: refactor key pair generation to use utility function (93d84d4)

1.5.0 (2025-02-26)

Bug Fixes

  • root: replace elliptic with noble/curves/secp256k1 (50a208d)

Features

  • sdk-coin-icp: refactor key pair generation to use utility function (93d84d4)

1.4.0 (2025-02-20)

Features

  • sdk-coin-icp: refactor key pair generation to use utility function (93d84d4)

1.3.0 (2025-02-19)

Features

  • sdk-coin-icp: refactor getAddressFromPublicKey to use utils method (702ffe8)

1.2.1 (2025-02-11)

Note: Version bump only for package @bitgo/sdk-coin-icp

1.2.0 (2025-02-05)

Features

  • sdk-coin-icp: added address creation and validation logic (5f28145)

1.1.3 (2025-01-28)

Note: Version bump only for package @bitgo/sdk-coin-icp

1.1.2 (2025-01-23)

Note: Version bump only for package @bitgo/sdk-coin-icp

1.1.1 (2025-01-23)

Note: Version bump only for package @bitgo/sdk-coin-icp

1.1.0 (2025-01-20)

Features

  • sdk-coin-icp: added ICP skeleton code (5215ce9)