Skip to content

Commit

Permalink
Fix joining the public lobby
Browse files Browse the repository at this point in the history
  • Loading branch information
dankelleher committed May 30, 2021
1 parent 0094964 commit 6fd49bd
Show file tree
Hide file tree
Showing 13 changed files with 177 additions and 209 deletions.
253 changes: 121 additions & 132 deletions cli/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -300,141 +300,143 @@
superstruct "^0.14.2"
tweetnacl "^1.0.0"

"@stablelib/aead@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@stablelib/aead/-/aead-1.0.0.tgz#c1ae36d9aa5f4840964a7bfeb9a9639e50a12e9e"
integrity sha512-2iO0P15w1onK8g/m6ygNqlMFBfC7BM8o1Zr7jRqMAF9+zhhyY3h4NZwnXKxUm11TBm62Yeesw+FKqs/gJ6shMA==

"@stablelib/binary@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@stablelib/binary/-/binary-1.0.0.tgz#fa216f8b2d2f7153878e2bc45e91dddee72c4749"
integrity sha512-W01QhOw1tWL51Du1c5JZphJs7toRbfra1C2DBlhT0mRHZWGWB1hpFbqiZUFY7QNIMUpmmHLrlZs3YsSCB/giUg==
"@solana/web3.js@^1.12.0":
version "1.15.0"
resolved "https://registry.yarnpkg.com/@solana/web3.js/-/web3.js-1.15.0.tgz#e90f928f4e270fddbe89e83210d54f757128a306"
integrity sha512-q9GWL6ayHbEljzp2l5bdz46618h28KJ07H0m1pL2p/LRF+Jh9x5X/FME87La4/6lVrsSyymSaKnn+loiTTqB7w==
dependencies:
"@stablelib/int" "^1.0.0"
"@babel/runtime" "^7.12.5"
bn.js "^5.0.0"
borsh "^0.4.0"
bs58 "^4.0.1"
buffer "6.0.1"
buffer-layout "^1.2.0"
crypto-hash "^1.2.2"
jayson "^3.4.4"
js-sha3 "^0.8.0"
node-fetch "^2.6.1"
rpc-websockets "^7.4.2"
secp256k1 "^4.0.2"
superstruct "^0.14.2"
tweetnacl "^1.0.0"

"@stablelib/bytes@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@stablelib/bytes/-/bytes-1.0.0.tgz#8a05d9fddc194130f269f7cdb5ea8c1f31083d5e"
integrity sha512-c9CfJwoZpxub6yicmhkeEpvLLsvsAP76tBAHEXKuEjPzza946U7bgebJJoMl8Q+ZlU2vy9ZoWCXE1uLpi817Pg==
"@stablelib/aead@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@stablelib/aead/-/aead-1.0.1.tgz#c4b1106df9c23d1b867eb9b276d8f42d5fc4c0c3"
integrity sha512-q39ik6sxGHewqtO0nP4BuSe3db5G1fEJE8ukvngS2gLkBXyy6E7pLubhbYgnkDFv6V8cWaxcE4Xn0t6LWcJkyg==

"@stablelib/chacha20poly1305@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@stablelib/chacha20poly1305/-/chacha20poly1305-1.0.0.tgz#93daff32d368d1d821a8497de2f68252ef550427"
integrity sha512-sRv7T5nDRpwqerY9VZ3ABfzHukF/aa2njKvCHPvMpM3+WOYqU4JIP47MdvmrEj+NFHFP3hBx6XV5xpnV8IqMig==
"@stablelib/binary@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@stablelib/binary/-/binary-1.0.1.tgz#c5900b94368baf00f811da5bdb1610963dfddf7f"
integrity sha512-ClJWvmL6UBM/wjkvv/7m5VP3GMr9t0osr4yVgLZsLCOz4hGN9gIAFEqnJ0TsSMAN+n840nf2cHZnA5/KFqHC7Q==
dependencies:
"@stablelib/aead" "^1.0.0"
"@stablelib/binary" "^1.0.0"
"@stablelib/chacha" "^1.0.0"
"@stablelib/constant-time" "^1.0.0"
"@stablelib/poly1305" "^1.0.0"
"@stablelib/wipe" "^1.0.0"
"@stablelib/int" "^1.0.1"

