-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Stop pools flashing on home screen because of loading state * Reduce props drilling * Update contracts * Add types to contracts * Back to public pyth * Display all rewards distributors including pool-level ones * Fix incorrect typescript part 1 * Fix update contracts * More fixes for typescript * More fixes for typescript and cleanup unused code * Deps * Cleanup test * Cannot set incorrect timer
- Loading branch information
Showing
68 changed files
with
733 additions
and
1,808 deletions.
There are no files selected for viewing
Binary file removed
BIN
-1.72 MB
.yarn/cache/@synthetixio-v3-contracts-https-2ed52c97fc-09102a4b64.zip
Binary file not shown.
Binary file added
BIN
+2.03 MB
.yarn/cache/@synthetixio-v3-contracts-https-c09d84b05c-39a2709d62.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-75.3 KB
.yarn/cache/react-transition-group-npm-4.4.5-98ea4ef96e-ca32d3fd21.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1 +1,115 @@ | ||
declare module '@snx-v3/contracts'; | ||
declare module '@snx-v3/contracts' { | ||
function importCoreProxy( | ||
chainId?: number, | ||
preset?: string | ||
): Promise<{ address: string; abi: string[] }>; | ||
|
||
function importAccountProxy( | ||
chainId?: number, | ||
preset?: string | ||
): Promise<{ address: string; abi: string[] }>; | ||
|
||
function importUSDProxy( | ||
chainId?: number, | ||
preset?: string | ||
): Promise<{ address: string; abi: string[] }>; | ||
|
||
function importV2x( | ||
chainId?: number, | ||
preset?: string | ||
): Promise<{ address: string; abi: string[] }>; | ||
|
||
function importSpotMarketProxy( | ||
chainId?: number, | ||
preset?: string | ||
): Promise<{ address: string; abi: string[] }>; | ||
|
||
function importMulticall3( | ||
chainId?: number, | ||
preset?: string | ||
): Promise<{ address: string; abi: string[] }>; | ||
|
||
function importLegacyMarket( | ||
chainId?: number, | ||
preset?: string | ||
): Promise<{ address: string; abi: string[] }>; | ||
|
||
function importOracleManagerProxy( | ||
chainId?: number, | ||
preset?: string | ||
): Promise<{ address: string; abi: string[] }>; | ||
|
||
function importPythERC7412Wrapper( | ||
chainId?: number, | ||
preset?: string | ||
): Promise<{ address: string; abi: string[] }>; | ||
|
||
function importRewardsDistributors( | ||
chainId?: number, | ||
preset?: string | ||
): Promise< | ||
{ | ||
address: string; | ||
name: string; | ||
poolId: string; | ||
|
||
// undefined for Pool-level distributors | ||
collateralType?: { | ||
address: string; | ||
symbol: string; | ||
name: string; | ||
decimals: number; | ||
}; | ||
|
||
payoutToken: { | ||
address: string; | ||
symbol: string; | ||
name: string; | ||
decimals: number; | ||
}; | ||
rewardManager: string; | ||
isRegistered: boolean; | ||
}[] | ||
>; | ||
|
||
function importExtras( | ||
chainId?: number, | ||
preset?: string | ||
): Promise<{ | ||
[key: string]: string; | ||
}>; | ||
|
||
function importCollateralTokens( | ||
chainId?: number, | ||
preset?: string | ||
): Promise< | ||
{ | ||
address: string; | ||
symbol: string; | ||
name: string; | ||
decimals: number; | ||
depositingEnabled: boolean; | ||
issuanceRatioD18: string; | ||
liquidationRatioD18: string; | ||
liquidationRewardD18: string; | ||
oracleNodeId: string; | ||
tokenAddress: string; | ||
minDelegationD18: string; | ||
}[] | ||
>; | ||
|
||
function importSystemToken( | ||
chainId?: number, | ||
preset?: string | ||
): Promise<{ | ||
address: string; | ||
symbol: string; | ||
name: string; | ||
decimals: number; | ||
}>; | ||
|
||
function importAllErrors( | ||
chainId?: number, | ||
preset?: string | ||
): Promise<{ address: string; abi: string[] }>; | ||
} |
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.