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

Bugfix/remove enum from idl #70

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@solana/governance-program-library",
"version": "0.16.7",
"name": "@civic/governance-program-library",
"version": "0.16.9-beta.2",
"description": "Client for Governance Program Library which is a set of extensions for Solana's spl-governance program.",
"author": "Solana Maintainers <[email protected]>",
"license": "MIT",
Expand All @@ -15,7 +15,8 @@
"clean": "rm -rf dist",
"type-check": "tsc --pretty --noEmit",
"format": "prettier --check .",
"lint": "eslint . --ext ts --ext tsx --ext js --quiet"
"lint": "eslint . --ext ts --ext tsx --ext js --quiet",
"test": "anchor test"
},
"devDependencies": {
"@tsconfig/recommended": "^1.0.1",
Expand All @@ -38,7 +39,7 @@
"trailingComma": "all"
},
"dependencies": {
"@project-serum/anchor": "^0.24.2",
"@project-serum/anchor": "^0.25.0",
"@project-serum/serum": "^0.13.61"
}
}
48 changes: 0 additions & 48 deletions src/gateway/gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,30 +237,6 @@ export type Gateway = {
}
],
"types": [
{
"name": "GenericVoterWeightEnum",
"type": {
"kind": "enum",
"variants": [
{
"name": "VoterWeightRecord",
"fields": [
{
"defined": "spl_governance_addin_api::voter_weight::VoterWeightRecord"
}
]
},
{
"name": "TokenOwnerRecord",
"fields": [
{
"defined": "TokenOwnerRecordV2"
}
]
}
]
}
},
{
"name": "VoterWeightAction",
"type": {
Expand Down Expand Up @@ -583,30 +559,6 @@ export const IDL: Gateway = {
}
],
"types": [
{
"name": "GenericVoterWeightEnum",
"type": {
"kind": "enum",
"variants": [
{
"name": "VoterWeightRecord",
"fields": [
{
"defined": "spl_governance_addin_api::voter_weight::VoterWeightRecord"
}
]
},
{
"name": "TokenOwnerRecord",
"fields": [
{
"defined": "TokenOwnerRecordV2"
}
]
}
]
}
},
{
"name": "VoterWeightAction",
"type": {
Expand Down
14 changes: 10 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@
snake-case "^3.0.4"
toml "^3.0.0"

"@project-serum/anchor@^0.24.2":
version "0.24.2"
resolved "https://registry.npmjs.org/@project-serum/anchor/-/anchor-0.24.2.tgz"
integrity sha512-0/718g8/DnEuwAidUwh5wLYphUYXhUbiClkuRNhvNoa+1Y8a4g2tJyxoae+emV+PG/Gikd/QUBNMkIcimiIRTA==
"@project-serum/anchor@^0.25.0":
version "0.25.0"
resolved "https://registry.yarnpkg.com/@project-serum/anchor/-/anchor-0.25.0.tgz#88ee4843336005cf5a64c80636ce626f0996f503"
integrity sha512-E6A5Y/ijqpfMJ5psJvbw0kVTzLZFUcOFgs6eSM2M2iWE1lVRF18T6hWZVNl6zqZsoz98jgnNHtVGJMs+ds9A7A==
dependencies:
"@project-serum/borsh" "^0.2.5"
"@solana/web3.js" "^1.36.0"
Expand All @@ -139,6 +139,7 @@
js-sha256 "^0.9.0"
pako "^2.0.3"
snake-case "^3.0.4"
superstruct "^0.15.4"
toml "^3.0.0"

"@project-serum/borsh@^0.2.2", "@project-serum/borsh@^0.2.5":
Expand Down Expand Up @@ -1844,6 +1845,11 @@ superstruct@^0.14.2:
resolved "https://registry.npmjs.org/superstruct/-/superstruct-0.14.2.tgz"
integrity sha512-nPewA6m9mR3d6k7WkZ8N8zpTWfenFH3q9pA2PkuiZxINr9DKB2+40wEQf0ixn8VaGuJ78AB6iWOtStI+/4FKZQ==

superstruct@^0.15.4:
version "0.15.5"
resolved "https://registry.yarnpkg.com/superstruct/-/superstruct-0.15.5.tgz#0f0a8d3ce31313f0d84c6096cd4fa1bfdedc9dab"
integrity sha512-4AOeU+P5UuE/4nOUkmcQdW5y7i9ndt1cQd/3iUe+LTz3RxESf/W/5lg4B74HbDMMv8PHnPnGCQFH45kBcrQYoQ==

[email protected]:
version "8.1.1"
resolved "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz"
Expand Down