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

Token 2022 Support #85

Merged
merged 42 commits into from
Jan 25, 2024
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
cd2072c
feat: add token-2022 program
bigearsenal Jan 4, 2024
3295604
fix: folder structure
bigearsenal Jan 4, 2024
169dd60
feat: Token2022 BufferLayout
bigearsenal Jan 4, 2024
832c0ad
Merge branch 'main' into feature/token-2022
bigearsenal Jan 4, 2024
987a380
feat: Token2022ProgramTests
bigearsenal Jan 4, 2024
7208343
feat: separate tests
bigearsenal Jan 4, 2024
de8506d
feat: getTokenAccounts
bigearsenal Jan 5, 2024
f006281
feat: add tests
bigearsenal Jan 5, 2024
0ac32b0
fix: programId
bigearsenal Jan 5, 2024
e3ee72a
feat: mintdata
bigearsenal Jan 5, 2024
0e4bc8e
fix: optional type
bigearsenal Jan 5, 2024
2e52217
fix: tokenMetadata
bigearsenal Jan 5, 2024
042ed3b
feat: add minRentExempt
bigearsenal Jan 9, 2024
8babbb7
feat: some fixes
bigearsenal Jan 9, 2024
80c8a71
feat: define program to send
bigearsenal Jan 9, 2024
04d339d
feat: add lamportsPerSignature
bigearsenal Jan 11, 2024
a1d3cec
feat: remove generic
bigearsenal Jan 11, 2024
af02f17
feat: reverse
bigearsenal Jan 11, 2024
f1b8802
Merge branch 'feature/remove-generic' into feature/token-2022
bigearsenal Jan 11, 2024
0cc2f5d
fix: update CHANGELOG.md
bigearsenal Jan 11, 2024
454c363
feat: mock data
bigearsenal Jan 11, 2024
afab465
feat: add test for getAccountBalances
bigearsenal Jan 12, 2024
99d2cde
Merge branch 'feature/get-account-balances-tests' into feature/token-…
bigearsenal Jan 12, 2024
2cbdb61
fix: getAccountBalances
bigearsenal Jan 12, 2024
44fe66b
Merge branch 'main' into feature/token-2022
TrGiLong Jan 15, 2024
0edf5bc
feat: prepare for parsing extension
bigearsenal Jan 22, 2024
c2c81bd
feat: parse extensions
bigearsenal Jan 23, 2024
40bc44e
feat: add test cases
bigearsenal Jan 23, 2024
ad3580b
feat: some fixes
bigearsenal Jan 23, 2024
5f465c5
feat: InterestBearingConfig
bigearsenal Jan 23, 2024
acdbf73
feat: convenience method for getting extension
bigearsenal Jan 23, 2024
68509d8
feat: getParsedExtension
bigearsenal Jan 23, 2024
e072989
Merge branch 'feature/token-2022-extension' into feature/token-2022
bigearsenal Jan 23, 2024
e398f69
Update README.md
bigearsenal Jan 24, 2024
11f824f
Update README.md
bigearsenal Jan 24, 2024
5827e9f
fix: encoding tests
bigearsenal Jan 24, 2024
4100ad8
feat: VecU8
bigearsenal Jan 24, 2024
e66f37d
feat: VecU8
bigearsenal Jan 24, 2024
352b154
fix: encoding
bigearsenal Jan 24, 2024
40bf0b0
feat: MintLayoutState
bigearsenal Jan 24, 2024
c67f9a7
feat: rename TokenAccountState & TokenMintState
bigearsenal Jan 24, 2024
5c3b9b9
Merge pull request #89 from p2p-org/feature/token-2022-renaming
bigearsenal Jan 24, 2024
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
Prev Previous commit
Next Next commit
feat: mintdata
bigearsenal committed Jan 5, 2024
commit e3ee72a7cf7e611d6fc5add5f404abe82786cbac
3 changes: 2 additions & 1 deletion Sources/SolanaSwift/APIClient/APIClient+Extension.swift
Original file line number Diff line number Diff line change
@@ -53,7 +53,8 @@ public extension SolanaAPIClient {
var mintDict = [String: M?]()

for (index, address) in mintAddresses.enumerated() {
mintDict[address] = accounts[index]?.data
let account = accounts[index] as BufferInfo<M>?
mintDict[address] = account?.data
}

return mintDict