deployBundled
This release introduces new method for creating contract. It requires passing a bundled and signed data item representing contract (created e.g. with arbundles
package https://github.com/Bundlr-Network/arbundles). Data item is then sent to Warp Gateway which uses @bundlr-network/client
to upload data item to Arweave. Such created contract is indexed in Warp Gateway so it is then accessible via all Warp tools like all other SmartWeave contracts.
Currently only transactions with a special set of tags are accepted. Apart from contract-specific tags, the Content-Type
tag needs to be set to application/x.arweave-manifest+json
, init state must be placed in Init-State
tag, contract must also include Title
, Description
and Type
tag. Data of a data item should be a path manifest so it can be later resolved by Arweave gateway.
Data item must be passed in raw version, like so:
const { contractTxId } = await warp.createContract.deployBundled(dataItem.getRaw());