@solana/spl-token-group
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -8,3 +8,2 @@ "use strict"; | ||
const codecs_1 = require("@solana/codecs"); | ||
const spl_type_length_value_1 = require("@solana/spl-type-length-value"); | ||
const web3_js_1 = require("@solana/web3.js"); | ||
@@ -29,3 +28,6 @@ function getInstructionEncoder(discriminator, dataEncoder) { | ||
], | ||
data: Buffer.from(getInstructionEncoder((0, spl_type_length_value_1.splDiscriminate)('spl_token_group_interface:initialize_token_group'), (0, codecs_1.getStructEncoder)([ | ||
data: Buffer.from(getInstructionEncoder(new Uint8Array([ | ||
/* await splDiscriminate('spl_token_group_interface:initialize_token_group') */ | ||
121, 113, 108, 39, 54, 51, 0, 4, | ||
]), (0, codecs_1.getStructEncoder)([ | ||
['updateAuthority', getPublicKeyEncoder()], | ||
@@ -44,3 +46,6 @@ ['maxSize', (0, codecs_1.getU64Encoder)()], | ||
], | ||
data: Buffer.from(getInstructionEncoder((0, spl_type_length_value_1.splDiscriminate)('spl_token_group_interface:update_group_max_size'), (0, codecs_1.getStructEncoder)([['maxSize', (0, codecs_1.getU64Encoder)()]])).encode({ maxSize })), | ||
data: Buffer.from(getInstructionEncoder(new Uint8Array([ | ||
/* await splDiscriminate('spl_token_group_interface:update_group_max_size') */ | ||
108, 37, 171, 143, 248, 30, 18, 110, | ||
]), (0, codecs_1.getStructEncoder)([['maxSize', (0, codecs_1.getU64Encoder)()]])).encode({ maxSize })), | ||
}); | ||
@@ -56,3 +61,6 @@ } | ||
], | ||
data: Buffer.from(getInstructionEncoder((0, spl_type_length_value_1.splDiscriminate)('spl_token_group_interface:update_authority'), (0, codecs_1.getStructEncoder)([['newAuthority', getPublicKeyEncoder()]])).encode({ newAuthority: newAuthority !== null && newAuthority !== void 0 ? newAuthority : web3_js_1.SystemProgram.programId })), | ||
data: Buffer.from(getInstructionEncoder(new Uint8Array([ | ||
/* await splDiscriminate('spl_token_group_interface:update_authority') */ | ||
161, 105, 88, 1, 237, 221, 216, 203, | ||
]), (0, codecs_1.getStructEncoder)([['newAuthority', getPublicKeyEncoder()]])).encode({ newAuthority: newAuthority !== null && newAuthority !== void 0 ? newAuthority : web3_js_1.SystemProgram.programId })), | ||
}); | ||
@@ -71,5 +79,8 @@ } | ||
], | ||
data: Buffer.from(getInstructionEncoder((0, spl_type_length_value_1.splDiscriminate)('spl_token_group_interface:initialize_member'), (0, codecs_1.getStructEncoder)([])).encode({})), | ||
data: Buffer.from(getInstructionEncoder(new Uint8Array([ | ||
/* await splDiscriminate('spl_token_group_interface:initialize_member') */ | ||
152, 32, 222, 176, 223, 237, 116, 134, | ||
]), (0, codecs_1.getStructEncoder)([])).encode({})), | ||
}); | ||
} | ||
//# sourceMappingURL=instruction.js.map |
import { fixEncoderSize, getBytesEncoder, getStructEncoder, getTupleEncoder, getU64Encoder, transformEncoder, } from '@solana/codecs'; | ||
import { splDiscriminate } from '@solana/spl-type-length-value'; | ||
import { SystemProgram, TransactionInstruction } from '@solana/web3.js'; | ||
@@ -22,3 +21,6 @@ function getInstructionEncoder(discriminator, dataEncoder) { | ||
], | ||
data: Buffer.from(getInstructionEncoder(splDiscriminate('spl_token_group_interface:initialize_token_group'), getStructEncoder([ | ||
data: Buffer.from(getInstructionEncoder(new Uint8Array([ | ||
/* await splDiscriminate('spl_token_group_interface:initialize_token_group') */ | ||
121, 113, 108, 39, 54, 51, 0, 4, | ||
]), getStructEncoder([ | ||
['updateAuthority', getPublicKeyEncoder()], | ||
@@ -37,3 +39,6 @@ ['maxSize', getU64Encoder()], | ||
], | ||
data: Buffer.from(getInstructionEncoder(splDiscriminate('spl_token_group_interface:update_group_max_size'), getStructEncoder([['maxSize', getU64Encoder()]])).encode({ maxSize })), | ||
data: Buffer.from(getInstructionEncoder(new Uint8Array([ | ||
/* await splDiscriminate('spl_token_group_interface:update_group_max_size') */ | ||
108, 37, 171, 143, 248, 30, 18, 110, | ||
]), getStructEncoder([['maxSize', getU64Encoder()]])).encode({ maxSize })), | ||
}); | ||
@@ -49,3 +54,6 @@ } | ||
], | ||
data: Buffer.from(getInstructionEncoder(splDiscriminate('spl_token_group_interface:update_authority'), getStructEncoder([['newAuthority', getPublicKeyEncoder()]])).encode({ newAuthority: newAuthority ?? SystemProgram.programId })), | ||
data: Buffer.from(getInstructionEncoder(new Uint8Array([ | ||
/* await splDiscriminate('spl_token_group_interface:update_authority') */ | ||
161, 105, 88, 1, 237, 221, 216, 203, | ||
]), getStructEncoder([['newAuthority', getPublicKeyEncoder()]])).encode({ newAuthority: newAuthority ?? SystemProgram.programId })), | ||
}); | ||
@@ -64,5 +72,8 @@ } | ||
], | ||
data: Buffer.from(getInstructionEncoder(splDiscriminate('spl_token_group_interface:initialize_member'), getStructEncoder([])).encode({})), | ||
data: Buffer.from(getInstructionEncoder(new Uint8Array([ | ||
/* await splDiscriminate('spl_token_group_interface:initialize_member') */ | ||
152, 32, 222, 176, 223, 237, 116, 134, | ||
]), getStructEncoder([])).encode({})), | ||
}); | ||
} | ||
//# sourceMappingURL=instruction.js.map |
{ | ||
"name": "@solana/spl-token-group", | ||
"description": "SPL Token Group Interface JS API", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"author": "Solana Labs Maintainers <maintainers@solanalabs.com>", | ||
@@ -34,22 +34,22 @@ "repository": "https://github.com/solana-labs/solana-program-library", | ||
"dependencies": { | ||
"@solana/codecs": "2.0.0-rc.1", | ||
"@solana/spl-type-length-value": "0.1.0" | ||
"@solana/codecs": "2.0.0-rc.1" | ||
}, | ||
"devDependencies": { | ||
"@solana/spl-type-length-value": "0.2.0", | ||
"@solana/web3.js": "^1.95.3", | ||
"@types/chai": "^4.3.18", | ||
"@types/mocha": "^10.0.7", | ||
"@types/node": "^22.5.0", | ||
"@typescript-eslint/eslint-plugin": "^8.3.0", | ||
"@typescript-eslint/parser": "^8.3.0", | ||
"@types/chai": "^5.0.0", | ||
"@types/mocha": "^10.0.9", | ||
"@types/node": "^22.7.6", | ||
"@typescript-eslint/eslint-plugin": "^8.4.0", | ||
"@typescript-eslint/parser": "^8.4.0", | ||
"chai": "^5.1.1", | ||
"eslint": "^8.57.0", | ||
"eslint-plugin-require-extensions": "^0.1.1", | ||
"gh-pages": "^6.1.1", | ||
"gh-pages": "^6.2.0", | ||
"mocha": "^10.7.3", | ||
"shx": "^0.3.4", | ||
"ts-node": "^10.9.2", | ||
"tslib": "^2.7.0", | ||
"typedoc": "^0.26.6", | ||
"typescript": "^5.5.4" | ||
"tslib": "^2.8.0", | ||
"typedoc": "^0.26.10", | ||
"typescript": "^5.6.3" | ||
}, | ||
@@ -56,0 +56,0 @@ "scripts": { |
@@ -11,3 +11,2 @@ import type { Encoder } from '@solana/codecs'; | ||
} from '@solana/codecs'; | ||
import { splDiscriminate } from '@solana/spl-type-length-value'; | ||
import { SystemProgram, TransactionInstruction } from '@solana/web3.js'; | ||
@@ -47,3 +46,6 @@ | ||
getInstructionEncoder( | ||
splDiscriminate('spl_token_group_interface:initialize_token_group'), | ||
new Uint8Array([ | ||
/* await splDiscriminate('spl_token_group_interface:initialize_token_group') */ | ||
121, 113, 108, 39, 54, 51, 0, 4, | ||
]), | ||
getStructEncoder([ | ||
@@ -75,3 +77,6 @@ ['updateAuthority', getPublicKeyEncoder()], | ||
getInstructionEncoder( | ||
splDiscriminate('spl_token_group_interface:update_group_max_size'), | ||
new Uint8Array([ | ||
/* await splDiscriminate('spl_token_group_interface:update_group_max_size') */ | ||
108, 37, 171, 143, 248, 30, 18, 110, | ||
]), | ||
getStructEncoder([['maxSize', getU64Encoder()]]), | ||
@@ -101,3 +106,6 @@ ).encode({ maxSize }), | ||
getInstructionEncoder( | ||
splDiscriminate('spl_token_group_interface:update_authority'), | ||
new Uint8Array([ | ||
/* await splDiscriminate('spl_token_group_interface:update_authority') */ | ||
161, 105, 88, 1, 237, 221, 216, 203, | ||
]), | ||
getStructEncoder([['newAuthority', getPublicKeyEncoder()]]), | ||
@@ -132,3 +140,6 @@ ).encode({ newAuthority: newAuthority ?? SystemProgram.programId }), | ||
getInstructionEncoder( | ||
splDiscriminate('spl_token_group_interface:initialize_member'), | ||
new Uint8Array([ | ||
/* await splDiscriminate('spl_token_group_interface:initialize_member') */ | ||
152, 32, 222, 176, 223, 237, 116, 134, | ||
]), | ||
getStructEncoder([]), | ||
@@ -135,0 +146,0 @@ ).encode({}), |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66111
2
48
800
17
- Removed@solana/spl-type-length-value@0.1.0
- Removed@solana/spl-type-length-value@0.1.0(transitive)