• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bmresearch / Solnet / 15457586163

05 Jun 2025 03:15AM UTC coverage: 70.35% (-0.4%) from 70.792%
15457586163

Pull #498

github

web-flow
Merge 6feec6863 into 632c6bef2
Pull Request #498: Account compression program

1137 of 1834 branches covered (62.0%)

Branch coverage included in aggregate %.

148 of 239 new or added lines in 4 files covered. (61.92%)

5267 of 7269 relevant lines covered (72.46%)

1161944.55 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Solnet.Programs/AccountCompression/AccountCompressionProgramInstructions.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

7
namespace Solnet.Programs
8
{
9
    /// <summary>
10
    /// Represents the instruction types for the <see cref="AccountCompressionProgram"/> ??? along with a friendly name so as not to use reflection ???.
11
    /// <remarks>
12
    /// For more information see:
13
    /// https://docs.rs/spl-account-compression/latest/spl_account_compression/instruction/index.html
14
    /// https://github.com/solana-program/account-compression/blob/ac-mainnet-tag/account-compression/sdk/src/instructions/index.ts
15
    /// </remarks>
16
    /// </summary>
17
    internal static class AccountCompressionProgramInstructions
18
    {
19
        /// <summary>
20
        /// Represents the user-friendly names for the instruction types for the <see cref="AccountCompressionProgram"/>.
21
        /// </summary>
NEW
22
        internal static readonly Dictionary<Values, string> Names = new()
×
NEW
23
        {
×
NEW
24
            { Values.Append, "Append Merkle Tree" },
×
NEW
25
            { Values.CloseEmptyTree, "Close Empty Tree" },
×
NEW
26
            { Values.InitEmptyMerkleTree, "Init Empty Merkle Tree" },
×
NEW
27
            { Values.ReplaceLeaf, "Replace Leaf" },
×
NEW
28
            { Values.InsertOrAppend, "Insert Or Append Leaf" },
×
NEW
29
            { Values.TransferAuthority, "Transfer Authority" },
×
NEW
30
            { Values.VerifyLeaf, "Verify Leaf" }
×
NEW
31
        };
×
32
        /// <summary>
33
        /// Represents the instruction types for the <see cref="AccountCompressionProgram"/>.
34
        /// </summary>
35
        internal enum Values: uint
36
        {
37
            Append = 0,
38
            CloseEmptyTree = 1,
39
            InitEmptyMerkleTree = 2,
40
            ReplaceLeaf = 3,
41
            InsertOrAppend = 4,
42
            TransferAuthority = 5,
43
            VerifyLeaf = 6
44
        }
45
    }
46
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc