
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@chromia/ft4
Advanced tools
FT4 Library is a library for Rell modules (Chromia smart contract language). It can be imported and used as a token provider and manager. It allows several operations, among them: creation of different assets (type of tokens), allocation of tokens, transf
The FT4 library is a toolkit to help dApp developers build real world applications within the Chromia ecosystem by providing out of the box support for things such as account creation and access management and interaction with external signature solutions already familiar to the user. It also provides asset management. Allowing issuance, allocation and transfers and tracing of asset activities, both within a chain as well as across other chains within the Chromia ecosystem.
A full documentation on how to use the various features of the library can be found on the official docs page.
This repository contains the FT4 library and a comprehensive suite of tests written in Node.js and Jest. The current testing setup serves as a temporary measure, as a Rell-based testing suite is in development.
Clone the repository and install the dependencies:
git clone git@gitlab.com:chromaway/ft4-lib.git
cd ft4-lib
npm install
chr install
Build TypeScript library into dist/
:
npm run build
Run the complete set of Rell and TypeScript tests:
npm run test
Run only Rell or TypeScript tests:
npm run test:rell
npm run test:js
The TypeScript tests can be run with even more granularity:
npm run test:js-unit # does not make any calls to a real blockchain
npm run test:js-integration # stars a single blockchain which it interacts with
npm run test:js-multichain # Stars a cluster of chains which it interacts with
To execute particular tests in Rell, use the --tests
or -t
option:
npm run test:rell -- --tests=test1,test2
npm run test:rell -- -t=test1,test2
Execute specific Jest tests by string matching:
npm run test:js 'string matching test(s)'
Examples:
npm run test:js 'user'
npm run test:js 'rate|sso'
Run e2e tests interactively:
npm run test:e2e
Run e2e tests in headless mode:
npm run test:e2e:headless
Update changelog in doc/release-notes/
, then run ./scripts/compile-changelog.sh
script to assemble changelog.md
and rell-changelog.md
. Do not update
changelog.md
or rell-changelog.md
directly.
This project is licensed under the Apache License, Version 2.0. For more details, see the LICENSE file in the repository or visit Apache License, Version 2.0.
[2.0.0] - 2025-05-07
MERKLE_HASH_VERSIONS
as the same constants is now
exported from postchain-client and can be reusedderiveNonce
function has been updated to accept an additional input
parameter merkleHashVersion
that defaults to 1
if not providedTransactionBuilder
event type of buildAndSend
from
Web3CustomPromiEvent
to Web3PromiEvent
TransactionBuilder
event type of buildAndSendWithAnchoring
from
Web3CustomPromiEvent
to Web3PromiEvent
buildAndSend
and
buildAndSendWithAnchoring
of transactionBuilder
from
Web3CustomPromiEvent
to Web3PromiEvent
registerAccount
from Web3CustomPromiEvent
to Web3PromiEvent
transferHistoryFromHeight
from
TransferHistoryEntryResponse[]
to
PagedResponse<TransferHistoryEntryResponse>
addAuthDescriptor
from
Web3CustomPromiEvent
to Web3PromiEvent
updateMainAuthDescriptor
from
Web3CustomPromiEvent
to Web3PromiEvent
deleteAuthDescriptor
from
Web3CustomPromiEvent
to Web3PromiEvent
deleteAllAuthDescriptorsExceptMain
from
Web3CustomPromiEvent
to Web3PromiEvent
transfer
from Web3CustomPromiEvent
to
Web3PromiEvent
recallUnclaimedTransfer
from
Web3CustomPromiEvent
to Web3PromiEvent
burn
from Web3CustomPromiEvent
to
Web3PromiEvent
crosschainTransfer
from
Web3CustomPromiEvent
to Web3PromiEvent
resumeCrosschainTransfer
from
Web3CustomPromiEvent
to Web3PromiEvent
recallUnclaimedCrosschainTransfer
from
Web3CustomPromiEvent
to Web3PromiEvent
Session.call
from Web3CustomPromiEvent
to
Web3PromiEvent
Session.callWithoutNop
from Web3CustomPromiEvent
to
Web3PromiEvent
AuthenticatedAccount.addAuthDescriptor
from
Web3CustomPromiEvent
to Web3PromiEvent
AuthenticatedAccount.updateMainAuthDescriptor
from
Web3CustomPromiEvent
to Web3PromiEvent
AuthenticatedAccount.deleteAuthDescriptor
from
Web3CustomPromiEvent
to Web3PromiEvent
AuthenticatedAccount.deleteAllAuthDescriptorsExceptMain
from Web3CustomPromiEvent
to Web3PromiEvent
AuthenticatedAccount.transfer
from Web3CustomPromiEvent
to Web3PromiEvent
AuthenticatedAccount.recallUnclaimedTransfer
from
Web3CustomPromiEvent
to Web3PromiEvent
AuthenticatedAccount.crosschainTransfer
from
Web3CustomPromiEvent
to Web3PromiEvent
AuthenticatedAccount.resumeCrosschainTransfer
from
Web3CustomPromiEvent
to Web3PromiEvent
AuthenticatedAccount.revertCrosschainTransfer
from
Web3CustomPromiEvent
to Web3PromiEvent
AuthenticatedAccount.recallUnclaimedCrosschainTransfer
from Web3CustomPromiEvent
to Web3PromiEvent
AuthenticatedAccount.burn
from Web3CustomPromiEvent
to
Web3PromiEvent
Web3CustomPromiEvent
, Web3CustomEventMap
,
PromiseExecutor
, Web3EventCallback
and Web3EventKey
as
postchain-client's was refactored to generic and can be reusedFAQs
FT4 Library is a library for Rell modules (Chromia smart contract language). It can be imported and used as a token provider and manager. It allows several operations, among them: creation of different assets (type of tokens), allocation of tokens, transf
The npm package @chromia/ft4 receives a total of 329 weekly downloads. As such, @chromia/ft4 popularity was classified as not popular.
We found that @chromia/ft4 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.