@glamsystems/glam-sdk 1.1.0-alpha.6 → 1.1.0

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.
Files changed (137) hide show
  1. package/LICENSE +201 -0
  2. package/buffer-layout.d.ts +88 -0
  3. package/index.cjs.d.ts +1 -0
  4. package/index.cjs.js +1 -92594
  5. package/index.esm.d.ts +1 -0
  6. package/index.esm.js +1 -92146
  7. package/package.json +29 -17
  8. package/src/assets.d.ts +39 -0
  9. package/src/client/access.d.ts +57 -0
  10. package/src/client/base.d.ts +234 -0
  11. package/src/client/bridge.d.ts +205 -0
  12. package/src/client/bridgeRegistry.d.ts +32 -0
  13. package/src/client/cctp.d.ts +164 -0
  14. package/src/client/epi.d.ts +228 -0
  15. package/src/client/fees.d.ts +33 -0
  16. package/src/client/invest.d.ts +37 -0
  17. package/src/client/jupiter-lend/borrow.d.ts +92 -0
  18. package/src/client/jupiter-lend/earn.d.ts +64 -0
  19. package/src/client/jupiter-lend/index.d.ts +3 -0
  20. package/src/client/jupiter-lend/shared.d.ts +129 -0
  21. package/src/client/jupiter.d.ts +53 -0
  22. package/src/client/kamino/farm.d.ts +39 -0
  23. package/src/client/kamino/index.d.ts +4 -0
  24. package/src/client/kamino/lending.d.ts +94 -0
  25. package/src/client/kamino/types.d.ts +56 -0
  26. package/src/client/kamino/vaults.d.ts +39 -0
  27. package/src/client/loopscale/borrow.d.ts +118 -0
  28. package/src/client/loopscale/core.d.ts +604 -0
  29. package/src/client/loopscale/index.d.ts +5 -0
  30. package/src/client/loopscale/lend.d.ts +123 -0
  31. package/src/client/loopscale/vault.d.ts +43 -0
  32. package/src/client/marinade.d.ts +42 -0
  33. package/src/client/mint.d.ts +143 -0
  34. package/src/client/orca.d.ts +255 -0
  35. package/src/client/phoenix.d.ts +214 -0
  36. package/src/client/price.d.ts +182 -0
  37. package/src/client/stake-pool.d.ts +39 -0
  38. package/src/client/stake.d.ts +34 -0
  39. package/src/client/state.d.ts +56 -0
  40. package/src/client/timelock.d.ts +31 -0
  41. package/src/client/vault.d.ts +98 -0
  42. package/src/client.d.ts +82 -0
  43. package/src/clientConfig.d.ts +32 -0
  44. package/src/constants.d.ts +111 -0
  45. package/src/deser/base.d.ts +18 -0
  46. package/src/deser/index.d.ts +4 -0
  47. package/src/deser/integrationPolicies.d.ts +195 -0
  48. package/src/deser/kaminoLayouts.d.ts +264 -0
  49. package/src/deser/loopscaleLayouts.d.ts +157 -0
  50. package/src/deser/tokenAclLayouts.d.ts +67 -0
  51. package/src/error.d.ts +29 -0
  52. package/src/glamExports.d.ts +6260 -0
  53. package/src/globalConfig.d.ts +27 -0
  54. package/src/index.d.ts +24 -0
  55. package/src/models/acl.d.ts +43 -0
  56. package/src/models/index.d.ts +8 -0
  57. package/src/models/mint.d.ts +57 -0
  58. package/src/models/state.d.ts +94 -0
  59. package/src/models/types.d.ts +28 -0
  60. package/src/protocols.d.ts +29 -0
  61. package/src/utils/accounts.d.ts +71 -0
  62. package/src/utils/bitmask.d.ts +53 -0
  63. package/src/utils/blockhash.d.ts +11 -0
  64. package/src/utils/common.d.ts +73 -0
  65. package/src/utils/computeBudget.d.ts +15 -0
  66. package/src/utils/evm.d.ts +10 -0
  67. package/src/utils/fraction.d.ts +29 -0
  68. package/src/utils/glamPDAs.d.ts +15 -0
  69. package/src/utils/helius.d.ts +66 -0
  70. package/src/utils/index.d.ts +17 -0
  71. package/src/utils/jupiterApi.d.ts +95 -0
  72. package/src/utils/lookupTables.d.ts +83 -0
  73. package/src/utils/phoenixApi.d.ts +146 -0
  74. package/src/utils/pkmap.d.ts +87 -0
  75. package/src/utils/pkset.d.ts +73 -0
  76. package/src/utils/positionCategorizer.d.ts +38 -0
  77. package/src/utils/rpc.d.ts +18 -0
  78. package/src/utils/timelock.d.ts +52 -0
  79. package/src/utils/transaction.d.ts +13 -0
  80. package/target/idl/ext_bridge-staging.json +2379 -0
  81. package/target/idl/ext_bridge.json +2379 -0
  82. package/target/idl/ext_drift.json +5464 -0
  83. package/target/idl/ext_epi-staging.json +2862 -0
  84. package/target/idl/ext_epi.json +2862 -0
  85. package/target/idl/ext_loopscale-staging.json +4708 -0
  86. package/target/idl/ext_loopscale.json +4708 -0
  87. package/target/idl/ext_marinade-staging.json +1587 -0
  88. package/target/idl/ext_phoenix-staging.json +3525 -0
  89. package/target/idl/ext_phoenix.json +3525 -0
  90. package/target/idl/mock_layerzero_endpoint.json +144 -0
  91. package/target/idl/mock_layerzero_oft.json +155 -0
  92. package/target/idl/mock_wormhole_verify_vaa_shim.json +58 -0
  93. package/target/types/ext_bridge-staging.d.ts +2385 -0
  94. package/target/types/ext_bridge-staging.ts +2385 -0
  95. package/target/types/ext_bridge.d.ts +2385 -0
  96. package/target/types/ext_bridge.ts +2385 -0
  97. package/target/types/ext_cctp-staging.d.ts +1268 -0
  98. package/target/types/ext_cctp.d.ts +1268 -0
  99. package/target/types/ext_drift.d.ts +5470 -0
  100. package/target/types/ext_drift.ts +5470 -0
  101. package/target/types/ext_epi-staging.d.ts +2868 -0
  102. package/target/types/ext_epi-staging.ts +2868 -0
  103. package/target/types/ext_epi.d.ts +2868 -0
  104. package/target/types/ext_epi.ts +2868 -0
  105. package/target/types/ext_jupiter-staging.d.ts +1966 -0
  106. package/target/types/ext_jupiter.d.ts +1966 -0
  107. package/target/types/ext_kamino-staging.d.ts +3433 -0
  108. package/target/types/ext_kamino.d.ts +3433 -0
  109. package/target/types/ext_loopscale-staging.d.ts +4714 -0
  110. package/target/types/ext_loopscale-staging.ts +4714 -0
  111. package/target/types/ext_loopscale.d.ts +4714 -0
  112. package/target/types/ext_loopscale.ts +4714 -0
  113. package/target/types/ext_marinade-staging.d.ts +1593 -0
  114. package/target/types/ext_marinade-staging.ts +1593 -0
  115. package/target/types/ext_marinade.d.ts +1593 -0
  116. package/target/types/ext_orca-staging.d.ts +2829 -0
  117. package/target/types/ext_orca.d.ts +2829 -0
  118. package/target/types/ext_phoenix-staging.d.ts +3531 -0
  119. package/target/types/ext_phoenix-staging.ts +3531 -0
  120. package/target/types/ext_phoenix.d.ts +3531 -0
  121. package/target/types/ext_phoenix.ts +3531 -0
  122. package/target/types/ext_spl-staging.d.ts +1274 -0
  123. package/target/types/ext_spl.d.ts +1274 -0
  124. package/target/types/ext_stake_pool-staging.d.ts +1622 -0
  125. package/target/types/ext_stake_pool.d.ts +1622 -0
  126. package/target/types/glam_config.d.ts +755 -0
  127. package/target/types/glam_mint-staging.d.ts +8802 -0
  128. package/target/types/glam_mint.d.ts +6349 -0
  129. package/target/types/glam_policies.d.ts +477 -0
  130. package/target/types/glam_protocol-staging.d.ts +3362 -0
  131. package/target/types/glam_protocol.d.ts +2783 -0
  132. package/target/types/mock_layerzero_endpoint.d.ts +150 -0
  133. package/target/types/mock_layerzero_endpoint.ts +150 -0
  134. package/target/types/mock_layerzero_oft.d.ts +161 -0
  135. package/target/types/mock_layerzero_oft.ts +161 -0
  136. package/target/types/mock_wormhole_verify_vaa_shim.d.ts +64 -0
  137. package/target/types/mock_wormhole_verify_vaa_shim.ts +64 -0
