@wuwei-labs/srsly 2.0.0-beta.2 → 2.0.0-beta.21

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 (188) hide show
  1. package/README.md +305 -110
  2. package/dist/cjs/codama/accounts/config.js +88 -0
  3. package/dist/cjs/codama/accounts/config.js.map +1 -0
  4. package/dist/cjs/codama/accounts/contractState.js +17 -39
  5. package/dist/cjs/codama/accounts/contractState.js.map +1 -1
  6. package/dist/cjs/codama/accounts/index.js +1 -1
  7. package/dist/cjs/codama/accounts/index.js.map +1 -1
  8. package/dist/cjs/codama/accounts/rentalState.js +18 -33
  9. package/dist/cjs/codama/accounts/rentalState.js.map +1 -1
  10. package/dist/cjs/codama/accounts/thread.js +15 -32
  11. package/dist/cjs/codama/accounts/thread.js.map +1 -1
  12. package/dist/cjs/codama/errors/srsly.js +24 -3
  13. package/dist/cjs/codama/errors/srsly.js.map +1 -1
  14. package/dist/cjs/codama/instructions/acceptRental.js +202 -224
  15. package/dist/cjs/codama/instructions/acceptRental.js.map +1 -1
  16. package/dist/cjs/codama/instructions/cancelRental.js +100 -136
  17. package/dist/cjs/codama/instructions/cancelRental.js.map +1 -1
  18. package/dist/cjs/codama/instructions/closeContract.js +95 -116
  19. package/dist/cjs/codama/instructions/closeContract.js.map +1 -1
  20. package/dist/cjs/codama/instructions/closeRental.js +119 -132
  21. package/dist/cjs/codama/instructions/closeRental.js.map +1 -1
  22. package/dist/cjs/codama/instructions/createContract.js +127 -143
  23. package/dist/cjs/codama/instructions/createContract.js.map +1 -1
  24. package/dist/cjs/codama/instructions/index.js +2 -1
  25. package/dist/cjs/codama/instructions/index.js.map +1 -1
  26. package/dist/cjs/codama/instructions/initializeConfig.js +131 -0
  27. package/dist/cjs/codama/instructions/initializeConfig.js.map +1 -0
  28. package/dist/cjs/codama/instructions/payRental.js +125 -129
  29. package/dist/cjs/codama/instructions/payRental.js.map +1 -1
  30. package/dist/cjs/codama/instructions/resetRental.js +55 -77
  31. package/dist/cjs/codama/instructions/resetRental.js.map +1 -1
  32. package/dist/cjs/codama/instructions/updateConfig.js +145 -0
  33. package/dist/cjs/codama/instructions/updateConfig.js.map +1 -0
  34. package/dist/cjs/codama/programs/srsly.js +12 -8
  35. package/dist/cjs/codama/programs/srsly.js.map +1 -1
  36. package/dist/cjs/codama/shared/index.js +6 -2
  37. package/dist/cjs/codama/shared/index.js.map +1 -1
  38. package/dist/cjs/codama/types/trigger.js +1 -1
  39. package/dist/cjs/codama/types/trigger.js.map +1 -1
  40. package/dist/cjs/codama/types/triggerContext.js +1 -1
  41. package/dist/cjs/codama/types/triggerContext.js.map +1 -1
  42. package/dist/cjs/contract/close.js +75 -34
  43. package/dist/cjs/contract/close.js.map +1 -1
  44. package/dist/cjs/contract/create.js +59 -43
  45. package/dist/cjs/contract/create.js.map +1 -1
  46. package/dist/cjs/index.js +7 -1
  47. package/dist/cjs/index.js.map +1 -1
  48. package/dist/cjs/package.json +54 -0
  49. package/dist/cjs/rental/accept.js +68 -40
  50. package/dist/cjs/rental/accept.js.map +1 -1
  51. package/dist/cjs/rental/cancel.js +36 -28
  52. package/dist/cjs/rental/cancel.js.map +1 -1
  53. package/dist/cjs/rental/close.js +37 -29
  54. package/dist/cjs/rental/close.js.map +1 -1
  55. package/dist/cjs/rental/reset.js +46 -42
  56. package/dist/cjs/rental/reset.js.map +1 -1
  57. package/dist/cjs/utils/config.js +319 -0
  58. package/dist/cjs/utils/config.js.map +1 -0
  59. package/dist/cjs/utils/constants.js +69 -9
  60. package/dist/cjs/utils/constants.js.map +1 -1
  61. package/dist/cjs/utils/index.js +1 -0
  62. package/dist/cjs/utils/index.js.map +1 -1
  63. package/dist/cjs/utils/profiles.js +96 -95
  64. package/dist/cjs/utils/profiles.js.map +1 -1
  65. package/dist/esm/codama/accounts/config.js +76 -0
  66. package/dist/esm/codama/accounts/config.js.map +1 -0
  67. package/dist/esm/codama/accounts/contractState.js +3 -7
  68. package/dist/esm/codama/accounts/contractState.js.map +1 -1
  69. package/dist/esm/codama/accounts/index.js +1 -1
  70. package/dist/esm/codama/accounts/index.js.map +1 -1
  71. package/dist/esm/codama/accounts/rentalState.js +3 -1
  72. package/dist/esm/codama/accounts/rentalState.js.map +1 -1
  73. package/dist/esm/codama/errors/srsly.js +23 -2
  74. package/dist/esm/codama/errors/srsly.js.map +1 -1
  75. package/dist/esm/codama/instructions/acceptRental.js +30 -39
  76. package/dist/esm/codama/instructions/acceptRental.js.map +1 -1
  77. package/dist/esm/codama/instructions/cancelRental.js +10 -33
  78. package/dist/esm/codama/instructions/cancelRental.js.map +1 -1
  79. package/dist/esm/codama/instructions/closeContract.js +17 -25
  80. package/dist/esm/codama/instructions/closeContract.js.map +1 -1
  81. package/dist/esm/codama/instructions/closeRental.js +19 -19
  82. package/dist/esm/codama/instructions/closeRental.js.map +1 -1
  83. package/dist/esm/codama/instructions/createContract.js +13 -16
  84. package/dist/esm/codama/instructions/createContract.js.map +1 -1
  85. package/dist/esm/codama/instructions/index.js +2 -1
  86. package/dist/esm/codama/instructions/index.js.map +1 -1
  87. package/dist/esm/codama/instructions/initializeConfig.js +121 -0
  88. package/dist/esm/codama/instructions/initializeConfig.js.map +1 -0
  89. package/dist/esm/codama/instructions/payRental.js +34 -25
  90. package/dist/esm/codama/instructions/payRental.js.map +1 -1
  91. package/dist/esm/codama/instructions/resetRental.js +0 -9
  92. package/dist/esm/codama/instructions/resetRental.js.map +1 -1
  93. package/dist/esm/codama/instructions/updateConfig.js +135 -0
  94. package/dist/esm/codama/instructions/updateConfig.js.map +1 -0
  95. package/dist/esm/codama/programs/srsly.js +12 -8
  96. package/dist/esm/codama/programs/srsly.js.map +1 -1
  97. package/dist/esm/contract/close.js +68 -16
  98. package/dist/esm/contract/close.js.map +1 -1
  99. package/dist/esm/contract/create.js +60 -33
  100. package/dist/esm/contract/create.js.map +1 -1
  101. package/dist/esm/index.js +5 -1
  102. package/dist/esm/index.js.map +1 -1
  103. package/dist/esm/package.json +54 -0
  104. package/dist/esm/rental/accept.js +70 -31
  105. package/dist/esm/rental/accept.js.map +1 -1
  106. package/dist/esm/rental/cancel.js +37 -18
  107. package/dist/esm/rental/cancel.js.map +1 -1
  108. package/dist/esm/rental/close.js +38 -19
  109. package/dist/esm/rental/close.js.map +1 -1
  110. package/dist/esm/rental/reset.js +48 -33
  111. package/dist/esm/rental/reset.js.map +1 -1
  112. package/dist/esm/utils/config.js +277 -0
  113. package/dist/esm/utils/config.js.map +1 -0
  114. package/dist/esm/utils/constants.js +60 -7
  115. package/dist/esm/utils/constants.js.map +1 -1
  116. package/dist/esm/utils/index.js +1 -0
  117. package/dist/esm/utils/index.js.map +1 -1
  118. package/dist/esm/utils/profiles.js +39 -19
  119. package/dist/esm/utils/profiles.js.map +1 -1
  120. package/dist/types/codama/accounts/config.d.ts +52 -0
  121. package/dist/types/codama/accounts/config.d.ts.map +1 -0
  122. package/dist/types/codama/accounts/contractState.d.ts +2 -4
  123. package/dist/types/codama/accounts/contractState.d.ts.map +1 -1
  124. package/dist/types/codama/accounts/index.d.ts +1 -1
  125. package/dist/types/codama/accounts/index.d.ts.map +1 -1
  126. package/dist/types/codama/accounts/rentalState.d.ts +2 -0
  127. package/dist/types/codama/accounts/rentalState.d.ts.map +1 -1
  128. package/dist/types/codama/errors/srsly.d.ts +16 -2
  129. package/dist/types/codama/errors/srsly.d.ts.map +1 -1
  130. package/dist/types/codama/instructions/acceptRental.d.ts +41 -34
  131. package/dist/types/codama/instructions/acceptRental.d.ts.map +1 -1
  132. package/dist/types/codama/instructions/cancelRental.d.ts +14 -10
  133. package/dist/types/codama/instructions/cancelRental.d.ts.map +1 -1
  134. package/dist/types/codama/instructions/closeContract.d.ts +29 -21
  135. package/dist/types/codama/instructions/closeContract.d.ts.map +1 -1
  136. package/dist/types/codama/instructions/closeRental.d.ts +20 -12
  137. package/dist/types/codama/instructions/closeRental.d.ts.map +1 -1
  138. package/dist/types/codama/instructions/createContract.d.ts +27 -23
  139. package/dist/types/codama/instructions/createContract.d.ts.map +1 -1
  140. package/dist/types/codama/instructions/index.d.ts +2 -1
  141. package/dist/types/codama/instructions/index.d.ts.map +1 -1
  142. package/dist/types/codama/instructions/initializeConfig.d.ts +60 -0
  143. package/dist/types/codama/instructions/initializeConfig.d.ts.map +1 -0
  144. package/dist/types/codama/instructions/payRental.d.ts +28 -13
  145. package/dist/types/codama/instructions/payRental.d.ts.map +1 -1
  146. package/dist/types/codama/instructions/resetRental.d.ts +3 -3
  147. package/dist/types/codama/instructions/resetRental.d.ts.map +1 -1
  148. package/dist/types/codama/instructions/updateConfig.d.ts +93 -0
  149. package/dist/types/codama/instructions/updateConfig.d.ts.map +1 -0
  150. package/dist/types/codama/programs/srsly.d.ts +11 -8
  151. package/dist/types/codama/programs/srsly.d.ts.map +1 -1
  152. package/dist/types/contract/close.d.ts +20 -24
  153. package/dist/types/contract/close.d.ts.map +1 -1
  154. package/dist/types/contract/create.d.ts +34 -22
  155. package/dist/types/contract/create.d.ts.map +1 -1
  156. package/dist/types/index.d.ts +4 -1
  157. package/dist/types/index.d.ts.map +1 -1
  158. package/dist/types/rental/accept.d.ts +42 -20
  159. package/dist/types/rental/accept.d.ts.map +1 -1
  160. package/dist/types/rental/cancel.d.ts +16 -11
  161. package/dist/types/rental/cancel.d.ts.map +1 -1
  162. package/dist/types/rental/close.d.ts +16 -11
  163. package/dist/types/rental/close.d.ts.map +1 -1
  164. package/dist/types/rental/reset.d.ts +17 -20
  165. package/dist/types/rental/reset.d.ts.map +1 -1
  166. package/dist/types/utils/config.d.ts +167 -0
  167. package/dist/types/utils/config.d.ts.map +1 -0
  168. package/dist/types/utils/constants.d.ts +23 -7
  169. package/dist/types/utils/constants.d.ts.map +1 -1
  170. package/dist/types/utils/index.d.ts +1 -0
  171. package/dist/types/utils/index.d.ts.map +1 -1
  172. package/dist/types/utils/profiles.d.ts +14 -8
  173. package/dist/types/utils/profiles.d.ts.map +1 -1
  174. package/package.json +36 -14
  175. package/target/idl/srsly.json +3279 -0
  176. package/target/types/srsly.ts +1 -0
  177. package/dist/cjs/codama/accounts/fleet.js +0 -94
  178. package/dist/cjs/codama/accounts/fleet.js.map +0 -1
  179. package/dist/cjs/codama/instructions/normalizeAdmin.js +0 -165
  180. package/dist/cjs/codama/instructions/normalizeAdmin.js.map +0 -1
  181. package/dist/esm/codama/accounts/fleet.js +0 -64
  182. package/dist/esm/codama/accounts/fleet.js.map +0 -1
  183. package/dist/esm/codama/instructions/normalizeAdmin.js +0 -142
  184. package/dist/esm/codama/instructions/normalizeAdmin.js.map +0 -1
  185. package/dist/types/codama/accounts/fleet.d.ts +0 -38
  186. package/dist/types/codama/accounts/fleet.d.ts.map +0 -1
  187. package/dist/types/codama/instructions/normalizeAdmin.d.ts +0 -67
  188. package/dist/types/codama/instructions/normalizeAdmin.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ export type { Srsly } from '../programs/srsly';
