Commit Graph

6 Commits

Author SHA1 Message Date
Evan Gray 37c20b547a sdk/js: publish separate proto packages 2022-07-13 10:04:23 -04:00
Csongor Kiss 7f427133cc
sdk: improve type safety + add documentation (#1102)
* sdk/js: improve type safety + add documentation

* sdk/js: add support for chain names

* sdk/js: fix boolean conditional bug in transferFromSolana

* sdk/js: remove unsafe ChainId coercions in sdk

* sdk/js: Chain id 0

This is a legit chain id that some governance VAAs target

* sdk/js: Add mainnet and testnet contract addresses

* sdk/js: bump version to 0.3.0

* sdk/js: limit minor version changes

* sdk/js: update contracts and add devnet

Co-authored-by: Csongor Kiss <ckiss@jumptrading.com>
Co-authored-by: Evan Gray <battledingo@gmail.com>
2022-05-05 12:35:11 -04:00
Stan Drozd 70596937e0 sdk/js: Add extraGrpcOpts to getSignedVAA()
Change-Id: Id756455ddc9a2d98d001bad6b8f7ff05392f22d4
2021-11-03 21:27:27 +00:00
Leo 63b77714ec proto: add strict linting and fix up existing protos
Passing the strict lint checks requires a number of backwards-
incompatible changes:

- Rename the NodePrivileged service to NodePrivilegedService.
  This is only used in CLI tooling, which are upgraded at the same
  time as the server binary.

- The Publicrpc service was renamed to PublicRPCService.

- The EmitterChain type is renamed to ChainID.

- The default value for the ChainID type is renamed to
  CHAIN_ID_UNSPECIFIED. This value wasn't referenced anywhere.

- The response and request types for GetLastHeartbeats were updated
  to match the rpc method name.

Change-Id: I3954130d3b25ab1f859390407bba3d3c02ffe03c
2021-08-25 14:26:33 +00:00
Evan Gray c7b61b7470 sdk/js: simplify getSignedVAA
Change-Id: Ieaecd9070d0b4284467e5097f912c1a44e1827be
2021-08-18 13:42:35 +00:00
Evan Gray 9f8083566b sdk/js: begin
Change-Id: Ia0c676c051deae20449a15b4556160a8d6e24386
2021-08-15 18:17:11 -04:00