"@stablelib/chacha@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@stablelib/chacha/-/chacha-1.0.0.tgz#20167e25416b4d1518c95831cdc30eda44528931"
integrity sha512-tlp3ECXiU7APq6n1YQ2K4B7MUppAOUWsvN1JMs2OWnYVR2Km+AsSmgMjjtefG8vPZ+J8tfY3sufzh5zCg5xiSw==
dependencies:
"@stablelib/binary" "^1.0.0"
"@stablelib/wipe" "^1.0.0"
"@stablelib/bytes@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@stablelib/bytes/-/bytes-1.0.1.tgz#0f4aa7b03df3080b878c7dea927d01f42d6a20d8"
integrity sha512-Kre4Y4kdwuqL8BR2E9hV/R5sOrUj6NanZaZis0V6lX5yzqC3hBuVSDXUIBqQv/sCpmuWRiHLwqiT1pqqjuBXoQ==

"@stablelib/constant-time@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@stablelib/constant-time/-/constant-time-1.0.0.tgz#779c17bb3bbe2d3b4cd6eaa167a906bce85524d8"
integrity sha512-0lH6SB0wP562fa0yvNZMF2NbFr8QHeefhO1KOu2unW8qH1npdep7I1vGbPqEM+BHg6LqllPceVE8Ca0RwIDLDA==
"@stablelib/chacha20poly1305@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@stablelib/chacha20poly1305/-/chacha20poly1305-1.0.1.tgz#de6b18e283a9cb9b7530d8767f99cde1fec4c2ee"
integrity sha512-MmViqnqHd1ymwjOQfghRKw2R/jMIGT3wySN7cthjXCBdO+qErNPUBnRzqNpnvIwg7JBCg3LdeCZZO4de/yEhVA==
dependencies:
"@stablelib/aead" "^1.0.1"
"@stablelib/binary" "^1.0.1"
"@stablelib/chacha" "^1.0.1"
"@stablelib/constant-time" "^1.0.1"
"@stablelib/poly1305" "^1.0.1"
"@stablelib/wipe" "^1.0.1"

"@stablelib/ed25519@^1.0.1":
"@stablelib/chacha@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@stablelib/ed25519/-/ed25519-1.0.1.tgz#359ca5f59428e9fde9efef9a8f4040ff0a256d67"
integrity sha512-kvC98vkJeertRj37yqTcjOwUVYWQ0jcywxxWpeuTal5ZNgH7EcbljtQYECA2Pi2N0zNG0a0AjSD2Q2DFcUxRjQ==
resolved "https://registry.yarnpkg.com/@stablelib/chacha/-/chacha-1.0.1.tgz#deccfac95083e30600c3f92803a3a1a4fa761371"
integrity sha512-Pmlrswzr0pBzDofdFuVe1q7KdsHKhhU24e8gkEwnTGOmlC7PADzLVxGdn2PoNVBBabdg0l/IfLKg6sHAbTQugg==
dependencies:
"@stablelib/random" "^1.0.0"
"@stablelib/sha512" "^1.0.0"
"@stablelib/wipe" "^1.0.0"
"@stablelib/binary" "^1.0.1"
"@stablelib/wipe" "^1.0.1"

"@stablelib/hash@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@stablelib/hash/-/hash-1.0.0.tgz#28626ddc64cb84db9370f279c5a78cdc96f493ee"
integrity sha512-wBvSIIx4Y8799BRD4TBhezS1P9+irGAKdsNgbZMeU5ndMbw7BtZALdCm0FcJIRFxJ2giPLPS9YCgrwWAhzSRLQ==
"@stablelib/constant-time@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@stablelib/constant-time/-/constant-time-1.0.1.tgz#bde361465e1cf7b9753061b77e376b0ca4c77e35"
integrity sha512-tNOs3uD0vSJcK6z1fvef4Y+buN7DXhzHDPqRLSXUel1UfqMB1PWNsnnAezrKfEwTLpN0cGH2p9NNjs6IqeD0eg==

