Rc/evm signature (#249)

* feat: allow signing function only for bundled txs

* fix: after ppe review

* feat: add transaction verification

* feat: warp plugins system

* chore: removing lodash dep

* feat: isEvmSigned verification

* chore: useFastCopy fix in tests

* feat: evm signature - minor fixes

* fix: try-catch for evm sig verification

* v1.2.14-beta.5

* fix: await for sig verification

* v1.2.14-beta.6

* chore: restore original package version

Co-authored-by: asiaziola <ziola.jm@gmail.com>
This commit is contained in:
just_ppe
2022-11-07 15:16:33 +01:00
committed by GitHub
parent 9335023824
commit ef6a445a2e
20 changed files with 3194 additions and 169 deletions

View File

@@ -66,12 +66,18 @@ async function main() {
});*/
const contract = warp.contract(contractTxId)
/*.setEvaluationOptions({
bundlerUrl: "http://13.53.39.138:5666/"
})*/
.setEvaluationOptions({
bundlerUrl: "http://localhost:5666/"
})
.connect(wallet);
await contract.writeInteraction<any>({
function: "transfer",
target: "M-mpNeJbg9h7mZ-uHaNsa5jwFFRAq0PsTkNWXJ-ojwI",
qty: 10000
}, {tags: [{name: 'Signature-Type', value: 'ethereum'}]});
/*await contract.writeInteraction<any>({
function: "storeBalance",
target: "M-mpNeJbg9h7mZ-uHaNsa5jwFFRAq0PsTkNWXJ-ojwI",
});
@@ -79,12 +85,7 @@ async function main() {
await contract.writeInteraction<any>({
function: "storeBalance",
target: "M-mpNeJbg9h7mZ-uHaNsa5jwFFRAq0PsTkNWXJ-ojwI",
});
await contract.writeInteraction<any>({
function: "storeBalance",
target: "M-mpNeJbg9h7mZ-uHaNsa5jwFFRAq0PsTkNWXJ-ojwI",
});
});*/
const {cachedValue} = await contract.readState();