feat: register contract (#299)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user