Skip to content
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

Autonomy #8

Open
wants to merge 79 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
cf3c436
impl limit/stoploss order (#1)
m00n620 Sep 1, 2022
4f67611
Add env variable to enable the autonomy feature
gejeduck Sep 2, 2022
28d4c9e
Fix ui issues
gejeduck Sep 7, 2022
13aad3f
Consider the slippage&fee on limit/stop
gejeduck Sep 8, 2022
1547510
Merge branch 'master' of github.com:osmosis-labs/osmosis-frontend
gejeduck Oct 13, 2022
a3b5b10
update: testnet registry, subquery endpoint
gejeduck Oct 13, 2022
c47e38e
feat: update registry address
gejeduck Oct 26, 2022
f1287d5
Merge branch 'master' of github.com:osmosis-labs/osmosis-frontend
gejeduck Oct 26, 2022
d53e007
fix: update lcd endpoint for testnet
gejeduck Oct 26, 2022
cca43d7
fix: remove custom rpc config
gejeduck Oct 26, 2022
891c88c
feat: update testnet contracts
gejeduck Nov 7, 2022
539e845
fix: testnet rpc
gejeduck Nov 8, 2022
357d5a5
fix: testnet rpc
gejeduck Nov 8, 2022
204f9e4
feat: update wrapper address
gejeduck Nov 10, 2022
8d9ca07
fix: registry address
gejeduck Nov 10, 2022
1fbab72
feat: query fee amount from contract
gejeduck Nov 11, 2022
5b6f69c
fix: update the default fee amount
gejeduck Nov 11, 2022
d2cce0d
fix: feeAmount
gejeduck Nov 11, 2022
9591c19
fix: update subquery endpoint
gejeduck Nov 11, 2022
ee43950
fix: current price
gejeduck Nov 16, 2022
70159f6
fix: price change
gejeduck Nov 16, 2022
b448f81
Merge commit '98e393c8584baa5638a3495858ab2b2ba3be794f'
gejeduck Nov 17, 2022
95e3457
fix: margin
gejeduck Nov 17, 2022
2610453
check for pool being undefine
omnitired Dec 2, 2022
f28fa27
Revert "check for pool being undefine"
dacf Dec 2, 2022
c529821
check for undefined pools
omnitired Dec 3, 2022
208cf68
Merge commit 'c17cbd5ecb5b0e8b65f69d1568b589853778e314'
gejeduck Dec 5, 2022
324b282
fix: pool_assets
gejeduck Dec 5, 2022
4503163
Merge branch 'master' into feat/poolfix
dacf Dec 8, 2022
2a63d40
Merge pull request #4 from Autonomy-Network/feat/poolfix
dacf Dec 8, 2022
f791c12
change registery for testnet
omnitired Jan 5, 2023
74309ab
change subquery, remove extra routes
omnitired Feb 14, 2023
f612616
remove unsused vars
omnitired Feb 14, 2023
eea1031
add backup subql, discord link
omnitired Feb 14, 2023
887f817
update discord link
omnitired Feb 14, 2023
aa0d6b9
fix: quickfix until subquery fully syncs
dacf Feb 17, 2023
26fbc3c
chore: update autonomy testnet addresses
dacf Feb 20, 2023
e5d7efa
chore: trigger deploy
dacf Feb 20, 2023
45ce414
chore: update subquery endpoints
dacf Feb 21, 2023
f1c831a
Merge pull request #7 from Autonomy-Network/address_change
dacf Feb 21, 2023
23243f7
render order history on swap tab
omnitired Feb 24, 2023
623fab3
chore: update address
dacf Mar 7, 2023
1deaf8d
chore: add new subquery endpoint
dacf Mar 8, 2023
7d11a47
chore: new wrapper
dacf Mar 15, 2023
20592c8
fix: update to osmosis-std limits
dacf Mar 20, 2023
2858c3a
fix: add subquery and history
dacf Mar 20, 2023
5bba476
fix crashing bug with decimal
omnitired Mar 21, 2023
3f1ac53
fix: stop loss
dacf Mar 22, 2023
b691066
fix: order history for stops
dacf Mar 22, 2023
75d0e91
fix: stop loss history amount out
dacf Mar 24, 2023
b3df098
chore: update latest contracts and subquery
dacf Mar 28, 2023
de8ff0d
feat: add mainnet
dacf Apr 4, 2023
e2bdc69
fix: fee amount + subquery
dacf May 2, 2023
46a3071
change to mainnet
dacf May 3, 2023
a60a526
change fee
dacf May 18, 2023
ccf6952
ui changes
omnitired May 19, 2023
b0fdd92
fix build error
omnitired May 19, 2023
c6792eb
ui fixes
omnitired May 23, 2023
ab7717c
comment
omnitired May 23, 2023
c2b0990
fix: wallet connection issues + history
dacf May 23, 2023
f08ba98
fix: deploy
dacf May 23, 2023
949b26b
merge
omnitired May 23, 2023
160726e
bring back place order
omnitired May 23, 2023
4a7a25f
style fix
omnitired May 23, 2023
15aaf87
buiild errors
omnitired May 23, 2023
00a7379
style fix
omnitired May 23, 2023
5726f28
drop down fix
omnitired May 23, 2023
85a595e
order scroll
omnitired May 23, 2023
6611e0d
fix: remove logo and center
dacf May 23, 2023
fb6f834
deploy fix
dacf May 23, 2023
cfaa529
fix price estimation
omnitired May 25, 2023
6a1106c
uncomment
omnitired May 25, 2023
93566ca
change drop down
omnitired May 25, 2023
875ab1a
nit: bold when selected
May 25, 2023
b904f57
change fee
dacf May 25, 2023
d804b98
fix: clipboards internal padding
dacf May 25, 2023
5e15a12
fix: update endpoints
dacf May 26, 2023
f2e73eb
fix: routing
dacf May 26, 2023
d7c8559
fix: multiroute limits/stops
dacf Jun 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36,871 changes: 36,871 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

24 changes: 16 additions & 8 deletions packages/stores/src/queries/pools/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ export class ObservableQueryPools extends ObservableChainQuery<Pools> {
const denomsInPools: string[] = [];
// Register the denoms in the response.
for (const pool of response.data.pools) {
for (const asset of pool.pool_assets) {
denomsInPools.push(asset.token.denom);
}
if (pool.pool_assets)
for (const asset of pool.pool_assets) {
denomsInPools.push(asset.token.denom);
}
}

chainInfo.addUnknownCurrencies(...denomsInPools);
Expand All @@ -64,15 +65,20 @@ export class ObservableQueryPools extends ObservableChainQuery<Pools> {
}

const raw = this.response.data.pools.find((raw) => raw.id === id);
if (!raw) {
if (!raw || !raw.pool_assets) {
return undefined;
}

return new ObservableQueryPool(
this.kvStore,
this.chainId,
this.chainGetter,
raw
raw.pool_assets
? (raw as any)
: {
...raw,
pool_assets: [],
}
);
});

Expand Down Expand Up @@ -115,8 +121,10 @@ export class ObservableQueryPools extends ObservableChainQuery<Pools> {
return [];
}

return this.response.data.pools.map((raw) => {
return this.getPool(raw.id)!;
});
return this.response.data.pools
.map((raw) => {
return this.getPool(raw.id)!;
})
.filter((f) => f != undefined);
});
}
3 changes: 3 additions & 0 deletions packages/stores/src/ui-config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ export * from "./errors";
export * from "./fake-fee-config";
export * from "./slippage-config";
export * from "./trade-token-in-config";
export * from "./order-token-in-config";

export const CREATE_POOL_MAX_ASSETS = 8;
export * from "./user-config";
Loading