"@stablelib/int@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@stablelib/int/-/int-1.0.0.tgz#2432569169cc5640fe5e65b7f79f722ed9cacc59"
integrity sha512-MRigEQCO7xM93nZqW4CbIBjhANGw3jJxGVSUZH3PQ6HWL1IGrFWVDBzIclWxl4l5aRRpqoM+76ellQNdUJPnsA==
"@stablelib/hash@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@stablelib/hash/-/hash-1.0.1.tgz#3c944403ff2239fad8ebb9015e33e98444058bc5"
integrity sha512-eTPJc/stDkdtOcrNMZ6mcMK1e6yBbqRBaNW55XA1jU8w/7QdnCF0CmMmOD1m7VSkBR44PWrMHU2l6r8YEQHMgg==

"@stablelib/keyagreement@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@stablelib/keyagreement/-/keyagreement-1.0.0.tgz#3dcef0e59615557784b928380a97eb70a7cc3686"
integrity sha512-M4f0QhuYGrMCLPoJIKWpC5riJfDivOFZHOAlj1Av44UJSyMzM46gJW0e9khKoTcbU8r8oXebkwlJT70Xm0+kqg==
dependencies:
"@stablelib/bytes" "^1.0.0"
"@stablelib/int@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@stablelib/int/-/int-1.0.1.tgz#75928cc25d59d73d75ae361f02128588c15fd008"
integrity sha512-byr69X/sDtDiIjIV6m4roLVWnNNlRGzsvxw+agj8CIEazqWGOQp2dTYgQhtyVXV9wpO6WyXRQUzLV/JRNumT2w==

"@stablelib/poly1305@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@stablelib/poly1305/-/poly1305-1.0.0.tgz#8a63e3eef9c58293d491739e32f85a04efc1386b"
integrity sha512-8EOq8g3Naae+gGI/c/Tt1+xhbgDvkFwYx7QfTlps7SwA/IC6dhEZ+BzvU6O9FuVQ/l72yV7i3PSJ3LMOvTxS8g==
"@stablelib/keyagreement@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@stablelib/keyagreement/-/keyagreement-1.0.1.tgz#4612efb0a30989deb437cd352cee637ca41fc50f"
integrity sha512-VKL6xBwgJnI6l1jKrBAfn265cspaWBPAPEc62VBQrWHLqVgNRE09gQ/AnOEyKUWrrqfD+xSQ3u42gJjLDdMDQg==
dependencies:
"@stablelib/constant-time" "^1.0.0"
"@stablelib/wipe" "^1.0.0"
"@stablelib/bytes" "^1.0.1"

"@stablelib/random@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@stablelib/random/-/random-1.0.0.tgz#f441495075cdeaa45de16d7ddcc269c0b8edb16b"
integrity sha512-G9vwwKrNCGMI/uHL6XeWe2Nk4BuxkYyWZagGaDU9wrsuV+9hUwNI1lok2WVo8uJDa2zx7ahNwN7Ij983hOUFEw==
"@stablelib/poly1305@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@stablelib/poly1305/-/poly1305-1.0.1.tgz#93bfb836c9384685d33d70080718deae4ddef1dc"
integrity sha512-1HlG3oTSuQDOhSnLwJRKeTRSAdFNVB/1djy2ZbS35rBSJ/PFqx9cf9qatinWghC2UbfOYD8AcrtbUQl8WoxabA==
dependencies:
"@stablelib/binary" "^1.0.0"
"@stablelib/wipe" "^1.0.0"
"@stablelib/constant-time" "^1.0.1"
"@stablelib/wipe" "^1.0.1"

"@stablelib/sha256@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@stablelib/sha256/-/sha256-1.0.0.tgz#05fc33814308caedab30068bd26bd31424c502e7"
integrity sha512-+IEzCXO6HSyYWV+5TqdFjcUYgkebdiadzRtMXJg6ia68WQm2xHpABl5t0vVdtvgTlw7matBRhImunAHUFIAEUg==
"@stablelib/random@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@stablelib/random/-/random-1.0.1.tgz#4357a00cb1249d484a9a71e6054bc7b8324a7009"
integrity sha512-zOh+JHX3XG9MSfIB0LZl/YwPP9w3o6WBiJkZvjPoKKu5LKFW4OLV71vMxWp9qG5T43NaWyn0QQTWgqCdO+yOBQ==
dependencies:
"@stablelib/binary" "^1.0.0"
"@stablelib/hash" "^1.0.0"
"@stablelib/wipe" "^1.0.0"
"@stablelib/binary" "^1.0.1"
"@stablelib/wipe" "^1.0.1"

