Skip to content

Commit

Permalink
release: staging to master (#310)
Browse files Browse the repository at this point in the history
* feat: indexer (#232)

* feat: indexer

* refactor: app data

* feat: contract hooks (#233)

* refactor: contract hooks

* refactor: contract write error log

* refactor: updated gas limit

* fix: swap info

* fix: info

* fix: transaction ui

* fix: console log

* [feat] 220 add nova wallet support to the mobile version of portal (#234)

* detect if mobile and add novawallet button

* change icon

* Add Nova Wallet integration in Talisman modal

* Slightly improved account box

* Add disclaimer explaining why we don't need to implement these methods.

* fix: release (#236)

* fix: release (#238)

* chore(release): 1.1.0 [skip ci]

# [1.1.0](v1.0.0...v1.1.0) (2023-08-24)

### Bug Fixes

* lint issues ([#191](#191)) ([fd128e4](fd128e4))
* release ([#236](#236)) ([ce34996](ce34996))
* release ([#238](#238)) ([0fd823b](0fd823b))
* table heading overlap ([#202](#202)) ([061373f](061373f))
* updated foucoco logo ([#198](#198)) ([21dad82](21dad82))
* wallet connection issues [#204](#204) ([#209](#209)) ([fb7a37c](fb7a37c))

### Features

* balance query ([#205](#205)) ([b3aa210](b3aa210))
* contract hooks ([#233](#233)) ([f338f37](f338f37))
* indexer ([#232](#232)) ([2c58c70](2c58c70))
* redirect on logo click  [#178](#178) ([#199](#199)) ([9d42e97](9d42e97))
* token approval ([#211](#211)) ([a4ae2bd](a4ae2bd))
* updated backstop pool ui ([#206](#206)) ([1e23f10](1e23f10))
* wallet connect ([#195](#195)) ([5487296](5487296))

### Reverts

* disable nabla ([#201](#201)) ([2e2fe81](2e2fe81))

* fix loading in claiming steps (#245)

* 145 Show connected accounts token wise breakdown on the dashboard (#240)

* Add portfolio table with mock data (WIP)

* color change according to new palette

* show balance and price for spacewalk assets

* improve types in fetcher

* comment out mexc api call to stop errors

* add USDT to XCM

* helper function to add the suffix for wrapped tokens

* remove mock data and fetch actual prices and balances

* yarn lint fix

* Add icons

* add total balance

* Fix 'DOT' shown instead of 'KSM' on Amplitude

* Fix typos

* Update src/hooks/usePriceFetcher.ts

Co-authored-by: Marcel Ebert <[email protected]>

* fix amounts formatting

* reduce font and icon size

* use dia for PEN token

---------

Co-authored-by: Marcel Ebert <[email protected]>

* fix remove indicator (#252)

* Update design for Spacewalk Issue and Redeeem  (#253)

* extract base Form component

* separate issue and redeem in folders and use new From input

* extract feebox and dialog from issue

* issue box restyling with collapsible boxes

* fix collapsible styles

* tweak asset selector to match designs

* move coin icons to shared

* mock disclaimer text

* remove typo

* add stellar logo for tab

* fix pen/ampe logos and colors

* fixes

* settings dialog (wip)

* add 'back to stellar' design

* yarn lint fix

* Add settings Dialog

* improve from component

* improve settings

* Update src/components/Layout/links.tsx

* rename hook

* remove unused spacewalk app

* fix tricky dropdown issue not closing on blur

* improve settings dialog

* improve collapsible behavior

* make tabs slightly bigger

* invert buttons order

* remove minimum

* extract useBalances hook

* extract get asset display name

* fix redeem validation and max tokens

* make balance reload when balances hook is ready

* max issuable tokens

* fix typo

* fix showing errors

* add missing dot

* remove unused code

* show errors according to the design

* style: 223 update pendulum spacewalk transfers page design (#271)

* extract base Form component

* separate issue and redeem in folders and use new From input

* extract feebox and dialog from issue

* issue box restyling with collapsible boxes

* fix collapsible styles

* tweak asset selector to match designs

* move coin icons to shared

* mock disclaimer text

* remove typo

* add stellar logo for tab

* fix pen/ampe logos and colors

* fixes

* settings dialog (wip)

* add 'back to stellar' design

* yarn lint fix

* Add settings Dialog

* improve from component

* improve settings

* Update src/components/Layout/links.tsx

* rename hook

* remove unused spacewalk app

* fix tricky dropdown issue not closing on blur

* improve settings dialog

* improve collapsible behavior

* make tabs slightly bigger

* invert buttons order

* remove minimum

* extract useBalances hook

* extract get asset display name

* fix redeem validation and max tokens

* make balance reload when balances hook is ready

* apply new design table colors

* include pagination & styles in Table component

* fix general styling of Table, fix portfolio table

* chore(release): 1.1.1 [skip ci]

## [1.1.1](v1.1.0...v1.1.1) (2023-10-18)

* fix: remove irrelevant info from UI (#273)

* do not show banner and remove component

* fix warning about css nesting

* remove versions from sidebar

* chore(release): 1.1.2 [skip ci]

## [1.1.2](v1.1.1...v1.1.2) (2023-10-18)

### Bug Fixes

* remove irrelevant info from UI ([#273](#273)) ([f8e3a5e](f8e3a5e))

* feat: redirect zenlink menu item only on amplitude (#274)

* make Zenlink AMM point to external website

* only show on Amplitude

* chore(release): 1.2.0 [skip ci]

# [1.2.0](v1.1.2...v1.2.0) (2023-10-18)

### Features

* redirect zenlink menu item only on amplitude ([#274](#274)) ([4491e6c](4491e6c))

* Update CHANGELOG.md (#276)

Update changelog

* fix: Show vaults for selected asset on Bridge Settings (#278)

* add a context at the parent bridge level to store selected asset

* update yarn lock

* chore: fix release, upgrade yarn (#280)

* chore: fix release, upgrade yarn

* fix: missing yarn file

* fix: release (#281)

* fix: release

* fix: github action

* chore: updated release config

* chore(release): 1.2.1 [skip ci]

## [1.2.1](v1.2.0...v1.2.1) (2023-10-31)

### Bug Fixes

* github action ([0b9f207](0b9f207))
* release ([5ebfd88](5ebfd88))
* Show vaults for selected asset on Bridge Settings ([#278](#278)) ([62037d7](62037d7))

* revert: release config

---------

Co-authored-by: semantic-release-bot <[email protected]>

* revert: Put back GH_TOKEN into the release config (#282)

* feat: nabla UI and functionality (#279)

* style: updated tables

* feat: token out amount

* fix: undefined check

* Add `decimals` parameter to number conversion functions

* fix: balance fetching

* fix: decimal point

* feat: refetch pools on changes

* feat: backstop pool redeem

* feat: token price

* feat: updates

* chore: yarn

* refactor: updated info

* feat: swap ui

* refactor: restrict nabla access to dev

* fix: navigation

* fix: app env blocking

* refactor: updated nav to better handle link visibility

---------

Co-authored-by: Marcel Ebert <[email protected]>

* feat: added pool filtering by paused flag (#289)

* Import from preact/compat (#294)

* feat: Add AMPE price to the Dashboard (#293)

* add hook to fetch AMPE price

* fetch AMPE price correctly

* revert conflict and use preact/compat (as the rest of the app)

* Update src/hooks/usePriceFetcher.ts

* feat: Add info to the Bedeem from Backstop pool UI (#291)

* feat: backstop pool withdraw info

* refactor: fee

* feat: token price on redeem ui

---------

Co-authored-by: Gonza Montiel <[email protected]>

* no-release: Add GPL LICENSE (#304)

Add GPL License

* feat: Update transfer dialogs design (#295)

* update yarn lock

* change date format

* general dialogs improvements

* completed dialog

* update cancelled dialog

* update Pending dialog

* revert testing change

* fix extract colors to css

* fix linting & ts errors

* revert daiysi ui upgrade

* force white color

* corrected texts

* feat: 288 allow users to withdraw from backstop pool in other assets (#292)

* feat: backstop pool withdraw info

* refactor: fee

* feat: token price on redeem ui

* feat: backstop poll withdraw in other assets

* fix: removed orig files

* fix: removed orig file

* fix: types

* feat: backstop pool withdraw

* style: updated backstop pool ui

* feat: pool withdraw

* refactor: removed todo

* fix: tests

* style: swap ui update

* style: swap table ui update

* style: updated withdraw UI

* fix account dropdown (#307)

* feat: Update Spacewalk dialogs for "Back to Stellar" transactions (#305)

* update yarn lock

* change date format

* general dialogs improvements

* completed dialog

* update cancelled dialog

* update Pending dialog

* revert testing change

* fix extract colors to css

* fix linting & ts errors

* revert daiysi ui upgrade

* force white color

* corrected texts

* move styles to more appropriate file

* update designs for back to stellar dialogs

* add asset suffix to "Completed" dialog

* fix: Update disclaimer text for Spacewalk (#303)

* add disclaimer text

* Update src/pages/bridge/Issue/index.tsx

Co-authored-by: Marcel Ebert <[email protected]>

* update disclaimer text with on chain real values

---------

Co-authored-by: Marcel Ebert <[email protected]>

* feat: Add support for NGN, EUR and AUD assets for Spacewalk (#302)

* Add asset icons for bridged and unbridged tokens for spacewalk

* add prices to show bridged tokens in the portfolio

---------

Co-authored-by: Nejc <[email protected]>
Co-authored-by: semantic-release-bot <[email protected]>
Co-authored-by: Marcel Ebert <[email protected]>
Co-authored-by: gianfra-t <[email protected]>
  • Loading branch information
5 people authored Dec 5, 2023
1 parent 21934ce commit 7007df9
Show file tree
Hide file tree
Showing 135 changed files with 8,307 additions and 5,711 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GH_TOKEN }}

- name: 💿 Setup Nodejs
uses: actions/setup-node@v3
Expand Down Expand Up @@ -52,6 +52,6 @@ jobs:
- name: 📦 Release
run: yarn release
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ dist
dist-ssr
*.local

.env*

# Editor directories and files
.vscode/*
!.vscode/extensions.json
Expand Down
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

46 changes: 23 additions & 23 deletions gql/fragment-masking.ts
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
import { DocumentTypeDecoration, ResultOf, TypedDocumentNode } from '@graphql-typed-document-node/core';
import { ResultOf, DocumentTypeDecoration, TypedDocumentNode } from '@graphql-typed-document-node/core';
import { FragmentDefinitionNode } from 'graphql';
import { Incremental } from './graphql';

export type FragmentType<TDocumentType extends DocumentTypeDecoration<any, any>> =
TDocumentType extends DocumentTypeDecoration<infer TType, any>
? [TType] extends [{ ' $fragmentName'?: infer TKey }]
? TKey extends string
? { ' $fragmentRefs'?: { [key in TKey]: TType } }
: never

export type FragmentType<TDocumentType extends DocumentTypeDecoration<any, any>> = TDocumentType extends DocumentTypeDecoration<
infer TType,
any
>
? [TType] extends [{ ' $fragmentName'?: infer TKey }]
? TKey extends string
? { ' $fragmentRefs'?: { [key in TKey]: TType } }
: never
: never;
: never
: never;

// return non-nullable if `fragmentType` is non-nullable
export function useFragment<TType>(
_documentNode: DocumentTypeDecoration<TType, any>,
fragmentType: FragmentType<DocumentTypeDecoration<TType, any>>,
fragmentType: FragmentType<DocumentTypeDecoration<TType, any>>
): TType;
// return nullable if `fragmentType` is nullable
export function useFragment<TType>(
_documentNode: DocumentTypeDecoration<TType, any>,
fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null | undefined,
fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null | undefined
): TType | null | undefined;
// return array of non-nullable if `fragmentType` is array of non-nullable
export function useFragment<TType>(
_documentNode: DocumentTypeDecoration<TType, any>,
fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>,
fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>
): ReadonlyArray<TType>;
// return array of nullable if `fragmentType` is array of nullable
export function useFragment<TType>(
_documentNode: DocumentTypeDecoration<TType, any>,
fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined,
fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined
): ReadonlyArray<TType> | null | undefined;
export function useFragment<TType>(
_documentNode: DocumentTypeDecoration<TType, any>,
fragmentType:
| FragmentType<DocumentTypeDecoration<TType, any>>
| ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>
| null
| undefined,
fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined
): TType | ReadonlyArray<TType> | null | undefined {
return fragmentType as any;
}

export function makeFragmentData<F extends DocumentTypeDecoration<any, any>, FT extends ResultOf<F>>(
data: FT,
_fragment: F,
): FragmentType<F> {

export function makeFragmentData<
F extends DocumentTypeDecoration<any, any>,
FT extends ResultOf<F>
>(data: FT, _fragment: F): FragmentType<F> {
return data as FragmentType<F>;
}
export function isFragmentReady<TQuery, TFrag>(
queryNode: DocumentTypeDecoration<TQuery, any>,
fragmentNode: TypedDocumentNode<TFrag>,
data: FragmentType<TypedDocumentNode<Incremental<TFrag>, any>> | null | undefined,
data: FragmentType<TypedDocumentNode<Incremental<TFrag>, any>> | null | undefined
): data is FragmentType<typeof fragmentNode> {
const deferredFields = (queryNode as { __meta__?: { deferredFields: Record<string, (keyof TFrag)[]> } }).__meta__
?.deferredFields;
Expand All @@ -62,5 +62,5 @@ export function isFragmentReady<TQuery, TFrag>(
const fragName = fragDef?.name?.value;

const fields = (fragName && deferredFields[fragName]) || [];
return fields.length > 0 && fields.every((field) => data && field in data);
return fields.length > 0 && fields.every(field => data && field in data);
}
13 changes: 9 additions & 4 deletions gql/gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
* Therefore it is highly recommended to use the babel or swc plugin for production.
*/
const documents = {
"\n query getBackstopPools {\n backstopPools {\n id\n liabilities\n paused\n reserves\n totalSupply\n token {\n id\n decimals\n name\n symbol\n }\n }\n }\n": types.GetBackstopPoolsDocument,
"\n query getSwapPools {\n swapPools {\n id\n liabilities\n paused\n reserves\n totalSupply\n token {\n id\n name\n symbol\n decimals\n }\n router {\n id\n paused\n }\n backstop {\n id\n liabilities\n paused\n reserves\n totalSupply\n }\n }\n }\n": types.GetSwapPoolsDocument,
"\n query getBackstopPool($id: String!) {\n backstopPoolById(id: $id) {\n id\n liabilities\n paused\n reserves\n totalSupply\n token {\n decimals\n id\n name\n symbol\n }\n router {\n swapPools(where: { router_isNull: false, paused_not_eq: true }) {\n id\n liabilities\n paused\n reserves\n totalSupply\n token {\n decimals\n id\n name\n symbol\n }\n }\n id\n }\n }\n }\n": types.GetBackstopPoolDocument,
"\n query getBackstopPools {\n backstopPools(where: { paused_eq: false }) {\n id\n liabilities\n paused\n reserves\n totalSupply\n token {\n id\n decimals\n name\n symbol\n }\n router {\n swapPools(where: { router_isNull: false, paused_not_eq: true }) {\n id\n }\n id\n }\n }\n }\n": types.GetBackstopPoolsDocument,
"\n query getSwapPools {\n swapPools(where: { paused_eq: false }) {\n id\n liabilities\n paused\n reserves\n totalSupply\n token {\n id\n name\n symbol\n decimals\n }\n router {\n id\n paused\n }\n backstop {\n id\n liabilities\n paused\n reserves\n totalSupply\n }\n }\n }\n": types.GetSwapPoolsDocument,
"\n query getTokens {\n nablaTokens {\n id\n name\n symbol\n decimals\n }\n }\n": types.GetTokensDocument,
};

Expand All @@ -35,11 +36,15 @@ export function graphql(source: string): unknown;
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function graphql(source: "\n query getBackstopPools {\n backstopPools {\n id\n liabilities\n paused\n reserves\n totalSupply\n token {\n id\n decimals\n name\n symbol\n }\n }\n }\n"): (typeof documents)["\n query getBackstopPools {\n backstopPools {\n id\n liabilities\n paused\n reserves\n totalSupply\n token {\n id\n decimals\n name\n symbol\n }\n }\n }\n"];
export function graphql(source: "\n query getBackstopPool($id: String!) {\n backstopPoolById(id: $id) {\n id\n liabilities\n paused\n reserves\n totalSupply\n token {\n decimals\n id\n name\n symbol\n }\n router {\n swapPools(where: { router_isNull: false, paused_not_eq: true }) {\n id\n liabilities\n paused\n reserves\n totalSupply\n token {\n decimals\n id\n name\n symbol\n }\n }\n id\n }\n }\n }\n"): (typeof documents)["\n query getBackstopPool($id: String!) {\n backstopPoolById(id: $id) {\n id\n liabilities\n paused\n reserves\n totalSupply\n token {\n decimals\n id\n name\n symbol\n }\n router {\n swapPools(where: { router_isNull: false, paused_not_eq: true }) {\n id\n liabilities\n paused\n reserves\n totalSupply\n token {\n decimals\n id\n name\n symbol\n }\n }\n id\n }\n }\n }\n"];
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function graphql(source: "\n query getSwapPools {\n swapPools {\n id\n liabilities\n paused\n reserves\n totalSupply\n token {\n id\n name\n symbol\n decimals\n }\n router {\n id\n paused\n }\n backstop {\n id\n liabilities\n paused\n reserves\n totalSupply\n }\n }\n }\n"): (typeof documents)["\n query getSwapPools {\n swapPools {\n id\n liabilities\n paused\n reserves\n totalSupply\n token {\n id\n name\n symbol\n decimals\n }\n router {\n id\n paused\n }\n backstop {\n id\n liabilities\n paused\n reserves\n totalSupply\n }\n }\n }\n"];
export function graphql(source: "\n query getBackstopPools {\n backstopPools(where: { paused_eq: false }) {\n id\n liabilities\n paused\n reserves\n totalSupply\n token {\n id\n decimals\n name\n symbol\n }\n router {\n swapPools(where: { router_isNull: false, paused_not_eq: true }) {\n id\n }\n id\n }\n }\n }\n"): (typeof documents)["\n query getBackstopPools {\n backstopPools(where: { paused_eq: false }) {\n id\n liabilities\n paused\n reserves\n totalSupply\n token {\n id\n decimals\n name\n symbol\n }\n router {\n swapPools(where: { router_isNull: false, paused_not_eq: true }) {\n id\n }\n id\n }\n }\n }\n"];
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function graphql(source: "\n query getSwapPools {\n swapPools(where: { paused_eq: false }) {\n id\n liabilities\n paused\n reserves\n totalSupply\n token {\n id\n name\n symbol\n decimals\n }\n router {\n id\n paused\n }\n backstop {\n id\n liabilities\n paused\n reserves\n totalSupply\n }\n }\n }\n"): (typeof documents)["\n query getSwapPools {\n swapPools(where: { paused_eq: false }) {\n id\n liabilities\n paused\n reserves\n totalSupply\n token {\n id\n name\n symbol\n decimals\n }\n router {\n id\n paused\n }\n backstop {\n id\n liabilities\n paused\n reserves\n totalSupply\n }\n }\n }\n"];
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
Expand Down
Loading

0 comments on commit 7007df9

Please sign in to comment.