![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
ckt-lumos-experiment-tx-assembler
Advanced tools
This package provides functions to simplify the transaction assembling process.
@ckb-lumos/experiment-tx-assembler
This package provides functions to simplify the transaction assembling process.
createScriptRegistry
is for creating and managing script more easier.
import { createScriptRegistry } from "@ckb-lumos/experiment";
import { predefined } from "@ckb-lumos/config-manager";
const { AGGRON4 } = predefined;
const registry = createScriptRegistry(AGGRON4.SCRIPTS);
const secp256k1Script = registry.newScript("SECP256K1_BLAKE160", "0x");
const newRegistry = registry.extend({
OMNI_LOCK: {
CODE_HASH:
"0x79f90bb5e892d80dd213439eeab551120eb417678824f282b4ffb5f21bad2e1e",
HASH_TYPE: "type",
TX_HASH:
"0x9154df4f7336402114d04495175b37390ce86a4906d2d4001cf02c3e6d97f39c",
INDEX: "0x0",
DEP_TYPE: "code",
},
});
const omniCellDep = newRegistry.newCellDep("OMNI_LOCK");
To create input or output cells, you can use createCell
or createCellWithMinimalCapacity
, you can also indicate type
, data
, blockHash
, blockNumber
of the cell.
Create an input cell:
const lock: Script = {
codeHash:
"0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
args: "0x159890a7cacb44a95bef0743064433d763de229c",
hashType: "type",
};
const outPoint = {
txHash:
"0x942c23f72f0a2558a0029522b1dea2a7c64ba5196aed829ab6bfe4b6c3270958",
index: "0x0",
};
const cell = createCell({
lock: lock,
capacity: BI.from("10000000000"),
outPoint: outPoint,
});
Create an output cell:
const lock: Script = {
codeHash:
"0x79f90bb5e892d80dd213439eeab551120eb417678824f282b4ffb5f21bad2e1e",
hashType: "type",
args: "0x01a08bcc398854db4eaffd9c28b881c65f91e3a28b00",
};
const cell = createCell({ lock: lock, capacity: BI.from("10000000000") });
Create cell with minimal capacity:
const lock: Script = {
codeHash:
"0x79f90bb5e892d80dd213439eeab551120eb417678824f282b4ffb5f21bad2e1e",
hashType: "type",
args: "0x01a08bcc398854db4eaffd9c28b881c65f91e3a28b00",
};
const cell = createCellWithMinimalCapacity({ lock: lock });
FAQs
This package provides functions to simplify the transaction assembling process.
The npm package ckt-lumos-experiment-tx-assembler receives a total of 1 weekly downloads. As such, ckt-lumos-experiment-tx-assembler popularity was classified as not popular.
We found that ckt-lumos-experiment-tx-assembler demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.