Commit Graph

9 Commits

Author SHA1 Message Date
Dusan Sekulic
1f42843a69 Add first version of client SDK (#193)
* Add gRPC, REST, and gRPC-Web clients for server access

This commit introduces clients for gRPC, REST, and gRPC-Web to access the server.

- gRPC client: Includes additional argument opts ...grpc.CallOption in the interface for future extensibility.
- REST client: Factory function accepts http.Client as an argument to allow user customization.
- gRPC-Web client: Added a Log method for fast debugging in JavaScript.

The decision to use different interfaces for each client type is to accommodate specific features and extensibility requirements for each protocol.

* remove grpc web

* generate rest

* use grpc sdk in CLI

* temp wasm

* ark sdk

* renaming

* pr review refactor

* pr review refactor

* walletStore & configStore

* ark sdk wasm wrapper

* handle event stream with rest

* wip on supporting rest

* store init

* simulate event stream with rest

* fix rest sdk wip

* Fix returning forfeit txs in round event

* wasm first working e2e example

* pr review refactor

* pr review refactor

* pr review refactor

* Fixes

---------

Co-authored-by: altafan <18440657+altafan@users.noreply.github.com>
2024-07-18 16:27:14 +02:00
Pietralberto Mazza
0210d39866 Monorepo scaffolding (#16)
* Change scaffolding

* Fix gh action
2023-11-27 14:23:22 +01:00
Pietralberto Mazza
b0bd610944 Ocean connection support (#9)
* Update protos & Add ocean protos

* Add adapters & config entry for ocean wallet addr

* Update deps
2023-11-20 13:39:15 +01:00
Pietralberto Mazza
19cbaeba40 Ark encoding (#6)
* Fix naming

* Fix Ark key encoding & Add new encoding for address, relay and url

* Fix submodule name

* Fix test target

* Update go deps

* Fix prefixes && Use bech32m && Encode asp and user keys in address

* Fix tests

* Parametrize ark prefix && Add network params

* Named return values
2023-11-15 17:11:16 +01:00
Pietralberto Mazza
13ff7c2d55 Rename package ark-sdk to common (#5) 2023-11-14 13:26:25 +01:00
Louis Singer
e221f834ec Add BIP68 encoding/decoding (#2)
* add BIP68 func

* bip68_test.go: use require assertions

* add DecodeBIP68 func
2023-11-06 16:07:02 +01:00
altafan
d761068c2b Add encoding utils 2023-11-02 15:07:26 +01:00
altafan
0055fbb7d0 Add sdk package 2023-10-30 14:45:54 +01:00
altafan
bd6199a787 Scaffolding 2023-10-30 14:43:51 +01:00