From ba8fdf2141bf8eee6f15b4a1b71b837c26789599 Mon Sep 17 00:00:00 2001 From: esteblock Date: Tue, 31 Jan 2023 18:31:51 -0300 Subject: [PATCH] feat(utils): add invoker const --- packages/utils/src/index.tsx | 1 + packages/utils/src/invoker.tsx | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 packages/utils/src/invoker.tsx diff --git a/packages/utils/src/index.tsx b/packages/utils/src/index.tsx index f48a223..a6691a9 100644 --- a/packages/utils/src/index.tsx +++ b/packages/utils/src/index.tsx @@ -1,2 +1,3 @@ export * from "./identifiers"; export * from "./convert" +export * from "./invoker" diff --git a/packages/utils/src/invoker.tsx b/packages/utils/src/invoker.tsx new file mode 100644 index 0000000..c2c5b20 --- /dev/null +++ b/packages/utils/src/invoker.tsx @@ -0,0 +1,6 @@ +import * as SorobanClient from 'soroban-client' +let xdr = SorobanClient.xdr + +export const invoker = xdr.ScVal.scvObject( + xdr.ScObject.scoVec([xdr.ScVal.scvSymbol('Invoker')]) +) \ No newline at end of file