@@ -0,0 +1,150 @@
1
+ /**
2
+ * Program IDL in camelCase format in order to be used in JS/TS.
3
+ *
4
+ * Note that this is only a type helper and is not the actual IDL. The original
5
+ * IDL can be found at `target/idl/mock_layerzero_endpoint.json`.
6
+ */
7
+ export type MockLayerzeroEndpoint = {
8
+ "address": "7VCSNNGUmS4f1qDE73PmkSWbV3kBhRPJko1g7t9YTSbM";
9
+ "metadata": {
10
+ "name": "mockLayerzeroEndpoint";
11
+ "version": "1.0.0";
12
+ "spec": "0.1.0";
13
+ };
14
+ "instructions": [
15
+ {
16
+ "name": "advanceNonce";
17
+ "discriminator": [
18
+ 20,
19
+ 17,
20
+ 71,
21
+ 131,
22
+ 103,
23
+ 35,
24
+ 92,
25
+ 6
26
+ ];
27
+ "accounts": [
28
+ {
29
+ "name": "nonce";
30
+ "writable": true;
31
+ "pda": {
32
+ "seeds": [
33
+ {
34
+ "kind": "const";
35
+ "value": [
36
+ 78,
37
+ 111,
38
+ 110,
39
+ 99,
40
+ 101
41
+ ];
42
+ },
43
+ {
44
+ "kind": "arg";
45
+ "path": "sender";
46
+ },
47
+ {
48
+ "kind": "arg";
49
+ "path": "dstEid";
50
+ },
51
+ {
52
+ "kind": "arg";
53
+ "path": "receiver";
54
+ }
55
+ ];
56
+ };
57
+ }
58
+ ];
59
+ "args": [
60
+ {
61
+ "name": "sender";
62
+ "type": "pubkey";
63
+ },
64
+ {
65
+ "name": "dstEid";
66
+ "type": "u32";
67
+ },
68
+ {
69
+ "name": "receiver";
70
+ "type": "pubkey";
71
+ }
72
+ ];
73
+ },
74
+ {
75
+ "name": "initializeNonce";
76
+ "discriminator": [
77
+ 64,
78
+ 206,
79
+ 214,
80
+ 231,
81
+ 20,
82
+ 15,
83
+ 231,
84
+ 41
85
+ ];
86
+ "accounts": [
87
+ {
88
+ "name": "payer";
89
+ "writable": true;
90
+ "signer": true;
91
+ },
92
+ {
93
+ "name": "nonce";
94
+ "writable": true;
95
+ "pda": {
96
+ "seeds": [
97
+ {
98
+ "kind": "const";
99
+ "value": [
100
+ 78,
101
+ 111,
102
+ 110,
103
+ 99,
104
+ 101
105
+ ];
106
+ },
107
+ {
108
+ "kind": "arg";
109
+ "path": "sender";
110
+ },
111
+ {
112
+ "kind": "arg";
113
+ "path": "dstEid";
114
+ },
115
+ {
116
+ "kind": "arg";
117
+ "path": "receiver";
118
+ }
119
+ ];
120
+ };
121
+ },
122
+ {
123
+ "name": "systemProgram";
124
+ "address": "11111111111111111111111111111111";
125
+ }
126
+ ];
127
+ "args": [
128
+ {
129
+ "name": "sender";
130
+ "type": "pubkey";
131
+ },
132
+ {
133
+ "name": "dstEid";
134
+ "type": "u32";
135
+ },
136
+ {
137
+ "name": "receiver";
138
+ "type": "pubkey";
139
+ }
140
+ ];
141
+ }
142
+ ];
143
+ "errors": [
144
+ {
145
+ "code": 6000;
146
+ "name": "invalidNonceAccount";
147
+ "msg": "The nonce account layout is invalid";
148
+ }
149
+ ];
150
+ };
@@ -0,0 +1,150 @@
1
+ /**
2
+ * Program IDL in camelCase format in order to be used in JS/TS.
3
+ *
4
+ * Note that this is only a type helper and is not the actual IDL. The original
5
+ * IDL can be found at `target/idl/mock_layerzero_endpoint.json`.
6
+ */
7
+ export type MockLayerzeroEndpoint = {
8
+ "address": "7VCSNNGUmS4f1qDE73PmkSWbV3kBhRPJko1g7t9YTSbM",
9
+ "metadata": {
10
+ "name": "mockLayerzeroEndpoint",
11
+ "version": "1.0.0",
12
+ "spec": "0.1.0"
13
+ },
14
+ "instructions": [
15
+ {
16
+ "name": "advanceNonce",
17
+ "discriminator": [
18
+ 20,
19
+ 17,
20
+ 71,
21
+ 131,
22
+ 103,
23
+ 35,
24
+ 92,
25
+ 6
26
+ ],
27
+ "accounts": [
28
+ {
29
+ "name": "nonce",
30
+ "writable": true,
31
+ "pda": {
32
+ "seeds": [
33
+ {
34
+ "kind": "const",
35
+ "value": [
36
+ 78,
37
+ 111,
38
+ 110,
39
+ 99,
40
+ 101
41
+ ]
42
+ },
43
+ {
44
+ "kind": "arg",
45
+ "path": "sender"
46
+ },
47
+ {
48
+ "kind": "arg",
49
+ "path": "dstEid"
50
+ },
51
+ {
52
+ "kind": "arg",
53
+ "path": "receiver"
54
+ }
55
+ ]
56
+ }
57
+ }
58
+ ],
59
+ "args": [
60
+ {
61
+ "name": "sender",
62
+ "type": "pubkey"
63
+ },
64
+ {
65
+ "name": "dstEid",
66
+ "type": "u32"
67
+ },
68
+ {
69
+ "name": "receiver",
70
+ "type": "pubkey"
71
+ }
72
+ ]
73
+ },
74
+ {
75
+ "name": "initializeNonce",
76
+ "discriminator": [
77
+ 64,
78
+ 206,
79
+ 214,
80
+ 231,
81
+ 20,
82
+ 15,
83
+ 231,
84
+ 41
85
+ ],
86
+ "accounts": [
87
+ {
88
+ "name": "payer",
89
+ "writable": true,
90
+ "signer": true
91
+ },
92
+ {
93
+ "name": "nonce",
94
+ "writable": true,
95
+ "pda": {
96
+ "seeds": [
97
+ {
98
+ "kind": "const",
99
+ "value": [
100
+ 78,
101
+ 111,
102
+ 110,
103
+ 99,
104
+ 101
105
+ ]
106
+ },
107
+ {
108
+ "kind": "arg",
109
+ "path": "sender"
110
+ },
111
+ {
112
+ "kind": "arg",
113
+ "path": "dstEid"
114
+ },
115
+ {
116
+ "kind": "arg",
117
+ "path": "receiver"
118
+ }
119
+ ]
120
+ }
121
+ },
122
+ {
123
+ "name": "systemProgram",
124
+ "address": "11111111111111111111111111111111"
125
+ }
126
+ ],
127
+ "args": [
128
+ {
129
+ "name": "sender",
130
+ "type": "pubkey"
131
+ },
132
+ {
133
+ "name": "dstEid",
134
+ "type": "u32"
135
+ },
136
+ {
137
+ "name": "receiver",
138
+ "type": "pubkey"
139
+ }
140
+ ]
141
+ }
142
+ ],
143
+ "errors": [
144
+ {
145
+ "code": 6000,
146
+ "name": "invalidNonceAccount",
147
+ "msg": "The nonce account layout is invalid"
148
+ }
149
+ ]
150
+ };
@@ -0,0 +1,161 @@
1
+ /**
2
+ * Program IDL in camelCase format in order to be used in JS/TS.
3
+ *
4
+ * Note that this is only a type helper and is not the actual IDL. The original
5
+ * IDL can be found at `target/idl/mock_layerzero_oft.json`.
6
+ */
7
+ export type MockLayerzeroOft = {
8
+ "address": "G6cLMyeKew7B7RR1eAsYhKViYNcknwfwJ4ZbSDwWSS4z";
9
+ "metadata": {
10
+ "name": "mockLayerzeroOft";
11
+ "version": "1.0.0";
12
+ "spec": "0.1.0";
13
+ };
14
+ "instructions": [
15
+ {
16
+ "name": "send";
17
+ "discriminator": [
18
+ 102,
19
+ 251,
20
+ 20,
21
+ 187,
22
+ 65,
23
+ 75,
24
+ 12,
25
+ 69
26
+ ];
27
+ "accounts": [
28
+ {
29
+ "name": "payer";
30
+ "writable": true;
31
+ "signer": true;
32
+ },
33
+ {
34
+ "name": "placeholder0";
35
+ },
36
+ {
37
+ "name": "oftStore";
38
+ },
39
+ {
40
+ "name": "placeholder1";
41
+ },
42
+ {
43
+ "name": "from";
44
+ "writable": true;
45
+ },
46
+ {
47
+ "name": "custody";
48
+ "writable": true;
49
+ },
50
+ {
51
+ "name": "mint";
52
+ },
53
+ {
54
+ "name": "tokenProgram";
55
+ },
56
+ {
57
+ "name": "placeholder2";
58
+ },
59
+ {
60
+ "name": "placeholder3";
61
+ },
62
+ {
63
+ "name": "mockLayerzeroEndpointProgram";
64
+ "address": "7VCSNNGUmS4f1qDE73PmkSWbV3kBhRPJko1g7t9YTSbM";
65
+ },
66
+ {
67
+ "name": "oftStoreDuplicate";
68
+ },
69
+ {
70
+ "name": "placeholder4";
71
+ },
72
+ {
73
+ "name": "placeholder5";
74
+ },
75
+ {
76
+ "name": "placeholder6";
77
+ },
78
+ {
79
+ "name": "placeholder7";
80
+ },
81
+ {
82
+ "name": "placeholder8";
83
+ },
84
+ {
85
+ "name": "nonce";
86
+ "writable": true;
87
+ },
88
+ {
89
+ "name": "systemProgram";
90
+ "address": "11111111111111111111111111111111";
91
+ }
92
+ ];
93
+ "args": [
94
+ {
95
+ "name": "args";
96
+ "type": {
97
+ "defined": {
98
+ "name": "sendArgs";
99
+ };
100
+ };
101
+ }
102
+ ];
103
+ }
104
+ ];
105
+ "errors": [
106
+ {
107
+ "code": 6000;
108
+ "name": "invalidStoreDuplicate";
109
+ "msg": "The duplicated store account does not match";
110
+ }
111
+ ];
112
+ "types": [
113
+ {
114
+ "name": "sendArgs";
115
+ "type": {
116
+ "kind": "struct";
117
+ "fields": [
118
+ {
119
+ "name": "dstEid";
120
+ "type": "u32";
121
+ },
122
+ {
123
+ "name": "to";
124
+ "type": {
125
+ "array": [
126
+ "u8",
127
+ 32
128
+ ];
129
+ };
130
+ },
131
+ {
132
+ "name": "amountLd";
133
+ "type": "u64";
134
+ },
135
+ {
136
+ "name": "minAmountLd";
137
+ "type": "u64";
138
+ },
139
+ {
140
+ "name": "options";
141
+ "type": "bytes";
142
+ },
143
+ {
144
+ "name": "composeMsg";
145
+ "type": {
146
+ "option": "bytes";
147
+ };
148
+ },
149
+ {
150
+ "name": "nativeFee";
151
+ "type": "u64";
152
+ },
153
+ {
154
+ "name": "lzTokenFee";
155
+ "type": "u64";
156
+ }
157
+ ];
158
+ };
159
+ }
160
+ ];
161
+ };
@@ -0,0 +1,161 @@
1
+ /**
2
+ * Program IDL in camelCase format in order to be used in JS/TS.
3
+ *
4
+ * Note that this is only a type helper and is not the actual IDL. The original
5
+ * IDL can be found at `target/idl/mock_layerzero_oft.json`.
6
+ */
7
+ export type MockLayerzeroOft = {
8
+ "address": "G6cLMyeKew7B7RR1eAsYhKViYNcknwfwJ4ZbSDwWSS4z",
9
+ "metadata": {
10
+ "name": "mockLayerzeroOft",
11
+ "version": "1.0.0",
12
+ "spec": "0.1.0"
13
+ },
14
+ "instructions": [
15
+ {
16
+ "name": "send",
17
+ "discriminator": [
18
+ 102,
19
+ 251,
20
+ 20,
21
+ 187,
22
+ 65,
23
+ 75,
24
+ 12,
25
+ 69
26
+ ],
27
+ "accounts": [
28
+ {
29
+ "name": "payer",
30
+ "writable": true,
31
+ "signer": true
32
+ },
33
+ {
34
+ "name": "placeholder0"
35
+ },
36
+ {
37
+ "name": "oftStore"
38
+ },
39
+ {
40
+ "name": "placeholder1"
41
+ },
42
+ {
43
+ "name": "from",
44
+ "writable": true
45
+ },
46
+ {
47
+ "name": "custody",
48
+ "writable": true
49
+ },
50
+ {
51
+ "name": "mint"
52
+ },
53
+ {
54
+ "name": "tokenProgram"
55
+ },
56
+ {
57
+ "name": "placeholder2"
58
+ },
59
+ {
60
+ "name": "placeholder3"
61
+ },
62
+ {
63
+ "name": "mockLayerzeroEndpointProgram",
64
+ "address": "7VCSNNGUmS4f1qDE73PmkSWbV3kBhRPJko1g7t9YTSbM"
65
+ },
66
+ {
67
+ "name": "oftStoreDuplicate"
68
+ },
69
+ {
70
+ "name": "placeholder4"
71
+ },
72
+ {
73
+ "name": "placeholder5"
74
+ },
75
+ {
76
+ "name": "placeholder6"
77
+ },
78
+ {
79
+ "name": "placeholder7"
80
+ },
81
+ {
82
+ "name": "placeholder8"
83
+ },
84
+ {
85
+ "name": "nonce",
86
+ "writable": true
87
+ },
88
+ {
89
+ "name": "systemProgram",
90
+ "address": "11111111111111111111111111111111"
91
+ }
92
+ ],
93
+ "args": [
94
+ {
95
+ "name": "args",
96
+ "type": {
97
+ "defined": {
98
+ "name": "sendArgs"
99
+ }
100
+ }
101
+ }
102
+ ]
103
+ }
104
+ ],
105
+ "errors": [
106
+ {
107
+ "code": 6000,
108
+ "name": "invalidStoreDuplicate",
109
+ "msg": "The duplicated store account does not match"
110
+ }
111
+ ],
112
+ "types": [
113
+ {
114
+ "name": "sendArgs",
115
+ "type": {
116
+ "kind": "struct",
117
+ "fields": [
118
+ {
119
+ "name": "dstEid",
120
+ "type": "u32"
121
+ },
122
+ {
123
+ "name": "to",
124
+ "type": {
125
+ "array": [
126
+ "u8",
127
+ 32
128
+ ]
129
+ }
130
+ },
131
+ {
132
+ "name": "amountLd",
133
+ "type": "u64"
134
+ },
135
+ {
136
+ "name": "minAmountLd",
137
+ "type": "u64"
138
+ },
139
+ {
140
+ "name": "options",
141
+ "type": "bytes"
142
+ },
143
+ {
144
+ "name": "composeMsg",
145
+ "type": {
146
+ "option": "bytes"
147
+ }
148
+ },
149
+ {
150
+ "name": "nativeFee",
151
+ "type": "u64"
152
+ },
153
+ {
154
+ "name": "lzTokenFee",
155
+ "type": "u64"
156
+ }
157
+ ]
158
+ }
159
+ }
160
+ ]
161
+ };
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Program IDL in camelCase format in order to be used in JS/TS.
3
+ *
4
+ * Note that this is only a type helper and is not the actual IDL. The original
5
+ * IDL can be found at `target/idl/mock_wormhole_verify_vaa_shim.json`.
6
+ */
7
+ export type MockWormholeVerifyVaaShim = {
8
+ "address": "EFaNWErqAtVWufdNb7yofSHHfWFos843DFpu4JBw24at";
9
+ "metadata": {
10
+ "name": "mockWormholeVerifyVaaShim";
11
+ "version": "1.0.0";
12
+ "spec": "0.1.0";
13
+ };
14
+ "instructions": [
15
+ {
16
+ "name": "verifyHash";
17
+ "discriminator": [
18
+ 22,
19
+ 152,
20
+ 160,
21
+ 69,
22
+ 241,
23
+ 148,
24
+ 14,
25
+ 124
26
+ ];
27
+ "accounts": [
28
+ {
29
+ "name": "guardianSet";
30
+ },
31
+ {
32
+ "name": "guardianSignatures";
33
+ }
34
+ ];
35
+ "args": [
36
+ {
37
+ "name": "guardianSetBump";
38
+ "type": "u8";
39
+ },
40
+ {
41
+ "name": "digest";
42
+ "type": {
43
+ "array": [
44
+ "u8",
45
+ 32
46
+ ];
47
+ };
48
+ }
49
+ ];
50
+ }
51
+ ];
52
+ "errors": [
53
+ {
54
+ "code": 6000;
55
+ "name": "invalidGuardianSetBump";
56
+ "msg": "guardian set bump must be non-zero";
57
+ },
58
+ {
59
+ "code": 6001;
60
+ "name": "invalidDigest";
61
+ "msg": "digest must be non-zero";
62
+ }
63
+ ];
64
+ };