-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'lima' of github.com:ecadlabs/taquito into 2074-local-fo…
…rging-support-new-instruction-LAMBDA_REC
- Loading branch information
Showing
36 changed files
with
3,062 additions
and
2,332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
110 changes: 110 additions & 0 deletions
110
integration-tests/contract-deploy-having-ticket.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
import { CONFIGS } from "./config"; | ||
import { ticketCode } from './data/code_with_ticket'; | ||
import { ticketCodeProto14 } from './data/code_with_ticket_proto14'; | ||
import { Protocols } from "@taquito/taquito"; | ||
|
||
CONFIGS().forEach(({ lib, rpc, setup, protocol }) => { | ||
const Tezos = lib; | ||
const kathmandunet = protocol === Protocols.PtKathman ? test: test.skip; | ||
const limanetAndAlpha = protocol === Protocols.PtLimaPtL || protocol === Protocols.ProtoALpha ? test: test.skip; | ||
|
||
describe(`Test origination of a token contract using: ${rpc}`, () => { | ||
|
||
beforeEach(async (done) => { | ||
await setup(); | ||
done(); | ||
}); | ||
|
||
kathmandunet('Originates a contract having ticket with init and the contract api', async (done) => { | ||
const op = await Tezos.contract.originate({ | ||
code: ticketCodeProto14, | ||
init: `(Pair None None)` | ||
}); | ||
|
||
await op.confirmation(); | ||
expect(op.hash).toBeDefined(); | ||
expect(op.includedInBlock).toBeLessThan(Number.POSITIVE_INFINITY); | ||
|
||
done(); | ||
}); | ||
|
||
kathmandunet('Originates a contract having ticket with init in JSON and the contract api', async (done) => { | ||
const op = await Tezos.contract.originate({ | ||
code: ticketCodeProto14, | ||
init: { prim: 'Pair', args: [ { prim: 'None' }, { prim: 'None' } ] } | ||
}); | ||
|
||
await op.confirmation(); | ||
expect(op.hash).toBeDefined(); | ||
expect(op.includedInBlock).toBeLessThan(Number.POSITIVE_INFINITY); | ||
|
||
done(); | ||
}); | ||
|
||
kathmandunet('Originates a contract having ticket with storage and the contract api', async (done) => { | ||
const op = await Tezos.contract.originate({ | ||
code: ticketCodeProto14, | ||
storage: { | ||
'%x': null, | ||
'%y': null | ||
} | ||
}); | ||
|
||
await op.confirmation(); | ||
expect(op.hash).toBeDefined(); | ||
expect(op.includedInBlock).toBeLessThan(Number.POSITIVE_INFINITY); | ||
|
||
done(); | ||
}); | ||
}); | ||
|
||
describe(`Test origination of a token contract using: ${rpc}`, () => { | ||
|
||
beforeEach(async (done) => { | ||
await setup(); | ||
done(); | ||
}); | ||
|
||
limanetAndAlpha('Originates a contract having ticket with init and the contract api', async (done) => { | ||
const op = await Tezos.contract.originate({ | ||
code: ticketCode, | ||
init: `(Pair None None)` | ||
}); | ||
|
||
await op.confirmation(); | ||
expect(op.hash).toBeDefined(); | ||
expect(op.includedInBlock).toBeLessThan(Number.POSITIVE_INFINITY); | ||
|
||
done(); | ||
}); | ||
|
||
limanetAndAlpha('Originates a contract having ticket with init in JSON and the contract api', async (done) => { | ||
const op = await Tezos.contract.originate({ | ||
code: ticketCode, | ||
init: { prim: 'Pair', args: [ { prim: 'None' }, { prim: 'None' } ] } | ||
}); | ||
|
||
await op.confirmation(); | ||
expect(op.hash).toBeDefined(); | ||
expect(op.includedInBlock).toBeLessThan(Number.POSITIVE_INFINITY); | ||
|
||
done(); | ||
}); | ||
|
||
limanetAndAlpha('Originates a contract having ticket with storage and the contract api', async (done) => { | ||
const op = await Tezos.contract.originate({ | ||
code: ticketCode, | ||
storage: { | ||
'%x': null, | ||
'%y': null | ||
} | ||
}); | ||
|
||
await op.confirmation(); | ||
expect(op.hash).toBeDefined(); | ||
expect(op.includedInBlock).toBeLessThan(Number.POSITIVE_INFINITY); | ||
|
||
done(); | ||
}); | ||
}); | ||
}) |
67 changes: 0 additions & 67 deletions
67
integration-tests/contract-edo-deploy-having-ticket.spec.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.