From e126169a977d96f00fd3712e417d433dba8e8142 Mon Sep 17 00:00:00 2001 From: Artem Poltorzhitskiy Date: Thu, 7 Jul 2022 15:42:05 +0300 Subject: [PATCH] Feature: repeat operation (#435) * Feature: repeat operation * Fixes --- src/api/bcd.js | 19 +++++++++-- src/components/InternalOperation.vue | 32 +++++++++++++++++++ src/components/schema/Schema.vue | 6 ++++ .../schema/schemaForm/SchemaForm.vue | 1 - src/views/contract/InteractTab.vue | 28 +++++++++++++++- 5 files changed, 82 insertions(+), 4 deletions(-) diff --git a/src/api/bcd.js b/src/api/bcd.js index 5b6dd1cf..037bae6b 100644 --- a/src/api/bcd.js +++ b/src/api/bcd.js @@ -299,8 +299,23 @@ export class BetterCallApi { }) } - getContractEntrypointSchema(network, address, entrypoint, fill_type = 'empty') { - return this.api.get(`/contract/${network}/${address}/entrypoints/schema?fill_type=${fill_type}&entrypoint=${entrypoint}`) + getContractEntrypointSchema(network, address, entrypoint, fill_type = 'empty', hash = undefined, counter = undefined) { + let params = {} + if (fill_type) { + params['fill_type'] = fill_type; + } + if (entrypoint) { + params['entrypoint'] = entrypoint; + } + if (hash) { + params['hash'] = hash; + } + if (counter) { + params['counter'] = counter; + } + return this.api.get(`/contract/${network}/${address}/entrypoints/schema`, { + params: params, + }) .then((res) => { if (res.status !== 200) { throw new RequestFailedError(res); diff --git a/src/components/InternalOperation.vue b/src/components/InternalOperation.vue index 0e0051db..5e2838d2 100644 --- a/src/components/InternalOperation.vue +++ b/src/components/InternalOperation.vue @@ -17,6 +17,31 @@ + + + Repeat operation group +