-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Orchestration-basics v1 release #10
Closed
Closed
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
1d1f248
ui changes for orchestration-basics v1
Jovonni 8348651
readme updates, and added troubleshooting guide
Jovonni 46d25a0
orchestration-basics /contract updates with working tests, and deploy…
Jovonni ae2c772
updated package.json
Jovonni 56ffa02
updated yarn.lock
Jovonni 6900063
updated ./Makefile
Jovonni e57f79c
added .yarnrc.yaml for pnp for node_modules fix
Jovonni 65c6f11
added Makefile helpers for multichain-testing (tmp)
Jovonni ea55e9c
added patch files from .yarn/
Jovonni 096aee7
fixing linting, cleaning
Jovonni 47e9ec8
last linting errors for package.json maintenance
Jovonni 28dabc2
updated yarn.lock
Jovonni d43ebe6
linting errors fixed, and tests still passing
Jovonni 6ace05f
contract successfully accepts a deposit from an offer, deposits it in…
Jovonni 753f4e7
checkpoint using reusable more unique key in zone
Jovonni 6694e67
added endo/errors for fail
Jovonni 31fe985
deleted orc.js
Jovonni 520485d
fixed failing tests
Jovonni 0d5c05e
linting fixes, now comparing deposit/transfer vs watch, interim passi…
Jovonni 72c6416
daisy selector
Jovonni 919cf28
create buttons are now a group for both handleCreateAccount and handl…
Jovonni File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
diff --git a/lib/bn.js b/lib/bn.js | ||
index 3a4371ea29688d216480d68af653c52b8b7beb10..5da31f6f1821c784c5b4aee288997cedc6a25ec3 100644 | ||
--- a/lib/bn.js | ||
+++ b/lib/bn.js | ||
@@ -2533,7 +2533,7 @@ | ||
for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1); | ||
if (i > 0) { | ||
x.iushrn(i); | ||
- while (i-- > 0) { | ||
+ while ([i--][0] > 0) { | ||
if (A.isOdd() || B.isOdd()) { | ||
A.iadd(yp); | ||
B.isub(xp); | ||
@@ -2547,7 +2547,7 @@ | ||
for (var j = 0, jm = 1; (y.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1); | ||
if (j > 0) { | ||
y.iushrn(j); | ||
- while (j-- > 0) { | ||
+ while ([j--][0] > 0) { | ||
if (C.isOdd() || D.isOdd()) { | ||
C.iadd(yp); | ||
D.isub(xp); | ||
@@ -2601,7 +2601,7 @@ | ||
for (var i = 0, im = 1; (a.words[0] & im) === 0 && i < 26; ++i, im <<= 1); | ||
if (i > 0) { | ||
a.iushrn(i); | ||
- while (i-- > 0) { | ||
+ while ([i--][0] > 0) { | ||
if (x1.isOdd()) { | ||
x1.iadd(delta); | ||
} | ||
@@ -2613,7 +2613,7 @@ | ||
for (var j = 0, jm = 1; (b.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1); | ||
if (j > 0) { | ||
b.iushrn(j); | ||
- while (j-- > 0) { | ||
+ while ([j--][0] > 0) { | ||
if (x2.isOdd()) { | ||
x2.iadd(delta); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/lib/bn.js b/lib/bn.js | ||
index adecc9496ca35802f8eef0c35a77b209cc2b22a0..d185f6c2f89f8d033725a7ab2ec9df145db15cdc 100644 | ||
--- a/lib/bn.js | ||
+++ b/lib/bn.js | ||
@@ -2632,7 +2632,7 @@ | ||
for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1); | ||
if (i > 0) { | ||
x.iushrn(i); | ||
- while (i-- > 0) { | ||
+ while ([i--][0] > 0) { | ||
if (A.isOdd() || B.isOdd()) { | ||
A.iadd(yp); | ||
B.isub(xp); | ||
@@ -2700,7 +2700,7 @@ | ||
for (var i = 0, im = 1; (a.words[0] & im) === 0 && i < 26; ++i, im <<= 1); | ||
if (i > 0) { | ||
a.iushrn(i); | ||
- while (i-- > 0) { | ||
+ while ([i--][0] > 0) { | ||
if (x1.isOdd()) { | ||
x1.iadd(delta); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodeLinker: node-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
e2e: build build | ||
yarn workspace dapp-agoric-orca-contract test; yarn workspace dapp-agoric-orca-contract build; yarn workspace dapp-agoric-orca-contract e2e | ||
build: | ||
yarn workspace dapp-agoric-orca-contract test; yarn workspace dapp-agoric-orca-contract build; | ||
redeploy: | ||
yarn workspace dapp-agoric-orca-contract deployc | ||
test-orca: | ||
yarn workspace dapp-agoric-orca-contract test | ||
fund: | ||
yarn workspace dapp-agoric-orca-contract fund | ||
add-address: | ||
yarn workspace dapp-agoric-orca-contract add:address | ||
lint: | ||
yarn workspace dapp-agoric-orca-contract lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,148 @@ | ||
# Simple Agoric ORChAstration Template | ||
# Agoric Orchestration Basics Dapp | ||
|
||
<img src="./images/orca.png" width="100%" /> | ||
<img src="./images/orca2.png" width="100%" /> | ||
|
||
## Overview | ||
|
||
Lorem | ||
The Orchestration Basics dApp showcases various features of the orchestration API running inside of an end-to-end environment, and a user interface: | ||
|
||
|
||
# Interface | ||
you can run `yarn dev` inside of the `ui` folder. | ||
|
||
<img src="./images/ui.png" width="100%" /> | ||
|
||
|
||
# Setting up the local environment | ||
See `agoric-sdk/multichain-testing/README.md` for more setup instructions | ||
|
||
you can run , run `agd status` to check if this was successful. If not try `make port-forward` again. | ||
|
||
Once this is running, you need to also run `make override-chain-registry`. This will update vstorage to work with the local startship environment. | ||
|
||
From `agoric-sdk/multichain-testing`, you can use this command to restart your environment for any reason. | ||
``` | ||
make teardown ; make stop; make stop-forward; make clean; make; make port-forward | ||
``` | ||
|
||
## Multichain-testing Makefile Helpers | ||
You can add these commands to the bottom of the `multichain-testing` `Makefile` for now: | ||
```Makefile | ||
|
||
teardown: stop-forward stop clean delete | ||
|
||
corepack-setup: | ||
corepack prepare yarn@4 --activate | ||
corepack-enable: | ||
corepack enable | ||
test: | ||
yarn test test/install-contracts.test.ts | ||
|
||
all: setup install | ||
sleep 3 | ||
make port-forward | ||
sleep 120 | ||
make fund-provision-pool | ||
sleep 10 | ||
make add-address | ||
echo "done running" | ||
|
||
hermes-update: | ||
kubectl exec -i hermes-agoric-osmosis-0 -c relayer -- hermes update client --host-chain agoriclocal --client 07-tendermint-1 | ||
sleep 60 | ||
make hermes-update | ||
``` | ||
|
||
|
||
|
||
# Add a new address to the keychain inside of the kubernetes pod (for building/deploying inside of the pod) | ||
From top level directory: | ||
``` | ||
make add-address | ||
``` | ||
paste address in the `Makefile` for `ADDR`. | ||
|
||
# Fund the account | ||
This will fund the pool, provision the smart wallet, and will also fund `CLIENTADDR` and `CLIENT_OSMO_ADDR`. `CLIENTADDR` is your address from your browser wallet that you will use to interact with the orchestration dapp. `CLIENT_OSMO_ADDR` is the same, but your osmosis account. | ||
|
||
This can be ran from the top-level directory | ||
``` | ||
make fund | ||
``` | ||
|
||
# Build & Deploy the dapp | ||
From the top level directory, run: | ||
``` | ||
make | ||
``` | ||
|
||
# Tests | ||
From top-level directory: | ||
``` | ||
make test-orca | ||
``` | ||
|
||
# tests from root directory | ||
``` | ||
yarn cache clean; yarn; yarn workspace dapp-agoric-orca-contract test ; rm -rf -v yarn.lock package-lock.json node_modules contract/node_modules; yarn; yarn workspace dapp-agoric-orca-contract test | ||
``` | ||
|
||
without clean: | ||
``` | ||
yarn workspace dapp-agoric-orca-contract deploy | ||
``` | ||
|
||
# deploy from root directory | ||
``` | ||
yarn cache clean; yarn; yarn workspace dapp-agoric-orca-contract test ; rm -rf -v yarn.lock package-lock.json node_modules contract/node_modules; yarn; yarn workspace dapp-agoric-orca contract:deploy | ||
``` | ||
|
||
without clean: | ||
``` | ||
yarn workspace dapp-agoric-orca-contract deploy | ||
``` | ||
|
||
# e2e build/deploy | ||
``` | ||
yarn workspace dapp-agoric-orca-contract deployc | ||
``` | ||
|
||
# e2e environment using `multichain-testing` | ||
using starship | ||
``` | ||
make teardown ; make stop; make stop-forward; make clean; make; make port-forward | ||
``` | ||
|
||
# e2e workspaces | ||
``` | ||
yarn workspace dapp-agoric-orca-contract build; yarn workspace dapp-agoric-orca-contract e2e | ||
``` | ||
|
||
# note | ||
Troubleshooting remote calls | ||
|
||
If an ordinary synchronous call (obj.method()) fails because the method doesn't exist, the obj may be remote, in which case E(obj).method() might work. | ||
|
||
# ensure to override the chain registry (from inside multichain-testing): | ||
|
||
``` | ||
yarn build (from agoric-sdk root) | ||
make override-chain-registry | ||
``` | ||
|
||
# funding on osmosis | ||
```console | ||
osmosisd tx bank send faucet osmo1dw3nep8yqy5szzxn6hmma6j2z77vp4wz8tkh0w3gyrruwny0w03s070kaa 299999999uosmo --chain-id osmosislocal --gas-adjustment 2 --gas auto --from faucet --gas-prices 0.0025uosmo | ||
``` | ||
|
||
example rpc for balances: | ||
``` | ||
http://127.0.0.1:26657/abci_query?path=%22/cosmos.bank.v1beta1.Query/AllBalances%22&data=%22%5Cn-agoric12j5kzvrwunqvrga5vm4zpy3mkeh3lvyld0amz5%22 | ||
``` | ||
|
||
# tmp fund ica | ||
```console | ||
agd tx bank send keplr1 agoric15ch7da0d8nvqc8hk6dguq4ext0lvskpjcwm3patf8sygm63chmpqjlzt74 1000uist -y --chain-id agoriclocal | ||
``` | ||
|
||
# |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is there a large
yarn.lock
diff in this commit?