"@stablelib/sha512@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@stablelib/sha512/-/sha512-1.0.0.tgz#91057cfcc15bdda96081ecfb6536b159510a05f6"
integrity sha512-qvUu5SraAdGa8HAkAasfMyD9C+MwlRnFVRJ6cRxAEIekmDsU3tfGLnUm3wb9ao4t0FkihGrj8GKlV82TTR4Phw==
"@stablelib/sha256@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@stablelib/sha256/-/sha256-1.0.1.tgz#77b6675b67f9b0ea081d2e31bda4866297a3ae4f"
integrity sha512-GIIH3e6KH+91FqGV42Kcj71Uefd/QEe7Dy42sBTeqppXV95ggCcxLTk39bEr+lZfJmp+ghsR07J++ORkRELsBQ==
dependencies:
"@stablelib/binary" "^1.0.0"
"@stablelib/hash" "^1.0.0"
"@stablelib/wipe" "^1.0.0"
"@stablelib/binary" "^1.0.1"
"@stablelib/hash" "^1.0.1"
"@stablelib/wipe" "^1.0.1"

"@stablelib/wipe@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@stablelib/wipe/-/wipe-1.0.0.tgz#8ed028a10bb7527357b2655c360383b5f07c16ac"
integrity sha512-0Fd4MQCbEh8OFSO+gG7wBXok7yRC3w+xe/wWM8KNye7EGoHr4BTFZNWV/1xAn2r8/gyFKxPXT8uxXRzDzGq6rg==
"@stablelib/wipe@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@stablelib/wipe/-/wipe-1.0.1.tgz#d21401f1d59ade56a62e139462a97f104ed19a36"
integrity sha512-WfqfX/eXGiAd3RJe4VU2snh/ZPwtSjLG4ynQ/vYzvghTh7dHFcI1wl+nrkWG6lGhukOxOsUHfv8dUXr58D0ayg==

"@stablelib/x25519@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@stablelib/x25519/-/x25519-1.0.0.tgz#037699c752896d1e1ff036b0422247dfdcc1b29a"
integrity sha512-sjlOzC8eZJhHTuMZnSTxtawYXbFXZtHm6TbhacvoYmJOG9/3cFX5z1Aw0WZfQvPNSk+8aPrpwuyRMmUO1PW8yw==
"@stablelib/x25519@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@stablelib/x25519/-/x25519-1.0.1.tgz#bcd6132ac4dd94f28f1479e228c85b3468d6ed27"
integrity sha512-nmyUI2ZArxYDh1PhdoSCPEtlTYE0DYugp2qqx8OtjrX3Hmh7boIlDsD0X71ihAxzxqJf3TyQqN/p58ToWhnp+Q==
dependencies:
"@stablelib/keyagreement" "^1.0.0"
"@stablelib/random" "^1.0.0"
"@stablelib/wipe" "^1.0.0"
"@stablelib/keyagreement" "^1.0.1"
"@stablelib/random" "^1.0.1"
"@stablelib/wipe" "^1.0.1"

"@stablelib/xchacha20@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@stablelib/xchacha20/-/xchacha20-1.0.0.tgz#0b9911d21a640e9a7d5db3ef521187e7591957cf"
integrity sha512-8q98HxPCgVUGMnjMl79KhEtWsh0UQbTt5x1570QnynF3uzzsGgP7exXwkyqi7s85SdvdO8EKEezDMjuzqv69Yw==
"@stablelib/xchacha20@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@stablelib/xchacha20/-/xchacha20-1.0.1.tgz#e98808d1f7d8b20e3ff37c71a3062a2a955d9a8c"
integrity sha512-1YkiZnFF4veUwBVhDnDYwo6EHeKzQK4FnLiO7ezCl/zu64uG0bCCAUROJaBkaLH+5BEsO3W7BTXTguMbSLlWSw==
dependencies:
"@stablelib/binary" "^1.0.0"
"@stablelib/chacha" "^1.0.0"
"@stablelib/wipe" "^1.0.0"
"@stablelib/binary" "^1.0.1"
"@stablelib/chacha" "^1.0.1"
"@stablelib/wipe" "^1.0.1"

