diff --git a/.changeset/tame-phones-shine.md b/.changeset/tame-phones-shine.md new file mode 100644 index 00000000..eb201fc1 --- /dev/null +++ b/.changeset/tame-phones-shine.md @@ -0,0 +1,11 @@ +--- +"@macalinao/codama-renderers-markdown": minor +"@macalinao/codama-renderers-js-esm": minor +"@macalinao/clients-orca-whirlpools": minor +"@macalinao/clients-kamino-lending": minor +"@macalinao/clients-token-metadata": minor +"@macalinao/clients-quarry": minor +"@macalinao/coda": minor +--- + +Update Codama to latest diff --git a/bun.lock b/bun.lock index 1388033a..808bfbaa 100644 --- a/bun.lock +++ b/bun.lock @@ -105,7 +105,7 @@ }, "dependencies": { "@codama/nodes-from-anchor": "catalog:", - "@codama/renderers-rust": "^1.2.3", + "@codama/renderers-rust": "^1.2.5", "@macalinao/codama-nodes-from-anchor-x": "workspace:*", "@macalinao/codama-rename-visitor": "workspace:*", "@macalinao/codama-renderers-js-esm": "workspace:*", @@ -170,7 +170,7 @@ "version": "0.3.0", "dependencies": { "@codama/renderers-core": "catalog:", - "@codama/renderers-js": "^1.3.5", + "@codama/renderers-js": "^1.4.1", "codama": "catalog:", }, "devDependencies": { @@ -218,15 +218,15 @@ "react-dom": "^19.1.1", }, "catalog": { - "@codama/nodes": "^1.3.4", - "@codama/nodes-from-anchor": "^1.2.6", - "@codama/renderers-core": "^1.1.0", - "@codama/visitors-core": "^1.3.4", + "@codama/nodes": "^1.3.7", + "@codama/nodes-from-anchor": "^1.2.9", + "@codama/renderers-core": "^1.2.2", + "@codama/visitors-core": "^1.3.7", "@macalinao/eslint-config": "^6", "@macalinao/tsconfig": "^3.2.3", "@solana/kit": "^3", "@types/bun": "^1.2.20", - "codama": "^1.3.4", + "codama": "^1.3.7", "eslint": "^9.35.0", "typescript": "^5.9.2", }, @@ -287,27 +287,27 @@ "@changesets/write": ["@changesets/write@0.4.0", "", { "dependencies": { "@changesets/types": "^6.1.0", "fs-extra": "^7.0.1", "human-id": "^4.1.1", "prettier": "^2.7.1" } }, "sha512-CdTLvIOPiCNuH71pyDu3rA+Q0n65cmAbXnwWH84rKGiFumFzkmHNT8KHTMEchcxN+Kl8I54xGUhJ7l3E7X396Q=="], - "@codama/cli": ["@codama/cli@1.3.2", "", { "dependencies": { "@codama/nodes": "1.3.4", "@codama/visitors": "1.3.4", "@codama/visitors-core": "1.3.4", "commander": "^14.0.0", "picocolors": "^1.1.1", "prompts": "^2.4.2" }, "bin": { "codama": "bin/cli.cjs" } }, "sha512-oAY9zbDEfhTkoqGi4J57AmMJp5f2yqyIFfnBhecBUagpa2NxFiYnAJE0hu+ekpM5N3n76THFAFXA9bG81wayJw=="], + "@codama/cli": ["@codama/cli@1.3.5", "", { "dependencies": { "@codama/nodes": "1.3.7", "@codama/visitors": "1.3.7", "@codama/visitors-core": "1.3.7", "commander": "^14.0.1", "picocolors": "^1.1.1", "prompts": "^2.4.2" }, "bin": { "codama": "bin/cli.cjs" } }, "sha512-UgJGaTK2TXnbRcnCgReKqcDFjU941XZTvA0qbSiFH0Njrwb0kcLkKirMKwdyDaCHry7QcybzIKbp4ErrwqExMA=="], - "@codama/errors": ["@codama/errors@1.3.4", "", { "dependencies": { "@codama/node-types": "1.3.4", "chalk": "^5.6.0", "commander": "^14.0.0" }, "bin": { "errors": "bin/cli.cjs" } }, "sha512-gEbfWkf5J1klGlLbrg5zIMYTncYO6SCsLRxKbDRrE1TmxRqt3cUovQyPhccGcNh/e/GisauIGjbsZTJaFNgXuw=="], + "@codama/errors": ["@codama/errors@1.3.7", "", { "dependencies": { "@codama/node-types": "1.3.7", "commander": "^14.0.1", "picocolors": "^1.1.1" }, "bin": { "errors": "bin/cli.cjs" } }, "sha512-96BF8agDVc2vAgL4qw1lZZfuJ7XBefdzTBk2VOUnOhdMQiLb0QhJCC4BH88OcL+rZXQdet4pk7Qwarj1I1GFKg=="], - "@codama/node-types": ["@codama/node-types@1.3.4", "", {}, "sha512-WOKU9v019gfX58y+I+hadokckvYLEZKvcsXpf578S+B+sV9YBCOhIjlzDDONcfe9iGUw49M6VpyWkp+EenasLg=="], + "@codama/node-types": ["@codama/node-types@1.3.7", "", {}, "sha512-L9UTFfoeki5t+BYJAa4OMsqBPpbMbx8YJQar+55mYcjwGlJsKJW7mRfLYvwEFkCUYyLdNva40OVmTf88jccZCA=="], - "@codama/nodes": ["@codama/nodes@1.3.4", "", { "dependencies": { "@codama/errors": "1.3.4", "@codama/node-types": "1.3.4" } }, "sha512-Q3eS/kMqiozZzlpY/otVfQQ9M3pRdCS0D1dlB3TyuHWBAJiAGPfjRT21KQ4M8xub6eTWJY7PwT7sykPqS/fQPg=="], + "@codama/nodes": ["@codama/nodes@1.3.7", "", { "dependencies": { "@codama/errors": "1.3.7", "@codama/node-types": "1.3.7" } }, "sha512-3OV6SIBcqsIDARyzZVGdfnffNlnKSYcb0aGp/9Liz5/EID0oBTIyuh/Cmj5Ww6RX4WPb+GNAxABAGW94zbcfQg=="], - "@codama/nodes-from-anchor": ["@codama/nodes-from-anchor@1.2.6", "", { "dependencies": { "@codama/errors": "1.3.4", "@codama/nodes": "1.3.4", "@codama/visitors": "1.3.4", "@noble/hashes": "^1.8.0", "@solana/codecs": "^3.0.0" } }, "sha512-rlCejx3TJITg6y0TFAb48JFC1DzcLnH1uQ/ITWulgNtbqWKsvvTucV//BXPdIYMEmyBr5gpqWG3vXMApHNdeZw=="], + "@codama/nodes-from-anchor": ["@codama/nodes-from-anchor@1.2.9", "", { "dependencies": { "@codama/errors": "1.3.7", "@codama/nodes": "1.3.7", "@codama/visitors": "1.3.7", "@noble/hashes": "^1.8.0", "@solana/codecs": "^3.0.3" } }, "sha512-n+53VumtguLeSzGWZLpJqWRqs+r8NkWb1w8Ci0AuWQ6Qwfbbk9LknUg1XkqpgZZuq2Hh/Xoy28yHBl2JeIXi3w=="], - "@codama/renderers-core": ["@codama/renderers-core@1.1.0", "", { "dependencies": { "@codama/errors": "1.3.4", "@codama/nodes": "1.3.4", "@codama/visitors-core": "1.3.4" } }, "sha512-OscEiIv4nXiiqb2I9PWDI0Aw8bM6Qdtb9oqbuFb0XXt8hJTeLoNk+AN8ZZFtJMtiy+SizJjUsbX2KFE2HsVhdg=="], + "@codama/renderers-core": ["@codama/renderers-core@1.2.2", "", { "dependencies": { "@codama/errors": "1.3.7", "@codama/nodes": "1.3.7", "@codama/visitors-core": "1.3.7" } }, "sha512-dPyHgn5L45G+tWP17ITvOlpX3+s2FcJHMjAhFZlmUHAJpH/wl+UsUwuWg698iSb56Er2jUwqX7srw5iZf7XHjQ=="], - "@codama/renderers-js": ["@codama/renderers-js@1.3.5", "", { "dependencies": { "@codama/errors": "1.3.4", "@codama/nodes": "1.3.4", "@codama/renderers-core": "1.1.0", "@codama/visitors-core": "1.3.4", "@solana/codecs-strings": "^3.0.1", "nunjucks": "^3.2.4", "prettier": "^3.6.2" } }, "sha512-c23KBVOqmNd02pzxSTGxBUKVnC6LOZOK2KPeYCb3EsmD5E4YSEFAMt2bI66BsbzuisKxLya9dop7UG5wRGfIIg=="], + "@codama/renderers-js": ["@codama/renderers-js@1.4.1", "", { "dependencies": { "@codama/errors": "1.3.6", "@codama/nodes": "1.3.6", "@codama/renderers-core": "1.2.1", "@codama/visitors-core": "1.3.6", "@solana/codecs-strings": "^3.0.3", "prettier": "^3.6.2" } }, "sha512-/yRd7u6GNdmJ7gaB3RQGg7Z3Jn9UaVn5m7LDvC465wXWUPIWw9h4y3JUW4gycJAhMYohGKoi7/E9moC05lXqzg=="], - "@codama/renderers-rust": ["@codama/renderers-rust@1.2.3", "", { "dependencies": { "@codama/errors": "1.3.4", "@codama/nodes": "1.3.4", "@codama/renderers-core": "1.1.0", "@codama/visitors-core": "1.3.4", "@solana/codecs-strings": "^3.0.1", "nunjucks": "^3.2.4" } }, "sha512-YHD55YQ+DitWDe1uEsAubQ7sIzKF2x420RA8/FSGplx4pvarU0i1REjzbKZEydVTBzWUPHGcvUVMXINuPIpEmg=="], + "@codama/renderers-rust": ["@codama/renderers-rust@1.2.5", "", { "dependencies": { "@codama/errors": "1.3.6", "@codama/nodes": "1.3.6", "@codama/renderers-core": "1.2.1", "@codama/visitors-core": "1.3.6", "@solana/codecs-strings": "^3.0.3", "nunjucks": "^3.2.4" } }, "sha512-tCsGpi98+JLvgIcAjorP/edFqeWUyCEpoVOAQZvfIl/yTzS5JpYd0UyzEq9Z3MpvEoG3d8o2jJx6C1NyXi+MzQ=="], - "@codama/validators": ["@codama/validators@1.3.4", "", { "dependencies": { "@codama/errors": "1.3.4", "@codama/nodes": "1.3.4", "@codama/visitors-core": "1.3.4" } }, "sha512-VlmR5lLEm3monBtQYTz4A/pYHsqFlkew6zlli1+P/IKcnIfH5Px6XJhTVyP7hcD1eHaPKLbWiLidQAxLmRdtiw=="], + "@codama/validators": ["@codama/validators@1.3.7", "", { "dependencies": { "@codama/errors": "1.3.7", "@codama/nodes": "1.3.7", "@codama/visitors-core": "1.3.7" } }, "sha512-OxuPhIPcuqSLmwDTcl9+VyEq6mwsLLqVXtQjgQgjEpr0IO/KAV9RG98Ye2yoK21jEVGDnzN9jsSQVHysRfpMMA=="], - "@codama/visitors": ["@codama/visitors@1.3.4", "", { "dependencies": { "@codama/errors": "1.3.4", "@codama/nodes": "1.3.4", "@codama/visitors-core": "1.3.4" } }, "sha512-95asorZEjGTmCIcDlZL0jdPxVwelU4paa5y76THM90gox6C4qZFimc+U1o8PXg2phJlyEi034NQpX+k05dh86g=="], + "@codama/visitors": ["@codama/visitors@1.3.7", "", { "dependencies": { "@codama/errors": "1.3.7", "@codama/nodes": "1.3.7", "@codama/visitors-core": "1.3.7" } }, "sha512-pIVK84G4dquvDXmr0q9GACcwDROw7DOBz0Kk/qt837FsKYr37xc6nU2LIguXu8QVIFOHBZk1HVAb7/S0eo/dqg=="], - "@codama/visitors-core": ["@codama/visitors-core@1.3.4", "", { "dependencies": { "@codama/errors": "1.3.4", "@codama/nodes": "1.3.4", "json-stable-stringify": "^1.3.0" } }, "sha512-TCP1ncA0ErBvv5q8BKCRvv98qHh9on8MOiPhdToJ/w50aNm0y5Y2mHbUWqk5vle8k3V9fuo7uf1aAOaqA6G4Vg=="], + "@codama/visitors-core": ["@codama/visitors-core@1.3.7", "", { "dependencies": { "@codama/errors": "1.3.7", "@codama/nodes": "1.3.7", "json-stable-stringify": "^1.3.0" } }, "sha512-B1JnzhRDJiLxewha/F3YzeEp8Zrtd7eKiGNJFJHSPufAnIVm2lQUDaKS+OrAOHnSRmRKIAVdzfpFpdz6EM0N6Q=="], "@emnapi/core": ["@emnapi/core@1.4.5", "", { "dependencies": { "@emnapi/wasi-threads": "1.0.4", "tslib": "^2.4.0" } }, "sha512-XsLw1dEOpkSX/WucdqUhPWP7hDxSvZiY+fsUC14h+FtQ2Ifni4znbBt8punRX+Uj2JG/uDb8nEHVKvrVlvdZ5Q=="], @@ -639,7 +639,7 @@ "@solana/codecs-numbers": ["@solana/codecs-numbers@3.0.1", "", { "dependencies": { "@solana/codecs-core": "3.0.1", "@solana/errors": "3.0.1" }, "peerDependencies": { "typescript": ">=5.3.3" } }, "sha512-HdXioWMVc0Ih9N7vuEF11pMwQWHqSF/TQrCDKljr981QQ5q/pBleUZB3hM43zP/ndnTasIxqAuLXIypricAGqg=="], - "@solana/codecs-strings": ["@solana/codecs-strings@3.0.1", "", { "dependencies": { "@solana/codecs-core": "3.0.1", "@solana/codecs-numbers": "3.0.1", "@solana/errors": "3.0.1" }, "peerDependencies": { "fastestsmallesttextencoderdecoder": "^1.0.22", "typescript": ">=5.3.3" } }, "sha512-UxaD1Xdxe35Y2B0HnSHe48ok8ew+tyrVI1w65eHj0NzGb9FxLx/KuuEg/b/qXQRUB75JQjDo8IBh5rWZ7rl5qQ=="], + "@solana/codecs-strings": ["@solana/codecs-strings@3.0.3", "", { "dependencies": { "@solana/codecs-core": "3.0.3", "@solana/codecs-numbers": "3.0.3", "@solana/errors": "3.0.3" }, "peerDependencies": { "fastestsmallesttextencoderdecoder": "^1.0.22", "typescript": ">=5.3.3" } }, "sha512-VHBXnnTVtcQ1j+7Vrz+qSYo38no+jiHRdGnhFspRXEHNJbllzwKqgBE7YN3qoIXH+MKxgJUcwO5KHmdzf8Wn2A=="], "@solana/errors": ["@solana/errors@3.0.1", "", { "dependencies": { "chalk": "^5.6.0", "commander": "^14.0.0" }, "peerDependencies": { "typescript": ">=5.3.3" }, "bin": { "errors": "bin/cli.mjs" } }, "sha512-/EhRoJLrO03wj+3/miA6YkBnGjAS12mvilWkQ4LBv/hVqhUF9V8JXpSMnD40hoaMraE23V9IaHNHcfoJmldjwA=="], @@ -735,7 +735,7 @@ "@tybys/wasm-util": ["@tybys/wasm-util@0.10.0", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-VyyPYFlOMNylG45GoAe0xDoLwWuowvf92F9kySqzYh8vmYm7D2u4iUJKa1tOUpS70Ku13ASrOkS4ScXFsTaCNQ=="], - "@types/bun": ["@types/bun@1.2.21", "", { "dependencies": { "bun-types": "1.2.21" } }, "sha512-NiDnvEqmbfQ6dmZ3EeUO577s4P5bf4HCTXtI6trMc6f6RzirY5IrF3aIookuSpyslFzrnvv2lmEWv5HyC1X79A=="], + "@types/bun": ["@types/bun@1.2.22", "", { "dependencies": { "bun-types": "1.2.22" } }, "sha512-5A/KrKos2ZcN0c6ljRSOa1fYIyCKhZfIVYeuyb4snnvomnpFqC0tTsEkdqNxbAgExV384OETQ//WAjl3XbYqQA=="], "@types/debug": ["@types/debug@4.1.12", "", { "dependencies": { "@types/ms": "*" } }, "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ=="], @@ -887,7 +887,7 @@ "braces": ["braces@3.0.3", "", { "dependencies": { "fill-range": "^7.1.1" } }, "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA=="], - "bun-types": ["bun-types@1.2.21", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-sa2Tj77Ijc/NTLS0/Odjq/qngmEPZfbfnOERi0KRUYhT9R8M4VBioWVmMWE5GrYbKMc+5lVybXygLdibHaqVqw=="], + "bun-types": ["bun-types@1.2.22", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-hwaAu8tct/Zn6Zft4U9BsZcXkYomzpHJX28ofvx7k0Zz2HNz54n1n+tDgxoWFGB4PcFvJXJQloPhaV2eP3Q6EA=="], "call-bind": ["call-bind@1.0.8", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.0", "es-define-property": "^1.0.0", "get-intrinsic": "^1.2.4", "set-function-length": "^1.2.2" } }, "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww=="], @@ -931,7 +931,7 @@ "coda-docs": ["coda-docs@workspace:apps/docs"], - "codama": ["codama@1.3.4", "", { "dependencies": { "@codama/cli": "1.3.2", "@codama/errors": "1.3.4", "@codama/nodes": "1.3.4", "@codama/validators": "1.3.4", "@codama/visitors": "1.3.4" }, "bin": { "codama": "bin/cli.cjs" } }, "sha512-nAK1i2w8z3dGwcUDw0yhaX2o8NuIv98haWlUqBcdn+sFGZYqL3xvG0p/0Wm7KXB0F6FK0txByTg7pBQJ0SxyPQ=="], + "codama": ["codama@1.3.7", "", { "dependencies": { "@codama/cli": "1.3.5", "@codama/errors": "1.3.7", "@codama/nodes": "1.3.7", "@codama/validators": "1.3.7", "@codama/visitors": "1.3.7" }, "bin": { "codama": "bin/cli.cjs" } }, "sha512-+pUJrvSG3bO4QvfcWfc14p3sklzHRB/lV4gjnXPhyb7T6nCFwYpNWv6/bFuqQyUSgSNI1n3tst/I9EhoPXOjbw=="], "collapse-white-space": ["collapse-white-space@2.1.0", "", {}, "sha512-loKTxY1zCOuG4j9f6EPnuyyYkf58RnhhWTvRoZEokgB+WbdXehfjFviyOVYkqzEWz1Q5kRiZdBYS5SwxbQYwzw=="], @@ -947,7 +947,7 @@ "comma-separated-tokens": ["comma-separated-tokens@2.0.3", "", {}, "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg=="], - "commander": ["commander@14.0.0", "", {}, "sha512-2uM9rYjPvyq39NwLRqaiLtWHyDC1FvryJDa2ATTVims5YAS4PupsEQsDvP14FqhFr0P49CYDugi59xaxJlTXRA=="], + "commander": ["commander@14.0.1", "", {}, "sha512-2JkV3gUZUVrbNA+1sjBOYLsMZ5cEEl8GTFP2a4AVz5hvasAMCQ1D2l2le/cX+pV4N6ZU17zjUahLpIXRrnWL8A=="], "comment-parser": ["comment-parser@1.4.1", "", {}, "sha512-buhp5kePrmda3vhc5B9t7pUQXAb2Tnd0qgpkIhPhkHXxJpiPJ11H0ZEU0oBpJ2QztSbzG/ZxMj/CHsYJqRHmyg=="], @@ -1897,6 +1897,24 @@ "@changesets/write/prettier": ["prettier@2.8.8", "", { "bin": { "prettier": "bin-prettier.js" } }, "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q=="], + "@codama/nodes-from-anchor/@solana/codecs": ["@solana/codecs@3.0.3", "", { "dependencies": { "@solana/codecs-core": "3.0.3", "@solana/codecs-data-structures": "3.0.3", "@solana/codecs-numbers": "3.0.3", "@solana/codecs-strings": "3.0.3", "@solana/options": "3.0.3" }, "peerDependencies": { "typescript": ">=5.3.3" } }, "sha512-GOHwTlIQsCoJx9Ryr6cEf0FHKAQ7pY4aO4xgncAftrv0lveTQ1rPP2inQ1QT0gJllsIa8nwbfXAADs9nNJxQDA=="], + + "@codama/renderers-js/@codama/errors": ["@codama/errors@1.3.6", "", { "dependencies": { "@codama/node-types": "1.3.6", "commander": "^14.0.1", "picocolors": "^1.1.1" }, "bin": { "errors": "bin/cli.cjs" } }, "sha512-pWP42vregNgFGKY/hF4ifyfSL8FfYNnd0fKXjxP3IUX9HS7+T1CcfgfJ7St9YI6C77LpFPWmx+68Af4DGnAhKA=="], + + "@codama/renderers-js/@codama/nodes": ["@codama/nodes@1.3.6", "", { "dependencies": { "@codama/errors": "1.3.6", "@codama/node-types": "1.3.6" } }, "sha512-6fgnfmx0v5fR153Lkwe4Ghl2ei/7ZEqFfGZxRPzzzYwPAE/Q5Am+xZ0mULDyI1wW37HftCtAkTuXnIv2+6l+SQ=="], + + "@codama/renderers-js/@codama/renderers-core": ["@codama/renderers-core@1.2.1", "", { "dependencies": { "@codama/errors": "1.3.6", "@codama/nodes": "1.3.6", "@codama/visitors-core": "1.3.6" } }, "sha512-L7qAQvgTLmgzBKZYLO9XZKCvdT5vAEConzzCEy6n/CW4n48bxJDMTb+J6deaId//CpHOCPpxsSSoEjcxCOvqjA=="], + + "@codama/renderers-js/@codama/visitors-core": ["@codama/visitors-core@1.3.6", "", { "dependencies": { "@codama/errors": "1.3.6", "@codama/nodes": "1.3.6", "json-stable-stringify": "^1.3.0" } }, "sha512-qdG27oyCYYG53vD9V/M60/TS6IxlMSf8b/5KLb/UgCykNRFLxXhDZXkwnMKKtF3LgHFxaayb0Zq+W1Z0lmjaig=="], + + "@codama/renderers-rust/@codama/errors": ["@codama/errors@1.3.6", "", { "dependencies": { "@codama/node-types": "1.3.6", "commander": "^14.0.1", "picocolors": "^1.1.1" }, "bin": { "errors": "bin/cli.cjs" } }, "sha512-pWP42vregNgFGKY/hF4ifyfSL8FfYNnd0fKXjxP3IUX9HS7+T1CcfgfJ7St9YI6C77LpFPWmx+68Af4DGnAhKA=="], + + "@codama/renderers-rust/@codama/nodes": ["@codama/nodes@1.3.6", "", { "dependencies": { "@codama/errors": "1.3.6", "@codama/node-types": "1.3.6" } }, "sha512-6fgnfmx0v5fR153Lkwe4Ghl2ei/7ZEqFfGZxRPzzzYwPAE/Q5Am+xZ0mULDyI1wW37HftCtAkTuXnIv2+6l+SQ=="], + + "@codama/renderers-rust/@codama/renderers-core": ["@codama/renderers-core@1.2.1", "", { "dependencies": { "@codama/errors": "1.3.6", "@codama/nodes": "1.3.6", "@codama/visitors-core": "1.3.6" } }, "sha512-L7qAQvgTLmgzBKZYLO9XZKCvdT5vAEConzzCEy6n/CW4n48bxJDMTb+J6deaId//CpHOCPpxsSSoEjcxCOvqjA=="], + + "@codama/renderers-rust/@codama/visitors-core": ["@codama/visitors-core@1.3.6", "", { "dependencies": { "@codama/errors": "1.3.6", "@codama/nodes": "1.3.6", "json-stable-stringify": "^1.3.0" } }, "sha512-qdG27oyCYYG53vD9V/M60/TS6IxlMSf8b/5KLb/UgCykNRFLxXhDZXkwnMKKtF3LgHFxaayb0Zq+W1Z0lmjaig=="], + "@eslint-community/eslint-utils/eslint-visitor-keys": ["eslint-visitor-keys@3.4.3", "", {}, "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag=="], "@eslint/eslintrc/globals": ["globals@14.0.0", "", {}, "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ=="], @@ -1919,8 +1937,34 @@ "@manypkg/get-packages/fs-extra": ["fs-extra@8.1.0", "", { "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^4.0.0", "universalify": "^0.1.0" } }, "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g=="], + "@solana/accounts/@solana/codecs-strings": ["@solana/codecs-strings@3.0.1", "", { "dependencies": { "@solana/codecs-core": "3.0.1", "@solana/codecs-numbers": "3.0.1", "@solana/errors": "3.0.1" }, "peerDependencies": { "fastestsmallesttextencoderdecoder": "^1.0.22", "typescript": ">=5.3.3" } }, "sha512-UxaD1Xdxe35Y2B0HnSHe48ok8ew+tyrVI1w65eHj0NzGb9FxLx/KuuEg/b/qXQRUB75JQjDo8IBh5rWZ7rl5qQ=="], + + "@solana/addresses/@solana/codecs-strings": ["@solana/codecs-strings@3.0.1", "", { "dependencies": { "@solana/codecs-core": "3.0.1", "@solana/codecs-numbers": "3.0.1", "@solana/errors": "3.0.1" }, "peerDependencies": { "fastestsmallesttextencoderdecoder": "^1.0.22", "typescript": ">=5.3.3" } }, "sha512-UxaD1Xdxe35Y2B0HnSHe48ok8ew+tyrVI1w65eHj0NzGb9FxLx/KuuEg/b/qXQRUB75JQjDo8IBh5rWZ7rl5qQ=="], + + "@solana/codecs/@solana/codecs-strings": ["@solana/codecs-strings@3.0.1", "", { "dependencies": { "@solana/codecs-core": "3.0.1", "@solana/codecs-numbers": "3.0.1", "@solana/errors": "3.0.1" }, "peerDependencies": { "fastestsmallesttextencoderdecoder": "^1.0.22", "typescript": ">=5.3.3" } }, "sha512-UxaD1Xdxe35Y2B0HnSHe48ok8ew+tyrVI1w65eHj0NzGb9FxLx/KuuEg/b/qXQRUB75JQjDo8IBh5rWZ7rl5qQ=="], + + "@solana/codecs-strings/@solana/codecs-core": ["@solana/codecs-core@3.0.3", "", { "dependencies": { "@solana/errors": "3.0.3" }, "peerDependencies": { "typescript": ">=5.3.3" } }, "sha512-emKykJ3h1DmnDOY29Uv9eJXP8E/FHzvlUBJ6te+5EbKdFjj7vdlKYPfDxOI6iGdXTY+YC/ELtbNBh6QwF2uEDQ=="], + + "@solana/codecs-strings/@solana/codecs-numbers": ["@solana/codecs-numbers@3.0.3", "", { "dependencies": { "@solana/codecs-core": "3.0.3", "@solana/errors": "3.0.3" }, "peerDependencies": { "typescript": ">=5.3.3" } }, "sha512-pfXkH9J0glrM8qj6389GAn30+cJOxzXLR2FsPOHCUMXrqLhGjMMZAWhsQkpOQ37SGc/7EiQsT/gmyGC7gxHqJQ=="], + + "@solana/codecs-strings/@solana/errors": ["@solana/errors@3.0.3", "", { "dependencies": { "chalk": "5.6.2", "commander": "14.0.0" }, "peerDependencies": { "typescript": ">=5.3.3" }, "bin": { "errors": "bin/cli.mjs" } }, "sha512-1l84xJlHNva6io62PcYfUamwWlc0eM95nHgCrKX0g0cLoC6D6QHYPCEbEVkR+C5UtP9JDgyQM8MFiv+Ei5tO9Q=="], + + "@solana/errors/commander": ["commander@14.0.0", "", {}, "sha512-2uM9rYjPvyq39NwLRqaiLtWHyDC1FvryJDa2ATTVims5YAS4PupsEQsDvP14FqhFr0P49CYDugi59xaxJlTXRA=="], + + "@solana/keys/@solana/codecs-strings": ["@solana/codecs-strings@3.0.1", "", { "dependencies": { "@solana/codecs-core": "3.0.1", "@solana/codecs-numbers": "3.0.1", "@solana/errors": "3.0.1" }, "peerDependencies": { "fastestsmallesttextencoderdecoder": "^1.0.22", "typescript": ">=5.3.3" } }, "sha512-UxaD1Xdxe35Y2B0HnSHe48ok8ew+tyrVI1w65eHj0NzGb9FxLx/KuuEg/b/qXQRUB75JQjDo8IBh5rWZ7rl5qQ=="], + + "@solana/options/@solana/codecs-strings": ["@solana/codecs-strings@3.0.1", "", { "dependencies": { "@solana/codecs-core": "3.0.1", "@solana/codecs-numbers": "3.0.1", "@solana/errors": "3.0.1" }, "peerDependencies": { "fastestsmallesttextencoderdecoder": "^1.0.22", "typescript": ">=5.3.3" } }, "sha512-UxaD1Xdxe35Y2B0HnSHe48ok8ew+tyrVI1w65eHj0NzGb9FxLx/KuuEg/b/qXQRUB75JQjDo8IBh5rWZ7rl5qQ=="], + + "@solana/rpc-api/@solana/codecs-strings": ["@solana/codecs-strings@3.0.1", "", { "dependencies": { "@solana/codecs-core": "3.0.1", "@solana/codecs-numbers": "3.0.1", "@solana/errors": "3.0.1" }, "peerDependencies": { "fastestsmallesttextencoderdecoder": "^1.0.22", "typescript": ">=5.3.3" } }, "sha512-UxaD1Xdxe35Y2B0HnSHe48ok8ew+tyrVI1w65eHj0NzGb9FxLx/KuuEg/b/qXQRUB75JQjDo8IBh5rWZ7rl5qQ=="], + "@solana/rpc-transport-http/undici-types": ["undici-types@7.15.0", "", {}, "sha512-Xyn5T99wU4kPhLZMm+ElE6M+IoSeG8Se7eG9xoZ82ZgVHJ07wb/IWcDZeXe2GOPkavcJ8ko5oSlXMDRl/QgY9Q=="], + "@solana/rpc-types/@solana/codecs-strings": ["@solana/codecs-strings@3.0.1", "", { "dependencies": { "@solana/codecs-core": "3.0.1", "@solana/codecs-numbers": "3.0.1", "@solana/errors": "3.0.1" }, "peerDependencies": { "fastestsmallesttextencoderdecoder": "^1.0.22", "typescript": ">=5.3.3" } }, "sha512-UxaD1Xdxe35Y2B0HnSHe48ok8ew+tyrVI1w65eHj0NzGb9FxLx/KuuEg/b/qXQRUB75JQjDo8IBh5rWZ7rl5qQ=="], + + "@solana/transaction-confirmation/@solana/codecs-strings": ["@solana/codecs-strings@3.0.1", "", { "dependencies": { "@solana/codecs-core": "3.0.1", "@solana/codecs-numbers": "3.0.1", "@solana/errors": "3.0.1" }, "peerDependencies": { "fastestsmallesttextencoderdecoder": "^1.0.22", "typescript": ">=5.3.3" } }, "sha512-UxaD1Xdxe35Y2B0HnSHe48ok8ew+tyrVI1w65eHj0NzGb9FxLx/KuuEg/b/qXQRUB75JQjDo8IBh5rWZ7rl5qQ=="], + + "@solana/transactions/@solana/codecs-strings": ["@solana/codecs-strings@3.0.1", "", { "dependencies": { "@solana/codecs-core": "3.0.1", "@solana/codecs-numbers": "3.0.1", "@solana/errors": "3.0.1" }, "peerDependencies": { "fastestsmallesttextencoderdecoder": "^1.0.22", "typescript": ">=5.3.3" } }, "sha512-UxaD1Xdxe35Y2B0HnSHe48ok8ew+tyrVI1w65eHj0NzGb9FxLx/KuuEg/b/qXQRUB75JQjDo8IBh5rWZ7rl5qQ=="], + "@tailwindcss/oxide-wasm32-wasi/@emnapi/core": ["@emnapi/core@1.4.5", "", { "dependencies": { "@emnapi/wasi-threads": "1.0.4", "tslib": "^2.4.0" }, "bundled": true }, "sha512-XsLw1dEOpkSX/WucdqUhPWP7hDxSvZiY+fsUC14h+FtQ2Ifni4znbBt8punRX+Uj2JG/uDb8nEHVKvrVlvdZ5Q=="], "@tailwindcss/oxide-wasm32-wasi/@emnapi/runtime": ["@emnapi/runtime@1.4.5", "", { "dependencies": { "tslib": "^2.4.0" }, "bundled": true }, "sha512-++LApOtY0pEEz1zrd9vy1/zXVaVJJ/EbAF3u0fXIzPJEDtnITsBGbbK0EkM72amhl/R5b+5xx0Y/QhcVOpuulg=="], @@ -1955,8 +1999,6 @@ "@typescript-eslint/utils/@typescript-eslint/typescript-estree": ["@typescript-eslint/typescript-estree@8.40.0", "", { "dependencies": { "@typescript-eslint/project-service": "8.40.0", "@typescript-eslint/tsconfig-utils": "8.40.0", "@typescript-eslint/types": "8.40.0", "@typescript-eslint/visitor-keys": "8.40.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", "minimatch": "^9.0.4", "semver": "^7.6.0", "ts-api-utils": "^2.1.0" }, "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-k1z9+GJReVVOkc1WfVKs1vBrR5MIKKbdAjDTPvIK3L8De6KbFfPFt6BKpdkdk7rZS2GtC/m6yI5MYX+UsuvVYQ=="], - "bun-types/@types/node": ["@types/node@24.3.0", "", { "dependencies": { "undici-types": "~7.10.0" } }, "sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow=="], - "coda-docs/@types/node": ["@types/node@24.3.0", "", { "dependencies": { "undici-types": "~7.10.0" } }, "sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow=="], "eslint/@eslint/js": ["@eslint/js@9.35.0", "", {}, "sha512-30iXE9whjlILfWobBkNerJo+TXYsgVM5ERQwMcMKCHckHflCmf7wXDAHlARoWnh0s1U72WqlbeyE7iAcCzuCPw=="], @@ -1991,6 +2033,8 @@ "import-fresh/resolve-from": ["resolve-from@4.0.0", "", {}, "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g=="], + "lint-staged/commander": ["commander@14.0.0", "", {}, "sha512-2uM9rYjPvyq39NwLRqaiLtWHyDC1FvryJDa2ATTVims5YAS4PupsEQsDvP14FqhFr0P49CYDugi59xaxJlTXRA=="], + "log-update/slice-ansi": ["slice-ansi@7.1.0", "", { "dependencies": { "ansi-styles": "^6.2.1", "is-fullwidth-code-point": "^5.0.0" } }, "sha512-bSiSngZ/jWeX93BqeIAbImyTbEihizcwNjFoRUIY/T1wWQsfsm2Vw1agPKylXvQTU7iASGdHhyqRlqQzfz+Htg=="], "log-update/strip-ansi": ["strip-ansi@7.1.0", "", { "dependencies": { "ansi-regex": "^6.0.1" } }, "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ=="], @@ -2031,12 +2075,32 @@ "@changesets/parse/js-yaml/argparse": ["argparse@1.0.10", "", { "dependencies": { "sprintf-js": "~1.0.2" } }, "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg=="], + "@codama/nodes-from-anchor/@solana/codecs/@solana/codecs-core": ["@solana/codecs-core@3.0.3", "", { "dependencies": { "@solana/errors": "3.0.3" }, "peerDependencies": { "typescript": ">=5.3.3" } }, "sha512-emKykJ3h1DmnDOY29Uv9eJXP8E/FHzvlUBJ6te+5EbKdFjj7vdlKYPfDxOI6iGdXTY+YC/ELtbNBh6QwF2uEDQ=="], + + "@codama/nodes-from-anchor/@solana/codecs/@solana/codecs-data-structures": ["@solana/codecs-data-structures@3.0.3", "", { "dependencies": { "@solana/codecs-core": "3.0.3", "@solana/codecs-numbers": "3.0.3", "@solana/errors": "3.0.3" }, "peerDependencies": { "typescript": ">=5.3.3" } }, "sha512-R15cLp8riJvToXziW8lP6AMSwsztGhEnwgyGmll32Mo0Yjq+hduW2/fJrA/TJs6tA/OgTzMQjlxgk009EqZHCw=="], + + "@codama/nodes-from-anchor/@solana/codecs/@solana/codecs-numbers": ["@solana/codecs-numbers@3.0.3", "", { "dependencies": { "@solana/codecs-core": "3.0.3", "@solana/errors": "3.0.3" }, "peerDependencies": { "typescript": ">=5.3.3" } }, "sha512-pfXkH9J0glrM8qj6389GAn30+cJOxzXLR2FsPOHCUMXrqLhGjMMZAWhsQkpOQ37SGc/7EiQsT/gmyGC7gxHqJQ=="], + + "@codama/nodes-from-anchor/@solana/codecs/@solana/options": ["@solana/options@3.0.3", "", { "dependencies": { "@solana/codecs-core": "3.0.3", "@solana/codecs-data-structures": "3.0.3", "@solana/codecs-numbers": "3.0.3", "@solana/codecs-strings": "3.0.3", "@solana/errors": "3.0.3" }, "peerDependencies": { "typescript": ">=5.3.3" } }, "sha512-jarsmnQ63RN0JPC5j9sgUat07NrL9PC71XU7pUItd6LOHtu4+wJMio3l5mT0DHVfkfbFLL6iI6+QmXSVhTNF3g=="], + + "@codama/renderers-js/@codama/errors/@codama/node-types": ["@codama/node-types@1.3.6", "", {}, "sha512-n9BpPh/Kl6Z6Bbt1MtsKykAtdPKljoBm4T8ea1IL9ABdFs+wnvgZBxnIAhgM0hC82AtvQPNGezXzLTER1JZpyg=="], + + "@codama/renderers-js/@codama/nodes/@codama/node-types": ["@codama/node-types@1.3.6", "", {}, "sha512-n9BpPh/Kl6Z6Bbt1MtsKykAtdPKljoBm4T8ea1IL9ABdFs+wnvgZBxnIAhgM0hC82AtvQPNGezXzLTER1JZpyg=="], + + "@codama/renderers-rust/@codama/errors/@codama/node-types": ["@codama/node-types@1.3.6", "", {}, "sha512-n9BpPh/Kl6Z6Bbt1MtsKykAtdPKljoBm4T8ea1IL9ABdFs+wnvgZBxnIAhgM0hC82AtvQPNGezXzLTER1JZpyg=="], + + "@codama/renderers-rust/@codama/nodes/@codama/node-types": ["@codama/node-types@1.3.6", "", {}, "sha512-n9BpPh/Kl6Z6Bbt1MtsKykAtdPKljoBm4T8ea1IL9ABdFs+wnvgZBxnIAhgM0hC82AtvQPNGezXzLTER1JZpyg=="], + "@isaacs/cliui/strip-ansi/ansi-regex": ["ansi-regex@6.2.0", "", {}, "sha512-TKY5pyBkHyADOPYlRT9Lx6F544mPl0vS5Ew7BJ45hA08Q+t3GjbueLliBWN3sMICk6+y7HdyxSzC4bWS8baBdg=="], "@isaacs/cliui/wrap-ansi/ansi-styles": ["ansi-styles@6.2.1", "", {}, "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug=="], "@manypkg/find-root/find-up/locate-path": ["locate-path@5.0.0", "", { "dependencies": { "p-locate": "^4.1.0" } }, "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g=="], + "@solana/codecs-strings/@solana/errors/chalk": ["chalk@5.6.2", "", {}, "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA=="], + + "@solana/codecs-strings/@solana/errors/commander": ["commander@14.0.0", "", {}, "sha512-2uM9rYjPvyq39NwLRqaiLtWHyDC1FvryJDa2ATTVims5YAS4PupsEQsDvP14FqhFr0P49CYDugi59xaxJlTXRA=="], + "@typescript-eslint/eslint-plugin/@typescript-eslint/scope-manager/@typescript-eslint/types": ["@typescript-eslint/types@8.40.0", "", {}, "sha512-ETdbFlgbAmXHyFPwqUIYrfc12ArvpBhEVgGAxVYSwli26dn8Ko+lIo4Su9vI9ykTZdJn+vJprs/0eZU0YMAEQg=="], "@typescript-eslint/eslint-plugin/@typescript-eslint/visitor-keys/@typescript-eslint/types": ["@typescript-eslint/types@8.40.0", "", {}, "sha512-ETdbFlgbAmXHyFPwqUIYrfc12ArvpBhEVgGAxVYSwli26dn8Ko+lIo4Su9vI9ykTZdJn+vJprs/0eZU0YMAEQg=="], @@ -2113,6 +2177,14 @@ "wrap-ansi/strip-ansi/ansi-regex": ["ansi-regex@6.2.0", "", {}, "sha512-TKY5pyBkHyADOPYlRT9Lx6F544mPl0vS5Ew7BJ45hA08Q+t3GjbueLliBWN3sMICk6+y7HdyxSzC4bWS8baBdg=="], + "@codama/nodes-from-anchor/@solana/codecs/@solana/codecs-core/@solana/errors": ["@solana/errors@3.0.3", "", { "dependencies": { "chalk": "5.6.2", "commander": "14.0.0" }, "peerDependencies": { "typescript": ">=5.3.3" }, "bin": { "errors": "bin/cli.mjs" } }, "sha512-1l84xJlHNva6io62PcYfUamwWlc0eM95nHgCrKX0g0cLoC6D6QHYPCEbEVkR+C5UtP9JDgyQM8MFiv+Ei5tO9Q=="], + + "@codama/nodes-from-anchor/@solana/codecs/@solana/codecs-data-structures/@solana/errors": ["@solana/errors@3.0.3", "", { "dependencies": { "chalk": "5.6.2", "commander": "14.0.0" }, "peerDependencies": { "typescript": ">=5.3.3" }, "bin": { "errors": "bin/cli.mjs" } }, "sha512-1l84xJlHNva6io62PcYfUamwWlc0eM95nHgCrKX0g0cLoC6D6QHYPCEbEVkR+C5UtP9JDgyQM8MFiv+Ei5tO9Q=="], + + "@codama/nodes-from-anchor/@solana/codecs/@solana/codecs-numbers/@solana/errors": ["@solana/errors@3.0.3", "", { "dependencies": { "chalk": "5.6.2", "commander": "14.0.0" }, "peerDependencies": { "typescript": ">=5.3.3" }, "bin": { "errors": "bin/cli.mjs" } }, "sha512-1l84xJlHNva6io62PcYfUamwWlc0eM95nHgCrKX0g0cLoC6D6QHYPCEbEVkR+C5UtP9JDgyQM8MFiv+Ei5tO9Q=="], + + "@codama/nodes-from-anchor/@solana/codecs/@solana/options/@solana/errors": ["@solana/errors@3.0.3", "", { "dependencies": { "chalk": "5.6.2", "commander": "14.0.0" }, "peerDependencies": { "typescript": ">=5.3.3" }, "bin": { "errors": "bin/cli.mjs" } }, "sha512-1l84xJlHNva6io62PcYfUamwWlc0eM95nHgCrKX0g0cLoC6D6QHYPCEbEVkR+C5UtP9JDgyQM8MFiv+Ei5tO9Q=="], + "@manypkg/find-root/find-up/locate-path/p-locate": ["p-locate@4.1.0", "", { "dependencies": { "p-limit": "^2.2.0" } }, "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A=="], "@typescript-eslint/type-utils/@typescript-eslint/typescript-estree/fast-glob/glob-parent": ["glob-parent@5.1.2", "", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="], @@ -2135,6 +2207,22 @@ "typescript-eslint/@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["brace-expansion@2.0.2", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ=="], + "@codama/nodes-from-anchor/@solana/codecs/@solana/codecs-core/@solana/errors/chalk": ["chalk@5.6.2", "", {}, "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA=="], + + "@codama/nodes-from-anchor/@solana/codecs/@solana/codecs-core/@solana/errors/commander": ["commander@14.0.0", "", {}, "sha512-2uM9rYjPvyq39NwLRqaiLtWHyDC1FvryJDa2ATTVims5YAS4PupsEQsDvP14FqhFr0P49CYDugi59xaxJlTXRA=="], + + "@codama/nodes-from-anchor/@solana/codecs/@solana/codecs-data-structures/@solana/errors/chalk": ["chalk@5.6.2", "", {}, "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA=="], + + "@codama/nodes-from-anchor/@solana/codecs/@solana/codecs-data-structures/@solana/errors/commander": ["commander@14.0.0", "", {}, "sha512-2uM9rYjPvyq39NwLRqaiLtWHyDC1FvryJDa2ATTVims5YAS4PupsEQsDvP14FqhFr0P49CYDugi59xaxJlTXRA=="], + + "@codama/nodes-from-anchor/@solana/codecs/@solana/codecs-numbers/@solana/errors/chalk": ["chalk@5.6.2", "", {}, "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA=="], + + "@codama/nodes-from-anchor/@solana/codecs/@solana/codecs-numbers/@solana/errors/commander": ["commander@14.0.0", "", {}, "sha512-2uM9rYjPvyq39NwLRqaiLtWHyDC1FvryJDa2ATTVims5YAS4PupsEQsDvP14FqhFr0P49CYDugi59xaxJlTXRA=="], + + "@codama/nodes-from-anchor/@solana/codecs/@solana/options/@solana/errors/chalk": ["chalk@5.6.2", "", {}, "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA=="], + + "@codama/nodes-from-anchor/@solana/codecs/@solana/options/@solana/errors/commander": ["commander@14.0.0", "", {}, "sha512-2uM9rYjPvyq39NwLRqaiLtWHyDC1FvryJDa2ATTVims5YAS4PupsEQsDvP14FqhFr0P49CYDugi59xaxJlTXRA=="], + "eslint-config-next/@typescript-eslint/parser/@typescript-eslint/typescript-estree/fast-glob/glob-parent": ["glob-parent@5.1.2", "", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="], "eslint-config-next/@typescript-eslint/parser/@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["brace-expansion@2.0.2", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ=="], diff --git a/clients/kamino-lending/src/generated/accounts/farmState.ts b/clients/kamino-lending/src/generated/accounts/farmState.ts index 85c0036a..3bb8abf9 100644 --- a/clients/kamino-lending/src/generated/accounts/farmState.ts +++ b/clients/kamino-lending/src/generated/accounts/farmState.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/accounts/farmsUserState.ts b/clients/kamino-lending/src/generated/accounts/farmsUserState.ts index fded2f3f..e45ffc09 100644 --- a/clients/kamino-lending/src/generated/accounts/farmsUserState.ts +++ b/clients/kamino-lending/src/generated/accounts/farmsUserState.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/accounts/globalConfig.ts b/clients/kamino-lending/src/generated/accounts/globalConfig.ts index c7374a56..f72919f1 100644 --- a/clients/kamino-lending/src/generated/accounts/globalConfig.ts +++ b/clients/kamino-lending/src/generated/accounts/globalConfig.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/accounts/index.ts b/clients/kamino-lending/src/generated/accounts/index.ts index 6b27b29d..0e6828fd 100644 --- a/clients/kamino-lending/src/generated/accounts/index.ts +++ b/clients/kamino-lending/src/generated/accounts/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/accounts/lendingMarket.ts b/clients/kamino-lending/src/generated/accounts/lendingMarket.ts index da4fb7e1..64a1cc9e 100644 --- a/clients/kamino-lending/src/generated/accounts/lendingMarket.ts +++ b/clients/kamino-lending/src/generated/accounts/lendingMarket.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/accounts/obligation.ts b/clients/kamino-lending/src/generated/accounts/obligation.ts index ae2a868a..ac88b230 100644 --- a/clients/kamino-lending/src/generated/accounts/obligation.ts +++ b/clients/kamino-lending/src/generated/accounts/obligation.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/accounts/oraclePrices.ts b/clients/kamino-lending/src/generated/accounts/oraclePrices.ts index 5ddf0058..79bbf333 100644 --- a/clients/kamino-lending/src/generated/accounts/oraclePrices.ts +++ b/clients/kamino-lending/src/generated/accounts/oraclePrices.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/accounts/referrerState.ts b/clients/kamino-lending/src/generated/accounts/referrerState.ts index d67a9de6..0e1ce3f3 100644 --- a/clients/kamino-lending/src/generated/accounts/referrerState.ts +++ b/clients/kamino-lending/src/generated/accounts/referrerState.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/accounts/referrerTokenState.ts b/clients/kamino-lending/src/generated/accounts/referrerTokenState.ts index 668534b7..4fa3d006 100644 --- a/clients/kamino-lending/src/generated/accounts/referrerTokenState.ts +++ b/clients/kamino-lending/src/generated/accounts/referrerTokenState.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/accounts/reserve.ts b/clients/kamino-lending/src/generated/accounts/reserve.ts index 058ab8cc..5de83055 100644 --- a/clients/kamino-lending/src/generated/accounts/reserve.ts +++ b/clients/kamino-lending/src/generated/accounts/reserve.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/accounts/shortUrl.ts b/clients/kamino-lending/src/generated/accounts/shortUrl.ts index 2e23841d..3641ff70 100644 --- a/clients/kamino-lending/src/generated/accounts/shortUrl.ts +++ b/clients/kamino-lending/src/generated/accounts/shortUrl.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/accounts/userMetadata.ts b/clients/kamino-lending/src/generated/accounts/userMetadata.ts index 2b8310af..72581dac 100644 --- a/clients/kamino-lending/src/generated/accounts/userMetadata.ts +++ b/clients/kamino-lending/src/generated/accounts/userMetadata.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/accounts/userState.ts b/clients/kamino-lending/src/generated/accounts/userState.ts index 7967aaae..ec7c74cf 100644 --- a/clients/kamino-lending/src/generated/accounts/userState.ts +++ b/clients/kamino-lending/src/generated/accounts/userState.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/errors/farms.ts b/clients/kamino-lending/src/generated/errors/farms.ts index 867a0698..32bf54a3 100644 --- a/clients/kamino-lending/src/generated/errors/farms.ts +++ b/clients/kamino-lending/src/generated/errors/farms.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/errors/index.ts b/clients/kamino-lending/src/generated/errors/index.ts index 7ec4a2ee..d51996d9 100644 --- a/clients/kamino-lending/src/generated/errors/index.ts +++ b/clients/kamino-lending/src/generated/errors/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/errors/kaminoLending.ts b/clients/kamino-lending/src/generated/errors/kaminoLending.ts index e48b7c75..26a2b611 100644 --- a/clients/kamino-lending/src/generated/errors/kaminoLending.ts +++ b/clients/kamino-lending/src/generated/errors/kaminoLending.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/index.ts b/clients/kamino-lending/src/generated/index.ts index ceeafbb9..975e985c 100644 --- a/clients/kamino-lending/src/generated/index.ts +++ b/clients/kamino-lending/src/generated/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/instructions/addRewards.ts b/clients/kamino-lending/src/generated/instructions/addRewards.ts index 792269ec..09ed6d86 100644 --- a/clients/kamino-lending/src/generated/instructions/addRewards.ts +++ b/clients/kamino-lending/src/generated/instructions/addRewards.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -214,7 +214,7 @@ export function getAddRewardsInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.payer), getAccountMeta(accounts.farmState), @@ -225,10 +225,10 @@ export function getAddRewardsInstruction< getAccountMeta(accounts.scopePrices), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getAddRewardsInstructionDataEncoder().encode( args as AddRewardsInstructionDataArgs, ), + programAddress, } as AddRewardsInstruction< TProgramAddress, TAccountPayer, @@ -239,9 +239,7 @@ export function getAddRewardsInstruction< TAccountPayerRewardTokenAta, TAccountScopePrices, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedAddRewardsInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/borrowObligationLiquidity.ts b/clients/kamino-lending/src/generated/instructions/borrowObligationLiquidity.ts index b8b76139..5687611e 100644 --- a/clients/kamino-lending/src/generated/instructions/borrowObligationLiquidity.ts +++ b/clients/kamino-lending/src/generated/instructions/borrowObligationLiquidity.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -279,7 +279,7 @@ export function getBorrowObligationLiquidityInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.owner), getAccountMeta(accounts.obligation), @@ -294,10 +294,10 @@ export function getBorrowObligationLiquidityInstruction< getAccountMeta(accounts.tokenProgram), getAccountMeta(accounts.instructionSysvarAccount), ], - programAddress, data: getBorrowObligationLiquidityInstructionDataEncoder().encode( args as BorrowObligationLiquidityInstructionDataArgs, ), + programAddress, } as BorrowObligationLiquidityInstruction< TProgramAddress, TAccountOwner, @@ -312,9 +312,7 @@ export function getBorrowObligationLiquidityInstruction< TAccountReferrerTokenState, TAccountTokenProgram, TAccountInstructionSysvarAccount - >; - - return instruction; + >); } export interface ParsedBorrowObligationLiquidityInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/borrowObligationLiquidityV2.ts b/clients/kamino-lending/src/generated/instructions/borrowObligationLiquidityV2.ts index 058066ee..716651ec 100644 --- a/clients/kamino-lending/src/generated/instructions/borrowObligationLiquidityV2.ts +++ b/clients/kamino-lending/src/generated/instructions/borrowObligationLiquidityV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -315,7 +315,7 @@ export function getBorrowObligationLiquidityV2Instruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.owner), getAccountMeta(accounts.obligation), @@ -333,10 +333,10 @@ export function getBorrowObligationLiquidityV2Instruction< getAccountMeta(accounts.reserveFarmState), getAccountMeta(accounts.farmsProgram), ], - programAddress, data: getBorrowObligationLiquidityV2InstructionDataEncoder().encode( args as BorrowObligationLiquidityV2InstructionDataArgs, ), + programAddress, } as BorrowObligationLiquidityV2Instruction< TProgramAddress, TAccountOwner, @@ -354,9 +354,7 @@ export function getBorrowObligationLiquidityV2Instruction< TAccountObligationFarmUserState, TAccountReserveFarmState, TAccountFarmsProgram - >; - - return instruction; + >); } export interface ParsedBorrowObligationLiquidityV2Instruction< diff --git a/clients/kamino-lending/src/generated/instructions/deleteReferrerStateAndShortUrl.ts b/clients/kamino-lending/src/generated/instructions/deleteReferrerStateAndShortUrl.ts index b3e22801..337566ce 100644 --- a/clients/kamino-lending/src/generated/instructions/deleteReferrerStateAndShortUrl.ts +++ b/clients/kamino-lending/src/generated/instructions/deleteReferrerStateAndShortUrl.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -165,7 +165,7 @@ export function getDeleteReferrerStateAndShortUrlInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.referrer), getAccountMeta(accounts.referrerState), @@ -173,8 +173,8 @@ export function getDeleteReferrerStateAndShortUrlInstruction< getAccountMeta(accounts.rent), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getDeleteReferrerStateAndShortUrlInstructionDataEncoder().encode({}), + programAddress, } as DeleteReferrerStateAndShortUrlInstruction< TProgramAddress, TAccountReferrer, @@ -182,9 +182,7 @@ export function getDeleteReferrerStateAndShortUrlInstruction< TAccountShortUrl, TAccountRent, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedDeleteReferrerStateAndShortUrlInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/depositAndWithdraw.ts b/clients/kamino-lending/src/generated/instructions/depositAndWithdraw.ts index 2dac1a15..3772f4df 100644 --- a/clients/kamino-lending/src/generated/instructions/depositAndWithdraw.ts +++ b/clients/kamino-lending/src/generated/instructions/depositAndWithdraw.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -621,7 +621,7 @@ export function getDepositAndWithdrawInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.depositAccountsOwner), getAccountMeta(accounts.depositAccountsObligation), @@ -663,10 +663,10 @@ export function getDepositAndWithdrawInstruction< getAccountMeta(accounts.withdrawFarmsAccountsReserveFarmState), getAccountMeta(accounts.farmsProgram), ], - programAddress, data: getDepositAndWithdrawInstructionDataEncoder().encode( args as DepositAndWithdrawInstructionDataArgs, ), + programAddress, } as DepositAndWithdrawInstruction< TProgramAddress, TAccountDepositAccountsOwner, @@ -702,9 +702,7 @@ export function getDepositAndWithdrawInstruction< TAccountWithdrawFarmsAccountsObligationFarmUserState, TAccountWithdrawFarmsAccountsReserveFarmState, TAccountFarmsProgram - >; - - return instruction; + >); } export interface ParsedDepositAndWithdrawInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/depositObligationCollateral.ts b/clients/kamino-lending/src/generated/instructions/depositObligationCollateral.ts index 46d92ac4..743dbc39 100644 --- a/clients/kamino-lending/src/generated/instructions/depositObligationCollateral.ts +++ b/clients/kamino-lending/src/generated/instructions/depositObligationCollateral.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -231,7 +231,7 @@ export function getDepositObligationCollateralInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.owner), getAccountMeta(accounts.obligation), @@ -242,10 +242,10 @@ export function getDepositObligationCollateralInstruction< getAccountMeta(accounts.tokenProgram), getAccountMeta(accounts.instructionSysvarAccount), ], - programAddress, data: getDepositObligationCollateralInstructionDataEncoder().encode( args as DepositObligationCollateralInstructionDataArgs, ), + programAddress, } as DepositObligationCollateralInstruction< TProgramAddress, TAccountOwner, @@ -256,9 +256,7 @@ export function getDepositObligationCollateralInstruction< TAccountUserSourceCollateral, TAccountTokenProgram, TAccountInstructionSysvarAccount - >; - - return instruction; + >); } export interface ParsedDepositObligationCollateralInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/depositObligationCollateralV2.ts b/clients/kamino-lending/src/generated/instructions/depositObligationCollateralV2.ts index 877e9abc..8bdd2f93 100644 --- a/clients/kamino-lending/src/generated/instructions/depositObligationCollateralV2.ts +++ b/clients/kamino-lending/src/generated/instructions/depositObligationCollateralV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -274,7 +274,7 @@ export function getDepositObligationCollateralV2Instruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.owner), getAccountMeta(accounts.obligation), @@ -289,10 +289,10 @@ export function getDepositObligationCollateralV2Instruction< getAccountMeta(accounts.reserveFarmState), getAccountMeta(accounts.farmsProgram), ], - programAddress, data: getDepositObligationCollateralV2InstructionDataEncoder().encode( args as DepositObligationCollateralV2InstructionDataArgs, ), + programAddress, } as DepositObligationCollateralV2Instruction< TProgramAddress, TAccountOwner, @@ -307,9 +307,7 @@ export function getDepositObligationCollateralV2Instruction< TAccountObligationFarmUserState, TAccountReserveFarmState, TAccountFarmsProgram - >; - - return instruction; + >); } export interface ParsedDepositObligationCollateralV2Instruction< diff --git a/clients/kamino-lending/src/generated/instructions/depositReserveLiquidity.ts b/clients/kamino-lending/src/generated/instructions/depositReserveLiquidity.ts index 5a4cc548..fc9e1855 100644 --- a/clients/kamino-lending/src/generated/instructions/depositReserveLiquidity.ts +++ b/clients/kamino-lending/src/generated/instructions/depositReserveLiquidity.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -283,7 +283,7 @@ export function getDepositReserveLiquidityInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.owner), getAccountMeta(accounts.reserve), @@ -298,10 +298,10 @@ export function getDepositReserveLiquidityInstruction< getAccountMeta(accounts.liquidityTokenProgram), getAccountMeta(accounts.instructionSysvarAccount), ], - programAddress, data: getDepositReserveLiquidityInstructionDataEncoder().encode( args as DepositReserveLiquidityInstructionDataArgs, ), + programAddress, } as DepositReserveLiquidityInstruction< TProgramAddress, TAccountOwner, @@ -316,9 +316,7 @@ export function getDepositReserveLiquidityInstruction< TAccountCollateralTokenProgram, TAccountLiquidityTokenProgram, TAccountInstructionSysvarAccount - >; - - return instruction; + >); } export interface ParsedDepositReserveLiquidityInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/depositReserveLiquidityAndObligationCollateral.ts b/clients/kamino-lending/src/generated/instructions/depositReserveLiquidityAndObligationCollateral.ts index aae2f391..791a09c4 100644 --- a/clients/kamino-lending/src/generated/instructions/depositReserveLiquidityAndObligationCollateral.ts +++ b/clients/kamino-lending/src/generated/instructions/depositReserveLiquidityAndObligationCollateral.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -311,7 +311,7 @@ export function getDepositReserveLiquidityAndObligationCollateralInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.owner), getAccountMeta(accounts.obligation), @@ -328,10 +328,10 @@ export function getDepositReserveLiquidityAndObligationCollateralInstruction< getAccountMeta(accounts.liquidityTokenProgram), getAccountMeta(accounts.instructionSysvarAccount), ], - programAddress, data: getDepositReserveLiquidityAndObligationCollateralInstructionDataEncoder().encode( args as DepositReserveLiquidityAndObligationCollateralInstructionDataArgs, ), + programAddress, } as DepositReserveLiquidityAndObligationCollateralInstruction< TProgramAddress, TAccountOwner, @@ -348,9 +348,7 @@ export function getDepositReserveLiquidityAndObligationCollateralInstruction< TAccountCollateralTokenProgram, TAccountLiquidityTokenProgram, TAccountInstructionSysvarAccount - >; - - return instruction; + >); } export interface ParsedDepositReserveLiquidityAndObligationCollateralInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/depositReserveLiquidityAndObligationCollateralV2.ts b/clients/kamino-lending/src/generated/instructions/depositReserveLiquidityAndObligationCollateralV2.ts index 1d377e10..e5e66140 100644 --- a/clients/kamino-lending/src/generated/instructions/depositReserveLiquidityAndObligationCollateralV2.ts +++ b/clients/kamino-lending/src/generated/instructions/depositReserveLiquidityAndObligationCollateralV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -347,7 +347,7 @@ export function getDepositReserveLiquidityAndObligationCollateralV2Instruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.owner), getAccountMeta(accounts.obligation), @@ -367,10 +367,10 @@ export function getDepositReserveLiquidityAndObligationCollateralV2Instruction< getAccountMeta(accounts.reserveFarmState), getAccountMeta(accounts.farmsProgram), ], - programAddress, data: getDepositReserveLiquidityAndObligationCollateralV2InstructionDataEncoder().encode( args as DepositReserveLiquidityAndObligationCollateralV2InstructionDataArgs, ), + programAddress, } as DepositReserveLiquidityAndObligationCollateralV2Instruction< TProgramAddress, TAccountOwner, @@ -390,9 +390,7 @@ export function getDepositReserveLiquidityAndObligationCollateralV2Instruction< TAccountObligationFarmUserState, TAccountReserveFarmState, TAccountFarmsProgram - >; - - return instruction; + >); } export interface ParsedDepositReserveLiquidityAndObligationCollateralV2Instruction< diff --git a/clients/kamino-lending/src/generated/instructions/depositToFarmVault.ts b/clients/kamino-lending/src/generated/instructions/depositToFarmVault.ts index b35e0e01..ff571099 100644 --- a/clients/kamino-lending/src/generated/instructions/depositToFarmVault.ts +++ b/clients/kamino-lending/src/generated/instructions/depositToFarmVault.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -177,7 +177,7 @@ export function getDepositToFarmVaultInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.depositor), getAccountMeta(accounts.farmState), @@ -185,10 +185,10 @@ export function getDepositToFarmVaultInstruction< getAccountMeta(accounts.depositorAta), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getDepositToFarmVaultInstructionDataEncoder().encode( args as DepositToFarmVaultInstructionDataArgs, ), + programAddress, } as DepositToFarmVaultInstruction< TProgramAddress, TAccountDepositor, @@ -196,9 +196,7 @@ export function getDepositToFarmVaultInstruction< TAccountFarmVault, TAccountDepositorAta, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedDepositToFarmVaultInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/farmsIdlMissingTypes.ts b/clients/kamino-lending/src/generated/instructions/farmsIdlMissingTypes.ts index 38c62f1d..67e3d71c 100644 --- a/clients/kamino-lending/src/generated/instructions/farmsIdlMissingTypes.ts +++ b/clients/kamino-lending/src/generated/instructions/farmsIdlMissingTypes.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -185,22 +185,20 @@ export function getFarmsIdlMissingTypesInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.globalAdmin), getAccountMeta(accounts.globalConfig), ], - programAddress, data: getFarmsIdlMissingTypesInstructionDataEncoder().encode( args as FarmsIdlMissingTypesInstructionDataArgs, ), + programAddress, } as FarmsIdlMissingTypesInstruction< TProgramAddress, TAccountGlobalAdmin, TAccountGlobalConfig - >; - - return instruction; + >); } export interface ParsedFarmsIdlMissingTypesInstruction< @@ -235,10 +233,7 @@ export function parseFarmsIdlMissingTypesInstruction< }; return { programAddress: instruction.programAddress, - accounts: { - globalAdmin: getNextAccount(), - globalConfig: getNextAccount(), - }, + accounts: { globalAdmin: getNextAccount(), globalConfig: getNextAccount() }, data: getFarmsIdlMissingTypesInstructionDataDecoder().decode( instruction.data, ), diff --git a/clients/kamino-lending/src/generated/instructions/flashBorrowReserveLiquidity.ts b/clients/kamino-lending/src/generated/instructions/flashBorrowReserveLiquidity.ts index 9844acce..0a411a38 100644 --- a/clients/kamino-lending/src/generated/instructions/flashBorrowReserveLiquidity.ts +++ b/clients/kamino-lending/src/generated/instructions/flashBorrowReserveLiquidity.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -283,7 +283,7 @@ export function getFlashBorrowReserveLiquidityInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.userTransferAuthority), getAccountMeta(accounts.lendingMarketAuthority), @@ -298,10 +298,10 @@ export function getFlashBorrowReserveLiquidityInstruction< getAccountMeta(accounts.sysvarInfo), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getFlashBorrowReserveLiquidityInstructionDataEncoder().encode( args as FlashBorrowReserveLiquidityInstructionDataArgs, ), + programAddress, } as FlashBorrowReserveLiquidityInstruction< TProgramAddress, TAccountUserTransferAuthority, @@ -316,9 +316,7 @@ export function getFlashBorrowReserveLiquidityInstruction< TAccountReferrerAccount, TAccountSysvarInfo, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedFlashBorrowReserveLiquidityInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/flashRepayReserveLiquidity.ts b/clients/kamino-lending/src/generated/instructions/flashRepayReserveLiquidity.ts index f9c3aca1..c745224f 100644 --- a/clients/kamino-lending/src/generated/instructions/flashRepayReserveLiquidity.ts +++ b/clients/kamino-lending/src/generated/instructions/flashRepayReserveLiquidity.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -284,7 +284,7 @@ export function getFlashRepayReserveLiquidityInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.userTransferAuthority), getAccountMeta(accounts.lendingMarketAuthority), @@ -299,10 +299,10 @@ export function getFlashRepayReserveLiquidityInstruction< getAccountMeta(accounts.sysvarInfo), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getFlashRepayReserveLiquidityInstructionDataEncoder().encode( args as FlashRepayReserveLiquidityInstructionDataArgs, ), + programAddress, } as FlashRepayReserveLiquidityInstruction< TProgramAddress, TAccountUserTransferAuthority, @@ -317,9 +317,7 @@ export function getFlashRepayReserveLiquidityInstruction< TAccountReferrerAccount, TAccountSysvarInfo, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedFlashRepayReserveLiquidityInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/harvestReward.ts b/clients/kamino-lending/src/generated/instructions/harvestReward.ts index 4b0fe4ba..f79e4320 100644 --- a/clients/kamino-lending/src/generated/instructions/harvestReward.ts +++ b/clients/kamino-lending/src/generated/instructions/harvestReward.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -241,7 +241,7 @@ export function getHarvestRewardInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.owner), getAccountMeta(accounts.userState), @@ -255,10 +255,10 @@ export function getHarvestRewardInstruction< getAccountMeta(accounts.scopePrices), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getHarvestRewardInstructionDataEncoder().encode( args as HarvestRewardInstructionDataArgs, ), + programAddress, } as HarvestRewardInstruction< TProgramAddress, TAccountOwner, @@ -272,9 +272,7 @@ export function getHarvestRewardInstruction< TAccountFarmVaultsAuthority, TAccountScopePrices, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedHarvestRewardInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/idlMissingTypes.ts b/clients/kamino-lending/src/generated/instructions/idlMissingTypes.ts index 041ae60e..e7b43d02 100644 --- a/clients/kamino-lending/src/generated/instructions/idlMissingTypes.ts +++ b/clients/kamino-lending/src/generated/instructions/idlMissingTypes.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -224,24 +224,22 @@ export function getIdlMissingTypesInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.lendingMarketOwner), getAccountMeta(accounts.lendingMarket), getAccountMeta(accounts.reserve), ], - programAddress, data: getIdlMissingTypesInstructionDataEncoder().encode( args as IdlMissingTypesInstructionDataArgs, ), + programAddress, } as IdlMissingTypesInstruction< TProgramAddress, TAccountLendingMarketOwner, TAccountLendingMarket, TAccountReserve - >; - - return instruction; + >); } export interface ParsedIdlMissingTypesInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/index.ts b/clients/kamino-lending/src/generated/instructions/index.ts index 5f46ed02..75c7aa38 100644 --- a/clients/kamino-lending/src/generated/instructions/index.ts +++ b/clients/kamino-lending/src/generated/instructions/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/instructions/initFarmsForReserve.ts b/clients/kamino-lending/src/generated/instructions/initFarmsForReserve.ts index 63381949..7f78760e 100644 --- a/clients/kamino-lending/src/generated/instructions/initFarmsForReserve.ts +++ b/clients/kamino-lending/src/generated/instructions/initFarmsForReserve.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -240,7 +240,7 @@ export function getInitFarmsForReserveInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.lendingMarketOwner), getAccountMeta(accounts.lendingMarket), @@ -253,10 +253,10 @@ export function getInitFarmsForReserveInstruction< getAccountMeta(accounts.rent), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getInitFarmsForReserveInstructionDataEncoder().encode( args as InitFarmsForReserveInstructionDataArgs, ), + programAddress, } as InitFarmsForReserveInstruction< TProgramAddress, TAccountLendingMarketOwner, @@ -269,9 +269,7 @@ export function getInitFarmsForReserveInstruction< TAccountFarmsVaultAuthority, TAccountRent, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedInitFarmsForReserveInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/initLendingMarket.ts b/clients/kamino-lending/src/generated/instructions/initLendingMarket.ts index 404e81a9..4dea49d0 100644 --- a/clients/kamino-lending/src/generated/instructions/initLendingMarket.ts +++ b/clients/kamino-lending/src/generated/instructions/initLendingMarket.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -183,7 +183,7 @@ export function getInitLendingMarketInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.lendingMarketOwner), getAccountMeta(accounts.lendingMarket), @@ -191,10 +191,10 @@ export function getInitLendingMarketInstruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ], - programAddress, data: getInitLendingMarketInstructionDataEncoder().encode( args as InitLendingMarketInstructionDataArgs, ), + programAddress, } as InitLendingMarketInstruction< TProgramAddress, TAccountLendingMarketOwner, @@ -202,9 +202,7 @@ export function getInitLendingMarketInstruction< TAccountLendingMarketAuthority, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedInitLendingMarketInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/initObligation.ts b/clients/kamino-lending/src/generated/instructions/initObligation.ts index c83c59fa..b01a2a65 100644 --- a/clients/kamino-lending/src/generated/instructions/initObligation.ts +++ b/clients/kamino-lending/src/generated/instructions/initObligation.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -230,7 +230,7 @@ export function getInitObligationInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.obligationOwner), getAccountMeta(accounts.feePayer), @@ -242,10 +242,10 @@ export function getInitObligationInstruction< getAccountMeta(accounts.rent), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getInitObligationInstructionDataEncoder().encode( args as InitObligationInstructionDataArgs, ), + programAddress, } as InitObligationInstruction< TProgramAddress, TAccountObligationOwner, @@ -257,9 +257,7 @@ export function getInitObligationInstruction< TAccountOwnerUserMetadata, TAccountRent, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedInitObligationInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/initObligationFarmsForReserve.ts b/clients/kamino-lending/src/generated/instructions/initObligationFarmsForReserve.ts index 32fc68f3..eb40b041 100644 --- a/clients/kamino-lending/src/generated/instructions/initObligationFarmsForReserve.ts +++ b/clients/kamino-lending/src/generated/instructions/initObligationFarmsForReserve.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -244,7 +244,7 @@ export function getInitObligationFarmsForReserveInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.payer), getAccountMeta(accounts.owner), @@ -258,10 +258,10 @@ export function getInitObligationFarmsForReserveInstruction< getAccountMeta(accounts.rent), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getInitObligationFarmsForReserveInstructionDataEncoder().encode( args as InitObligationFarmsForReserveInstructionDataArgs, ), + programAddress, } as InitObligationFarmsForReserveInstruction< TProgramAddress, TAccountPayer, @@ -275,9 +275,7 @@ export function getInitObligationFarmsForReserveInstruction< TAccountFarmsProgram, TAccountRent, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedInitObligationFarmsForReserveInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/initReferrerStateAndShortUrl.ts b/clients/kamino-lending/src/generated/instructions/initReferrerStateAndShortUrl.ts index aa69a805..b03c9e1d 100644 --- a/clients/kamino-lending/src/generated/instructions/initReferrerStateAndShortUrl.ts +++ b/clients/kamino-lending/src/generated/instructions/initReferrerStateAndShortUrl.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -198,7 +198,7 @@ export function getInitReferrerStateAndShortUrlInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.referrer), getAccountMeta(accounts.referrerState), @@ -207,10 +207,10 @@ export function getInitReferrerStateAndShortUrlInstruction< getAccountMeta(accounts.rent), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getInitReferrerStateAndShortUrlInstructionDataEncoder().encode( args as InitReferrerStateAndShortUrlInstructionDataArgs, ), + programAddress, } as InitReferrerStateAndShortUrlInstruction< TProgramAddress, TAccountReferrer, @@ -219,9 +219,7 @@ export function getInitReferrerStateAndShortUrlInstruction< TAccountReferrerUserMetadata, TAccountRent, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedInitReferrerStateAndShortUrlInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/initReferrerTokenState.ts b/clients/kamino-lending/src/generated/instructions/initReferrerTokenState.ts index 94baf920..99e5dc51 100644 --- a/clients/kamino-lending/src/generated/instructions/initReferrerTokenState.ts +++ b/clients/kamino-lending/src/generated/instructions/initReferrerTokenState.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -188,7 +188,7 @@ export function getInitReferrerTokenStateInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.payer), getAccountMeta(accounts.lendingMarket), @@ -198,8 +198,8 @@ export function getInitReferrerTokenStateInstruction< getAccountMeta(accounts.rent), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getInitReferrerTokenStateInstructionDataEncoder().encode({}), + programAddress, } as InitReferrerTokenStateInstruction< TProgramAddress, TAccountPayer, @@ -209,9 +209,7 @@ export function getInitReferrerTokenStateInstruction< TAccountReferrerTokenState, TAccountRent, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedInitReferrerTokenStateInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/initReserve.ts b/clients/kamino-lending/src/generated/instructions/initReserve.ts index 889f2851..9e4f636a 100644 --- a/clients/kamino-lending/src/generated/instructions/initReserve.ts +++ b/clients/kamino-lending/src/generated/instructions/initReserve.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -280,7 +280,7 @@ export function getInitReserveInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.lendingMarketOwner), getAccountMeta(accounts.lendingMarket), @@ -297,8 +297,8 @@ export function getInitReserveInstruction< getAccountMeta(accounts.collateralTokenProgram), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getInitReserveInstructionDataEncoder().encode({}), + programAddress, } as InitReserveInstruction< TProgramAddress, TAccountLendingMarketOwner, @@ -315,9 +315,7 @@ export function getInitReserveInstruction< TAccountLiquidityTokenProgram, TAccountCollateralTokenProgram, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedInitReserveInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/initUserMetadata.ts b/clients/kamino-lending/src/generated/instructions/initUserMetadata.ts index cc0010cf..120bf08c 100644 --- a/clients/kamino-lending/src/generated/instructions/initUserMetadata.ts +++ b/clients/kamino-lending/src/generated/instructions/initUserMetadata.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -190,7 +190,7 @@ export function getInitUserMetadataInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.owner), getAccountMeta(accounts.feePayer), @@ -199,10 +199,10 @@ export function getInitUserMetadataInstruction< getAccountMeta(accounts.rent), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getInitUserMetadataInstructionDataEncoder().encode( args as InitUserMetadataInstructionDataArgs, ), + programAddress, } as InitUserMetadataInstruction< TProgramAddress, TAccountOwner, @@ -211,9 +211,7 @@ export function getInitUserMetadataInstruction< TAccountReferrerUserMetadata, TAccountRent, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedInitUserMetadataInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/initializeFarm.ts b/clients/kamino-lending/src/generated/instructions/initializeFarm.ts index c1654a25..94c1af05 100644 --- a/clients/kamino-lending/src/generated/instructions/initializeFarm.ts +++ b/clients/kamino-lending/src/generated/instructions/initializeFarm.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -205,7 +205,7 @@ export function getInitializeFarmInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.farmAdmin), getAccountMeta(accounts.farmState), @@ -217,8 +217,8 @@ export function getInitializeFarmInstruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ], - programAddress, data: getInitializeFarmInstructionDataEncoder().encode({}), + programAddress, } as InitializeFarmInstruction< TProgramAddress, TAccountFarmAdmin, @@ -230,9 +230,7 @@ export function getInitializeFarmInstruction< TAccountTokenProgram, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedInitializeFarmInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/initializeFarmDelegated.ts b/clients/kamino-lending/src/generated/instructions/initializeFarmDelegated.ts index 7f257f40..32574c59 100644 --- a/clients/kamino-lending/src/generated/instructions/initializeFarmDelegated.ts +++ b/clients/kamino-lending/src/generated/instructions/initializeFarmDelegated.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -189,7 +189,7 @@ export function getInitializeFarmDelegatedInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.farmAdmin), getAccountMeta(accounts.farmDelegate), @@ -199,8 +199,8 @@ export function getInitializeFarmDelegatedInstruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ], - programAddress, data: getInitializeFarmDelegatedInstructionDataEncoder().encode({}), + programAddress, } as InitializeFarmDelegatedInstruction< TProgramAddress, TAccountFarmAdmin, @@ -210,9 +210,7 @@ export function getInitializeFarmDelegatedInstruction< TAccountFarmVaultsAuthority, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedInitializeFarmDelegatedInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/initializeGlobalConfig.ts b/clients/kamino-lending/src/generated/instructions/initializeGlobalConfig.ts index 47ebdc91..06f2a75f 100644 --- a/clients/kamino-lending/src/generated/instructions/initializeGlobalConfig.ts +++ b/clients/kamino-lending/src/generated/instructions/initializeGlobalConfig.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -157,24 +157,22 @@ export function getInitializeGlobalConfigInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.globalAdmin), getAccountMeta(accounts.globalConfig), getAccountMeta(accounts.treasuryVaultsAuthority), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getInitializeGlobalConfigInstructionDataEncoder().encode({}), + programAddress, } as InitializeGlobalConfigInstruction< TProgramAddress, TAccountGlobalAdmin, TAccountGlobalConfig, TAccountTreasuryVaultsAuthority, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedInitializeGlobalConfigInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/initializeReward.ts b/clients/kamino-lending/src/generated/instructions/initializeReward.ts index 36c13141..33790220 100644 --- a/clients/kamino-lending/src/generated/instructions/initializeReward.ts +++ b/clients/kamino-lending/src/generated/instructions/initializeReward.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -230,7 +230,7 @@ export function getInitializeRewardInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.farmAdmin), getAccountMeta(accounts.farmState), @@ -244,8 +244,8 @@ export function getInitializeRewardInstruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ], - programAddress, data: getInitializeRewardInstructionDataEncoder().encode({}), + programAddress, } as InitializeRewardInstruction< TProgramAddress, TAccountFarmAdmin, @@ -259,9 +259,7 @@ export function getInitializeRewardInstruction< TAccountTokenProgram, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedInitializeRewardInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/initializeUser.ts b/clients/kamino-lending/src/generated/instructions/initializeUser.ts index b51f04b1..08940d6c 100644 --- a/clients/kamino-lending/src/generated/instructions/initializeUser.ts +++ b/clients/kamino-lending/src/generated/instructions/initializeUser.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -194,7 +194,7 @@ export function getInitializeUserInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.authority), getAccountMeta(accounts.payer), @@ -205,8 +205,8 @@ export function getInitializeUserInstruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ], - programAddress, data: getInitializeUserInstructionDataEncoder().encode({}), + programAddress, } as InitializeUserInstruction< TProgramAddress, TAccountAuthority, @@ -217,9 +217,7 @@ export function getInitializeUserInstruction< TAccountFarmState, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedInitializeUserInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/liquidateObligationAndRedeemReserveCollateral.ts b/clients/kamino-lending/src/generated/instructions/liquidateObligationAndRedeemReserveCollateral.ts index 9c427a2f..912ff75d 100644 --- a/clients/kamino-lending/src/generated/instructions/liquidateObligationAndRedeemReserveCollateral.ts +++ b/clients/kamino-lending/src/generated/instructions/liquidateObligationAndRedeemReserveCollateral.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -394,7 +394,7 @@ export function getLiquidateObligationAndRedeemReserveCollateralInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.liquidator), getAccountMeta(accounts.obligation), @@ -417,10 +417,10 @@ export function getLiquidateObligationAndRedeemReserveCollateralInstruction< getAccountMeta(accounts.withdrawLiquidityTokenProgram), getAccountMeta(accounts.instructionSysvarAccount), ], - programAddress, data: getLiquidateObligationAndRedeemReserveCollateralInstructionDataEncoder().encode( args as LiquidateObligationAndRedeemReserveCollateralInstructionDataArgs, ), + programAddress, } as LiquidateObligationAndRedeemReserveCollateralInstruction< TProgramAddress, TAccountLiquidator, @@ -443,9 +443,7 @@ export function getLiquidateObligationAndRedeemReserveCollateralInstruction< TAccountRepayLiquidityTokenProgram, TAccountWithdrawLiquidityTokenProgram, TAccountInstructionSysvarAccount - >; - - return instruction; + >); } export interface ParsedLiquidateObligationAndRedeemReserveCollateralInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/liquidateObligationAndRedeemReserveCollateralV2.ts b/clients/kamino-lending/src/generated/instructions/liquidateObligationAndRedeemReserveCollateralV2.ts index cb135dde..c9865b98 100644 --- a/clients/kamino-lending/src/generated/instructions/liquidateObligationAndRedeemReserveCollateralV2.ts +++ b/clients/kamino-lending/src/generated/instructions/liquidateObligationAndRedeemReserveCollateralV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -518,7 +518,7 @@ export function getLiquidateObligationAndRedeemReserveCollateralV2Instruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.liquidationAccountsLiquidator), getAccountMeta(accounts.liquidationAccountsObligation), @@ -552,10 +552,10 @@ export function getLiquidateObligationAndRedeemReserveCollateralV2Instruction< getAccountMeta(accounts.debtFarmsAccountsReserveFarmState), getAccountMeta(accounts.farmsProgram), ], - programAddress, data: getLiquidateObligationAndRedeemReserveCollateralV2InstructionDataEncoder().encode( args as LiquidateObligationAndRedeemReserveCollateralV2InstructionDataArgs, ), + programAddress, } as LiquidateObligationAndRedeemReserveCollateralV2Instruction< TProgramAddress, TAccountLiquidationAccountsLiquidator, @@ -583,9 +583,7 @@ export function getLiquidateObligationAndRedeemReserveCollateralV2Instruction< TAccountDebtFarmsAccountsObligationFarmUserState, TAccountDebtFarmsAccountsReserveFarmState, TAccountFarmsProgram - >; - - return instruction; + >); } export interface ParsedLiquidateObligationAndRedeemReserveCollateralV2Instruction< diff --git a/clients/kamino-lending/src/generated/instructions/markObligationForDeleveraging.ts b/clients/kamino-lending/src/generated/instructions/markObligationForDeleveraging.ts index fab10875..2bce40f4 100644 --- a/clients/kamino-lending/src/generated/instructions/markObligationForDeleveraging.ts +++ b/clients/kamino-lending/src/generated/instructions/markObligationForDeleveraging.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -158,24 +158,22 @@ export function getMarkObligationForDeleveragingInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.riskCouncil), getAccountMeta(accounts.obligation), getAccountMeta(accounts.lendingMarket), ], - programAddress, data: getMarkObligationForDeleveragingInstructionDataEncoder().encode( args as MarkObligationForDeleveragingInstructionDataArgs, ), + programAddress, } as MarkObligationForDeleveragingInstruction< TProgramAddress, TAccountRiskCouncil, TAccountObligation, TAccountLendingMarket - >; - - return instruction; + >); } export interface ParsedMarkObligationForDeleveragingInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/redeemFees.ts b/clients/kamino-lending/src/generated/instructions/redeemFees.ts index db6590b3..457baf80 100644 --- a/clients/kamino-lending/src/generated/instructions/redeemFees.ts +++ b/clients/kamino-lending/src/generated/instructions/redeemFees.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -189,7 +189,7 @@ export function getRedeemFeesInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.reserve), getAccountMeta(accounts.reserveLiquidityMint), @@ -199,8 +199,8 @@ export function getRedeemFeesInstruction< getAccountMeta(accounts.lendingMarketAuthority), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getRedeemFeesInstructionDataEncoder().encode({}), + programAddress, } as RedeemFeesInstruction< TProgramAddress, TAccountReserve, @@ -210,9 +210,7 @@ export function getRedeemFeesInstruction< TAccountLendingMarket, TAccountLendingMarketAuthority, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedRedeemFeesInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/redeemReserveCollateral.ts b/clients/kamino-lending/src/generated/instructions/redeemReserveCollateral.ts index a47c67ae..6be40701 100644 --- a/clients/kamino-lending/src/generated/instructions/redeemReserveCollateral.ts +++ b/clients/kamino-lending/src/generated/instructions/redeemReserveCollateral.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -283,7 +283,7 @@ export function getRedeemReserveCollateralInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.owner), getAccountMeta(accounts.lendingMarket), @@ -298,10 +298,10 @@ export function getRedeemReserveCollateralInstruction< getAccountMeta(accounts.liquidityTokenProgram), getAccountMeta(accounts.instructionSysvarAccount), ], - programAddress, data: getRedeemReserveCollateralInstructionDataEncoder().encode( args as RedeemReserveCollateralInstructionDataArgs, ), + programAddress, } as RedeemReserveCollateralInstruction< TProgramAddress, TAccountOwner, @@ -316,9 +316,7 @@ export function getRedeemReserveCollateralInstruction< TAccountCollateralTokenProgram, TAccountLiquidityTokenProgram, TAccountInstructionSysvarAccount - >; - - return instruction; + >); } export interface ParsedRedeemReserveCollateralInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/refreshFarm.ts b/clients/kamino-lending/src/generated/instructions/refreshFarm.ts index 33b30fad..0cf2e419 100644 --- a/clients/kamino-lending/src/generated/instructions/refreshFarm.ts +++ b/clients/kamino-lending/src/generated/instructions/refreshFarm.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -125,20 +125,18 @@ export function getRefreshFarmInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.farmState), getAccountMeta(accounts.scopePrices), ], - programAddress, data: getRefreshFarmInstructionDataEncoder().encode({}), + programAddress, } as RefreshFarmInstruction< TProgramAddress, TAccountFarmState, TAccountScopePrices - >; - - return instruction; + >); } export interface ParsedRefreshFarmInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/refreshObligation.ts b/clients/kamino-lending/src/generated/instructions/refreshObligation.ts index 3d1ffe86..b01ce959 100644 --- a/clients/kamino-lending/src/generated/instructions/refreshObligation.ts +++ b/clients/kamino-lending/src/generated/instructions/refreshObligation.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -125,20 +125,18 @@ export function getRefreshObligationInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.lendingMarket), getAccountMeta(accounts.obligation), ], - programAddress, data: getRefreshObligationInstructionDataEncoder().encode({}), + programAddress, } as RefreshObligationInstruction< TProgramAddress, TAccountLendingMarket, TAccountObligation - >; - - return instruction; + >); } export interface ParsedRefreshObligationInstruction< @@ -173,10 +171,7 @@ export function parseRefreshObligationInstruction< }; return { programAddress: instruction.programAddress, - accounts: { - lendingMarket: getNextAccount(), - obligation: getNextAccount(), - }, + accounts: { lendingMarket: getNextAccount(), obligation: getNextAccount() }, data: getRefreshObligationInstructionDataDecoder().decode(instruction.data), }; } diff --git a/clients/kamino-lending/src/generated/instructions/refreshObligationFarmsForReserve.ts b/clients/kamino-lending/src/generated/instructions/refreshObligationFarmsForReserve.ts index 267f747d..6e85b450 100644 --- a/clients/kamino-lending/src/generated/instructions/refreshObligationFarmsForReserve.ts +++ b/clients/kamino-lending/src/generated/instructions/refreshObligationFarmsForReserve.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -237,7 +237,7 @@ export function getRefreshObligationFarmsForReserveInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.crank), getAccountMeta(accounts.obligation), @@ -250,10 +250,10 @@ export function getRefreshObligationFarmsForReserveInstruction< getAccountMeta(accounts.rent), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getRefreshObligationFarmsForReserveInstructionDataEncoder().encode( args as RefreshObligationFarmsForReserveInstructionDataArgs, ), + programAddress, } as RefreshObligationFarmsForReserveInstruction< TProgramAddress, TAccountCrank, @@ -266,9 +266,7 @@ export function getRefreshObligationFarmsForReserveInstruction< TAccountFarmsProgram, TAccountRent, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedRefreshObligationFarmsForReserveInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/refreshReserve.ts b/clients/kamino-lending/src/generated/instructions/refreshReserve.ts index e905896b..962b0b4e 100644 --- a/clients/kamino-lending/src/generated/instructions/refreshReserve.ts +++ b/clients/kamino-lending/src/generated/instructions/refreshReserve.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -175,7 +175,7 @@ export function getRefreshReserveInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.reserve), getAccountMeta(accounts.lendingMarket), @@ -184,8 +184,8 @@ export function getRefreshReserveInstruction< getAccountMeta(accounts.switchboardTwapOracle), getAccountMeta(accounts.scopePrices), ], - programAddress, data: getRefreshReserveInstructionDataEncoder().encode({}), + programAddress, } as RefreshReserveInstruction< TProgramAddress, TAccountReserve, @@ -194,9 +194,7 @@ export function getRefreshReserveInstruction< TAccountSwitchboardPriceOracle, TAccountSwitchboardTwapOracle, TAccountScopePrices - >; - - return instruction; + >); } export interface ParsedRefreshReserveInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/refreshReservesBatch.ts b/clients/kamino-lending/src/generated/instructions/refreshReservesBatch.ts index 8ad458ae..39747ca9 100644 --- a/clients/kamino-lending/src/generated/instructions/refreshReservesBatch.ts +++ b/clients/kamino-lending/src/generated/instructions/refreshReservesBatch.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -103,14 +103,12 @@ export function getRefreshReservesBatchInstruction< // Original args. const args = { ...input }; - const instruction = { - programAddress, + return Object.freeze({ data: getRefreshReservesBatchInstructionDataEncoder().encode( args as RefreshReservesBatchInstructionDataArgs, ), - } as RefreshReservesBatchInstruction; - - return instruction; + programAddress, + } as RefreshReservesBatchInstruction); } export interface ParsedRefreshReservesBatchInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/refreshUserState.ts b/clients/kamino-lending/src/generated/instructions/refreshUserState.ts index 9de51988..b1da87f2 100644 --- a/clients/kamino-lending/src/generated/instructions/refreshUserState.ts +++ b/clients/kamino-lending/src/generated/instructions/refreshUserState.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -137,22 +137,20 @@ export function getRefreshUserStateInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.userState), getAccountMeta(accounts.farmState), getAccountMeta(accounts.scopePrices), ], - programAddress, data: getRefreshUserStateInstructionDataEncoder().encode({}), + programAddress, } as RefreshUserStateInstruction< TProgramAddress, TAccountUserState, TAccountFarmState, TAccountScopePrices - >; - - return instruction; + >); } export interface ParsedRefreshUserStateInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/repayAndWithdrawAndRedeem.ts b/clients/kamino-lending/src/generated/instructions/repayAndWithdrawAndRedeem.ts index 7ddcdaa3..bfc44ed7 100644 --- a/clients/kamino-lending/src/generated/instructions/repayAndWithdrawAndRedeem.ts +++ b/clients/kamino-lending/src/generated/instructions/repayAndWithdrawAndRedeem.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -544,7 +544,7 @@ export function getRepayAndWithdrawAndRedeemInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.repayAccountsOwner), getAccountMeta(accounts.repayAccountsObligation), @@ -577,10 +577,10 @@ export function getRepayAndWithdrawAndRedeemInstruction< getAccountMeta(accounts.repayDebtFarmsAccountsReserveFarmState), getAccountMeta(accounts.farmsProgram), ], - programAddress, data: getRepayAndWithdrawAndRedeemInstructionDataEncoder().encode( args as RepayAndWithdrawAndRedeemInstructionDataArgs, ), + programAddress, } as RepayAndWithdrawAndRedeemInstruction< TProgramAddress, TAccountRepayAccountsOwner, @@ -611,9 +611,7 @@ export function getRepayAndWithdrawAndRedeemInstruction< TAccountRepayDebtFarmsAccountsObligationFarmUserState, TAccountRepayDebtFarmsAccountsReserveFarmState, TAccountFarmsProgram - >; - - return instruction; + >); } export interface ParsedRepayAndWithdrawAndRedeemInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/repayObligationLiquidity.ts b/clients/kamino-lending/src/generated/instructions/repayObligationLiquidity.ts index 40d0cf9b..337dcabc 100644 --- a/clients/kamino-lending/src/generated/instructions/repayObligationLiquidity.ts +++ b/clients/kamino-lending/src/generated/instructions/repayObligationLiquidity.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -238,7 +238,7 @@ export function getRepayObligationLiquidityInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.owner), getAccountMeta(accounts.obligation), @@ -250,10 +250,10 @@ export function getRepayObligationLiquidityInstruction< getAccountMeta(accounts.tokenProgram), getAccountMeta(accounts.instructionSysvarAccount), ], - programAddress, data: getRepayObligationLiquidityInstructionDataEncoder().encode( args as RepayObligationLiquidityInstructionDataArgs, ), + programAddress, } as RepayObligationLiquidityInstruction< TProgramAddress, TAccountOwner, @@ -265,9 +265,7 @@ export function getRepayObligationLiquidityInstruction< TAccountUserSourceLiquidity, TAccountTokenProgram, TAccountInstructionSysvarAccount - >; - - return instruction; + >); } export interface ParsedRepayObligationLiquidityInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/repayObligationLiquidityV2.ts b/clients/kamino-lending/src/generated/instructions/repayObligationLiquidityV2.ts index 8f3f1b86..fe01cab2 100644 --- a/clients/kamino-lending/src/generated/instructions/repayObligationLiquidityV2.ts +++ b/clients/kamino-lending/src/generated/instructions/repayObligationLiquidityV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -287,7 +287,7 @@ export function getRepayObligationLiquidityV2Instruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.owner), getAccountMeta(accounts.obligation), @@ -303,10 +303,10 @@ export function getRepayObligationLiquidityV2Instruction< getAccountMeta(accounts.lendingMarketAuthority), getAccountMeta(accounts.farmsProgram), ], - programAddress, data: getRepayObligationLiquidityV2InstructionDataEncoder().encode( args as RepayObligationLiquidityV2InstructionDataArgs, ), + programAddress, } as RepayObligationLiquidityV2Instruction< TProgramAddress, TAccountOwner, @@ -322,9 +322,7 @@ export function getRepayObligationLiquidityV2Instruction< TAccountReserveFarmState, TAccountLendingMarketAuthority, TAccountFarmsProgram - >; - - return instruction; + >); } export interface ParsedRepayObligationLiquidityV2Instruction< diff --git a/clients/kamino-lending/src/generated/instructions/requestElevationGroup.ts b/clients/kamino-lending/src/generated/instructions/requestElevationGroup.ts index 59abc04e..291a290d 100644 --- a/clients/kamino-lending/src/generated/instructions/requestElevationGroup.ts +++ b/clients/kamino-lending/src/generated/instructions/requestElevationGroup.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -158,24 +158,22 @@ export function getRequestElevationGroupInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.owner), getAccountMeta(accounts.obligation), getAccountMeta(accounts.lendingMarket), ], - programAddress, data: getRequestElevationGroupInstructionDataEncoder().encode( args as RequestElevationGroupInstructionDataArgs, ), + programAddress, } as RequestElevationGroupInstruction< TProgramAddress, TAccountOwner, TAccountObligation, TAccountLendingMarket - >; - - return instruction; + >); } export interface ParsedRequestElevationGroupInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/rewardUserOnce.ts b/clients/kamino-lending/src/generated/instructions/rewardUserOnce.ts index 41faa012..e95228f1 100644 --- a/clients/kamino-lending/src/generated/instructions/rewardUserOnce.ts +++ b/clients/kamino-lending/src/generated/instructions/rewardUserOnce.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -158,24 +158,22 @@ export function getRewardUserOnceInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.farmAdmin), getAccountMeta(accounts.farmState), getAccountMeta(accounts.userState), ], - programAddress, data: getRewardUserOnceInstructionDataEncoder().encode( args as RewardUserOnceInstructionDataArgs, ), + programAddress, } as RewardUserOnceInstruction< TProgramAddress, TAccountFarmAdmin, TAccountFarmState, TAccountUserState - >; - - return instruction; + >); } export interface ParsedRewardUserOnceInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/setStakeDelegated.ts b/clients/kamino-lending/src/generated/instructions/setStakeDelegated.ts index c8b21905..b631ea76 100644 --- a/clients/kamino-lending/src/generated/instructions/setStakeDelegated.ts +++ b/clients/kamino-lending/src/generated/instructions/setStakeDelegated.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -156,24 +156,22 @@ export function getSetStakeDelegatedInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.delegateAuthority), getAccountMeta(accounts.userState), getAccountMeta(accounts.farmState), ], - programAddress, data: getSetStakeDelegatedInstructionDataEncoder().encode( args as SetStakeDelegatedInstructionDataArgs, ), + programAddress, } as SetStakeDelegatedInstruction< TProgramAddress, TAccountDelegateAuthority, TAccountUserState, TAccountFarmState - >; - - return instruction; + >); } export interface ParsedSetStakeDelegatedInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/socializeLoss.ts b/clients/kamino-lending/src/generated/instructions/socializeLoss.ts index de49bc63..e23e2be8 100644 --- a/clients/kamino-lending/src/generated/instructions/socializeLoss.ts +++ b/clients/kamino-lending/src/generated/instructions/socializeLoss.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -187,7 +187,7 @@ export function getSocializeLossInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.riskCouncil), getAccountMeta(accounts.obligation), @@ -195,10 +195,10 @@ export function getSocializeLossInstruction< getAccountMeta(accounts.reserve), getAccountMeta(accounts.instructionSysvarAccount), ], - programAddress, data: getSocializeLossInstructionDataEncoder().encode( args as SocializeLossInstructionDataArgs, ), + programAddress, } as SocializeLossInstruction< TProgramAddress, TAccountRiskCouncil, @@ -206,9 +206,7 @@ export function getSocializeLossInstruction< TAccountLendingMarket, TAccountReserve, TAccountInstructionSysvarAccount - >; - - return instruction; + >); } export interface ParsedSocializeLossInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/socializeLossV2.ts b/clients/kamino-lending/src/generated/instructions/socializeLossV2.ts index ff28835e..cf45b689 100644 --- a/clients/kamino-lending/src/generated/instructions/socializeLossV2.ts +++ b/clients/kamino-lending/src/generated/instructions/socializeLossV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -235,7 +235,7 @@ export function getSocializeLossV2Instruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.riskCouncil), getAccountMeta(accounts.obligation), @@ -247,10 +247,10 @@ export function getSocializeLossV2Instruction< getAccountMeta(accounts.lendingMarketAuthority), getAccountMeta(accounts.farmsProgram), ], - programAddress, data: getSocializeLossV2InstructionDataEncoder().encode( args as SocializeLossV2InstructionDataArgs, ), + programAddress, } as SocializeLossV2Instruction< TProgramAddress, TAccountRiskCouncil, @@ -262,9 +262,7 @@ export function getSocializeLossV2Instruction< TAccountReserveFarmState, TAccountLendingMarketAuthority, TAccountFarmsProgram - >; - - return instruction; + >); } export interface ParsedSocializeLossV2Instruction< diff --git a/clients/kamino-lending/src/generated/instructions/stake.ts b/clients/kamino-lending/src/generated/instructions/stake.ts index 77fced50..7050be02 100644 --- a/clients/kamino-lending/src/generated/instructions/stake.ts +++ b/clients/kamino-lending/src/generated/instructions/stake.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -203,7 +203,7 @@ export function getStakeInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.owner), getAccountMeta(accounts.userState), @@ -214,10 +214,10 @@ export function getStakeInstruction< getAccountMeta(accounts.scopePrices), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getStakeInstructionDataEncoder().encode( args as StakeInstructionDataArgs, ), + programAddress, } as StakeInstruction< TProgramAddress, TAccountOwner, @@ -228,9 +228,7 @@ export function getStakeInstruction< TAccountTokenMint, TAccountScopePrices, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedStakeInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/transferOwnership.ts b/clients/kamino-lending/src/generated/instructions/transferOwnership.ts index 9be9f6dc..d165e956 100644 --- a/clients/kamino-lending/src/generated/instructions/transferOwnership.ts +++ b/clients/kamino-lending/src/generated/instructions/transferOwnership.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -140,22 +140,20 @@ export function getTransferOwnershipInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.owner), getAccountMeta(accounts.userState), ], - programAddress, data: getTransferOwnershipInstructionDataEncoder().encode( args as TransferOwnershipInstructionDataArgs, ), + programAddress, } as TransferOwnershipInstruction< TProgramAddress, TAccountOwner, TAccountUserState - >; - - return instruction; + >); } export interface ParsedTransferOwnershipInstruction< @@ -190,10 +188,7 @@ export function parseTransferOwnershipInstruction< }; return { programAddress: instruction.programAddress, - accounts: { - owner: getNextAccount(), - userState: getNextAccount(), - }, + accounts: { owner: getNextAccount(), userState: getNextAccount() }, data: getTransferOwnershipInstructionDataDecoder().decode(instruction.data), }; } diff --git a/clients/kamino-lending/src/generated/instructions/unstake.ts b/clients/kamino-lending/src/generated/instructions/unstake.ts index 819deb93..9ed622f2 100644 --- a/clients/kamino-lending/src/generated/instructions/unstake.ts +++ b/clients/kamino-lending/src/generated/instructions/unstake.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -163,26 +163,24 @@ export function getUnstakeInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.owner), getAccountMeta(accounts.userState), getAccountMeta(accounts.farmState), getAccountMeta(accounts.scopePrices), ], - programAddress, data: getUnstakeInstructionDataEncoder().encode( args as UnstakeInstructionDataArgs, ), + programAddress, } as UnstakeInstruction< TProgramAddress, TAccountOwner, TAccountUserState, TAccountFarmState, TAccountScopePrices - >; - - return instruction; + >); } export interface ParsedUnstakeInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/updateFarmAdmin.ts b/clients/kamino-lending/src/generated/instructions/updateFarmAdmin.ts index 494f8fde..1d1747ab 100644 --- a/clients/kamino-lending/src/generated/instructions/updateFarmAdmin.ts +++ b/clients/kamino-lending/src/generated/instructions/updateFarmAdmin.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -130,20 +130,18 @@ export function getUpdateFarmAdminInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.pendingFarmAdmin), getAccountMeta(accounts.farmState), ], - programAddress, data: getUpdateFarmAdminInstructionDataEncoder().encode({}), + programAddress, } as UpdateFarmAdminInstruction< TProgramAddress, TAccountPendingFarmAdmin, TAccountFarmState - >; - - return instruction; + >); } export interface ParsedUpdateFarmAdminInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/updateFarmConfig.ts b/clients/kamino-lending/src/generated/instructions/updateFarmConfig.ts index 602ed4ac..f54985b5 100644 --- a/clients/kamino-lending/src/generated/instructions/updateFarmConfig.ts +++ b/clients/kamino-lending/src/generated/instructions/updateFarmConfig.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -163,24 +163,22 @@ export function getUpdateFarmConfigInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.signer), getAccountMeta(accounts.farmState), getAccountMeta(accounts.scopePrices), ], - programAddress, data: getUpdateFarmConfigInstructionDataEncoder().encode( args as UpdateFarmConfigInstructionDataArgs, ), + programAddress, } as UpdateFarmConfigInstruction< TProgramAddress, TAccountSigner, TAccountFarmState, TAccountScopePrices - >; - - return instruction; + >); } export interface ParsedUpdateFarmConfigInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/updateGlobalConfig.ts b/clients/kamino-lending/src/generated/instructions/updateGlobalConfig.ts index 99314dff..56e550d9 100644 --- a/clients/kamino-lending/src/generated/instructions/updateGlobalConfig.ts +++ b/clients/kamino-lending/src/generated/instructions/updateGlobalConfig.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -150,22 +150,20 @@ export function getUpdateGlobalConfigInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.globalAdmin), getAccountMeta(accounts.globalConfig), ], - programAddress, data: getUpdateGlobalConfigInstructionDataEncoder().encode( args as UpdateGlobalConfigInstructionDataArgs, ), + programAddress, } as UpdateGlobalConfigInstruction< TProgramAddress, TAccountGlobalAdmin, TAccountGlobalConfig - >; - - return instruction; + >); } export interface ParsedUpdateGlobalConfigInstruction< @@ -200,10 +198,7 @@ export function parseUpdateGlobalConfigInstruction< }; return { programAddress: instruction.programAddress, - accounts: { - globalAdmin: getNextAccount(), - globalConfig: getNextAccount(), - }, + accounts: { globalAdmin: getNextAccount(), globalConfig: getNextAccount() }, data: getUpdateGlobalConfigInstructionDataDecoder().decode( instruction.data, ), diff --git a/clients/kamino-lending/src/generated/instructions/updateGlobalConfigAdmin.ts b/clients/kamino-lending/src/generated/instructions/updateGlobalConfigAdmin.ts index d280251d..f834ca5c 100644 --- a/clients/kamino-lending/src/generated/instructions/updateGlobalConfigAdmin.ts +++ b/clients/kamino-lending/src/generated/instructions/updateGlobalConfigAdmin.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -136,20 +136,18 @@ export function getUpdateGlobalConfigAdminInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.pendingGlobalAdmin), getAccountMeta(accounts.globalConfig), ], - programAddress, data: getUpdateGlobalConfigAdminInstructionDataEncoder().encode({}), + programAddress, } as UpdateGlobalConfigAdminInstruction< TProgramAddress, TAccountPendingGlobalAdmin, TAccountGlobalConfig - >; - - return instruction; + >); } export interface ParsedUpdateGlobalConfigAdminInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/updateLendingMarket.ts b/clients/kamino-lending/src/generated/instructions/updateLendingMarket.ts index a9b80291..68fb59ed 100644 --- a/clients/kamino-lending/src/generated/instructions/updateLendingMarket.ts +++ b/clients/kamino-lending/src/generated/instructions/updateLendingMarket.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -159,22 +159,20 @@ export function getUpdateLendingMarketInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.lendingMarketOwner), getAccountMeta(accounts.lendingMarket), ], - programAddress, data: getUpdateLendingMarketInstructionDataEncoder().encode( args as UpdateLendingMarketInstructionDataArgs, ), + programAddress, } as UpdateLendingMarketInstruction< TProgramAddress, TAccountLendingMarketOwner, TAccountLendingMarket - >; - - return instruction; + >); } export interface ParsedUpdateLendingMarketInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/updateLendingMarketOwner.ts b/clients/kamino-lending/src/generated/instructions/updateLendingMarketOwner.ts index 54504a3d..ccaf16d0 100644 --- a/clients/kamino-lending/src/generated/instructions/updateLendingMarketOwner.ts +++ b/clients/kamino-lending/src/generated/instructions/updateLendingMarketOwner.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -137,20 +137,18 @@ export function getUpdateLendingMarketOwnerInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.lendingMarketOwnerCached), getAccountMeta(accounts.lendingMarket), ], - programAddress, data: getUpdateLendingMarketOwnerInstructionDataEncoder().encode({}), + programAddress, } as UpdateLendingMarketOwnerInstruction< TProgramAddress, TAccountLendingMarketOwnerCached, TAccountLendingMarket - >; - - return instruction; + >); } export interface ParsedUpdateLendingMarketOwnerInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/updateReserveConfig.ts b/clients/kamino-lending/src/generated/instructions/updateReserveConfig.ts index 097ad5fd..10de5dca 100644 --- a/clients/kamino-lending/src/generated/instructions/updateReserveConfig.ts +++ b/clients/kamino-lending/src/generated/instructions/updateReserveConfig.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -177,24 +177,22 @@ export function getUpdateReserveConfigInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.lendingMarketOwner), getAccountMeta(accounts.lendingMarket), getAccountMeta(accounts.reserve), ], - programAddress, data: getUpdateReserveConfigInstructionDataEncoder().encode( args as UpdateReserveConfigInstructionDataArgs, ), + programAddress, } as UpdateReserveConfigInstruction< TProgramAddress, TAccountLendingMarketOwner, TAccountLendingMarket, TAccountReserve - >; - - return instruction; + >); } export interface ParsedUpdateReserveConfigInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/withdrawFromFarmVault.ts b/clients/kamino-lending/src/generated/instructions/withdrawFromFarmVault.ts index 487a6a89..baf27396 100644 --- a/clients/kamino-lending/src/generated/instructions/withdrawFromFarmVault.ts +++ b/clients/kamino-lending/src/generated/instructions/withdrawFromFarmVault.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -196,7 +196,7 @@ export function getWithdrawFromFarmVaultInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.withdrawAuthority), getAccountMeta(accounts.farmState), @@ -205,10 +205,10 @@ export function getWithdrawFromFarmVaultInstruction< getAccountMeta(accounts.farmVaultsAuthority), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getWithdrawFromFarmVaultInstructionDataEncoder().encode( args as WithdrawFromFarmVaultInstructionDataArgs, ), + programAddress, } as WithdrawFromFarmVaultInstruction< TProgramAddress, TAccountWithdrawAuthority, @@ -217,9 +217,7 @@ export function getWithdrawFromFarmVaultInstruction< TAccountFarmVault, TAccountFarmVaultsAuthority, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedWithdrawFromFarmVaultInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/withdrawObligationCollateral.ts b/clients/kamino-lending/src/generated/instructions/withdrawObligationCollateral.ts index 3cb99a67..0fc504df 100644 --- a/clients/kamino-lending/src/generated/instructions/withdrawObligationCollateral.ts +++ b/clients/kamino-lending/src/generated/instructions/withdrawObligationCollateral.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -238,7 +238,7 @@ export function getWithdrawObligationCollateralInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.owner), getAccountMeta(accounts.obligation), @@ -250,10 +250,10 @@ export function getWithdrawObligationCollateralInstruction< getAccountMeta(accounts.tokenProgram), getAccountMeta(accounts.instructionSysvarAccount), ], - programAddress, data: getWithdrawObligationCollateralInstructionDataEncoder().encode( args as WithdrawObligationCollateralInstructionDataArgs, ), + programAddress, } as WithdrawObligationCollateralInstruction< TProgramAddress, TAccountOwner, @@ -265,9 +265,7 @@ export function getWithdrawObligationCollateralInstruction< TAccountUserDestinationCollateral, TAccountTokenProgram, TAccountInstructionSysvarAccount - >; - - return instruction; + >); } export interface ParsedWithdrawObligationCollateralInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.ts b/clients/kamino-lending/src/generated/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.ts index 1e6eb599..669f147b 100644 --- a/clients/kamino-lending/src/generated/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.ts +++ b/clients/kamino-lending/src/generated/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -309,7 +309,7 @@ export function getWithdrawObligationCollateralAndRedeemReserveCollateralInstruc } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.owner), getAccountMeta(accounts.obligation), @@ -326,10 +326,10 @@ export function getWithdrawObligationCollateralAndRedeemReserveCollateralInstruc getAccountMeta(accounts.liquidityTokenProgram), getAccountMeta(accounts.instructionSysvarAccount), ], - programAddress, data: getWithdrawObligationCollateralAndRedeemReserveCollateralInstructionDataEncoder().encode( args as WithdrawObligationCollateralAndRedeemReserveCollateralInstructionDataArgs, ), + programAddress, } as WithdrawObligationCollateralAndRedeemReserveCollateralInstruction< TProgramAddress, TAccountOwner, @@ -346,9 +346,7 @@ export function getWithdrawObligationCollateralAndRedeemReserveCollateralInstruc TAccountCollateralTokenProgram, TAccountLiquidityTokenProgram, TAccountInstructionSysvarAccount - >; - - return instruction; + >); } export interface ParsedWithdrawObligationCollateralAndRedeemReserveCollateralInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.ts b/clients/kamino-lending/src/generated/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.ts index 9d2fc671..9964927c 100644 --- a/clients/kamino-lending/src/generated/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.ts +++ b/clients/kamino-lending/src/generated/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -345,7 +345,7 @@ export function getWithdrawObligationCollateralAndRedeemReserveCollateralV2Instr } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.owner), getAccountMeta(accounts.obligation), @@ -365,10 +365,10 @@ export function getWithdrawObligationCollateralAndRedeemReserveCollateralV2Instr getAccountMeta(accounts.reserveFarmState), getAccountMeta(accounts.farmsProgram), ], - programAddress, data: getWithdrawObligationCollateralAndRedeemReserveCollateralV2InstructionDataEncoder().encode( args as WithdrawObligationCollateralAndRedeemReserveCollateralV2InstructionDataArgs, ), + programAddress, } as WithdrawObligationCollateralAndRedeemReserveCollateralV2Instruction< TProgramAddress, TAccountOwner, @@ -388,9 +388,7 @@ export function getWithdrawObligationCollateralAndRedeemReserveCollateralV2Instr TAccountObligationFarmUserState, TAccountReserveFarmState, TAccountFarmsProgram - >; - - return instruction; + >); } export interface ParsedWithdrawObligationCollateralAndRedeemReserveCollateralV2Instruction< diff --git a/clients/kamino-lending/src/generated/instructions/withdrawObligationCollateralV2.ts b/clients/kamino-lending/src/generated/instructions/withdrawObligationCollateralV2.ts index d8925d88..dee9e4ee 100644 --- a/clients/kamino-lending/src/generated/instructions/withdrawObligationCollateralV2.ts +++ b/clients/kamino-lending/src/generated/instructions/withdrawObligationCollateralV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -274,7 +274,7 @@ export function getWithdrawObligationCollateralV2Instruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.owner), getAccountMeta(accounts.obligation), @@ -289,10 +289,10 @@ export function getWithdrawObligationCollateralV2Instruction< getAccountMeta(accounts.reserveFarmState), getAccountMeta(accounts.farmsProgram), ], - programAddress, data: getWithdrawObligationCollateralV2InstructionDataEncoder().encode( args as WithdrawObligationCollateralV2InstructionDataArgs, ), + programAddress, } as WithdrawObligationCollateralV2Instruction< TProgramAddress, TAccountOwner, @@ -307,9 +307,7 @@ export function getWithdrawObligationCollateralV2Instruction< TAccountObligationFarmUserState, TAccountReserveFarmState, TAccountFarmsProgram - >; - - return instruction; + >); } export interface ParsedWithdrawObligationCollateralV2Instruction< diff --git a/clients/kamino-lending/src/generated/instructions/withdrawProtocolFee.ts b/clients/kamino-lending/src/generated/instructions/withdrawProtocolFee.ts index 8c20d1ab..379372b5 100644 --- a/clients/kamino-lending/src/generated/instructions/withdrawProtocolFee.ts +++ b/clients/kamino-lending/src/generated/instructions/withdrawProtocolFee.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -228,7 +228,7 @@ export function getWithdrawProtocolFeeInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.lendingMarketOwner), getAccountMeta(accounts.lendingMarket), @@ -239,10 +239,10 @@ export function getWithdrawProtocolFeeInstruction< getAccountMeta(accounts.lendingMarketOwnerAta), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getWithdrawProtocolFeeInstructionDataEncoder().encode( args as WithdrawProtocolFeeInstructionDataArgs, ), + programAddress, } as WithdrawProtocolFeeInstruction< TProgramAddress, TAccountLendingMarketOwner, @@ -253,9 +253,7 @@ export function getWithdrawProtocolFeeInstruction< TAccountFeeVault, TAccountLendingMarketOwnerAta, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedWithdrawProtocolFeeInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/withdrawReferrerFees.ts b/clients/kamino-lending/src/generated/instructions/withdrawReferrerFees.ts index 6812f359..f2d53372 100644 --- a/clients/kamino-lending/src/generated/instructions/withdrawReferrerFees.ts +++ b/clients/kamino-lending/src/generated/instructions/withdrawReferrerFees.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -220,7 +220,7 @@ export function getWithdrawReferrerFeesInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.referrer), getAccountMeta(accounts.referrerTokenState), @@ -232,8 +232,8 @@ export function getWithdrawReferrerFeesInstruction< getAccountMeta(accounts.lendingMarketAuthority), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getWithdrawReferrerFeesInstructionDataEncoder().encode({}), + programAddress, } as WithdrawReferrerFeesInstruction< TProgramAddress, TAccountReferrer, @@ -245,9 +245,7 @@ export function getWithdrawReferrerFeesInstruction< TAccountLendingMarket, TAccountLendingMarketAuthority, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedWithdrawReferrerFeesInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/withdrawReward.ts b/clients/kamino-lending/src/generated/instructions/withdrawReward.ts index 3177db6d..12ba1310 100644 --- a/clients/kamino-lending/src/generated/instructions/withdrawReward.ts +++ b/clients/kamino-lending/src/generated/instructions/withdrawReward.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -216,7 +216,7 @@ export function getWithdrawRewardInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.farmAdmin), getAccountMeta(accounts.farmState), @@ -227,10 +227,10 @@ export function getWithdrawRewardInstruction< getAccountMeta(accounts.scopePrices), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getWithdrawRewardInstructionDataEncoder().encode( args as WithdrawRewardInstructionDataArgs, ), + programAddress, } as WithdrawRewardInstruction< TProgramAddress, TAccountFarmAdmin, @@ -241,9 +241,7 @@ export function getWithdrawRewardInstruction< TAccountAdminRewardTokenAta, TAccountScopePrices, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedWithdrawRewardInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/withdrawSlashedAmount.ts b/clients/kamino-lending/src/generated/instructions/withdrawSlashedAmount.ts index 5c82b2e7..b4f95c42 100644 --- a/clients/kamino-lending/src/generated/instructions/withdrawSlashedAmount.ts +++ b/clients/kamino-lending/src/generated/instructions/withdrawSlashedAmount.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -180,7 +180,7 @@ export function getWithdrawSlashedAmountInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.crank), getAccountMeta(accounts.farmState), @@ -189,8 +189,8 @@ export function getWithdrawSlashedAmountInstruction< getAccountMeta(accounts.farmVaultsAuthority), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getWithdrawSlashedAmountInstructionDataEncoder().encode({}), + programAddress, } as WithdrawSlashedAmountInstruction< TProgramAddress, TAccountCrank, @@ -199,9 +199,7 @@ export function getWithdrawSlashedAmountInstruction< TAccountFarmVault, TAccountFarmVaultsAuthority, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedWithdrawSlashedAmountInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/withdrawTreasury.ts b/clients/kamino-lending/src/generated/instructions/withdrawTreasury.ts index 4220af97..c4ea3846 100644 --- a/clients/kamino-lending/src/generated/instructions/withdrawTreasury.ts +++ b/clients/kamino-lending/src/generated/instructions/withdrawTreasury.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -203,7 +203,7 @@ export function getWithdrawTreasuryInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.globalAdmin), getAccountMeta(accounts.globalConfig), @@ -213,10 +213,10 @@ export function getWithdrawTreasuryInstruction< getAccountMeta(accounts.withdrawDestinationTokenAccount), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getWithdrawTreasuryInstructionDataEncoder().encode( args as WithdrawTreasuryInstructionDataArgs, ), + programAddress, } as WithdrawTreasuryInstruction< TProgramAddress, TAccountGlobalAdmin, @@ -226,9 +226,7 @@ export function getWithdrawTreasuryInstruction< TAccountTreasuryVaultAuthority, TAccountWithdrawDestinationTokenAccount, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedWithdrawTreasuryInstruction< diff --git a/clients/kamino-lending/src/generated/instructions/withdrawUnstakedDeposits.ts b/clients/kamino-lending/src/generated/instructions/withdrawUnstakedDeposits.ts index 5066851a..e3f2e8a8 100644 --- a/clients/kamino-lending/src/generated/instructions/withdrawUnstakedDeposits.ts +++ b/clients/kamino-lending/src/generated/instructions/withdrawUnstakedDeposits.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -187,7 +187,7 @@ export function getWithdrawUnstakedDepositsInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.owner), getAccountMeta(accounts.userState), @@ -197,8 +197,8 @@ export function getWithdrawUnstakedDepositsInstruction< getAccountMeta(accounts.farmVaultsAuthority), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getWithdrawUnstakedDepositsInstructionDataEncoder().encode({}), + programAddress, } as WithdrawUnstakedDepositsInstruction< TProgramAddress, TAccountOwner, @@ -208,9 +208,7 @@ export function getWithdrawUnstakedDepositsInstruction< TAccountFarmVault, TAccountFarmVaultsAuthority, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedWithdrawUnstakedDepositsInstruction< diff --git a/clients/kamino-lending/src/generated/pdas/index.ts b/clients/kamino-lending/src/generated/pdas/index.ts index cc400979..ddc4a1ff 100644 --- a/clients/kamino-lending/src/generated/pdas/index.ts +++ b/clients/kamino-lending/src/generated/pdas/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/pdas/lendingMarketAuth.ts b/clients/kamino-lending/src/generated/pdas/lendingMarketAuth.ts index 5ba11cf9..d27740e4 100644 --- a/clients/kamino-lending/src/generated/pdas/lendingMarketAuth.ts +++ b/clients/kamino-lending/src/generated/pdas/lendingMarketAuth.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/pdas/obligation.ts b/clients/kamino-lending/src/generated/pdas/obligation.ts index 92da9095..2d714d0a 100644 --- a/clients/kamino-lending/src/generated/pdas/obligation.ts +++ b/clients/kamino-lending/src/generated/pdas/obligation.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -15,15 +15,10 @@ import { export interface ObligationSeeds { tag: number; - id: number; - user: Address; - market: Address; - seed1Account: Address; - seed2Account: Address; } diff --git a/clients/kamino-lending/src/generated/pdas/obligationFarmState.ts b/clients/kamino-lending/src/generated/pdas/obligationFarmState.ts index da64505b..5ca20f4b 100644 --- a/clients/kamino-lending/src/generated/pdas/obligationFarmState.ts +++ b/clients/kamino-lending/src/generated/pdas/obligationFarmState.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -15,7 +15,6 @@ import { export interface ObligationFarmStateSeeds { farm: Address; - obligation: Address; } diff --git a/clients/kamino-lending/src/generated/pdas/referrerState.ts b/clients/kamino-lending/src/generated/pdas/referrerState.ts index bc2e42cb..f96e8ccd 100644 --- a/clients/kamino-lending/src/generated/pdas/referrerState.ts +++ b/clients/kamino-lending/src/generated/pdas/referrerState.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/pdas/referrerTokenState.ts b/clients/kamino-lending/src/generated/pdas/referrerTokenState.ts index 837be128..ae2bf7b7 100644 --- a/clients/kamino-lending/src/generated/pdas/referrerTokenState.ts +++ b/clients/kamino-lending/src/generated/pdas/referrerTokenState.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -15,7 +15,6 @@ import { export interface ReferrerTokenStateSeeds { referrer: Address; - reserve: Address; } diff --git a/clients/kamino-lending/src/generated/pdas/reserveCollateralMint.ts b/clients/kamino-lending/src/generated/pdas/reserveCollateralMint.ts index b019745f..d2484e97 100644 --- a/clients/kamino-lending/src/generated/pdas/reserveCollateralMint.ts +++ b/clients/kamino-lending/src/generated/pdas/reserveCollateralMint.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -15,7 +15,6 @@ import { export interface ReserveCollateralMintSeeds { lendingMarket: Address; - mint: Address; } diff --git a/clients/kamino-lending/src/generated/pdas/reserveCollateralSupply.ts b/clients/kamino-lending/src/generated/pdas/reserveCollateralSupply.ts index 5ad8ee54..ab4229dc 100644 --- a/clients/kamino-lending/src/generated/pdas/reserveCollateralSupply.ts +++ b/clients/kamino-lending/src/generated/pdas/reserveCollateralSupply.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -15,7 +15,6 @@ import { export interface ReserveCollateralSupplySeeds { lendingMarket: Address; - mint: Address; } diff --git a/clients/kamino-lending/src/generated/pdas/reserveFeeVault.ts b/clients/kamino-lending/src/generated/pdas/reserveFeeVault.ts index d16f2b5a..4bd0b912 100644 --- a/clients/kamino-lending/src/generated/pdas/reserveFeeVault.ts +++ b/clients/kamino-lending/src/generated/pdas/reserveFeeVault.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -15,7 +15,6 @@ import { export interface ReserveFeeVaultSeeds { lendingMarket: Address; - mint: Address; } diff --git a/clients/kamino-lending/src/generated/pdas/reserveLiquiditySupply.ts b/clients/kamino-lending/src/generated/pdas/reserveLiquiditySupply.ts index ef76a318..f7df6ea7 100644 --- a/clients/kamino-lending/src/generated/pdas/reserveLiquiditySupply.ts +++ b/clients/kamino-lending/src/generated/pdas/reserveLiquiditySupply.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -15,7 +15,6 @@ import { export interface ReserveLiquiditySupplySeeds { lendingMarket: Address; - mint: Address; } diff --git a/clients/kamino-lending/src/generated/pdas/shortUrl.ts b/clients/kamino-lending/src/generated/pdas/shortUrl.ts index ce2f2385..0ea09a27 100644 --- a/clients/kamino-lending/src/generated/pdas/shortUrl.ts +++ b/clients/kamino-lending/src/generated/pdas/shortUrl.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/pdas/userMetadata.ts b/clients/kamino-lending/src/generated/pdas/userMetadata.ts index cb0361bb..a1869fb2 100644 --- a/clients/kamino-lending/src/generated/pdas/userMetadata.ts +++ b/clients/kamino-lending/src/generated/pdas/userMetadata.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/programs/farms.ts b/clients/kamino-lending/src/generated/programs/farms.ts index c2582cfb..46942dd1 100644 --- a/clients/kamino-lending/src/generated/programs/farms.ts +++ b/clients/kamino-lending/src/generated/programs/farms.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/programs/index.ts b/clients/kamino-lending/src/generated/programs/index.ts index 7ec4a2ee..d51996d9 100644 --- a/clients/kamino-lending/src/generated/programs/index.ts +++ b/clients/kamino-lending/src/generated/programs/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/programs/kaminoLending.ts b/clients/kamino-lending/src/generated/programs/kaminoLending.ts index 473ae08d..3789ccb1 100644 --- a/clients/kamino-lending/src/generated/programs/kaminoLending.ts +++ b/clients/kamino-lending/src/generated/programs/kaminoLending.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/shared/index.ts b/clients/kamino-lending/src/generated/shared/index.ts index 7d911d4a..b79b9c6b 100644 --- a/clients/kamino-lending/src/generated/shared/index.ts +++ b/clients/kamino-lending/src/generated/shared/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/assetTier.ts b/clients/kamino-lending/src/generated/types/assetTier.ts index cf728b6d..f03d4116 100644 --- a/clients/kamino-lending/src/generated/types/assetTier.ts +++ b/clients/kamino-lending/src/generated/types/assetTier.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/bigFractionBytes.ts b/clients/kamino-lending/src/generated/types/bigFractionBytes.ts index 64259aff..844442bc 100644 --- a/clients/kamino-lending/src/generated/types/bigFractionBytes.ts +++ b/clients/kamino-lending/src/generated/types/bigFractionBytes.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/borrowRateCurve.ts b/clients/kamino-lending/src/generated/types/borrowRateCurve.ts index ad5b8b50..68296925 100644 --- a/clients/kamino-lending/src/generated/types/borrowRateCurve.ts +++ b/clients/kamino-lending/src/generated/types/borrowRateCurve.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/curvePoint.ts b/clients/kamino-lending/src/generated/types/curvePoint.ts index c6197836..9878f3df 100644 --- a/clients/kamino-lending/src/generated/types/curvePoint.ts +++ b/clients/kamino-lending/src/generated/types/curvePoint.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/datedPrice.ts b/clients/kamino-lending/src/generated/types/datedPrice.ts index ef87c0fb..191c3dcc 100644 --- a/clients/kamino-lending/src/generated/types/datedPrice.ts +++ b/clients/kamino-lending/src/generated/types/datedPrice.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/elevationGroup.ts b/clients/kamino-lending/src/generated/types/elevationGroup.ts index aeb48280..1af1922a 100644 --- a/clients/kamino-lending/src/generated/types/elevationGroup.ts +++ b/clients/kamino-lending/src/generated/types/elevationGroup.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/elevationGroupLendingMarket.ts b/clients/kamino-lending/src/generated/types/elevationGroupLendingMarket.ts index 901c02fe..1354338a 100644 --- a/clients/kamino-lending/src/generated/types/elevationGroupLendingMarket.ts +++ b/clients/kamino-lending/src/generated/types/elevationGroupLendingMarket.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/farmConfigOption.ts b/clients/kamino-lending/src/generated/types/farmConfigOption.ts index 65f13dbc..f04cfb77 100644 --- a/clients/kamino-lending/src/generated/types/farmConfigOption.ts +++ b/clients/kamino-lending/src/generated/types/farmConfigOption.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/farmsTokenInfo.ts b/clients/kamino-lending/src/generated/types/farmsTokenInfo.ts index bd3fbace..c5bd127d 100644 --- a/clients/kamino-lending/src/generated/types/farmsTokenInfo.ts +++ b/clients/kamino-lending/src/generated/types/farmsTokenInfo.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/feeCalculation.ts b/clients/kamino-lending/src/generated/types/feeCalculation.ts index 951aa7f8..e686909c 100644 --- a/clients/kamino-lending/src/generated/types/feeCalculation.ts +++ b/clients/kamino-lending/src/generated/types/feeCalculation.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/globalConfigOption.ts b/clients/kamino-lending/src/generated/types/globalConfigOption.ts index bf527b56..93a80670 100644 --- a/clients/kamino-lending/src/generated/types/globalConfigOption.ts +++ b/clients/kamino-lending/src/generated/types/globalConfigOption.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/index.ts b/clients/kamino-lending/src/generated/types/index.ts index 73b91501..8c6d46b1 100644 --- a/clients/kamino-lending/src/generated/types/index.ts +++ b/clients/kamino-lending/src/generated/types/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/initObligationArgs.ts b/clients/kamino-lending/src/generated/types/initObligationArgs.ts index a8fb99a0..2931aeeb 100644 --- a/clients/kamino-lending/src/generated/types/initObligationArgs.ts +++ b/clients/kamino-lending/src/generated/types/initObligationArgs.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/lastUpdate.ts b/clients/kamino-lending/src/generated/types/lastUpdate.ts index 03cd27c5..ca121b26 100644 --- a/clients/kamino-lending/src/generated/types/lastUpdate.ts +++ b/clients/kamino-lending/src/generated/types/lastUpdate.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/lockingMode.ts b/clients/kamino-lending/src/generated/types/lockingMode.ts index 6d5ce2c4..5230b753 100644 --- a/clients/kamino-lending/src/generated/types/lockingMode.ts +++ b/clients/kamino-lending/src/generated/types/lockingMode.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/obligationCollateral.ts b/clients/kamino-lending/src/generated/types/obligationCollateral.ts index 9ddd7198..a255148a 100644 --- a/clients/kamino-lending/src/generated/types/obligationCollateral.ts +++ b/clients/kamino-lending/src/generated/types/obligationCollateral.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/obligationLiquidity.ts b/clients/kamino-lending/src/generated/types/obligationLiquidity.ts index cd6e3187..a6f0537f 100644 --- a/clients/kamino-lending/src/generated/types/obligationLiquidity.ts +++ b/clients/kamino-lending/src/generated/types/obligationLiquidity.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/price.ts b/clients/kamino-lending/src/generated/types/price.ts index c7f7915f..a6885d44 100644 --- a/clients/kamino-lending/src/generated/types/price.ts +++ b/clients/kamino-lending/src/generated/types/price.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/priceHeuristic.ts b/clients/kamino-lending/src/generated/types/priceHeuristic.ts index ec126191..dab1490b 100644 --- a/clients/kamino-lending/src/generated/types/priceHeuristic.ts +++ b/clients/kamino-lending/src/generated/types/priceHeuristic.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/pythConfiguration.ts b/clients/kamino-lending/src/generated/types/pythConfiguration.ts index 4ff0a5cd..62978757 100644 --- a/clients/kamino-lending/src/generated/types/pythConfiguration.ts +++ b/clients/kamino-lending/src/generated/types/pythConfiguration.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/reserveCollateral.ts b/clients/kamino-lending/src/generated/types/reserveCollateral.ts index 7b8334e4..85b4a958 100644 --- a/clients/kamino-lending/src/generated/types/reserveCollateral.ts +++ b/clients/kamino-lending/src/generated/types/reserveCollateral.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/reserveConfig.ts b/clients/kamino-lending/src/generated/types/reserveConfig.ts index 7ae9788e..f527d3ca 100644 --- a/clients/kamino-lending/src/generated/types/reserveConfig.ts +++ b/clients/kamino-lending/src/generated/types/reserveConfig.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/reserveFarmKind.ts b/clients/kamino-lending/src/generated/types/reserveFarmKind.ts index 5607b963..f6d23031 100644 --- a/clients/kamino-lending/src/generated/types/reserveFarmKind.ts +++ b/clients/kamino-lending/src/generated/types/reserveFarmKind.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/reserveFees.ts b/clients/kamino-lending/src/generated/types/reserveFees.ts index 5f4004e2..3efe4e71 100644 --- a/clients/kamino-lending/src/generated/types/reserveFees.ts +++ b/clients/kamino-lending/src/generated/types/reserveFees.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/reserveLiquidity.ts b/clients/kamino-lending/src/generated/types/reserveLiquidity.ts index 249076d6..11b62123 100644 --- a/clients/kamino-lending/src/generated/types/reserveLiquidity.ts +++ b/clients/kamino-lending/src/generated/types/reserveLiquidity.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/reserveStatus.ts b/clients/kamino-lending/src/generated/types/reserveStatus.ts index eb3eeb5b..229ec16c 100644 --- a/clients/kamino-lending/src/generated/types/reserveStatus.ts +++ b/clients/kamino-lending/src/generated/types/reserveStatus.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/rewardInfo.ts b/clients/kamino-lending/src/generated/types/rewardInfo.ts index 9292bf8a..7614878e 100644 --- a/clients/kamino-lending/src/generated/types/rewardInfo.ts +++ b/clients/kamino-lending/src/generated/types/rewardInfo.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/rewardPerTimeUnitPoint.ts b/clients/kamino-lending/src/generated/types/rewardPerTimeUnitPoint.ts index 11f23a0d..8ca5771c 100644 --- a/clients/kamino-lending/src/generated/types/rewardPerTimeUnitPoint.ts +++ b/clients/kamino-lending/src/generated/types/rewardPerTimeUnitPoint.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/rewardScheduleCurve.ts b/clients/kamino-lending/src/generated/types/rewardScheduleCurve.ts index db9b9d47..68f19470 100644 --- a/clients/kamino-lending/src/generated/types/rewardScheduleCurve.ts +++ b/clients/kamino-lending/src/generated/types/rewardScheduleCurve.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/rewardType.ts b/clients/kamino-lending/src/generated/types/rewardType.ts index a5d9b3b8..995157e2 100644 --- a/clients/kamino-lending/src/generated/types/rewardType.ts +++ b/clients/kamino-lending/src/generated/types/rewardType.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/scopeConfiguration.ts b/clients/kamino-lending/src/generated/types/scopeConfiguration.ts index 7ec3f89a..5b245c41 100644 --- a/clients/kamino-lending/src/generated/types/scopeConfiguration.ts +++ b/clients/kamino-lending/src/generated/types/scopeConfiguration.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/switchboardConfiguration.ts b/clients/kamino-lending/src/generated/types/switchboardConfiguration.ts index 04abc76b..afa70c26 100644 --- a/clients/kamino-lending/src/generated/types/switchboardConfiguration.ts +++ b/clients/kamino-lending/src/generated/types/switchboardConfiguration.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/timeUnit.ts b/clients/kamino-lending/src/generated/types/timeUnit.ts index efa32695..3d7489f6 100644 --- a/clients/kamino-lending/src/generated/types/timeUnit.ts +++ b/clients/kamino-lending/src/generated/types/timeUnit.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/tokenInfo.ts b/clients/kamino-lending/src/generated/types/tokenInfo.ts index 843c2d24..c8de4f5a 100644 --- a/clients/kamino-lending/src/generated/types/tokenInfo.ts +++ b/clients/kamino-lending/src/generated/types/tokenInfo.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/updateConfigMode.ts b/clients/kamino-lending/src/generated/types/updateConfigMode.ts index 5be6a529..46b6393b 100644 --- a/clients/kamino-lending/src/generated/types/updateConfigMode.ts +++ b/clients/kamino-lending/src/generated/types/updateConfigMode.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/updateLendingMarketConfigValue.ts b/clients/kamino-lending/src/generated/types/updateLendingMarketConfigValue.ts index f5da7296..be82cc7d 100644 --- a/clients/kamino-lending/src/generated/types/updateLendingMarketConfigValue.ts +++ b/clients/kamino-lending/src/generated/types/updateLendingMarketConfigValue.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/updateLendingMarketMode.ts b/clients/kamino-lending/src/generated/types/updateLendingMarketMode.ts index 6ba8c1d8..5726db2b 100644 --- a/clients/kamino-lending/src/generated/types/updateLendingMarketMode.ts +++ b/clients/kamino-lending/src/generated/types/updateLendingMarketMode.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/kamino-lending/src/generated/types/withdrawalCaps.ts b/clients/kamino-lending/src/generated/types/withdrawalCaps.ts index f6295d07..6bc5484d 100644 --- a/clients/kamino-lending/src/generated/types/withdrawalCaps.ts +++ b/clients/kamino-lending/src/generated/types/withdrawalCaps.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/accounts/feeTier.ts b/clients/orca-whirlpools/src/generated/accounts/feeTier.ts index 08d04854..3b97e610 100644 --- a/clients/orca-whirlpools/src/generated/accounts/feeTier.ts +++ b/clients/orca-whirlpools/src/generated/accounts/feeTier.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/accounts/index.ts b/clients/orca-whirlpools/src/generated/accounts/index.ts index 76a801cb..2b24f47c 100644 --- a/clients/orca-whirlpools/src/generated/accounts/index.ts +++ b/clients/orca-whirlpools/src/generated/accounts/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/accounts/lockConfig.ts b/clients/orca-whirlpools/src/generated/accounts/lockConfig.ts index ac5b16c3..d95687ae 100644 --- a/clients/orca-whirlpools/src/generated/accounts/lockConfig.ts +++ b/clients/orca-whirlpools/src/generated/accounts/lockConfig.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/accounts/position.ts b/clients/orca-whirlpools/src/generated/accounts/position.ts index a047b5a9..13426609 100644 --- a/clients/orca-whirlpools/src/generated/accounts/position.ts +++ b/clients/orca-whirlpools/src/generated/accounts/position.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/accounts/positionBundle.ts b/clients/orca-whirlpools/src/generated/accounts/positionBundle.ts index 4d3292a8..4d4310d2 100644 --- a/clients/orca-whirlpools/src/generated/accounts/positionBundle.ts +++ b/clients/orca-whirlpools/src/generated/accounts/positionBundle.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/accounts/tickArray.ts b/clients/orca-whirlpools/src/generated/accounts/tickArray.ts index d570ebd4..601dd20a 100644 --- a/clients/orca-whirlpools/src/generated/accounts/tickArray.ts +++ b/clients/orca-whirlpools/src/generated/accounts/tickArray.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/accounts/tokenBadge.ts b/clients/orca-whirlpools/src/generated/accounts/tokenBadge.ts index 02330c60..aa666d13 100644 --- a/clients/orca-whirlpools/src/generated/accounts/tokenBadge.ts +++ b/clients/orca-whirlpools/src/generated/accounts/tokenBadge.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/accounts/whirlpool.ts b/clients/orca-whirlpools/src/generated/accounts/whirlpool.ts index 5ad90d27..a98c9555 100644 --- a/clients/orca-whirlpools/src/generated/accounts/whirlpool.ts +++ b/clients/orca-whirlpools/src/generated/accounts/whirlpool.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/accounts/whirlpoolsConfig.ts b/clients/orca-whirlpools/src/generated/accounts/whirlpoolsConfig.ts index fe3134ff..6797ccab 100644 --- a/clients/orca-whirlpools/src/generated/accounts/whirlpoolsConfig.ts +++ b/clients/orca-whirlpools/src/generated/accounts/whirlpoolsConfig.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/accounts/whirlpoolsConfigExtension.ts b/clients/orca-whirlpools/src/generated/accounts/whirlpoolsConfigExtension.ts index 211402d2..fdd86153 100644 --- a/clients/orca-whirlpools/src/generated/accounts/whirlpoolsConfigExtension.ts +++ b/clients/orca-whirlpools/src/generated/accounts/whirlpoolsConfigExtension.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/errors/index.ts b/clients/orca-whirlpools/src/generated/errors/index.ts index b7ceb61b..1f0de40e 100644 --- a/clients/orca-whirlpools/src/generated/errors/index.ts +++ b/clients/orca-whirlpools/src/generated/errors/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/errors/whirlpool.ts b/clients/orca-whirlpools/src/generated/errors/whirlpool.ts index 6fbff18f..8192a4ce 100644 --- a/clients/orca-whirlpools/src/generated/errors/whirlpool.ts +++ b/clients/orca-whirlpools/src/generated/errors/whirlpool.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/index.ts b/clients/orca-whirlpools/src/generated/index.ts index 57d7322d..6472eb04 100644 --- a/clients/orca-whirlpools/src/generated/index.ts +++ b/clients/orca-whirlpools/src/generated/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/instructions/closeBundledPosition.ts b/clients/orca-whirlpools/src/generated/instructions/closeBundledPosition.ts index 497c6f62..14532315 100644 --- a/clients/orca-whirlpools/src/generated/instructions/closeBundledPosition.ts +++ b/clients/orca-whirlpools/src/generated/instructions/closeBundledPosition.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -183,7 +183,7 @@ export function getCloseBundledPositionInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.bundledPosition), getAccountMeta(accounts.positionBundle), @@ -191,10 +191,10 @@ export function getCloseBundledPositionInstruction< getAccountMeta(accounts.positionBundleAuthority), getAccountMeta(accounts.receiver), ], - programAddress, data: getCloseBundledPositionInstructionDataEncoder().encode( args as CloseBundledPositionInstructionDataArgs, ), + programAddress, } as CloseBundledPositionInstruction< TProgramAddress, TAccountBundledPosition, @@ -202,9 +202,7 @@ export function getCloseBundledPositionInstruction< TAccountPositionBundleTokenAccount, TAccountPositionBundleAuthority, TAccountReceiver - >; - - return instruction; + >); } export interface ParsedCloseBundledPositionInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/closePosition.ts b/clients/orca-whirlpools/src/generated/instructions/closePosition.ts index 973615e9..c3ebc9b9 100644 --- a/clients/orca-whirlpools/src/generated/instructions/closePosition.ts +++ b/clients/orca-whirlpools/src/generated/instructions/closePosition.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -178,7 +178,7 @@ export function getClosePositionInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.positionAuthority), getAccountMeta(accounts.receiver), @@ -187,8 +187,8 @@ export function getClosePositionInstruction< getAccountMeta(accounts.positionTokenAccount), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getClosePositionInstructionDataEncoder().encode({}), + programAddress, } as ClosePositionInstruction< TProgramAddress, TAccountPositionAuthority, @@ -197,9 +197,7 @@ export function getClosePositionInstruction< TAccountPositionMint, TAccountPositionTokenAccount, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedClosePositionInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/closePositionWithTokenExtensions.ts b/clients/orca-whirlpools/src/generated/instructions/closePositionWithTokenExtensions.ts index 62436dd8..fc9486d2 100644 --- a/clients/orca-whirlpools/src/generated/instructions/closePositionWithTokenExtensions.ts +++ b/clients/orca-whirlpools/src/generated/instructions/closePositionWithTokenExtensions.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -183,7 +183,7 @@ export function getClosePositionWithTokenExtensionsInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.positionAuthority), getAccountMeta(accounts.receiver), @@ -192,10 +192,10 @@ export function getClosePositionWithTokenExtensionsInstruction< getAccountMeta(accounts.positionTokenAccount), getAccountMeta(accounts.token2022Program), ], - programAddress, data: getClosePositionWithTokenExtensionsInstructionDataEncoder().encode( {}, ), + programAddress, } as ClosePositionWithTokenExtensionsInstruction< TProgramAddress, TAccountPositionAuthority, @@ -204,9 +204,7 @@ export function getClosePositionWithTokenExtensionsInstruction< TAccountPositionMint, TAccountPositionTokenAccount, TAccountToken2022Program - >; - - return instruction; + >); } export interface ParsedClosePositionWithTokenExtensionsInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/collectFees.ts b/clients/orca-whirlpools/src/generated/instructions/collectFees.ts index 2f127a0d..7d71d0fc 100644 --- a/clients/orca-whirlpools/src/generated/instructions/collectFees.ts +++ b/clients/orca-whirlpools/src/generated/instructions/collectFees.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -214,7 +214,7 @@ export function getCollectFeesInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpool), getAccountMeta(accounts.positionAuthority), @@ -226,8 +226,8 @@ export function getCollectFeesInstruction< getAccountMeta(accounts.tokenVaultB), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getCollectFeesInstructionDataEncoder().encode({}), + programAddress, } as CollectFeesInstruction< TProgramAddress, TAccountWhirlpool, @@ -239,9 +239,7 @@ export function getCollectFeesInstruction< TAccountTokenOwnerAccountB, TAccountTokenVaultB, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedCollectFeesInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/collectFeesV2.ts b/clients/orca-whirlpools/src/generated/instructions/collectFeesV2.ts index 2ceefe84..f71cff26 100644 --- a/clients/orca-whirlpools/src/generated/instructions/collectFeesV2.ts +++ b/clients/orca-whirlpools/src/generated/instructions/collectFeesV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -283,7 +283,7 @@ export function getCollectFeesV2Instruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpool), getAccountMeta(accounts.positionAuthority), @@ -299,10 +299,10 @@ export function getCollectFeesV2Instruction< getAccountMeta(accounts.tokenProgramB), getAccountMeta(accounts.memoProgram), ], - programAddress, data: getCollectFeesV2InstructionDataEncoder().encode( args as CollectFeesV2InstructionDataArgs, ), + programAddress, } as CollectFeesV2Instruction< TProgramAddress, TAccountWhirlpool, @@ -318,9 +318,7 @@ export function getCollectFeesV2Instruction< TAccountTokenProgramA, TAccountTokenProgramB, TAccountMemoProgram - >; - - return instruction; + >); } export interface ParsedCollectFeesV2Instruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/collectProtocolFees.ts b/clients/orca-whirlpools/src/generated/instructions/collectProtocolFees.ts index 23bd23da..51c95087 100644 --- a/clients/orca-whirlpools/src/generated/instructions/collectProtocolFees.ts +++ b/clients/orca-whirlpools/src/generated/instructions/collectProtocolFees.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -206,7 +206,7 @@ export function getCollectProtocolFeesInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpoolsConfig), getAccountMeta(accounts.whirlpool), @@ -217,8 +217,8 @@ export function getCollectProtocolFeesInstruction< getAccountMeta(accounts.tokenDestinationB), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getCollectProtocolFeesInstructionDataEncoder().encode({}), + programAddress, } as CollectProtocolFeesInstruction< TProgramAddress, TAccountWhirlpoolsConfig, @@ -229,9 +229,7 @@ export function getCollectProtocolFeesInstruction< TAccountTokenDestinationA, TAccountTokenDestinationB, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedCollectProtocolFeesInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/collectProtocolFeesV2.ts b/clients/orca-whirlpools/src/generated/instructions/collectProtocolFeesV2.ts index 0502460f..02c68a94 100644 --- a/clients/orca-whirlpools/src/generated/instructions/collectProtocolFeesV2.ts +++ b/clients/orca-whirlpools/src/generated/instructions/collectProtocolFeesV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -275,7 +275,7 @@ export function getCollectProtocolFeesV2Instruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpoolsConfig), getAccountMeta(accounts.whirlpool), @@ -290,10 +290,10 @@ export function getCollectProtocolFeesV2Instruction< getAccountMeta(accounts.tokenProgramB), getAccountMeta(accounts.memoProgram), ], - programAddress, data: getCollectProtocolFeesV2InstructionDataEncoder().encode( args as CollectProtocolFeesV2InstructionDataArgs, ), + programAddress, } as CollectProtocolFeesV2Instruction< TProgramAddress, TAccountWhirlpoolsConfig, @@ -308,9 +308,7 @@ export function getCollectProtocolFeesV2Instruction< TAccountTokenProgramA, TAccountTokenProgramB, TAccountMemoProgram - >; - - return instruction; + >); } export interface ParsedCollectProtocolFeesV2Instruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/collectReward.ts b/clients/orca-whirlpools/src/generated/instructions/collectReward.ts index 077c8b52..4d119e0a 100644 --- a/clients/orca-whirlpools/src/generated/instructions/collectReward.ts +++ b/clients/orca-whirlpools/src/generated/instructions/collectReward.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -204,7 +204,7 @@ export function getCollectRewardInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpool), getAccountMeta(accounts.positionAuthority), @@ -214,10 +214,10 @@ export function getCollectRewardInstruction< getAccountMeta(accounts.rewardVault), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getCollectRewardInstructionDataEncoder().encode( args as CollectRewardInstructionDataArgs, ), + programAddress, } as CollectRewardInstruction< TProgramAddress, TAccountWhirlpool, @@ -227,9 +227,7 @@ export function getCollectRewardInstruction< TAccountRewardOwnerAccount, TAccountRewardVault, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedCollectRewardInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/collectRewardV2.ts b/clients/orca-whirlpools/src/generated/instructions/collectRewardV2.ts index 2e2d30e3..2ee63331 100644 --- a/clients/orca-whirlpools/src/generated/instructions/collectRewardV2.ts +++ b/clients/orca-whirlpools/src/generated/instructions/collectRewardV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -249,7 +249,7 @@ export function getCollectRewardV2Instruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpool), getAccountMeta(accounts.positionAuthority), @@ -261,10 +261,10 @@ export function getCollectRewardV2Instruction< getAccountMeta(accounts.rewardTokenProgram), getAccountMeta(accounts.memoProgram), ], - programAddress, data: getCollectRewardV2InstructionDataEncoder().encode( args as CollectRewardV2InstructionDataArgs, ), + programAddress, } as CollectRewardV2Instruction< TProgramAddress, TAccountWhirlpool, @@ -276,9 +276,7 @@ export function getCollectRewardV2Instruction< TAccountRewardVault, TAccountRewardTokenProgram, TAccountMemoProgram - >; - - return instruction; + >); } export interface ParsedCollectRewardV2Instruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/decreaseLiquidity.ts b/clients/orca-whirlpools/src/generated/instructions/decreaseLiquidity.ts index 3e5ced11..95b5997f 100644 --- a/clients/orca-whirlpools/src/generated/instructions/decreaseLiquidity.ts +++ b/clients/orca-whirlpools/src/generated/instructions/decreaseLiquidity.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -258,7 +258,7 @@ export function getDecreaseLiquidityInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpool), getAccountMeta(accounts.tokenProgram), @@ -272,10 +272,10 @@ export function getDecreaseLiquidityInstruction< getAccountMeta(accounts.tickArrayLower), getAccountMeta(accounts.tickArrayUpper), ], - programAddress, data: getDecreaseLiquidityInstructionDataEncoder().encode( args as DecreaseLiquidityInstructionDataArgs, ), + programAddress, } as DecreaseLiquidityInstruction< TProgramAddress, TAccountWhirlpool, @@ -289,9 +289,7 @@ export function getDecreaseLiquidityInstruction< TAccountTokenVaultB, TAccountTickArrayLower, TAccountTickArrayUpper - >; - - return instruction; + >); } export interface ParsedDecreaseLiquidityInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/decreaseLiquidityV2.ts b/clients/orca-whirlpools/src/generated/instructions/decreaseLiquidityV2.ts index b2657af9..8cd6876f 100644 --- a/clients/orca-whirlpools/src/generated/instructions/decreaseLiquidityV2.ts +++ b/clients/orca-whirlpools/src/generated/instructions/decreaseLiquidityV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -324,7 +324,7 @@ export function getDecreaseLiquidityV2Instruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpool), getAccountMeta(accounts.tokenProgramA), @@ -342,10 +342,10 @@ export function getDecreaseLiquidityV2Instruction< getAccountMeta(accounts.tickArrayLower), getAccountMeta(accounts.tickArrayUpper), ], - programAddress, data: getDecreaseLiquidityV2InstructionDataEncoder().encode( args as DecreaseLiquidityV2InstructionDataArgs, ), + programAddress, } as DecreaseLiquidityV2Instruction< TProgramAddress, TAccountWhirlpool, @@ -363,9 +363,7 @@ export function getDecreaseLiquidityV2Instruction< TAccountTokenVaultB, TAccountTickArrayLower, TAccountTickArrayUpper - >; - - return instruction; + >); } export interface ParsedDecreaseLiquidityV2Instruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/deletePositionBundle.ts b/clients/orca-whirlpools/src/generated/instructions/deletePositionBundle.ts index ffb1a188..fd0901e3 100644 --- a/clients/orca-whirlpools/src/generated/instructions/deletePositionBundle.ts +++ b/clients/orca-whirlpools/src/generated/instructions/deletePositionBundle.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -183,7 +183,7 @@ export function getDeletePositionBundleInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.positionBundle), getAccountMeta(accounts.positionBundleMint), @@ -192,8 +192,8 @@ export function getDeletePositionBundleInstruction< getAccountMeta(accounts.receiver), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getDeletePositionBundleInstructionDataEncoder().encode({}), + programAddress, } as DeletePositionBundleInstruction< TProgramAddress, TAccountPositionBundle, @@ -202,9 +202,7 @@ export function getDeletePositionBundleInstruction< TAccountPositionBundleOwner, TAccountReceiver, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedDeletePositionBundleInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/deleteTokenBadge.ts b/clients/orca-whirlpools/src/generated/instructions/deleteTokenBadge.ts index 02110ec9..167309b3 100644 --- a/clients/orca-whirlpools/src/generated/instructions/deleteTokenBadge.ts +++ b/clients/orca-whirlpools/src/generated/instructions/deleteTokenBadge.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -180,7 +180,7 @@ export function getDeleteTokenBadgeInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpoolsConfig), getAccountMeta(accounts.whirlpoolsConfigExtension), @@ -189,8 +189,8 @@ export function getDeleteTokenBadgeInstruction< getAccountMeta(accounts.tokenBadge), getAccountMeta(accounts.receiver), ], - programAddress, data: getDeleteTokenBadgeInstructionDataEncoder().encode({}), + programAddress, } as DeleteTokenBadgeInstruction< TProgramAddress, TAccountWhirlpoolsConfig, @@ -199,9 +199,7 @@ export function getDeleteTokenBadgeInstruction< TAccountTokenMint, TAccountTokenBadge, TAccountReceiver - >; - - return instruction; + >); } export interface ParsedDeleteTokenBadgeInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/increaseLiquidity.ts b/clients/orca-whirlpools/src/generated/instructions/increaseLiquidity.ts index 6b1e4cc6..522bd66e 100644 --- a/clients/orca-whirlpools/src/generated/instructions/increaseLiquidity.ts +++ b/clients/orca-whirlpools/src/generated/instructions/increaseLiquidity.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -258,7 +258,7 @@ export function getIncreaseLiquidityInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpool), getAccountMeta(accounts.tokenProgram), @@ -272,10 +272,10 @@ export function getIncreaseLiquidityInstruction< getAccountMeta(accounts.tickArrayLower), getAccountMeta(accounts.tickArrayUpper), ], - programAddress, data: getIncreaseLiquidityInstructionDataEncoder().encode( args as IncreaseLiquidityInstructionDataArgs, ), + programAddress, } as IncreaseLiquidityInstruction< TProgramAddress, TAccountWhirlpool, @@ -289,9 +289,7 @@ export function getIncreaseLiquidityInstruction< TAccountTokenVaultB, TAccountTickArrayLower, TAccountTickArrayUpper - >; - - return instruction; + >); } export interface ParsedIncreaseLiquidityInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/increaseLiquidityV2.ts b/clients/orca-whirlpools/src/generated/instructions/increaseLiquidityV2.ts index 122a7833..c55cb708 100644 --- a/clients/orca-whirlpools/src/generated/instructions/increaseLiquidityV2.ts +++ b/clients/orca-whirlpools/src/generated/instructions/increaseLiquidityV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -324,7 +324,7 @@ export function getIncreaseLiquidityV2Instruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpool), getAccountMeta(accounts.tokenProgramA), @@ -342,10 +342,10 @@ export function getIncreaseLiquidityV2Instruction< getAccountMeta(accounts.tickArrayLower), getAccountMeta(accounts.tickArrayUpper), ], - programAddress, data: getIncreaseLiquidityV2InstructionDataEncoder().encode( args as IncreaseLiquidityV2InstructionDataArgs, ), + programAddress, } as IncreaseLiquidityV2Instruction< TProgramAddress, TAccountWhirlpool, @@ -363,9 +363,7 @@ export function getIncreaseLiquidityV2Instruction< TAccountTokenVaultB, TAccountTickArrayLower, TAccountTickArrayUpper - >; - - return instruction; + >); } export interface ParsedIncreaseLiquidityV2Instruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/index.ts b/clients/orca-whirlpools/src/generated/instructions/index.ts index 88f7d90e..0e5f83b4 100644 --- a/clients/orca-whirlpools/src/generated/instructions/index.ts +++ b/clients/orca-whirlpools/src/generated/instructions/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/instructions/initializeConfig.ts b/clients/orca-whirlpools/src/generated/instructions/initializeConfig.ts index 15d3da79..38744036 100644 --- a/clients/orca-whirlpools/src/generated/instructions/initializeConfig.ts +++ b/clients/orca-whirlpools/src/generated/instructions/initializeConfig.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -171,24 +171,22 @@ export function getInitializeConfigInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.config), getAccountMeta(accounts.funder), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getInitializeConfigInstructionDataEncoder().encode( args as InitializeConfigInstructionDataArgs, ), + programAddress, } as InitializeConfigInstruction< TProgramAddress, TAccountConfig, TAccountFunder, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedInitializeConfigInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/initializeConfigExtension.ts b/clients/orca-whirlpools/src/generated/instructions/initializeConfigExtension.ts index c44b63ad..4ebf273d 100644 --- a/clients/orca-whirlpools/src/generated/instructions/initializeConfigExtension.ts +++ b/clients/orca-whirlpools/src/generated/instructions/initializeConfigExtension.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -166,7 +166,7 @@ export function getInitializeConfigExtensionInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.config), getAccountMeta(accounts.configExtension), @@ -174,8 +174,8 @@ export function getInitializeConfigExtensionInstruction< getAccountMeta(accounts.feeAuthority), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getInitializeConfigExtensionInstructionDataEncoder().encode({}), + programAddress, } as InitializeConfigExtensionInstruction< TProgramAddress, TAccountConfig, @@ -183,9 +183,7 @@ export function getInitializeConfigExtensionInstruction< TAccountFunder, TAccountFeeAuthority, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedInitializeConfigExtensionInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/initializeFeeTier.ts b/clients/orca-whirlpools/src/generated/instructions/initializeFeeTier.ts index 30d6c510..a568ff47 100644 --- a/clients/orca-whirlpools/src/generated/instructions/initializeFeeTier.ts +++ b/clients/orca-whirlpools/src/generated/instructions/initializeFeeTier.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -181,7 +181,7 @@ export function getInitializeFeeTierInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.config), getAccountMeta(accounts.feeTier), @@ -189,10 +189,10 @@ export function getInitializeFeeTierInstruction< getAccountMeta(accounts.feeAuthority), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getInitializeFeeTierInstructionDataEncoder().encode( args as InitializeFeeTierInstructionDataArgs, ), + programAddress, } as InitializeFeeTierInstruction< TProgramAddress, TAccountConfig, @@ -200,9 +200,7 @@ export function getInitializeFeeTierInstruction< TAccountFunder, TAccountFeeAuthority, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedInitializeFeeTierInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/initializePool.ts b/clients/orca-whirlpools/src/generated/instructions/initializePool.ts index 9a065e16..2f6a81eb 100644 --- a/clients/orca-whirlpools/src/generated/instructions/initializePool.ts +++ b/clients/orca-whirlpools/src/generated/instructions/initializePool.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -257,7 +257,7 @@ export function getInitializePoolInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpoolsConfig), getAccountMeta(accounts.tokenMintA), @@ -271,10 +271,10 @@ export function getInitializePoolInstruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ], - programAddress, data: getInitializePoolInstructionDataEncoder().encode( args as InitializePoolInstructionDataArgs, ), + programAddress, } as InitializePoolInstruction< TProgramAddress, TAccountWhirlpoolsConfig, @@ -288,9 +288,7 @@ export function getInitializePoolInstruction< TAccountTokenProgram, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedInitializePoolInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/initializePoolV2.ts b/clients/orca-whirlpools/src/generated/instructions/initializePoolV2.ts index 4598ce12..3fc8970b 100644 --- a/clients/orca-whirlpools/src/generated/instructions/initializePoolV2.ts +++ b/clients/orca-whirlpools/src/generated/instructions/initializePoolV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -276,7 +276,7 @@ export function getInitializePoolV2Instruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpoolsConfig), getAccountMeta(accounts.tokenMintA), @@ -293,10 +293,10 @@ export function getInitializePoolV2Instruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ], - programAddress, data: getInitializePoolV2InstructionDataEncoder().encode( args as InitializePoolV2InstructionDataArgs, ), + programAddress, } as InitializePoolV2Instruction< TProgramAddress, TAccountWhirlpoolsConfig, @@ -313,9 +313,7 @@ export function getInitializePoolV2Instruction< TAccountTokenProgramB, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedInitializePoolV2Instruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/initializePositionBundle.ts b/clients/orca-whirlpools/src/generated/instructions/initializePositionBundle.ts index 0e881a52..3c754c44 100644 --- a/clients/orca-whirlpools/src/generated/instructions/initializePositionBundle.ts +++ b/clients/orca-whirlpools/src/generated/instructions/initializePositionBundle.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -217,7 +217,7 @@ export function getInitializePositionBundleInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.positionBundle), getAccountMeta(accounts.positionBundleMint), @@ -229,8 +229,8 @@ export function getInitializePositionBundleInstruction< getAccountMeta(accounts.rent), getAccountMeta(accounts.associatedTokenProgram), ], - programAddress, data: getInitializePositionBundleInstructionDataEncoder().encode({}), + programAddress, } as InitializePositionBundleInstruction< TProgramAddress, TAccountPositionBundle, @@ -242,9 +242,7 @@ export function getInitializePositionBundleInstruction< TAccountSystemProgram, TAccountRent, TAccountAssociatedTokenProgram - >; - - return instruction; + >); } export interface ParsedInitializePositionBundleInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/initializePositionBundleWithMetadata.ts b/clients/orca-whirlpools/src/generated/instructions/initializePositionBundleWithMetadata.ts index 1d33547c..c597588b 100644 --- a/clients/orca-whirlpools/src/generated/instructions/initializePositionBundleWithMetadata.ts +++ b/clients/orca-whirlpools/src/generated/instructions/initializePositionBundleWithMetadata.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -256,7 +256,7 @@ export function getInitializePositionBundleWithMetadataInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.positionBundle), getAccountMeta(accounts.positionBundleMint), @@ -271,10 +271,10 @@ export function getInitializePositionBundleWithMetadataInstruction< getAccountMeta(accounts.associatedTokenProgram), getAccountMeta(accounts.metadataProgram), ], - programAddress, data: getInitializePositionBundleWithMetadataInstructionDataEncoder().encode( {}, ), + programAddress, } as InitializePositionBundleWithMetadataInstruction< TProgramAddress, TAccountPositionBundle, @@ -289,9 +289,7 @@ export function getInitializePositionBundleWithMetadataInstruction< TAccountRent, TAccountAssociatedTokenProgram, TAccountMetadataProgram - >; - - return instruction; + >); } export interface ParsedInitializePositionBundleWithMetadataInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/initializeReward.ts b/clients/orca-whirlpools/src/generated/instructions/initializeReward.ts index 3209ef76..211219e6 100644 --- a/clients/orca-whirlpools/src/generated/instructions/initializeReward.ts +++ b/clients/orca-whirlpools/src/generated/instructions/initializeReward.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -210,7 +210,7 @@ export function getInitializeRewardInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.rewardAuthority), getAccountMeta(accounts.funder), @@ -221,10 +221,10 @@ export function getInitializeRewardInstruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ], - programAddress, data: getInitializeRewardInstructionDataEncoder().encode( args as InitializeRewardInstructionDataArgs, ), + programAddress, } as InitializeRewardInstruction< TProgramAddress, TAccountRewardAuthority, @@ -235,9 +235,7 @@ export function getInitializeRewardInstruction< TAccountTokenProgram, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedInitializeRewardInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/initializeRewardV2.ts b/clients/orca-whirlpools/src/generated/instructions/initializeRewardV2.ts index 64d40fad..fcf1ccee 100644 --- a/clients/orca-whirlpools/src/generated/instructions/initializeRewardV2.ts +++ b/clients/orca-whirlpools/src/generated/instructions/initializeRewardV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -229,7 +229,7 @@ export function getInitializeRewardV2Instruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.rewardAuthority), getAccountMeta(accounts.funder), @@ -241,10 +241,10 @@ export function getInitializeRewardV2Instruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ], - programAddress, data: getInitializeRewardV2InstructionDataEncoder().encode( args as InitializeRewardV2InstructionDataArgs, ), + programAddress, } as InitializeRewardV2Instruction< TProgramAddress, TAccountRewardAuthority, @@ -256,9 +256,7 @@ export function getInitializeRewardV2Instruction< TAccountRewardTokenProgram, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedInitializeRewardV2Instruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/initializeTickArray.ts b/clients/orca-whirlpools/src/generated/instructions/initializeTickArray.ts index 226578c5..bcf38e9b 100644 --- a/clients/orca-whirlpools/src/generated/instructions/initializeTickArray.ts +++ b/clients/orca-whirlpools/src/generated/instructions/initializeTickArray.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -167,26 +167,24 @@ export function getInitializeTickArrayInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpool), getAccountMeta(accounts.funder), getAccountMeta(accounts.tickArray), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getInitializeTickArrayInstructionDataEncoder().encode( args as InitializeTickArrayInstructionDataArgs, ), + programAddress, } as InitializeTickArrayInstruction< TProgramAddress, TAccountWhirlpool, TAccountFunder, TAccountTickArray, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedInitializeTickArrayInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/initializeTokenBadge.ts b/clients/orca-whirlpools/src/generated/instructions/initializeTokenBadge.ts index ec75f2d9..7043c26c 100644 --- a/clients/orca-whirlpools/src/generated/instructions/initializeTokenBadge.ts +++ b/clients/orca-whirlpools/src/generated/instructions/initializeTokenBadge.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -195,7 +195,7 @@ export function getInitializeTokenBadgeInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpoolsConfig), getAccountMeta(accounts.whirlpoolsConfigExtension), @@ -205,8 +205,8 @@ export function getInitializeTokenBadgeInstruction< getAccountMeta(accounts.funder), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getInitializeTokenBadgeInstructionDataEncoder().encode({}), + programAddress, } as InitializeTokenBadgeInstruction< TProgramAddress, TAccountWhirlpoolsConfig, @@ -216,9 +216,7 @@ export function getInitializeTokenBadgeInstruction< TAccountTokenBadge, TAccountFunder, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedInitializeTokenBadgeInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/lockPosition.ts b/clients/orca-whirlpools/src/generated/instructions/lockPosition.ts index 74c96420..aa934fcd 100644 --- a/clients/orca-whirlpools/src/generated/instructions/lockPosition.ts +++ b/clients/orca-whirlpools/src/generated/instructions/lockPosition.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -226,7 +226,7 @@ export function getLockPositionInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.funder), getAccountMeta(accounts.positionAuthority), @@ -238,10 +238,10 @@ export function getLockPositionInstruction< getAccountMeta(accounts.token2022Program), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getLockPositionInstructionDataEncoder().encode( args as LockPositionInstructionDataArgs, ), + programAddress, } as LockPositionInstruction< TProgramAddress, TAccountFunder, @@ -253,9 +253,7 @@ export function getLockPositionInstruction< TAccountWhirlpool, TAccountToken2022Program, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedLockPositionInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/openBundledPosition.ts b/clients/orca-whirlpools/src/generated/instructions/openBundledPosition.ts index 4934e10e..e0177a52 100644 --- a/clients/orca-whirlpools/src/generated/instructions/openBundledPosition.ts +++ b/clients/orca-whirlpools/src/generated/instructions/openBundledPosition.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -227,7 +227,7 @@ export function getOpenBundledPositionInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.bundledPosition), getAccountMeta(accounts.positionBundle), @@ -238,10 +238,10 @@ export function getOpenBundledPositionInstruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ], - programAddress, data: getOpenBundledPositionInstructionDataEncoder().encode( args as OpenBundledPositionInstructionDataArgs, ), + programAddress, } as OpenBundledPositionInstruction< TProgramAddress, TAccountBundledPosition, @@ -252,9 +252,7 @@ export function getOpenBundledPositionInstruction< TAccountFunder, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedOpenBundledPositionInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/openPosition.ts b/clients/orca-whirlpools/src/generated/instructions/openPosition.ts index 82c71937..7d444abf 100644 --- a/clients/orca-whirlpools/src/generated/instructions/openPosition.ts +++ b/clients/orca-whirlpools/src/generated/instructions/openPosition.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -250,7 +250,7 @@ export function getOpenPositionInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.funder), getAccountMeta(accounts.owner), @@ -263,10 +263,10 @@ export function getOpenPositionInstruction< getAccountMeta(accounts.rent), getAccountMeta(accounts.associatedTokenProgram), ], - programAddress, data: getOpenPositionInstructionDataEncoder().encode( args as OpenPositionInstructionDataArgs, ), + programAddress, } as OpenPositionInstruction< TProgramAddress, TAccountFunder, @@ -279,9 +279,7 @@ export function getOpenPositionInstruction< TAccountSystemProgram, TAccountRent, TAccountAssociatedTokenProgram - >; - - return instruction; + >); } export interface ParsedOpenPositionInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/openPositionWithMetadata.ts b/clients/orca-whirlpools/src/generated/instructions/openPositionWithMetadata.ts index 9af1b56a..07090b2e 100644 --- a/clients/orca-whirlpools/src/generated/instructions/openPositionWithMetadata.ts +++ b/clients/orca-whirlpools/src/generated/instructions/openPositionWithMetadata.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -291,7 +291,7 @@ export function getOpenPositionWithMetadataInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.funder), getAccountMeta(accounts.owner), @@ -307,10 +307,10 @@ export function getOpenPositionWithMetadataInstruction< getAccountMeta(accounts.metadataProgram), getAccountMeta(accounts.metadataUpdateAuth), ], - programAddress, data: getOpenPositionWithMetadataInstructionDataEncoder().encode( args as OpenPositionWithMetadataInstructionDataArgs, ), + programAddress, } as OpenPositionWithMetadataInstruction< TProgramAddress, TAccountFunder, @@ -326,9 +326,7 @@ export function getOpenPositionWithMetadataInstruction< TAccountAssociatedTokenProgram, TAccountMetadataProgram, TAccountMetadataUpdateAuth - >; - - return instruction; + >); } export interface ParsedOpenPositionWithMetadataInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/openPositionWithTokenExtensions.ts b/clients/orca-whirlpools/src/generated/instructions/openPositionWithTokenExtensions.ts index 8efe9016..ddbf6681 100644 --- a/clients/orca-whirlpools/src/generated/instructions/openPositionWithTokenExtensions.ts +++ b/clients/orca-whirlpools/src/generated/instructions/openPositionWithTokenExtensions.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -252,7 +252,7 @@ export function getOpenPositionWithTokenExtensionsInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.funder), getAccountMeta(accounts.owner), @@ -265,10 +265,10 @@ export function getOpenPositionWithTokenExtensionsInstruction< getAccountMeta(accounts.associatedTokenProgram), getAccountMeta(accounts.metadataUpdateAuth), ], - programAddress, data: getOpenPositionWithTokenExtensionsInstructionDataEncoder().encode( args as OpenPositionWithTokenExtensionsInstructionDataArgs, ), + programAddress, } as OpenPositionWithTokenExtensionsInstruction< TProgramAddress, TAccountFunder, @@ -281,9 +281,7 @@ export function getOpenPositionWithTokenExtensionsInstruction< TAccountSystemProgram, TAccountAssociatedTokenProgram, TAccountMetadataUpdateAuth - >; - - return instruction; + >); } export interface ParsedOpenPositionWithTokenExtensionsInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/setCollectProtocolFeesAuthority.ts b/clients/orca-whirlpools/src/generated/instructions/setCollectProtocolFeesAuthority.ts index 75fdc150..017d34e6 100644 --- a/clients/orca-whirlpools/src/generated/instructions/setCollectProtocolFeesAuthority.ts +++ b/clients/orca-whirlpools/src/generated/instructions/setCollectProtocolFeesAuthority.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -153,22 +153,20 @@ export function getSetCollectProtocolFeesAuthorityInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpoolsConfig), getAccountMeta(accounts.collectProtocolFeesAuthority), getAccountMeta(accounts.newCollectProtocolFeesAuthority), ], - programAddress, data: getSetCollectProtocolFeesAuthorityInstructionDataEncoder().encode({}), + programAddress, } as SetCollectProtocolFeesAuthorityInstruction< TProgramAddress, TAccountWhirlpoolsConfig, TAccountCollectProtocolFeesAuthority, TAccountNewCollectProtocolFeesAuthority - >; - - return instruction; + >); } export interface ParsedSetCollectProtocolFeesAuthorityInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/setConfigExtensionAuthority.ts b/clients/orca-whirlpools/src/generated/instructions/setConfigExtensionAuthority.ts index 4102435f..34782e21 100644 --- a/clients/orca-whirlpools/src/generated/instructions/setConfigExtensionAuthority.ts +++ b/clients/orca-whirlpools/src/generated/instructions/setConfigExtensionAuthority.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -166,24 +166,22 @@ export function getSetConfigExtensionAuthorityInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpoolsConfig), getAccountMeta(accounts.whirlpoolsConfigExtension), getAccountMeta(accounts.configExtensionAuthority), getAccountMeta(accounts.newConfigExtensionAuthority), ], - programAddress, data: getSetConfigExtensionAuthorityInstructionDataEncoder().encode({}), + programAddress, } as SetConfigExtensionAuthorityInstruction< TProgramAddress, TAccountWhirlpoolsConfig, TAccountWhirlpoolsConfigExtension, TAccountConfigExtensionAuthority, TAccountNewConfigExtensionAuthority - >; - - return instruction; + >); } export interface ParsedSetConfigExtensionAuthorityInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/setDefaultFeeRate.ts b/clients/orca-whirlpools/src/generated/instructions/setDefaultFeeRate.ts index 497ecdf3..566ddf1e 100644 --- a/clients/orca-whirlpools/src/generated/instructions/setDefaultFeeRate.ts +++ b/clients/orca-whirlpools/src/generated/instructions/setDefaultFeeRate.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -160,24 +160,22 @@ export function getSetDefaultFeeRateInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpoolsConfig), getAccountMeta(accounts.feeTier), getAccountMeta(accounts.feeAuthority), ], - programAddress, data: getSetDefaultFeeRateInstructionDataEncoder().encode( args as SetDefaultFeeRateInstructionDataArgs, ), + programAddress, } as SetDefaultFeeRateInstruction< TProgramAddress, TAccountWhirlpoolsConfig, TAccountFeeTier, TAccountFeeAuthority - >; - - return instruction; + >); } export interface ParsedSetDefaultFeeRateInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/setDefaultProtocolFeeRate.ts b/clients/orca-whirlpools/src/generated/instructions/setDefaultProtocolFeeRate.ts index dc983f2e..a9ad7f4a 100644 --- a/clients/orca-whirlpools/src/generated/instructions/setDefaultProtocolFeeRate.ts +++ b/clients/orca-whirlpools/src/generated/instructions/setDefaultProtocolFeeRate.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -149,22 +149,20 @@ export function getSetDefaultProtocolFeeRateInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpoolsConfig), getAccountMeta(accounts.feeAuthority), ], - programAddress, data: getSetDefaultProtocolFeeRateInstructionDataEncoder().encode( args as SetDefaultProtocolFeeRateInstructionDataArgs, ), + programAddress, } as SetDefaultProtocolFeeRateInstruction< TProgramAddress, TAccountWhirlpoolsConfig, TAccountFeeAuthority - >; - - return instruction; + >); } export interface ParsedSetDefaultProtocolFeeRateInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/setFeeAuthority.ts b/clients/orca-whirlpools/src/generated/instructions/setFeeAuthority.ts index 1cf031c8..c5eb957f 100644 --- a/clients/orca-whirlpools/src/generated/instructions/setFeeAuthority.ts +++ b/clients/orca-whirlpools/src/generated/instructions/setFeeAuthority.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -147,22 +147,20 @@ export function getSetFeeAuthorityInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpoolsConfig), getAccountMeta(accounts.feeAuthority), getAccountMeta(accounts.newFeeAuthority), ], - programAddress, data: getSetFeeAuthorityInstructionDataEncoder().encode({}), + programAddress, } as SetFeeAuthorityInstruction< TProgramAddress, TAccountWhirlpoolsConfig, TAccountFeeAuthority, TAccountNewFeeAuthority - >; - - return instruction; + >); } export interface ParsedSetFeeAuthorityInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/setFeeRate.ts b/clients/orca-whirlpools/src/generated/instructions/setFeeRate.ts index 5cd62b5b..d7fda83c 100644 --- a/clients/orca-whirlpools/src/generated/instructions/setFeeRate.ts +++ b/clients/orca-whirlpools/src/generated/instructions/setFeeRate.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -158,24 +158,22 @@ export function getSetFeeRateInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpoolsConfig), getAccountMeta(accounts.whirlpool), getAccountMeta(accounts.feeAuthority), ], - programAddress, data: getSetFeeRateInstructionDataEncoder().encode( args as SetFeeRateInstructionDataArgs, ), + programAddress, } as SetFeeRateInstruction< TProgramAddress, TAccountWhirlpoolsConfig, TAccountWhirlpool, TAccountFeeAuthority - >; - - return instruction; + >); } export interface ParsedSetFeeRateInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/setProtocolFeeRate.ts b/clients/orca-whirlpools/src/generated/instructions/setProtocolFeeRate.ts index 9b78e020..5bf77f3f 100644 --- a/clients/orca-whirlpools/src/generated/instructions/setProtocolFeeRate.ts +++ b/clients/orca-whirlpools/src/generated/instructions/setProtocolFeeRate.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -160,24 +160,22 @@ export function getSetProtocolFeeRateInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpoolsConfig), getAccountMeta(accounts.whirlpool), getAccountMeta(accounts.feeAuthority), ], - programAddress, data: getSetProtocolFeeRateInstructionDataEncoder().encode( args as SetProtocolFeeRateInstructionDataArgs, ), + programAddress, } as SetProtocolFeeRateInstruction< TProgramAddress, TAccountWhirlpoolsConfig, TAccountWhirlpool, TAccountFeeAuthority - >; - - return instruction; + >); } export interface ParsedSetProtocolFeeRateInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/setRewardAuthority.ts b/clients/orca-whirlpools/src/generated/instructions/setRewardAuthority.ts index 6f28feed..0ccfa1a6 100644 --- a/clients/orca-whirlpools/src/generated/instructions/setRewardAuthority.ts +++ b/clients/orca-whirlpools/src/generated/instructions/setRewardAuthority.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -163,24 +163,22 @@ export function getSetRewardAuthorityInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpool), getAccountMeta(accounts.rewardAuthority), getAccountMeta(accounts.newRewardAuthority), ], - programAddress, data: getSetRewardAuthorityInstructionDataEncoder().encode( args as SetRewardAuthorityInstructionDataArgs, ), + programAddress, } as SetRewardAuthorityInstruction< TProgramAddress, TAccountWhirlpool, TAccountRewardAuthority, TAccountNewRewardAuthority - >; - - return instruction; + >); } export interface ParsedSetRewardAuthorityInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/setRewardAuthorityBySuperAuthority.ts b/clients/orca-whirlpools/src/generated/instructions/setRewardAuthorityBySuperAuthority.ts index abecac9b..94474e6f 100644 --- a/clients/orca-whirlpools/src/generated/instructions/setRewardAuthorityBySuperAuthority.ts +++ b/clients/orca-whirlpools/src/generated/instructions/setRewardAuthorityBySuperAuthority.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -176,26 +176,24 @@ export function getSetRewardAuthorityBySuperAuthorityInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpoolsConfig), getAccountMeta(accounts.whirlpool), getAccountMeta(accounts.rewardEmissionsSuperAuthority), getAccountMeta(accounts.newRewardAuthority), ], - programAddress, data: getSetRewardAuthorityBySuperAuthorityInstructionDataEncoder().encode( args as SetRewardAuthorityBySuperAuthorityInstructionDataArgs, ), + programAddress, } as SetRewardAuthorityBySuperAuthorityInstruction< TProgramAddress, TAccountWhirlpoolsConfig, TAccountWhirlpool, TAccountRewardEmissionsSuperAuthority, TAccountNewRewardAuthority - >; - - return instruction; + >); } export interface ParsedSetRewardAuthorityBySuperAuthorityInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/setRewardEmissions.ts b/clients/orca-whirlpools/src/generated/instructions/setRewardEmissions.ts index 78c56480..97c3b92e 100644 --- a/clients/orca-whirlpools/src/generated/instructions/setRewardEmissions.ts +++ b/clients/orca-whirlpools/src/generated/instructions/setRewardEmissions.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -167,24 +167,22 @@ export function getSetRewardEmissionsInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpool), getAccountMeta(accounts.rewardAuthority), getAccountMeta(accounts.rewardVault), ], - programAddress, data: getSetRewardEmissionsInstructionDataEncoder().encode( args as SetRewardEmissionsInstructionDataArgs, ), + programAddress, } as SetRewardEmissionsInstruction< TProgramAddress, TAccountWhirlpool, TAccountRewardAuthority, TAccountRewardVault - >; - - return instruction; + >); } export interface ParsedSetRewardEmissionsInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/setRewardEmissionsSuperAuthority.ts b/clients/orca-whirlpools/src/generated/instructions/setRewardEmissionsSuperAuthority.ts index 058b0697..fb5d64f8 100644 --- a/clients/orca-whirlpools/src/generated/instructions/setRewardEmissionsSuperAuthority.ts +++ b/clients/orca-whirlpools/src/generated/instructions/setRewardEmissionsSuperAuthority.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -155,24 +155,22 @@ export function getSetRewardEmissionsSuperAuthorityInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpoolsConfig), getAccountMeta(accounts.rewardEmissionsSuperAuthority), getAccountMeta(accounts.newRewardEmissionsSuperAuthority), ], - programAddress, data: getSetRewardEmissionsSuperAuthorityInstructionDataEncoder().encode( {}, ), + programAddress, } as SetRewardEmissionsSuperAuthorityInstruction< TProgramAddress, TAccountWhirlpoolsConfig, TAccountRewardEmissionsSuperAuthority, TAccountNewRewardEmissionsSuperAuthority - >; - - return instruction; + >); } export interface ParsedSetRewardEmissionsSuperAuthorityInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/setRewardEmissionsV2.ts b/clients/orca-whirlpools/src/generated/instructions/setRewardEmissionsV2.ts index 4a9f8a25..28141192 100644 --- a/clients/orca-whirlpools/src/generated/instructions/setRewardEmissionsV2.ts +++ b/clients/orca-whirlpools/src/generated/instructions/setRewardEmissionsV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -167,24 +167,22 @@ export function getSetRewardEmissionsV2Instruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpool), getAccountMeta(accounts.rewardAuthority), getAccountMeta(accounts.rewardVault), ], - programAddress, data: getSetRewardEmissionsV2InstructionDataEncoder().encode( args as SetRewardEmissionsV2InstructionDataArgs, ), + programAddress, } as SetRewardEmissionsV2Instruction< TProgramAddress, TAccountWhirlpool, TAccountRewardAuthority, TAccountRewardVault - >; - - return instruction; + >); } export interface ParsedSetRewardEmissionsV2Instruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/setTokenBadgeAuthority.ts b/clients/orca-whirlpools/src/generated/instructions/setTokenBadgeAuthority.ts index 64b8dd1c..eaf059d4 100644 --- a/clients/orca-whirlpools/src/generated/instructions/setTokenBadgeAuthority.ts +++ b/clients/orca-whirlpools/src/generated/instructions/setTokenBadgeAuthority.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -166,24 +166,22 @@ export function getSetTokenBadgeAuthorityInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpoolsConfig), getAccountMeta(accounts.whirlpoolsConfigExtension), getAccountMeta(accounts.configExtensionAuthority), getAccountMeta(accounts.newTokenBadgeAuthority), ], - programAddress, data: getSetTokenBadgeAuthorityInstructionDataEncoder().encode({}), + programAddress, } as SetTokenBadgeAuthorityInstruction< TProgramAddress, TAccountWhirlpoolsConfig, TAccountWhirlpoolsConfigExtension, TAccountConfigExtensionAuthority, TAccountNewTokenBadgeAuthority - >; - - return instruction; + >); } export interface ParsedSetTokenBadgeAuthorityInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/swap.ts b/clients/orca-whirlpools/src/generated/instructions/swap.ts index f07000a4..353d0427 100644 --- a/clients/orca-whirlpools/src/generated/instructions/swap.ts +++ b/clients/orca-whirlpools/src/generated/instructions/swap.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -263,7 +263,7 @@ export function getSwapInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.tokenProgram), getAccountMeta(accounts.tokenAuthority), @@ -277,10 +277,10 @@ export function getSwapInstruction< getAccountMeta(accounts.tickArray2), getAccountMeta(accounts.oracle), ], - programAddress, data: getSwapInstructionDataEncoder().encode( args as SwapInstructionDataArgs, ), + programAddress, } as SwapInstruction< TProgramAddress, TAccountTokenProgram, @@ -294,9 +294,7 @@ export function getSwapInstruction< TAccountTickArray1, TAccountTickArray2, TAccountOracle - >; - - return instruction; + >); } export interface ParsedSwapInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/swapV2.ts b/clients/orca-whirlpools/src/generated/instructions/swapV2.ts index 3b4df31b..a5907913 100644 --- a/clients/orca-whirlpools/src/generated/instructions/swapV2.ts +++ b/clients/orca-whirlpools/src/generated/instructions/swapV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -326,7 +326,7 @@ export function getSwapV2Instruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.tokenProgramA), getAccountMeta(accounts.tokenProgramB), @@ -344,10 +344,10 @@ export function getSwapV2Instruction< getAccountMeta(accounts.tickArray2), getAccountMeta(accounts.oracle), ], - programAddress, data: getSwapV2InstructionDataEncoder().encode( args as SwapV2InstructionDataArgs, ), + programAddress, } as SwapV2Instruction< TProgramAddress, TAccountTokenProgramA, @@ -365,9 +365,7 @@ export function getSwapV2Instruction< TAccountTickArray1, TAccountTickArray2, TAccountOracle - >; - - return instruction; + >); } export interface ParsedSwapV2Instruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/twoHopSwap.ts b/clients/orca-whirlpools/src/generated/instructions/twoHopSwap.ts index 445cde8a..c08fa9a7 100644 --- a/clients/orca-whirlpools/src/generated/instructions/twoHopSwap.ts +++ b/clients/orca-whirlpools/src/generated/instructions/twoHopSwap.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -371,7 +371,7 @@ export function getTwoHopSwapInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.tokenProgram), getAccountMeta(accounts.tokenAuthority), @@ -394,10 +394,10 @@ export function getTwoHopSwapInstruction< getAccountMeta(accounts.oracleOne), getAccountMeta(accounts.oracleTwo), ], - programAddress, data: getTwoHopSwapInstructionDataEncoder().encode( args as TwoHopSwapInstructionDataArgs, ), + programAddress, } as TwoHopSwapInstruction< TProgramAddress, TAccountTokenProgram, @@ -420,9 +420,7 @@ export function getTwoHopSwapInstruction< TAccountTickArrayTwo2, TAccountOracleOne, TAccountOracleTwo - >; - - return instruction; + >); } export interface ParsedTwoHopSwapInstruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/twoHopSwapV2.ts b/clients/orca-whirlpools/src/generated/instructions/twoHopSwapV2.ts index 088c7a5e..03738992 100644 --- a/clients/orca-whirlpools/src/generated/instructions/twoHopSwapV2.ts +++ b/clients/orca-whirlpools/src/generated/instructions/twoHopSwapV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -455,7 +455,7 @@ export function getTwoHopSwapV2Instruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpoolOne), getAccountMeta(accounts.whirlpoolTwo), @@ -482,10 +482,10 @@ export function getTwoHopSwapV2Instruction< getAccountMeta(accounts.oracleTwo), getAccountMeta(accounts.memoProgram), ], - programAddress, data: getTwoHopSwapV2InstructionDataEncoder().encode( args as TwoHopSwapV2InstructionDataArgs, ), + programAddress, } as TwoHopSwapV2Instruction< TProgramAddress, TAccountWhirlpoolOne, @@ -512,9 +512,7 @@ export function getTwoHopSwapV2Instruction< TAccountOracleOne, TAccountOracleTwo, TAccountMemoProgram - >; - - return instruction; + >); } export interface ParsedTwoHopSwapV2Instruction< diff --git a/clients/orca-whirlpools/src/generated/instructions/updateFeesAndRewards.ts b/clients/orca-whirlpools/src/generated/instructions/updateFeesAndRewards.ts index dfd0e2cd..70cfd2f1 100644 --- a/clients/orca-whirlpools/src/generated/instructions/updateFeesAndRewards.ts +++ b/clients/orca-whirlpools/src/generated/instructions/updateFeesAndRewards.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -150,24 +150,22 @@ export function getUpdateFeesAndRewardsInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.whirlpool), getAccountMeta(accounts.position), getAccountMeta(accounts.tickArrayLower), getAccountMeta(accounts.tickArrayUpper), ], - programAddress, data: getUpdateFeesAndRewardsInstructionDataEncoder().encode({}), + programAddress, } as UpdateFeesAndRewardsInstruction< TProgramAddress, TAccountWhirlpool, TAccountPosition, TAccountTickArrayLower, TAccountTickArrayUpper - >; - - return instruction; + >); } export interface ParsedUpdateFeesAndRewardsInstruction< diff --git a/clients/orca-whirlpools/src/generated/programs/index.ts b/clients/orca-whirlpools/src/generated/programs/index.ts index b7ceb61b..1f0de40e 100644 --- a/clients/orca-whirlpools/src/generated/programs/index.ts +++ b/clients/orca-whirlpools/src/generated/programs/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/programs/whirlpool.ts b/clients/orca-whirlpools/src/generated/programs/whirlpool.ts index 5b54a5d1..0aeb4025 100644 --- a/clients/orca-whirlpools/src/generated/programs/whirlpool.ts +++ b/clients/orca-whirlpools/src/generated/programs/whirlpool.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/shared/index.ts b/clients/orca-whirlpools/src/generated/shared/index.ts index 7d911d4a..b79b9c6b 100644 --- a/clients/orca-whirlpools/src/generated/shared/index.ts +++ b/clients/orca-whirlpools/src/generated/shared/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/types/accountsType.ts b/clients/orca-whirlpools/src/generated/types/accountsType.ts index 2ae48228..6c652cbe 100644 --- a/clients/orca-whirlpools/src/generated/types/accountsType.ts +++ b/clients/orca-whirlpools/src/generated/types/accountsType.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/types/index.ts b/clients/orca-whirlpools/src/generated/types/index.ts index c6fe95ba..1a7ddfed 100644 --- a/clients/orca-whirlpools/src/generated/types/index.ts +++ b/clients/orca-whirlpools/src/generated/types/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/types/lockType.ts b/clients/orca-whirlpools/src/generated/types/lockType.ts index 496c6cad..da49e75d 100644 --- a/clients/orca-whirlpools/src/generated/types/lockType.ts +++ b/clients/orca-whirlpools/src/generated/types/lockType.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/types/lockTypeLabel.ts b/clients/orca-whirlpools/src/generated/types/lockTypeLabel.ts index 87ad320d..1e65f952 100644 --- a/clients/orca-whirlpools/src/generated/types/lockTypeLabel.ts +++ b/clients/orca-whirlpools/src/generated/types/lockTypeLabel.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/types/openPositionBumps.ts b/clients/orca-whirlpools/src/generated/types/openPositionBumps.ts index 46f66f91..ab2f244e 100644 --- a/clients/orca-whirlpools/src/generated/types/openPositionBumps.ts +++ b/clients/orca-whirlpools/src/generated/types/openPositionBumps.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/types/openPositionWithMetadataBumps.ts b/clients/orca-whirlpools/src/generated/types/openPositionWithMetadataBumps.ts index 0ba3b40b..74c7fad4 100644 --- a/clients/orca-whirlpools/src/generated/types/openPositionWithMetadataBumps.ts +++ b/clients/orca-whirlpools/src/generated/types/openPositionWithMetadataBumps.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/types/positionRewardInfo.ts b/clients/orca-whirlpools/src/generated/types/positionRewardInfo.ts index d8130322..50aaacda 100644 --- a/clients/orca-whirlpools/src/generated/types/positionRewardInfo.ts +++ b/clients/orca-whirlpools/src/generated/types/positionRewardInfo.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/types/remainingAccountsInfo.ts b/clients/orca-whirlpools/src/generated/types/remainingAccountsInfo.ts index f84ca384..659bcc64 100644 --- a/clients/orca-whirlpools/src/generated/types/remainingAccountsInfo.ts +++ b/clients/orca-whirlpools/src/generated/types/remainingAccountsInfo.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/types/remainingAccountsSlice.ts b/clients/orca-whirlpools/src/generated/types/remainingAccountsSlice.ts index 554d0ac9..5f5dda31 100644 --- a/clients/orca-whirlpools/src/generated/types/remainingAccountsSlice.ts +++ b/clients/orca-whirlpools/src/generated/types/remainingAccountsSlice.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/types/tick.ts b/clients/orca-whirlpools/src/generated/types/tick.ts index f4460ffb..5bbf08ce 100644 --- a/clients/orca-whirlpools/src/generated/types/tick.ts +++ b/clients/orca-whirlpools/src/generated/types/tick.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/types/whirlpoolBumps.ts b/clients/orca-whirlpools/src/generated/types/whirlpoolBumps.ts index 27c840ed..f4d95f9a 100644 --- a/clients/orca-whirlpools/src/generated/types/whirlpoolBumps.ts +++ b/clients/orca-whirlpools/src/generated/types/whirlpoolBumps.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/orca-whirlpools/src/generated/types/whirlpoolRewardInfo.ts b/clients/orca-whirlpools/src/generated/types/whirlpoolRewardInfo.ts index 9fa63cc0..c4c5b5cc 100644 --- a/clients/orca-whirlpools/src/generated/types/whirlpoolRewardInfo.ts +++ b/clients/orca-whirlpools/src/generated/types/whirlpoolRewardInfo.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/accounts/index.ts b/clients/quarry/src/generated/accounts/index.ts index 7f3e224e..1304eeeb 100644 --- a/clients/quarry/src/generated/accounts/index.ts +++ b/clients/quarry/src/generated/accounts/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/accounts/mergeMiner.ts b/clients/quarry/src/generated/accounts/mergeMiner.ts index 7648fd5c..6c1abbff 100644 --- a/clients/quarry/src/generated/accounts/mergeMiner.ts +++ b/clients/quarry/src/generated/accounts/mergeMiner.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/accounts/mergePool.ts b/clients/quarry/src/generated/accounts/mergePool.ts index 2c3fb93f..a491ed2e 100644 --- a/clients/quarry/src/generated/accounts/mergePool.ts +++ b/clients/quarry/src/generated/accounts/mergePool.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/accounts/miner.ts b/clients/quarry/src/generated/accounts/miner.ts index f3cfaf9f..ba1344d2 100644 --- a/clients/quarry/src/generated/accounts/miner.ts +++ b/clients/quarry/src/generated/accounts/miner.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/accounts/mintWrapper.ts b/clients/quarry/src/generated/accounts/mintWrapper.ts index 2fccda2b..74bb9d57 100644 --- a/clients/quarry/src/generated/accounts/mintWrapper.ts +++ b/clients/quarry/src/generated/accounts/mintWrapper.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/accounts/minter.ts b/clients/quarry/src/generated/accounts/minter.ts index 5c88e939..7a9472c7 100644 --- a/clients/quarry/src/generated/accounts/minter.ts +++ b/clients/quarry/src/generated/accounts/minter.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/accounts/operator.ts b/clients/quarry/src/generated/accounts/operator.ts index 2822395d..393a8d67 100644 --- a/clients/quarry/src/generated/accounts/operator.ts +++ b/clients/quarry/src/generated/accounts/operator.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/accounts/quarry.ts b/clients/quarry/src/generated/accounts/quarry.ts index b9e751d3..426ed670 100644 --- a/clients/quarry/src/generated/accounts/quarry.ts +++ b/clients/quarry/src/generated/accounts/quarry.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/accounts/redeemer.ts b/clients/quarry/src/generated/accounts/redeemer.ts index baff455d..8d002040 100644 --- a/clients/quarry/src/generated/accounts/redeemer.ts +++ b/clients/quarry/src/generated/accounts/redeemer.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/accounts/registry.ts b/clients/quarry/src/generated/accounts/registry.ts index 13662451..9498af8c 100644 --- a/clients/quarry/src/generated/accounts/registry.ts +++ b/clients/quarry/src/generated/accounts/registry.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/accounts/rewarder.ts b/clients/quarry/src/generated/accounts/rewarder.ts index ec277a90..268f1641 100644 --- a/clients/quarry/src/generated/accounts/rewarder.ts +++ b/clients/quarry/src/generated/accounts/rewarder.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/errors/index.ts b/clients/quarry/src/generated/errors/index.ts index 952307cd..da7409d5 100644 --- a/clients/quarry/src/generated/errors/index.ts +++ b/clients/quarry/src/generated/errors/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/errors/quarryMergeMine.ts b/clients/quarry/src/generated/errors/quarryMergeMine.ts index c8a41be8..c8f8fc96 100644 --- a/clients/quarry/src/generated/errors/quarryMergeMine.ts +++ b/clients/quarry/src/generated/errors/quarryMergeMine.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/errors/quarryMine.ts b/clients/quarry/src/generated/errors/quarryMine.ts index 436fe2d6..696c4d83 100644 --- a/clients/quarry/src/generated/errors/quarryMine.ts +++ b/clients/quarry/src/generated/errors/quarryMine.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/errors/quarryMintWrapper.ts b/clients/quarry/src/generated/errors/quarryMintWrapper.ts index 0f34dffb..397b3ecc 100644 --- a/clients/quarry/src/generated/errors/quarryMintWrapper.ts +++ b/clients/quarry/src/generated/errors/quarryMintWrapper.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/errors/quarryOperator.ts b/clients/quarry/src/generated/errors/quarryOperator.ts index 49344877..c1b6c517 100644 --- a/clients/quarry/src/generated/errors/quarryOperator.ts +++ b/clients/quarry/src/generated/errors/quarryOperator.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/errors/quarryRedeemer.ts b/clients/quarry/src/generated/errors/quarryRedeemer.ts index 667792c6..861b6e1e 100644 --- a/clients/quarry/src/generated/errors/quarryRedeemer.ts +++ b/clients/quarry/src/generated/errors/quarryRedeemer.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/index.ts b/clients/quarry/src/generated/index.ts index ceeafbb9..975e985c 100644 --- a/clients/quarry/src/generated/index.ts +++ b/clients/quarry/src/generated/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/instructions/acceptAdmin.ts b/clients/quarry/src/generated/instructions/acceptAdmin.ts index 840516bc..bfb18eca 100644 --- a/clients/quarry/src/generated/instructions/acceptAdmin.ts +++ b/clients/quarry/src/generated/instructions/acceptAdmin.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -129,20 +129,18 @@ export function getAcceptAdminInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.mintWrapper), getAccountMeta(accounts.pendingAdmin), ], - programAddress, data: getAcceptAdminInstructionDataEncoder().encode({}), + programAddress, } as AcceptAdminInstruction< TProgramAddress, TAccountMintWrapper, TAccountPendingAdmin - >; - - return instruction; + >); } export interface ParsedAcceptAdminInstruction< @@ -177,10 +175,7 @@ export function parseAcceptAdminInstruction< }; return { programAddress: instruction.programAddress, - accounts: { - mintWrapper: getNextAccount(), - pendingAdmin: getNextAccount(), - }, + accounts: { mintWrapper: getNextAccount(), pendingAdmin: getNextAccount() }, data: getAcceptAdminInstructionDataDecoder().decode(instruction.data), }; } diff --git a/clients/quarry/src/generated/instructions/acceptAuthority.ts b/clients/quarry/src/generated/instructions/acceptAuthority.ts index ae5fe94a..36f7f6e7 100644 --- a/clients/quarry/src/generated/instructions/acceptAuthority.ts +++ b/clients/quarry/src/generated/instructions/acceptAuthority.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -127,20 +127,18 @@ export function getAcceptAuthorityInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.authority), getAccountMeta(accounts.rewarder), ], - programAddress, data: getAcceptAuthorityInstructionDataEncoder().encode({}), + programAddress, } as AcceptAuthorityInstruction< TProgramAddress, TAccountAuthority, TAccountRewarder - >; - - return instruction; + >); } export interface ParsedAcceptAuthorityInstruction< @@ -175,10 +173,7 @@ export function parseAcceptAuthorityInstruction< }; return { programAddress: instruction.programAddress, - accounts: { - authority: getNextAccount(), - rewarder: getNextAccount(), - }, + accounts: { authority: getNextAccount(), rewarder: getNextAccount() }, data: getAcceptAuthorityInstructionDataDecoder().decode(instruction.data), }; } diff --git a/clients/quarry/src/generated/instructions/claimRewards.ts b/clients/quarry/src/generated/instructions/claimRewards.ts index bce334e6..a8732195 100644 --- a/clients/quarry/src/generated/instructions/claimRewards.ts +++ b/clients/quarry/src/generated/instructions/claimRewards.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -274,7 +274,7 @@ export function getClaimRewardsInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.mintWrapper), getAccountMeta(accounts.mintWrapperProgram), @@ -290,8 +290,8 @@ export function getClaimRewardsInstruction< getAccountMeta(accounts.tokenProgram), getAccountMeta(accounts.rewarder), ], - programAddress, data: getClaimRewardsInstructionDataEncoder().encode({}), + programAddress, } as ClaimRewardsInstruction< TProgramAddress, TAccountMintWrapper, @@ -307,9 +307,7 @@ export function getClaimRewardsInstruction< TAccountUnusedTokenAccount, TAccountTokenProgram, TAccountRewarder - >; - - return instruction; + >); } export interface ParsedClaimRewardsInstruction< diff --git a/clients/quarry/src/generated/instructions/claimRewardsMM.ts b/clients/quarry/src/generated/instructions/claimRewardsMM.ts index e7021392..cfd354f1 100644 --- a/clients/quarry/src/generated/instructions/claimRewardsMM.ts +++ b/clients/quarry/src/generated/instructions/claimRewardsMM.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -291,7 +291,7 @@ export function getClaimRewardsMMInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.mintWrapper), getAccountMeta(accounts.mintWrapperProgram), @@ -309,8 +309,8 @@ export function getClaimRewardsMMInstruction< getAccountMeta(accounts.tokenProgram), getAccountMeta(accounts.mineProgram), ], - programAddress, data: getClaimRewardsMMInstructionDataEncoder().encode({}), + programAddress, } as ClaimRewardsMMInstruction< TProgramAddress, TAccountMintWrapper, @@ -328,9 +328,7 @@ export function getClaimRewardsMMInstruction< TAccountMinerVault, TAccountTokenProgram, TAccountMineProgram - >; - - return instruction; + >); } export interface ParsedClaimRewardsMMInstruction< diff --git a/clients/quarry/src/generated/instructions/claimRewardsV2.ts b/clients/quarry/src/generated/instructions/claimRewardsV2.ts index c69cd76d..60191044 100644 --- a/clients/quarry/src/generated/instructions/claimRewardsV2.ts +++ b/clients/quarry/src/generated/instructions/claimRewardsV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -247,7 +247,7 @@ export function getClaimRewardsV2Instruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.mintWrapper), getAccountMeta(accounts.mintWrapperProgram), @@ -261,8 +261,8 @@ export function getClaimRewardsV2Instruction< getAccountMeta(accounts.tokenProgram), getAccountMeta(accounts.rewarder), ], - programAddress, data: getClaimRewardsV2InstructionDataEncoder().encode({}), + programAddress, } as ClaimRewardsV2Instruction< TProgramAddress, TAccountMintWrapper, @@ -276,9 +276,7 @@ export function getClaimRewardsV2Instruction< TAccountQuarry, TAccountTokenProgram, TAccountRewarder - >; - - return instruction; + >); } export interface ParsedClaimRewardsV2Instruction< diff --git a/clients/quarry/src/generated/instructions/createMiner.ts b/clients/quarry/src/generated/instructions/createMiner.ts index bde12fd0..2b457429 100644 --- a/clients/quarry/src/generated/instructions/createMiner.ts +++ b/clients/quarry/src/generated/instructions/createMiner.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -247,7 +247,7 @@ export async function getCreateMinerInstructionAsync< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.authority), getAccountMeta(accounts.miner), @@ -259,10 +259,10 @@ export async function getCreateMinerInstructionAsync< getAccountMeta(accounts.minerVault), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getCreateMinerInstructionDataEncoder().encode( args as CreateMinerInstructionDataArgs, ), + programAddress, } as CreateMinerInstruction< TProgramAddress, TAccountAuthority, @@ -274,9 +274,7 @@ export async function getCreateMinerInstructionAsync< TAccountTokenMint, TAccountMinerVault, TAccountTokenProgram - >; - - return instruction; + >); } export interface CreateMinerInput< @@ -372,7 +370,7 @@ export function getCreateMinerInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.authority), getAccountMeta(accounts.miner), @@ -384,10 +382,10 @@ export function getCreateMinerInstruction< getAccountMeta(accounts.minerVault), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getCreateMinerInstructionDataEncoder().encode( args as CreateMinerInstructionDataArgs, ), + programAddress, } as CreateMinerInstruction< TProgramAddress, TAccountAuthority, @@ -399,9 +397,7 @@ export function getCreateMinerInstruction< TAccountTokenMint, TAccountMinerVault, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedCreateMinerInstruction< diff --git a/clients/quarry/src/generated/instructions/createMinerV2.ts b/clients/quarry/src/generated/instructions/createMinerV2.ts index bb25a4f7..df56378f 100644 --- a/clients/quarry/src/generated/instructions/createMinerV2.ts +++ b/clients/quarry/src/generated/instructions/createMinerV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -234,7 +234,7 @@ export async function getCreateMinerV2InstructionAsync< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.authority), getAccountMeta(accounts.miner), @@ -246,8 +246,8 @@ export async function getCreateMinerV2InstructionAsync< getAccountMeta(accounts.minerVault), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getCreateMinerV2InstructionDataEncoder().encode({}), + programAddress, } as CreateMinerV2Instruction< TProgramAddress, TAccountAuthority, @@ -259,9 +259,7 @@ export async function getCreateMinerV2InstructionAsync< TAccountTokenMint, TAccountMinerVault, TAccountTokenProgram - >; - - return instruction; + >); } export interface CreateMinerV2Input< @@ -353,7 +351,7 @@ export function getCreateMinerV2Instruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.authority), getAccountMeta(accounts.miner), @@ -365,8 +363,8 @@ export function getCreateMinerV2Instruction< getAccountMeta(accounts.minerVault), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getCreateMinerV2InstructionDataEncoder().encode({}), + programAddress, } as CreateMinerV2Instruction< TProgramAddress, TAccountAuthority, @@ -378,9 +376,7 @@ export function getCreateMinerV2Instruction< TAccountTokenMint, TAccountMinerVault, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedCreateMinerV2Instruction< diff --git a/clients/quarry/src/generated/instructions/createOperator.ts b/clients/quarry/src/generated/instructions/createOperator.ts index 4c99cc15..3d233e6d 100644 --- a/clients/quarry/src/generated/instructions/createOperator.ts +++ b/clients/quarry/src/generated/instructions/createOperator.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -229,7 +229,7 @@ export async function getCreateOperatorInstructionAsync< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.base), getAccountMeta(accounts.operator), @@ -239,10 +239,10 @@ export async function getCreateOperatorInstructionAsync< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.quarryMineProgram), ], - programAddress, data: getCreateOperatorInstructionDataEncoder().encode( args as CreateOperatorInstructionDataArgs, ), + programAddress, } as CreateOperatorInstruction< TProgramAddress, TAccountBase, @@ -252,9 +252,7 @@ export async function getCreateOperatorInstructionAsync< TAccountPayer, TAccountSystemProgram, TAccountQuarryMineProgram - >; - - return instruction; + >); } export interface CreateOperatorInput< @@ -342,7 +340,7 @@ export function getCreateOperatorInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.base), getAccountMeta(accounts.operator), @@ -352,10 +350,10 @@ export function getCreateOperatorInstruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.quarryMineProgram), ], - programAddress, data: getCreateOperatorInstructionDataEncoder().encode( args as CreateOperatorInstructionDataArgs, ), + programAddress, } as CreateOperatorInstruction< TProgramAddress, TAccountBase, @@ -365,9 +363,7 @@ export function getCreateOperatorInstruction< TAccountPayer, TAccountSystemProgram, TAccountQuarryMineProgram - >; - - return instruction; + >); } export interface ParsedCreateOperatorInstruction< diff --git a/clients/quarry/src/generated/instructions/createOperatorV2.ts b/clients/quarry/src/generated/instructions/createOperatorV2.ts index cd230c23..c6183214 100644 --- a/clients/quarry/src/generated/instructions/createOperatorV2.ts +++ b/clients/quarry/src/generated/instructions/createOperatorV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -215,7 +215,7 @@ export async function getCreateOperatorV2InstructionAsync< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.base), getAccountMeta(accounts.operator), @@ -225,8 +225,8 @@ export async function getCreateOperatorV2InstructionAsync< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.quarryMineProgram), ], - programAddress, data: getCreateOperatorV2InstructionDataEncoder().encode({}), + programAddress, } as CreateOperatorV2Instruction< TProgramAddress, TAccountBase, @@ -236,9 +236,7 @@ export async function getCreateOperatorV2InstructionAsync< TAccountPayer, TAccountSystemProgram, TAccountQuarryMineProgram - >; - - return instruction; + >); } export interface CreateOperatorV2Input< @@ -322,7 +320,7 @@ export function getCreateOperatorV2Instruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.base), getAccountMeta(accounts.operator), @@ -332,8 +330,8 @@ export function getCreateOperatorV2Instruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.quarryMineProgram), ], - programAddress, data: getCreateOperatorV2InstructionDataEncoder().encode({}), + programAddress, } as CreateOperatorV2Instruction< TProgramAddress, TAccountBase, @@ -343,9 +341,7 @@ export function getCreateOperatorV2Instruction< TAccountPayer, TAccountSystemProgram, TAccountQuarryMineProgram - >; - - return instruction; + >); } export interface ParsedCreateOperatorV2Instruction< diff --git a/clients/quarry/src/generated/instructions/createQuarry.ts b/clients/quarry/src/generated/instructions/createQuarry.ts index 5a264acf..688687a6 100644 --- a/clients/quarry/src/generated/instructions/createQuarry.ts +++ b/clients/quarry/src/generated/instructions/createQuarry.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -205,7 +205,7 @@ export function getCreateQuarryInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.quarry), getAccountMeta(accounts.authority), @@ -215,10 +215,10 @@ export function getCreateQuarryInstruction< getAccountMeta(accounts.unusedAccount), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getCreateQuarryInstructionDataEncoder().encode( args as CreateQuarryInstructionDataArgs, ), + programAddress, } as CreateQuarryInstruction< TProgramAddress, TAccountQuarry, @@ -228,9 +228,7 @@ export function getCreateQuarryInstruction< TAccountPayer, TAccountUnusedAccount, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedCreateQuarryInstruction< diff --git a/clients/quarry/src/generated/instructions/createQuarryV2.ts b/clients/quarry/src/generated/instructions/createQuarryV2.ts index 5d893c6e..2029afdb 100644 --- a/clients/quarry/src/generated/instructions/createQuarryV2.ts +++ b/clients/quarry/src/generated/instructions/createQuarryV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -181,7 +181,7 @@ export function getCreateQuarryV2Instruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.quarry), getAccountMeta(accounts.authority), @@ -190,8 +190,8 @@ export function getCreateQuarryV2Instruction< getAccountMeta(accounts.payer), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getCreateQuarryV2InstructionDataEncoder().encode({}), + programAddress, } as CreateQuarryV2Instruction< TProgramAddress, TAccountQuarry, @@ -200,9 +200,7 @@ export function getCreateQuarryV2Instruction< TAccountTokenMint, TAccountPayer, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedCreateQuarryV2Instruction< diff --git a/clients/quarry/src/generated/instructions/createRedeemer.ts b/clients/quarry/src/generated/instructions/createRedeemer.ts index d0eb8e31..1179994a 100644 --- a/clients/quarry/src/generated/instructions/createRedeemer.ts +++ b/clients/quarry/src/generated/instructions/createRedeemer.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -202,7 +202,7 @@ export async function getCreateRedeemerInstructionAsync< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.redeemer), getAccountMeta(accounts.iouMint), @@ -210,10 +210,10 @@ export async function getCreateRedeemerInstructionAsync< getAccountMeta(accounts.payer), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getCreateRedeemerInstructionDataEncoder().encode( args as CreateRedeemerInstructionDataArgs, ), + programAddress, } as CreateRedeemerInstruction< TProgramAddress, TAccountRedeemer, @@ -221,9 +221,7 @@ export async function getCreateRedeemerInstructionAsync< TAccountRedemptionMint, TAccountPayer, TAccountSystemProgram - >; - - return instruction; + >); } export interface CreateRedeemerInput< @@ -292,7 +290,7 @@ export function getCreateRedeemerInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.redeemer), getAccountMeta(accounts.iouMint), @@ -300,10 +298,10 @@ export function getCreateRedeemerInstruction< getAccountMeta(accounts.payer), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getCreateRedeemerInstructionDataEncoder().encode( args as CreateRedeemerInstructionDataArgs, ), + programAddress, } as CreateRedeemerInstruction< TProgramAddress, TAccountRedeemer, @@ -311,9 +309,7 @@ export function getCreateRedeemerInstruction< TAccountRedemptionMint, TAccountPayer, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedCreateRedeemerInstruction< diff --git a/clients/quarry/src/generated/instructions/delegateCreateQuarry.ts b/clients/quarry/src/generated/instructions/delegateCreateQuarry.ts index be24aa87..51bf50b1 100644 --- a/clients/quarry/src/generated/instructions/delegateCreateQuarry.ts +++ b/clients/quarry/src/generated/instructions/delegateCreateQuarry.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -237,7 +237,7 @@ export function getDelegateCreateQuarryInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.operator), getAccountMeta(accounts.delegate), @@ -249,10 +249,10 @@ export function getDelegateCreateQuarryInstruction< getAccountMeta(accounts.unusedAccount), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getDelegateCreateQuarryInstructionDataEncoder().encode( args as DelegateCreateQuarryInstructionDataArgs, ), + programAddress, } as DelegateCreateQuarryInstruction< TProgramAddress, TAccountOperator, @@ -264,9 +264,7 @@ export function getDelegateCreateQuarryInstruction< TAccountPayer, TAccountUnusedAccount, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedDelegateCreateQuarryInstruction< diff --git a/clients/quarry/src/generated/instructions/delegateCreateQuarryV2.ts b/clients/quarry/src/generated/instructions/delegateCreateQuarryV2.ts index 7e42f738..b4990077 100644 --- a/clients/quarry/src/generated/instructions/delegateCreateQuarryV2.ts +++ b/clients/quarry/src/generated/instructions/delegateCreateQuarryV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -214,7 +214,7 @@ export function getDelegateCreateQuarryV2Instruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.operator), getAccountMeta(accounts.delegate), @@ -225,8 +225,8 @@ export function getDelegateCreateQuarryV2Instruction< getAccountMeta(accounts.payer), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getDelegateCreateQuarryV2InstructionDataEncoder().encode({}), + programAddress, } as DelegateCreateQuarryV2Instruction< TProgramAddress, TAccountOperator, @@ -237,9 +237,7 @@ export function getDelegateCreateQuarryV2Instruction< TAccountTokenMint, TAccountPayer, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedDelegateCreateQuarryV2Instruction< diff --git a/clients/quarry/src/generated/instructions/delegateSetAnnualRewards.ts b/clients/quarry/src/generated/instructions/delegateSetAnnualRewards.ts index e5c8b114..7cea740f 100644 --- a/clients/quarry/src/generated/instructions/delegateSetAnnualRewards.ts +++ b/clients/quarry/src/generated/instructions/delegateSetAnnualRewards.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -179,26 +179,24 @@ export function getDelegateSetAnnualRewardsInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.operator), getAccountMeta(accounts.delegate), getAccountMeta(accounts.rewarder), getAccountMeta(accounts.quarryMineProgram), ], - programAddress, data: getDelegateSetAnnualRewardsInstructionDataEncoder().encode( args as DelegateSetAnnualRewardsInstructionDataArgs, ), + programAddress, } as DelegateSetAnnualRewardsInstruction< TProgramAddress, TAccountOperator, TAccountDelegate, TAccountRewarder, TAccountQuarryMineProgram - >; - - return instruction; + >); } export interface ParsedDelegateSetAnnualRewardsInstruction< diff --git a/clients/quarry/src/generated/instructions/delegateSetFamine.ts b/clients/quarry/src/generated/instructions/delegateSetFamine.ts index dca87ffa..a923bd0b 100644 --- a/clients/quarry/src/generated/instructions/delegateSetFamine.ts +++ b/clients/quarry/src/generated/instructions/delegateSetFamine.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -186,7 +186,7 @@ export function getDelegateSetFamineInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.operator), getAccountMeta(accounts.delegate), @@ -194,10 +194,10 @@ export function getDelegateSetFamineInstruction< getAccountMeta(accounts.quarryMineProgram), getAccountMeta(accounts.quarry), ], - programAddress, data: getDelegateSetFamineInstructionDataEncoder().encode( args as DelegateSetFamineInstructionDataArgs, ), + programAddress, } as DelegateSetFamineInstruction< TProgramAddress, TAccountOperator, @@ -205,9 +205,7 @@ export function getDelegateSetFamineInstruction< TAccountRewarder, TAccountQuarryMineProgram, TAccountQuarry - >; - - return instruction; + >); } export interface ParsedDelegateSetFamineInstruction< diff --git a/clients/quarry/src/generated/instructions/delegateSetRewardsShare.ts b/clients/quarry/src/generated/instructions/delegateSetRewardsShare.ts index 31d4abee..59ad5e21 100644 --- a/clients/quarry/src/generated/instructions/delegateSetRewardsShare.ts +++ b/clients/quarry/src/generated/instructions/delegateSetRewardsShare.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -189,7 +189,7 @@ export function getDelegateSetRewardsShareInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.operator), getAccountMeta(accounts.delegate), @@ -197,10 +197,10 @@ export function getDelegateSetRewardsShareInstruction< getAccountMeta(accounts.quarryMineProgram), getAccountMeta(accounts.quarry), ], - programAddress, data: getDelegateSetRewardsShareInstructionDataEncoder().encode( args as DelegateSetRewardsShareInstructionDataArgs, ), + programAddress, } as DelegateSetRewardsShareInstruction< TProgramAddress, TAccountOperator, @@ -208,9 +208,7 @@ export function getDelegateSetRewardsShareInstruction< TAccountRewarder, TAccountQuarryMineProgram, TAccountQuarry - >; - - return instruction; + >); } export interface ParsedDelegateSetRewardsShareInstruction< diff --git a/clients/quarry/src/generated/instructions/extractFees.ts b/clients/quarry/src/generated/instructions/extractFees.ts index 2022a4ca..44610013 100644 --- a/clients/quarry/src/generated/instructions/extractFees.ts +++ b/clients/quarry/src/generated/instructions/extractFees.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -162,24 +162,22 @@ export function getExtractFeesInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.rewarder), getAccountMeta(accounts.claimFeeTokenAccount), getAccountMeta(accounts.feeToTokenAccount), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getExtractFeesInstructionDataEncoder().encode({}), + programAddress, } as ExtractFeesInstruction< TProgramAddress, TAccountRewarder, TAccountClaimFeeTokenAccount, TAccountFeeToTokenAccount, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedExtractFeesInstruction< diff --git a/clients/quarry/src/generated/instructions/index.ts b/clients/quarry/src/generated/instructions/index.ts index f94bd799..4bc3d155 100644 --- a/clients/quarry/src/generated/instructions/index.ts +++ b/clients/quarry/src/generated/instructions/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/instructions/initMergeMiner.ts b/clients/quarry/src/generated/instructions/initMergeMiner.ts index a84d8869..25df80ce 100644 --- a/clients/quarry/src/generated/instructions/initMergeMiner.ts +++ b/clients/quarry/src/generated/instructions/initMergeMiner.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -199,7 +199,7 @@ export async function getInitMergeMinerInstructionAsync< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.pool), getAccountMeta(accounts.owner), @@ -207,10 +207,10 @@ export async function getInitMergeMinerInstructionAsync< getAccountMeta(accounts.payer), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getInitMergeMinerInstructionDataEncoder().encode( args as InitMergeMinerInstructionDataArgs, ), + programAddress, } as InitMergeMinerInstruction< TProgramAddress, TAccountPool, @@ -218,9 +218,7 @@ export async function getInitMergeMinerInstructionAsync< TAccountMm, TAccountPayer, TAccountSystemProgram - >; - - return instruction; + >); } export interface InitMergeMinerInput< @@ -289,7 +287,7 @@ export function getInitMergeMinerInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.pool), getAccountMeta(accounts.owner), @@ -297,10 +295,10 @@ export function getInitMergeMinerInstruction< getAccountMeta(accounts.payer), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getInitMergeMinerInstructionDataEncoder().encode( args as InitMergeMinerInstructionDataArgs, ), + programAddress, } as InitMergeMinerInstruction< TProgramAddress, TAccountPool, @@ -308,9 +306,7 @@ export function getInitMergeMinerInstruction< TAccountMm, TAccountPayer, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedInitMergeMinerInstruction< diff --git a/clients/quarry/src/generated/instructions/initMergeMinerV2.ts b/clients/quarry/src/generated/instructions/initMergeMinerV2.ts index d1ac0076..f386312e 100644 --- a/clients/quarry/src/generated/instructions/initMergeMinerV2.ts +++ b/clients/quarry/src/generated/instructions/initMergeMinerV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -186,7 +186,7 @@ export async function getInitMergeMinerV2InstructionAsync< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.pool), getAccountMeta(accounts.owner), @@ -194,8 +194,8 @@ export async function getInitMergeMinerV2InstructionAsync< getAccountMeta(accounts.payer), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getInitMergeMinerV2InstructionDataEncoder().encode({}), + programAddress, } as InitMergeMinerV2Instruction< TProgramAddress, TAccountPool, @@ -203,9 +203,7 @@ export async function getInitMergeMinerV2InstructionAsync< TAccountMm, TAccountPayer, TAccountSystemProgram - >; - - return instruction; + >); } export interface InitMergeMinerV2Input< @@ -270,7 +268,7 @@ export function getInitMergeMinerV2Instruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.pool), getAccountMeta(accounts.owner), @@ -278,8 +276,8 @@ export function getInitMergeMinerV2Instruction< getAccountMeta(accounts.payer), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getInitMergeMinerV2InstructionDataEncoder().encode({}), + programAddress, } as InitMergeMinerV2Instruction< TProgramAddress, TAccountPool, @@ -287,9 +285,7 @@ export function getInitMergeMinerV2Instruction< TAccountMm, TAccountPayer, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedInitMergeMinerV2Instruction< diff --git a/clients/quarry/src/generated/instructions/initMinerMM.ts b/clients/quarry/src/generated/instructions/initMinerMM.ts index f8da5ed8..6846a4ee 100644 --- a/clients/quarry/src/generated/instructions/initMinerMM.ts +++ b/clients/quarry/src/generated/instructions/initMinerMM.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -254,7 +254,7 @@ export function getInitMinerMMInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.pool), getAccountMeta(accounts.mm), @@ -268,10 +268,10 @@ export function getInitMinerMMInstruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getInitMinerMMInstructionDataEncoder().encode( args as InitMinerMMInstructionDataArgs, ), + programAddress, } as InitMinerMMInstruction< TProgramAddress, TAccountPool, @@ -285,9 +285,7 @@ export function getInitMinerMMInstruction< TAccountMineProgram, TAccountSystemProgram, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedInitMinerMMInstruction< diff --git a/clients/quarry/src/generated/instructions/initMinerMMV2.ts b/clients/quarry/src/generated/instructions/initMinerMMV2.ts index ce9e3823..e699e196 100644 --- a/clients/quarry/src/generated/instructions/initMinerMMV2.ts +++ b/clients/quarry/src/generated/instructions/initMinerMMV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -240,7 +240,7 @@ export function getInitMinerMMV2Instruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.pool), getAccountMeta(accounts.mm), @@ -254,8 +254,8 @@ export function getInitMinerMMV2Instruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getInitMinerMMV2InstructionDataEncoder().encode({}), + programAddress, } as InitMinerMMV2Instruction< TProgramAddress, TAccountPool, @@ -269,9 +269,7 @@ export function getInitMinerMMV2Instruction< TAccountMineProgram, TAccountSystemProgram, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedInitMinerMMV2Instruction< diff --git a/clients/quarry/src/generated/instructions/minterUpdate.ts b/clients/quarry/src/generated/instructions/minterUpdate.ts index f534d7d5..bc0f485a 100644 --- a/clients/quarry/src/generated/instructions/minterUpdate.ts +++ b/clients/quarry/src/generated/instructions/minterUpdate.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -151,24 +151,22 @@ export function getMinterUpdateInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.mintWrapper), getAccountMeta(accounts.admin), getAccountMeta(accounts.minter), ], - programAddress, data: getMinterUpdateInstructionDataEncoder().encode( args as MinterUpdateInstructionDataArgs, ), + programAddress, } as MinterUpdateInstruction< TProgramAddress, TAccountMintWrapper, TAccountAdmin, TAccountMinter - >; - - return instruction; + >); } export interface ParsedMinterUpdateInstruction< diff --git a/clients/quarry/src/generated/instructions/newMinter.ts b/clients/quarry/src/generated/instructions/newMinter.ts index 6ab2d621..896cc631 100644 --- a/clients/quarry/src/generated/instructions/newMinter.ts +++ b/clients/quarry/src/generated/instructions/newMinter.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -197,7 +197,7 @@ export function getNewMinterInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.mintWrapper), getAccountMeta(accounts.admin), @@ -206,10 +206,10 @@ export function getNewMinterInstruction< getAccountMeta(accounts.payer), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getNewMinterInstructionDataEncoder().encode( args as NewMinterInstructionDataArgs, ), + programAddress, } as NewMinterInstruction< TProgramAddress, TAccountMintWrapper, @@ -218,9 +218,7 @@ export function getNewMinterInstruction< TAccountMinter, TAccountPayer, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedNewMinterInstruction< diff --git a/clients/quarry/src/generated/instructions/newMinterV2.ts b/clients/quarry/src/generated/instructions/newMinterV2.ts index dd77ea2d..e7d6f392 100644 --- a/clients/quarry/src/generated/instructions/newMinterV2.ts +++ b/clients/quarry/src/generated/instructions/newMinterV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -186,7 +186,7 @@ export function getNewMinterV2Instruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.mintWrapper), getAccountMeta(accounts.admin), @@ -195,8 +195,8 @@ export function getNewMinterV2Instruction< getAccountMeta(accounts.payer), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getNewMinterV2InstructionDataEncoder().encode({}), + programAddress, } as NewMinterV2Instruction< TProgramAddress, TAccountMintWrapper, @@ -205,9 +205,7 @@ export function getNewMinterV2Instruction< TAccountMinter, TAccountPayer, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedNewMinterV2Instruction< diff --git a/clients/quarry/src/generated/instructions/newPool.ts b/clients/quarry/src/generated/instructions/newPool.ts index b8391ca1..e4c5537c 100644 --- a/clients/quarry/src/generated/instructions/newPool.ts +++ b/clients/quarry/src/generated/instructions/newPool.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -247,7 +247,7 @@ export async function getNewPoolInstructionAsync< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.pool), getAccountMeta(accounts.primaryMint), @@ -257,10 +257,10 @@ export async function getNewPoolInstructionAsync< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ], - programAddress, data: getNewPoolInstructionDataEncoder().encode( args as NewPoolInstructionDataArgs, ), + programAddress, } as NewPoolInstruction< TProgramAddress, TAccountPool, @@ -270,9 +270,7 @@ export async function getNewPoolInstructionAsync< TAccountTokenProgram, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface NewPoolInput< @@ -362,7 +360,7 @@ export function getNewPoolInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.pool), getAccountMeta(accounts.primaryMint), @@ -372,10 +370,10 @@ export function getNewPoolInstruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ], - programAddress, data: getNewPoolInstructionDataEncoder().encode( args as NewPoolInstructionDataArgs, ), + programAddress, } as NewPoolInstruction< TProgramAddress, TAccountPool, @@ -385,9 +383,7 @@ export function getNewPoolInstruction< TAccountTokenProgram, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedNewPoolInstruction< diff --git a/clients/quarry/src/generated/instructions/newPoolV2.ts b/clients/quarry/src/generated/instructions/newPoolV2.ts index 67fb08c8..919a3a78 100644 --- a/clients/quarry/src/generated/instructions/newPoolV2.ts +++ b/clients/quarry/src/generated/instructions/newPoolV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -229,7 +229,7 @@ export async function getNewPoolV2InstructionAsync< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.pool), getAccountMeta(accounts.primaryMint), @@ -239,8 +239,8 @@ export async function getNewPoolV2InstructionAsync< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ], - programAddress, data: getNewPoolV2InstructionDataEncoder().encode({}), + programAddress, } as NewPoolV2Instruction< TProgramAddress, TAccountPool, @@ -250,9 +250,7 @@ export async function getNewPoolV2InstructionAsync< TAccountTokenProgram, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface NewPoolV2Input< @@ -337,7 +335,7 @@ export function getNewPoolV2Instruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.pool), getAccountMeta(accounts.primaryMint), @@ -347,8 +345,8 @@ export function getNewPoolV2Instruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ], - programAddress, data: getNewPoolV2InstructionDataEncoder().encode({}), + programAddress, } as NewPoolV2Instruction< TProgramAddress, TAccountPool, @@ -358,9 +356,7 @@ export function getNewPoolV2Instruction< TAccountTokenProgram, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedNewPoolV2Instruction< diff --git a/clients/quarry/src/generated/instructions/newRegistry.ts b/clients/quarry/src/generated/instructions/newRegistry.ts index dadc37a2..2ee4b8eb 100644 --- a/clients/quarry/src/generated/instructions/newRegistry.ts +++ b/clients/quarry/src/generated/instructions/newRegistry.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -199,26 +199,24 @@ export async function getNewRegistryInstructionAsync< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.rewarder), getAccountMeta(accounts.registry), getAccountMeta(accounts.payer), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getNewRegistryInstructionDataEncoder().encode( args as NewRegistryInstructionDataArgs, ), + programAddress, } as NewRegistryInstruction< TProgramAddress, TAccountRewarder, TAccountRegistry, TAccountPayer, TAccountSystemProgram - >; - - return instruction; + >); } export interface NewRegistryInput< @@ -282,26 +280,24 @@ export function getNewRegistryInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.rewarder), getAccountMeta(accounts.registry), getAccountMeta(accounts.payer), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getNewRegistryInstructionDataEncoder().encode( args as NewRegistryInstructionDataArgs, ), + programAddress, } as NewRegistryInstruction< TProgramAddress, TAccountRewarder, TAccountRegistry, TAccountPayer, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedNewRegistryInstruction< diff --git a/clients/quarry/src/generated/instructions/newRewarder.ts b/clients/quarry/src/generated/instructions/newRewarder.ts index c11b6153..82b1831c 100644 --- a/clients/quarry/src/generated/instructions/newRewarder.ts +++ b/clients/quarry/src/generated/instructions/newRewarder.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -248,7 +248,7 @@ export async function getNewRewarderInstructionAsync< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.base), getAccountMeta(accounts.rewarder), @@ -260,10 +260,10 @@ export async function getNewRewarderInstructionAsync< getAccountMeta(accounts.rewardsTokenMint), getAccountMeta(accounts.claimFeeTokenAccount), ], - programAddress, data: getNewRewarderInstructionDataEncoder().encode( args as NewRewarderInstructionDataArgs, ), + programAddress, } as NewRewarderInstruction< TProgramAddress, TAccountBase, @@ -275,9 +275,7 @@ export async function getNewRewarderInstructionAsync< TAccountMintWrapper, TAccountRewardsTokenMint, TAccountClaimFeeTokenAccount - >; - - return instruction; + >); } export interface NewRewarderInput< @@ -378,7 +376,7 @@ export function getNewRewarderInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.base), getAccountMeta(accounts.rewarder), @@ -390,10 +388,10 @@ export function getNewRewarderInstruction< getAccountMeta(accounts.rewardsTokenMint), getAccountMeta(accounts.claimFeeTokenAccount), ], - programAddress, data: getNewRewarderInstructionDataEncoder().encode( args as NewRewarderInstructionDataArgs, ), + programAddress, } as NewRewarderInstruction< TProgramAddress, TAccountBase, @@ -405,9 +403,7 @@ export function getNewRewarderInstruction< TAccountMintWrapper, TAccountRewardsTokenMint, TAccountClaimFeeTokenAccount - >; - - return instruction; + >); } export interface ParsedNewRewarderInstruction< diff --git a/clients/quarry/src/generated/instructions/newRewarderV2.ts b/clients/quarry/src/generated/instructions/newRewarderV2.ts index 88736b29..48068af9 100644 --- a/clients/quarry/src/generated/instructions/newRewarderV2.ts +++ b/clients/quarry/src/generated/instructions/newRewarderV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -225,7 +225,7 @@ export async function getNewRewarderV2InstructionAsync< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.base), getAccountMeta(accounts.rewarder), @@ -236,8 +236,8 @@ export async function getNewRewarderV2InstructionAsync< getAccountMeta(accounts.rewardsTokenMint), getAccountMeta(accounts.claimFeeTokenAccount), ], - programAddress, data: getNewRewarderV2InstructionDataEncoder().encode({}), + programAddress, } as NewRewarderV2Instruction< TProgramAddress, TAccountBase, @@ -248,9 +248,7 @@ export async function getNewRewarderV2InstructionAsync< TAccountMintWrapper, TAccountRewardsTokenMint, TAccountClaimFeeTokenAccount - >; - - return instruction; + >); } export interface NewRewarderV2Input< @@ -341,7 +339,7 @@ export function getNewRewarderV2Instruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.base), getAccountMeta(accounts.rewarder), @@ -352,8 +350,8 @@ export function getNewRewarderV2Instruction< getAccountMeta(accounts.rewardsTokenMint), getAccountMeta(accounts.claimFeeTokenAccount), ], - programAddress, data: getNewRewarderV2InstructionDataEncoder().encode({}), + programAddress, } as NewRewarderV2Instruction< TProgramAddress, TAccountBase, @@ -364,9 +362,7 @@ export function getNewRewarderV2Instruction< TAccountMintWrapper, TAccountRewardsTokenMint, TAccountClaimFeeTokenAccount - >; - - return instruction; + >); } export interface ParsedNewRewarderV2Instruction< diff --git a/clients/quarry/src/generated/instructions/newWrapper.ts b/clients/quarry/src/generated/instructions/newWrapper.ts index 4f639109..a2cf7eaf 100644 --- a/clients/quarry/src/generated/instructions/newWrapper.ts +++ b/clients/quarry/src/generated/instructions/newWrapper.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -233,7 +233,7 @@ export async function getNewWrapperInstructionAsync< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.base), getAccountMeta(accounts.mintWrapper), @@ -243,10 +243,10 @@ export async function getNewWrapperInstructionAsync< getAccountMeta(accounts.payer), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getNewWrapperInstructionDataEncoder().encode( args as NewWrapperInstructionDataArgs, ), + programAddress, } as NewWrapperInstruction< TProgramAddress, TAccountBase, @@ -256,9 +256,7 @@ export async function getNewWrapperInstructionAsync< TAccountTokenProgram, TAccountPayer, TAccountSystemProgram - >; - - return instruction; + >); } export interface NewWrapperInput< @@ -344,7 +342,7 @@ export function getNewWrapperInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.base), getAccountMeta(accounts.mintWrapper), @@ -354,10 +352,10 @@ export function getNewWrapperInstruction< getAccountMeta(accounts.payer), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getNewWrapperInstructionDataEncoder().encode( args as NewWrapperInstructionDataArgs, ), + programAddress, } as NewWrapperInstruction< TProgramAddress, TAccountBase, @@ -367,9 +365,7 @@ export function getNewWrapperInstruction< TAccountTokenProgram, TAccountPayer, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedNewWrapperInstruction< diff --git a/clients/quarry/src/generated/instructions/newWrapperV2.ts b/clients/quarry/src/generated/instructions/newWrapperV2.ts index 76633cb5..99f772fa 100644 --- a/clients/quarry/src/generated/instructions/newWrapperV2.ts +++ b/clients/quarry/src/generated/instructions/newWrapperV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -228,7 +228,7 @@ export async function getNewWrapperV2InstructionAsync< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.base), getAccountMeta(accounts.mintWrapper), @@ -238,10 +238,10 @@ export async function getNewWrapperV2InstructionAsync< getAccountMeta(accounts.payer), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getNewWrapperV2InstructionDataEncoder().encode( args as NewWrapperV2InstructionDataArgs, ), + programAddress, } as NewWrapperV2Instruction< TProgramAddress, TAccountBase, @@ -251,9 +251,7 @@ export async function getNewWrapperV2InstructionAsync< TAccountTokenProgram, TAccountPayer, TAccountSystemProgram - >; - - return instruction; + >); } export interface NewWrapperV2Input< @@ -338,7 +336,7 @@ export function getNewWrapperV2Instruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.base), getAccountMeta(accounts.mintWrapper), @@ -348,10 +346,10 @@ export function getNewWrapperV2Instruction< getAccountMeta(accounts.payer), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getNewWrapperV2InstructionDataEncoder().encode( args as NewWrapperV2InstructionDataArgs, ), + programAddress, } as NewWrapperV2Instruction< TProgramAddress, TAccountBase, @@ -361,9 +359,7 @@ export function getNewWrapperV2Instruction< TAccountTokenProgram, TAccountPayer, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedNewWrapperV2Instruction< diff --git a/clients/quarry/src/generated/instructions/pause.ts b/clients/quarry/src/generated/instructions/pause.ts index 9749082d..2f4b7561 100644 --- a/clients/quarry/src/generated/instructions/pause.ts +++ b/clients/quarry/src/generated/instructions/pause.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -122,20 +122,18 @@ export function getPauseInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.pauseAuthority), getAccountMeta(accounts.rewarder), ], - programAddress, data: getPauseInstructionDataEncoder().encode({}), + programAddress, } as PauseInstruction< TProgramAddress, TAccountPauseAuthority, TAccountRewarder - >; - - return instruction; + >); } export interface ParsedPauseInstruction< @@ -170,10 +168,7 @@ export function parsePauseInstruction< }; return { programAddress: instruction.programAddress, - accounts: { - pauseAuthority: getNextAccount(), - rewarder: getNextAccount(), - }, + accounts: { pauseAuthority: getNextAccount(), rewarder: getNextAccount() }, data: getPauseInstructionDataDecoder().decode(instruction.data), }; } diff --git a/clients/quarry/src/generated/instructions/performMint.ts b/clients/quarry/src/generated/instructions/performMint.ts index a017b884..846e4293 100644 --- a/clients/quarry/src/generated/instructions/performMint.ts +++ b/clients/quarry/src/generated/instructions/performMint.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -197,7 +197,7 @@ export function getPerformMintInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.mintWrapper), getAccountMeta(accounts.minterAuthority), @@ -206,10 +206,10 @@ export function getPerformMintInstruction< getAccountMeta(accounts.minter), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getPerformMintInstructionDataEncoder().encode( args as PerformMintInstructionDataArgs, ), + programAddress, } as PerformMintInstruction< TProgramAddress, TAccountMintWrapper, @@ -218,9 +218,7 @@ export function getPerformMintInstruction< TAccountDestination, TAccountMinter, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedPerformMintInstruction< diff --git a/clients/quarry/src/generated/instructions/redeemAllTokens.ts b/clients/quarry/src/generated/instructions/redeemAllTokens.ts index 828bc506..35b10ebe 100644 --- a/clients/quarry/src/generated/instructions/redeemAllTokens.ts +++ b/clients/quarry/src/generated/instructions/redeemAllTokens.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -196,7 +196,7 @@ export function getRedeemAllTokensInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.redeemer), getAccountMeta(accounts.sourceAuthority), @@ -206,8 +206,8 @@ export function getRedeemAllTokensInstruction< getAccountMeta(accounts.redemptionDestination), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getRedeemAllTokensInstructionDataEncoder().encode({}), + programAddress, } as RedeemAllTokensInstruction< TProgramAddress, TAccountRedeemer, @@ -217,9 +217,7 @@ export function getRedeemAllTokensInstruction< TAccountRedemptionVault, TAccountRedemptionDestination, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedRedeemAllTokensInstruction< diff --git a/clients/quarry/src/generated/instructions/redeemTokens.ts b/clients/quarry/src/generated/instructions/redeemTokens.ts index 5a5d6530..5f842ca2 100644 --- a/clients/quarry/src/generated/instructions/redeemTokens.ts +++ b/clients/quarry/src/generated/instructions/redeemTokens.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -210,7 +210,7 @@ export function getRedeemTokensInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.redeemer), getAccountMeta(accounts.sourceAuthority), @@ -220,10 +220,10 @@ export function getRedeemTokensInstruction< getAccountMeta(accounts.redemptionDestination), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getRedeemTokensInstructionDataEncoder().encode( args as RedeemTokensInstructionDataArgs, ), + programAddress, } as RedeemTokensInstruction< TProgramAddress, TAccountRedeemer, @@ -233,9 +233,7 @@ export function getRedeemTokensInstruction< TAccountRedemptionVault, TAccountRedemptionDestination, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedRedeemTokensInstruction< diff --git a/clients/quarry/src/generated/instructions/rescueTokens.ts b/clients/quarry/src/generated/instructions/rescueTokens.ts index 83dfcc96..b34d05a6 100644 --- a/clients/quarry/src/generated/instructions/rescueTokens.ts +++ b/clients/quarry/src/generated/instructions/rescueTokens.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -176,7 +176,7 @@ export function getRescueTokensInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.miner), getAccountMeta(accounts.authority), @@ -184,8 +184,8 @@ export function getRescueTokensInstruction< getAccountMeta(accounts.destinationTokenAccount), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getRescueTokensInstructionDataEncoder().encode({}), + programAddress, } as RescueTokensInstruction< TProgramAddress, TAccountMiner, @@ -193,9 +193,7 @@ export function getRescueTokensInstruction< TAccountMinerTokenAccount, TAccountDestinationTokenAccount, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedRescueTokensInstruction< diff --git a/clients/quarry/src/generated/instructions/rescueTokensMM.ts b/clients/quarry/src/generated/instructions/rescueTokensMM.ts index 438043b6..32d5b9ca 100644 --- a/clients/quarry/src/generated/instructions/rescueTokensMM.ts +++ b/clients/quarry/src/generated/instructions/rescueTokensMM.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -213,7 +213,7 @@ export function getRescueTokensMMInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.mmOwner), getAccountMeta(accounts.mergePool), @@ -224,8 +224,8 @@ export function getRescueTokensMMInstruction< getAccountMeta(accounts.quarryMineProgram), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getRescueTokensMMInstructionDataEncoder().encode({}), + programAddress, } as RescueTokensMMInstruction< TProgramAddress, TAccountMmOwner, @@ -236,9 +236,7 @@ export function getRescueTokensMMInstruction< TAccountDestinationTokenAccount, TAccountQuarryMineProgram, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedRescueTokensMMInstruction< diff --git a/clients/quarry/src/generated/instructions/setAdmin.ts b/clients/quarry/src/generated/instructions/setAdmin.ts index b362a4c9..6d10b959 100644 --- a/clients/quarry/src/generated/instructions/setAdmin.ts +++ b/clients/quarry/src/generated/instructions/setAdmin.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -137,22 +137,20 @@ export function getSetAdminInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.operator), getAccountMeta(accounts.admin), getAccountMeta(accounts.delegate), ], - programAddress, data: getSetAdminInstructionDataEncoder().encode({}), + programAddress, } as SetAdminInstruction< TProgramAddress, TAccountOperator, TAccountAdmin, TAccountDelegate - >; - - return instruction; + >); } export interface ParsedSetAdminInstruction< diff --git a/clients/quarry/src/generated/instructions/setAnnualRewards.ts b/clients/quarry/src/generated/instructions/setAnnualRewards.ts index 689e4321..362466a1 100644 --- a/clients/quarry/src/generated/instructions/setAnnualRewards.ts +++ b/clients/quarry/src/generated/instructions/setAnnualRewards.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -140,22 +140,20 @@ export function getSetAnnualRewardsInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.authority), getAccountMeta(accounts.rewarder), ], - programAddress, data: getSetAnnualRewardsInstructionDataEncoder().encode( args as SetAnnualRewardsInstructionDataArgs, ), + programAddress, } as SetAnnualRewardsInstruction< TProgramAddress, TAccountAuthority, TAccountRewarder - >; - - return instruction; + >); } export interface ParsedSetAnnualRewardsInstruction< @@ -190,10 +188,7 @@ export function parseSetAnnualRewardsInstruction< }; return { programAddress: instruction.programAddress, - accounts: { - authority: getNextAccount(), - rewarder: getNextAccount(), - }, + accounts: { authority: getNextAccount(), rewarder: getNextAccount() }, data: getSetAnnualRewardsInstructionDataDecoder().decode(instruction.data), }; } diff --git a/clients/quarry/src/generated/instructions/setFamine.ts b/clients/quarry/src/generated/instructions/setFamine.ts index d281d08b..d483748d 100644 --- a/clients/quarry/src/generated/instructions/setFamine.ts +++ b/clients/quarry/src/generated/instructions/setFamine.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -149,24 +149,22 @@ export function getSetFamineInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.authority), getAccountMeta(accounts.rewarder), getAccountMeta(accounts.quarry), ], - programAddress, data: getSetFamineInstructionDataEncoder().encode( args as SetFamineInstructionDataArgs, ), + programAddress, } as SetFamineInstruction< TProgramAddress, TAccountAuthority, TAccountRewarder, TAccountQuarry - >; - - return instruction; + >); } export interface ParsedSetFamineInstruction< diff --git a/clients/quarry/src/generated/instructions/setPauseAuthority.ts b/clients/quarry/src/generated/instructions/setPauseAuthority.ts index c07a6325..a363ebee 100644 --- a/clients/quarry/src/generated/instructions/setPauseAuthority.ts +++ b/clients/quarry/src/generated/instructions/setPauseAuthority.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -144,22 +144,20 @@ export function getSetPauseAuthorityInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.authority), getAccountMeta(accounts.rewarder), getAccountMeta(accounts.newPauseAuthority), ], - programAddress, data: getSetPauseAuthorityInstructionDataEncoder().encode({}), + programAddress, } as SetPauseAuthorityInstruction< TProgramAddress, TAccountAuthority, TAccountRewarder, TAccountNewPauseAuthority - >; - - return instruction; + >); } export interface ParsedSetPauseAuthorityInstruction< diff --git a/clients/quarry/src/generated/instructions/setQuarryCreator.ts b/clients/quarry/src/generated/instructions/setQuarryCreator.ts index dbb0bbd2..fe2eb107 100644 --- a/clients/quarry/src/generated/instructions/setQuarryCreator.ts +++ b/clients/quarry/src/generated/instructions/setQuarryCreator.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -142,22 +142,20 @@ export function getSetQuarryCreatorInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.operator), getAccountMeta(accounts.admin), getAccountMeta(accounts.delegate), ], - programAddress, data: getSetQuarryCreatorInstructionDataEncoder().encode({}), + programAddress, } as SetQuarryCreatorInstruction< TProgramAddress, TAccountOperator, TAccountAdmin, TAccountDelegate - >; - - return instruction; + >); } export interface ParsedSetQuarryCreatorInstruction< diff --git a/clients/quarry/src/generated/instructions/setRateSetter.ts b/clients/quarry/src/generated/instructions/setRateSetter.ts index e5704a2d..09b7e62d 100644 --- a/clients/quarry/src/generated/instructions/setRateSetter.ts +++ b/clients/quarry/src/generated/instructions/setRateSetter.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -139,22 +139,20 @@ export function getSetRateSetterInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.operator), getAccountMeta(accounts.admin), getAccountMeta(accounts.delegate), ], - programAddress, data: getSetRateSetterInstructionDataEncoder().encode({}), + programAddress, } as SetRateSetterInstruction< TProgramAddress, TAccountOperator, TAccountAdmin, TAccountDelegate - >; - - return instruction; + >); } export interface ParsedSetRateSetterInstruction< diff --git a/clients/quarry/src/generated/instructions/setRewardsShare.ts b/clients/quarry/src/generated/instructions/setRewardsShare.ts index 7b85d0d0..2c925e01 100644 --- a/clients/quarry/src/generated/instructions/setRewardsShare.ts +++ b/clients/quarry/src/generated/instructions/setRewardsShare.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -153,24 +153,22 @@ export function getSetRewardsShareInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.authority), getAccountMeta(accounts.rewarder), getAccountMeta(accounts.quarry), ], - programAddress, data: getSetRewardsShareInstructionDataEncoder().encode( args as SetRewardsShareInstructionDataArgs, ), + programAddress, } as SetRewardsShareInstruction< TProgramAddress, TAccountAuthority, TAccountRewarder, TAccountQuarry - >; - - return instruction; + >); } export interface ParsedSetRewardsShareInstruction< diff --git a/clients/quarry/src/generated/instructions/setShareAllocator.ts b/clients/quarry/src/generated/instructions/setShareAllocator.ts index 3588b5a8..ba33b116 100644 --- a/clients/quarry/src/generated/instructions/setShareAllocator.ts +++ b/clients/quarry/src/generated/instructions/setShareAllocator.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -142,22 +142,20 @@ export function getSetShareAllocatorInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.operator), getAccountMeta(accounts.admin), getAccountMeta(accounts.delegate), ], - programAddress, data: getSetShareAllocatorInstructionDataEncoder().encode({}), + programAddress, } as SetShareAllocatorInstruction< TProgramAddress, TAccountOperator, TAccountAdmin, TAccountDelegate - >; - - return instruction; + >); } export interface ParsedSetShareAllocatorInstruction< diff --git a/clients/quarry/src/generated/instructions/stakePrimaryMiner.ts b/clients/quarry/src/generated/instructions/stakePrimaryMiner.ts index fb395ec7..94187941 100644 --- a/clients/quarry/src/generated/instructions/stakePrimaryMiner.ts +++ b/clients/quarry/src/generated/instructions/stakePrimaryMiner.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -227,7 +227,7 @@ export function getStakePrimaryMinerInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.mmOwner), getAccountMeta(accounts.mmPrimaryTokenAccount), @@ -240,8 +240,8 @@ export function getStakePrimaryMinerInstruction< getAccountMeta(accounts.tokenProgram), getAccountMeta(accounts.mineProgram), ], - programAddress, data: getStakePrimaryMinerInstructionDataEncoder().encode({}), + programAddress, } as StakePrimaryMinerInstruction< TProgramAddress, TAccountMmOwner, @@ -254,9 +254,7 @@ export function getStakePrimaryMinerInstruction< TAccountMinerVault, TAccountTokenProgram, TAccountMineProgram - >; - - return instruction; + >); } export interface ParsedStakePrimaryMinerInstruction< diff --git a/clients/quarry/src/generated/instructions/stakeReplicaMiner.ts b/clients/quarry/src/generated/instructions/stakeReplicaMiner.ts index 033cd008..493b5a80 100644 --- a/clients/quarry/src/generated/instructions/stakeReplicaMiner.ts +++ b/clients/quarry/src/generated/instructions/stakeReplicaMiner.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -237,7 +237,7 @@ export function getStakeReplicaMinerInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.mmOwner), getAccountMeta(accounts.replicaMint), @@ -251,8 +251,8 @@ export function getStakeReplicaMinerInstruction< getAccountMeta(accounts.tokenProgram), getAccountMeta(accounts.mineProgram), ], - programAddress, data: getStakeReplicaMinerInstructionDataEncoder().encode({}), + programAddress, } as StakeReplicaMinerInstruction< TProgramAddress, TAccountMmOwner, @@ -266,9 +266,7 @@ export function getStakeReplicaMinerInstruction< TAccountMinerVault, TAccountTokenProgram, TAccountMineProgram - >; - - return instruction; + >); } export interface ParsedStakeReplicaMinerInstruction< diff --git a/clients/quarry/src/generated/instructions/stakeTokens.ts b/clients/quarry/src/generated/instructions/stakeTokens.ts index 88ca431c..fc13cb81 100644 --- a/clients/quarry/src/generated/instructions/stakeTokens.ts +++ b/clients/quarry/src/generated/instructions/stakeTokens.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -203,7 +203,7 @@ export function getStakeTokensInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.authority), getAccountMeta(accounts.miner), @@ -213,10 +213,10 @@ export function getStakeTokensInstruction< getAccountMeta(accounts.tokenProgram), getAccountMeta(accounts.rewarder), ], - programAddress, data: getStakeTokensInstructionDataEncoder().encode( args as StakeTokensInstructionDataArgs, ), + programAddress, } as StakeTokensInstruction< TProgramAddress, TAccountAuthority, @@ -226,9 +226,7 @@ export function getStakeTokensInstruction< TAccountTokenAccount, TAccountTokenProgram, TAccountRewarder - >; - - return instruction; + >); } export interface ParsedStakeTokensInstruction< diff --git a/clients/quarry/src/generated/instructions/syncQuarry.ts b/clients/quarry/src/generated/instructions/syncQuarry.ts index bcde4207..c16e9144 100644 --- a/clients/quarry/src/generated/instructions/syncQuarry.ts +++ b/clients/quarry/src/generated/instructions/syncQuarry.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -120,16 +120,18 @@ export function getSyncQuarryInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.quarry), getAccountMeta(accounts.registry), ], - programAddress, data: getSyncQuarryInstructionDataEncoder().encode({}), - } as SyncQuarryInstruction; - - return instruction; + programAddress, + } as SyncQuarryInstruction< + TProgramAddress, + TAccountQuarry, + TAccountRegistry + >); } export interface ParsedSyncQuarryInstruction< @@ -164,10 +166,7 @@ export function parseSyncQuarryInstruction< }; return { programAddress: instruction.programAddress, - accounts: { - quarry: getNextAccount(), - registry: getNextAccount(), - }, + accounts: { quarry: getNextAccount(), registry: getNextAccount() }, data: getSyncQuarryInstructionDataDecoder().decode(instruction.data), }; } diff --git a/clients/quarry/src/generated/instructions/transferAdmin.ts b/clients/quarry/src/generated/instructions/transferAdmin.ts index 8c7d7c39..1ce34f31 100644 --- a/clients/quarry/src/generated/instructions/transferAdmin.ts +++ b/clients/quarry/src/generated/instructions/transferAdmin.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -143,22 +143,20 @@ export function getTransferAdminInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.mintWrapper), getAccountMeta(accounts.admin), getAccountMeta(accounts.nextAdmin), ], - programAddress, data: getTransferAdminInstructionDataEncoder().encode({}), + programAddress, } as TransferAdminInstruction< TProgramAddress, TAccountMintWrapper, TAccountAdmin, TAccountNextAdmin - >; - - return instruction; + >); } export interface ParsedTransferAdminInstruction< diff --git a/clients/quarry/src/generated/instructions/transferAuthority.ts b/clients/quarry/src/generated/instructions/transferAuthority.ts index 4afd17cb..2700fab8 100644 --- a/clients/quarry/src/generated/instructions/transferAuthority.ts +++ b/clients/quarry/src/generated/instructions/transferAuthority.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -140,22 +140,20 @@ export function getTransferAuthorityInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.authority), getAccountMeta(accounts.rewarder), ], - programAddress, data: getTransferAuthorityInstructionDataEncoder().encode( args as TransferAuthorityInstructionDataArgs, ), + programAddress, } as TransferAuthorityInstruction< TProgramAddress, TAccountAuthority, TAccountRewarder - >; - - return instruction; + >); } export interface ParsedTransferAuthorityInstruction< @@ -190,10 +188,7 @@ export function parseTransferAuthorityInstruction< }; return { programAddress: instruction.programAddress, - accounts: { - authority: getNextAccount(), - rewarder: getNextAccount(), - }, + accounts: { authority: getNextAccount(), rewarder: getNextAccount() }, data: getTransferAuthorityInstructionDataDecoder().decode(instruction.data), }; } diff --git a/clients/quarry/src/generated/instructions/unpause.ts b/clients/quarry/src/generated/instructions/unpause.ts index 994d5512..607e85e6 100644 --- a/clients/quarry/src/generated/instructions/unpause.ts +++ b/clients/quarry/src/generated/instructions/unpause.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -126,20 +126,18 @@ export function getUnpauseInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.pauseAuthority), getAccountMeta(accounts.rewarder), ], - programAddress, data: getUnpauseInstructionDataEncoder().encode({}), + programAddress, } as UnpauseInstruction< TProgramAddress, TAccountPauseAuthority, TAccountRewarder - >; - - return instruction; + >); } export interface ParsedUnpauseInstruction< @@ -174,10 +172,7 @@ export function parseUnpauseInstruction< }; return { programAddress: instruction.programAddress, - accounts: { - pauseAuthority: getNextAccount(), - rewarder: getNextAccount(), - }, + accounts: { pauseAuthority: getNextAccount(), rewarder: getNextAccount() }, data: getUnpauseInstructionDataDecoder().decode(instruction.data), }; } diff --git a/clients/quarry/src/generated/instructions/unstakeAllReplicaMiner.ts b/clients/quarry/src/generated/instructions/unstakeAllReplicaMiner.ts index feef147f..e5dc75bf 100644 --- a/clients/quarry/src/generated/instructions/unstakeAllReplicaMiner.ts +++ b/clients/quarry/src/generated/instructions/unstakeAllReplicaMiner.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -240,7 +240,7 @@ export function getUnstakeAllReplicaMinerInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.mmOwner), getAccountMeta(accounts.replicaMint), @@ -254,8 +254,8 @@ export function getUnstakeAllReplicaMinerInstruction< getAccountMeta(accounts.tokenProgram), getAccountMeta(accounts.mineProgram), ], - programAddress, data: getUnstakeAllReplicaMinerInstructionDataEncoder().encode({}), + programAddress, } as UnstakeAllReplicaMinerInstruction< TProgramAddress, TAccountMmOwner, @@ -269,9 +269,7 @@ export function getUnstakeAllReplicaMinerInstruction< TAccountMinerVault, TAccountTokenProgram, TAccountMineProgram - >; - - return instruction; + >); } export interface ParsedUnstakeAllReplicaMinerInstruction< diff --git a/clients/quarry/src/generated/instructions/unstakePrimaryMiner.ts b/clients/quarry/src/generated/instructions/unstakePrimaryMiner.ts index ea56da21..8f8dd057 100644 --- a/clients/quarry/src/generated/instructions/unstakePrimaryMiner.ts +++ b/clients/quarry/src/generated/instructions/unstakePrimaryMiner.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -243,7 +243,7 @@ export function getUnstakePrimaryMinerInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.mmOwner), getAccountMeta(accounts.mmPrimaryTokenAccount), @@ -256,10 +256,10 @@ export function getUnstakePrimaryMinerInstruction< getAccountMeta(accounts.tokenProgram), getAccountMeta(accounts.mineProgram), ], - programAddress, data: getUnstakePrimaryMinerInstructionDataEncoder().encode( args as UnstakePrimaryMinerInstructionDataArgs, ), + programAddress, } as UnstakePrimaryMinerInstruction< TProgramAddress, TAccountMmOwner, @@ -272,9 +272,7 @@ export function getUnstakePrimaryMinerInstruction< TAccountMinerVault, TAccountTokenProgram, TAccountMineProgram - >; - - return instruction; + >); } export interface ParsedUnstakePrimaryMinerInstruction< diff --git a/clients/quarry/src/generated/instructions/updateQuarryRewards.ts b/clients/quarry/src/generated/instructions/updateQuarryRewards.ts index cae373c1..a1eb0699 100644 --- a/clients/quarry/src/generated/instructions/updateQuarryRewards.ts +++ b/clients/quarry/src/generated/instructions/updateQuarryRewards.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -127,20 +127,18 @@ export function getUpdateQuarryRewardsInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.quarry), getAccountMeta(accounts.rewarder), ], - programAddress, data: getUpdateQuarryRewardsInstructionDataEncoder().encode({}), + programAddress, } as UpdateQuarryRewardsInstruction< TProgramAddress, TAccountQuarry, TAccountRewarder - >; - - return instruction; + >); } export interface ParsedUpdateQuarryRewardsInstruction< @@ -175,10 +173,7 @@ export function parseUpdateQuarryRewardsInstruction< }; return { programAddress: instruction.programAddress, - accounts: { - quarry: getNextAccount(), - rewarder: getNextAccount(), - }, + accounts: { quarry: getNextAccount(), rewarder: getNextAccount() }, data: getUpdateQuarryRewardsInstructionDataDecoder().decode( instruction.data, ), diff --git a/clients/quarry/src/generated/instructions/withdrawTokens.ts b/clients/quarry/src/generated/instructions/withdrawTokens.ts index 5de19639..d2578b98 100644 --- a/clients/quarry/src/generated/instructions/withdrawTokens.ts +++ b/clients/quarry/src/generated/instructions/withdrawTokens.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -203,7 +203,7 @@ export function getWithdrawTokensInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.authority), getAccountMeta(accounts.miner), @@ -213,10 +213,10 @@ export function getWithdrawTokensInstruction< getAccountMeta(accounts.tokenProgram), getAccountMeta(accounts.rewarder), ], - programAddress, data: getWithdrawTokensInstructionDataEncoder().encode( args as WithdrawTokensInstructionDataArgs, ), + programAddress, } as WithdrawTokensInstruction< TProgramAddress, TAccountAuthority, @@ -226,9 +226,7 @@ export function getWithdrawTokensInstruction< TAccountTokenAccount, TAccountTokenProgram, TAccountRewarder - >; - - return instruction; + >); } export interface ParsedWithdrawTokensInstruction< diff --git a/clients/quarry/src/generated/instructions/withdrawTokensMM.ts b/clients/quarry/src/generated/instructions/withdrawTokensMM.ts index 3b8c6028..96c22af4 100644 --- a/clients/quarry/src/generated/instructions/withdrawTokensMM.ts +++ b/clients/quarry/src/generated/instructions/withdrawTokensMM.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -191,7 +191,7 @@ export function getWithdrawTokensMMInstruction< } const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.owner), getAccountMeta(accounts.pool), @@ -201,8 +201,8 @@ export function getWithdrawTokensMMInstruction< getAccountMeta(accounts.tokenDestination), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getWithdrawTokensMMInstructionDataEncoder().encode({}), + programAddress, } as WithdrawTokensMMInstruction< TProgramAddress, TAccountOwner, @@ -212,9 +212,7 @@ export function getWithdrawTokensMMInstruction< TAccountMmTokenAccount, TAccountTokenDestination, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedWithdrawTokensMMInstruction< diff --git a/clients/quarry/src/generated/pdas/index.ts b/clients/quarry/src/generated/pdas/index.ts index ad563731..489c4320 100644 --- a/clients/quarry/src/generated/pdas/index.ts +++ b/clients/quarry/src/generated/pdas/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/pdas/mergeMiner.ts b/clients/quarry/src/generated/pdas/mergeMiner.ts index 41025662..bd8ff80f 100644 --- a/clients/quarry/src/generated/pdas/mergeMiner.ts +++ b/clients/quarry/src/generated/pdas/mergeMiner.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -15,7 +15,6 @@ import { export interface MergeMinerSeeds { pool: Address; - owner: Address; } diff --git a/clients/quarry/src/generated/pdas/mergePool.ts b/clients/quarry/src/generated/pdas/mergePool.ts index 82a7bbb7..bb7cc019 100644 --- a/clients/quarry/src/generated/pdas/mergePool.ts +++ b/clients/quarry/src/generated/pdas/mergePool.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/pdas/miner.ts b/clients/quarry/src/generated/pdas/miner.ts index d4445bf0..a3fc9f22 100644 --- a/clients/quarry/src/generated/pdas/miner.ts +++ b/clients/quarry/src/generated/pdas/miner.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -15,7 +15,6 @@ import { export interface MinerSeeds { quarry: Address; - authority: Address; } diff --git a/clients/quarry/src/generated/pdas/mintWrapper.ts b/clients/quarry/src/generated/pdas/mintWrapper.ts index a539dd81..00d4d105 100644 --- a/clients/quarry/src/generated/pdas/mintWrapper.ts +++ b/clients/quarry/src/generated/pdas/mintWrapper.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/pdas/minter.ts b/clients/quarry/src/generated/pdas/minter.ts index 8e5d5c04..900d3dee 100644 --- a/clients/quarry/src/generated/pdas/minter.ts +++ b/clients/quarry/src/generated/pdas/minter.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -15,7 +15,6 @@ import { export interface MinterSeeds { wrapper: Address; - authority: Address; } diff --git a/clients/quarry/src/generated/pdas/operator.ts b/clients/quarry/src/generated/pdas/operator.ts index 5ae3510e..31ffd738 100644 --- a/clients/quarry/src/generated/pdas/operator.ts +++ b/clients/quarry/src/generated/pdas/operator.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/pdas/quarry.ts b/clients/quarry/src/generated/pdas/quarry.ts index 140741a0..04f5ec6f 100644 --- a/clients/quarry/src/generated/pdas/quarry.ts +++ b/clients/quarry/src/generated/pdas/quarry.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -15,7 +15,6 @@ import { export interface QuarrySeeds { rewarder: Address; - tokenMint: Address; } diff --git a/clients/quarry/src/generated/pdas/redeemer.ts b/clients/quarry/src/generated/pdas/redeemer.ts index c45347f6..00a325a0 100644 --- a/clients/quarry/src/generated/pdas/redeemer.ts +++ b/clients/quarry/src/generated/pdas/redeemer.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -15,7 +15,6 @@ import { export interface RedeemerSeeds { iouMint: Address; - redemptionMint: Address; } diff --git a/clients/quarry/src/generated/pdas/registry.ts b/clients/quarry/src/generated/pdas/registry.ts index 329d7cbd..07de204a 100644 --- a/clients/quarry/src/generated/pdas/registry.ts +++ b/clients/quarry/src/generated/pdas/registry.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/pdas/replicaMint.ts b/clients/quarry/src/generated/pdas/replicaMint.ts index 094cf6ab..ad310b2e 100644 --- a/clients/quarry/src/generated/pdas/replicaMint.ts +++ b/clients/quarry/src/generated/pdas/replicaMint.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/pdas/rewarder.ts b/clients/quarry/src/generated/pdas/rewarder.ts index 7d776297..5aeebd45 100644 --- a/clients/quarry/src/generated/pdas/rewarder.ts +++ b/clients/quarry/src/generated/pdas/rewarder.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/programs/index.ts b/clients/quarry/src/generated/programs/index.ts index b66d737b..98128ba4 100644 --- a/clients/quarry/src/generated/programs/index.ts +++ b/clients/quarry/src/generated/programs/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/programs/quarryMergeMine.ts b/clients/quarry/src/generated/programs/quarryMergeMine.ts index 6e5acf3f..0cce3d8f 100644 --- a/clients/quarry/src/generated/programs/quarryMergeMine.ts +++ b/clients/quarry/src/generated/programs/quarryMergeMine.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/programs/quarryMine.ts b/clients/quarry/src/generated/programs/quarryMine.ts index 246f9680..f3f9355b 100644 --- a/clients/quarry/src/generated/programs/quarryMine.ts +++ b/clients/quarry/src/generated/programs/quarryMine.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/programs/quarryMintWrapper.ts b/clients/quarry/src/generated/programs/quarryMintWrapper.ts index 7e7acb9c..08bb7557 100644 --- a/clients/quarry/src/generated/programs/quarryMintWrapper.ts +++ b/clients/quarry/src/generated/programs/quarryMintWrapper.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/programs/quarryOperator.ts b/clients/quarry/src/generated/programs/quarryOperator.ts index d5bc38f5..237a0ff4 100644 --- a/clients/quarry/src/generated/programs/quarryOperator.ts +++ b/clients/quarry/src/generated/programs/quarryOperator.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/programs/quarryRedeemer.ts b/clients/quarry/src/generated/programs/quarryRedeemer.ts index 5a658fae..12405e1b 100644 --- a/clients/quarry/src/generated/programs/quarryRedeemer.ts +++ b/clients/quarry/src/generated/programs/quarryRedeemer.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/programs/quarryRegistry.ts b/clients/quarry/src/generated/programs/quarryRegistry.ts index 8a36e7dc..2c513c7c 100644 --- a/clients/quarry/src/generated/programs/quarryRegistry.ts +++ b/clients/quarry/src/generated/programs/quarryRegistry.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/shared/index.ts b/clients/quarry/src/generated/shared/index.ts index 7d911d4a..b79b9c6b 100644 --- a/clients/quarry/src/generated/shared/index.ts +++ b/clients/quarry/src/generated/shared/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/claimEvent.ts b/clients/quarry/src/generated/types/claimEvent.ts index 4e0967fe..2f8ec9e6 100644 --- a/clients/quarry/src/generated/types/claimEvent.ts +++ b/clients/quarry/src/generated/types/claimEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/claimEventMM.ts b/clients/quarry/src/generated/types/claimEventMM.ts index d3f7bbab..67cf4437 100644 --- a/clients/quarry/src/generated/types/claimEventMM.ts +++ b/clients/quarry/src/generated/types/claimEventMM.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/index.ts b/clients/quarry/src/generated/types/index.ts index d3e7b124..568779e0 100644 --- a/clients/quarry/src/generated/types/index.ts +++ b/clients/quarry/src/generated/types/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/initMergeMinerEvent.ts b/clients/quarry/src/generated/types/initMergeMinerEvent.ts index 327eea27..015fd1ed 100644 --- a/clients/quarry/src/generated/types/initMergeMinerEvent.ts +++ b/clients/quarry/src/generated/types/initMergeMinerEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/initMinerEvent.ts b/clients/quarry/src/generated/types/initMinerEvent.ts index 2141c886..b55bfd37 100644 --- a/clients/quarry/src/generated/types/initMinerEvent.ts +++ b/clients/quarry/src/generated/types/initMinerEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/minerCreateEvent.ts b/clients/quarry/src/generated/types/minerCreateEvent.ts index ae5c7f77..270f48db 100644 --- a/clients/quarry/src/generated/types/minerCreateEvent.ts +++ b/clients/quarry/src/generated/types/minerCreateEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/mintWrapperAdminProposeEvent.ts b/clients/quarry/src/generated/types/mintWrapperAdminProposeEvent.ts index a1ef439a..b9e5bd01 100644 --- a/clients/quarry/src/generated/types/mintWrapperAdminProposeEvent.ts +++ b/clients/quarry/src/generated/types/mintWrapperAdminProposeEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/mintWrapperAdminUpdateEvent.ts b/clients/quarry/src/generated/types/mintWrapperAdminUpdateEvent.ts index 9f58b6ae..b9312285 100644 --- a/clients/quarry/src/generated/types/mintWrapperAdminUpdateEvent.ts +++ b/clients/quarry/src/generated/types/mintWrapperAdminUpdateEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/minterAllowanceUpdateEvent.ts b/clients/quarry/src/generated/types/minterAllowanceUpdateEvent.ts index 795e0d43..76107be8 100644 --- a/clients/quarry/src/generated/types/minterAllowanceUpdateEvent.ts +++ b/clients/quarry/src/generated/types/minterAllowanceUpdateEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/minterMintEvent.ts b/clients/quarry/src/generated/types/minterMintEvent.ts index f44eea09..fab0959a 100644 --- a/clients/quarry/src/generated/types/minterMintEvent.ts +++ b/clients/quarry/src/generated/types/minterMintEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/newMergePoolEvent.ts b/clients/quarry/src/generated/types/newMergePoolEvent.ts index 3efa53b5..fa3b65c8 100644 --- a/clients/quarry/src/generated/types/newMergePoolEvent.ts +++ b/clients/quarry/src/generated/types/newMergePoolEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/newMintWrapperEvent.ts b/clients/quarry/src/generated/types/newMintWrapperEvent.ts index a20a0850..5d183ea1 100644 --- a/clients/quarry/src/generated/types/newMintWrapperEvent.ts +++ b/clients/quarry/src/generated/types/newMintWrapperEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/newMinterEvent.ts b/clients/quarry/src/generated/types/newMinterEvent.ts index 03dcd19c..2004bff0 100644 --- a/clients/quarry/src/generated/types/newMinterEvent.ts +++ b/clients/quarry/src/generated/types/newMinterEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/newRewarderEvent.ts b/clients/quarry/src/generated/types/newRewarderEvent.ts index 2cad5396..8a2f8434 100644 --- a/clients/quarry/src/generated/types/newRewarderEvent.ts +++ b/clients/quarry/src/generated/types/newRewarderEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/quarryCreateEvent.ts b/clients/quarry/src/generated/types/quarryCreateEvent.ts index d380df91..f4a3aead 100644 --- a/clients/quarry/src/generated/types/quarryCreateEvent.ts +++ b/clients/quarry/src/generated/types/quarryCreateEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/quarryRewardsUpdateEvent.ts b/clients/quarry/src/generated/types/quarryRewardsUpdateEvent.ts index fc39bdc9..bbe1eaef 100644 --- a/clients/quarry/src/generated/types/quarryRewardsUpdateEvent.ts +++ b/clients/quarry/src/generated/types/quarryRewardsUpdateEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/redeemTokensEvent.ts b/clients/quarry/src/generated/types/redeemTokensEvent.ts index 13dc58c4..b09f478a 100644 --- a/clients/quarry/src/generated/types/redeemTokensEvent.ts +++ b/clients/quarry/src/generated/types/redeemTokensEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/rewarderAnnualRewardsUpdateEvent.ts b/clients/quarry/src/generated/types/rewarderAnnualRewardsUpdateEvent.ts index 3eb02dc3..c2ce5295 100644 --- a/clients/quarry/src/generated/types/rewarderAnnualRewardsUpdateEvent.ts +++ b/clients/quarry/src/generated/types/rewarderAnnualRewardsUpdateEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/stakeAction.ts b/clients/quarry/src/generated/types/stakeAction.ts index 4dceb23a..85ca9d14 100644 --- a/clients/quarry/src/generated/types/stakeAction.ts +++ b/clients/quarry/src/generated/types/stakeAction.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/stakeEvent.ts b/clients/quarry/src/generated/types/stakeEvent.ts index c314ad4e..e2c39316 100644 --- a/clients/quarry/src/generated/types/stakeEvent.ts +++ b/clients/quarry/src/generated/types/stakeEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/stakePrimaryEvent.ts b/clients/quarry/src/generated/types/stakePrimaryEvent.ts index c1682c45..48fd8276 100644 --- a/clients/quarry/src/generated/types/stakePrimaryEvent.ts +++ b/clients/quarry/src/generated/types/stakePrimaryEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/stakeReplicaEvent.ts b/clients/quarry/src/generated/types/stakeReplicaEvent.ts index a1f6da30..3610396f 100644 --- a/clients/quarry/src/generated/types/stakeReplicaEvent.ts +++ b/clients/quarry/src/generated/types/stakeReplicaEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/unstakePrimaryEvent.ts b/clients/quarry/src/generated/types/unstakePrimaryEvent.ts index 8f247293..20fe58ce 100644 --- a/clients/quarry/src/generated/types/unstakePrimaryEvent.ts +++ b/clients/quarry/src/generated/types/unstakePrimaryEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/unstakeReplicaEvent.ts b/clients/quarry/src/generated/types/unstakeReplicaEvent.ts index 3a0115b9..e2815953 100644 --- a/clients/quarry/src/generated/types/unstakeReplicaEvent.ts +++ b/clients/quarry/src/generated/types/unstakeReplicaEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/withdrawEvent.ts b/clients/quarry/src/generated/types/withdrawEvent.ts index 9bf86e9a..ed395014 100644 --- a/clients/quarry/src/generated/types/withdrawEvent.ts +++ b/clients/quarry/src/generated/types/withdrawEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/quarry/src/generated/types/withdrawTokensEvent.ts b/clients/quarry/src/generated/types/withdrawTokensEvent.ts index aa3de3c3..6f309de4 100644 --- a/clients/quarry/src/generated/types/withdrawTokensEvent.ts +++ b/clients/quarry/src/generated/types/withdrawTokensEvent.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/accounts/collectionAuthorityRecord.ts b/clients/token-metadata/src/generated/accounts/collectionAuthorityRecord.ts index 8e398495..094ad59e 100644 --- a/clients/token-metadata/src/generated/accounts/collectionAuthorityRecord.ts +++ b/clients/token-metadata/src/generated/accounts/collectionAuthorityRecord.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/accounts/edition.ts b/clients/token-metadata/src/generated/accounts/edition.ts index c46bfb27..6035ca57 100644 --- a/clients/token-metadata/src/generated/accounts/edition.ts +++ b/clients/token-metadata/src/generated/accounts/edition.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/accounts/editionMarker.ts b/clients/token-metadata/src/generated/accounts/editionMarker.ts index 7d6d26be..803f7c7f 100644 --- a/clients/token-metadata/src/generated/accounts/editionMarker.ts +++ b/clients/token-metadata/src/generated/accounts/editionMarker.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/accounts/editionMarkerV2.ts b/clients/token-metadata/src/generated/accounts/editionMarkerV2.ts index 39171e32..5d5216f8 100644 --- a/clients/token-metadata/src/generated/accounts/editionMarkerV2.ts +++ b/clients/token-metadata/src/generated/accounts/editionMarkerV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/accounts/holderDelegateRecord.ts b/clients/token-metadata/src/generated/accounts/holderDelegateRecord.ts index 228f1004..f3cc4143 100644 --- a/clients/token-metadata/src/generated/accounts/holderDelegateRecord.ts +++ b/clients/token-metadata/src/generated/accounts/holderDelegateRecord.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/accounts/index.ts b/clients/token-metadata/src/generated/accounts/index.ts index 262606d4..140fa3af 100644 --- a/clients/token-metadata/src/generated/accounts/index.ts +++ b/clients/token-metadata/src/generated/accounts/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/accounts/masterEditionV1.ts b/clients/token-metadata/src/generated/accounts/masterEditionV1.ts index 16abf806..be52a4dd 100644 --- a/clients/token-metadata/src/generated/accounts/masterEditionV1.ts +++ b/clients/token-metadata/src/generated/accounts/masterEditionV1.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/accounts/masterEditionV2.ts b/clients/token-metadata/src/generated/accounts/masterEditionV2.ts index cd5749ec..603fc9df 100644 --- a/clients/token-metadata/src/generated/accounts/masterEditionV2.ts +++ b/clients/token-metadata/src/generated/accounts/masterEditionV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/accounts/metadata.ts b/clients/token-metadata/src/generated/accounts/metadata.ts index 04e68b94..178cc882 100644 --- a/clients/token-metadata/src/generated/accounts/metadata.ts +++ b/clients/token-metadata/src/generated/accounts/metadata.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/accounts/metadataDelegateRecord.ts b/clients/token-metadata/src/generated/accounts/metadataDelegateRecord.ts index 6d4fdad4..e72d450b 100644 --- a/clients/token-metadata/src/generated/accounts/metadataDelegateRecord.ts +++ b/clients/token-metadata/src/generated/accounts/metadataDelegateRecord.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/accounts/reservationListV1.ts b/clients/token-metadata/src/generated/accounts/reservationListV1.ts index 3a847477..aa5ae66b 100644 --- a/clients/token-metadata/src/generated/accounts/reservationListV1.ts +++ b/clients/token-metadata/src/generated/accounts/reservationListV1.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/accounts/reservationListV2.ts b/clients/token-metadata/src/generated/accounts/reservationListV2.ts index 17a01e12..70927e56 100644 --- a/clients/token-metadata/src/generated/accounts/reservationListV2.ts +++ b/clients/token-metadata/src/generated/accounts/reservationListV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/accounts/tokenOwnedEscrow.ts b/clients/token-metadata/src/generated/accounts/tokenOwnedEscrow.ts index 3f1b7cd0..6f3242ca 100644 --- a/clients/token-metadata/src/generated/accounts/tokenOwnedEscrow.ts +++ b/clients/token-metadata/src/generated/accounts/tokenOwnedEscrow.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/accounts/tokenRecord.ts b/clients/token-metadata/src/generated/accounts/tokenRecord.ts index dbfc2acb..2f964c99 100644 --- a/clients/token-metadata/src/generated/accounts/tokenRecord.ts +++ b/clients/token-metadata/src/generated/accounts/tokenRecord.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/accounts/useAuthorityRecord.ts b/clients/token-metadata/src/generated/accounts/useAuthorityRecord.ts index ddd31912..e234143d 100644 --- a/clients/token-metadata/src/generated/accounts/useAuthorityRecord.ts +++ b/clients/token-metadata/src/generated/accounts/useAuthorityRecord.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/errors/index.ts b/clients/token-metadata/src/generated/errors/index.ts index 429a704c..552dc19e 100644 --- a/clients/token-metadata/src/generated/errors/index.ts +++ b/clients/token-metadata/src/generated/errors/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/errors/tokenMetadata.ts b/clients/token-metadata/src/generated/errors/tokenMetadata.ts index 92ee396c..80188e8d 100644 --- a/clients/token-metadata/src/generated/errors/tokenMetadata.ts +++ b/clients/token-metadata/src/generated/errors/tokenMetadata.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/index.ts b/clients/token-metadata/src/generated/index.ts index ceeafbb9..975e985c 100644 --- a/clients/token-metadata/src/generated/index.ts +++ b/clients/token-metadata/src/generated/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/instructions/approveCollectionAuthority.ts b/clients/token-metadata/src/generated/instructions/approveCollectionAuthority.ts index aa7f1dcd..617a3880 100644 --- a/clients/token-metadata/src/generated/instructions/approveCollectionAuthority.ts +++ b/clients/token-metadata/src/generated/instructions/approveCollectionAuthority.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -207,7 +207,7 @@ export function getApproveCollectionAuthorityInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "omitted"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.collectionAuthorityRecord), getAccountMeta(accounts.newCollectionAuthority), @@ -218,8 +218,8 @@ export function getApproveCollectionAuthorityInstruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ].filter((x: T | undefined): x is T => x !== undefined), - programAddress, data: getApproveCollectionAuthorityInstructionDataEncoder().encode({}), + programAddress, } as ApproveCollectionAuthorityInstruction< TProgramAddress, TAccountCollectionAuthorityRecord, @@ -230,9 +230,7 @@ export function getApproveCollectionAuthorityInstruction< TAccountMint, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedApproveCollectionAuthorityInstruction< diff --git a/clients/token-metadata/src/generated/instructions/approveUseAuthority.ts b/clients/token-metadata/src/generated/instructions/approveUseAuthority.ts index 9466cfe5..8d10b06c 100644 --- a/clients/token-metadata/src/generated/instructions/approveUseAuthority.ts +++ b/clients/token-metadata/src/generated/instructions/approveUseAuthority.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -261,7 +261,7 @@ export function getApproveUseAuthorityInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "omitted"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.useAuthorityRecord), getAccountMeta(accounts.owner), @@ -275,10 +275,10 @@ export function getApproveUseAuthorityInstruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ].filter((x: T | undefined): x is T => x !== undefined), - programAddress, data: getApproveUseAuthorityInstructionDataEncoder().encode( args as ApproveUseAuthorityInstructionDataArgs, ), + programAddress, } as ApproveUseAuthorityInstruction< TProgramAddress, TAccountUseAuthorityRecord, @@ -292,9 +292,7 @@ export function getApproveUseAuthorityInstruction< TAccountTokenProgram, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedApproveUseAuthorityInstruction< diff --git a/clients/token-metadata/src/generated/instructions/bubblegumSetCollectionSize.ts b/clients/token-metadata/src/generated/instructions/bubblegumSetCollectionSize.ts index b9460e01..f0ce2813 100644 --- a/clients/token-metadata/src/generated/instructions/bubblegumSetCollectionSize.ts +++ b/clients/token-metadata/src/generated/instructions/bubblegumSetCollectionSize.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -204,7 +204,7 @@ export function getBubblegumSetCollectionSizeInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "omitted"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.collectionMetadata), getAccountMeta(accounts.collectionAuthority), @@ -212,10 +212,10 @@ export function getBubblegumSetCollectionSizeInstruction< getAccountMeta(accounts.bubblegumSigner), getAccountMeta(accounts.collectionAuthorityRecord), ].filter((x: T | undefined): x is T => x !== undefined), - programAddress, data: getBubblegumSetCollectionSizeInstructionDataEncoder().encode( args as BubblegumSetCollectionSizeInstructionDataArgs, ), + programAddress, } as BubblegumSetCollectionSizeInstruction< TProgramAddress, TAccountCollectionMetadata, @@ -223,9 +223,7 @@ export function getBubblegumSetCollectionSizeInstruction< TAccountCollectionMint, TAccountBubblegumSigner, TAccountCollectionAuthorityRecord - >; - - return instruction; + >); } export interface ParsedBubblegumSetCollectionSizeInstruction< diff --git a/clients/token-metadata/src/generated/instructions/burn.ts b/clients/token-metadata/src/generated/instructions/burn.ts index d7c4df8a..d7a9100c 100644 --- a/clients/token-metadata/src/generated/instructions/burn.ts +++ b/clients/token-metadata/src/generated/instructions/burn.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -289,7 +289,7 @@ export function getBurnInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.authority), getAccountMeta(accounts.collectionMetadata), @@ -306,10 +306,10 @@ export function getBurnInstruction< getAccountMeta(accounts.sysvarInstructions), getAccountMeta(accounts.splTokenProgram), ], - programAddress, data: getBurnInstructionDataEncoder().encode( args as BurnInstructionDataArgs, ), + programAddress, } as BurnInstruction< TProgramAddress, TAccountAuthority, @@ -326,9 +326,7 @@ export function getBurnInstruction< TAccountSystemProgram, TAccountSysvarInstructions, TAccountSplTokenProgram - >; - - return instruction; + >); } export interface ParsedBurnInstruction< diff --git a/clients/token-metadata/src/generated/instructions/burnEditionNft.ts b/clients/token-metadata/src/generated/instructions/burnEditionNft.ts index 0ac32c7a..a4ac651b 100644 --- a/clients/token-metadata/src/generated/instructions/burnEditionNft.ts +++ b/clients/token-metadata/src/generated/instructions/burnEditionNft.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -239,7 +239,7 @@ export function getBurnEditionNftInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.owner), @@ -252,8 +252,8 @@ export function getBurnEditionNftInstruction< getAccountMeta(accounts.editionMarkerAccount), getAccountMeta(accounts.splTokenProgram), ], - programAddress, data: getBurnEditionNftInstructionDataEncoder().encode({}), + programAddress, } as BurnEditionNftInstruction< TProgramAddress, TAccountMetadata, @@ -266,9 +266,7 @@ export function getBurnEditionNftInstruction< TAccountPrintEditionAccount, TAccountEditionMarkerAccount, TAccountSplTokenProgram - >; - - return instruction; + >); } export interface ParsedBurnEditionNftInstruction< diff --git a/clients/token-metadata/src/generated/instructions/burnNft.ts b/clients/token-metadata/src/generated/instructions/burnNft.ts index 70b15626..888ebdbd 100644 --- a/clients/token-metadata/src/generated/instructions/burnNft.ts +++ b/clients/token-metadata/src/generated/instructions/burnNft.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -198,7 +198,7 @@ export function getBurnNftInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "omitted"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.owner), @@ -208,8 +208,8 @@ export function getBurnNftInstruction< getAccountMeta(accounts.splTokenProgram), getAccountMeta(accounts.collectionMetadata), ].filter((x: T | undefined): x is T => x !== undefined), - programAddress, data: getBurnNftInstructionDataEncoder().encode({}), + programAddress, } as BurnNftInstruction< TProgramAddress, TAccountMetadata, @@ -219,9 +219,7 @@ export function getBurnNftInstruction< TAccountMasterEditionAccount, TAccountSplTokenProgram, TAccountCollectionMetadata - >; - - return instruction; + >); } export interface ParsedBurnNftInstruction< diff --git a/clients/token-metadata/src/generated/instructions/closeAccounts.ts b/clients/token-metadata/src/generated/instructions/closeAccounts.ts index 96c01a54..198385ab 100644 --- a/clients/token-metadata/src/generated/instructions/closeAccounts.ts +++ b/clients/token-metadata/src/generated/instructions/closeAccounts.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -159,7 +159,7 @@ export function getCloseAccountsInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.edition), @@ -167,8 +167,8 @@ export function getCloseAccountsInstruction< getAccountMeta(accounts.authority), getAccountMeta(accounts.destination), ], - programAddress, data: getCloseAccountsInstructionDataEncoder().encode({}), + programAddress, } as CloseAccountsInstruction< TProgramAddress, TAccountMetadata, @@ -176,9 +176,7 @@ export function getCloseAccountsInstruction< TAccountMint, TAccountAuthority, TAccountDestination - >; - - return instruction; + >); } export interface ParsedCloseAccountsInstruction< diff --git a/clients/token-metadata/src/generated/instructions/closeEscrowAccount.ts b/clients/token-metadata/src/generated/instructions/closeEscrowAccount.ts index 848767e4..58851cd8 100644 --- a/clients/token-metadata/src/generated/instructions/closeEscrowAccount.ts +++ b/clients/token-metadata/src/generated/instructions/closeEscrowAccount.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -199,7 +199,7 @@ export function getCloseEscrowAccountInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.escrow), getAccountMeta(accounts.metadata), @@ -210,8 +210,8 @@ export function getCloseEscrowAccountInstruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.sysvarInstructions), ], - programAddress, data: getCloseEscrowAccountInstructionDataEncoder().encode({}), + programAddress, } as CloseEscrowAccountInstruction< TProgramAddress, TAccountEscrow, @@ -222,9 +222,7 @@ export function getCloseEscrowAccountInstruction< TAccountPayer, TAccountSystemProgram, TAccountSysvarInstructions - >; - - return instruction; + >); } export interface ParsedCloseEscrowAccountInstruction< diff --git a/clients/token-metadata/src/generated/instructions/collect.ts b/clients/token-metadata/src/generated/instructions/collect.ts index 21213401..26346b90 100644 --- a/clients/token-metadata/src/generated/instructions/collect.ts +++ b/clients/token-metadata/src/generated/instructions/collect.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -119,20 +119,18 @@ export function getCollectInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.authority), getAccountMeta(accounts.recipient), ], - programAddress, data: getCollectInstructionDataEncoder().encode({}), + programAddress, } as CollectInstruction< TProgramAddress, TAccountAuthority, TAccountRecipient - >; - - return instruction; + >); } export interface ParsedCollectInstruction< @@ -169,10 +167,7 @@ export function parseCollectInstruction< }; return { programAddress: instruction.programAddress, - accounts: { - authority: getNextAccount(), - recipient: getNextAccount(), - }, + accounts: { authority: getNextAccount(), recipient: getNextAccount() }, data: getCollectInstructionDataDecoder().decode(instruction.data), }; } diff --git a/clients/token-metadata/src/generated/instructions/convertMasterEditionV1ToV2.ts b/clients/token-metadata/src/generated/instructions/convertMasterEditionV1ToV2.ts index 088a45e1..e86118b9 100644 --- a/clients/token-metadata/src/generated/instructions/convertMasterEditionV1ToV2.ts +++ b/clients/token-metadata/src/generated/instructions/convertMasterEditionV1ToV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -136,22 +136,20 @@ export function getConvertMasterEditionV1ToV2Instruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.masterEdition), getAccountMeta(accounts.oneTimeAuth), getAccountMeta(accounts.printingMint), ], - programAddress, data: getConvertMasterEditionV1ToV2InstructionDataEncoder().encode({}), + programAddress, } as ConvertMasterEditionV1ToV2Instruction< TProgramAddress, TAccountMasterEdition, TAccountOneTimeAuth, TAccountPrintingMint - >; - - return instruction; + >); } export interface ParsedConvertMasterEditionV1ToV2Instruction< diff --git a/clients/token-metadata/src/generated/instructions/create.ts b/clients/token-metadata/src/generated/instructions/create.ts index d02e60a4..e455b1b9 100644 --- a/clients/token-metadata/src/generated/instructions/create.ts +++ b/clients/token-metadata/src/generated/instructions/create.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -230,7 +230,7 @@ export function getCreateInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.masterEdition), @@ -242,10 +242,10 @@ export function getCreateInstruction< getAccountMeta(accounts.sysvarInstructions), getAccountMeta(accounts.splTokenProgram), ], - programAddress, data: getCreateInstructionDataEncoder().encode( args as CreateInstructionDataArgs, ), + programAddress, } as CreateInstruction< TProgramAddress, TAccountMetadata, @@ -257,9 +257,7 @@ export function getCreateInstruction< TAccountSystemProgram, TAccountSysvarInstructions, TAccountSplTokenProgram - >; - - return instruction; + >); } export interface ParsedCreateInstruction< diff --git a/clients/token-metadata/src/generated/instructions/createEscrowAccount.ts b/clients/token-metadata/src/generated/instructions/createEscrowAccount.ts index 1943b636..11a03429 100644 --- a/clients/token-metadata/src/generated/instructions/createEscrowAccount.ts +++ b/clients/token-metadata/src/generated/instructions/createEscrowAccount.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -216,7 +216,7 @@ export function getCreateEscrowAccountInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "omitted"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.escrow), getAccountMeta(accounts.metadata), @@ -228,8 +228,8 @@ export function getCreateEscrowAccountInstruction< getAccountMeta(accounts.sysvarInstructions), getAccountMeta(accounts.authority), ].filter((x: T | undefined): x is T => x !== undefined), - programAddress, data: getCreateEscrowAccountInstructionDataEncoder().encode({}), + programAddress, } as CreateEscrowAccountInstruction< TProgramAddress, TAccountEscrow, @@ -241,9 +241,7 @@ export function getCreateEscrowAccountInstruction< TAccountSystemProgram, TAccountSysvarInstructions, TAccountAuthority - >; - - return instruction; + >); } export interface ParsedCreateEscrowAccountInstruction< diff --git a/clients/token-metadata/src/generated/instructions/createMasterEdition.ts b/clients/token-metadata/src/generated/instructions/createMasterEdition.ts index 37d5edea..984f95d2 100644 --- a/clients/token-metadata/src/generated/instructions/createMasterEdition.ts +++ b/clients/token-metadata/src/generated/instructions/createMasterEdition.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -213,7 +213,7 @@ export function getCreateMasterEditionInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.edition), getAccountMeta(accounts.mint), @@ -225,8 +225,8 @@ export function getCreateMasterEditionInstruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ], - programAddress, data: getCreateMasterEditionInstructionDataEncoder().encode({}), + programAddress, } as CreateMasterEditionInstruction< TProgramAddress, TAccountEdition, @@ -238,9 +238,7 @@ export function getCreateMasterEditionInstruction< TAccountTokenProgram, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedCreateMasterEditionInstruction< diff --git a/clients/token-metadata/src/generated/instructions/createMasterEditionV3.ts b/clients/token-metadata/src/generated/instructions/createMasterEditionV3.ts index f006db08..5ad2c7a7 100644 --- a/clients/token-metadata/src/generated/instructions/createMasterEditionV3.ts +++ b/clients/token-metadata/src/generated/instructions/createMasterEditionV3.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -238,7 +238,7 @@ export function getCreateMasterEditionV3Instruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "omitted"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.edition), getAccountMeta(accounts.mint), @@ -250,10 +250,10 @@ export function getCreateMasterEditionV3Instruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ].filter((x: T | undefined): x is T => x !== undefined), - programAddress, data: getCreateMasterEditionV3InstructionDataEncoder().encode( args as CreateMasterEditionV3InstructionDataArgs, ), + programAddress, } as CreateMasterEditionV3Instruction< TProgramAddress, TAccountEdition, @@ -265,9 +265,7 @@ export function getCreateMasterEditionV3Instruction< TAccountTokenProgram, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedCreateMasterEditionV3Instruction< diff --git a/clients/token-metadata/src/generated/instructions/createMetadataAccount.ts b/clients/token-metadata/src/generated/instructions/createMetadataAccount.ts index 789c15de..bcbfc801 100644 --- a/clients/token-metadata/src/generated/instructions/createMetadataAccount.ts +++ b/clients/token-metadata/src/generated/instructions/createMetadataAccount.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -190,7 +190,7 @@ export function getCreateMetadataAccountInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.mint), @@ -200,8 +200,8 @@ export function getCreateMetadataAccountInstruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ], - programAddress, data: getCreateMetadataAccountInstructionDataEncoder().encode({}), + programAddress, } as CreateMetadataAccountInstruction< TProgramAddress, TAccountMetadata, @@ -211,9 +211,7 @@ export function getCreateMetadataAccountInstruction< TAccountUpdateAuthority, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedCreateMetadataAccountInstruction< diff --git a/clients/token-metadata/src/generated/instructions/createMetadataAccountV2.ts b/clients/token-metadata/src/generated/instructions/createMetadataAccountV2.ts index 653fb52e..c5fbd56f 100644 --- a/clients/token-metadata/src/generated/instructions/createMetadataAccountV2.ts +++ b/clients/token-metadata/src/generated/instructions/createMetadataAccountV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -194,7 +194,7 @@ export function getCreateMetadataAccountV2Instruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "omitted"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.mint), @@ -204,8 +204,8 @@ export function getCreateMetadataAccountV2Instruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ].filter((x: T | undefined): x is T => x !== undefined), - programAddress, data: getCreateMetadataAccountV2InstructionDataEncoder().encode({}), + programAddress, } as CreateMetadataAccountV2Instruction< TProgramAddress, TAccountMetadata, @@ -215,9 +215,7 @@ export function getCreateMetadataAccountV2Instruction< TAccountUpdateAuthority, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedCreateMetadataAccountV2Instruction< diff --git a/clients/token-metadata/src/generated/instructions/createMetadataAccountV3.ts b/clients/token-metadata/src/generated/instructions/createMetadataAccountV3.ts index a7177aad..2691fda5 100644 --- a/clients/token-metadata/src/generated/instructions/createMetadataAccountV3.ts +++ b/clients/token-metadata/src/generated/instructions/createMetadataAccountV3.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -220,7 +220,7 @@ export function getCreateMetadataAccountV3Instruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "omitted"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.mint), @@ -230,10 +230,10 @@ export function getCreateMetadataAccountV3Instruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ].filter((x: T | undefined): x is T => x !== undefined), - programAddress, data: getCreateMetadataAccountV3InstructionDataEncoder().encode( args as CreateMetadataAccountV3InstructionDataArgs, ), + programAddress, } as CreateMetadataAccountV3Instruction< TProgramAddress, TAccountMetadata, @@ -246,9 +246,7 @@ export function getCreateMetadataAccountV3Instruction< : TAccountUpdateAuthority, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedCreateMetadataAccountV3Instruction< diff --git a/clients/token-metadata/src/generated/instructions/delegate.ts b/clients/token-metadata/src/generated/instructions/delegate.ts index e9fb5f41..723b98f3 100644 --- a/clients/token-metadata/src/generated/instructions/delegate.ts +++ b/clients/token-metadata/src/generated/instructions/delegate.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -291,7 +291,7 @@ export function getDelegateInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.delegateRecord), getAccountMeta(accounts.delegate), @@ -308,10 +308,10 @@ export function getDelegateInstruction< getAccountMeta(accounts.authorizationRulesProgram), getAccountMeta(accounts.authorizationRules), ], - programAddress, data: getDelegateInstructionDataEncoder().encode( args as DelegateInstructionDataArgs, ), + programAddress, } as DelegateInstruction< TProgramAddress, TAccountDelegateRecord, @@ -328,9 +328,7 @@ export function getDelegateInstruction< TAccountSplTokenProgram, TAccountAuthorizationRulesProgram, TAccountAuthorizationRules - >; - - return instruction; + >); } export interface ParsedDelegateInstruction< diff --git a/clients/token-metadata/src/generated/instructions/deprecatedCreateMasterEdition.ts b/clients/token-metadata/src/generated/instructions/deprecatedCreateMasterEdition.ts index e33ac64e..04dd29bb 100644 --- a/clients/token-metadata/src/generated/instructions/deprecatedCreateMasterEdition.ts +++ b/clients/token-metadata/src/generated/instructions/deprecatedCreateMasterEdition.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -271,7 +271,7 @@ export function getDeprecatedCreateMasterEditionInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.edition), getAccountMeta(accounts.mint), @@ -287,8 +287,8 @@ export function getDeprecatedCreateMasterEditionInstruction< getAccountMeta(accounts.rent), getAccountMeta(accounts.oneTimePrintingAuthorizationMintAuthority), ], - programAddress, data: getDeprecatedCreateMasterEditionInstructionDataEncoder().encode({}), + programAddress, } as DeprecatedCreateMasterEditionInstruction< TProgramAddress, TAccountEdition, @@ -304,9 +304,7 @@ export function getDeprecatedCreateMasterEditionInstruction< TAccountSystemProgram, TAccountRent, TAccountOneTimePrintingAuthorizationMintAuthority - >; - - return instruction; + >); } export interface ParsedDeprecatedCreateMasterEditionInstruction< diff --git a/clients/token-metadata/src/generated/instructions/deprecatedCreateReservationList.ts b/clients/token-metadata/src/generated/instructions/deprecatedCreateReservationList.ts index f0ea871b..f1af500f 100644 --- a/clients/token-metadata/src/generated/instructions/deprecatedCreateReservationList.ts +++ b/clients/token-metadata/src/generated/instructions/deprecatedCreateReservationList.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -202,7 +202,7 @@ export function getDeprecatedCreateReservationListInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.reservationList), getAccountMeta(accounts.payer), @@ -213,8 +213,8 @@ export function getDeprecatedCreateReservationListInstruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ], - programAddress, data: getDeprecatedCreateReservationListInstructionDataEncoder().encode({}), + programAddress, } as DeprecatedCreateReservationListInstruction< TProgramAddress, TAccountReservationList, @@ -225,9 +225,7 @@ export function getDeprecatedCreateReservationListInstruction< TAccountMetadata, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedDeprecatedCreateReservationListInstruction< diff --git a/clients/token-metadata/src/generated/instructions/deprecatedMintNewEditionFromMasterEditionViaPrintingToken.ts b/clients/token-metadata/src/generated/instructions/deprecatedMintNewEditionFromMasterEditionViaPrintingToken.ts index 636e6d54..f5b7f669 100644 --- a/clients/token-metadata/src/generated/instructions/deprecatedMintNewEditionFromMasterEditionViaPrintingToken.ts +++ b/clients/token-metadata/src/generated/instructions/deprecatedMintNewEditionFromMasterEditionViaPrintingToken.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -299,7 +299,7 @@ export function getDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInst >; const getAccountMeta = getAccountMetaFactory(programAddress, "omitted"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.edition), @@ -318,10 +318,10 @@ export function getDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInst getAccountMeta(accounts.rent), getAccountMeta(accounts.reservationList), ].filter((x: T | undefined): x is T => x !== undefined), - programAddress, data: getDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstructionDataEncoder().encode( {}, ), + programAddress, } as DeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstruction< TProgramAddress, TAccountMetadata, @@ -340,9 +340,7 @@ export function getDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInst TAccountSystemProgram, TAccountRent, TAccountReservationList - >; - - return instruction; + >); } export interface ParsedDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenInstruction< diff --git a/clients/token-metadata/src/generated/instructions/deprecatedMintPrintingTokens.ts b/clients/token-metadata/src/generated/instructions/deprecatedMintPrintingTokens.ts index 3489a3fa..345e14fc 100644 --- a/clients/token-metadata/src/generated/instructions/deprecatedMintPrintingTokens.ts +++ b/clients/token-metadata/src/generated/instructions/deprecatedMintPrintingTokens.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -188,7 +188,7 @@ export function getDeprecatedMintPrintingTokensInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.destination), getAccountMeta(accounts.printingMint), @@ -198,8 +198,8 @@ export function getDeprecatedMintPrintingTokensInstruction< getAccountMeta(accounts.tokenProgram), getAccountMeta(accounts.rent), ], - programAddress, data: getDeprecatedMintPrintingTokensInstructionDataEncoder().encode({}), + programAddress, } as DeprecatedMintPrintingTokensInstruction< TProgramAddress, TAccountDestination, @@ -209,9 +209,7 @@ export function getDeprecatedMintPrintingTokensInstruction< TAccountMasterEdition, TAccountTokenProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedDeprecatedMintPrintingTokensInstruction< diff --git a/clients/token-metadata/src/generated/instructions/deprecatedMintPrintingTokensViaToken.ts b/clients/token-metadata/src/generated/instructions/deprecatedMintPrintingTokensViaToken.ts index a54e8441..934f9732 100644 --- a/clients/token-metadata/src/generated/instructions/deprecatedMintPrintingTokensViaToken.ts +++ b/clients/token-metadata/src/generated/instructions/deprecatedMintPrintingTokensViaToken.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -214,7 +214,7 @@ export function getDeprecatedMintPrintingTokensViaTokenInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.destination), getAccountMeta(accounts.token), @@ -226,10 +226,10 @@ export function getDeprecatedMintPrintingTokensViaTokenInstruction< getAccountMeta(accounts.tokenProgram), getAccountMeta(accounts.rent), ], - programAddress, data: getDeprecatedMintPrintingTokensViaTokenInstructionDataEncoder().encode( {}, ), + programAddress, } as DeprecatedMintPrintingTokensViaTokenInstruction< TProgramAddress, TAccountDestination, @@ -241,9 +241,7 @@ export function getDeprecatedMintPrintingTokensViaTokenInstruction< TAccountMasterEdition, TAccountTokenProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedDeprecatedMintPrintingTokensViaTokenInstruction< diff --git a/clients/token-metadata/src/generated/instructions/deprecatedSetReservationList.ts b/clients/token-metadata/src/generated/instructions/deprecatedSetReservationList.ts index 5b875963..df4c5ea3 100644 --- a/clients/token-metadata/src/generated/instructions/deprecatedSetReservationList.ts +++ b/clients/token-metadata/src/generated/instructions/deprecatedSetReservationList.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -140,22 +140,20 @@ export function getDeprecatedSetReservationListInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.masterEdition), getAccountMeta(accounts.reservationList), getAccountMeta(accounts.resource), ], - programAddress, data: getDeprecatedSetReservationListInstructionDataEncoder().encode({}), + programAddress, } as DeprecatedSetReservationListInstruction< TProgramAddress, TAccountMasterEdition, TAccountReservationList, TAccountResource - >; - - return instruction; + >); } export interface ParsedDeprecatedSetReservationListInstruction< diff --git a/clients/token-metadata/src/generated/instructions/freezeDelegatedAccount.ts b/clients/token-metadata/src/generated/instructions/freezeDelegatedAccount.ts index 3b920aa7..46964ef5 100644 --- a/clients/token-metadata/src/generated/instructions/freezeDelegatedAccount.ts +++ b/clients/token-metadata/src/generated/instructions/freezeDelegatedAccount.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -163,7 +163,7 @@ export function getFreezeDelegatedAccountInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.delegate), getAccountMeta(accounts.tokenAccount), @@ -171,8 +171,8 @@ export function getFreezeDelegatedAccountInstruction< getAccountMeta(accounts.mint), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getFreezeDelegatedAccountInstructionDataEncoder().encode({}), + programAddress, } as FreezeDelegatedAccountInstruction< TProgramAddress, TAccountDelegate, @@ -180,9 +180,7 @@ export function getFreezeDelegatedAccountInstruction< TAccountEdition, TAccountMint, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedFreezeDelegatedAccountInstruction< diff --git a/clients/token-metadata/src/generated/instructions/index.ts b/clients/token-metadata/src/generated/instructions/index.ts index 5bc67255..1d9e33c8 100644 --- a/clients/token-metadata/src/generated/instructions/index.ts +++ b/clients/token-metadata/src/generated/instructions/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/instructions/lock.ts b/clients/token-metadata/src/generated/instructions/lock.ts index b4024274..1631c209 100644 --- a/clients/token-metadata/src/generated/instructions/lock.ts +++ b/clients/token-metadata/src/generated/instructions/lock.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -277,7 +277,7 @@ export function getLockInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.authority), getAccountMeta(accounts.tokenOwner), @@ -293,10 +293,10 @@ export function getLockInstruction< getAccountMeta(accounts.authorizationRulesProgram), getAccountMeta(accounts.authorizationRules), ], - programAddress, data: getLockInstructionDataEncoder().encode( args as LockInstructionDataArgs, ), + programAddress, } as LockInstruction< TProgramAddress, TAccountAuthority, @@ -312,9 +312,7 @@ export function getLockInstruction< TAccountSplTokenProgram, TAccountAuthorizationRulesProgram, TAccountAuthorizationRules - >; - - return instruction; + >); } export interface ParsedLockInstruction< diff --git a/clients/token-metadata/src/generated/instructions/migrate.ts b/clients/token-metadata/src/generated/instructions/migrate.ts index ba5bc2b3..776c78f3 100644 --- a/clients/token-metadata/src/generated/instructions/migrate.ts +++ b/clients/token-metadata/src/generated/instructions/migrate.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -287,7 +287,7 @@ export function getMigrateInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.edition), @@ -305,8 +305,8 @@ export function getMigrateInstruction< getAccountMeta(accounts.authorizationRulesProgram), getAccountMeta(accounts.authorizationRules), ], - programAddress, data: getMigrateInstructionDataEncoder().encode({}), + programAddress, } as MigrateInstruction< TProgramAddress, TAccountMetadata, @@ -324,9 +324,7 @@ export function getMigrateInstruction< TAccountSplTokenProgram, TAccountAuthorizationRulesProgram, TAccountAuthorizationRules - >; - - return instruction; + >); } export interface ParsedMigrateInstruction< diff --git a/clients/token-metadata/src/generated/instructions/mint.ts b/clients/token-metadata/src/generated/instructions/mint.ts index 79bc49b7..921dfc42 100644 --- a/clients/token-metadata/src/generated/instructions/mint.ts +++ b/clients/token-metadata/src/generated/instructions/mint.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -299,7 +299,7 @@ export function getMintInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.token), getAccountMeta(accounts.tokenOwner), @@ -317,10 +317,10 @@ export function getMintInstruction< getAccountMeta(accounts.authorizationRulesProgram), getAccountMeta(accounts.authorizationRules), ], - programAddress, data: getMintInstructionDataEncoder().encode( args as MintInstructionDataArgs, ), + programAddress, } as MintInstruction< TProgramAddress, TAccountToken, @@ -338,9 +338,7 @@ export function getMintInstruction< TAccountSplAtaProgram, TAccountAuthorizationRulesProgram, TAccountAuthorizationRules - >; - - return instruction; + >); } export interface ParsedMintInstruction< diff --git a/clients/token-metadata/src/generated/instructions/mintNewEditionFromMasterEditionViaToken.ts b/clients/token-metadata/src/generated/instructions/mintNewEditionFromMasterEditionViaToken.ts index ed99bda2..76bf0e5e 100644 --- a/clients/token-metadata/src/generated/instructions/mintNewEditionFromMasterEditionViaToken.ts +++ b/clients/token-metadata/src/generated/instructions/mintNewEditionFromMasterEditionViaToken.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -308,7 +308,7 @@ export function getMintNewEditionFromMasterEditionViaTokenInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "omitted"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.newMetadata), getAccountMeta(accounts.newEdition), @@ -325,10 +325,10 @@ export function getMintNewEditionFromMasterEditionViaTokenInstruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ].filter((x: T | undefined): x is T => x !== undefined), - programAddress, data: getMintNewEditionFromMasterEditionViaTokenInstructionDataEncoder().encode( args as MintNewEditionFromMasterEditionViaTokenInstructionDataArgs, ), + programAddress, } as MintNewEditionFromMasterEditionViaTokenInstruction< TProgramAddress, TAccountNewMetadata, @@ -345,9 +345,7 @@ export function getMintNewEditionFromMasterEditionViaTokenInstruction< TAccountTokenProgram, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedMintNewEditionFromMasterEditionViaTokenInstruction< diff --git a/clients/token-metadata/src/generated/instructions/mintNewEditionFromMasterEditionViaVaultProxy.ts b/clients/token-metadata/src/generated/instructions/mintNewEditionFromMasterEditionViaVaultProxy.ts index e0fe163c..e6a9b284 100644 --- a/clients/token-metadata/src/generated/instructions/mintNewEditionFromMasterEditionViaVaultProxy.ts +++ b/clients/token-metadata/src/generated/instructions/mintNewEditionFromMasterEditionViaVaultProxy.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -347,7 +347,7 @@ export function getMintNewEditionFromMasterEditionViaVaultProxyInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "omitted"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.newMetadata), getAccountMeta(accounts.newEdition), @@ -367,10 +367,10 @@ export function getMintNewEditionFromMasterEditionViaVaultProxyInstruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ].filter((x: T | undefined): x is T => x !== undefined), - programAddress, data: getMintNewEditionFromMasterEditionViaVaultProxyInstructionDataEncoder().encode( args as MintNewEditionFromMasterEditionViaVaultProxyInstructionDataArgs, ), + programAddress, } as MintNewEditionFromMasterEditionViaVaultProxyInstruction< TProgramAddress, TAccountNewMetadata, @@ -390,9 +390,7 @@ export function getMintNewEditionFromMasterEditionViaVaultProxyInstruction< TAccountTokenVaultProgram, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedMintNewEditionFromMasterEditionViaVaultProxyInstruction< diff --git a/clients/token-metadata/src/generated/instructions/print.ts b/clients/token-metadata/src/generated/instructions/print.ts index 181d8460..340a9d26 100644 --- a/clients/token-metadata/src/generated/instructions/print.ts +++ b/clients/token-metadata/src/generated/instructions/print.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -355,7 +355,7 @@ export function getPrintInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.editionMetadata), getAccountMeta(accounts.edition), @@ -376,10 +376,10 @@ export function getPrintInstruction< getAccountMeta(accounts.sysvarInstructions), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getPrintInstructionDataEncoder().encode( args as PrintInstructionDataArgs, ), + programAddress, } as PrintInstruction< TProgramAddress, TAccountEditionMetadata, @@ -403,9 +403,7 @@ export function getPrintInstruction< TAccountSplAtaProgram, TAccountSysvarInstructions, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedPrintInstruction< diff --git a/clients/token-metadata/src/generated/instructions/puffMetadata.ts b/clients/token-metadata/src/generated/instructions/puffMetadata.ts index dd2b9fd2..7afa3fe2 100644 --- a/clients/token-metadata/src/generated/instructions/puffMetadata.ts +++ b/clients/token-metadata/src/generated/instructions/puffMetadata.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -104,13 +104,11 @@ export function getPuffMetadataInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [getAccountMeta(accounts.metadata)], - programAddress, data: getPuffMetadataInstructionDataEncoder().encode({}), - } as PuffMetadataInstruction; - - return instruction; + programAddress, + } as PuffMetadataInstruction); } export interface ParsedPuffMetadataInstruction< @@ -145,9 +143,7 @@ export function parsePuffMetadataInstruction< }; return { programAddress: instruction.programAddress, - accounts: { - metadata: getNextAccount(), - }, + accounts: { metadata: getNextAccount() }, data: getPuffMetadataInstructionDataDecoder().decode(instruction.data), }; } diff --git a/clients/token-metadata/src/generated/instructions/removeCreatorVerification.ts b/clients/token-metadata/src/generated/instructions/removeCreatorVerification.ts index 800ec127..ff117c06 100644 --- a/clients/token-metadata/src/generated/instructions/removeCreatorVerification.ts +++ b/clients/token-metadata/src/generated/instructions/removeCreatorVerification.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -126,20 +126,18 @@ export function getRemoveCreatorVerificationInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.creator), ], - programAddress, data: getRemoveCreatorVerificationInstructionDataEncoder().encode({}), + programAddress, } as RemoveCreatorVerificationInstruction< TProgramAddress, TAccountMetadata, TAccountCreator - >; - - return instruction; + >); } export interface ParsedRemoveCreatorVerificationInstruction< @@ -176,10 +174,7 @@ export function parseRemoveCreatorVerificationInstruction< }; return { programAddress: instruction.programAddress, - accounts: { - metadata: getNextAccount(), - creator: getNextAccount(), - }, + accounts: { metadata: getNextAccount(), creator: getNextAccount() }, data: getRemoveCreatorVerificationInstructionDataDecoder().decode( instruction.data, ), diff --git a/clients/token-metadata/src/generated/instructions/resize.ts b/clients/token-metadata/src/generated/instructions/resize.ts index 377de455..0f3b7f7f 100644 --- a/clients/token-metadata/src/generated/instructions/resize.ts +++ b/clients/token-metadata/src/generated/instructions/resize.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -185,7 +185,7 @@ export function getResizeInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.edition), @@ -195,8 +195,8 @@ export function getResizeInstruction< getAccountMeta(accounts.token), getAccountMeta(accounts.systemProgram), ], - programAddress, data: getResizeInstructionDataEncoder().encode({}), + programAddress, } as ResizeInstruction< TProgramAddress, TAccountMetadata, @@ -208,9 +208,7 @@ export function getResizeInstruction< TAccountAuthority, TAccountToken, TAccountSystemProgram - >; - - return instruction; + >); } export interface ParsedResizeInstruction< diff --git a/clients/token-metadata/src/generated/instructions/revoke.ts b/clients/token-metadata/src/generated/instructions/revoke.ts index 7fde097e..6d5f6074 100644 --- a/clients/token-metadata/src/generated/instructions/revoke.ts +++ b/clients/token-metadata/src/generated/instructions/revoke.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -288,7 +288,7 @@ export function getRevokeInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.delegateRecord), getAccountMeta(accounts.delegate), @@ -305,10 +305,10 @@ export function getRevokeInstruction< getAccountMeta(accounts.authorizationRulesProgram), getAccountMeta(accounts.authorizationRules), ], - programAddress, data: getRevokeInstructionDataEncoder().encode( args as RevokeInstructionDataArgs, ), + programAddress, } as RevokeInstruction< TProgramAddress, TAccountDelegateRecord, @@ -325,9 +325,7 @@ export function getRevokeInstruction< TAccountSplTokenProgram, TAccountAuthorizationRulesProgram, TAccountAuthorizationRules - >; - - return instruction; + >); } export interface ParsedRevokeInstruction< diff --git a/clients/token-metadata/src/generated/instructions/revokeCollectionAuthority.ts b/clients/token-metadata/src/generated/instructions/revokeCollectionAuthority.ts index 34b7c798..d7c7efea 100644 --- a/clients/token-metadata/src/generated/instructions/revokeCollectionAuthority.ts +++ b/clients/token-metadata/src/generated/instructions/revokeCollectionAuthority.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -169,7 +169,7 @@ export function getRevokeCollectionAuthorityInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.collectionAuthorityRecord), getAccountMeta(accounts.delegateAuthority), @@ -177,8 +177,8 @@ export function getRevokeCollectionAuthorityInstruction< getAccountMeta(accounts.metadata), getAccountMeta(accounts.mint), ], - programAddress, data: getRevokeCollectionAuthorityInstructionDataEncoder().encode({}), + programAddress, } as RevokeCollectionAuthorityInstruction< TProgramAddress, TAccountCollectionAuthorityRecord, @@ -186,9 +186,7 @@ export function getRevokeCollectionAuthorityInstruction< TAccountRevokeAuthority, TAccountMetadata, TAccountMint - >; - - return instruction; + >); } export interface ParsedRevokeCollectionAuthorityInstruction< diff --git a/clients/token-metadata/src/generated/instructions/revokeUseAuthority.ts b/clients/token-metadata/src/generated/instructions/revokeUseAuthority.ts index df2acc0c..109a92d3 100644 --- a/clients/token-metadata/src/generated/instructions/revokeUseAuthority.ts +++ b/clients/token-metadata/src/generated/instructions/revokeUseAuthority.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -217,7 +217,7 @@ export function getRevokeUseAuthorityInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "omitted"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.useAuthorityRecord), getAccountMeta(accounts.owner), @@ -229,8 +229,8 @@ export function getRevokeUseAuthorityInstruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.rent), ].filter((x: T | undefined): x is T => x !== undefined), - programAddress, data: getRevokeUseAuthorityInstructionDataEncoder().encode({}), + programAddress, } as RevokeUseAuthorityInstruction< TProgramAddress, TAccountUseAuthorityRecord, @@ -242,9 +242,7 @@ export function getRevokeUseAuthorityInstruction< TAccountTokenProgram, TAccountSystemProgram, TAccountRent - >; - - return instruction; + >); } export interface ParsedRevokeUseAuthorityInstruction< diff --git a/clients/token-metadata/src/generated/instructions/setAndVerifyCollection.ts b/clients/token-metadata/src/generated/instructions/setAndVerifyCollection.ts index 302d88a3..fb1f4ad0 100644 --- a/clients/token-metadata/src/generated/instructions/setAndVerifyCollection.ts +++ b/clients/token-metadata/src/generated/instructions/setAndVerifyCollection.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -216,7 +216,7 @@ export function getSetAndVerifyCollectionInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "omitted"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.collectionAuthority), @@ -227,8 +227,8 @@ export function getSetAndVerifyCollectionInstruction< getAccountMeta(accounts.collectionMasterEditionAccount), getAccountMeta(accounts.collectionAuthorityRecord), ].filter((x: T | undefined): x is T => x !== undefined), - programAddress, data: getSetAndVerifyCollectionInstructionDataEncoder().encode({}), + programAddress, } as SetAndVerifyCollectionInstruction< TProgramAddress, TAccountMetadata, @@ -239,9 +239,7 @@ export function getSetAndVerifyCollectionInstruction< TAccountCollection, TAccountCollectionMasterEditionAccount, TAccountCollectionAuthorityRecord - >; - - return instruction; + >); } export interface ParsedSetAndVerifyCollectionInstruction< diff --git a/clients/token-metadata/src/generated/instructions/setAndVerifySizedCollectionItem.ts b/clients/token-metadata/src/generated/instructions/setAndVerifySizedCollectionItem.ts index 394259f4..b5a9ae13 100644 --- a/clients/token-metadata/src/generated/instructions/setAndVerifySizedCollectionItem.ts +++ b/clients/token-metadata/src/generated/instructions/setAndVerifySizedCollectionItem.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -219,7 +219,7 @@ export function getSetAndVerifySizedCollectionItemInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "omitted"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.collectionAuthority), @@ -230,8 +230,8 @@ export function getSetAndVerifySizedCollectionItemInstruction< getAccountMeta(accounts.collectionMasterEditionAccount), getAccountMeta(accounts.collectionAuthorityRecord), ].filter((x: T | undefined): x is T => x !== undefined), - programAddress, data: getSetAndVerifySizedCollectionItemInstructionDataEncoder().encode({}), + programAddress, } as SetAndVerifySizedCollectionItemInstruction< TProgramAddress, TAccountMetadata, @@ -242,9 +242,7 @@ export function getSetAndVerifySizedCollectionItemInstruction< TAccountCollection, TAccountCollectionMasterEditionAccount, TAccountCollectionAuthorityRecord - >; - - return instruction; + >); } export interface ParsedSetAndVerifySizedCollectionItemInstruction< diff --git a/clients/token-metadata/src/generated/instructions/setCollectionSize.ts b/clients/token-metadata/src/generated/instructions/setCollectionSize.ts index d166710a..75b87d2c 100644 --- a/clients/token-metadata/src/generated/instructions/setCollectionSize.ts +++ b/clients/token-metadata/src/generated/instructions/setCollectionSize.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -186,26 +186,24 @@ export function getSetCollectionSizeInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "omitted"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.collectionMetadata), getAccountMeta(accounts.collectionAuthority), getAccountMeta(accounts.collectionMint), getAccountMeta(accounts.collectionAuthorityRecord), ].filter((x: T | undefined): x is T => x !== undefined), - programAddress, data: getSetCollectionSizeInstructionDataEncoder().encode( args as SetCollectionSizeInstructionDataArgs, ), + programAddress, } as SetCollectionSizeInstruction< TProgramAddress, TAccountCollectionMetadata, TAccountCollectionAuthority, TAccountCollectionMint, TAccountCollectionAuthorityRecord - >; - - return instruction; + >); } export interface ParsedSetCollectionSizeInstruction< diff --git a/clients/token-metadata/src/generated/instructions/setTokenStandard.ts b/clients/token-metadata/src/generated/instructions/setTokenStandard.ts index 347ce195..bbad4f31 100644 --- a/clients/token-metadata/src/generated/instructions/setTokenStandard.ts +++ b/clients/token-metadata/src/generated/instructions/setTokenStandard.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -156,24 +156,22 @@ export function getSetTokenStandardInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "omitted"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.updateAuthority), getAccountMeta(accounts.mint), getAccountMeta(accounts.edition), ].filter((x: T | undefined): x is T => x !== undefined), - programAddress, data: getSetTokenStandardInstructionDataEncoder().encode({}), + programAddress, } as SetTokenStandardInstruction< TProgramAddress, TAccountMetadata, TAccountUpdateAuthority, TAccountMint, TAccountEdition - >; - - return instruction; + >); } export interface ParsedSetTokenStandardInstruction< diff --git a/clients/token-metadata/src/generated/instructions/signMetadata.ts b/clients/token-metadata/src/generated/instructions/signMetadata.ts index 7ae5f202..55fb8372 100644 --- a/clients/token-metadata/src/generated/instructions/signMetadata.ts +++ b/clients/token-metadata/src/generated/instructions/signMetadata.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -119,20 +119,18 @@ export function getSignMetadataInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.creator), ], - programAddress, data: getSignMetadataInstructionDataEncoder().encode({}), + programAddress, } as SignMetadataInstruction< TProgramAddress, TAccountMetadata, TAccountCreator - >; - - return instruction; + >); } export interface ParsedSignMetadataInstruction< @@ -169,10 +167,7 @@ export function parseSignMetadataInstruction< }; return { programAddress: instruction.programAddress, - accounts: { - metadata: getNextAccount(), - creator: getNextAccount(), - }, + accounts: { metadata: getNextAccount(), creator: getNextAccount() }, data: getSignMetadataInstructionDataDecoder().decode(instruction.data), }; } diff --git a/clients/token-metadata/src/generated/instructions/thawDelegatedAccount.ts b/clients/token-metadata/src/generated/instructions/thawDelegatedAccount.ts index 8b55558e..726b50f9 100644 --- a/clients/token-metadata/src/generated/instructions/thawDelegatedAccount.ts +++ b/clients/token-metadata/src/generated/instructions/thawDelegatedAccount.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -163,7 +163,7 @@ export function getThawDelegatedAccountInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.delegate), getAccountMeta(accounts.tokenAccount), @@ -171,8 +171,8 @@ export function getThawDelegatedAccountInstruction< getAccountMeta(accounts.mint), getAccountMeta(accounts.tokenProgram), ], - programAddress, data: getThawDelegatedAccountInstructionDataEncoder().encode({}), + programAddress, } as ThawDelegatedAccountInstruction< TProgramAddress, TAccountDelegate, @@ -180,9 +180,7 @@ export function getThawDelegatedAccountInstruction< TAccountEdition, TAccountMint, TAccountTokenProgram - >; - - return instruction; + >); } export interface ParsedThawDelegatedAccountInstruction< diff --git a/clients/token-metadata/src/generated/instructions/transfer.ts b/clients/token-metadata/src/generated/instructions/transfer.ts index 47692024..573a1d56 100644 --- a/clients/token-metadata/src/generated/instructions/transfer.ts +++ b/clients/token-metadata/src/generated/instructions/transfer.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -333,7 +333,7 @@ export function getTransferInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.token), getAccountMeta(accounts.tokenOwner), @@ -353,10 +353,10 @@ export function getTransferInstruction< getAccountMeta(accounts.authorizationRulesProgram), getAccountMeta(accounts.authorizationRules), ], - programAddress, data: getTransferInstructionDataEncoder().encode( args as TransferInstructionDataArgs, ), + programAddress, } as TransferInstruction< TProgramAddress, TAccountToken, @@ -376,9 +376,7 @@ export function getTransferInstruction< TAccountSplAtaProgram, TAccountAuthorizationRulesProgram, TAccountAuthorizationRules - >; - - return instruction; + >); } export interface ParsedTransferInstruction< diff --git a/clients/token-metadata/src/generated/instructions/transferOutOfEscrow.ts b/clients/token-metadata/src/generated/instructions/transferOutOfEscrow.ts index b0add421..1911e4b7 100644 --- a/clients/token-metadata/src/generated/instructions/transferOutOfEscrow.ts +++ b/clients/token-metadata/src/generated/instructions/transferOutOfEscrow.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -281,7 +281,7 @@ export function getTransferOutOfEscrowInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "omitted"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.escrow), getAccountMeta(accounts.metadata), @@ -297,10 +297,10 @@ export function getTransferOutOfEscrowInstruction< getAccountMeta(accounts.sysvarInstructions), getAccountMeta(accounts.authority), ].filter((x: T | undefined): x is T => x !== undefined), - programAddress, data: getTransferOutOfEscrowInstructionDataEncoder().encode( args as TransferOutOfEscrowInstructionDataArgs, ), + programAddress, } as TransferOutOfEscrowInstruction< TProgramAddress, TAccountEscrow, @@ -316,9 +316,7 @@ export function getTransferOutOfEscrowInstruction< TAccountTokenProgram, TAccountSysvarInstructions, TAccountAuthority - >; - - return instruction; + >); } export interface ParsedTransferOutOfEscrowInstruction< diff --git a/clients/token-metadata/src/generated/instructions/unlock.ts b/clients/token-metadata/src/generated/instructions/unlock.ts index 961bf0ff..488a126d 100644 --- a/clients/token-metadata/src/generated/instructions/unlock.ts +++ b/clients/token-metadata/src/generated/instructions/unlock.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -277,7 +277,7 @@ export function getUnlockInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.authority), getAccountMeta(accounts.tokenOwner), @@ -293,10 +293,10 @@ export function getUnlockInstruction< getAccountMeta(accounts.authorizationRulesProgram), getAccountMeta(accounts.authorizationRules), ], - programAddress, data: getUnlockInstructionDataEncoder().encode( args as UnlockInstructionDataArgs, ), + programAddress, } as UnlockInstruction< TProgramAddress, TAccountAuthority, @@ -312,9 +312,7 @@ export function getUnlockInstruction< TAccountSplTokenProgram, TAccountAuthorizationRulesProgram, TAccountAuthorizationRules - >; - - return instruction; + >); } export interface ParsedUnlockInstruction< diff --git a/clients/token-metadata/src/generated/instructions/unverify.ts b/clients/token-metadata/src/generated/instructions/unverify.ts index fc3f1265..d79b3605 100644 --- a/clients/token-metadata/src/generated/instructions/unverify.ts +++ b/clients/token-metadata/src/generated/instructions/unverify.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -206,7 +206,7 @@ export function getUnverifyInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.authority), getAccountMeta(accounts.delegateRecord), @@ -216,10 +216,10 @@ export function getUnverifyInstruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.sysvarInstructions), ], - programAddress, data: getUnverifyInstructionDataEncoder().encode( args as UnverifyInstructionDataArgs, ), + programAddress, } as UnverifyInstruction< TProgramAddress, TAccountAuthority, @@ -229,9 +229,7 @@ export function getUnverifyInstruction< TAccountCollectionMetadata, TAccountSystemProgram, TAccountSysvarInstructions - >; - - return instruction; + >); } export interface ParsedUnverifyInstruction< diff --git a/clients/token-metadata/src/generated/instructions/unverifyCollection.ts b/clients/token-metadata/src/generated/instructions/unverifyCollection.ts index 4ec8de02..da4d6db9 100644 --- a/clients/token-metadata/src/generated/instructions/unverifyCollection.ts +++ b/clients/token-metadata/src/generated/instructions/unverifyCollection.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -187,7 +187,7 @@ export function getUnverifyCollectionInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "omitted"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.collectionAuthority), @@ -196,8 +196,8 @@ export function getUnverifyCollectionInstruction< getAccountMeta(accounts.collectionMasterEditionAccount), getAccountMeta(accounts.collectionAuthorityRecord), ].filter((x: T | undefined): x is T => x !== undefined), - programAddress, data: getUnverifyCollectionInstructionDataEncoder().encode({}), + programAddress, } as UnverifyCollectionInstruction< TProgramAddress, TAccountMetadata, @@ -206,9 +206,7 @@ export function getUnverifyCollectionInstruction< TAccountCollection, TAccountCollectionMasterEditionAccount, TAccountCollectionAuthorityRecord - >; - - return instruction; + >); } export interface ParsedUnverifyCollectionInstruction< diff --git a/clients/token-metadata/src/generated/instructions/unverifySizedCollectionItem.ts b/clients/token-metadata/src/generated/instructions/unverifySizedCollectionItem.ts index 4f566213..cd8e58a2 100644 --- a/clients/token-metadata/src/generated/instructions/unverifySizedCollectionItem.ts +++ b/clients/token-metadata/src/generated/instructions/unverifySizedCollectionItem.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -203,7 +203,7 @@ export function getUnverifySizedCollectionItemInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "omitted"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.collectionAuthority), @@ -213,8 +213,8 @@ export function getUnverifySizedCollectionItemInstruction< getAccountMeta(accounts.collectionMasterEditionAccount), getAccountMeta(accounts.collectionAuthorityRecord), ].filter((x: T | undefined): x is T => x !== undefined), - programAddress, data: getUnverifySizedCollectionItemInstructionDataEncoder().encode({}), + programAddress, } as UnverifySizedCollectionItemInstruction< TProgramAddress, TAccountMetadata, @@ -224,9 +224,7 @@ export function getUnverifySizedCollectionItemInstruction< TAccountCollection, TAccountCollectionMasterEditionAccount, TAccountCollectionAuthorityRecord - >; - - return instruction; + >); } export interface ParsedUnverifySizedCollectionItemInstruction< diff --git a/clients/token-metadata/src/generated/instructions/update.ts b/clients/token-metadata/src/generated/instructions/update.ts index 44c04ed2..57668f2c 100644 --- a/clients/token-metadata/src/generated/instructions/update.ts +++ b/clients/token-metadata/src/generated/instructions/update.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -252,7 +252,7 @@ export function getUpdateInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.authority), getAccountMeta(accounts.delegateRecord), @@ -266,10 +266,10 @@ export function getUpdateInstruction< getAccountMeta(accounts.authorizationRulesProgram), getAccountMeta(accounts.authorizationRules), ], - programAddress, data: getUpdateInstructionDataEncoder().encode( args as UpdateInstructionDataArgs, ), + programAddress, } as UpdateInstruction< TProgramAddress, TAccountAuthority, @@ -283,9 +283,7 @@ export function getUpdateInstruction< TAccountSysvarInstructions, TAccountAuthorizationRulesProgram, TAccountAuthorizationRules - >; - - return instruction; + >); } export interface ParsedUpdateInstruction< diff --git a/clients/token-metadata/src/generated/instructions/updateMetadataAccount.ts b/clients/token-metadata/src/generated/instructions/updateMetadataAccount.ts index b2b77a46..bf0381b8 100644 --- a/clients/token-metadata/src/generated/instructions/updateMetadataAccount.ts +++ b/clients/token-metadata/src/generated/instructions/updateMetadataAccount.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -129,20 +129,18 @@ export function getUpdateMetadataAccountInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.updateAuthority), ], - programAddress, data: getUpdateMetadataAccountInstructionDataEncoder().encode({}), + programAddress, } as UpdateMetadataAccountInstruction< TProgramAddress, TAccountMetadata, TAccountUpdateAuthority - >; - - return instruction; + >); } export interface ParsedUpdateMetadataAccountInstruction< @@ -179,10 +177,7 @@ export function parseUpdateMetadataAccountInstruction< }; return { programAddress: instruction.programAddress, - accounts: { - metadata: getNextAccount(), - updateAuthority: getNextAccount(), - }, + accounts: { metadata: getNextAccount(), updateAuthority: getNextAccount() }, data: getUpdateMetadataAccountInstructionDataDecoder().decode( instruction.data, ), diff --git a/clients/token-metadata/src/generated/instructions/updateMetadataAccountV2.ts b/clients/token-metadata/src/generated/instructions/updateMetadataAccountV2.ts index 169c3f79..6ffdebf2 100644 --- a/clients/token-metadata/src/generated/instructions/updateMetadataAccountV2.ts +++ b/clients/token-metadata/src/generated/instructions/updateMetadataAccountV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -153,22 +153,20 @@ export function getUpdateMetadataAccountV2Instruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.updateAuthority), ], - programAddress, data: getUpdateMetadataAccountV2InstructionDataEncoder().encode( args as UpdateMetadataAccountV2InstructionDataArgs, ), + programAddress, } as UpdateMetadataAccountV2Instruction< TProgramAddress, TAccountMetadata, TAccountUpdateAuthority - >; - - return instruction; + >); } export interface ParsedUpdateMetadataAccountV2Instruction< @@ -205,10 +203,7 @@ export function parseUpdateMetadataAccountV2Instruction< }; return { programAddress: instruction.programAddress, - accounts: { - metadata: getNextAccount(), - updateAuthority: getNextAccount(), - }, + accounts: { metadata: getNextAccount(), updateAuthority: getNextAccount() }, data: getUpdateMetadataAccountV2InstructionDataDecoder().decode( instruction.data, ), diff --git a/clients/token-metadata/src/generated/instructions/updatePrimarySaleHappenedViaToken.ts b/clients/token-metadata/src/generated/instructions/updatePrimarySaleHappenedViaToken.ts index 14cbde49..d76b591a 100644 --- a/clients/token-metadata/src/generated/instructions/updatePrimarySaleHappenedViaToken.ts +++ b/clients/token-metadata/src/generated/instructions/updatePrimarySaleHappenedViaToken.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -143,24 +143,22 @@ export function getUpdatePrimarySaleHappenedViaTokenInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.owner), getAccountMeta(accounts.token), ], - programAddress, data: getUpdatePrimarySaleHappenedViaTokenInstructionDataEncoder().encode( {}, ), + programAddress, } as UpdatePrimarySaleHappenedViaTokenInstruction< TProgramAddress, TAccountMetadata, TAccountOwner, TAccountToken - >; - - return instruction; + >); } export interface ParsedUpdatePrimarySaleHappenedViaTokenInstruction< diff --git a/clients/token-metadata/src/generated/instructions/use.ts b/clients/token-metadata/src/generated/instructions/use.ts index ae4f9bd2..db4bcfad 100644 --- a/clients/token-metadata/src/generated/instructions/use.ts +++ b/clients/token-metadata/src/generated/instructions/use.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -265,7 +265,7 @@ export function getUseInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.authority), getAccountMeta(accounts.delegateRecord), @@ -280,8 +280,8 @@ export function getUseInstruction< getAccountMeta(accounts.authorizationRulesProgram), getAccountMeta(accounts.authorizationRules), ], - programAddress, data: getUseInstructionDataEncoder().encode(args as UseInstructionDataArgs), + programAddress, } as UseInstruction< TProgramAddress, TAccountAuthority, @@ -296,9 +296,7 @@ export function getUseInstruction< TAccountSplTokenProgram, TAccountAuthorizationRulesProgram, TAccountAuthorizationRules - >; - - return instruction; + >); } export interface ParsedUseInstruction< diff --git a/clients/token-metadata/src/generated/instructions/utilize.ts b/clients/token-metadata/src/generated/instructions/utilize.ts index fc7ae03c..9fd2c824 100644 --- a/clients/token-metadata/src/generated/instructions/utilize.ts +++ b/clients/token-metadata/src/generated/instructions/utilize.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -258,7 +258,7 @@ export function getUtilizeInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "omitted"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.tokenAccount), @@ -272,10 +272,10 @@ export function getUtilizeInstruction< getAccountMeta(accounts.useAuthorityRecord), getAccountMeta(accounts.burner), ].filter((x: T | undefined): x is T => x !== undefined), - programAddress, data: getUtilizeInstructionDataEncoder().encode( args as UtilizeInstructionDataArgs, ), + programAddress, } as UtilizeInstruction< TProgramAddress, TAccountMetadata, @@ -289,9 +289,7 @@ export function getUtilizeInstruction< TAccountRent, TAccountUseAuthorityRecord, TAccountBurner - >; - - return instruction; + >); } export interface ParsedUtilizeInstruction< diff --git a/clients/token-metadata/src/generated/instructions/verify.ts b/clients/token-metadata/src/generated/instructions/verify.ts index a9653254..6dfd0f6f 100644 --- a/clients/token-metadata/src/generated/instructions/verify.ts +++ b/clients/token-metadata/src/generated/instructions/verify.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -220,7 +220,7 @@ export function getVerifyInstruction< const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, "programId"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.authority), getAccountMeta(accounts.delegateRecord), @@ -231,10 +231,10 @@ export function getVerifyInstruction< getAccountMeta(accounts.systemProgram), getAccountMeta(accounts.sysvarInstructions), ], - programAddress, data: getVerifyInstructionDataEncoder().encode( args as VerifyInstructionDataArgs, ), + programAddress, } as VerifyInstruction< TProgramAddress, TAccountAuthority, @@ -245,9 +245,7 @@ export function getVerifyInstruction< TAccountCollectionMasterEdition, TAccountSystemProgram, TAccountSysvarInstructions - >; - - return instruction; + >); } export interface ParsedVerifyInstruction< diff --git a/clients/token-metadata/src/generated/instructions/verifyCollection.ts b/clients/token-metadata/src/generated/instructions/verifyCollection.ts index b78b8e1e..41530189 100644 --- a/clients/token-metadata/src/generated/instructions/verifyCollection.ts +++ b/clients/token-metadata/src/generated/instructions/verifyCollection.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -199,7 +199,7 @@ export function getVerifyCollectionInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "omitted"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.collectionAuthority), @@ -209,8 +209,8 @@ export function getVerifyCollectionInstruction< getAccountMeta(accounts.collectionMasterEditionAccount), getAccountMeta(accounts.collectionAuthorityRecord), ].filter((x: T | undefined): x is T => x !== undefined), - programAddress, data: getVerifyCollectionInstructionDataEncoder().encode({}), + programAddress, } as VerifyCollectionInstruction< TProgramAddress, TAccountMetadata, @@ -220,9 +220,7 @@ export function getVerifyCollectionInstruction< TAccountCollection, TAccountCollectionMasterEditionAccount, TAccountCollectionAuthorityRecord - >; - - return instruction; + >); } export interface ParsedVerifyCollectionInstruction< diff --git a/clients/token-metadata/src/generated/instructions/verifySizedCollectionItem.ts b/clients/token-metadata/src/generated/instructions/verifySizedCollectionItem.ts index 4dcb41c1..3dc316ae 100644 --- a/clients/token-metadata/src/generated/instructions/verifySizedCollectionItem.ts +++ b/clients/token-metadata/src/generated/instructions/verifySizedCollectionItem.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ @@ -203,7 +203,7 @@ export function getVerifySizedCollectionItemInstruction< >; const getAccountMeta = getAccountMetaFactory(programAddress, "omitted"); - const instruction = { + return Object.freeze({ accounts: [ getAccountMeta(accounts.metadata), getAccountMeta(accounts.collectionAuthority), @@ -213,8 +213,8 @@ export function getVerifySizedCollectionItemInstruction< getAccountMeta(accounts.collectionMasterEditionAccount), getAccountMeta(accounts.collectionAuthorityRecord), ].filter((x: T | undefined): x is T => x !== undefined), - programAddress, data: getVerifySizedCollectionItemInstructionDataEncoder().encode({}), + programAddress, } as VerifySizedCollectionItemInstruction< TProgramAddress, TAccountMetadata, @@ -224,9 +224,7 @@ export function getVerifySizedCollectionItemInstruction< TAccountCollection, TAccountCollectionMasterEditionAccount, TAccountCollectionAuthorityRecord - >; - - return instruction; + >); } export interface ParsedVerifySizedCollectionItemInstruction< diff --git a/clients/token-metadata/src/generated/pdas/index.ts b/clients/token-metadata/src/generated/pdas/index.ts index 67ccdd55..e50c55f8 100644 --- a/clients/token-metadata/src/generated/pdas/index.ts +++ b/clients/token-metadata/src/generated/pdas/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/pdas/masterEdition.ts b/clients/token-metadata/src/generated/pdas/masterEdition.ts index 680862f2..d307d2e3 100644 --- a/clients/token-metadata/src/generated/pdas/masterEdition.ts +++ b/clients/token-metadata/src/generated/pdas/masterEdition.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/pdas/metadata.ts b/clients/token-metadata/src/generated/pdas/metadata.ts index ea455609..de84cb3a 100644 --- a/clients/token-metadata/src/generated/pdas/metadata.ts +++ b/clients/token-metadata/src/generated/pdas/metadata.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/programs/index.ts b/clients/token-metadata/src/generated/programs/index.ts index 429a704c..552dc19e 100644 --- a/clients/token-metadata/src/generated/programs/index.ts +++ b/clients/token-metadata/src/generated/programs/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/programs/tokenMetadata.ts b/clients/token-metadata/src/generated/programs/tokenMetadata.ts index 18ccfe3f..65b49d2c 100644 --- a/clients/token-metadata/src/generated/programs/tokenMetadata.ts +++ b/clients/token-metadata/src/generated/programs/tokenMetadata.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/shared/index.ts b/clients/token-metadata/src/generated/shared/index.ts index 7d911d4a..b79b9c6b 100644 --- a/clients/token-metadata/src/generated/shared/index.ts +++ b/clients/token-metadata/src/generated/shared/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/approveUseAuthorityArgs.ts b/clients/token-metadata/src/generated/types/approveUseAuthorityArgs.ts index b6d39f72..b2172c96 100644 --- a/clients/token-metadata/src/generated/types/approveUseAuthorityArgs.ts +++ b/clients/token-metadata/src/generated/types/approveUseAuthorityArgs.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/assetData.ts b/clients/token-metadata/src/generated/types/assetData.ts index ae4ab2a0..112c4e85 100644 --- a/clients/token-metadata/src/generated/types/assetData.ts +++ b/clients/token-metadata/src/generated/types/assetData.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/authorityType.ts b/clients/token-metadata/src/generated/types/authorityType.ts index e1c1a387..83e0a4a4 100644 --- a/clients/token-metadata/src/generated/types/authorityType.ts +++ b/clients/token-metadata/src/generated/types/authorityType.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/authorizationData.ts b/clients/token-metadata/src/generated/types/authorizationData.ts index 69c93294..eb7c42ac 100644 --- a/clients/token-metadata/src/generated/types/authorizationData.ts +++ b/clients/token-metadata/src/generated/types/authorizationData.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/burnArgs.ts b/clients/token-metadata/src/generated/types/burnArgs.ts index b3c9f107..80da4a48 100644 --- a/clients/token-metadata/src/generated/types/burnArgs.ts +++ b/clients/token-metadata/src/generated/types/burnArgs.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/collection.ts b/clients/token-metadata/src/generated/types/collection.ts index 1a26f209..bab578f9 100644 --- a/clients/token-metadata/src/generated/types/collection.ts +++ b/clients/token-metadata/src/generated/types/collection.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/collectionDetails.ts b/clients/token-metadata/src/generated/types/collectionDetails.ts index 8a959647..2292634b 100644 --- a/clients/token-metadata/src/generated/types/collectionDetails.ts +++ b/clients/token-metadata/src/generated/types/collectionDetails.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/collectionDetailsToggle.ts b/clients/token-metadata/src/generated/types/collectionDetailsToggle.ts index e6e1e05c..aa6ba124 100644 --- a/clients/token-metadata/src/generated/types/collectionDetailsToggle.ts +++ b/clients/token-metadata/src/generated/types/collectionDetailsToggle.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/collectionToggle.ts b/clients/token-metadata/src/generated/types/collectionToggle.ts index 028c2a88..ed4ce9c8 100644 --- a/clients/token-metadata/src/generated/types/collectionToggle.ts +++ b/clients/token-metadata/src/generated/types/collectionToggle.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/createArgs.ts b/clients/token-metadata/src/generated/types/createArgs.ts index bf8bf9f3..5a8ec999 100644 --- a/clients/token-metadata/src/generated/types/createArgs.ts +++ b/clients/token-metadata/src/generated/types/createArgs.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/createMasterEditionArgs.ts b/clients/token-metadata/src/generated/types/createMasterEditionArgs.ts index 608b89bf..edfb1dd4 100644 --- a/clients/token-metadata/src/generated/types/createMasterEditionArgs.ts +++ b/clients/token-metadata/src/generated/types/createMasterEditionArgs.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/createMetadataAccountArgsV3.ts b/clients/token-metadata/src/generated/types/createMetadataAccountArgsV3.ts index 0d343d3a..fc7f40c7 100644 --- a/clients/token-metadata/src/generated/types/createMetadataAccountArgsV3.ts +++ b/clients/token-metadata/src/generated/types/createMetadataAccountArgsV3.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/creator.ts b/clients/token-metadata/src/generated/types/creator.ts index 19667df7..323304e2 100644 --- a/clients/token-metadata/src/generated/types/creator.ts +++ b/clients/token-metadata/src/generated/types/creator.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/data.ts b/clients/token-metadata/src/generated/types/data.ts index cd87b873..1d802596 100644 --- a/clients/token-metadata/src/generated/types/data.ts +++ b/clients/token-metadata/src/generated/types/data.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/dataV2.ts b/clients/token-metadata/src/generated/types/dataV2.ts index 4e50eaad..1c303be8 100644 --- a/clients/token-metadata/src/generated/types/dataV2.ts +++ b/clients/token-metadata/src/generated/types/dataV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/delegateArgs.ts b/clients/token-metadata/src/generated/types/delegateArgs.ts index 6bd7e622..7e29d946 100644 --- a/clients/token-metadata/src/generated/types/delegateArgs.ts +++ b/clients/token-metadata/src/generated/types/delegateArgs.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/escrowAuthority.ts b/clients/token-metadata/src/generated/types/escrowAuthority.ts index 1d873f4b..8403a20c 100644 --- a/clients/token-metadata/src/generated/types/escrowAuthority.ts +++ b/clients/token-metadata/src/generated/types/escrowAuthority.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/holderDelegateRole.ts b/clients/token-metadata/src/generated/types/holderDelegateRole.ts index f43c88f1..cbdf7521 100644 --- a/clients/token-metadata/src/generated/types/holderDelegateRole.ts +++ b/clients/token-metadata/src/generated/types/holderDelegateRole.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/index.ts b/clients/token-metadata/src/generated/types/index.ts index e8a369b9..e969f77e 100644 --- a/clients/token-metadata/src/generated/types/index.ts +++ b/clients/token-metadata/src/generated/types/index.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/key.ts b/clients/token-metadata/src/generated/types/key.ts index 8de894f2..ac283072 100644 --- a/clients/token-metadata/src/generated/types/key.ts +++ b/clients/token-metadata/src/generated/types/key.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/lockArgs.ts b/clients/token-metadata/src/generated/types/lockArgs.ts index 2b601d04..0adc6b81 100644 --- a/clients/token-metadata/src/generated/types/lockArgs.ts +++ b/clients/token-metadata/src/generated/types/lockArgs.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/metadataDelegateRole.ts b/clients/token-metadata/src/generated/types/metadataDelegateRole.ts index ffecd604..4c0fde0d 100644 --- a/clients/token-metadata/src/generated/types/metadataDelegateRole.ts +++ b/clients/token-metadata/src/generated/types/metadataDelegateRole.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/migrationType.ts b/clients/token-metadata/src/generated/types/migrationType.ts index 93bdaf8d..20e236da 100644 --- a/clients/token-metadata/src/generated/types/migrationType.ts +++ b/clients/token-metadata/src/generated/types/migrationType.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/mintArgs.ts b/clients/token-metadata/src/generated/types/mintArgs.ts index 947748f9..8628a73c 100644 --- a/clients/token-metadata/src/generated/types/mintArgs.ts +++ b/clients/token-metadata/src/generated/types/mintArgs.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/mintNewEditionFromMasterEditionViaTokenArgs.ts b/clients/token-metadata/src/generated/types/mintNewEditionFromMasterEditionViaTokenArgs.ts index da3e9a06..24fd7235 100644 --- a/clients/token-metadata/src/generated/types/mintNewEditionFromMasterEditionViaTokenArgs.ts +++ b/clients/token-metadata/src/generated/types/mintNewEditionFromMasterEditionViaTokenArgs.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/payload.ts b/clients/token-metadata/src/generated/types/payload.ts index 49bdb85f..406e1482 100644 --- a/clients/token-metadata/src/generated/types/payload.ts +++ b/clients/token-metadata/src/generated/types/payload.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/payloadKey.ts b/clients/token-metadata/src/generated/types/payloadKey.ts index 034de644..36b1f8ef 100644 --- a/clients/token-metadata/src/generated/types/payloadKey.ts +++ b/clients/token-metadata/src/generated/types/payloadKey.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/payloadType.ts b/clients/token-metadata/src/generated/types/payloadType.ts index 58d91755..4f3be976 100644 --- a/clients/token-metadata/src/generated/types/payloadType.ts +++ b/clients/token-metadata/src/generated/types/payloadType.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/printArgs.ts b/clients/token-metadata/src/generated/types/printArgs.ts index 77f86066..b420b9c6 100644 --- a/clients/token-metadata/src/generated/types/printArgs.ts +++ b/clients/token-metadata/src/generated/types/printArgs.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/printSupply.ts b/clients/token-metadata/src/generated/types/printSupply.ts index 1eda86cf..533514c2 100644 --- a/clients/token-metadata/src/generated/types/printSupply.ts +++ b/clients/token-metadata/src/generated/types/printSupply.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/programmableConfig.ts b/clients/token-metadata/src/generated/types/programmableConfig.ts index aa5d3c48..6e0f70c3 100644 --- a/clients/token-metadata/src/generated/types/programmableConfig.ts +++ b/clients/token-metadata/src/generated/types/programmableConfig.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/proofInfo.ts b/clients/token-metadata/src/generated/types/proofInfo.ts index 59307218..73f14746 100644 --- a/clients/token-metadata/src/generated/types/proofInfo.ts +++ b/clients/token-metadata/src/generated/types/proofInfo.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/reservation.ts b/clients/token-metadata/src/generated/types/reservation.ts index 5953d8bd..66661b30 100644 --- a/clients/token-metadata/src/generated/types/reservation.ts +++ b/clients/token-metadata/src/generated/types/reservation.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/reservationV1.ts b/clients/token-metadata/src/generated/types/reservationV1.ts index e2c1a165..ae17de69 100644 --- a/clients/token-metadata/src/generated/types/reservationV1.ts +++ b/clients/token-metadata/src/generated/types/reservationV1.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/revokeArgs.ts b/clients/token-metadata/src/generated/types/revokeArgs.ts index b4441309..4f0d6b16 100644 --- a/clients/token-metadata/src/generated/types/revokeArgs.ts +++ b/clients/token-metadata/src/generated/types/revokeArgs.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/ruleSetToggle.ts b/clients/token-metadata/src/generated/types/ruleSetToggle.ts index bd9e898d..86bd3e4c 100644 --- a/clients/token-metadata/src/generated/types/ruleSetToggle.ts +++ b/clients/token-metadata/src/generated/types/ruleSetToggle.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/seedsVec.ts b/clients/token-metadata/src/generated/types/seedsVec.ts index 3eabb064..f08ee3e0 100644 --- a/clients/token-metadata/src/generated/types/seedsVec.ts +++ b/clients/token-metadata/src/generated/types/seedsVec.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/setCollectionSizeArgs.ts b/clients/token-metadata/src/generated/types/setCollectionSizeArgs.ts index 42572b7a..b7081c22 100644 --- a/clients/token-metadata/src/generated/types/setCollectionSizeArgs.ts +++ b/clients/token-metadata/src/generated/types/setCollectionSizeArgs.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/tokenDelegateRole.ts b/clients/token-metadata/src/generated/types/tokenDelegateRole.ts index c6466bad..637ed2a2 100644 --- a/clients/token-metadata/src/generated/types/tokenDelegateRole.ts +++ b/clients/token-metadata/src/generated/types/tokenDelegateRole.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/tokenStandard.ts b/clients/token-metadata/src/generated/types/tokenStandard.ts index a156e360..3a957bf3 100644 --- a/clients/token-metadata/src/generated/types/tokenStandard.ts +++ b/clients/token-metadata/src/generated/types/tokenStandard.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/tokenState.ts b/clients/token-metadata/src/generated/types/tokenState.ts index 5adcf8a9..d5b53a44 100644 --- a/clients/token-metadata/src/generated/types/tokenState.ts +++ b/clients/token-metadata/src/generated/types/tokenState.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/transferArgs.ts b/clients/token-metadata/src/generated/types/transferArgs.ts index b24a8a3c..6aed0e34 100644 --- a/clients/token-metadata/src/generated/types/transferArgs.ts +++ b/clients/token-metadata/src/generated/types/transferArgs.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/transferOutOfEscrowArgs.ts b/clients/token-metadata/src/generated/types/transferOutOfEscrowArgs.ts index 8461371d..d8de966c 100644 --- a/clients/token-metadata/src/generated/types/transferOutOfEscrowArgs.ts +++ b/clients/token-metadata/src/generated/types/transferOutOfEscrowArgs.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/unlockArgs.ts b/clients/token-metadata/src/generated/types/unlockArgs.ts index 55ed7184..68951fe1 100644 --- a/clients/token-metadata/src/generated/types/unlockArgs.ts +++ b/clients/token-metadata/src/generated/types/unlockArgs.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/updateArgs.ts b/clients/token-metadata/src/generated/types/updateArgs.ts index f91c2f00..54a370aa 100644 --- a/clients/token-metadata/src/generated/types/updateArgs.ts +++ b/clients/token-metadata/src/generated/types/updateArgs.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/updateMetadataAccountArgsV2.ts b/clients/token-metadata/src/generated/types/updateMetadataAccountArgsV2.ts index b7b893c0..58138f86 100644 --- a/clients/token-metadata/src/generated/types/updateMetadataAccountArgsV2.ts +++ b/clients/token-metadata/src/generated/types/updateMetadataAccountArgsV2.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/useArgs.ts b/clients/token-metadata/src/generated/types/useArgs.ts index 826b8b8e..8649f702 100644 --- a/clients/token-metadata/src/generated/types/useArgs.ts +++ b/clients/token-metadata/src/generated/types/useArgs.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/useMethod.ts b/clients/token-metadata/src/generated/types/useMethod.ts index 79e78c4f..9bef29aa 100644 --- a/clients/token-metadata/src/generated/types/useMethod.ts +++ b/clients/token-metadata/src/generated/types/useMethod.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/uses.ts b/clients/token-metadata/src/generated/types/uses.ts index 1f485550..92b2aef3 100644 --- a/clients/token-metadata/src/generated/types/uses.ts +++ b/clients/token-metadata/src/generated/types/uses.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/usesToggle.ts b/clients/token-metadata/src/generated/types/usesToggle.ts index d5a9bb13..d26b466d 100644 --- a/clients/token-metadata/src/generated/types/usesToggle.ts +++ b/clients/token-metadata/src/generated/types/usesToggle.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/utilizeArgs.ts b/clients/token-metadata/src/generated/types/utilizeArgs.ts index a7c50539..db56d101 100644 --- a/clients/token-metadata/src/generated/types/utilizeArgs.ts +++ b/clients/token-metadata/src/generated/types/utilizeArgs.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/clients/token-metadata/src/generated/types/verificationArgs.ts b/clients/token-metadata/src/generated/types/verificationArgs.ts index 2fe36170..2c8b0c3b 100644 --- a/clients/token-metadata/src/generated/types/verificationArgs.ts +++ b/clients/token-metadata/src/generated/types/verificationArgs.ts @@ -1,7 +1,7 @@ /** - * This code was AUTOGENERATED using the codama library. + * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun codama to update it. + * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ diff --git a/package.json b/package.json index ddbe90d2..9b0f9e12 100644 --- a/package.json +++ b/package.json @@ -17,11 +17,11 @@ "@macalinao/tsconfig": "^3.2.3", "@solana/kit": "^3", "@types/bun": "^1.2.20", - "codama": "^1.3.4", - "@codama/nodes": "^1.3.4", - "@codama/nodes-from-anchor": "^1.2.6", - "@codama/renderers-core": "^1.1.0", - "@codama/visitors-core": "^1.3.4" + "codama": "^1.3.7", + "@codama/nodes": "^1.3.7", + "@codama/nodes-from-anchor": "^1.2.9", + "@codama/renderers-core": "^1.2.2", + "@codama/visitors-core": "^1.3.7" } }, "scripts": { diff --git a/packages/coda/package.json b/packages/coda/package.json index 5c9e2deb..9e30b912 100644 --- a/packages/coda/package.json +++ b/packages/coda/package.json @@ -49,7 +49,7 @@ }, "dependencies": { "@codama/nodes-from-anchor": "catalog:", - "@codama/renderers-rust": "^1.2.3", + "@codama/renderers-rust": "^1.2.5", "@macalinao/codama-nodes-from-anchor-x": "workspace:*", "@macalinao/codama-rename-visitor": "workspace:*", "@macalinao/codama-renderers-js-esm": "workspace:*", diff --git a/packages/coda/src/bin/cli.ts b/packages/coda/src/bin/cli.ts index 6b301ee9..cdeeb6e3 100644 --- a/packages/coda/src/bin/cli.ts +++ b/packages/coda/src/bin/cli.ts @@ -1,4 +1,5 @@ #!/usr/bin/env node +import type { Visitor } from "codama"; import { writeFile } from "node:fs/promises"; import { resolve } from "node:path"; import { renderVisitor as renderRustVisitor } from "@codama/renderers-rust"; @@ -89,7 +90,9 @@ program // Apply the Rust visitor console.log(`Generating Rust client to ${outputPath}...`); - codama.accept(renderRustVisitor(outputPath)); + codama.accept( + renderRustVisitor(outputPath) as unknown as Visitor, + ); console.log("✅ Rust client generated successfully!"); } catch (error) { diff --git a/packages/codama-renderers-js-esm/package.json b/packages/codama-renderers-js-esm/package.json index 6b58154b..f7df28f8 100644 --- a/packages/codama-renderers-js-esm/package.json +++ b/packages/codama-renderers-js-esm/package.json @@ -39,12 +39,11 @@ "scripts": { "build": "tsc", "clean": "rm -fr dist/", - "lint": "eslint . --cache", - "test": "echo 'No tests yet'" + "lint": "eslint . --cache" }, "dependencies": { "@codama/renderers-core": "catalog:", - "@codama/renderers-js": "^1.3.5", + "@codama/renderers-js": "^1.4.1", "codama": "catalog:" }, "devDependencies": { diff --git a/packages/codama-renderers-js-esm/src/render-esm-typescript-visitor.ts b/packages/codama-renderers-js-esm/src/render-esm-typescript-visitor.ts index 13a5535a..3a8d9b48 100644 --- a/packages/codama-renderers-js-esm/src/render-esm-typescript-visitor.ts +++ b/packages/codama-renderers-js-esm/src/render-esm-typescript-visitor.ts @@ -1,3 +1,5 @@ +import type { RenderMap } from "@codama/renderers-core"; +import type { Visitor } from "codama"; import { addToRenderMap, mapRenderMapContent, @@ -21,7 +23,16 @@ export function renderESMTypeScriptVisitor( root, getRenderMapVisitor({ dependencyMap: ESM_DEPENDENCY_MAP, - }), + // TOOD(igm): this is not typed correctly; breaking changes in patch versions + }) as unknown as Visitor< + RenderMap, + | "definedTypeNode" + | "accountNode" + | "instructionNode" + | "pdaNode" + | "programNode" + | "rootNode" + >, ); const index = renderMap.get("index.ts"); diff --git a/packages/codama-renderers-markdown/src/render-markdown-visitor.ts b/packages/codama-renderers-markdown/src/render-markdown-visitor.ts index 8e6388f7..c1c5d57a 100644 --- a/packages/codama-renderers-markdown/src/render-markdown-visitor.ts +++ b/packages/codama-renderers-markdown/src/render-markdown-visitor.ts @@ -3,7 +3,7 @@ import type { RenderMarkdownOptions } from "./types.js"; import { getAllPrograms } from "@codama/nodes"; import { addToRenderMap, - renderMap, + createRenderMap, writeRenderMap, } from "@codama/renderers-core"; import { @@ -25,7 +25,7 @@ export function renderMarkdownVisitor( // Record linkables using getRecordLinkablesVisitor visit(root, getRecordLinkablesVisitor(linkables)); - let map = renderMap(); + let map = createRenderMap(); const programs = getAllPrograms(root as unknown as RootNode); // Generate markdown for each program diff --git a/packages/create-coda/template/package.json b/packages/create-coda/template/package.json index e34730f6..3394b6c4 100644 --- a/packages/create-coda/template/package.json +++ b/packages/create-coda/template/package.json @@ -33,7 +33,7 @@ "@solana/kit": "*" }, "devDependencies": { - "@macalinao/coda": "^0.2.9", + "@macalinao/coda": "^0.3.0", "@macalinao/eslint-config": "^6.0.0", "@macalinao/tsconfig": "^3.2.3", "@solana/kit": "*",