@@ -1,94 +0,0 @@
1
- "use strict";
2
- /**
3
- * This code was AUTOGENERATED using the codama library.
4
- * Please DO NOT EDIT THIS FILE, instead use visitors
5
- * to add features, then rerun codama to update it.
6
- *
7
- * @see https://github.com/codama-idl/codama
8
- */
9
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
10
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
11
- return new (P || (P = Promise))(function (resolve, reject) {
12
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
13
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
14
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
15
- step((generator = generator.apply(thisArg, _arguments || [])).next());
16
- });
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.FLEET_DISCRIMINATOR = void 0;
20
- exports.getFleetDiscriminatorBytes = getFleetDiscriminatorBytes;
21
- exports.getFleetEncoder = getFleetEncoder;
22
- exports.getFleetDecoder = getFleetDecoder;
23
- exports.getFleetCodec = getFleetCodec;
24
- exports.decodeFleet = decodeFleet;
25
- exports.fetchFleet = fetchFleet;
26
- exports.fetchMaybeFleet = fetchMaybeFleet;
27
- exports.fetchAllFleet = fetchAllFleet;
28
- exports.fetchAllMaybeFleet = fetchAllMaybeFleet;
29
- exports.getFleetSize = getFleetSize;
30
- const kit_1 = require("@solana/kit");
31
- exports.FLEET_DISCRIMINATOR = new Uint8Array([
32
- 109, 207, 251, 48, 106, 2, 136, 163,
33
- ]);
34
- function getFleetDiscriminatorBytes() {
35
- return (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(exports.FLEET_DISCRIMINATOR);
36
- }
37
- function getFleetEncoder() {
38
- return (0, kit_1.transformEncoder)((0, kit_1.getStructEncoder)([
39
- ['discriminator', (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8)],
40
- ['version', (0, kit_1.getU8Encoder)()],
41
- ['gameId', (0, kit_1.getAddressEncoder)()],
42
- ['ownerProfile', (0, kit_1.getAddressEncoder)()],
43
- ['fleetShips', (0, kit_1.getAddressEncoder)()],
44
- ['subProfile', (0, kit_1.getAddressEncoder)()],
45
- ['subProfileInvalidator', (0, kit_1.getAddressEncoder)()],
46
- ]), (value) => (Object.assign(Object.assign({}, value), { discriminator: exports.FLEET_DISCRIMINATOR })));
47
- }
48
- function getFleetDecoder() {
49
- return (0, kit_1.getStructDecoder)([
50
- ['discriminator', (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 8)],
51
- ['version', (0, kit_1.getU8Decoder)()],
52
- ['gameId', (0, kit_1.getAddressDecoder)()],
53
- ['ownerProfile', (0, kit_1.getAddressDecoder)()],
54
- ['fleetShips', (0, kit_1.getAddressDecoder)()],
55
- ['subProfile', (0, kit_1.getAddressDecoder)()],
56
- ['subProfileInvalidator', (0, kit_1.getAddressDecoder)()],
57
- ]);
58
- }
59
- function getFleetCodec() {
60
- return (0, kit_1.combineCodec)(getFleetEncoder(), getFleetDecoder());
61
- }
62
- function decodeFleet(encodedAccount) {
63
- return (0, kit_1.decodeAccount)(encodedAccount, getFleetDecoder());
64
- }
65
- function fetchFleet(rpc, address, config) {
66
- return __awaiter(this, void 0, void 0, function* () {
67
- const maybeAccount = yield fetchMaybeFleet(rpc, address, config);
68
- (0, kit_1.assertAccountExists)(maybeAccount);
69
- return maybeAccount;
70
- });
71
- }
72
- function fetchMaybeFleet(rpc, address, config) {
73
- return __awaiter(this, void 0, void 0, function* () {
74
- const maybeAccount = yield (0, kit_1.fetchEncodedAccount)(rpc, address, config);
75
- return decodeFleet(maybeAccount);
76
- });
77
- }
78
- function fetchAllFleet(rpc, addresses, config) {
79
- return __awaiter(this, void 0, void 0, function* () {
80
- const maybeAccounts = yield fetchAllMaybeFleet(rpc, addresses, config);
81
- (0, kit_1.assertAccountsExist)(maybeAccounts);
82
- return maybeAccounts;
83
- });
84
- }
85
- function fetchAllMaybeFleet(rpc, addresses, config) {
86
- return __awaiter(this, void 0, void 0, function* () {
87
- const maybeAccounts = yield (0, kit_1.fetchEncodedAccounts)(rpc, addresses, config);
88
- return maybeAccounts.map((maybeAccount) => decodeFleet(maybeAccount));
89
- });
90
- }
91
- function getFleetSize() {
92
- return 169;
93
- }
94
- //# sourceMappingURL=fleet.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fleet.js","sourceRoot":"","sources":["../../../../src/codama/accounts/fleet.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;AAqCH,gEAEC;AAqBD,0CAaC;AAED,0CAUC;AAED,sCAEC;AAQD,kCAOC;AAED,gCAQC;AAED,0CAOC;AAED,sCAQC;AAED,gDAOC;AAED,oCAEC;AAhJD,qCA6BqB;AAER,QAAA,mBAAmB,GAAG,IAAI,UAAU,CAAC;IAChD,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG;CACpC,CAAC,CAAC;AAEH,SAAgB,0BAA0B;IAC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was AUTOGENERATED using the codama library.
4
- * Please DO NOT EDIT THIS FILE, instead use visitors
5
- * to add features, then rerun codama to update it.
6
- *
7
- * @see https://github.com/codama-idl/codama
8
- */
9
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
10
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
11
- return new (P || (P = Promise))(function (resolve, reject) {
12
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
13
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
14
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
15
- step((generator = generator.apply(thisArg, _arguments || [])).next());
16
- });
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.NORMALIZE_ADMIN_DISCRIMINATOR = void 0;
20
- exports.getNormalizeAdminDiscriminatorBytes = getNormalizeAdminDiscriminatorBytes;
21
- exports.getNormalizeAdminInstructionDataEncoder = getNormalizeAdminInstructionDataEncoder;
22
- exports.getNormalizeAdminInstructionDataDecoder = getNormalizeAdminInstructionDataDecoder;
23
- exports.getNormalizeAdminInstructionDataCodec = getNormalizeAdminInstructionDataCodec;
24
- exports.getNormalizeAdminInstructionAsync = getNormalizeAdminInstructionAsync;
25
- exports.getNormalizeAdminInstruction = getNormalizeAdminInstruction;
26
- exports.parseNormalizeAdminInstruction = parseNormalizeAdminInstruction;
27
- const kit_1 = require("@solana/kit");
28
- const programs_1 = require("../programs");
29
- const shared_1 = require("../shared");
30
- exports.NORMALIZE_ADMIN_DISCRIMINATOR = new Uint8Array([
31
- 26, 134, 185, 168, 82, 175, 6, 182,
32
- ]);
33
- function getNormalizeAdminDiscriminatorBytes() {
34
- return (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8).encode(exports.NORMALIZE_ADMIN_DISCRIMINATOR);
35
- }
36
- function getNormalizeAdminInstructionDataEncoder() {
37
- return (0, kit_1.transformEncoder)((0, kit_1.getStructEncoder)([['discriminator', (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 8)]]), (value) => (Object.assign(Object.assign({}, value), { discriminator: exports.NORMALIZE_ADMIN_DISCRIMINATOR })));
38
- }
39
- function getNormalizeAdminInstructionDataDecoder() {
40
- return (0, kit_1.getStructDecoder)([
41
- ['discriminator', (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 8)],
42
- ]);
43
- }
44
- function getNormalizeAdminInstructionDataCodec() {
45
- return (0, kit_1.combineCodec)(getNormalizeAdminInstructionDataEncoder(), getNormalizeAdminInstructionDataDecoder());
46
- }
47
- function getNormalizeAdminInstructionAsync(input, config) {
48
- return __awaiter(this, void 0, void 0, function* () {
49
- var _a, _b, _c, _d, _e, _f, _g, _h;
50
- // Program address.
51
- const programAddress = (_a = config === null || config === void 0 ? void 0 : config.programAddress) !== null && _a !== void 0 ? _a : programs_1.SRSLY_PROGRAM_ADDRESS;
52
- // Original accounts.
53
- const originalAccounts = {
54
- admin: { value: (_b = input.admin) !== null && _b !== void 0 ? _b : null, isWritable: false },
55
- contract: { value: (_c = input.contract) !== null && _c !== void 0 ? _c : null, isWritable: true },
56
- rentalState: { value: (_d = input.rentalState) !== null && _d !== void 0 ? _d : null, isWritable: true },
57
- rentalAuthority: { value: (_e = input.rentalAuthority) !== null && _e !== void 0 ? _e : null, isWritable: true },
58
- thread: { value: (_f = input.thread) !== null && _f !== void 0 ? _f : null, isWritable: true },
59
- antegenProgram: { value: (_g = input.antegenProgram) !== null && _g !== void 0 ? _g : null, isWritable: false },
60
- systemProgram: { value: (_h = input.systemProgram) !== null && _h !== void 0 ? _h : null, isWritable: false },
61
- };
62
- const accounts = originalAccounts;
63
- // Resolve default values.
64
- if (!accounts.rentalAuthority.value) {
65
- accounts.rentalAuthority.value = yield (0, kit_1.getProgramDerivedAddress)({
66
- programAddress,
67
- seeds: [
68
- (0, kit_1.getBytesEncoder)().encode(new Uint8Array([
69
- 114, 101, 110, 116, 97, 108, 95, 97, 117, 116, 104, 111, 114, 105,
70
- 116, 121,
71
- ])),
72
- ],
73
- });
74
- }
75
- if (!accounts.antegenProgram.value) {
76
- accounts.antegenProgram.value =
77
- 'AgThdyi1P5RkVeZD2rQahTvs8HePJoGFFxKtvok5s2J1';
78
- }
79
- if (!accounts.systemProgram.value) {
80
- accounts.systemProgram.value =
81
- '11111111111111111111111111111111';
82
- }
83
- const getAccountMeta = (0, shared_1.getAccountMetaFactory)(programAddress, 'programId');
84
- const instruction = {
85
- accounts: [
86
- getAccountMeta(accounts.admin),
87
- getAccountMeta(accounts.contract),
88
- getAccountMeta(accounts.rentalState),
89
- getAccountMeta(accounts.rentalAuthority),
90
- getAccountMeta(accounts.thread),
91
- getAccountMeta(accounts.antegenProgram),
92
- getAccountMeta(accounts.systemProgram),
93
- ],
94
- programAddress,
95
- data: getNormalizeAdminInstructionDataEncoder().encode({}),
96
- };
97
- return instruction;
98
- });
99
- }
100
- function getNormalizeAdminInstruction(input, config) {
101
- var _a, _b, _c, _d, _e, _f, _g, _h;
102
- // Program address.
103
- const programAddress = (_a = config === null || config === void 0 ? void 0 : config.programAddress) !== null && _a !== void 0 ? _a : programs_1.SRSLY_PROGRAM_ADDRESS;
104
- // Original accounts.
105
- const originalAccounts = {
106
- admin: { value: (_b = input.admin) !== null && _b !== void 0 ? _b : null, isWritable: false },
107
- contract: { value: (_c = input.contract) !== null && _c !== void 0 ? _c : null, isWritable: true },
108
- rentalState: { value: (_d = input.rentalState) !== null && _d !== void 0 ? _d : null, isWritable: true },
109
- rentalAuthority: { value: (_e = input.rentalAuthority) !== null && _e !== void 0 ? _e : null, isWritable: true },
110
- thread: { value: (_f = input.thread) !== null && _f !== void 0 ? _f : null, isWritable: true },
111
- antegenProgram: { value: (_g = input.antegenProgram) !== null && _g !== void 0 ? _g : null, isWritable: false },
112
- systemProgram: { value: (_h = input.systemProgram) !== null && _h !== void 0 ? _h : null, isWritable: false },
113
- };
114
- const accounts = originalAccounts;
115
- // Resolve default values.
116
- if (!accounts.antegenProgram.value) {
117
- accounts.antegenProgram.value =
118
- 'AgThdyi1P5RkVeZD2rQahTvs8HePJoGFFxKtvok5s2J1';
119
- }
120
- if (!accounts.systemProgram.value) {
121
- accounts.systemProgram.value =
122
- '11111111111111111111111111111111';
123
- }
124
- const getAccountMeta = (0, shared_1.getAccountMetaFactory)(programAddress, 'programId');
125
- const instruction = {
126
- accounts: [
127
- getAccountMeta(accounts.admin),
128
- getAccountMeta(accounts.contract),
129
- getAccountMeta(accounts.rentalState),
130
- getAccountMeta(accounts.rentalAuthority),
131
- getAccountMeta(accounts.thread),
132
- getAccountMeta(accounts.antegenProgram),
133
- getAccountMeta(accounts.systemProgram),
134
- ],
135
- programAddress,
136
- data: getNormalizeAdminInstructionDataEncoder().encode({}),
137
- };
138
- return instruction;
139
- }
140
- function parseNormalizeAdminInstruction(instruction) {
141
- if (instruction.accounts.length < 7) {
142
- // TODO: Coded error.
143
- throw new Error('Not enough accounts');
144
- }
145
- let accountIndex = 0;
146
- const getNextAccount = () => {
147
- const accountMeta = instruction.accounts[accountIndex];
148
- accountIndex += 1;
149
- return accountMeta;
150
- };
151
- return {
152
- programAddress: instruction.programAddress,
153
- accounts: {
154
- admin: getNextAccount(),
155
- contract: getNextAccount(),
156
- rentalState: getNextAccount(),
157
- rentalAuthority: getNextAccount(),
158
- thread: getNextAccount(),
159
- antegenProgram: getNextAccount(),
160
- systemProgram: getNextAccount(),
161
- },
162
- data: getNormalizeAdminInstructionDataDecoder().decode(instruction.data),
163
- };
164
- }
165
- //# sourceMappingURL=normalizeAdmin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalizeAdmin.js","sourceRoot":"","sources":["../../../../src/codama/instructions/normalizeAdmin.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;AAkCH,kFAIC;AAoDD,0FAKC;AAED,0FAIC;AAED,sFAQC;AAoBD,8EAkGC;AAoBD,oEAmFC;AAmBD,wEA+BC;AA5XD,qCA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,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;KAU3D,CAAC;IAEF,OAAO,WAAW,CAAC;AACrB,CAAC;AAmBD,SAAgB,8BAA8B,CAI5C,WAEkC;IAElC,IAAI,WAAW,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACpC,qBAAqB;QACrB,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACzC,CAAC;IACD,IAAI,YAAY,GAAG,CAAC,CAAC;IACrB,MAAM,cAAc,GAAG,GAAG,EAAE;QAC1B,MAAM,WAAW,GAAG,WAAW,CAAC,QAAS,CAAC,YAAY,CAAE,CAAC;QACzD,YAAY,IAAI,CAAC,CAAC;QAClB,OAAO,WAAW,CAAC;IACrB,CAAC,CAAC;IACF,OAAO;QACL,cAAc,EAAE,WAAW,CAAC,cAAc;QAC1C,QAAQ,EAAE;YACR,KAAK,EAAE,cAAc,EAAE;YACvB,QAAQ,EAAE,cAAc,EAAE;YAC1B,WAAW,EAAE,cAAc,EAAE;YAC7B,eAAe,EAAE,cAAc,EAAE;YACjC,MAAM,EAAE,cAAc,EAAE;YACxB,cAAc,EAAE,cAAc,EAAE;YAChC,aAAa,EAAE,cAAc,EAAE;SAChC;QACD,IAAI,EAAE,uCAAuC,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC;KACzE,CAAC;AACJ,CAAC"}
@@ -1,64 +0,0 @@
1
- /**
2
- * This code was AUTOGENERATED using the codama library.
3
- * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
5
- *
6
- * @see https://github.com/codama-idl/codama
7
- */
8
- import { assertAccountExists, assertAccountsExist, combineCodec, decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, fixDecoderSize, fixEncoderSize, getAddressDecoder, getAddressEncoder, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, getU8Decoder, getU8Encoder, transformEncoder, } from '@solana/kit';
9
- export const FLEET_DISCRIMINATOR = new Uint8Array([
10
- 109, 207, 251, 48, 106, 2, 136, 163,
11
- ]);
12
- export function getFleetDiscriminatorBytes() {
13
- return fixEncoderSize(getBytesEncoder(), 8).encode(FLEET_DISCRIMINATOR);
14
- }
15
- export function getFleetEncoder() {
16
- return transformEncoder(getStructEncoder([
17
- ['discriminator', fixEncoderSize(getBytesEncoder(), 8)],
18
- ['version', getU8Encoder()],
19
- ['gameId', getAddressEncoder()],
20
- ['ownerProfile', getAddressEncoder()],
21
- ['fleetShips', getAddressEncoder()],
22
- ['subProfile', getAddressEncoder()],
23
- ['subProfileInvalidator', getAddressEncoder()],
24
- ]), (value) => ({ ...value, discriminator: FLEET_DISCRIMINATOR }));
25
- }
26
- export function getFleetDecoder() {
27
- return getStructDecoder([
28
- ['discriminator', fixDecoderSize(getBytesDecoder(), 8)],
29
- ['version', getU8Decoder()],
30
- ['gameId', getAddressDecoder()],
31
- ['ownerProfile', getAddressDecoder()],
32
- ['fleetShips', getAddressDecoder()],
33
- ['subProfile', getAddressDecoder()],
34
- ['subProfileInvalidator', getAddressDecoder()],
35
- ]);
36
- }
37
- export function getFleetCodec() {
38
- return combineCodec(getFleetEncoder(), getFleetDecoder());
39
- }
40
- export function decodeFleet(encodedAccount) {
41
- return decodeAccount(encodedAccount, getFleetDecoder());
42
- }
43
- export async function fetchFleet(rpc, address, config) {
44
- const maybeAccount = await fetchMaybeFleet(rpc, address, config);
45
- assertAccountExists(maybeAccount);
46
- return maybeAccount;
47
- }
48
- export async function fetchMaybeFleet(rpc, address, config) {
49
- const maybeAccount = await fetchEncodedAccount(rpc, address, config);
50
- return decodeFleet(maybeAccount);
51
- }
52
- export async function fetchAllFleet(rpc, addresses, config) {
53
- const maybeAccounts = await fetchAllMaybeFleet(rpc, addresses, config);
54
- assertAccountsExist(maybeAccounts);
55
- return maybeAccounts;
56
- }
57
- export async function fetchAllMaybeFleet(rpc, addresses, config) {
58
- const maybeAccounts = await fetchEncodedAccounts(rpc, addresses, config);
59
- return maybeAccounts.map((maybeAccount) => decodeFleet(maybeAccount));
60
- }
61
- export function getFleetSize() {
62
- return 169;
63
- }
64
- //# sourceMappingURL=fleet.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fleet.js","sourceRoot":"","sources":["../../../../src/codama/accounts/fleet.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,gBAAgB,GAYjB,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,UAAU,CAAC;IAChD,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG;CACpC,CAAC,CAAC;AAEH,MAAM,UAAU,0BAA0B;IACxC,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;AAC1E,CAAC;AAqBD,MAAM,UAAU,eAAe;IAC7B,OAAO,gBAAgB,CACrB,gBAAgB,CAAC;QACf,CAAC,eAAe,EAAE,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC;QACvD,CAAC,SAAS,EAAE,YAAY,EAAE,CAAC;QAC3B,CAAC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;QAC/B,CAAC,cAAc,EAAE,iBAAiB,EAAE,CAAC;QACrC,CAAC,YAAY,EAAE,iBAAiB,EAAE,CAAC;QACnC,CAAC,YAAY,EAAE,iBAAiB,EAAE,CAAC;QACnC,CAAC,uBAAuB,EAAE,iBAAiB,EAAE,CAAC;KAC/C,CAAC,EACF,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,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,SAAyB,EACzB,MAA4B;IAE5B,MAAM,aAAa,GAAG,MAAM,kBAAkB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACvE,mBAAmB,CAAC,aAAa,CAAC,CAAC;IACnC,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,GAA+C,EAC/C,SAAyB,EACzB,MAA4B;IAE5B,MAAM,aAAa,GAAG,MAAM,oBAAoB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACzE,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,YAAY;IAC1B,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -1,142 +0,0 @@
1
- /**
2
- * This code was AUTOGENERATED using the codama library.
3
- * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
5
- *
6
- * @see https://github.com/codama-idl/codama
7
- */
8
- import { combineCodec, fixDecoderSize, fixEncoderSize, getBytesDecoder, getBytesEncoder, getProgramDerivedAddress, getStructDecoder, getStructEncoder, transformEncoder, } from '@solana/kit';
9
- import { SRSLY_PROGRAM_ADDRESS } from '../programs';
10
- import { getAccountMetaFactory } from '../shared';
11
- export const NORMALIZE_ADMIN_DISCRIMINATOR = new Uint8Array([
12
- 26, 134, 185, 168, 82, 175, 6, 182,
13
- ]);
14
- export function getNormalizeAdminDiscriminatorBytes() {
15
- return fixEncoderSize(getBytesEncoder(), 8).encode(NORMALIZE_ADMIN_DISCRIMINATOR);
16
- }
17
- export function getNormalizeAdminInstructionDataEncoder() {
18
- return transformEncoder(getStructEncoder([['discriminator', fixEncoderSize(getBytesEncoder(), 8)]]), (value) => ({ ...value, discriminator: NORMALIZE_ADMIN_DISCRIMINATOR }));
19
- }
20
- export function getNormalizeAdminInstructionDataDecoder() {
21
- return getStructDecoder([
22
- ['discriminator', fixDecoderSize(getBytesDecoder(), 8)],
23
- ]);
24
- }
25
- export function getNormalizeAdminInstructionDataCodec() {
26
- return combineCodec(getNormalizeAdminInstructionDataEncoder(), getNormalizeAdminInstructionDataDecoder());
27
- }
28
- export async function getNormalizeAdminInstructionAsync(input, config) {
29
- // Program address.
30
- const programAddress = config?.programAddress ?? SRSLY_PROGRAM_ADDRESS;
31
- // Original accounts.
32
- const originalAccounts = {
33
- admin: { value: input.admin ?? null, isWritable: false },
34
- contract: { value: input.contract ?? null, isWritable: true },
35
- rentalState: { value: input.rentalState ?? null, isWritable: true },
36
- rentalAuthority: { value: input.rentalAuthority ?? null, isWritable: true },
37
- thread: { value: input.thread ?? null, isWritable: true },
38
- antegenProgram: { value: input.antegenProgram ?? null, isWritable: false },
39
- systemProgram: { value: input.systemProgram ?? null, isWritable: false },
40
- };
41
- const accounts = originalAccounts;
42
- // Resolve default values.
43
- if (!accounts.rentalAuthority.value) {
44
- accounts.rentalAuthority.value = await getProgramDerivedAddress({
45
- programAddress,
46
- seeds: [
47
- getBytesEncoder().encode(new Uint8Array([
48
- 114, 101, 110, 116, 97, 108, 95, 97, 117, 116, 104, 111, 114, 105,
49
- 116, 121,
50
- ])),
51
- ],
52
- });
53
- }
54
- if (!accounts.antegenProgram.value) {
55
- accounts.antegenProgram.value =
56
- 'AgThdyi1P5RkVeZD2rQahTvs8HePJoGFFxKtvok5s2J1';
57
- }
58
- if (!accounts.systemProgram.value) {
59
- accounts.systemProgram.value =
60
- '11111111111111111111111111111111';
61
- }
62
- const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
63
- const instruction = {
64
- accounts: [
65
- getAccountMeta(accounts.admin),
66
- getAccountMeta(accounts.contract),
67
- getAccountMeta(accounts.rentalState),
68
- getAccountMeta(accounts.rentalAuthority),
69
- getAccountMeta(accounts.thread),
70
- getAccountMeta(accounts.antegenProgram),
71
- getAccountMeta(accounts.systemProgram),
72
- ],
73
- programAddress,
74
- data: getNormalizeAdminInstructionDataEncoder().encode({}),
75
- };
76
- return instruction;
77
- }
78
- export function getNormalizeAdminInstruction(input, config) {
79
- // Program address.
80
- const programAddress = config?.programAddress ?? SRSLY_PROGRAM_ADDRESS;
81
- // Original accounts.
82
- const originalAccounts = {
83
- admin: { value: input.admin ?? null, isWritable: false },
84
- contract: { value: input.contract ?? null, isWritable: true },
85
- rentalState: { value: input.rentalState ?? null, isWritable: true },
86
- rentalAuthority: { value: input.rentalAuthority ?? null, isWritable: true },
87
- thread: { value: input.thread ?? null, isWritable: true },
88
- antegenProgram: { value: input.antegenProgram ?? null, isWritable: false },
89
- systemProgram: { value: input.systemProgram ?? null, isWritable: false },
90
- };
91
- const accounts = originalAccounts;
92
- // Resolve default values.
93
- if (!accounts.antegenProgram.value) {
94
- accounts.antegenProgram.value =
95
- 'AgThdyi1P5RkVeZD2rQahTvs8HePJoGFFxKtvok5s2J1';
96
- }
97
- if (!accounts.systemProgram.value) {
98
- accounts.systemProgram.value =
99
- '11111111111111111111111111111111';
100
- }
101
- const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
102
- const instruction = {
103
- accounts: [
104
- getAccountMeta(accounts.admin),
105
- getAccountMeta(accounts.contract),
106
- getAccountMeta(accounts.rentalState),
107
- getAccountMeta(accounts.rentalAuthority),
108
- getAccountMeta(accounts.thread),
109
- getAccountMeta(accounts.antegenProgram),
110
- getAccountMeta(accounts.systemProgram),
111
- ],
112
- programAddress,
113
- data: getNormalizeAdminInstructionDataEncoder().encode({}),
114
- };
115
- return instruction;
116
- }
117
- export function parseNormalizeAdminInstruction(instruction) {
118
- if (instruction.accounts.length < 7) {
119
- // TODO: Coded error.
120
- throw new Error('Not enough accounts');
121
- }
122
- let accountIndex = 0;
123
- const getNextAccount = () => {
124
- const accountMeta = instruction.accounts[accountIndex];
125
- accountIndex += 1;
126
- return accountMeta;
127
- };
128
- return {
129
- programAddress: instruction.programAddress,
130
- accounts: {
131
- admin: getNextAccount(),
132
- contract: getNextAccount(),
133
- rentalState: getNextAccount(),
134
- rentalAuthority: getNextAccount(),
135
- thread: getNextAccount(),
136
- antegenProgram: getNextAccount(),
137
- systemProgram: getNextAccount(),
138
- },
139
- data: getNormalizeAdminInstructionDataDecoder().decode(instruction.data),
140
- };
141
- }
142
- //# sourceMappingURL=normalizeAdmin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalizeAdmin.js","sourceRoot":"","sources":["../../../../src/codama/instructions/normalizeAdmin.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,wBAAwB,EACxB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,GAejB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAwB,MAAM,WAAW,CAAC;AAExE,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,UAAU,CAAC;IAC1D,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG;CACnC,CAAC,CAAC;AAEH,MAAM,UAAU,mCAAmC;IACjD,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAChD,6BAA6B,CAC9B,CAAC;AACJ,CAAC;AAoDD,MAAM,UAAU,uCAAuC;IACrD,OAAO,gBAAgB,CACrB,gBAAgB,CAAC,CAAC,CAAC,eAAe,EAAE,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAC3E,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,aAAa,EAAE,6BAA6B,EAAE,CAAC,CACxE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,uCAAuC;IACrD,OAAO,gBAAgB,CAAC;QACtB,CAAC,eAAe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This code was AUTOGENERATED using the codama library.
3
- * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
5
- *
6
- * @see https://github.com/codama-idl/codama
7
- */
8
- import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type Codec, type Decoder, type EncodedAccount, type Encoder, type FetchAccountConfig, type FetchAccountsConfig, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
9
- export declare const FLEET_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
10
- export declare function getFleetDiscriminatorBytes(): ReadonlyUint8Array;
11
- export type Fleet = {
12
- discriminator: ReadonlyUint8Array;
13
- version: number;
14
- gameId: Address;
15
- ownerProfile: Address;
16
- fleetShips: Address;
17
- subProfile: Address;
18
- subProfileInvalidator: Address;
19
- };
20
- export type FleetArgs = {
21
- version: number;
22
- gameId: Address;
23
- ownerProfile: Address;
24
- fleetShips: Address;
25
- subProfile: Address;
26
- subProfileInvalidator: Address;
27
- };
28
- export declare function getFleetEncoder(): Encoder<FleetArgs>;
29
- export declare function getFleetDecoder(): Decoder<Fleet>;
30
- export declare function getFleetCodec(): Codec<FleetArgs, Fleet>;
31
- export declare function decodeFleet<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Fleet, TAddress>;
32
- export declare function decodeFleet<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Fleet, TAddress>;
33
- export declare function fetchFleet<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Fleet, TAddress>>;
34
- export declare function fetchMaybeFleet<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Fleet, TAddress>>;
35
- export declare function fetchAllFleet(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Fleet>[]>;
36
- export declare function fetchAllMaybeFleet(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Fleet>[]>;
37
- export declare function getFleetSize(): number;
38
- //# sourceMappingURL=fleet.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fleet.d.ts","sourceRoot":"","sources":["../../../../src/codama/accounts/fleet.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EAYpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,mBAAmB,yBAE9B,CAAC;AAEH,wBAAgB,0BAA0B,uBAEzC;AAED,MAAM,MAAM,KAAK,GAAG;IAClB,aAAa,EAAE,kBAAkB,CAAC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,qBAAqB,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,qBAAqB,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,wBAAgB,eAAe,IAAI,OAAO,CAAC,SAAS,CAAC,CAapD;AAED,wBAAgB,eAAe,IAAI,OAAO,CAAC,KAAK,CAAC,CAUhD;AAED,wBAAgB,aA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SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC,CAGhC;AAED,wBAAgB,YAAY,IAAI,MAAM,CAErC"}
@@ -1,67 +0,0 @@
1
- /**
2
- * This code was AUTOGENERATED using the codama library.
3
- * Please DO NOT EDIT THIS FILE, instead use visitors
4
- * to add features, then rerun codama to update it.
5
- *
6
- * @see https://github.com/codama-idl/codama
7
- */
8
- import { type Address, type Codec, type Decoder, type Encoder, type IAccountMeta, type IAccountSignerMeta, type IInstruction, type IInstructionWithAccounts, type IInstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit';
9
- import { SRSLY_PROGRAM_ADDRESS } from '../programs';
10
- export declare const NORMALIZE_ADMIN_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
11
- export declare function getNormalizeAdminDiscriminatorBytes(): ReadonlyUint8Array;
12
- export type NormalizeAdminInstruction<TProgram extends string = typeof SRSLY_PROGRAM_ADDRESS, TAccountAdmin extends string | IAccountMeta<string> = string, TAccountContract extends string | IAccountMeta<string> = string, TAccountRentalState extends string | IAccountMeta<string> = string, TAccountRentalAuthority extends string | IAccountMeta<string> = string, TAccountThread extends string | IAccountMeta<string> = string, TAccountAntegenProgram extends string | IAccountMeta<string> = 'AgThdyi1P5RkVeZD2rQahTvs8HePJoGFFxKtvok5s2J1', TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
13
- TAccountAdmin extends string ? ReadonlySignerAccount<TAccountAdmin> & IAccountSignerMeta<TAccountAdmin> : TAccountAdmin,
14
- TAccountContract extends string ? WritableAccount<TAccountContract> : TAccountContract,
15
- TAccountRentalState extends string ? WritableAccount<TAccountRentalState> : TAccountRentalState,
16
- TAccountRentalAuthority extends string ? WritableAccount<TAccountRentalAuthority> : TAccountRentalAuthority,
17
- TAccountThread extends string ? WritableAccount<TAccountThread> : TAccountThread,
18
- TAccountAntegenProgram extends string ? ReadonlyAccount<TAccountAntegenProgram> : TAccountAntegenProgram,
19
- TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
20
- ...TRemainingAccounts
21
- ]>;
22
- export type NormalizeAdminInstructionData = {
23
- discriminator: ReadonlyUint8Array;
24
- };
25
- export type NormalizeAdminInstructionDataArgs = {};
26
- export declare function getNormalizeAdminInstructionDataEncoder(): Encoder<NormalizeAdminInstructionDataArgs>;
27
- export declare function getNormalizeAdminInstructionDataDecoder(): Decoder<NormalizeAdminInstructionData>;
28
- export declare function getNormalizeAdminInstructionDataCodec(): Codec<NormalizeAdminInstructionDataArgs, NormalizeAdminInstructionData>;
29
- export type NormalizeAdminAsyncInput<TAccountAdmin extends string = string, TAccountContract extends string = string, TAccountRentalState extends string = string, TAccountRentalAuthority extends string = string, TAccountThread extends string = string, TAccountAntegenProgram extends string = string, TAccountSystemProgram extends string = string> = {
30
- admin: TransactionSigner<TAccountAdmin>;
31
- contract: Address<TAccountContract>;
32
- rentalState: Address<TAccountRentalState>;
33
- rentalAuthority?: Address<TAccountRentalAuthority>;
34
- thread: Address<TAccountThread>;
35
- antegenProgram?: Address<TAccountAntegenProgram>;
36
- systemProgram?: Address<TAccountSystemProgram>;
37
- };
38
- export declare function getNormalizeAdminInstructionAsync<TAccountAdmin extends string, TAccountContract extends string, TAccountRentalState extends string, TAccountRentalAuthority extends string, TAccountThread extends string, TAccountAntegenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SRSLY_PROGRAM_ADDRESS>(input: NormalizeAdminAsyncInput<TAccountAdmin, TAccountContract, TAccountRentalState, TAccountRentalAuthority, TAccountThread, TAccountAntegenProgram, TAccountSystemProgram>, config?: {
39
- programAddress?: TProgramAddress;
40
- }): Promise<NormalizeAdminInstruction<TProgramAddress, TAccountAdmin, TAccountContract, TAccountRentalState, TAccountRentalAuthority, TAccountThread, TAccountAntegenProgram, TAccountSystemProgram>>;
41
- export type NormalizeAdminInput<TAccountAdmin extends string = string, TAccountContract extends string = string, TAccountRentalState extends string = string, TAccountRentalAuthority extends string = string, TAccountThread extends string = string, TAccountAntegenProgram extends string = string, TAccountSystemProgram extends string = string> = {
42
- admin: TransactionSigner<TAccountAdmin>;
43
- contract: Address<TAccountContract>;
44
- rentalState: Address<TAccountRentalState>;
45
- rentalAuthority: Address<TAccountRentalAuthority>;
46
- thread: Address<TAccountThread>;
47
- antegenProgram?: Address<TAccountAntegenProgram>;
48
- systemProgram?: Address<TAccountSystemProgram>;
49
- };
50
- export declare function getNormalizeAdminInstruction<TAccountAdmin extends string, TAccountContract extends string, TAccountRentalState extends string, TAccountRentalAuthority extends string, TAccountThread extends string, TAccountAntegenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SRSLY_PROGRAM_ADDRESS>(input: NormalizeAdminInput<TAccountAdmin, TAccountContract, TAccountRentalState, TAccountRentalAuthority, TAccountThread, TAccountAntegenProgram, TAccountSystemProgram>, config?: {
51
- programAddress?: TProgramAddress;
52
- }): NormalizeAdminInstruction<TProgramAddress, TAccountAdmin, TAccountContract, TAccountRentalState, TAccountRentalAuthority, TAccountThread, TAccountAntegenProgram, TAccountSystemProgram>;
53
- export type ParsedNormalizeAdminInstruction<TProgram extends string = typeof SRSLY_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
54
- programAddress: Address<TProgram>;
55
- accounts: {
56
- admin: TAccountMetas[0];
57
- contract: TAccountMetas[1];
58
- rentalState: TAccountMetas[2];
59
- rentalAuthority: TAccountMetas[3];
60
- thread: TAccountMetas[4];
61
- antegenProgram: TAccountMetas[5];
62
- systemProgram: TAccountMetas[6];
63
- };
64
- data: NormalizeAdminInstructionData;
65
- };
66
- export declare function parseNormalizeAdminInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedNormalizeAdminInstruction<TProgram, TAccountMetas>;
67
- //# sourceMappingURL=normalizeAdmin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalizeAdmin.d.ts","sourceRoot":"","sources":["../../../../src/codama/instructions/normalizeAdmin.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAUL,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGpD,eAAO,MAAM,6BAA6B,yBAExC,CAAC;AAEH,wBAAgB,mCAAmC,uBAIlD;AAED,MAAM,MAAM,yBAAyB,CACnC,QAAQ,SAAS,MAAM,GAAG,OAAO,qBAAqB,EACtD,aAAa,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EAC5D,gBAAgB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EAC/D,mBAAmB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EAClE,uBAAuB,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EACtE,cAAc,SAAS,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM,EAC7D,sBAAsB,SAClB,MAAM,GACN,YAAY,CAAC,MAAM,CAAC,GAAG,8CAA8C,EACzE,q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