"@stablelib/xchacha20poly1305@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@stablelib/xchacha20poly1305/-/xchacha20poly1305-1.0.0.tgz#f31c4b96ac6e5de2707ba357e23dd59f4cbfcd18"
integrity sha512-rVcKmgEeMK8kInx2bvvBXLL/wMKrqeA6luWiZYRQj1QMnZnq3ReZd1szZdz2QWFQOlp7rXsZp+EaM4FqNlfZSw==
"@stablelib/xchacha20poly1305@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@stablelib/xchacha20poly1305/-/xchacha20poly1305-1.0.1.tgz#addcaf30b92dd956f76b3357888e2f91b92e7a61"
integrity sha512-B1Abj0sMJ8h3HNmGnJ7vHBrAvxuNka6cJJoZ1ILN7iuacXp7sUYcgOVEOTLWj+rtQMpspY9tXSCRLPmN1mQNWg==
dependencies:
"@stablelib/aead" "^1.0.0"
"@stablelib/chacha20poly1305" "^1.0.0"
"@stablelib/constant-time" "^1.0.0"
"@stablelib/wipe" "^1.0.0"
"@stablelib/xchacha20" "^1.0.0"
"@stablelib/aead" "^1.0.1"
"@stablelib/chacha20poly1305" "^1.0.1"
"@stablelib/constant-time" "^1.0.1"
"@stablelib/wipe" "^1.0.1"
"@stablelib/xchacha20" "^1.0.1"

"@types/bn.js@^4.11.5":
version "4.11.6"
Expand Down Expand Up @@ -1158,21 +1160,6 @@ detect-indent@^6.0.0:
resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-6.0.0.tgz#0abd0f549f69fc6659a254fe96786186b6f528fd"
integrity sha512-oSyFlqaTHCItVRGK5RmrmjB+CmaMOW7IaNA/kdxqhoa6d17j/5ce9O9eWXmV/KEdRwqpQA+Vqe8a8Bsybu4YnA==

"did-jwt@npm:did-jwt-multikey@^5.2.0":
version "5.2.0"
resolved "https://registry.yarnpkg.com/did-jwt-multikey/-/did-jwt-multikey-5.2.0.tgz#33a9b9364638defee01d41e35a774c184041baf4"
integrity sha512-caHDNL3yMlSt18rPazyG4CauoX92bLrTzyVOqMc7LBR1wnwFld7ZY1dzedMoOvcMV11cFc82ovlncBg0a3X7gA==
dependencies:
"@stablelib/ed25519" "^1.0.1"
"@stablelib/random" "^1.0.0"
"@stablelib/sha256" "^1.0.0"
"@stablelib/x25519" "^1.0.0"
"@stablelib/xchacha20poly1305" "^1.0.0"
did-resolver "^3.1.0"
elliptic "^6.5.4"
js-sha3 "^0.8.0"
uint8arrays "^2.1.3"

did-resolver@^3.0.1, did-resolver@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/did-resolver/-/did-resolver-3.1.0.tgz#84f0e3d16abe9711dc04c34a5a0e2f63868c9611"
Expand Down Expand Up @@ -1209,7 +1196,7 @@ ed2curve-esm@^0.3.0-alpha-1:
dependencies:
tweetnacl "^1.0.1"

elliptic@^6.5.2, elliptic@^6.5.4:
elliptic@^6.5.2:
version "6.5.4"
resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb"
integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==
Expand Down Expand Up @@ -3044,24 +3031,26 @@ slice-ansi@^2.1.0:
astral-regex "^1.0.0"
is-fullwidth-code-point "^2.0.0"

