From b7da81f9ecfc9df48d2db64bcaeed1420d887372 Mon Sep 17 00:00:00 2001 From: Denis Davidyuk Date: Sun, 18 Jun 2023 17:49:00 +0600 Subject: [PATCH] feat(aepp,wallet): support signing typed data --- examples/browser/aepp/src/App.vue | 10 +- examples/browser/aepp/src/TypedData.vue | 170 +++++++++++++ examples/browser/wallet-iframe/src/App.vue | 14 +- .../wallet-web-extension/src/Popup.vue | 2 - .../wallet-web-extension/src/background.js | 26 +- src/AeSdkWallet.ts | 15 ++ src/account/Rpc.ts | 19 +- src/aepp-wallet-communication/rpc/types.ts | 10 + src/aepp-wallet-communication/schema.ts | 1 + test/integration/rpc.ts | 229 +++++++++++------- 10 files changed, 394 insertions(+), 102 deletions(-) create mode 100644 examples/browser/aepp/src/TypedData.vue diff --git a/examples/browser/aepp/src/App.vue b/examples/browser/aepp/src/App.vue index 4ae4c33121..32bfef5240 100644 --- a/examples/browser/aepp/src/App.vue +++ b/examples/browser/aepp/src/App.vue @@ -25,6 +25,13 @@ > Pay for transaction + + Typed data + ({ view: '' }), computed: mapState(['aeSdk']), diff --git a/examples/browser/aepp/src/TypedData.vue b/examples/browser/aepp/src/TypedData.vue new file mode 100644 index 0000000000..8307293bd6 --- /dev/null +++ b/examples/browser/aepp/src/TypedData.vue @@ -0,0 +1,170 @@ +