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

Deps remove token registry #132

Open
wants to merge 280 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
280 commits
Select commit Hold shift + click to select a range
7c3a9bc
Merge pull request #2 from UXDProtocol/uxd_upgrade
sjillen Dec 12, 2021
4dd98fe
fix @project-serum/anchor publickey issue
0xCryptoSheik Dec 13, 2021
6367487
Merge pull request #4 from UXDProtocol/fix/anchor-publickey
sjillen Dec 13, 2021
ef87d5a
Merge branch 'blockworks-foundation:main' into main
sjillen Dec 13, 2021
7e83679
Update realm info
acamill Dec 14, 2021
eb47811
fix realm id
acamill Dec 14, 2021
4780709
Merge branch 'main' of https://github.com/blockworks-foundation/gover…
sjillen Dec 15, 2021
f4b1062
Merge branch 'blockworks-foundation-main'
sjillen Dec 15, 2021
694e681
yarn lock
sjillen Dec 15, 2021
d8bbb71
update UiInstruction obj
sjillen Dec 15, 2021
aa58517
Merge branch 'main' of https://github.com/blockworks-foundation/gover…
sjillen Dec 15, 2021
5081866
Merge branch 'blockworks-foundation-main'
sjillen Dec 15, 2021
6d98909
Merge branch 'main' of https://github.com/solana-labs/governance-ui i…
sjillen Dec 18, 2021
2d08683
Merge branch 'solana-labs-main'
sjillen Dec 18, 2021
6c53ede
comment out github workflow for now
sjillen Dec 18, 2021
a5a4861
re update @uxdprotocol/uxd-client to latest version
sjillen Dec 18, 2021
0a1bef2
remove workflow
sjillen Dec 18, 2021
b3fc337
Update program to good one, remove mint symbol
acamill Dec 15, 2021
c45221b
Fix names
acamill Dec 15, 2021
edb751e
Fix mistake removal
acamill Dec 15, 2021
2108e8f
Update IDL to latest
acamill Dec 15, 2021
f905aa3
Actually use the mint decimals. Danger
acamill Dec 15, 2021
e98718c
Add comments + program ID
acamill Dec 15, 2021
7406615
get controller pda from input and cluster/connection dynamically
sjillen Dec 15, 2021
b296a8b
update uxd-client to 3.1, update idl
sjillen Dec 15, 2021
327953e
reinforce input rules, use wallet for provider, small uxd-client refa…
sjillen Dec 16, 2021
4c4bbd8
small brushup
sjillen Dec 16, 2021
fa5463c
controller Pda automatically derived instead of input
sjillen Dec 18, 2021
c4b093e
select collateral and insurance with select on symbol
sjillen Dec 18, 2021
b7f0a93
fix ConnectionContext import
sjillen Dec 18, 2021
6ebaf00
Merge pull request #6 from UXDProtocol/misc/support-latest-uxd-client
sjillen Dec 19, 2021
8415868
Merge branch 'main' of https://github.com/solana-labs/governance-ui i…
sjillen Dec 20, 2021
4db2f03
Merge branch 'solana-labs-main'
sjillen Dec 20, 2021
b6bad99
fix: yarn types for react-virtualized
sjillen Dec 20, 2021
cbda107
Merge branch 'main' of https://github.com/solana-labs/governance-ui i…
sjillen Dec 21, 2021
d24f44b
Merge branch 'solana-labs-main'
sjillen Dec 21, 2021
afd34f5
update uxd-client 3.6
sjillen Dec 22, 2021
6109f49
Merge branch 'solana-labs:main' into main
sjillen Dec 22, 2021
bd92c13
Merge branch 'solana-labs:main' into main
sjillen Dec 22, 2021
f7c443a
Merge branch 'main' of https://github.com/solana-labs/governance-ui i…
sjillen Dec 23, 2021
ef69180
Merge branch 'solana-labs-main'
sjillen Dec 23, 2021
d07fdad
Merge branch 'solana-labs:main' into main
sjillen Dec 27, 2021
a4688ef
Merge branch 'solana-labs:main' into main
sjillen Dec 28, 2021
8a477a6
Merge branch 'solana-labs:main' into main
sjillen Jan 3, 2022
bb60941
Merge branch 'main' of https://github.com/solana-labs/governance-ui i…
sjillen Jan 4, 2022
0144857
Merge branch 'solana-labs-main'
sjillen Jan 4, 2022
082ab4a
Merge branch 'main' of https://github.com/UXDProtocol/governance-ui
sjillen Jan 4, 2022
fd40ad4
Merge branch 'solana-labs:main' into main
sjillen Jan 5, 2022
2838304
switch to uxd dao v1 on mainnet-beta
sjillen Jan 5, 2022
cccb466
add close account itx
sjillen Jan 8, 2022
842c6cd
Merge branch 'main' of https://github.com/solana-labs/governance-ui i…
sjillen Jan 8, 2022
857d6b6
Merge branch 'solana-labs-main'
sjillen Jan 8, 2022
95db587
update packages.json, lock and small fix
sjillen Jan 8, 2022
19f648a
Merge branch 'main' of https://github.com/solana-labs/governance-ui i…
sjillen Jan 13, 2022
d4cfca0
Merge branch 'solana-labs-main'
sjillen Jan 13, 2022
d816642
update lock
sjillen Jan 13, 2022
ff2b3e8
update uxd instructions to work with @solana/spl-governance
sjillen Jan 13, 2022
3db9939
fix some types
sjillen Jan 13, 2022
8efc116
lint
sjillen Jan 13, 2022
cd87193
Merge branch 'solana-labs:main' into main
sjillen Jan 14, 2022
ead7b34
add SetProgramAuthority itx
sjillen Jan 14, 2022
7d97b90
update uxd itxs to work with uxd-client 4.10
sjillen Jan 14, 2022
b96096c
update UXD program name address
sjillen Jan 14, 2022
a8eabb7
fix UXD website url
0xCryptoSheik Jan 14, 2022
0908574
Merge pull request #16 from UXDProtocol/fix/uxd-website-url
0xCryptoSheik Jan 14, 2022
06391ec
Merge branch 'solana-labs:main' into main
sjillen Jan 15, 2022
9027f2d
Merge branch 'solana-labs:main' into main
sjillen Jan 16, 2022
0ef9c43
Merge branch 'solana-labs:main' into main
sjillen Jan 17, 2022
25ba32b
add raydium liquidity wip
sjillen Jan 17, 2022
db4d6f9
add Raydium Itx + Add Liquidity form - small refactor mint constants …
sjillen Jan 19, 2022
d3554bf
add liquidity to raydium proposal itx on any governance
sjillen Jan 22, 2022
965c86f
cleanup
sjillen Jan 22, 2022
9a8762e
Merge branch 'solana-labs:main' into main
sjillen Jan 22, 2022
1fbb41a
Merge branch 'main' into add_raydium
sjillen Jan 22, 2022
72aa2ec
Merge pull request #17 from UXDProtocol/add_raydium
sjillen Jan 22, 2022
691ca5c
fix(itxs): pass an actual instance of the controller instead of just …
sjillen Jan 23, 2022
9fb57d6
Merge pull request #18 from UXDProtocol/fix_controller-instantiation
sjillen Jan 23, 2022
3ba167f
Update chat sdk to v2 (#272)
SebastianBor Jan 22, 2022
06a1c8f
NFT 4 Cause DAO (#276)
qrtp Jan 22, 2022
bace14a
Pass through rpc env variables (#275)
mschneider Jan 23, 2022
f9ac469
Merge branch 'solana-labs-main'
sjillen Jan 24, 2022
a7e63ce
use genesysgo from env
sjillen Jan 24, 2022
35c8323
Merge branch 'main' of https://github.com/solana-labs/governance-ui i…
sjillen Jan 24, 2022
949d6db
Merge branch 'solana-labs-main'
sjillen Jan 24, 2022
50fb1f6
FIX prevent governenace from crashing if https://token-list.solana.co…
sjillen Jan 24, 2022
cc98556
persist this fucking last line in package.json
sjillen Jan 24, 2022
2c00237
improve handling of decimal numbers
sjillen Jan 24, 2022
8a010e2
remove instantiateController for new Controller()
sjillen Jan 24, 2022
0148d41
Merge pull request #21 from UXDProtocol/chore_raydium_inputs
sjillen Jan 24, 2022
9bda6c0
Merge branch 'main' of https://github.com/solana-labs/governance-ui i…
sjillen Jan 25, 2022
9b90f05
Merge branch 'solana-labs-main'
sjillen Jan 25, 2022
1227c09
bump yarn.lock
sjillen Jan 25, 2022
5cad227
fix Wallet type import
sjillen Jan 25, 2022
68e0733
Merge branch 'main' of https://github.com/UXDProtocol/governance-ui
sjillen Jan 25, 2022
6521821
lint
sjillen Jan 25, 2022
9e6c035
update icon and favicon
sjillen Jan 25, 2022
1869586
Merge branch 'solana-labs:main' into main
sjillen Jan 25, 2022
b437f1c
Merge branch 'main' of https://github.com/solana-labs/governance-ui i…
sjillen Jan 25, 2022
43c297f
Merge branch 'solana-labs-main'
sjillen Jan 25, 2022
0673621
switch mainnet rpc to quiknode
sjillen Jan 28, 2022
506da7d
wip
sjillen Jan 28, 2022
a6278f2
update display for uxd proposals
sjillen Jan 29, 2022
85f3daa
fix ix ui indexes + formatting
sjillen Jan 29, 2022
fdbbff1
Merge branch 'main' of https://github.com/solana-labs/governance-ui i…
sjillen Jan 29, 2022
51a2b61
Merge branch 'solana-labs-main'
sjillen Jan 29, 2022
cfca048
Merge pull request #25 from UXDProtocol/display_proposal_ui
sjillen Jan 29, 2022
aba4ecc
use UXP instead of UXD as DAO symbol
sjillen Jan 29, 2022
8e55176
remove some logs
sjillen Jan 29, 2022
ec3afd5
fix img path
sjillen Jan 29, 2022
49d1ede
restrict display of UXP itx to UXP DAO
sjillen Jan 30, 2022
8c54dcb
add redirect uxd->uxp in next config
sjillen Jan 30, 2022
5efbaa4
Merge pull request #27 from UXDProtocol/fix_uxp_symbol
sjillen Jan 30, 2022
4528a39
add eth in the depository mints list
sjillen Jan 31, 2022
07347ac
Merge pull request #29 from UXDProtocol/add_eth_depository_option
acamill Feb 1, 2022
4d3adf5
Add solend support (#24)
Orelsanpls Feb 3, 2022
89ded4e
Merge branch 'main' of https://github.com/solana-labs/governance-ui i…
sjillen Feb 3, 2022
8581751
update yarn files
sjillen Feb 3, 2022
f77b97f
fix issues from merge
sjillen Feb 3, 2022
17673ef
Merge branch 'solana-labs-main'
sjillen Feb 4, 2022
1f59f3a
update getGovernanceByAccountTypes call in uxd form itxs
sjillen Feb 4, 2022
8b0e21e
fixes from spl-governance package update
sjillen Feb 4, 2022
36d736e
Merge branch 'main' of https://github.com/solana-labs/governance-ui i…
sjillen Feb 4, 2022
fceab0c
Merge branch 'solana-labs-main'
sjillen Feb 4, 2022
bfc37bf
wip
sjillen Jan 24, 2022
73e79c6
fix routing (back to realms-explorer)
sjillen Jan 29, 2022
9bd70fa
regroup uxd itxs form into UXD folder
sjillen Jan 30, 2022
b529ab2
update Instructions list and names
sjillen Jan 30, 2022
03cabb2
Remove Liquidity simulation passing (but itx too > 1232bytes)
sjillen Jan 30, 2022
cf19a7c
refactor remove from liquidity pool
sjillen Feb 1, 2022
811b063
moar refactoar
sjillen Feb 1, 2022
c6e4e88
add radium pool not dependant from uxp/uxdc anymore
sjillen Feb 2, 2022
503b4f3
fixes and improvements from comments
sjillen Feb 3, 2022
9299491
cleanup and refacto helpers/poolKeys
sjillen Feb 3, 2022
4a602bd
refacto getMultiTypeAccounts for raydium itxs
sjillen Feb 3, 2022
91f4885
Merge pull request #28 from UXDProtocol/raydium_remove_liquidity
sjillen Feb 4, 2022
676cf40
Merge branch 'solana-labs:main' into main
sjillen Feb 4, 2022
9950e4c
Merge branch 'main' of https://github.com/solana-labs/governance-ui i…
sjillen Feb 5, 2022
e4dbda0
Merge branch 'solana-labs-main'
sjillen Feb 5, 2022
55e4b4d
update lock file
sjillen Feb 5, 2022
c925bef
Merge branch 'main' of https://github.com/UXDProtocol/governance-ui
sjillen Feb 5, 2022
88f1b13
remove uxd env
sjillen Feb 5, 2022
6184d33
smol fix
sjillen Feb 6, 2022
8996f41
Fix governance select (#33)
Orelsanpls Feb 7, 2022
b105023
Merge branch 'main' of https://github.com/solana-labs/governance-ui i…
sjillen Feb 8, 2022
d622ad0
Merge branch 'solana-labs-main'
sjillen Feb 8, 2022
cbb439b
Merge branch 'main' of https://github.com/solana-labs/governance-ui
sjillen Feb 10, 2022
3951f0f
udpate Wallet import
sjillen Feb 13, 2022
0cae56b
Merge branch 'main' of https://github.com/solana-labs/governance-ui i…
sjillen Feb 13, 2022
a126436
Merge branch 'solana-labs-main'
sjillen Feb 13, 2022
ce4ca1d
update lock file
sjillen Feb 13, 2022
91873ef
update Wallet Interface import
sjillen Feb 13, 2022
883fe32
Merge branch 'solana-labs:main' into main
sjillen Feb 15, 2022
7f8ca0f
add link to tx explorer once proposal is executed (#39)
sjillen Feb 19, 2022
dcaf562
update raydium slippage from 0.5 to 1%
sjillen Feb 20, 2022
c7becdc
Merge branch 'main' of https://github.com/solana-labs/governance-ui i…
sjillen Feb 20, 2022
5df7662
Merge branch 'solana-labs-main'
sjillen Feb 20, 2022
6457903
update lock file
sjillen Feb 20, 2022
a95bd89
Merge branch 'main' of https://github.com/solana-labs/governance-ui i…
sjillen Feb 23, 2022
16279b2
modif from previous merge
sjillen Feb 23, 2022
030af39
remove anchor patch
sjillen Feb 23, 2022
406b2fe
merge from source repo
sjillen Feb 23, 2022
dffcc6f
smol fix
sjillen Feb 23, 2022
bf1b9c3
Merge branch 'solana-labs-main'
sjillen Feb 23, 2022
23bb19c
Merge branch 'solana-labs:main' into main
sjillen Feb 24, 2022
6030080
fix typo
sjillen Feb 25, 2022
c87f656
Delete pages/dao/[symbol]/proposal/components/instructions/solend dir…
sjillen Feb 25, 2022
824a799
Merge branch 'main' of https://github.com/UXDProtocol/governance-ui
sjillen Feb 25, 2022
81f1e4e
fix deleted file
sjillen Feb 25, 2022
040742f
Merge branch 'solana-labs:main' into main
sjillen Feb 25, 2022
b339365
Merge branch 'main' of https://github.com/solana-labs/governance-ui i…
sjillen Mar 8, 2022
aa2e42f
Merge branch 'solana-labs-main'
sjillen Mar 8, 2022
898eb30
Merge branch 'main' of https://github.com/solana-labs/governance-ui i…
sjillen Mar 11, 2022
4a2b086
fix missing itx in enum
sjillen Mar 11, 2022
671169c
Merge branch 'solana-labs-main'
sjillen Mar 11, 2022
d79f309
update lock
sjillen Mar 11, 2022
5b24c37
Merge branch 'main' of https://github.com/solana-labs/governance-ui i…
sjillen Mar 14, 2022
6766205
Merge branch 'solana-labs-main'
sjillen Mar 14, 2022
1e74761
Refactor instructions part1 (#50)
sjillen Mar 24, 2022
aa606e3
refactor UXD + generics instruction forms (#51)
sjillen Mar 29, 2022
d85167e
add HotWallet component + TokenAccounts plugin + Tribeca Gauges plugi…
Orelsanpls Mar 30, 2022
edc9d5e
Tribeca integration (#54)
sjillen Apr 6, 2022
0ac1d38
Rework proposal new component (#52)
Orelsanpls Apr 7, 2022
8dd6d79
Support staking (#55)
Orelsanpls Apr 7, 2022
e7c6df0
Socean integration thomas (#56)
sjillen Apr 7, 2022
d8c580a
add Outdated proposal state (#57)
Orelsanpls Apr 7, 2022
4da6f56
format (#58)
Orelsanpls Apr 7, 2022
a57075d
name secondary USDC treasury (#60)
Orelsanpls Apr 8, 2022
93f3441
fix outdated (#61)
Orelsanpls Apr 8, 2022
80eac09
Fix Outdated (#62)
Orelsanpls Apr 8, 2022
420a503
Fix staking total (#63)
Orelsanpls Apr 8, 2022
a5b0593
Saber integration thomas (#64)
sjillen Apr 11, 2022
771c808
Quarry integration (#65)
sjillen Apr 12, 2022
4330ca9
optimize images (#59)
Orelsanpls Apr 12, 2022
b39f18a
fix staking campaign options display on smaller screen (#67)
Orelsanpls Apr 14, 2022
eb80818
Lifinity integration (#68)
sjillen Apr 14, 2022
1a4ff92
Refactor governance select (#66)
Orelsanpls Apr 15, 2022
4974faf
Amount can be 0 + auto detect ATAs (#69)
Orelsanpls Apr 15, 2022
14a7de0
Fix saber pool withdraw (#70)
Orelsanpls Apr 15, 2022
76fd060
fix display for Withdraw From Mango Depsoitory instruction (#72)
Orelsanpls Apr 18, 2022
abe890a
update (#73)
Orelsanpls Apr 18, 2022
d5465ce
handle error case for withdraw from mango depository info display (#74)
Orelsanpls Apr 18, 2022
9edba90
display sunny stat (#75)
Orelsanpls Apr 18, 2022
80c3fd3
add tribeca instructions description (#77)
Orelsanpls Apr 19, 2022
f5c71f6
new transfer (#78)
Orelsanpls Apr 19, 2022
be126dc
sunny gaugemeister (#79)
Orelsanpls Apr 19, 2022
230da3e
used current staking acs fields (#81)
cnek Apr 20, 2022
18cd6b6
Lifinity integration part 2 (#76)
sjillen Apr 20, 2022
7f1fa36
enhance token transfer (#80)
Orelsanpls Apr 20, 2022
225ab76
support solend pools (#84)
sjillen Apr 21, 2022
087a50a
add maple finance support (#85)
Orelsanpls Apr 23, 2022
7fe19b4
Friktion integration (#86)
sjillen May 9, 2022
5386460
Remove unused features (#83)
Orelsanpls May 9, 2022
d92a360
fix authority and signer (#88)
sjillen May 10, 2022
8bf330a
Fix new beta token transfer instruction (#90)
Orelsanpls May 12, 2022
71c9546
Migrate to public uxd client 2 (#92)
Orelsanpls May 15, 2022
dcafab4
add browserslist config, fix rpc
0xCryptoSheik May 28, 2022
8577115
remove usdc collateral from solend stable pool (#93)
Orelsanpls Jun 2, 2022
4b4198a
update friktion withdraw itx (add beta tag) (#95)
sjillen Jun 18, 2022
0936c59
Lifinity new UXD-SOL pool integration + rewrite (#97)
Orelsanpls Jun 20, 2022
21f701e
fix-lifinity-withdraw (#99)
Orelsanpls Jun 23, 2022
bda9267
vote by council by default + reworked image selection component (#100)
Orelsanpls Jun 23, 2022
7921c7f
Deltafi instructions integration (#96)
Orelsanpls Jun 23, 2022
c518cc6
Improvements (#101)
Orelsanpls Jun 24, 2022
4a7cd10
Change IDL (#103)
Orelsanpls Jun 27, 2022
368c48b
implement deltafi farm (#104)
Orelsanpls Jun 28, 2022
d91fb7d
add search bar (#107)
Orelsanpls Jun 29, 2022
c625056
Unify instruction detail (#106)
Orelsanpls Jun 29, 2022
00de626
Preview all button (#105)
Orelsanpls Jun 29, 2022
066ee01
Support vote delegation (#89)
Orelsanpls Jul 12, 2022
b1e7351
Quick fix about staking campaign info display (#109)
Orelsanpls Jul 12, 2022
6d86a7b
Fixup council token vote (#110)
Orelsanpls Jul 12, 2022
a2776ba
Quick fix finalize vote (#111)
Orelsanpls Jul 12, 2022
ec2e903
Fix council token with delegate accounts (#112)
Orelsanpls Jul 13, 2022
4ca0876
Implement saber swap (#102)
Orelsanpls Jul 14, 2022
47b68e3
add burn instruction support (#98)
Orelsanpls Jul 14, 2022
bb3b4d1
Support new UXD client IXs (#113)
Orelsanpls Jul 18, 2022
981cb69
Fix set mango depository quote mint and redeem soft cap (#114)
Orelsanpls Jul 19, 2022
91f4c89
add infos (#115)
Orelsanpls Jul 19, 2022
a40e249
Fix few thing (#118)
Orelsanpls Jul 20, 2022
444fe8b
remove unused console logs (#119)
Orelsanpls Jul 20, 2022
dabfa13
Put HotWallet infos in new page (#117)
Orelsanpls Jul 22, 2022
7be1d52
Fix cast vote by casting vote one by one and removing calculations (#…
Orelsanpls Jul 23, 2022
96afd55
Integrate Orca instructions (#126)
Orelsanpls Aug 2, 2022
969591e
chore(deps): remove @project-serum/common (#127)
sjillen Aug 2, 2022
79bea1e
Do not load every realm (#123)
Orelsanpls Aug 2, 2022
21136c4
Do not display keypair input in open orca position (#128)
Orelsanpls Aug 2, 2022
f6b0805
remove cardinal deps (#124)
sjillen Aug 3, 2022
6f79e00
Show secret key only to payer (#129)
Orelsanpls Aug 3, 2022
e1abfa1
wip
sjillen Aug 9, 2022
0d487fb
chore(deps): erase spl-token-registry from codebase
sjillen Aug 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[production]
last 2 major versions and >0.2%
Firefox ESR
not dead
not ie 11
not op_mini all

[development]
last 1 chrome version
last 1 firefox version
last 1 safari version
9 changes: 1 addition & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,9 @@
"react/react-in-jsx-scope": 0,
"react/display-name": 0,
"react/prop-types": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/indent": 0,
"@typescript-eslint/member-delimiter-style": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-unused-vars": [
2,
{
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/pull-request.yml

This file was deleted.

5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@ yarn-error.log*
# vercel
.vercel

# visual studio
.vscode

.npmrc
.env
# TypeScript cache
*.tsbuildinfo
5 changes: 3 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"semi": false,
"singleQuote": true
"semi": true,
"singleQuote": true,
"trailingComma": "all"
}
4 changes: 0 additions & 4 deletions .vscode/settings.json

This file was deleted.

114 changes: 57 additions & 57 deletions @types/buffer-layout.d.ts
Original file line number Diff line number Diff line change
@@ -1,90 +1,90 @@
declare module 'buffer-layout' {
export class Layout<T = any> {
span: number
property?: string
span: number;
property?: string;

constructor(span: number, property?: string)
constructor(span: number, property?: string);

decode(b: Buffer, offset?: number): T
encode(src: T, b: Buffer, offset?: number): number
getSpan(b: Buffer, offset?: number): number
replicate(name: string): this
decode(b: Buffer, offset?: number): T;
encode(src: T, b: Buffer, offset?: number): number;
getSpan(b: Buffer, offset?: number): number;
replicate(name: string): this;
}

export interface EnumLayout<T> extends Layout<T> {
registry: Record<string, Layout<any>>
registry: Record<string, Layout<any>>;
}

export class Structure<T = any> extends Layout<T> {
span: any
span: any;
}
export function greedy(
elementSpan?: number,
property?: string
): Layout<number>
property?: string,
): Layout<number>;
export function offset<T>(
layout: Layout<T>,
offset?: number,
property?: string
): Layout<T>
export function u8(property?: string): Layout<number>
export function u16(property?: string): Layout<number>
export function u24(property?: string): Layout<number>
export function u32(property?: string): Layout<number>
export function u40(property?: string): Layout<number>
export function u48(property?: string): Layout<number>
export function nu64(property?: string): Layout<number>
export function u16be(property?: string): Layout<number>
export function u24be(property?: string): Layout<number>
export function u32be(property?: string): Layout<number>
export function u40be(property?: string): Layout<number>
export function u48be(property?: string): Layout<number>
export function nu64be(property?: string): Layout<number>
export function s8(property?: string): Layout<number>
export function s16(property?: string): Layout<number>
export function s24(property?: string): Layout<number>
export function s32(property?: string): Layout<number>
export function s40(property?: string): Layout<number>
export function s48(property?: string): Layout<number>
export function ns64(property?: string): Layout<number>
export function s16be(property?: string): Layout<number>
export function s24be(property?: string): Layout<number>
export function s32be(property?: string): Layout<number>
export function s40be(property?: string): Layout<number>
export function s48be(property?: string): Layout<number>
export function ns64be(property?: string): Layout<number>
export function f32(property?: string): Layout<number>
export function f32be(property?: string): Layout<number>
export function f64(property?: string): Layout<number>
export function f64be(property?: string): Layout<number>
property?: string,
): Layout<T>;
export function u8(property?: string): Layout<number>;
export function u16(property?: string): Layout<number>;
export function u24(property?: string): Layout<number>;
export function u32(property?: string): Layout<number>;
export function u40(property?: string): Layout<number>;
export function u48(property?: string): Layout<number>;
export function nu64(property?: string): Layout<number>;
export function u16be(property?: string): Layout<number>;
export function u24be(property?: string): Layout<number>;
export function u32be(property?: string): Layout<number>;
export function u40be(property?: string): Layout<number>;
export function u48be(property?: string): Layout<number>;
export function nu64be(property?: string): Layout<number>;
export function s8(property?: string): Layout<number>;
export function s16(property?: string): Layout<number>;
export function s24(property?: string): Layout<number>;
export function s32(property?: string): Layout<number>;
export function s40(property?: string): Layout<number>;
export function s48(property?: string): Layout<number>;
export function ns64(property?: string): Layout<number>;
export function s16be(property?: string): Layout<number>;
export function s24be(property?: string): Layout<number>;
export function s32be(property?: string): Layout<number>;
export function s40be(property?: string): Layout<number>;
export function s48be(property?: string): Layout<number>;
export function ns64be(property?: string): Layout<number>;
export function f32(property?: string): Layout<number>;
export function f32be(property?: string): Layout<number>;
export function f64(property?: string): Layout<number>;
export function f64be(property?: string): Layout<number>;
export function struct<T>(
fields: Layout<any>[],
property?: string,
decodePrefixes?: boolean
): Layout<T>
decodePrefixes?: boolean,
): Layout<T>;
export function bits(
word: Layout<number>,
msb?: boolean,
property?: string
): any
property?: string,
): any;
export function seq<T>(
elementLayout: Layout<T>,
count: number | Layout<number>,
property?: string
): Layout<T[]>
property?: string,
): Layout<T[]>;
export function union(
discr: Layout<any>,
defaultLayout?: any,
property?: string
): any
property?: string,
): any;
export function unionLayoutDiscriminator(
layout: Layout<any>,
property?: string
): any
property?: string,
): any;
export function blob(
length: number | Layout<number>,
property?: string
): Layout<Buffer>
export function cstr(property?: string): Layout<string>
export function utf8(maxSpan: number, property?: string): Layout<string>
property?: string,
): Layout<Buffer>;
export function cstr(property?: string): Layout<string>;
export function utf8(maxSpan: number, property?: string): Layout<string>;
}
4 changes: 2 additions & 2 deletions @types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module '*.svg' {
const content: any
export default content
const content: any;
export default content;
}
12 changes: 6 additions & 6 deletions @types/types.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { AccountInfo, PublicKey } from '@solana/web3.js'
import type { AccountInfo, PublicKey } from '@solana/web3.js';

export interface EndpointInfo {
name: string
url: string
name: string;
url: string;
}

export interface TokenAccount {
pubkey: PublicKey
account: AccountInfo<Buffer> | null
effectiveMint: PublicKey
pubkey: PublicKey;
account: AccountInfo<Buffer> | null;
effectiveMint: PublicKey;
}
Loading