solarium-js@^0.1.8:
version "0.1.8"
resolved "https://registry.yarnpkg.com/solarium-js/-/solarium-js-0.1.8.tgz#0554ea898f66b808098b729a99cd7fa2810204f3"
integrity sha512-HTJwXPrHVFH5nj+esYGcnicvOLSrjLujuQop//ghswgVfJ7Xx7d/Bq4mb0vlgLnvDQ8AAF3awLY+bdQcYGwQkg==
solarium-js@^0.1.13:
version "0.1.13"
resolved "https://registry.yarnpkg.com/solarium-js/-/solarium-js-0.1.13.tgz#6c1abac8c47908a27661601096f01de988ed3224"
integrity sha512-ygjwApdDmuBegOFTZ4UOAvo1TX0D4qWwS/2KryXPM0Tjs4u5ZAjLMyfkc6Fba0l6mon9jP6ebLRceAramcmaBg==
dependencies:
"@identity.com/sol-did-client" "^0.1.9"
"@solana/web3.js" "^1.11.0"
"@solana/web3.js" "^1.12.0"
"@stablelib/sha256" "^1.0.1"
"@stablelib/x25519" "^1.0.1"
"@stablelib/xchacha20poly1305" "^1.0.1"
borsh "^0.3.1"
browserify-zlib "^0.2.0"
bs58 "^4.0.1"
cbor "^7.0.5"
debug "^4.3.1"
did-jwt "npm:did-jwt-multikey@^5.2.0"
did-resolver "^3.1.0"
ed2curve-esm "^0.3.0-alpha-1"
ramda "^0.27.1"
rxjs "^7.0.0"
tweetnacl "^1.0.3"
uint8arrays "^2.1.5"

sort-keys@^4.0.0:
version "4.2.0"
Expand Down Expand Up @@ -3421,7 +3410,7 @@ typescript@^4.2.4:
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.4.tgz#8610b59747de028fda898a8aef0e103f156d0961"
integrity sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==

uint8arrays@^2.1.3:
uint8arrays@^2.1.5:
version "2.1.5"
resolved "https://registry.yarnpkg.com/uint8arrays/-/uint8arrays-2.1.5.tgz#9e6e6377a9463d5eba4620a3f0450f7eb389a351"
integrity sha512-CSR7AO+4AHUeSOnZ/NBNCElDeWfRh9bXtOck27083kc7SznmmHIhNEkEOCQOn0wvrIMjS3IH0TNLR16vuc46mA==
Expand Down
2 changes: 1 addition & 1 deletion client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ export { create as createWallet, SignCallback } from './lib/wallet';
export { ExtendedCluster } from './lib/util';
export { keyToIdentifier } from '@identity.com/sol-did-client';

export { airdrop } from './lib/solana/solanaUtil';
export { airdrop, getConnection } from './lib/solana/solanaUtil';
8 changes: 7 additions & 1 deletion client/src/lib/did/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import { PublicKey } from '@solana/web3.js';
import { DIDDocument } from 'did-resolver';
import { currentCluster, ExtendedCluster } from '../util';

import { memoizeWith, identity } from 'ramda';

const memoizedResolve = memoizeWith(identity, resolve);

export const get = async (
authority: PublicKey,
cluster?: ExtendedCluster
Expand All @@ -12,4 +16,6 @@ export const get = async (
currentCluster(cluster)
);
return resolve(didForAuthority);
};
};

export const getDocument = async (did:string): Promise<DIDDocument> => memoizedResolve(did);
6 changes: 5 additions & 1 deletion client/src/lib/solana/solanaUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,8 @@ export class SolanaUtil {

export const airdrop =
(connection: Connection, publicKey: PublicKey, lamports: number = 1000000): Promise<void> =>
SolanaUtil.airdrop(connection,publicKey,lamports)
SolanaUtil.airdrop(connection,publicKey,lamports)

export const getConnection =
(cluster?: ExtendedCluster): Connection =>
SolanaUtil.getConnection(cluster)
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"react-gravatar": "^2.6.3",
"react-scripts": "4.0.3",
"rxjs": "^7.0.1",
"solarium-js": "^0.1.13",
"solarium-js": "^0.1.14",
"tailwindcss": "2.x",
"typescript": "4.x",
"uint8arrays": "^2.1.5"
Expand Down
Loading

0 comments on commit 6fd49bd

Please sign in to comment.