@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "warp-contracts",
|
||||
"version": "1.4.17",
|
||||
"version": "1.4.18",
|
||||
"description": "An implementation of the SmartWeave smart contract protocol.",
|
||||
"types": "./lib/types/index.d.ts",
|
||||
"main": "./lib/cjs/index.js",
|
||||
|
||||
@@ -9,10 +9,10 @@ import { LoggerFactory } from '../../../logging/LoggerFactory';
|
||||
import { DeployPlugin } from 'warp-contracts-plugin-deploy';
|
||||
import { mineBlock } from '../_helpers';
|
||||
import { WriteInteractionResponse } from '../../../contract/Contract';
|
||||
import { HandlerBasedContract } from "../../../contract/HandlerBasedContract";
|
||||
import { emptyTransfer } from "../../../contract/deploy/CreateContract";
|
||||
import { Tag } from "../../../utils/types/arweave-types";
|
||||
import { WARP_TAGS } from "../../../core/KnownTags";
|
||||
import { HandlerBasedContract } from '../../../contract/HandlerBasedContract';
|
||||
import { emptyTransfer } from '../../../contract/deploy/CreateContract';
|
||||
import { Tag } from '../../../utils/types/arweave-types';
|
||||
import { WARP_TAGS } from '../../../core/KnownTags';
|
||||
|
||||
describe('Constructor', () => {
|
||||
let contractSrc: string;
|
||||
@@ -329,7 +329,10 @@ describe('Constructor', () => {
|
||||
// and with the SDK version the supports constructors - results in an error thrown during internal writes
|
||||
// discovery - in other words, it is not possible to create any interaction with such contract.
|
||||
const hackyTransaction = await (withoutConstructorContract as HandlerBasedContract<any>).createInteraction(
|
||||
{ function: "doWrite" }, [new Tag(WARP_TAGS.INTERACT_WRITE, readExternalContract.txId())], emptyTransfer, false
|
||||
{ function: 'doWrite' },
|
||||
[new Tag(WARP_TAGS.INTERACT_WRITE, readExternalContract.txId())],
|
||||
emptyTransfer,
|
||||
false
|
||||
);
|
||||
|
||||
await warp.arweave.transactions.post(hackyTransaction);
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
import { GQLNodeInterface } from '../../legacy/gqlResult';
|
||||
import { LoggerFactory } from '../../logging/LoggerFactory';
|
||||
import { WarpFactory } from '../../core/WarpFactory';
|
||||
import { NetworkCommunicationError } from "../../utils/utils";
|
||||
import { NetworkCommunicationError } from '../../utils/utils';
|
||||
|
||||
const responseData = {
|
||||
paging: {
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
NonWhitelistedSourceError
|
||||
} from '../HandlerExecutorFactory';
|
||||
import { AbstractContractHandler } from './AbstractContractHandler';
|
||||
import { NetworkCommunicationError } from "../../../../utils/utils";
|
||||
import { NetworkCommunicationError } from '../../../../utils/utils';
|
||||
|
||||
export class WasmHandlerApi<State> extends AbstractContractHandler<State> {
|
||||
constructor(
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* eslint-disable */
|
||||
import copy from 'fast-copy';
|
||||
import { Buffer } from 'warp-isomorphic';
|
||||
import { KnownErrors } from "../core/modules/impl/handler/JsHandlerApi";
|
||||
import { KnownErrors } from '../core/modules/impl/handler/JsHandlerApi';
|
||||
|
||||
export const sleep = (ms: number): Promise<void> => {
|
||||
return new Promise((resolve) => setTimeout(resolve, ms));
|
||||
|
||||
Reference in New Issue
Block a user