@xcapit/shelter-sdk
Version:
SDK for Shelter smart contracts on Stellar
35 lines (31 loc) • 737 B
text/typescript
import { Keypair } from "shelter-sdk";
import { Foundry } from "./foundry";
import { FakeClient } from "../fake-client/fake-client";
import {
contractAddressTxReponse,
FakeServer,
} from "../fixtures/fixtures";
import { Rpc } from "../rpc/rpc";
describe("Foundry", () => {
const steward = Keypair.random();
const wasmHash = "aWasmHash";
test("new", () => {
expect(
new Foundry(
steward,
new Rpc(new FakeServer()),
wasmHash,
)
).toBeTruthy();
});
test("deploy", async () => {
expect(
await new Foundry(
steward,
new Rpc(new FakeServer(contractAddressTxReponse)),
wasmHash,
FakeClient
).newShelter()
).toBeTruthy();
});
});