Skip to content

Commit

Permalink
feat(scripts): add publish
Browse files Browse the repository at this point in the history
v1.0.1-canary.0

fix(dependencies): add 'assert' as an explicit dependency

refactor(program-id): update program id to staging
  • Loading branch information
vovacodes committed Jan 12, 2023
1 parent 96a1b18 commit 0dc187c
Show file tree
Hide file tree
Showing 16 changed files with 190 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ seeds = false
skip-lint = false

[programs.localnet]
multisig = "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"
multisig = "7YYnaRgQeHYd2FKGKkwASM2ZNZHTo1GvcicsyKKFvcoh"

[registry]
url = "https://api.apr.dev"
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"build": "turbo run build",
"test": "turbo run build && anchor test",
"ts": "turbo run ts && yarn tsc --noEmit"
"ts": "turbo run ts && yarn tsc --noEmit",
"deploy": "anchor deploy --provider.cluster mainnet-beta --provider.wallet .keys/upgrade-authority.json --program-name multisig"
},
"devDependencies": {
"@solana/spl-token": "0.3.6",
Expand Down
2 changes: 1 addition & 1 deletion programs/multisig/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mod instructions;
mod state;
mod utils;

declare_id!("Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS");
declare_id!("7YYnaRgQeHYd2FKGKkwASM2ZNZHTo1GvcicsyKKFvcoh");

#[program]
pub mod multisig {
Expand Down
2 changes: 1 addition & 1 deletion sdk/multisig/.solitarc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const binaryInstallDir = path.join(__dirname, ".crates");
module.exports = {
idlGenerator: "anchor",
programName: "multisig",
programId: "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS",
programId: "7YYnaRgQeHYd2FKGKkwASM2ZNZHTo1GvcicsyKKFvcoh",
idlDir,
sdkDir,
binaryInstallDir,
Expand Down
2 changes: 1 addition & 1 deletion sdk/multisig/idl/multisig.json
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@
}
],
"metadata": {
"address": "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS",
"address": "7YYnaRgQeHYd2FKGKkwASM2ZNZHTo1GvcicsyKKFvcoh",
"origin": "anchor",
"binaryVersion": "0.26.0",
"libVersion": "=0.26.0"
Expand Down
6 changes: 4 additions & 2 deletions sdk/multisig/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
{
"name": "@sqds/multisig",
"version": "1.0.0",
"version": "1.0.1-canary.0",
"description": "SDK for Squads Multisig Program v4",
"main": "lib/index.js",
"license": "MIT",
"scripts": {
"build": "tsc",
"generate": "yarn solita",
"ts": "tsc --noEmit"
"ts": "tsc --noEmit",
"prepare:canary": "yarn build && npm version --prerelease --preid=canary"
},
"dependencies": {
"@metaplex-foundation/beet": "0.7.1",
"@metaplex-foundation/beet-solana": "0.4.0",
"@metaplex-foundation/cusper": "^0.0.2",
"@solana/web3.js": "*",
"@types/bn.js": "^5.1.1",
"assert": "^2.0.0",
"bn.js": "^5.2.1",
"buffer": "6.0.3",
"invariant": "2.2.4"
Expand Down
2 changes: 1 addition & 1 deletion sdk/multisig/src/generated/accounts/Multisig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class Multisig implements MultisigArgs {
*/
static gpaBuilder(
programId: web3.PublicKey = new web3.PublicKey(
'Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS'
'7YYnaRgQeHYd2FKGKkwASM2ZNZHTo1GvcicsyKKFvcoh'
)
) {
return beetSolana.GpaBuilder.fromStruct(programId, multisigBeet)
Expand Down
2 changes: 1 addition & 1 deletion sdk/multisig/src/generated/accounts/MultisigTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class MultisigTransaction implements MultisigTransactionArgs {
*/
static gpaBuilder(
programId: web3.PublicKey = new web3.PublicKey(
'Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS'
'7YYnaRgQeHYd2FKGKkwASM2ZNZHTo1GvcicsyKKFvcoh'
)
) {
return beetSolana.GpaBuilder.fromStruct(programId, multisigTransactionBeet)
Expand Down
2 changes: 1 addition & 1 deletion sdk/multisig/src/generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export * from './types'
* @category constants
* @category generated
*/
export const PROGRAM_ADDRESS = 'Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS'
export const PROGRAM_ADDRESS = '7YYnaRgQeHYd2FKGKkwASM2ZNZHTo1GvcicsyKKFvcoh'

/**
* Program public key
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const multisigAddMemberInstructionDiscriminator = [
export function createMultisigAddMemberInstruction(
accounts: MultisigAddMemberInstructionAccounts,
args: MultisigAddMemberInstructionArgs,
programId = new web3.PublicKey('Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS')
programId = new web3.PublicKey('7YYnaRgQeHYd2FKGKkwASM2ZNZHTo1GvcicsyKKFvcoh')
) {
const [data] = multisigAddMemberStruct.serialize({
instructionDiscriminator: multisigAddMemberInstructionDiscriminator,
Expand Down
2 changes: 1 addition & 1 deletion sdk/multisig/src/generated/instructions/multisigCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const multisigCreateInstructionDiscriminator = [
export function createMultisigCreateInstruction(
accounts: MultisigCreateInstructionAccounts,
args: MultisigCreateInstructionArgs,
programId = new web3.PublicKey('Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS')
programId = new web3.PublicKey('7YYnaRgQeHYd2FKGKkwASM2ZNZHTo1GvcicsyKKFvcoh')
) {
const [data] = multisigCreateStruct.serialize({
instructionDiscriminator: multisigCreateInstructionDiscriminator,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const transactionApproveInstructionDiscriminator = [
export function createTransactionApproveInstruction(
accounts: TransactionApproveInstructionAccounts,
args: TransactionApproveInstructionArgs,
programId = new web3.PublicKey('Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS')
programId = new web3.PublicKey('7YYnaRgQeHYd2FKGKkwASM2ZNZHTo1GvcicsyKKFvcoh')
) {
const [data] = transactionApproveStruct.serialize({
instructionDiscriminator: transactionApproveInstructionDiscriminator,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const transactionCreateInstructionDiscriminator = [
export function createTransactionCreateInstruction(
accounts: TransactionCreateInstructionAccounts,
args: TransactionCreateInstructionArgs,
programId = new web3.PublicKey('Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS')
programId = new web3.PublicKey('7YYnaRgQeHYd2FKGKkwASM2ZNZHTo1GvcicsyKKFvcoh')
) {
const [data] = transactionCreateStruct.serialize({
instructionDiscriminator: transactionCreateInstructionDiscriminator,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const transactionExecuteInstructionDiscriminator = [
*/
export function createTransactionExecuteInstruction(
accounts: TransactionExecuteInstructionAccounts,
programId = new web3.PublicKey('Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS')
programId = new web3.PublicKey('7YYnaRgQeHYd2FKGKkwASM2ZNZHTo1GvcicsyKKFvcoh')
) {
const [data] = transactionExecuteStruct.serialize({
instructionDiscriminator: transactionExecuteInstructionDiscriminator,
Expand Down
4 changes: 4 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"ts": {
"inputs": ["src/**/*.ts", "tests/**/*.ts", "package.json"],
"outputs": []
},
"deploy": {
"dependsOn": ["build"],
"cache": false
}
}
}
Loading

0 comments on commit 0dc187c

Please sign in to comment.