diff --git a/package.json b/package.json index 5705bd2b..015a6d9f 100644 --- a/package.json +++ b/package.json @@ -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 ", "license": "MIT", @@ -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", @@ -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" } } diff --git a/src/gateway/gateway.ts b/src/gateway/gateway.ts index a55c5854..c3d29101 100644 --- a/src/gateway/gateway.ts +++ b/src/gateway/gateway.ts @@ -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": { @@ -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": { diff --git a/yarn.lock b/yarn.lock index 85d1254c..bb84f5d3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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" @@ -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": @@ -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== + supports-color@8.1.1: version "8.1.1" resolved "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz"