fortis-multisig-client 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/accounts/index.d.ts +3 -3
- package/dist/generated/accounts/index.js +3 -3
- package/dist/generated/index.d.ts +4 -4
- package/dist/generated/index.js +4 -4
- package/dist/generated/instructions/index.d.ts +5 -5
- package/dist/generated/instructions/index.js +5 -5
- package/dist/generated/programs/index.d.ts +1 -1
- package/dist/generated/programs/index.js +1 -1
- package/dist/generated/types/index.d.ts +6 -6
- package/dist/generated/types/index.js +6 -6
- package/dist/instructions/index.d.ts +5 -5
- package/dist/instructions/index.js +5 -5
- package/dist/instructions/multisigCreate.js +1 -1
- package/dist/instructions/proposalAccountsClose.js +2 -2
- package/dist/instructions/proposalApprove.js +2 -2
- package/dist/instructions/proposalCreate.js +2 -2
- package/dist/instructions/proposalExecute.js +2 -2
- package/dist/pda.js +1 -1
- package/dist/utils/compileToWrappedMessageV0.js +1 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
8
|
+
export * from "./accounts/index.js";
|
|
9
|
+
export * from "./instructions/index.js";
|
|
10
|
+
export * from "./programs/index.js";
|
|
11
|
+
export * from "./types/index.js";
|
package/dist/generated/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
8
|
+
export * from "./accounts/index.js";
|
|
9
|
+
export * from "./instructions/index.js";
|
|
10
|
+
export * from "./programs/index.js";
|
|
11
|
+
export * from "./types/index.js";
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
|
-
export * from './multisigCreate';
|
|
9
|
-
export * from './proposalAccountsClose';
|
|
10
|
-
export * from './proposalApprove';
|
|
11
|
-
export * from './proposalCreate';
|
|
12
|
-
export * from './proposalExecute';
|
|
8
|
+
export * from './multisigCreate.js';
|
|
9
|
+
export * from './proposalAccountsClose.js';
|
|
10
|
+
export * from './proposalApprove.js';
|
|
11
|
+
export * from './proposalCreate.js';
|
|
12
|
+
export * from './proposalExecute.js';
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
|
-
export * from './multisigCreate';
|
|
9
|
-
export * from './proposalAccountsClose';
|
|
10
|
-
export * from './proposalApprove';
|
|
11
|
-
export * from './proposalCreate';
|
|
12
|
-
export * from './proposalExecute';
|
|
8
|
+
export * from './multisigCreate.js';
|
|
9
|
+
export * from './proposalAccountsClose.js';
|
|
10
|
+
export * from './proposalApprove.js';
|
|
11
|
+
export * from './proposalCreate.js';
|
|
12
|
+
export * from './proposalExecute.js';
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
|
-
export * from './compiledInstruction';
|
|
9
|
-
export * from './messageAddressTableLookup';
|
|
10
|
-
export * from './multisigCreateArgs';
|
|
11
|
-
export * from './proposalApproveArgs';
|
|
12
|
-
export * from './proposalCreateArgs';
|
|
13
|
-
export * from './vaultTransactionMessage';
|
|
8
|
+
export * from './compiledInstruction.js';
|
|
9
|
+
export * from './messageAddressTableLookup.js';
|
|
10
|
+
export * from './multisigCreateArgs.js';
|
|
11
|
+
export * from './proposalApproveArgs.js';
|
|
12
|
+
export * from './proposalCreateArgs.js';
|
|
13
|
+
export * from './vaultTransactionMessage.js';
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
|
-
export * from './compiledInstruction';
|
|
9
|
-
export * from './messageAddressTableLookup';
|
|
10
|
-
export * from './multisigCreateArgs';
|
|
11
|
-
export * from './proposalApproveArgs';
|
|
12
|
-
export * from './proposalCreateArgs';
|
|
13
|
-
export * from './vaultTransactionMessage';
|
|
8
|
+
export * from './compiledInstruction.js';
|
|
9
|
+
export * from './messageAddressTableLookup.js';
|
|
10
|
+
export * from './multisigCreateArgs.js';
|
|
11
|
+
export * from './proposalApproveArgs.js';
|
|
12
|
+
export * from './proposalCreateArgs.js';
|
|
13
|
+
export * from './vaultTransactionMessage.js';
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
8
|
+
export * from "./multisigCreate.js";
|
|
9
|
+
export * from "./proposalAccountsClose.js";
|
|
10
|
+
export * from "./proposalApprove.js";
|
|
11
|
+
export * from "./proposalCreate.js";
|
|
12
|
+
export * from "./proposalExecute.js";
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
8
|
+
export * from "./multisigCreate.js";
|
|
9
|
+
export * from "./proposalAccountsClose.js";
|
|
10
|
+
export * from "./proposalApprove.js";
|
|
11
|
+
export * from "./proposalCreate.js";
|
|
12
|
+
export * from "./proposalExecute.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SystemProgram } from "@solana/web3.js";
|
|
2
2
|
import { getMultisigCreateInstruction } from "../generated";
|
|
3
|
-
import * as utils from "../utils";
|
|
3
|
+
import * as utils from "../utils.js";
|
|
4
4
|
import { address } from "@solana/kit";
|
|
5
5
|
import { fromLegacyPublicKey } from "@solana/compat";
|
|
6
6
|
export async function multisigCreate({ treasury, creator, multisigPda, threshold, members, createKey, rentCollector, }) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SystemProgram } from "@solana/web3.js";
|
|
2
2
|
import { getProposalAccountsCloseInstruction } from "../generated";
|
|
3
|
-
import * as pda from "../pda";
|
|
4
|
-
import * as utils from "../utils";
|
|
3
|
+
import * as pda from "../pda.js";
|
|
4
|
+
import * as utils from "../utils.js";
|
|
5
5
|
import { fromLegacyPublicKey } from "@solana/compat";
|
|
6
6
|
export async function ProposalAccountsClose({ rentCollector, multisigPda, transactionIndex, }) {
|
|
7
7
|
let proposalPda = pda.getProposalPda({ multisigPda: multisigPda, transactionIndex: transactionIndex });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getProposalApproveInstruction } from "../generated";
|
|
2
|
-
import * as pda from "../pda";
|
|
3
|
-
import * as utils from "../utils";
|
|
2
|
+
import * as pda from "../pda.js";
|
|
3
|
+
import * as utils from "../utils.js";
|
|
4
4
|
import { fromLegacyPublicKey } from "@solana/compat";
|
|
5
5
|
export async function proposalApprove({ member, multisigPda, transactionIndex, }) {
|
|
6
6
|
const args = {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SystemProgram } from "@solana/web3.js";
|
|
2
2
|
import { getProposalCreateInstruction } from "../generated";
|
|
3
|
-
import * as pda from "../pda";
|
|
4
|
-
import * as utils from "../utils";
|
|
3
|
+
import * as pda from "../pda.js";
|
|
4
|
+
import * as utils from "../utils.js";
|
|
5
5
|
import { fromLegacyPublicKey } from "@solana/compat";
|
|
6
6
|
export async function proposalCreate({ creator, multisigPda, ephemeralSigners, votingDeadline, transactionMessage, addressLookupTableAccounts, transactionIndex, }) {
|
|
7
7
|
const transactionMessageBytes = await utils.transactionMessageToMultisigTransactionMessageBytes({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PublicKey } from "@solana/web3.js";
|
|
2
2
|
import { getProposalExecuteInstruction, getVaultTransactionCodec } from "../generated";
|
|
3
|
-
import * as pda from "../pda";
|
|
4
|
-
import * as utils from "../utils";
|
|
3
|
+
import * as pda from "../pda.js";
|
|
4
|
+
import * as utils from "../utils.js";
|
|
5
5
|
import { address, AccountRole } from "@solana/kit";
|
|
6
6
|
import { fromLegacyPublicKey } from "@solana/compat";
|
|
7
7
|
export async function proposalExecute({ connection, member, multisigPda, transactionIndex, }) {
|
package/dist/pda.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FORTIS_MULTISIG_PROGRAM_ADDRESS } from "./generated";
|
|
2
|
-
import { toUtfBytes } from "./utils";
|
|
2
|
+
import { toUtfBytes } from "./utils.js";
|
|
3
3
|
import { PublicKey } from "@solana/web3.js";
|
|
4
4
|
import { address, getU64Encoder } from "@solana/kit";
|
|
5
5
|
const SEED_PREFIX = toUtfBytes("multisig");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MessageAccountKeys, } from "@solana/web3.js";
|
|
2
|
-
import { CompiledKeys } from "./compiled-keys";
|
|
2
|
+
import { CompiledKeys } from "./compiled-keys.js";
|
|
3
3
|
export function compileToWrappedMessageV0({ payerKey, instructions, addressLookupTableAccounts, }) {
|
|
4
4
|
const compiledKeys = CompiledKeys.compile(instructions, payerKey);
|
|
5
5
|
const addressTableLookups = new Array();
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./compiled-keys";
|
|
2
|
-
export * from "./compileToWrappedMessageV0";
|
|
1
|
+
export * from "./compiled-keys.js";
|
|
2
|
+
export * from "./compileToWrappedMessageV0.js";
|
package/dist/utils/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// ts/utils/index.ts
|
|
2
|
-
export * from "./compiled-keys";
|
|
3
|
-
export * from "./compileToWrappedMessageV0";
|
|
2
|
+
export * from "./compiled-keys.js";
|
|
3
|
+
export * from "./compileToWrappedMessageV0.js";
|