-
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.
update Taquito test configs to support Mumbai runs (#2312)
* update Taquito test configs to support Mumbai runs * updated some integration tests to point to mumbainet * pdate constant values for mumbainet * removed accidental change to mondaynet test
- Loading branch information
Showing
16 changed files
with
267 additions
and
112 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
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
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
66 changes: 32 additions & 34 deletions
66
integration-tests/contract-originate-and-call-contract-lambda-rec.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 |
---|---|---|
@@ -1,49 +1,47 @@ | ||
import { Protocols } from "@taquito/taquito"; | ||
import { CONFIGS } from "./config"; | ||
import { recFactApplyStore, recursiveLambda, reduceMap } from "./data/lambda-rec"; | ||
|
||
CONFIGS().forEach(({ lib, rpc, setup, protocol }) => { | ||
const Tezos = lib; | ||
const limanetAndAlpha = protocol === Protocols.PtLimaPtL || protocol === Protocols.ProtoALpha ? test : test.skip; | ||
CONFIGS().forEach(({ lib, rpc, setup }) => { | ||
const Tezos = lib; | ||
|
||
describe(`Test deploying and interacting with contracts having recursive lambda through the contract api using: ${rpc}`, () => { | ||
describe(`Test deploying and interacting with contracts having recursive lambda through the contract api using: ${rpc}`, () => { | ||
|
||
beforeEach(async (done) => { | ||
await setup(true); | ||
done(); | ||
}) | ||
beforeEach(async (done) => { | ||
await setup(true); | ||
done(); | ||
}) | ||
|
||
limanetAndAlpha('Verify that a contract having the LAMBDA_REC instruction in its code can be deployed', async (done) => { | ||
const deployContract = await Tezos.contract.originate({ | ||
code: recFactApplyStore, | ||
storage: { 0: 3 } | ||
}); | ||
it('Verify that a contract having the LAMBDA_REC instruction in its code can be deployed', async (done) => { | ||
const deployContract = await Tezos.contract.originate({ | ||
code: recFactApplyStore, | ||
storage: { 0: 3 } | ||
}); | ||
|
||
await deployContract.confirmation(); | ||
expect(deployContract.hash).toBeDefined(); | ||
expect(deployContract.status).toEqual('applied'); | ||
await deployContract.confirmation(); | ||
expect(deployContract.hash).toBeDefined(); | ||
expect(deployContract.status).toEqual('applied'); | ||
|
||
done(); | ||
}); | ||
done(); | ||
}); | ||
|
||
limanetAndAlpha('Verify that a contract entrypoint having a type lambda can be called with a recursive lambda', async (done) => { | ||
const deployContract = await Tezos.contract.originate({ | ||
code: reduceMap, | ||
storage: [1] | ||
}); | ||
it('Verify that a contract entrypoint having a type lambda can be called with a recursive lambda', async (done) => { | ||
const deployContract = await Tezos.contract.originate({ | ||
code: reduceMap, | ||
storage: [1] | ||
}); | ||
|
||
const contract = await deployContract.contract(); | ||
const contract = await deployContract.contract(); | ||
|
||
const op = await contract.methodsObject.default({ | ||
0: { prim: "Lambda_rec", args: recursiveLambda }, | ||
1: [1] | ||
}).send(); | ||
const op = await contract.methodsObject.default({ | ||
0: { prim: "Lambda_rec", args: recursiveLambda }, | ||
1: [1] | ||
}).send(); | ||
|
||
await op.confirmation(); | ||
expect(op.hash).toBeDefined(); | ||
expect(op.status).toEqual('applied'); | ||
await op.confirmation(); | ||
expect(op.hash).toBeDefined(); | ||
expect(op.status).toEqual('applied'); | ||
|
||
done(); | ||
}); | ||
done(); | ||
}); | ||
}); | ||
}) |
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export const knownContractPtLimaPtL = "KT1Q8j4ahiuMu6cTtD42JmUFNtdc6aE1ctUk"; | ||
export const knownBigMapContractPtLimaPtL = "KT1STPt3btDjttzsZ7MBmQkkfU3FykeAgYnW"; | ||
export const knownTzip12BigMapOffChainContractPtLimaPtL = "KT1Kh3xkT7dvn4ULqhwgxq1p4yz2kGx58o5E"; | ||
export const knownSaplingContractPtLimaPtL = "KT1B1WJhcBYY1ZuWZmgbp2CsPFHEffNZVrEj"; | ||
export const knownOnChainViewContractAddressPtLimaPtL = "KT1MU2tLa61FVUTa1HzVS6FZjVPBZQBhZabM"; | ||
export const txRollupAddressPtLimaPtL = "txr1SNAYyB37mfJwqByczbbRbZj41yYzfDB9F"; | ||
export const knownContractPtLimaPtL = "KT1NiiuTpzeh3qvmpg6x1WoUK5GFA9peHqMR"; | ||
export const knownBigMapContractPtLimaPtL = "KT19WjpKFLhkpnPfvzJCShyVxfiRfKuXx4js"; | ||
export const knownTzip12BigMapOffChainContractPtLimaPtL = "KT1GnRJVaqvzjeeuhcsCUZmn96ZrN8pJ2GxV"; | ||
export const knownSaplingContractPtLimaPtL = "KT1S321F21ZTqjxwC3MgJDE8M8aTX3234ZCY"; | ||
export const knownOnChainViewContractAddressPtLimaPtL = "KT1CH64MzwB9E5XkgdR1s7ZamHYsJuTPkDnt"; | ||
export const txRollupAddressPtLimaPtL = "txr1WtzBSTQMfLcGNPmMeDBUhNPjX7Vo3E5p3"; |
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,6 @@ | ||
export const knownContractPtMumbaii = "KT1Pt75B5Sgf5nz4m7GX1yGCA36pR2Lf6Eit"; | ||
export const knownBigMapContractPtMumbaii = "KT1ToCtqCSAqK85sYmD3f1AUC1h17Ho9J8J4"; | ||
export const knownTzip12BigMapOffChainContractPtMumbaii = "KT1AJwEfLhur9snYyv86GAXdoQZqygED3X3b"; | ||
export const knownSaplingContractPtMumbaii = "KT1MU6HasZvDrnDk7TdNVGj9zFVfDDGGrkFD"; | ||
export const knownOnChainViewContractAddressPtMumbaii = "KT1Mon6pBMP2M48tRSCAuSTgccsnwwG7PnHw"; | ||
export const txRollupAddressPtMumbaii = "txr1YzCiyQKjiNykr3cHoD9AVJqn9wtq81Cuc"; |
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.