feat: register contract (#299)

This commit is contained in:
Asia
2022-12-28 17:47:41 +01:00
committed by GitHub
parent d7a82224c1
commit 83222b5670
5 changed files with 122 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ import Arweave from 'arweave';
import { Contract, InnerCallData } from '../contract/Contract';
import {
ArWallet,
BundlrNodeType,
ContractData,
ContractDeploy,
CreateContract,
@@ -85,6 +86,10 @@ export class Warp {
return await this.createContract.deployBundled(rawDataItem);
}
async register(id: string, bundlrNode: BundlrNodeType): Promise<ContractDeploy> {
return await this.createContract.register(id, bundlrNode);
}
async createSourceTx(sourceData: SourceData, wallet: ArWallet | SignatureType): Promise<Transaction> {
return await this.createContract.createSourceTx(sourceData, wallet);
}