signet.js 0.0.12-beta.16 → 0.0.12-beta.18

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/types/index.d.ts CHANGED
@@ -930,16 +930,56 @@ declare namespace errors {
930
930
  * IDL can be found at `target/idl/chain_signatures_project.json`.
931
931
  */
932
932
  interface ChainSignaturesProject {
933
- address: '4uvZW8K4g4jBg7dzPNbb9XDxJLFBK7V6iC76uofmYvEU';
933
+ address: 'H5tHfpYoEnarrrzcV7sWBcZhiKMvL2aRpUYvb1ydWkwS';
934
934
  metadata: {
935
- name: 'chainSignaturesProject';
936
- version: '0.1.0';
935
+ name: 'chainSignatures';
936
+ version: '0.4.0';
937
937
  spec: '0.1.0';
938
- description: 'Created with Anchor';
938
+ description: 'Chain signatures program for cross-chain signing on Solana';
939
+ repository: 'https://github.com/sig-net/signet-solana-program';
939
940
  };
940
941
  instructions: [
942
+ {
943
+ name: 'getSignatureDeposit';
944
+ docs: [
945
+ '* @dev Function to get the current signature deposit amount.\n * @return The current signature deposit amount.'
946
+ ];
947
+ discriminator: [45, 243, 86, 86, 58, 57, 172, 253];
948
+ accounts: [
949
+ {
950
+ name: 'programState';
951
+ pda: {
952
+ seeds: [
953
+ {
954
+ kind: 'const';
955
+ value: [
956
+ 112,
957
+ 114,
958
+ 111,
959
+ 103,
960
+ 114,
961
+ 97,
962
+ 109,
963
+ 45,
964
+ 115,
965
+ 116,
966
+ 97,
967
+ 116,
968
+ 101
969
+ ];
970
+ }
971
+ ];
972
+ };
973
+ }
974
+ ];
975
+ args: [];
976
+ returns: 'u64';
977
+ },
941
978
  {
942
979
  name: 'initialize';
980
+ docs: [
981
+ '* @dev Function to initialize the program state.\n * @param signature_deposit The deposit required for signature requests.\n * @param chain_id The CAIP-2 chain identifier.'
982
+ ];
943
983
  discriminator: [175, 175, 109, 31, 13, 152, 155, 237];
944
984
  accounts: [
945
985
  {
@@ -982,16 +1022,55 @@ interface ChainSignaturesProject {
982
1022
  {
983
1023
  name: 'signatureDeposit';
984
1024
  type: 'u64';
1025
+ },
1026
+ {
1027
+ name: 'chainId';
1028
+ type: 'string';
985
1029
  }
986
1030
  ];
987
1031
  },
988
1032
  {
989
1033
  name: 'respond';
1034
+ docs: [
1035
+ '* @dev Function to respond to signature requests.\n * @param request_ids The array of request IDs.\n * @param signatures The array of signature responses.\n * @notice When multiple entries reuse a request id, events emit in canonical signature order (PSBT-style).'
1036
+ ];
990
1037
  discriminator: [72, 65, 227, 97, 42, 255, 147, 12];
991
1038
  accounts: [
992
1039
  {
993
1040
  name: 'responder';
994
1041
  signer: true;
1042
+ },
1043
+ {
1044
+ name: 'eventAuthority';
1045
+ pda: {
1046
+ seeds: [
1047
+ {
1048
+ kind: 'const';
1049
+ value: [
1050
+ 95,
1051
+ 95,
1052
+ 101,
1053
+ 118,
1054
+ 101,
1055
+ 110,
1056
+ 116,
1057
+ 95,
1058
+ 97,
1059
+ 117,
1060
+ 116,
1061
+ 104,
1062
+ 111,
1063
+ 114,
1064
+ 105,
1065
+ 116,
1066
+ 121
1067
+ ];
1068
+ }
1069
+ ];
1070
+ };
1071
+ },
1072
+ {
1073
+ name: 'program';
995
1074
  }
996
1075
  ];
997
1076
  args: [
@@ -1016,8 +1095,11 @@ interface ChainSignaturesProject {
1016
1095
  ];
1017
1096
  },
1018
1097
  {
1019
- name: 'respondError';
1020
- discriminator: [3, 170, 41, 132, 72, 184, 252, 69];
1098
+ name: 'respondBidirectional';
1099
+ docs: [
1100
+ '* @dev Function to finalize bidirectional flow\n * @param request_id The ID of the signature request to respond to\n * @param serialized_output output of the previously executed transaction\n * @param signature ECDSA signature of the serialized output and request_id (keccak256(request_id.concat(serialized_output)))'
1101
+ ];
1102
+ discriminator: [138, 0, 45, 246, 236, 211, 109, 81];
1021
1103
  accounts: [
1022
1104
  {
1023
1105
  name: 'responder';
@@ -1026,23 +1108,55 @@ interface ChainSignaturesProject {
1026
1108
  ];
1027
1109
  args: [
1028
1110
  {
1029
- name: 'requestIds';
1111
+ name: 'requestId';
1030
1112
  type: {
1031
- vec: {
1032
- array: ['u8', 32];
1033
- };
1113
+ array: ['u8', 32];
1034
1114
  };
1035
1115
  },
1116
+ {
1117
+ name: 'serializedOutput';
1118
+ type: 'bytes';
1119
+ },
1120
+ {
1121
+ name: 'signature';
1122
+ type: {
1123
+ defined: {
1124
+ name: 'signature';
1125
+ };
1126
+ };
1127
+ }
1128
+ ];
1129
+ },
1130
+ {
1131
+ name: 'respondError';
1132
+ docs: [
1133
+ '* @dev Function to emit signature generation errors.\n * @param errors The array of signature generation errors.'
1134
+ ];
1135
+ discriminator: [3, 170, 41, 132, 72, 184, 252, 69];
1136
+ accounts: [
1137
+ {
1138
+ name: 'responder';
1139
+ signer: true;
1140
+ }
1141
+ ];
1142
+ args: [
1036
1143
  {
1037
1144
  name: 'errors';
1038
1145
  type: {
1039
- vec: 'string';
1146
+ vec: {
1147
+ defined: {
1148
+ name: 'errorResponse';
1149
+ };
1150
+ };
1040
1151
  };
1041
1152
  }
1042
1153
  ];
1043
1154
  },
1044
1155
  {
1045
1156
  name: 'sign';
1157
+ docs: [
1158
+ '* @dev Function to request a signature.\n * @param payload The payload to be signed.\n * @param key_version The version of the key used for signing.\n * @param path The derivation path for the user account.\n * @param algo The algorithm used for signing.\n * @param dest The response destination.\n * @param params Additional parameters.'
1159
+ ];
1046
1160
  discriminator: [5, 221, 155, 46, 237, 91, 28, 236];
1047
1161
  accounts: [
1048
1162
  {
@@ -1085,6 +1199,38 @@ interface ChainSignaturesProject {
1085
1199
  {
1086
1200
  name: 'systemProgram';
1087
1201
  address: '11111111111111111111111111111111';
1202
+ },
1203
+ {
1204
+ name: 'eventAuthority';
1205
+ pda: {
1206
+ seeds: [
1207
+ {
1208
+ kind: 'const';
1209
+ value: [
1210
+ 95,
1211
+ 95,
1212
+ 101,
1213
+ 118,
1214
+ 101,
1215
+ 110,
1216
+ 116,
1217
+ 95,
1218
+ 97,
1219
+ 117,
1220
+ 116,
1221
+ 104,
1222
+ 111,
1223
+ 114,
1224
+ 105,
1225
+ 116,
1226
+ 121
1227
+ ];
1228
+ }
1229
+ ];
1230
+ };
1231
+ },
1232
+ {
1233
+ name: 'program';
1088
1234
  }
1089
1235
  ];
1090
1236
  args: [
@@ -1116,8 +1262,139 @@ interface ChainSignaturesProject {
1116
1262
  }
1117
1263
  ];
1118
1264
  },
1265
+ {
1266
+ name: 'signBidirectional';
1267
+ docs: [
1268
+ '* @dev Function to initiate bidirectional flow\n * @param serialized_transaction transaction to be signed\n * @param caip2_id chain identifier\n * @param key_version The version of the key used for signing.\n * @param path The derivation path for the user account.\n * @param algo The algorithm used for signing.\n * @param dest The response destination.\n * @param params Additional parameters.\n * @param program_id Program ID to callback after execution (not yet enabled).\n * @param output_deserialization_schema schema for transaction output deserialization\n * @param respond_serialization_schema serialization schema for respond_bidirectional payload'
1269
+ ];
1270
+ discriminator: [21, 104, 182, 213, 189, 143, 219, 48];
1271
+ accounts: [
1272
+ {
1273
+ name: 'programState';
1274
+ writable: true;
1275
+ pda: {
1276
+ seeds: [
1277
+ {
1278
+ kind: 'const';
1279
+ value: [
1280
+ 112,
1281
+ 114,
1282
+ 111,
1283
+ 103,
1284
+ 114,
1285
+ 97,
1286
+ 109,
1287
+ 45,
1288
+ 115,
1289
+ 116,
1290
+ 97,
1291
+ 116,
1292
+ 101
1293
+ ];
1294
+ }
1295
+ ];
1296
+ };
1297
+ },
1298
+ {
1299
+ name: 'requester';
1300
+ writable: true;
1301
+ signer: true;
1302
+ },
1303
+ {
1304
+ name: 'feePayer';
1305
+ writable: true;
1306
+ signer: true;
1307
+ optional: true;
1308
+ },
1309
+ {
1310
+ name: 'systemProgram';
1311
+ address: '11111111111111111111111111111111';
1312
+ },
1313
+ {
1314
+ name: 'instructions';
1315
+ optional: true;
1316
+ },
1317
+ {
1318
+ name: 'eventAuthority';
1319
+ pda: {
1320
+ seeds: [
1321
+ {
1322
+ kind: 'const';
1323
+ value: [
1324
+ 95,
1325
+ 95,
1326
+ 101,
1327
+ 118,
1328
+ 101,
1329
+ 110,
1330
+ 116,
1331
+ 95,
1332
+ 97,
1333
+ 117,
1334
+ 116,
1335
+ 104,
1336
+ 111,
1337
+ 114,
1338
+ 105,
1339
+ 116,
1340
+ 121
1341
+ ];
1342
+ }
1343
+ ];
1344
+ };
1345
+ },
1346
+ {
1347
+ name: 'program';
1348
+ }
1349
+ ];
1350
+ args: [
1351
+ {
1352
+ name: 'serializedTransaction';
1353
+ type: 'bytes';
1354
+ },
1355
+ {
1356
+ name: 'caip2Id';
1357
+ type: 'string';
1358
+ },
1359
+ {
1360
+ name: 'keyVersion';
1361
+ type: 'u32';
1362
+ },
1363
+ {
1364
+ name: 'path';
1365
+ type: 'string';
1366
+ },
1367
+ {
1368
+ name: 'algo';
1369
+ type: 'string';
1370
+ },
1371
+ {
1372
+ name: 'dest';
1373
+ type: 'string';
1374
+ },
1375
+ {
1376
+ name: 'params';
1377
+ type: 'string';
1378
+ },
1379
+ {
1380
+ name: 'programId';
1381
+ type: 'pubkey';
1382
+ },
1383
+ {
1384
+ name: 'outputDeserializationSchema';
1385
+ type: 'bytes';
1386
+ },
1387
+ {
1388
+ name: 'respondSerializationSchema';
1389
+ type: 'bytes';
1390
+ }
1391
+ ];
1392
+ },
1119
1393
  {
1120
1394
  name: 'updateDeposit';
1395
+ docs: [
1396
+ '* @dev Function to set the signature deposit amount.\n * @param new_deposit The new deposit amount.'
1397
+ ];
1121
1398
  discriminator: [126, 116, 15, 164, 238, 179, 155, 59];
1122
1399
  accounts: [
1123
1400
  {
@@ -1166,6 +1443,9 @@ interface ChainSignaturesProject {
1166
1443
  },
1167
1444
  {
1168
1445
  name: 'withdrawFunds';
1446
+ docs: [
1447
+ '* @dev Function to withdraw funds from the program.\n * @param amount The amount to withdraw.'
1448
+ ];
1169
1449
  discriminator: [241, 36, 29, 111, 208, 31, 104, 217];
1170
1450
  accounts: [
1171
1451
  {
@@ -1233,6 +1513,14 @@ interface ChainSignaturesProject {
1233
1513
  name: 'fundsWithdrawnEvent';
1234
1514
  discriminator: [86, 232, 194, 4, 211, 69, 172, 202];
1235
1515
  },
1516
+ {
1517
+ name: 'respondBidirectionalEvent';
1518
+ discriminator: [195, 195, 28, 1, 102, 100, 189, 234];
1519
+ },
1520
+ {
1521
+ name: 'signBidirectionalEvent';
1522
+ discriminator: [135, 205, 217, 152, 96, 187, 11, 124];
1523
+ },
1236
1524
  {
1237
1525
  name: 'signatureErrorEvent';
1238
1526
  discriminator: [42, 28, 210, 105, 9, 196, 189, 51];
@@ -1271,6 +1559,16 @@ interface ChainSignaturesProject {
1271
1559
  code: 6004;
1272
1560
  name: 'invalidRecipient';
1273
1561
  msg: 'Invalid recipient address';
1562
+ },
1563
+ {
1564
+ code: 6005;
1565
+ name: 'invalidTransaction';
1566
+ msg: 'Invalid transaction data';
1567
+ },
1568
+ {
1569
+ code: 6006;
1570
+ name: 'missingInstructionSysvar';
1571
+ msg: 'Missing instruction sysvar';
1274
1572
  }
1275
1573
  ];
1276
1574
  types: [
@@ -1296,6 +1594,9 @@ interface ChainSignaturesProject {
1296
1594
  },
1297
1595
  {
1298
1596
  name: 'depositUpdatedEvent';
1597
+ docs: [
1598
+ '* @dev Emitted when the deposit amount is updated.\n * @param old_deposit The previous deposit amount.\n * @param new_deposit The new deposit amount.'
1599
+ ];
1299
1600
  type: {
1300
1601
  kind: 'struct';
1301
1602
  fields: [
@@ -1310,8 +1611,29 @@ interface ChainSignaturesProject {
1310
1611
  ];
1311
1612
  };
1312
1613
  },
1614
+ {
1615
+ name: 'errorResponse';
1616
+ type: {
1617
+ kind: 'struct';
1618
+ fields: [
1619
+ {
1620
+ name: 'requestId';
1621
+ type: {
1622
+ array: ['u8', 32];
1623
+ };
1624
+ },
1625
+ {
1626
+ name: 'errorMessage';
1627
+ type: 'string';
1628
+ }
1629
+ ];
1630
+ };
1631
+ },
1313
1632
  {
1314
1633
  name: 'fundsWithdrawnEvent';
1634
+ docs: [
1635
+ '* @dev Emitted when a withdrawal is made.\n * @param amount The amount withdrawn.\n * @param recipient The address of the recipient.'
1636
+ ];
1315
1637
  type: {
1316
1638
  kind: 'struct';
1317
1639
  fields: [
@@ -1338,6 +1660,102 @@ interface ChainSignaturesProject {
1338
1660
  {
1339
1661
  name: 'signatureDeposit';
1340
1662
  type: 'u64';
1663
+ },
1664
+ {
1665
+ name: 'chainId';
1666
+ type: 'string';
1667
+ }
1668
+ ];
1669
+ };
1670
+ },
1671
+ {
1672
+ name: 'respondBidirectionalEvent';
1673
+ docs: [
1674
+ '* @dev Emitted when a read response is received.\n * @param request_id The ID of the request. Must be calculated off-chain.\n * @param responder The address of the responder.\n * @param serialized_output The serialized output.\n * @param signature The signature.'
1675
+ ];
1676
+ type: {
1677
+ kind: 'struct';
1678
+ fields: [
1679
+ {
1680
+ name: 'requestId';
1681
+ type: {
1682
+ array: ['u8', 32];
1683
+ };
1684
+ },
1685
+ {
1686
+ name: 'responder';
1687
+ type: 'pubkey';
1688
+ },
1689
+ {
1690
+ name: 'serializedOutput';
1691
+ type: 'bytes';
1692
+ },
1693
+ {
1694
+ name: 'signature';
1695
+ type: {
1696
+ defined: {
1697
+ name: 'signature';
1698
+ };
1699
+ };
1700
+ }
1701
+ ];
1702
+ };
1703
+ },
1704
+ {
1705
+ name: 'signBidirectionalEvent';
1706
+ docs: [
1707
+ '* @dev Emitted when a sign_bidirectional request is made.\n * @param sender The address of the sender.\n * @param serialized_transaction The serialized transaction to be signed.\n * @param caip2_id The SLIP-44 chain ID.\n * @param key_version The version of the key used for signing.\n * @param deposit The deposit amount.\n * @param path The derivation path for the user account.\n * @param algo The algorithm used for signing.\n * @param dest The response destination.\n * @param params Additional parameters.\n * @param program_id Program ID to callback after execution (not yet enabled).\n * @param output_deserialization_schema Schema for transaction output deserialization.\n * @param respond_serialization_schema Serialization schema for respond_bidirectional payload.'
1708
+ ];
1709
+ type: {
1710
+ kind: 'struct';
1711
+ fields: [
1712
+ {
1713
+ name: 'sender';
1714
+ type: 'pubkey';
1715
+ },
1716
+ {
1717
+ name: 'serializedTransaction';
1718
+ type: 'bytes';
1719
+ },
1720
+ {
1721
+ name: 'caip2Id';
1722
+ type: 'string';
1723
+ },
1724
+ {
1725
+ name: 'keyVersion';
1726
+ type: 'u32';
1727
+ },
1728
+ {
1729
+ name: 'deposit';
1730
+ type: 'u64';
1731
+ },
1732
+ {
1733
+ name: 'path';
1734
+ type: 'string';
1735
+ },
1736
+ {
1737
+ name: 'algo';
1738
+ type: 'string';
1739
+ },
1740
+ {
1741
+ name: 'dest';
1742
+ type: 'string';
1743
+ },
1744
+ {
1745
+ name: 'params';
1746
+ type: 'string';
1747
+ },
1748
+ {
1749
+ name: 'programId';
1750
+ type: 'pubkey';
1751
+ },
1752
+ {
1753
+ name: 'outputDeserializationSchema';
1754
+ type: 'bytes';
1755
+ },
1756
+ {
1757
+ name: 'respondSerializationSchema';
1758
+ type: 'bytes';
1341
1759
  }
1342
1760
  ];
1343
1761
  };
@@ -1370,6 +1788,9 @@ interface ChainSignaturesProject {
1370
1788
  },
1371
1789
  {
1372
1790
  name: 'signatureErrorEvent';
1791
+ docs: [
1792
+ '* @dev Emitted when a signature error is received.\n * @notice Any address can emit this event. Do not rely on it for business logic.\n * @param request_id The ID of the request. Must be calculated off-chain.\n * @param responder The address of the responder.\n * @param error The error message.'
1793
+ ];
1373
1794
  type: {
1374
1795
  kind: 'struct';
1375
1796
  fields: [
@@ -1392,6 +1813,9 @@ interface ChainSignaturesProject {
1392
1813
  },
1393
1814
  {
1394
1815
  name: 'signatureRequestedEvent';
1816
+ docs: [
1817
+ '* @dev Emitted when a signature is requested.\n * @param sender The address of the sender.\n * @param payload The payload to be signed.\n * @param key_version The version of the key used for signing.\n * @param deposit The deposit amount.\n * @param chain_id The CAIP-2 ID of the blockchain.\n * @param path The derivation path for the user account.\n * @param algo The algorithm used for signing.\n * @param dest The response destination.\n * @param params Additional parameters.\n * @param fee_payer Optional fee payer account.'
1818
+ ];
1395
1819
  type: {
1396
1820
  kind: 'struct';
1397
1821
  fields: [
@@ -1415,7 +1839,7 @@ interface ChainSignaturesProject {
1415
1839
  },
1416
1840
  {
1417
1841
  name: 'chainId';
1418
- type: 'u64';
1842
+ type: 'string';
1419
1843
  },
1420
1844
  {
1421
1845
  name: 'path';
@@ -1444,6 +1868,9 @@ interface ChainSignaturesProject {
1444
1868
  },
1445
1869
  {
1446
1870
  name: 'signatureRespondedEvent';
1871
+ docs: [
1872
+ '* @dev Emitted when a signature response is received.\n * @notice Any address can emit this event. Clients should always verify the validity of the signature.\n * @param request_id The ID of the request. Must be calculated off-chain.\n * @param responder The address of the responder.\n * @param signature The signature response.'
1873
+ ];
1447
1874
  type: {
1448
1875
  kind: 'struct';
1449
1876
  fields: [
@@ -1582,14 +2009,45 @@ declare const utils: {
1582
2009
  version: string;
1583
2010
  spec: string;
1584
2011
  description: string;
2012
+ repository: string;
1585
2013
  };
1586
2014
  instructions: ({
1587
2015
  name: string;
2016
+ docs: string[];
1588
2017
  discriminator: number[];
1589
2018
  accounts: {
1590
2019
  name: string;
1591
- signer: boolean;
2020
+ pda: {
2021
+ seeds: {
2022
+ kind: string;
2023
+ value: number[];
2024
+ }[];
2025
+ };
1592
2026
  }[];
2027
+ args: never[];
2028
+ returns: string;
2029
+ } | {
2030
+ name: string;
2031
+ docs: string[];
2032
+ discriminator: number[];
2033
+ accounts: ({
2034
+ name: string;
2035
+ signer: boolean;
2036
+ pda?: undefined;
2037
+ } | {
2038
+ name: string;
2039
+ pda: {
2040
+ seeds: {
2041
+ kind: string;
2042
+ value: number[];
2043
+ }[];
2044
+ };
2045
+ signer?: undefined;
2046
+ } | {
2047
+ name: string;
2048
+ signer?: undefined;
2049
+ pda?: undefined;
2050
+ })[];
1593
2051
  args: ({
1594
2052
  name: string;
1595
2053
  type: {
@@ -1609,8 +2067,10 @@ declare const utils: {
1609
2067
  };
1610
2068
  };
1611
2069
  })[];
2070
+ returns?: undefined;
1612
2071
  } | {
1613
2072
  name: string;
2073
+ docs: string[];
1614
2074
  discriminator: number[];
1615
2075
  accounts: {
1616
2076
  name: string;
@@ -1619,18 +2079,25 @@ declare const utils: {
1619
2079
  args: ({
1620
2080
  name: string;
1621
2081
  type: {
1622
- vec: {
1623
- array: (string | number)[];
1624
- };
2082
+ array: (string | number)[];
2083
+ defined?: undefined;
1625
2084
  };
2085
+ } | {
2086
+ name: string;
2087
+ type: string;
1626
2088
  } | {
1627
2089
  name: string;
1628
2090
  type: {
1629
- vec: string;
2091
+ defined: {
2092
+ name: string;
2093
+ };
2094
+ array?: undefined;
1630
2095
  };
1631
2096
  })[];
2097
+ returns?: undefined;
1632
2098
  } | {
1633
2099
  name: string;
2100
+ docs: string[];
1634
2101
  discriminator: number[];
1635
2102
  accounts: ({
1636
2103
  name: string;
@@ -1665,6 +2132,25 @@ declare const utils: {
1665
2132
  pda?: undefined;
1666
2133
  signer?: undefined;
1667
2134
  optional?: undefined;
2135
+ } | {
2136
+ name: string;
2137
+ pda: {
2138
+ seeds: {
2139
+ kind: string;
2140
+ value: number[];
2141
+ }[];
2142
+ };
2143
+ writable?: undefined;
2144
+ signer?: undefined;
2145
+ optional?: undefined;
2146
+ address?: undefined;
2147
+ } | {
2148
+ name: string;
2149
+ writable?: undefined;
2150
+ pda?: undefined;
2151
+ signer?: undefined;
2152
+ optional?: undefined;
2153
+ address?: undefined;
1668
2154
  })[];
1669
2155
  args: ({
1670
2156
  name: string;
@@ -1675,8 +2161,79 @@ declare const utils: {
1675
2161
  name: string;
1676
2162
  type: string;
1677
2163
  })[];
2164
+ returns?: undefined;
2165
+ } | {
2166
+ name: string;
2167
+ docs: string[];
2168
+ discriminator: number[];
2169
+ accounts: ({
2170
+ name: string;
2171
+ writable: boolean;
2172
+ pda: {
2173
+ seeds: {
2174
+ kind: string;
2175
+ value: number[];
2176
+ }[];
2177
+ };
2178
+ signer?: undefined;
2179
+ optional?: undefined;
2180
+ address?: undefined;
2181
+ } | {
2182
+ name: string;
2183
+ writable: boolean;
2184
+ signer: boolean;
2185
+ pda?: undefined;
2186
+ optional?: undefined;
2187
+ address?: undefined;
2188
+ } | {
2189
+ name: string;
2190
+ writable: boolean;
2191
+ signer: boolean;
2192
+ optional: boolean;
2193
+ pda?: undefined;
2194
+ address?: undefined;
2195
+ } | {
2196
+ name: string;
2197
+ address: string;
2198
+ writable?: undefined;
2199
+ pda?: undefined;
2200
+ signer?: undefined;
2201
+ optional?: undefined;
2202
+ } | {
2203
+ name: string;
2204
+ optional: boolean;
2205
+ writable?: undefined;
2206
+ pda?: undefined;
2207
+ signer?: undefined;
2208
+ address?: undefined;
2209
+ } | {
2210
+ name: string;
2211
+ pda: {
2212
+ seeds: {
2213
+ kind: string;
2214
+ value: number[];
2215
+ }[];
2216
+ };
2217
+ writable?: undefined;
2218
+ signer?: undefined;
2219
+ optional?: undefined;
2220
+ address?: undefined;
2221
+ } | {
2222
+ name: string;
2223
+ writable?: undefined;
2224
+ pda?: undefined;
2225
+ signer?: undefined;
2226
+ optional?: undefined;
2227
+ address?: undefined;
2228
+ })[];
2229
+ args: {
2230
+ name: string;
2231
+ type: string;
2232
+ }[];
2233
+ returns?: undefined;
1678
2234
  } | {
1679
2235
  name: string;
2236
+ docs: string[];
1680
2237
  discriminator: number[];
1681
2238
  accounts: ({
1682
2239
  name: string;
@@ -1720,6 +2277,7 @@ declare const utils: {
1720
2277
  name: string;
1721
2278
  type: string;
1722
2279
  }[];
2280
+ returns?: undefined;
1723
2281
  })[];
1724
2282
  accounts: {
1725
2283
  name: string;
@@ -1735,6 +2293,30 @@ declare const utils: {
1735
2293
  msg: string;
1736
2294
  }[];
1737
2295
  types: ({
2296
+ name: string;
2297
+ docs: string[];
2298
+ type: {
2299
+ kind: string;
2300
+ fields: ({
2301
+ name: string;
2302
+ type: {
2303
+ array: (string | number)[];
2304
+ defined?: undefined;
2305
+ };
2306
+ } | {
2307
+ name: string;
2308
+ type: string;
2309
+ } | {
2310
+ name: string;
2311
+ type: {
2312
+ defined: {
2313
+ name: string;
2314
+ };
2315
+ array?: undefined;
2316
+ };
2317
+ })[];
2318
+ };
2319
+ } | {
1738
2320
  name: string;
1739
2321
  type: {
1740
2322
  kind: string;
@@ -1757,8 +2339,10 @@ declare const utils: {
1757
2339
  type: string;
1758
2340
  })[];
1759
2341
  };
2342
+ docs?: undefined;
1760
2343
  } | {
1761
2344
  name: string;
2345
+ docs: string[];
1762
2346
  type: {
1763
2347
  kind: string;
1764
2348
  fields: ({