Skip to content

Commit

Permalink
wip: refactor: :(
Browse files Browse the repository at this point in the history
  • Loading branch information
egasimus committed May 8, 2024
1 parent 78c54fe commit 5e40ba2
Show file tree
Hide file tree
Showing 129 changed files with 3,280 additions and 3,199 deletions.
4 changes: 2 additions & 2 deletions examples/example.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Deploy } from '@hackbg/fadroma'
import { Compute } from '@hackbg/fadroma'

export default function main (state) {

return new Deploy.Deployment(state)
return new Compute.Deployment(state)
.addContract("cw-null", {
language: 'rust',
sourcePath: '..',
Expand Down
13 changes: 6 additions & 7 deletions fixtures/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ import { fileURLToPath } from 'node:url'
import { readFileSync } from 'node:fs'
import ok from 'node:assert'
import { SyncFS, FileFormat, withTmpDir } from '@hackbg/file'
import { Core, Chain, Deploy } from '@fadroma/agent'
const { bold, Console } = Core
import { Console, bold, Chain, Compute, Connection, Identity, Backend } from '@fadroma/agent'

//@ts-ignore
export const here = dirname(fileURLToPath(import.meta.url))
export const workspace = resolve(here)
export const fixture = (...args: string[]) => resolve(here, ...args)
export const log = new Core.Console('Fadroma Testing')
export const log = new Console('Fadroma Testing')
export const nullWasm = readFileSync(fixture('empty.wasm'))
export const mnemonics = [
'canoe argue shrimp bundle drip neglect odor ribbon method spice stick pilot produce actual recycle deposit year crawl praise royal enlist option scene spy',
Expand Down Expand Up @@ -41,7 +40,7 @@ export const tmpDir = () => {
return x
}

export class TestProjectDeployment extends Deploy.Deployment {
export class TestProjectDeployment extends Compute.Deployment {

t = this.template('t', {
chainId: 'stub',
Expand Down Expand Up @@ -72,9 +71,9 @@ export class TestProjectDeployment extends Deploy.Deployment {
}

export async function testConnectionWithBackend <
A extends typeof Chain.Connection,
I extends typeof Chain.Identity,
B extends Chain.Backend,
A extends typeof Connection,
I extends typeof Identity,
B extends Backend,
> (backend: B, { Connection, Identity, code, initMsg = null }: {
Connection: A,
Identity: I,
Expand Down
126 changes: 0 additions & 126 deletions packages/agent/chain.test.ts

This file was deleted.

Loading

0 comments on commit 5e40ba2

Please sign in to comment.