Skip to content

Commit

Permalink
Update artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Lbqds committed Feb 29, 2024
1 parent c3d803a commit 3670483
Show file tree
Hide file tree
Showing 22 changed files with 410 additions and 0 deletions.
18 changes: 18 additions & 0 deletions artifacts/ts/Add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ import {
ContractInstance,
getContractEventsCurrentCount,
} from "@alephium/web3";
import { DeployContractExecutionResult } from "@alephium/cli";
import { default as AddContractJson } from "../add/Add.ral.json";
import { getContractByCodeHash } from "./contracts";
import { loadContractInstanceFromDeployments } from "./utils";

// Custom types for the contract
export namespace AddTypes {
Expand Down Expand Up @@ -112,6 +114,22 @@ export class AddInstance extends ContractInstance {
super(address);
}

static in(
allDeployments: {
deployerAddress: string;
contracts: Record<string, DeployContractExecutionResult>;
}[],
group?: number,
taskId?: string
): AddInstance | undefined {
return loadContractInstanceFromDeployments<AddInstance>(
allDeployments,
"Add",
group,
taskId
);
}

async fetchState(): Promise<AddTypes.State> {
return fetchContractState(Add, this);
}
Expand Down
18 changes: 18 additions & 0 deletions artifacts/ts/Assert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ import {
ContractInstance,
getContractEventsCurrentCount,
} from "@alephium/web3";
import { DeployContractExecutionResult } from "@alephium/cli";
import { default as AssertContractJson } from "../test/Assert.ral.json";
import { getContractByCodeHash } from "./contracts";
import { loadContractInstanceFromDeployments } from "./utils";

// Custom types for the contract
export namespace AssertTypes {
Expand Down Expand Up @@ -77,6 +79,22 @@ export class AssertInstance extends ContractInstance {
super(address);
}

static in(
allDeployments: {
deployerAddress: string;
contracts: Record<string, DeployContractExecutionResult>;
}[],
group?: number,
taskId?: string
): AssertInstance | undefined {
return loadContractInstanceFromDeployments<AssertInstance>(
allDeployments,
"Assert",
group,
taskId
);
}

async fetchState(): Promise<AssertTypes.State> {
return fetchContractState(Assert, this);
}
Expand Down
18 changes: 18 additions & 0 deletions artifacts/ts/Debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ import {
ContractInstance,
getContractEventsCurrentCount,
} from "@alephium/web3";
import { DeployContractExecutionResult } from "@alephium/cli";
import { default as DebugContractJson } from "../test/Debug.ral.json";
import { getContractByCodeHash } from "./contracts";
import { loadContractInstanceFromDeployments } from "./utils";

// Custom types for the contract
export namespace DebugTypes {
Expand Down Expand Up @@ -64,6 +66,22 @@ export class DebugInstance extends ContractInstance {
super(address);
}

static in(
allDeployments: {
deployerAddress: string;
contracts: Record<string, DeployContractExecutionResult>;
}[],
group?: number,
taskId?: string
): DebugInstance | undefined {
return loadContractInstanceFromDeployments<DebugInstance>(
allDeployments,
"Debug",
group,
taskId
);
}

async fetchState(): Promise<DebugTypes.State> {
return fetchContractState(Debug, this);
}
Expand Down
18 changes: 18 additions & 0 deletions artifacts/ts/DeprecatedNFTTest1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ import {
ContractInstance,
getContractEventsCurrentCount,
} from "@alephium/web3";
import { DeployContractExecutionResult } from "@alephium/cli";
import { default as DeprecatedNFTTest1ContractJson } from "../nft/DeprecatedNFTTest1.ral.json";
import { getContractByCodeHash } from "./contracts";
import { loadContractInstanceFromDeployments } from "./utils";

// Custom types for the contract
export namespace DeprecatedNFTTest1Types {
Expand Down Expand Up @@ -95,6 +97,22 @@ export class DeprecatedNFTTest1Instance extends ContractInstance {
super(address);
}

static in(
allDeployments: {
deployerAddress: string;
contracts: Record<string, DeployContractExecutionResult>;
}[],
group?: number,
taskId?: string
): DeprecatedNFTTest1Instance | undefined {
return loadContractInstanceFromDeployments<DeprecatedNFTTest1Instance>(
allDeployments,
"DeprecatedNFTTest1",
group,
taskId
);
}

async fetchState(): Promise<DeprecatedNFTTest1Types.State> {
return fetchContractState(DeprecatedNFTTest1, this);
}
Expand Down
18 changes: 18 additions & 0 deletions artifacts/ts/DeprecatedNFTTest2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ import {
ContractInstance,
getContractEventsCurrentCount,
} from "@alephium/web3";
import { DeployContractExecutionResult } from "@alephium/cli";
import { default as DeprecatedNFTTest2ContractJson } from "../nft/DeprecatedNFTTest2.ral.json";
import { getContractByCodeHash } from "./contracts";
import { loadContractInstanceFromDeployments } from "./utils";

// Custom types for the contract
export namespace DeprecatedNFTTest2Types {
Expand Down Expand Up @@ -107,6 +109,22 @@ export class DeprecatedNFTTest2Instance extends ContractInstance {
super(address);
}

static in(
allDeployments: {
deployerAddress: string;
contracts: Record<string, DeployContractExecutionResult>;
}[],
group?: number,
taskId?: string
): DeprecatedNFTTest2Instance | undefined {
return loadContractInstanceFromDeployments<DeprecatedNFTTest2Instance>(
allDeployments,
"DeprecatedNFTTest2",
group,
taskId
);
}

async fetchState(): Promise<DeprecatedNFTTest2Types.State> {
return fetchContractState(DeprecatedNFTTest2, this);
}
Expand Down
18 changes: 18 additions & 0 deletions artifacts/ts/DeprecatedNFTTest3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ import {
ContractInstance,
getContractEventsCurrentCount,
} from "@alephium/web3";
import { DeployContractExecutionResult } from "@alephium/cli";
import { default as DeprecatedNFTTest3ContractJson } from "../nft/DeprecatedNFTTest3.ral.json";
import { getContractByCodeHash } from "./contracts";
import { loadContractInstanceFromDeployments } from "./utils";

// Custom types for the contract
export namespace DeprecatedNFTTest3Types {
Expand Down Expand Up @@ -103,6 +105,22 @@ export class DeprecatedNFTTest3Instance extends ContractInstance {
super(address);
}

static in(
allDeployments: {
deployerAddress: string;
contracts: Record<string, DeployContractExecutionResult>;
}[],
group?: number,
taskId?: string
): DeprecatedNFTTest3Instance | undefined {
return loadContractInstanceFromDeployments<DeprecatedNFTTest3Instance>(
allDeployments,
"DeprecatedNFTTest3",
group,
taskId
);
}

async fetchState(): Promise<DeprecatedNFTTest3Types.State> {
return fetchContractState(DeprecatedNFTTest3, this);
}
Expand Down
18 changes: 18 additions & 0 deletions artifacts/ts/DeprecatedNFTTest4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ import {
ContractInstance,
getContractEventsCurrentCount,
} from "@alephium/web3";
import { DeployContractExecutionResult } from "@alephium/cli";
import { default as DeprecatedNFTTest4ContractJson } from "../nft/DeprecatedNFTTest4.ral.json";
import { getContractByCodeHash } from "./contracts";
import { loadContractInstanceFromDeployments } from "./utils";

// Custom types for the contract
export namespace DeprecatedNFTTest4Types {
Expand Down Expand Up @@ -107,6 +109,22 @@ export class DeprecatedNFTTest4Instance extends ContractInstance {
super(address);
}

static in(
allDeployments: {
deployerAddress: string;
contracts: Record<string, DeployContractExecutionResult>;
}[],
group?: number,
taskId?: string
): DeprecatedNFTTest4Instance | undefined {
return loadContractInstanceFromDeployments<DeprecatedNFTTest4Instance>(
allDeployments,
"DeprecatedNFTTest4",
group,
taskId
);
}

async fetchState(): Promise<DeprecatedNFTTest4Types.State> {
return fetchContractState(DeprecatedNFTTest4, this);
}
Expand Down
18 changes: 18 additions & 0 deletions artifacts/ts/DeprecatedNFTTest5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ import {
ContractInstance,
getContractEventsCurrentCount,
} from "@alephium/web3";
import { DeployContractExecutionResult } from "@alephium/cli";
import { default as DeprecatedNFTTest5ContractJson } from "../nft/DeprecatedNFTTest5.ral.json";
import { getContractByCodeHash } from "./contracts";
import { loadContractInstanceFromDeployments } from "./utils";

// Custom types for the contract
export namespace DeprecatedNFTTest5Types {
Expand Down Expand Up @@ -107,6 +109,22 @@ export class DeprecatedNFTTest5Instance extends ContractInstance {
super(address);
}

static in(
allDeployments: {
deployerAddress: string;
contracts: Record<string, DeployContractExecutionResult>;
}[],
group?: number,
taskId?: string
): DeprecatedNFTTest5Instance | undefined {
return loadContractInstanceFromDeployments<DeprecatedNFTTest5Instance>(
allDeployments,
"DeprecatedNFTTest5",
group,
taskId
);
}

async fetchState(): Promise<DeprecatedNFTTest5Types.State> {
return fetchContractState(DeprecatedNFTTest5, this);
}
Expand Down
18 changes: 18 additions & 0 deletions artifacts/ts/DeprecatedNFTTest6.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ import {
ContractInstance,
getContractEventsCurrentCount,
} from "@alephium/web3";
import { DeployContractExecutionResult } from "@alephium/cli";
import { default as DeprecatedNFTTest6ContractJson } from "../nft/DeprecatedNFTTest6.ral.json";
import { getContractByCodeHash } from "./contracts";
import { loadContractInstanceFromDeployments } from "./utils";

// Custom types for the contract
export namespace DeprecatedNFTTest6Types {
Expand Down Expand Up @@ -107,6 +109,22 @@ export class DeprecatedNFTTest6Instance extends ContractInstance {
super(address);
}

static in(
allDeployments: {
deployerAddress: string;
contracts: Record<string, DeployContractExecutionResult>;
}[],
group?: number,
taskId?: string
): DeprecatedNFTTest6Instance | undefined {
return loadContractInstanceFromDeployments<DeprecatedNFTTest6Instance>(
allDeployments,
"DeprecatedNFTTest6",
group,
taskId
);
}

async fetchState(): Promise<DeprecatedNFTTest6Types.State> {
return fetchContractState(DeprecatedNFTTest6, this);
}
Expand Down
18 changes: 18 additions & 0 deletions artifacts/ts/DeprecatedNFTTest7.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ import {
ContractInstance,
getContractEventsCurrentCount,
} from "@alephium/web3";
import { DeployContractExecutionResult } from "@alephium/cli";
import { default as DeprecatedNFTTest7ContractJson } from "../nft/DeprecatedNFTTest7.ral.json";
import { getContractByCodeHash } from "./contracts";
import { loadContractInstanceFromDeployments } from "./utils";

// Custom types for the contract
export namespace DeprecatedNFTTest7Types {
Expand Down Expand Up @@ -107,6 +109,22 @@ export class DeprecatedNFTTest7Instance extends ContractInstance {
super(address);
}

static in(
allDeployments: {
deployerAddress: string;
contracts: Record<string, DeployContractExecutionResult>;
}[],
group?: number,
taskId?: string
): DeprecatedNFTTest7Instance | undefined {
return loadContractInstanceFromDeployments<DeprecatedNFTTest7Instance>(
allDeployments,
"DeprecatedNFTTest7",
group,
taskId
);
}

async fetchState(): Promise<DeprecatedNFTTest7Types.State> {
return fetchContractState(DeprecatedNFTTest7, this);
}
Expand Down
18 changes: 18 additions & 0 deletions artifacts/ts/FakeTokenTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ import {
ContractInstance,
getContractEventsCurrentCount,
} from "@alephium/web3";
import { DeployContractExecutionResult } from "@alephium/cli";
import { default as FakeTokenTestContractJson } from "../token/FakeTokenTest.ral.json";
import { getContractByCodeHash } from "./contracts";
import { loadContractInstanceFromDeployments } from "./utils";

// Custom types for the contract
export namespace FakeTokenTestTypes {
Expand Down Expand Up @@ -138,6 +140,22 @@ export class FakeTokenTestInstance extends ContractInstance {
super(address);
}

static in(
allDeployments: {
deployerAddress: string;
contracts: Record<string, DeployContractExecutionResult>;
}[],
group?: number,
taskId?: string
): FakeTokenTestInstance | undefined {
return loadContractInstanceFromDeployments<FakeTokenTestInstance>(
allDeployments,
"FakeTokenTest",
group,
taskId
);
}

async fetchState(): Promise<FakeTokenTestTypes.State> {
return fetchContractState(FakeTokenTest, this);
}
Expand Down
Loading

0 comments on commit 3670483

Please sign in to comment.