diff --git a/index.ts b/index.ts new file mode 100644 index 0000000..0fc4587 --- /dev/null +++ b/index.ts @@ -0,0 +1,12 @@ +import * as announce_pb from './proto/anoma_pb'; +import * as service from './proto/anoma_grpc_pb'; +import * as grpc from '@grpc/grpc-js'; + +export function connect(address: string, port: number, creds?: grpc.ChannelCredentials) + : service.IntentsClient { + if (typeof creds == 'undefined') { + creds = grpc.credentials.createInsecure(); + } + let target: string = address + ':' + port; + return new service.IntentsClient(target, creds) +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..23f0555 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,1606 @@ +{ + "name": "anoma-client", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "anoma-client", + "version": "0.0.0", + "dependencies": { + "@grpc/grpc-js": "^1.12.0", + "google-protobuf": "^3.21.4", + "grpc-web": "^1.5.0", + "protoc-gen-grpc": "^2.0.4", + "protoc-gen-grpc-ts": "^1.0.1" + }, + "devDependencies": { + "grpc_tools_node_protoc_ts": "^5.3.3" + } + }, + "node_modules/@grpc/grpc-js": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.12.0.tgz", + "integrity": "sha512-eWdP97A6xKtZXVP/ze9y8zYRB2t6ugQAuLXFuZXAsyqmyltaAjl4yPkmIfc0wuTFJMOUF1AdvIFQCL7fMtaX6g==", + "license": "Apache-2.0", + "dependencies": { + "@grpc/proto-loader": "^0.7.13", + "@js-sdsl/ordered-map": "^4.4.2" + }, + "engines": { + "node": ">=12.10.0" + } + }, + "node_modules/@grpc/proto-loader": { + "version": "0.7.13", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.13.tgz", + "integrity": "sha512-AiXO/bfe9bmxBjxxtYxFAXGZvMaN5s8kO+jBHAJCON8rJoB5YS/D6X7ZNc6XQkuHNmyl4CYaMI1fJ/Gn27RGGw==", + "license": "Apache-2.0", + "dependencies": { + "lodash.camelcase": "^4.3.0", + "long": "^5.0.0", + "protobufjs": "^7.2.5", + "yargs": "^17.7.2" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@js-sdsl/ordered-map": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz", + "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/js-sdsl" + } + }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==", + "license": "BSD-3-Clause" + }, + "node_modules/@types/node": { + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.5.tgz", + "integrity": "sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.19.2" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT" + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/google-protobuf": { + "version": "3.21.4", + "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.21.4.tgz", + "integrity": "sha512-MnG7N936zcKTco4Jd2PX2U96Kf9PxygAPKBug+74LHzmHXmceN16MmRcdgZv+DGef/S9YvQAfRsNCn4cjf9yyQ==", + "license": "(BSD-3-Clause AND Apache-2.0)" + }, + "node_modules/grpc_tools_node_protoc_ts": { + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/grpc_tools_node_protoc_ts/-/grpc_tools_node_protoc_ts-5.3.3.tgz", + "integrity": "sha512-M/YrklvVXMtuuj9kb42PxeouZhs7Ul+R4e/31XwrankUcKL8cQQP50Q9q+KEHGyHQaPt6VtKKsxMgLaKbCxeww==", + "dev": true, + "license": "MIT", + "dependencies": { + "google-protobuf": "3.15.8", + "handlebars": "4.7.7" + }, + "bin": { + "protoc-gen-ts": "bin/protoc-gen-ts" + } + }, + "node_modules/grpc_tools_node_protoc_ts/node_modules/google-protobuf": { + "version": "3.15.8", + "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.15.8.tgz", + "integrity": "sha512-2jtfdqTaSxk0cuBJBtTTWsot4WtR9RVr2rXg7x7OoqiuOKopPrwXpM1G4dXIkLcUNRh3RKzz76C8IOkksZSeOw==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/grpc-web": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/grpc-web/-/grpc-web-1.5.0.tgz", + "integrity": "sha512-y1tS3BBIoiVSzKTDF3Hm7E8hV2n7YY7pO0Uo7depfWJqKzWE+SKr0jvHNIJsJJYILQlpYShpi/DRJJMbosgDMQ==", + "license": "Apache-2.0" + }, + "node_modules/handlebars": { + "version": "4.7.7", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", + "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "minimist": "^1.2.5", + "neo-async": "^2.6.0", + "source-map": "^0.6.1", + "wordwrap": "^1.0.0" + }, + "bin": { + "handlebars": "bin/handlebars" + }, + "engines": { + "node": ">=0.4.7" + }, + "optionalDependencies": { + "uglify-js": "^3.1.4" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "license": "MIT" + }, + "node_modules/long": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==", + "license": "Apache-2.0" + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true, + "license": "MIT" + }, + "node_modules/protobufjs": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.4.0.tgz", + "integrity": "sha512-mRUWCc3KUU4w1jU8sGxICXH/gNS94DvI1gxqDvBzhj1JpcsimQkYiOJfwsPUykUI5ZaspFbSgmBLER8IrQ3tqw==", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/protoc-gen-grpc": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/protoc-gen-grpc/-/protoc-gen-grpc-2.0.4.tgz", + "integrity": "sha512-QSLpHhuIWEu3GJtCBEk68CD2RsxfW7FB2lksSvyMEeeN5uGkGqa+Ycy2UkNsCVdLc0+KWPy+HAb7EK2vIaLSPA==", + "bundleDependencies": [ + "@mapbox/node-pre-gyp" + ], + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "@mapbox/node-pre-gyp": "^1.0.5", + "google-protobuf": "^3.17.2" + }, + "bin": { + "protoc-gen": "bin/protoc-gen.js", + "protoc-gen-grpc": "bin/protoc-gen-grpc.js", + "protoc-gen-grpc-ts": "bin/protoc-gen-grpc-ts.js", + "protoc-gen-ts-plugin": "bin/protoc-gen-ts-plugin" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/protoc-gen-grpc-ts": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/protoc-gen-grpc-ts/-/protoc-gen-grpc-ts-1.0.1.tgz", + "integrity": "sha512-lJqud1L2UMy7l+kzbl7lyohg4FaZfyepNLijgjJ4oaO8qSufa/kC7dbJXNO4dNIYCylmpUJcEWYOOaUxTIAv6Q==", + "bundleDependencies": [ + "node-pre-gyp" + ], + "deprecated": "delete", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "google-protobuf": "^3.5.0", + "node-pre-gyp": "^0.10.0" + }, + "bin": { + "protoc-gen": "bin/protoc-gen.js", + "protoc-gen-grpc": "bin/protoc-gen-grpc.js", + "protoc-gen-grpc-ts": "bin/protoc-gen-grpc-ts.js", + "protoc-gen-ts-plugin": "bin/protoc-gen-ts-plugin" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/abbrev": { + "version": "1.1.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/ansi-regex": { + "version": "2.1.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/aproba": { + "version": "1.2.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/are-we-there-yet": { + "version": "1.1.5", + "inBundle": true, + "license": "ISC", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^2.0.6" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/balanced-match": { + "version": "1.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/brace-expansion": { + "version": "1.1.11", + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/chownr": { + "version": "1.0.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/code-point-at": { + "version": "1.1.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/concat-map": { + "version": "0.0.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/console-control-strings": { + "version": "1.1.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/core-util-is": { + "version": "1.0.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/debug": { + "version": "2.6.9", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/deep-extend": { + "version": "0.6.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/delegates": { + "version": "1.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/detect-libc": { + "version": "1.0.3", + "inBundle": true, + "license": "Apache-2.0", + "bin": { + "detect-libc": "bin/detect-libc.js" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/fs-minipass": { + "version": "1.2.5", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^2.2.1" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/fs.realpath": { + "version": "1.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/gauge": { + "version": "2.7.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/glob": { + "version": "7.1.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/has-unicode": { + "version": "2.0.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/iconv-lite": { + "version": "0.4.23", + "inBundle": true, + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/ignore-walk": { + "version": "3.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minimatch": "^3.0.4" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/inflight": { + "version": "1.0.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/inherits": { + "version": "2.0.3", + "inBundle": true, + "license": "ISC" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/ini": { + "version": "1.3.5", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "*" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/is-fullwidth-code-point": { + "version": "1.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "number-is-nan": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/isarray": { + "version": "1.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/minimatch": { + "version": "3.0.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/minimist": { + "version": "0.0.8", + "inBundle": true, + "license": "MIT" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/minipass": { + "version": "2.3.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "safe-buffer": "^5.1.2", + "yallist": "^3.0.0" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/minizlib": { + "version": "1.1.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "minipass": "^2.2.1" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/mkdirp": { + "version": "0.5.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "minimist": "0.0.8" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/ms": { + "version": "2.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/needle": { + "version": "2.2.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "debug": "^2.1.2", + "iconv-lite": "^0.4.4", + "sax": "^1.2.4" + }, + "bin": { + "needle": "bin/needle" + }, + "engines": { + "node": ">= 0.10.x" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/node-pre-gyp": { + "version": "0.10.0", + "inBundle": true, + "license": "BSD-3-Clause", + "dependencies": { + "detect-libc": "^1.0.2", + "mkdirp": "^0.5.1", + "needle": "^2.2.0", + "nopt": "^4.0.1", + "npm-packlist": "^1.1.6", + "npmlog": "^4.0.2", + "rc": "^1.1.7", + "rimraf": "^2.6.1", + "semver": "^5.3.0", + "tar": "^4" + }, + "bin": { + "node-pre-gyp": "bin/node-pre-gyp" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/nopt": { + "version": "4.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "abbrev": "1", + "osenv": "^0.1.4" + }, + "bin": { + "nopt": "bin/nopt.js" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/npm-bundled": { + "version": "1.0.3", + "inBundle": true, + "license": "ISC" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/npm-packlist": { + "version": "1.1.10", + "inBundle": true, + "license": "ISC", + "dependencies": { + "ignore-walk": "^3.0.1", + "npm-bundled": "^1.0.1" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/npmlog": { + "version": "4.1.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.7.3", + "set-blocking": "~2.0.0" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/number-is-nan": { + "version": "1.0.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/object-assign": { + "version": "4.1.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/once": { + "version": "1.4.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/os-homedir": { + "version": "1.0.2", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/os-tmpdir": { + "version": "1.0.2", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/osenv": { + "version": "0.1.5", + "inBundle": true, + "license": "ISC", + "dependencies": { + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/path-is-absolute": { + "version": "1.0.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/process-nextick-args": { + "version": "2.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/rc": { + "version": "1.2.8", + "inBundle": true, + "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", + "dependencies": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "bin": { + "rc": "cli.js" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/rc/node_modules/minimist": { + "version": "1.2.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/readable-stream": { + "version": "2.3.6", + "inBundle": true, + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/rimraf": { + "version": "2.6.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "glob": "^7.0.5" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/safe-buffer": { + "version": "5.1.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/safer-buffer": { + "version": "2.1.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/sax": { + "version": "1.2.4", + "inBundle": true, + "license": "ISC" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/semver": { + "version": "5.5.0", + "inBundle": true, + "license": "ISC", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/set-blocking": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/signal-exit": { + "version": "3.0.2", + "inBundle": true, + "license": "ISC" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/string_decoder": { + "version": "1.1.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/string-width": { + "version": "1.0.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/strip-ansi": { + "version": "3.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/strip-json-comments": { + "version": "2.0.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/tar": { + "version": "4.4.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "chownr": "^1.0.1", + "fs-minipass": "^1.2.5", + "minipass": "^2.3.3", + "minizlib": "^1.1.0", + "mkdirp": "^0.5.0", + "safe-buffer": "^5.1.2", + "yallist": "^3.0.2" + }, + "engines": { + "node": ">=4.5" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/util-deprecate": { + "version": "1.0.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/wide-align": { + "version": "1.1.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "string-width": "^1.0.2 || 2" + } + }, + "node_modules/protoc-gen-grpc-ts/node_modules/wrappy": { + "version": "1.0.2", + "inBundle": true, + "license": "ISC" + }, + "node_modules/protoc-gen-grpc-ts/node_modules/yallist": { + "version": "3.0.2", + "inBundle": true, + "license": "ISC" + }, + "node_modules/protoc-gen-grpc/node_modules/@mapbox/node-pre-gyp": { + "version": "1.0.5", + "inBundle": true, + "license": "BSD-3-Clause", + "dependencies": { + "detect-libc": "^1.0.3", + "https-proxy-agent": "^5.0.0", + "make-dir": "^3.1.0", + "node-fetch": "^2.6.1", + "nopt": "^5.0.0", + "npmlog": "^4.1.2", + "rimraf": "^3.0.2", + "semver": "^7.3.4", + "tar": "^6.1.0" + }, + "bin": { + "node-pre-gyp": "bin/node-pre-gyp" + } + }, + "node_modules/protoc-gen-grpc/node_modules/abbrev": { + "version": "1.1.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/protoc-gen-grpc/node_modules/agent-base": { + "version": "6.0.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/protoc-gen-grpc/node_modules/aproba": { + "version": "1.2.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/protoc-gen-grpc/node_modules/are-we-there-yet": { + "version": "1.1.7", + "inBundle": true, + "license": "ISC", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^2.0.6" + } + }, + "node_modules/protoc-gen-grpc/node_modules/balanced-match": { + "version": "1.0.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/protoc-gen-grpc/node_modules/brace-expansion": { + "version": "1.1.11", + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/protoc-gen-grpc/node_modules/chownr": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/protoc-gen-grpc/node_modules/code-point-at": { + "version": "1.1.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protoc-gen-grpc/node_modules/concat-map": { + "version": "0.0.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/protoc-gen-grpc/node_modules/console-control-strings": { + "version": "1.1.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/protoc-gen-grpc/node_modules/core-util-is": { + "version": "1.0.3", + "inBundle": true, + "license": "MIT" + }, + "node_modules/protoc-gen-grpc/node_modules/debug": { + "version": "4.3.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/protoc-gen-grpc/node_modules/delegates": { + "version": "1.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/protoc-gen-grpc/node_modules/detect-libc": { + "version": "1.0.3", + "inBundle": true, + "license": "Apache-2.0", + "bin": { + "detect-libc": "bin/detect-libc.js" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/protoc-gen-grpc/node_modules/fs-minipass": { + "version": "2.1.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/protoc-gen-grpc/node_modules/fs.realpath": { + "version": "1.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/protoc-gen-grpc/node_modules/gauge": { + "version": "2.7.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" + } + }, + "node_modules/protoc-gen-grpc/node_modules/gauge/node_modules/ansi-regex": { + "version": "2.1.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protoc-gen-grpc/node_modules/gauge/node_modules/strip-ansi": { + "version": "3.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protoc-gen-grpc/node_modules/glob": { + "version": "7.2.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/protoc-gen-grpc/node_modules/has-unicode": { + "version": "2.0.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/protoc-gen-grpc/node_modules/https-proxy-agent": { + "version": "5.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/protoc-gen-grpc/node_modules/inflight": { + "version": "1.0.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/protoc-gen-grpc/node_modules/inherits": { + "version": "2.0.4", + "inBundle": true, + "license": "ISC" + }, + "node_modules/protoc-gen-grpc/node_modules/is-fullwidth-code-point": { + "version": "1.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "number-is-nan": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protoc-gen-grpc/node_modules/isarray": { + "version": "1.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/protoc-gen-grpc/node_modules/lru-cache": { + "version": "6.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/protoc-gen-grpc/node_modules/make-dir": { + "version": "3.1.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/protoc-gen-grpc/node_modules/make-dir/node_modules/semver": { + "version": "6.3.0", + "inBundle": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/protoc-gen-grpc/node_modules/minimatch": { + "version": "3.0.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/protoc-gen-grpc/node_modules/minipass": { + "version": "3.1.5", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/protoc-gen-grpc/node_modules/minizlib": { + "version": "2.1.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/protoc-gen-grpc/node_modules/mkdirp": { + "version": "1.0.4", + "inBundle": true, + "license": "MIT", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/protoc-gen-grpc/node_modules/ms": { + "version": "2.1.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/protoc-gen-grpc/node_modules/node-fetch": { + "version": "2.6.5", + "inBundle": true, + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + } + }, + "node_modules/protoc-gen-grpc/node_modules/node-fetch/node_modules/tr46": { + "version": "0.0.3", + "inBundle": true, + "license": "MIT" + }, + "node_modules/protoc-gen-grpc/node_modules/node-fetch/node_modules/webidl-conversions": { + "version": "3.0.1", + "inBundle": true, + "license": "BSD-2-Clause" + }, + "node_modules/protoc-gen-grpc/node_modules/node-fetch/node_modules/whatwg-url": { + "version": "5.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/protoc-gen-grpc/node_modules/nopt": { + "version": "5.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/protoc-gen-grpc/node_modules/npmlog": { + "version": "4.1.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.7.3", + "set-blocking": "~2.0.0" + } + }, + "node_modules/protoc-gen-grpc/node_modules/number-is-nan": { + "version": "1.0.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protoc-gen-grpc/node_modules/object-assign": { + "version": "4.1.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protoc-gen-grpc/node_modules/once": { + "version": "1.4.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/protoc-gen-grpc/node_modules/path-is-absolute": { + "version": "1.0.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protoc-gen-grpc/node_modules/process-nextick-args": { + "version": "2.0.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/protoc-gen-grpc/node_modules/readable-stream": { + "version": "2.3.7", + "inBundle": true, + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/protoc-gen-grpc/node_modules/rimraf": { + "version": "3.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/protoc-gen-grpc/node_modules/safe-buffer": { + "version": "5.1.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/protoc-gen-grpc/node_modules/semver": { + "version": "7.3.5", + "inBundle": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/protoc-gen-grpc/node_modules/set-blocking": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/protoc-gen-grpc/node_modules/signal-exit": { + "version": "3.0.5", + "inBundle": true, + "license": "ISC" + }, + "node_modules/protoc-gen-grpc/node_modules/string_decoder": { + "version": "1.1.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/protoc-gen-grpc/node_modules/string-width": { + "version": "1.0.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protoc-gen-grpc/node_modules/string-width/node_modules/ansi-regex": { + "version": "2.1.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protoc-gen-grpc/node_modules/string-width/node_modules/strip-ansi": { + "version": "3.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/protoc-gen-grpc/node_modules/tar": { + "version": "6.1.11", + "inBundle": true, + "license": "ISC", + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^3.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/protoc-gen-grpc/node_modules/util-deprecate": { + "version": "1.0.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/protoc-gen-grpc/node_modules/wide-align": { + "version": "1.1.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "string-width": "^1.0.2 || 2" + } + }, + "node_modules/protoc-gen-grpc/node_modules/wrappy": { + "version": "1.0.2", + "inBundle": true, + "license": "ISC" + }, + "node_modules/protoc-gen-grpc/node_modules/yallist": { + "version": "4.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/uglify-js": { + "version": "3.19.3", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.3.tgz", + "integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==", + "dev": true, + "license": "BSD-2-Clause", + "optional": true, + "bin": { + "uglifyjs": "bin/uglifyjs" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/undici-types": { + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "license": "MIT" + }, + "node_modules/wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "license": "ISC", + "engines": { + "node": ">=12" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..abfbd98 --- /dev/null +++ b/package.json @@ -0,0 +1,14 @@ +{ + "name": "anoma-client", + "version": "0.0.0", + "dependencies": { + "@grpc/grpc-js": "^1.12.0", + "google-protobuf": "^3.21.4", + "grpc-web": "^1.5.0", + "protoc-gen-grpc": "^2.0.4", + "protoc-gen-grpc-ts": "^1.0.1" + }, + "devDependencies": { + "grpc_tools_node_protoc_ts": "^5.3.3" + } +} diff --git a/proto/anoma.proto b/proto/anoma.proto new file mode 100644 index 0000000..4f721c6 --- /dev/null +++ b/proto/anoma.proto @@ -0,0 +1,148 @@ +syntax = "proto3"; + +package Anoma.Protobuf; + +// ----------------- Announcement --------------------- + +// The request message containing the user's name. +message Announcement { + NodeInfo node_info = 1; + repeated string engines = 2; +} + +// ----------------- Node information ----------------- + +/* +This message contains all necessary information about a node +that sends a request. +*/ + +message NodeInfo { + bytes node_id = 1; +} + +// ----------------- Prove ----------------------- + +message Prove { + message Request { string intent = 1; } + + message Response { string result = 1; } +} +// ----------------- Intent Pool ----------------- + +message Intent { int32 value = 1; } +/* +Intent pool requests +*/ +message IntentPool { + message AddIntent { + message Request { Intent intent = 1; } + message Response { string result = 1; } + } + + message ListIntents { + message Request {} + + message Response { + repeated string intents = 1; // a list of intents. + } + } +} + +// ----------------- Indexer ----------------- +message Indexer { + message Nullifiers { + message Request {} + + message Response { + repeated string nullifiers = 1; // a list of intents. + } + } + + message UnrevealedCommits { + message Request {} + + message Response { + repeated string commits = 1; // a list of intents. + } + } + + message UnspentResources { + message Request {} + + message Response { + repeated string unspent_resources = 1; // a list of intents. + } + } +} + +// ----------------- Mempool ----------------- + +/* +Intent pool requests +*/ +message MemPool { + message Dump { + message Request {} + + message Response { + repeated string dumps = 1; // a list of intents. + } + } +} + +// ----------------- Intent Pool ----------------- + +/* +The envelope holds any message that can be sent or received by nodes. + +The envelope is required because the encoder can only encode 1 type of message. +*/ +message Envelope { + NodeInfo sender_info = 1; // node information of the sender. + bytes message_id = 2; // the message id. + + oneof inner_message { + // announcement + Announcement announcement = 3; + // list intents + IntentPool.ListIntents.Request list_intents_request = 4; + IntentPool.ListIntents.Response list_intents_response = 5; + + IntentPool.AddIntent.Request add_intent_request = 6; + IntentPool.AddIntent.Response add_intent_response = 7; + + Indexer.Nullifiers.Request nullifiers_request = 8; + Indexer.Nullifiers.Response nullifiers_response = 9; + + Indexer.UnrevealedCommits.Request unrevealed_commits_request = 10; + Indexer.UnrevealedCommits.Response unrevealed_commits_response = 11; + + Indexer.UnspentResources.Request unspent_resources_request = 12; + Indexer.UnspentResources.Response unspent_resources_response = 13; + + // mempool dump + MemPool.Dump.Request mempool_dump_request = 14; + MemPool.Dump.Response mempool_dump_response = 15; + } +} + +// ----------------- Services ----------------- +service Intents { + rpc ListIntents(IntentPool.ListIntents.Request) + returns (IntentPool.ListIntents.Response) {} + + rpc AddIntent(IntentPool.AddIntent.Request) + returns (IntentPool.AddIntent.Response) {} + + rpc ListNullifiers(Indexer.Nullifiers.Request) + returns (Indexer.Nullifiers.Response) {} + + rpc ListUnrevealedCommits(Indexer.UnrevealedCommits.Request) + returns (Indexer.UnrevealedCommits.Response) {} + + rpc ListUnspentResources(Indexer.UnspentResources.Request) + returns (Indexer.UnspentResources.Response) {} + + rpc Prove(Prove.Request) returns (Prove.Response) {} +} diff --git a/proto/anoma_grpc_pb.d.ts b/proto/anoma_grpc_pb.d.ts new file mode 100644 index 0000000..9a56ae2 --- /dev/null +++ b/proto/anoma_grpc_pb.d.ts @@ -0,0 +1,128 @@ +// package: Anoma.Protobuf +// file: proto/anoma.proto + +import * as grpc from '@grpc/grpc-js'; +import * as proto_anoma_pb from '../proto/anoma_pb'; + +interface IIntentsService extends grpc.ServiceDefinition { + listIntents: IIntentsService_IListIntents; + addIntent: IIntentsService_IAddIntent; + listNullifiers: IIntentsService_IListNullifiers; + listUnrevealedCommits: IIntentsService_IListUnrevealedCommits; + listUnspentResources: IIntentsService_IListUnspentResources; + prove: IIntentsService_IProve; +} + +interface IIntentsService_IListIntents extends grpc.MethodDefinition { + path: '/Anoma.Protobuf.Intents/ListIntents' + requestStream: false + responseStream: false + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +interface IIntentsService_IAddIntent extends grpc.MethodDefinition { + path: '/Anoma.Protobuf.Intents/AddIntent' + requestStream: false + responseStream: false + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +interface IIntentsService_IListNullifiers extends grpc.MethodDefinition { + path: '/Anoma.Protobuf.Intents/ListNullifiers' + requestStream: false + responseStream: false + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +interface IIntentsService_IListUnrevealedCommits extends grpc.MethodDefinition { + path: '/Anoma.Protobuf.Intents/ListUnrevealedCommits' + requestStream: false + responseStream: false + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +interface IIntentsService_IListUnspentResources extends grpc.MethodDefinition { + path: '/Anoma.Protobuf.Intents/ListUnspentResources' + requestStream: false + responseStream: false + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +interface IIntentsService_IProve extends grpc.MethodDefinition { + path: '/Anoma.Protobuf.Intents/Prove' + requestStream: false + responseStream: false + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const IntentsService: IIntentsService; +export interface IIntentsServer extends grpc.UntypedServiceImplementation { + listIntents: grpc.handleUnaryCall; + addIntent: grpc.handleUnaryCall; + listNullifiers: grpc.handleUnaryCall; + listUnrevealedCommits: grpc.handleUnaryCall; + listUnspentResources: grpc.handleUnaryCall; + prove: grpc.handleUnaryCall; +} + +export interface IIntentsClient { + listIntents(request: proto_anoma_pb.IntentPool.ListIntents.Request, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.IntentPool.ListIntents.Response) => void): grpc.ClientUnaryCall; + listIntents(request: proto_anoma_pb.IntentPool.ListIntents.Request, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.IntentPool.ListIntents.Response) => void): grpc.ClientUnaryCall; + listIntents(request: proto_anoma_pb.IntentPool.ListIntents.Request, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.IntentPool.ListIntents.Response) => void): grpc.ClientUnaryCall; + addIntent(request: proto_anoma_pb.IntentPool.AddIntent.Request, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.IntentPool.AddIntent.Response) => void): grpc.ClientUnaryCall; + addIntent(request: proto_anoma_pb.IntentPool.AddIntent.Request, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.IntentPool.AddIntent.Response) => void): grpc.ClientUnaryCall; + addIntent(request: proto_anoma_pb.IntentPool.AddIntent.Request, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.IntentPool.AddIntent.Response) => void): grpc.ClientUnaryCall; + listNullifiers(request: proto_anoma_pb.Indexer.Nullifiers.Request, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Indexer.Nullifiers.Response) => void): grpc.ClientUnaryCall; + listNullifiers(request: proto_anoma_pb.Indexer.Nullifiers.Request, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Indexer.Nullifiers.Response) => void): grpc.ClientUnaryCall; + listNullifiers(request: proto_anoma_pb.Indexer.Nullifiers.Request, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Indexer.Nullifiers.Response) => void): grpc.ClientUnaryCall; + listUnrevealedCommits(request: proto_anoma_pb.Indexer.UnrevealedCommits.Request, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Indexer.UnrevealedCommits.Response) => void): grpc.ClientUnaryCall; + listUnrevealedCommits(request: proto_anoma_pb.Indexer.UnrevealedCommits.Request, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Indexer.UnrevealedCommits.Response) => void): grpc.ClientUnaryCall; + listUnrevealedCommits(request: proto_anoma_pb.Indexer.UnrevealedCommits.Request, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Indexer.UnrevealedCommits.Response) => void): grpc.ClientUnaryCall; + listUnspentResources(request: proto_anoma_pb.Indexer.UnspentResources.Request, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Indexer.UnspentResources.Response) => void): grpc.ClientUnaryCall; + listUnspentResources(request: proto_anoma_pb.Indexer.UnspentResources.Request, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Indexer.UnspentResources.Response) => void): grpc.ClientUnaryCall; + listUnspentResources(request: proto_anoma_pb.Indexer.UnspentResources.Request, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Indexer.UnspentResources.Response) => void): grpc.ClientUnaryCall; + prove(request: proto_anoma_pb.Prove.Request, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Prove.Response) => void): grpc.ClientUnaryCall; + prove(request: proto_anoma_pb.Prove.Request, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Prove.Response) => void): grpc.ClientUnaryCall; + prove(request: proto_anoma_pb.Prove.Request, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Prove.Response) => void): grpc.ClientUnaryCall; +} + +export class IntentsClient extends grpc.Client implements IIntentsClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public listIntents(request: proto_anoma_pb.IntentPool.ListIntents.Request, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.IntentPool.ListIntents.Response) => void): grpc.ClientUnaryCall; + public listIntents(request: proto_anoma_pb.IntentPool.ListIntents.Request, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.IntentPool.ListIntents.Response) => void): grpc.ClientUnaryCall; + public listIntents(request: proto_anoma_pb.IntentPool.ListIntents.Request, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.IntentPool.ListIntents.Response) => void): grpc.ClientUnaryCall; + public addIntent(request: proto_anoma_pb.IntentPool.AddIntent.Request, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.IntentPool.AddIntent.Response) => void): grpc.ClientUnaryCall; + public addIntent(request: proto_anoma_pb.IntentPool.AddIntent.Request, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.IntentPool.AddIntent.Response) => void): grpc.ClientUnaryCall; + public addIntent(request: proto_anoma_pb.IntentPool.AddIntent.Request, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.IntentPool.AddIntent.Response) => void): grpc.ClientUnaryCall; + public listNullifiers(request: proto_anoma_pb.Indexer.Nullifiers.Request, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Indexer.Nullifiers.Response) => void): grpc.ClientUnaryCall; + public listNullifiers(request: proto_anoma_pb.Indexer.Nullifiers.Request, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Indexer.Nullifiers.Response) => void): grpc.ClientUnaryCall; + public listNullifiers(request: proto_anoma_pb.Indexer.Nullifiers.Request, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Indexer.Nullifiers.Response) => void): grpc.ClientUnaryCall; + public listUnrevealedCommits(request: proto_anoma_pb.Indexer.UnrevealedCommits.Request, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Indexer.UnrevealedCommits.Response) => void): grpc.ClientUnaryCall; + public listUnrevealedCommits(request: proto_anoma_pb.Indexer.UnrevealedCommits.Request, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Indexer.UnrevealedCommits.Response) => void): grpc.ClientUnaryCall; + public listUnrevealedCommits(request: proto_anoma_pb.Indexer.UnrevealedCommits.Request, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Indexer.UnrevealedCommits.Response) => void): grpc.ClientUnaryCall; + public listUnspentResources(request: proto_anoma_pb.Indexer.UnspentResources.Request, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Indexer.UnspentResources.Response) => void): grpc.ClientUnaryCall; + public listUnspentResources(request: proto_anoma_pb.Indexer.UnspentResources.Request, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Indexer.UnspentResources.Response) => void): grpc.ClientUnaryCall; + public listUnspentResources(request: proto_anoma_pb.Indexer.UnspentResources.Request, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Indexer.UnspentResources.Response) => void): grpc.ClientUnaryCall; + public prove(request: proto_anoma_pb.Prove.Request, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Prove.Response) => void): grpc.ClientUnaryCall; + public prove(request: proto_anoma_pb.Prove.Request, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Prove.Response) => void): grpc.ClientUnaryCall; + public prove(request: proto_anoma_pb.Prove.Request, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: proto_anoma_pb.Prove.Response) => void): grpc.ClientUnaryCall; +} + diff --git a/proto/anoma_grpc_pb.js b/proto/anoma_grpc_pb.js new file mode 100644 index 0000000..8319d8d --- /dev/null +++ b/proto/anoma_grpc_pb.js @@ -0,0 +1,210 @@ +// GENERATED CODE -- DO NOT EDIT! + +'use strict'; +var grpc = require('@grpc/grpc-js'); +var proto_anoma_pb = require('../proto/anoma_pb.js'); + +function serialize_Anoma_Protobuf_Indexer_Nullifiers_Request(arg) { + if (!(arg instanceof proto_anoma_pb.Indexer.Nullifiers.Request)) { + throw new Error('Expected argument of type Anoma.Protobuf.Indexer.Nullifiers.Request'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_Anoma_Protobuf_Indexer_Nullifiers_Request(buffer_arg) { + return proto_anoma_pb.Indexer.Nullifiers.Request.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_Anoma_Protobuf_Indexer_Nullifiers_Response(arg) { + if (!(arg instanceof proto_anoma_pb.Indexer.Nullifiers.Response)) { + throw new Error('Expected argument of type Anoma.Protobuf.Indexer.Nullifiers.Response'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_Anoma_Protobuf_Indexer_Nullifiers_Response(buffer_arg) { + return proto_anoma_pb.Indexer.Nullifiers.Response.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_Anoma_Protobuf_Indexer_UnrevealedCommits_Request(arg) { + if (!(arg instanceof proto_anoma_pb.Indexer.UnrevealedCommits.Request)) { + throw new Error('Expected argument of type Anoma.Protobuf.Indexer.UnrevealedCommits.Request'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_Anoma_Protobuf_Indexer_UnrevealedCommits_Request(buffer_arg) { + return proto_anoma_pb.Indexer.UnrevealedCommits.Request.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_Anoma_Protobuf_Indexer_UnrevealedCommits_Response(arg) { + if (!(arg instanceof proto_anoma_pb.Indexer.UnrevealedCommits.Response)) { + throw new Error('Expected argument of type Anoma.Protobuf.Indexer.UnrevealedCommits.Response'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_Anoma_Protobuf_Indexer_UnrevealedCommits_Response(buffer_arg) { + return proto_anoma_pb.Indexer.UnrevealedCommits.Response.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_Anoma_Protobuf_Indexer_UnspentResources_Request(arg) { + if (!(arg instanceof proto_anoma_pb.Indexer.UnspentResources.Request)) { + throw new Error('Expected argument of type Anoma.Protobuf.Indexer.UnspentResources.Request'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_Anoma_Protobuf_Indexer_UnspentResources_Request(buffer_arg) { + return proto_anoma_pb.Indexer.UnspentResources.Request.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_Anoma_Protobuf_Indexer_UnspentResources_Response(arg) { + if (!(arg instanceof proto_anoma_pb.Indexer.UnspentResources.Response)) { + throw new Error('Expected argument of type Anoma.Protobuf.Indexer.UnspentResources.Response'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_Anoma_Protobuf_Indexer_UnspentResources_Response(buffer_arg) { + return proto_anoma_pb.Indexer.UnspentResources.Response.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_Anoma_Protobuf_IntentPool_AddIntent_Request(arg) { + if (!(arg instanceof proto_anoma_pb.IntentPool.AddIntent.Request)) { + throw new Error('Expected argument of type Anoma.Protobuf.IntentPool.AddIntent.Request'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_Anoma_Protobuf_IntentPool_AddIntent_Request(buffer_arg) { + return proto_anoma_pb.IntentPool.AddIntent.Request.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_Anoma_Protobuf_IntentPool_AddIntent_Response(arg) { + if (!(arg instanceof proto_anoma_pb.IntentPool.AddIntent.Response)) { + throw new Error('Expected argument of type Anoma.Protobuf.IntentPool.AddIntent.Response'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_Anoma_Protobuf_IntentPool_AddIntent_Response(buffer_arg) { + return proto_anoma_pb.IntentPool.AddIntent.Response.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_Anoma_Protobuf_IntentPool_ListIntents_Request(arg) { + if (!(arg instanceof proto_anoma_pb.IntentPool.ListIntents.Request)) { + throw new Error('Expected argument of type Anoma.Protobuf.IntentPool.ListIntents.Request'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_Anoma_Protobuf_IntentPool_ListIntents_Request(buffer_arg) { + return proto_anoma_pb.IntentPool.ListIntents.Request.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_Anoma_Protobuf_IntentPool_ListIntents_Response(arg) { + if (!(arg instanceof proto_anoma_pb.IntentPool.ListIntents.Response)) { + throw new Error('Expected argument of type Anoma.Protobuf.IntentPool.ListIntents.Response'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_Anoma_Protobuf_IntentPool_ListIntents_Response(buffer_arg) { + return proto_anoma_pb.IntentPool.ListIntents.Response.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_Anoma_Protobuf_Prove_Request(arg) { + if (!(arg instanceof proto_anoma_pb.Prove.Request)) { + throw new Error('Expected argument of type Anoma.Protobuf.Prove.Request'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_Anoma_Protobuf_Prove_Request(buffer_arg) { + return proto_anoma_pb.Prove.Request.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_Anoma_Protobuf_Prove_Response(arg) { + if (!(arg instanceof proto_anoma_pb.Prove.Response)) { + throw new Error('Expected argument of type Anoma.Protobuf.Prove.Response'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_Anoma_Protobuf_Prove_Response(buffer_arg) { + return proto_anoma_pb.Prove.Response.deserializeBinary(new Uint8Array(buffer_arg)); +} + + +// ----------------- Services ----------------- +var IntentsService = exports.IntentsService = { + listIntents: { + path: '/Anoma.Protobuf.Intents/ListIntents', + requestStream: false, + responseStream: false, + requestType: proto_anoma_pb.IntentPool.ListIntents.Request, + responseType: proto_anoma_pb.IntentPool.ListIntents.Response, + requestSerialize: serialize_Anoma_Protobuf_IntentPool_ListIntents_Request, + requestDeserialize: deserialize_Anoma_Protobuf_IntentPool_ListIntents_Request, + responseSerialize: serialize_Anoma_Protobuf_IntentPool_ListIntents_Response, + responseDeserialize: deserialize_Anoma_Protobuf_IntentPool_ListIntents_Response, + }, + addIntent: { + path: '/Anoma.Protobuf.Intents/AddIntent', + requestStream: false, + responseStream: false, + requestType: proto_anoma_pb.IntentPool.AddIntent.Request, + responseType: proto_anoma_pb.IntentPool.AddIntent.Response, + requestSerialize: serialize_Anoma_Protobuf_IntentPool_AddIntent_Request, + requestDeserialize: deserialize_Anoma_Protobuf_IntentPool_AddIntent_Request, + responseSerialize: serialize_Anoma_Protobuf_IntentPool_AddIntent_Response, + responseDeserialize: deserialize_Anoma_Protobuf_IntentPool_AddIntent_Response, + }, + listNullifiers: { + path: '/Anoma.Protobuf.Intents/ListNullifiers', + requestStream: false, + responseStream: false, + requestType: proto_anoma_pb.Indexer.Nullifiers.Request, + responseType: proto_anoma_pb.Indexer.Nullifiers.Response, + requestSerialize: serialize_Anoma_Protobuf_Indexer_Nullifiers_Request, + requestDeserialize: deserialize_Anoma_Protobuf_Indexer_Nullifiers_Request, + responseSerialize: serialize_Anoma_Protobuf_Indexer_Nullifiers_Response, + responseDeserialize: deserialize_Anoma_Protobuf_Indexer_Nullifiers_Response, + }, + listUnrevealedCommits: { + path: '/Anoma.Protobuf.Intents/ListUnrevealedCommits', + requestStream: false, + responseStream: false, + requestType: proto_anoma_pb.Indexer.UnrevealedCommits.Request, + responseType: proto_anoma_pb.Indexer.UnrevealedCommits.Response, + requestSerialize: serialize_Anoma_Protobuf_Indexer_UnrevealedCommits_Request, + requestDeserialize: deserialize_Anoma_Protobuf_Indexer_UnrevealedCommits_Request, + responseSerialize: serialize_Anoma_Protobuf_Indexer_UnrevealedCommits_Response, + responseDeserialize: deserialize_Anoma_Protobuf_Indexer_UnrevealedCommits_Response, + }, + listUnspentResources: { + path: '/Anoma.Protobuf.Intents/ListUnspentResources', + requestStream: false, + responseStream: false, + requestType: proto_anoma_pb.Indexer.UnspentResources.Request, + responseType: proto_anoma_pb.Indexer.UnspentResources.Response, + requestSerialize: serialize_Anoma_Protobuf_Indexer_UnspentResources_Request, + requestDeserialize: deserialize_Anoma_Protobuf_Indexer_UnspentResources_Request, + responseSerialize: serialize_Anoma_Protobuf_Indexer_UnspentResources_Response, + responseDeserialize: deserialize_Anoma_Protobuf_Indexer_UnspentResources_Response, + }, + prove: { + path: '/Anoma.Protobuf.Intents/Prove', + requestStream: false, + responseStream: false, + requestType: proto_anoma_pb.Prove.Request, + responseType: proto_anoma_pb.Prove.Response, + requestSerialize: serialize_Anoma_Protobuf_Prove_Request, + requestDeserialize: deserialize_Anoma_Protobuf_Prove_Request, + responseSerialize: serialize_Anoma_Protobuf_Prove_Response, + responseDeserialize: deserialize_Anoma_Protobuf_Prove_Response, + }, +}; + +exports.IntentsClient = grpc.makeGenericClientConstructor(IntentsService); diff --git a/proto/anoma_pb.d.ts b/proto/anoma_pb.d.ts new file mode 100644 index 0000000..3be49f9 --- /dev/null +++ b/proto/anoma_pb.d.ts @@ -0,0 +1,631 @@ +// package: Anoma.Protobuf +// file: proto/anoma.proto + +import * as jspb from 'google-protobuf'; + +export class Announcement extends jspb.Message { + hasNodeInfo(): boolean; + clearNodeInfo(): void; + getNodeInfo(): NodeInfo | undefined; + setNodeInfo(value?: NodeInfo): void; + + clearEnginesList(): void; + getEnginesList(): Array; + setEnginesList(value: Array): void; + addEngines(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Announcement.AsObject; + static toObject(includeInstance: boolean, msg: Announcement): Announcement.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Announcement, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Announcement; + static deserializeBinaryFromReader(message: Announcement, reader: jspb.BinaryReader): Announcement; +} + +export namespace Announcement { + export type AsObject = { + nodeInfo?: NodeInfo.AsObject, + enginesList: Array, + } +} + +export class NodeInfo extends jspb.Message { + getNodeId(): Uint8Array | string; + getNodeId_asU8(): Uint8Array; + getNodeId_asB64(): string; + setNodeId(value: Uint8Array | string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NodeInfo.AsObject; + static toObject(includeInstance: boolean, msg: NodeInfo): NodeInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NodeInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NodeInfo; + static deserializeBinaryFromReader(message: NodeInfo, reader: jspb.BinaryReader): NodeInfo; +} + +export namespace NodeInfo { + export type AsObject = { + nodeId: Uint8Array | string, + } +} + +export class Prove extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Prove.AsObject; + static toObject(includeInstance: boolean, msg: Prove): Prove.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Prove, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Prove; + static deserializeBinaryFromReader(message: Prove, reader: jspb.BinaryReader): Prove; +} + +export namespace Prove { + export type AsObject = { + } + + export class Request extends jspb.Message { + getIntent(): string; + setIntent(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Request.AsObject; + static toObject(includeInstance: boolean, msg: Request): Request.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Request, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Request; + static deserializeBinaryFromReader(message: Request, reader: jspb.BinaryReader): Request; + } + + export namespace Request { + export type AsObject = { + intent: string, + } + } + + export class Response extends jspb.Message { + getResult(): string; + setResult(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Response.AsObject; + static toObject(includeInstance: boolean, msg: Response): Response.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Response, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Response; + static deserializeBinaryFromReader(message: Response, reader: jspb.BinaryReader): Response; + } + + export namespace Response { + export type AsObject = { + result: string, + } + } +} + +export class Intent extends jspb.Message { + getValue(): number; + setValue(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Intent.AsObject; + static toObject(includeInstance: boolean, msg: Intent): Intent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Intent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Intent; + static deserializeBinaryFromReader(message: Intent, reader: jspb.BinaryReader): Intent; +} + +export namespace Intent { + export type AsObject = { + value: number, + } +} + +export class IntentPool extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): IntentPool.AsObject; + static toObject(includeInstance: boolean, msg: IntentPool): IntentPool.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: IntentPool, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): IntentPool; + static deserializeBinaryFromReader(message: IntentPool, reader: jspb.BinaryReader): IntentPool; +} + +export namespace IntentPool { + export type AsObject = { + } + + export class AddIntent extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AddIntent.AsObject; + static toObject(includeInstance: boolean, msg: AddIntent): AddIntent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AddIntent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AddIntent; + static deserializeBinaryFromReader(message: AddIntent, reader: jspb.BinaryReader): AddIntent; + } + + export namespace AddIntent { + export type AsObject = { + } + + export class Request extends jspb.Message { + hasIntent(): boolean; + clearIntent(): void; + getIntent(): Intent | undefined; + setIntent(value?: Intent): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Request.AsObject; + static toObject(includeInstance: boolean, msg: Request): Request.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Request, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Request; + static deserializeBinaryFromReader(message: Request, reader: jspb.BinaryReader): Request; + } + + export namespace Request { + export type AsObject = { + intent?: Intent.AsObject, + } + } + + export class Response extends jspb.Message { + getResult(): string; + setResult(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Response.AsObject; + static toObject(includeInstance: boolean, msg: Response): Response.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Response, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Response; + static deserializeBinaryFromReader(message: Response, reader: jspb.BinaryReader): Response; + } + + export namespace Response { + export type AsObject = { + result: string, + } + } + } + + export class ListIntents extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListIntents.AsObject; + static toObject(includeInstance: boolean, msg: ListIntents): ListIntents.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListIntents, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListIntents; + static deserializeBinaryFromReader(message: ListIntents, reader: jspb.BinaryReader): ListIntents; + } + + export namespace ListIntents { + export type AsObject = { + } + + export class Request extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Request.AsObject; + static toObject(includeInstance: boolean, msg: Request): Request.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Request, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Request; + static deserializeBinaryFromReader(message: Request, reader: jspb.BinaryReader): Request; + } + + export namespace Request { + export type AsObject = { + } + } + + export class Response extends jspb.Message { + clearIntentsList(): void; + getIntentsList(): Array; + setIntentsList(value: Array): void; + addIntents(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Response.AsObject; + static toObject(includeInstance: boolean, msg: Response): Response.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Response, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Response; + static deserializeBinaryFromReader(message: Response, reader: jspb.BinaryReader): Response; + } + + export namespace Response { + export type AsObject = { + intentsList: Array, + } + } + } +} + +export class Indexer extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Indexer.AsObject; + static toObject(includeInstance: boolean, msg: Indexer): Indexer.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Indexer, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Indexer; + static deserializeBinaryFromReader(message: Indexer, reader: jspb.BinaryReader): Indexer; +} + +export namespace Indexer { + export type AsObject = { + } + + export class Nullifiers extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Nullifiers.AsObject; + static toObject(includeInstance: boolean, msg: Nullifiers): Nullifiers.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Nullifiers, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Nullifiers; + static deserializeBinaryFromReader(message: Nullifiers, reader: jspb.BinaryReader): Nullifiers; + } + + export namespace Nullifiers { + export type AsObject = { + } + + export class Request extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Request.AsObject; + static toObject(includeInstance: boolean, msg: Request): Request.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Request, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Request; + static deserializeBinaryFromReader(message: Request, reader: jspb.BinaryReader): Request; + } + + export namespace Request { + export type AsObject = { + } + } + + export class Response extends jspb.Message { + clearNullifiersList(): void; + getNullifiersList(): Array; + setNullifiersList(value: Array): void; + addNullifiers(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Response.AsObject; + static toObject(includeInstance: boolean, msg: Response): Response.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Response, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Response; + static deserializeBinaryFromReader(message: Response, reader: jspb.BinaryReader): Response; + } + + export namespace Response { + export type AsObject = { + nullifiersList: Array, + } + } + } + + export class UnrevealedCommits extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UnrevealedCommits.AsObject; + static toObject(includeInstance: boolean, msg: UnrevealedCommits): UnrevealedCommits.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UnrevealedCommits, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UnrevealedCommits; + static deserializeBinaryFromReader(message: UnrevealedCommits, reader: jspb.BinaryReader): UnrevealedCommits; + } + + export namespace UnrevealedCommits { + export type AsObject = { + } + + export class Request extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Request.AsObject; + static toObject(includeInstance: boolean, msg: Request): Request.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Request, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Request; + static deserializeBinaryFromReader(message: Request, reader: jspb.BinaryReader): Request; + } + + export namespace Request { + export type AsObject = { + } + } + + export class Response extends jspb.Message { + clearCommitsList(): void; + getCommitsList(): Array; + setCommitsList(value: Array): void; + addCommits(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Response.AsObject; + static toObject(includeInstance: boolean, msg: Response): Response.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Response, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Response; + static deserializeBinaryFromReader(message: Response, reader: jspb.BinaryReader): Response; + } + + export namespace Response { + export type AsObject = { + commitsList: Array, + } + } + } + + export class UnspentResources extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UnspentResources.AsObject; + static toObject(includeInstance: boolean, msg: UnspentResources): UnspentResources.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UnspentResources, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UnspentResources; + static deserializeBinaryFromReader(message: UnspentResources, reader: jspb.BinaryReader): UnspentResources; + } + + export namespace UnspentResources { + export type AsObject = { + } + + export class Request extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Request.AsObject; + static toObject(includeInstance: boolean, msg: Request): Request.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Request, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Request; + static deserializeBinaryFromReader(message: Request, reader: jspb.BinaryReader): Request; + } + + export namespace Request { + export type AsObject = { + } + } + + export class Response extends jspb.Message { + clearUnspentResourcesList(): void; + getUnspentResourcesList(): Array; + setUnspentResourcesList(value: Array): void; + addUnspentResources(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Response.AsObject; + static toObject(includeInstance: boolean, msg: Response): Response.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Response, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Response; + static deserializeBinaryFromReader(message: Response, reader: jspb.BinaryReader): Response; + } + + export namespace Response { + export type AsObject = { + unspentResourcesList: Array, + } + } + } +} + +export class MemPool extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MemPool.AsObject; + static toObject(includeInstance: boolean, msg: MemPool): MemPool.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MemPool, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MemPool; + static deserializeBinaryFromReader(message: MemPool, reader: jspb.BinaryReader): MemPool; +} + +export namespace MemPool { + export type AsObject = { + } + + export class Dump extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Dump.AsObject; + static toObject(includeInstance: boolean, msg: Dump): Dump.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Dump, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Dump; + static deserializeBinaryFromReader(message: Dump, reader: jspb.BinaryReader): Dump; + } + + export namespace Dump { + export type AsObject = { + } + + export class Request extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Request.AsObject; + static toObject(includeInstance: boolean, msg: Request): Request.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Request, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Request; + static deserializeBinaryFromReader(message: Request, reader: jspb.BinaryReader): Request; + } + + export namespace Request { + export type AsObject = { + } + } + + export class Response extends jspb.Message { + clearDumpsList(): void; + getDumpsList(): Array; + setDumpsList(value: Array): void; + addDumps(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Response.AsObject; + static toObject(includeInstance: boolean, msg: Response): Response.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Response, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Response; + static deserializeBinaryFromReader(message: Response, reader: jspb.BinaryReader): Response; + } + + export namespace Response { + export type AsObject = { + dumpsList: Array, + } + } + } +} + +export class Envelope extends jspb.Message { + hasSenderInfo(): boolean; + clearSenderInfo(): void; + getSenderInfo(): NodeInfo | undefined; + setSenderInfo(value?: NodeInfo): void; + + getMessageId(): Uint8Array | string; + getMessageId_asU8(): Uint8Array; + getMessageId_asB64(): string; + setMessageId(value: Uint8Array | string): void; + + hasAnnouncement(): boolean; + clearAnnouncement(): void; + getAnnouncement(): Announcement | undefined; + setAnnouncement(value?: Announcement): void; + + hasListIntentsRequest(): boolean; + clearListIntentsRequest(): void; + getListIntentsRequest(): IntentPool.ListIntents.Request | undefined; + setListIntentsRequest(value?: IntentPool.ListIntents.Request): void; + + hasListIntentsResponse(): boolean; + clearListIntentsResponse(): void; + getListIntentsResponse(): IntentPool.ListIntents.Response | undefined; + setListIntentsResponse(value?: IntentPool.ListIntents.Response): void; + + hasAddIntentRequest(): boolean; + clearAddIntentRequest(): void; + getAddIntentRequest(): IntentPool.AddIntent.Request | undefined; + setAddIntentRequest(value?: IntentPool.AddIntent.Request): void; + + hasAddIntentResponse(): boolean; + clearAddIntentResponse(): void; + getAddIntentResponse(): IntentPool.AddIntent.Response | undefined; + setAddIntentResponse(value?: IntentPool.AddIntent.Response): void; + + hasNullifiersRequest(): boolean; + clearNullifiersRequest(): void; + getNullifiersRequest(): Indexer.Nullifiers.Request | undefined; + setNullifiersRequest(value?: Indexer.Nullifiers.Request): void; + + hasNullifiersResponse(): boolean; + clearNullifiersResponse(): void; + getNullifiersResponse(): Indexer.Nullifiers.Response | undefined; + setNullifiersResponse(value?: Indexer.Nullifiers.Response): void; + + hasUnrevealedCommitsRequest(): boolean; + clearUnrevealedCommitsRequest(): void; + getUnrevealedCommitsRequest(): Indexer.UnrevealedCommits.Request | undefined; + setUnrevealedCommitsRequest(value?: Indexer.UnrevealedCommits.Request): void; + + hasUnrevealedCommitsResponse(): boolean; + clearUnrevealedCommitsResponse(): void; + getUnrevealedCommitsResponse(): Indexer.UnrevealedCommits.Response | undefined; + setUnrevealedCommitsResponse(value?: Indexer.UnrevealedCommits.Response): void; + + hasUnspentResourcesRequest(): boolean; + clearUnspentResourcesRequest(): void; + getUnspentResourcesRequest(): Indexer.UnspentResources.Request | undefined; + setUnspentResourcesRequest(value?: Indexer.UnspentResources.Request): void; + + hasUnspentResourcesResponse(): boolean; + clearUnspentResourcesResponse(): void; + getUnspentResourcesResponse(): Indexer.UnspentResources.Response | undefined; + setUnspentResourcesResponse(value?: Indexer.UnspentResources.Response): void; + + hasMempoolDumpRequest(): boolean; + clearMempoolDumpRequest(): void; + getMempoolDumpRequest(): MemPool.Dump.Request | undefined; + setMempoolDumpRequest(value?: MemPool.Dump.Request): void; + + hasMempoolDumpResponse(): boolean; + clearMempoolDumpResponse(): void; + getMempoolDumpResponse(): MemPool.Dump.Response | undefined; + setMempoolDumpResponse(value?: MemPool.Dump.Response): void; + + getInnerMessageCase(): Envelope.InnerMessageCase; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Envelope.AsObject; + static toObject(includeInstance: boolean, msg: Envelope): Envelope.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Envelope, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Envelope; + static deserializeBinaryFromReader(message: Envelope, reader: jspb.BinaryReader): Envelope; +} + +export namespace Envelope { + export type AsObject = { + senderInfo?: NodeInfo.AsObject, + messageId: Uint8Array | string, + announcement?: Announcement.AsObject, + listIntentsRequest?: IntentPool.ListIntents.Request.AsObject, + listIntentsResponse?: IntentPool.ListIntents.Response.AsObject, + addIntentRequest?: IntentPool.AddIntent.Request.AsObject, + addIntentResponse?: IntentPool.AddIntent.Response.AsObject, + nullifiersRequest?: Indexer.Nullifiers.Request.AsObject, + nullifiersResponse?: Indexer.Nullifiers.Response.AsObject, + unrevealedCommitsRequest?: Indexer.UnrevealedCommits.Request.AsObject, + unrevealedCommitsResponse?: Indexer.UnrevealedCommits.Response.AsObject, + unspentResourcesRequest?: Indexer.UnspentResources.Request.AsObject, + unspentResourcesResponse?: Indexer.UnspentResources.Response.AsObject, + mempoolDumpRequest?: MemPool.Dump.Request.AsObject, + mempoolDumpResponse?: MemPool.Dump.Response.AsObject, + } + + export enum InnerMessageCase { + INNER_MESSAGE_NOT_SET = 0, + ANNOUNCEMENT = 3, + LIST_INTENTS_REQUEST = 4, + LIST_INTENTS_RESPONSE = 5, + ADD_INTENT_REQUEST = 6, + ADD_INTENT_RESPONSE = 7, + NULLIFIERS_REQUEST = 8, + NULLIFIERS_RESPONSE = 9, + UNREVEALED_COMMITS_REQUEST = 10, + UNREVEALED_COMMITS_RESPONSE = 11, + UNSPENT_RESOURCES_REQUEST = 12, + UNSPENT_RESOURCES_RESPONSE = 13, + MEMPOOL_DUMP_REQUEST = 14, + MEMPOOL_DUMP_RESPONSE = 15, + } +} + diff --git a/proto/anoma_pb.js b/proto/anoma_pb.js new file mode 100644 index 0000000..f64f8c5 --- /dev/null +++ b/proto/anoma_pb.js @@ -0,0 +1,4867 @@ +// source: proto/anoma.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = Function('return this')(); + +goog.exportSymbol('proto.Anoma.Protobuf.Announcement', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.Envelope', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.Envelope.InnerMessageCase', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.Indexer', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.Indexer.Nullifiers', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.Indexer.Nullifiers.Request', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.Indexer.Nullifiers.Response', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.Indexer.UnrevealedCommits', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.Indexer.UnspentResources', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.Indexer.UnspentResources.Request', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.Indexer.UnspentResources.Response', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.Intent', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.IntentPool', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.IntentPool.AddIntent', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.IntentPool.AddIntent.Request', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.IntentPool.AddIntent.Response', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.IntentPool.ListIntents', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.IntentPool.ListIntents.Request', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.IntentPool.ListIntents.Response', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.MemPool', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.MemPool.Dump', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.MemPool.Dump.Request', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.MemPool.Dump.Response', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.NodeInfo', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.Prove', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.Prove.Request', null, global); +goog.exportSymbol('proto.Anoma.Protobuf.Prove.Response', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.Announcement = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.Anoma.Protobuf.Announcement.repeatedFields_, null); +}; +goog.inherits(proto.Anoma.Protobuf.Announcement, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.Announcement.displayName = 'proto.Anoma.Protobuf.Announcement'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.NodeInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Anoma.Protobuf.NodeInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.NodeInfo.displayName = 'proto.Anoma.Protobuf.NodeInfo'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.Prove = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Anoma.Protobuf.Prove, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.Prove.displayName = 'proto.Anoma.Protobuf.Prove'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.Prove.Request = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Anoma.Protobuf.Prove.Request, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.Prove.Request.displayName = 'proto.Anoma.Protobuf.Prove.Request'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.Prove.Response = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Anoma.Protobuf.Prove.Response, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.Prove.Response.displayName = 'proto.Anoma.Protobuf.Prove.Response'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.Intent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Anoma.Protobuf.Intent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.Intent.displayName = 'proto.Anoma.Protobuf.Intent'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.IntentPool = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Anoma.Protobuf.IntentPool, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.IntentPool.displayName = 'proto.Anoma.Protobuf.IntentPool'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.IntentPool.AddIntent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Anoma.Protobuf.IntentPool.AddIntent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.IntentPool.AddIntent.displayName = 'proto.Anoma.Protobuf.IntentPool.AddIntent'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.Request = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Anoma.Protobuf.IntentPool.AddIntent.Request, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.IntentPool.AddIntent.Request.displayName = 'proto.Anoma.Protobuf.IntentPool.AddIntent.Request'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.Response = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Anoma.Protobuf.IntentPool.AddIntent.Response, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.IntentPool.AddIntent.Response.displayName = 'proto.Anoma.Protobuf.IntentPool.AddIntent.Response'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.IntentPool.ListIntents = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Anoma.Protobuf.IntentPool.ListIntents, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.IntentPool.ListIntents.displayName = 'proto.Anoma.Protobuf.IntentPool.ListIntents'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.Request = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Anoma.Protobuf.IntentPool.ListIntents.Request, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.IntentPool.ListIntents.Request.displayName = 'proto.Anoma.Protobuf.IntentPool.ListIntents.Request'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.Response = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.Anoma.Protobuf.IntentPool.ListIntents.Response.repeatedFields_, null); +}; +goog.inherits(proto.Anoma.Protobuf.IntentPool.ListIntents.Response, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.IntentPool.ListIntents.Response.displayName = 'proto.Anoma.Protobuf.IntentPool.ListIntents.Response'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.Indexer = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Anoma.Protobuf.Indexer, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.Indexer.displayName = 'proto.Anoma.Protobuf.Indexer'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.Indexer.Nullifiers = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Anoma.Protobuf.Indexer.Nullifiers, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.Indexer.Nullifiers.displayName = 'proto.Anoma.Protobuf.Indexer.Nullifiers'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.Request = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Anoma.Protobuf.Indexer.Nullifiers.Request, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.Indexer.Nullifiers.Request.displayName = 'proto.Anoma.Protobuf.Indexer.Nullifiers.Request'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.Response = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.Anoma.Protobuf.Indexer.Nullifiers.Response.repeatedFields_, null); +}; +goog.inherits(proto.Anoma.Protobuf.Indexer.Nullifiers.Response, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.Indexer.Nullifiers.Response.displayName = 'proto.Anoma.Protobuf.Indexer.Nullifiers.Response'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Anoma.Protobuf.Indexer.UnrevealedCommits, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.Indexer.UnrevealedCommits.displayName = 'proto.Anoma.Protobuf.Indexer.UnrevealedCommits'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request.displayName = 'proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response.repeatedFields_, null); +}; +goog.inherits(proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response.displayName = 'proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.Indexer.UnspentResources = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Anoma.Protobuf.Indexer.UnspentResources, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.Indexer.UnspentResources.displayName = 'proto.Anoma.Protobuf.Indexer.UnspentResources'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.Request = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Anoma.Protobuf.Indexer.UnspentResources.Request, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.Indexer.UnspentResources.Request.displayName = 'proto.Anoma.Protobuf.Indexer.UnspentResources.Request'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.Response = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.Anoma.Protobuf.Indexer.UnspentResources.Response.repeatedFields_, null); +}; +goog.inherits(proto.Anoma.Protobuf.Indexer.UnspentResources.Response, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.Indexer.UnspentResources.Response.displayName = 'proto.Anoma.Protobuf.Indexer.UnspentResources.Response'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.MemPool = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Anoma.Protobuf.MemPool, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.MemPool.displayName = 'proto.Anoma.Protobuf.MemPool'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.MemPool.Dump = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Anoma.Protobuf.MemPool.Dump, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.MemPool.Dump.displayName = 'proto.Anoma.Protobuf.MemPool.Dump'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.MemPool.Dump.Request = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Anoma.Protobuf.MemPool.Dump.Request, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.MemPool.Dump.Request.displayName = 'proto.Anoma.Protobuf.MemPool.Dump.Request'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.MemPool.Dump.Response = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.Anoma.Protobuf.MemPool.Dump.Response.repeatedFields_, null); +}; +goog.inherits(proto.Anoma.Protobuf.MemPool.Dump.Response, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.MemPool.Dump.Response.displayName = 'proto.Anoma.Protobuf.MemPool.Dump.Response'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Anoma.Protobuf.Envelope = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.Anoma.Protobuf.Envelope.oneofGroups_); +}; +goog.inherits(proto.Anoma.Protobuf.Envelope, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.Anoma.Protobuf.Envelope.displayName = 'proto.Anoma.Protobuf.Envelope'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.Anoma.Protobuf.Announcement.repeatedFields_ = [2]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.Announcement.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.Announcement.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.Announcement} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Announcement.toObject = function(includeInstance, msg) { + var f, obj = { + nodeInfo: (f = msg.getNodeInfo()) && proto.Anoma.Protobuf.NodeInfo.toObject(includeInstance, f), + enginesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.Announcement} + */ +proto.Anoma.Protobuf.Announcement.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.Announcement; + return proto.Anoma.Protobuf.Announcement.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.Announcement} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.Announcement} + */ +proto.Anoma.Protobuf.Announcement.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.Anoma.Protobuf.NodeInfo; + reader.readMessage(value,proto.Anoma.Protobuf.NodeInfo.deserializeBinaryFromReader); + msg.setNodeInfo(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addEngines(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.Announcement.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.Announcement.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.Announcement} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Announcement.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNodeInfo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.Anoma.Protobuf.NodeInfo.serializeBinaryToWriter + ); + } + f = message.getEnginesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } +}; + + +/** + * optional NodeInfo node_info = 1; + * @return {?proto.Anoma.Protobuf.NodeInfo} + */ +proto.Anoma.Protobuf.Announcement.prototype.getNodeInfo = function() { + return /** @type{?proto.Anoma.Protobuf.NodeInfo} */ ( + jspb.Message.getWrapperField(this, proto.Anoma.Protobuf.NodeInfo, 1)); +}; + + +/** + * @param {?proto.Anoma.Protobuf.NodeInfo|undefined} value + * @return {!proto.Anoma.Protobuf.Announcement} returns this +*/ +proto.Anoma.Protobuf.Announcement.prototype.setNodeInfo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.Anoma.Protobuf.Announcement} returns this + */ +proto.Anoma.Protobuf.Announcement.prototype.clearNodeInfo = function() { + return this.setNodeInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.Anoma.Protobuf.Announcement.prototype.hasNodeInfo = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated string engines = 2; + * @return {!Array} + */ +proto.Anoma.Protobuf.Announcement.prototype.getEnginesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.Anoma.Protobuf.Announcement} returns this + */ +proto.Anoma.Protobuf.Announcement.prototype.setEnginesList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.Anoma.Protobuf.Announcement} returns this + */ +proto.Anoma.Protobuf.Announcement.prototype.addEngines = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.Anoma.Protobuf.Announcement} returns this + */ +proto.Anoma.Protobuf.Announcement.prototype.clearEnginesList = function() { + return this.setEnginesList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.NodeInfo.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.NodeInfo.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.NodeInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.NodeInfo.toObject = function(includeInstance, msg) { + var f, obj = { + nodeId: msg.getNodeId_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.NodeInfo} + */ +proto.Anoma.Protobuf.NodeInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.NodeInfo; + return proto.Anoma.Protobuf.NodeInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.NodeInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.NodeInfo} + */ +proto.Anoma.Protobuf.NodeInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setNodeId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.NodeInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.NodeInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.NodeInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.NodeInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNodeId_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } +}; + + +/** + * optional bytes node_id = 1; + * @return {!(string|Uint8Array)} + */ +proto.Anoma.Protobuf.NodeInfo.prototype.getNodeId = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes node_id = 1; + * This is a type-conversion wrapper around `getNodeId()` + * @return {string} + */ +proto.Anoma.Protobuf.NodeInfo.prototype.getNodeId_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getNodeId())); +}; + + +/** + * optional bytes node_id = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getNodeId()` + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.NodeInfo.prototype.getNodeId_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getNodeId())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.Anoma.Protobuf.NodeInfo} returns this + */ +proto.Anoma.Protobuf.NodeInfo.prototype.setNodeId = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.Prove.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.Prove.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.Prove} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Prove.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.Prove} + */ +proto.Anoma.Protobuf.Prove.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.Prove; + return proto.Anoma.Protobuf.Prove.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.Prove} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.Prove} + */ +proto.Anoma.Protobuf.Prove.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.Prove.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.Prove.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.Prove} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Prove.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.Prove.Request.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.Prove.Request.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.Prove.Request} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Prove.Request.toObject = function(includeInstance, msg) { + var f, obj = { + intent: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.Prove.Request} + */ +proto.Anoma.Protobuf.Prove.Request.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.Prove.Request; + return proto.Anoma.Protobuf.Prove.Request.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.Prove.Request} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.Prove.Request} + */ +proto.Anoma.Protobuf.Prove.Request.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setIntent(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.Prove.Request.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.Prove.Request.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.Prove.Request} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Prove.Request.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIntent(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string intent = 1; + * @return {string} + */ +proto.Anoma.Protobuf.Prove.Request.prototype.getIntent = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.Anoma.Protobuf.Prove.Request} returns this + */ +proto.Anoma.Protobuf.Prove.Request.prototype.setIntent = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.Prove.Response.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.Prove.Response.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.Prove.Response} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Prove.Response.toObject = function(includeInstance, msg) { + var f, obj = { + result: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.Prove.Response} + */ +proto.Anoma.Protobuf.Prove.Response.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.Prove.Response; + return proto.Anoma.Protobuf.Prove.Response.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.Prove.Response} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.Prove.Response} + */ +proto.Anoma.Protobuf.Prove.Response.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.Prove.Response.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.Prove.Response.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.Prove.Response} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Prove.Response.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getResult(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string result = 1; + * @return {string} + */ +proto.Anoma.Protobuf.Prove.Response.prototype.getResult = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.Anoma.Protobuf.Prove.Response} returns this + */ +proto.Anoma.Protobuf.Prove.Response.prototype.setResult = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.Intent.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.Intent.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.Intent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Intent.toObject = function(includeInstance, msg) { + var f, obj = { + value: jspb.Message.getFieldWithDefault(msg, 1, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.Intent} + */ +proto.Anoma.Protobuf.Intent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.Intent; + return proto.Anoma.Protobuf.Intent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.Intent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.Intent} + */ +proto.Anoma.Protobuf.Intent.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readInt32()); + msg.setValue(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.Intent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.Intent.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.Intent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Intent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getValue(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } +}; + + +/** + * optional int32 value = 1; + * @return {number} + */ +proto.Anoma.Protobuf.Intent.prototype.getValue = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.Anoma.Protobuf.Intent} returns this + */ +proto.Anoma.Protobuf.Intent.prototype.setValue = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.IntentPool.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.IntentPool.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.IntentPool} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.IntentPool.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.IntentPool} + */ +proto.Anoma.Protobuf.IntentPool.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.IntentPool; + return proto.Anoma.Protobuf.IntentPool.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.IntentPool} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.IntentPool} + */ +proto.Anoma.Protobuf.IntentPool.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.IntentPool.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.IntentPool.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.IntentPool} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.IntentPool.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.IntentPool.AddIntent.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.IntentPool.AddIntent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.IntentPool.AddIntent} + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.IntentPool.AddIntent; + return proto.Anoma.Protobuf.IntentPool.AddIntent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.IntentPool.AddIntent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.IntentPool.AddIntent} + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.IntentPool.AddIntent.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.IntentPool.AddIntent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.Request.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.IntentPool.AddIntent.Request.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.IntentPool.AddIntent.Request} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.Request.toObject = function(includeInstance, msg) { + var f, obj = { + intent: (f = msg.getIntent()) && proto.Anoma.Protobuf.Intent.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.IntentPool.AddIntent.Request} + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.Request.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.IntentPool.AddIntent.Request; + return proto.Anoma.Protobuf.IntentPool.AddIntent.Request.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.IntentPool.AddIntent.Request} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.IntentPool.AddIntent.Request} + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.Request.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.Anoma.Protobuf.Intent; + reader.readMessage(value,proto.Anoma.Protobuf.Intent.deserializeBinaryFromReader); + msg.setIntent(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.Request.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.IntentPool.AddIntent.Request.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.IntentPool.AddIntent.Request} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.Request.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIntent(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.Anoma.Protobuf.Intent.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Intent intent = 1; + * @return {?proto.Anoma.Protobuf.Intent} + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.Request.prototype.getIntent = function() { + return /** @type{?proto.Anoma.Protobuf.Intent} */ ( + jspb.Message.getWrapperField(this, proto.Anoma.Protobuf.Intent, 1)); +}; + + +/** + * @param {?proto.Anoma.Protobuf.Intent|undefined} value + * @return {!proto.Anoma.Protobuf.IntentPool.AddIntent.Request} returns this +*/ +proto.Anoma.Protobuf.IntentPool.AddIntent.Request.prototype.setIntent = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.Anoma.Protobuf.IntentPool.AddIntent.Request} returns this + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.Request.prototype.clearIntent = function() { + return this.setIntent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.Request.prototype.hasIntent = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.Response.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.IntentPool.AddIntent.Response.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.IntentPool.AddIntent.Response} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.Response.toObject = function(includeInstance, msg) { + var f, obj = { + result: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.IntentPool.AddIntent.Response} + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.Response.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.IntentPool.AddIntent.Response; + return proto.Anoma.Protobuf.IntentPool.AddIntent.Response.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.IntentPool.AddIntent.Response} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.IntentPool.AddIntent.Response} + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.Response.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.Response.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.IntentPool.AddIntent.Response.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.IntentPool.AddIntent.Response} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.Response.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getResult(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string result = 1; + * @return {string} + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.Response.prototype.getResult = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.Anoma.Protobuf.IntentPool.AddIntent.Response} returns this + */ +proto.Anoma.Protobuf.IntentPool.AddIntent.Response.prototype.setResult = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.IntentPool.ListIntents.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.IntentPool.ListIntents} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.IntentPool.ListIntents} + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.IntentPool.ListIntents; + return proto.Anoma.Protobuf.IntentPool.ListIntents.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.IntentPool.ListIntents} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.IntentPool.ListIntents} + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.IntentPool.ListIntents.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.IntentPool.ListIntents} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.Request.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.IntentPool.ListIntents.Request.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.IntentPool.ListIntents.Request} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.Request.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.IntentPool.ListIntents.Request} + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.Request.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.IntentPool.ListIntents.Request; + return proto.Anoma.Protobuf.IntentPool.ListIntents.Request.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.IntentPool.ListIntents.Request} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.IntentPool.ListIntents.Request} + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.Request.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.Request.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.IntentPool.ListIntents.Request.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.IntentPool.ListIntents.Request} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.Request.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.Response.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.Response.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.IntentPool.ListIntents.Response.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.IntentPool.ListIntents.Response} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.Response.toObject = function(includeInstance, msg) { + var f, obj = { + intentsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.IntentPool.ListIntents.Response} + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.Response.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.IntentPool.ListIntents.Response; + return proto.Anoma.Protobuf.IntentPool.ListIntents.Response.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.IntentPool.ListIntents.Response} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.IntentPool.ListIntents.Response} + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.Response.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.addIntents(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.Response.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.IntentPool.ListIntents.Response.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.IntentPool.ListIntents.Response} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.Response.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIntentsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 1, + f + ); + } +}; + + +/** + * repeated string intents = 1; + * @return {!Array} + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.Response.prototype.getIntentsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.Anoma.Protobuf.IntentPool.ListIntents.Response} returns this + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.Response.prototype.setIntentsList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.Anoma.Protobuf.IntentPool.ListIntents.Response} returns this + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.Response.prototype.addIntents = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.Anoma.Protobuf.IntentPool.ListIntents.Response} returns this + */ +proto.Anoma.Protobuf.IntentPool.ListIntents.Response.prototype.clearIntentsList = function() { + return this.setIntentsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.Indexer.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.Indexer.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.Indexer} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Indexer.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.Indexer} + */ +proto.Anoma.Protobuf.Indexer.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.Indexer; + return proto.Anoma.Protobuf.Indexer.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.Indexer} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.Indexer} + */ +proto.Anoma.Protobuf.Indexer.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.Indexer.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.Indexer.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.Indexer} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Indexer.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.Indexer.Nullifiers.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.Indexer.Nullifiers} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.Indexer.Nullifiers} + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.Indexer.Nullifiers; + return proto.Anoma.Protobuf.Indexer.Nullifiers.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.Indexer.Nullifiers} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.Indexer.Nullifiers} + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.Indexer.Nullifiers.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.Indexer.Nullifiers} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.Request.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.Indexer.Nullifiers.Request.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.Indexer.Nullifiers.Request} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.Request.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.Indexer.Nullifiers.Request} + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.Request.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.Indexer.Nullifiers.Request; + return proto.Anoma.Protobuf.Indexer.Nullifiers.Request.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.Indexer.Nullifiers.Request} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.Indexer.Nullifiers.Request} + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.Request.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.Request.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.Indexer.Nullifiers.Request.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.Indexer.Nullifiers.Request} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.Request.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.Response.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.Response.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.Indexer.Nullifiers.Response.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.Indexer.Nullifiers.Response} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.Response.toObject = function(includeInstance, msg) { + var f, obj = { + nullifiersList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.Indexer.Nullifiers.Response} + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.Response.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.Indexer.Nullifiers.Response; + return proto.Anoma.Protobuf.Indexer.Nullifiers.Response.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.Indexer.Nullifiers.Response} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.Indexer.Nullifiers.Response} + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.Response.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.addNullifiers(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.Response.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.Indexer.Nullifiers.Response.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.Indexer.Nullifiers.Response} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.Response.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNullifiersList(); + if (f.length > 0) { + writer.writeRepeatedString( + 1, + f + ); + } +}; + + +/** + * repeated string nullifiers = 1; + * @return {!Array} + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.Response.prototype.getNullifiersList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.Anoma.Protobuf.Indexer.Nullifiers.Response} returns this + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.Response.prototype.setNullifiersList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.Anoma.Protobuf.Indexer.Nullifiers.Response} returns this + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.Response.prototype.addNullifiers = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.Anoma.Protobuf.Indexer.Nullifiers.Response} returns this + */ +proto.Anoma.Protobuf.Indexer.Nullifiers.Response.prototype.clearNullifiersList = function() { + return this.setNullifiersList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.Indexer.UnrevealedCommits.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.Indexer.UnrevealedCommits} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.Indexer.UnrevealedCommits} + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.Indexer.UnrevealedCommits; + return proto.Anoma.Protobuf.Indexer.UnrevealedCommits.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.Indexer.UnrevealedCommits} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.Indexer.UnrevealedCommits} + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.Indexer.UnrevealedCommits.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.Indexer.UnrevealedCommits} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request} + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request; + return proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request} + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response.toObject = function(includeInstance, msg) { + var f, obj = { + commitsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response} + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response; + return proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response} + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.addCommits(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCommitsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 1, + f + ); + } +}; + + +/** + * repeated string commits = 1; + * @return {!Array} + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response.prototype.getCommitsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response} returns this + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response.prototype.setCommitsList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response} returns this + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response.prototype.addCommits = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response} returns this + */ +proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response.prototype.clearCommitsList = function() { + return this.setCommitsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.Indexer.UnspentResources.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.Indexer.UnspentResources} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.Indexer.UnspentResources} + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.Indexer.UnspentResources; + return proto.Anoma.Protobuf.Indexer.UnspentResources.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.Indexer.UnspentResources} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.Indexer.UnspentResources} + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.Indexer.UnspentResources.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.Indexer.UnspentResources} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.Request.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.Indexer.UnspentResources.Request.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.Indexer.UnspentResources.Request} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.Request.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.Indexer.UnspentResources.Request} + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.Request.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.Indexer.UnspentResources.Request; + return proto.Anoma.Protobuf.Indexer.UnspentResources.Request.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.Indexer.UnspentResources.Request} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.Indexer.UnspentResources.Request} + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.Request.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.Request.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.Indexer.UnspentResources.Request.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.Indexer.UnspentResources.Request} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.Request.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.Response.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.Response.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.Indexer.UnspentResources.Response.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.Indexer.UnspentResources.Response} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.Response.toObject = function(includeInstance, msg) { + var f, obj = { + unspentResourcesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.Indexer.UnspentResources.Response} + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.Response.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.Indexer.UnspentResources.Response; + return proto.Anoma.Protobuf.Indexer.UnspentResources.Response.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.Indexer.UnspentResources.Response} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.Indexer.UnspentResources.Response} + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.Response.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.addUnspentResources(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.Response.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.Indexer.UnspentResources.Response.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.Indexer.UnspentResources.Response} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.Response.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUnspentResourcesList(); + if (f.length > 0) { + writer.writeRepeatedString( + 1, + f + ); + } +}; + + +/** + * repeated string unspent_resources = 1; + * @return {!Array} + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.Response.prototype.getUnspentResourcesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.Anoma.Protobuf.Indexer.UnspentResources.Response} returns this + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.Response.prototype.setUnspentResourcesList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.Anoma.Protobuf.Indexer.UnspentResources.Response} returns this + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.Response.prototype.addUnspentResources = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.Anoma.Protobuf.Indexer.UnspentResources.Response} returns this + */ +proto.Anoma.Protobuf.Indexer.UnspentResources.Response.prototype.clearUnspentResourcesList = function() { + return this.setUnspentResourcesList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.MemPool.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.MemPool.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.MemPool} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.MemPool.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.MemPool} + */ +proto.Anoma.Protobuf.MemPool.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.MemPool; + return proto.Anoma.Protobuf.MemPool.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.MemPool} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.MemPool} + */ +proto.Anoma.Protobuf.MemPool.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.MemPool.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.MemPool.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.MemPool} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.MemPool.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.MemPool.Dump.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.MemPool.Dump.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.MemPool.Dump} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.MemPool.Dump.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.MemPool.Dump} + */ +proto.Anoma.Protobuf.MemPool.Dump.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.MemPool.Dump; + return proto.Anoma.Protobuf.MemPool.Dump.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.MemPool.Dump} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.MemPool.Dump} + */ +proto.Anoma.Protobuf.MemPool.Dump.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.MemPool.Dump.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.MemPool.Dump.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.MemPool.Dump} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.MemPool.Dump.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.MemPool.Dump.Request.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.MemPool.Dump.Request.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.MemPool.Dump.Request} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.MemPool.Dump.Request.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.MemPool.Dump.Request} + */ +proto.Anoma.Protobuf.MemPool.Dump.Request.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.MemPool.Dump.Request; + return proto.Anoma.Protobuf.MemPool.Dump.Request.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.MemPool.Dump.Request} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.MemPool.Dump.Request} + */ +proto.Anoma.Protobuf.MemPool.Dump.Request.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.MemPool.Dump.Request.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.MemPool.Dump.Request.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.MemPool.Dump.Request} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.MemPool.Dump.Request.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.Anoma.Protobuf.MemPool.Dump.Response.repeatedFields_ = [1]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.MemPool.Dump.Response.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.MemPool.Dump.Response.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.MemPool.Dump.Response} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.MemPool.Dump.Response.toObject = function(includeInstance, msg) { + var f, obj = { + dumpsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.MemPool.Dump.Response} + */ +proto.Anoma.Protobuf.MemPool.Dump.Response.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.MemPool.Dump.Response; + return proto.Anoma.Protobuf.MemPool.Dump.Response.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.MemPool.Dump.Response} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.MemPool.Dump.Response} + */ +proto.Anoma.Protobuf.MemPool.Dump.Response.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.addDumps(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.MemPool.Dump.Response.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.MemPool.Dump.Response.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.MemPool.Dump.Response} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.MemPool.Dump.Response.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDumpsList(); + if (f.length > 0) { + writer.writeRepeatedString( + 1, + f + ); + } +}; + + +/** + * repeated string dumps = 1; + * @return {!Array} + */ +proto.Anoma.Protobuf.MemPool.Dump.Response.prototype.getDumpsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.Anoma.Protobuf.MemPool.Dump.Response} returns this + */ +proto.Anoma.Protobuf.MemPool.Dump.Response.prototype.setDumpsList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.Anoma.Protobuf.MemPool.Dump.Response} returns this + */ +proto.Anoma.Protobuf.MemPool.Dump.Response.prototype.addDumps = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.Anoma.Protobuf.MemPool.Dump.Response} returns this + */ +proto.Anoma.Protobuf.MemPool.Dump.Response.prototype.clearDumpsList = function() { + return this.setDumpsList([]); +}; + + + +/** + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const + */ +proto.Anoma.Protobuf.Envelope.oneofGroups_ = [[3,4,5,6,7,8,9,10,11,12,13,14,15]]; + +/** + * @enum {number} + */ +proto.Anoma.Protobuf.Envelope.InnerMessageCase = { + INNER_MESSAGE_NOT_SET: 0, + ANNOUNCEMENT: 3, + LIST_INTENTS_REQUEST: 4, + LIST_INTENTS_RESPONSE: 5, + ADD_INTENT_REQUEST: 6, + ADD_INTENT_RESPONSE: 7, + NULLIFIERS_REQUEST: 8, + NULLIFIERS_RESPONSE: 9, + UNREVEALED_COMMITS_REQUEST: 10, + UNREVEALED_COMMITS_RESPONSE: 11, + UNSPENT_RESOURCES_REQUEST: 12, + UNSPENT_RESOURCES_RESPONSE: 13, + MEMPOOL_DUMP_REQUEST: 14, + MEMPOOL_DUMP_RESPONSE: 15 +}; + +/** + * @return {proto.Anoma.Protobuf.Envelope.InnerMessageCase} + */ +proto.Anoma.Protobuf.Envelope.prototype.getInnerMessageCase = function() { + return /** @type {proto.Anoma.Protobuf.Envelope.InnerMessageCase} */(jspb.Message.computeOneofCase(this, proto.Anoma.Protobuf.Envelope.oneofGroups_[0])); +}; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.Anoma.Protobuf.Envelope.prototype.toObject = function(opt_includeInstance) { + return proto.Anoma.Protobuf.Envelope.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.Anoma.Protobuf.Envelope} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Envelope.toObject = function(includeInstance, msg) { + var f, obj = { + senderInfo: (f = msg.getSenderInfo()) && proto.Anoma.Protobuf.NodeInfo.toObject(includeInstance, f), + messageId: msg.getMessageId_asB64(), + announcement: (f = msg.getAnnouncement()) && proto.Anoma.Protobuf.Announcement.toObject(includeInstance, f), + listIntentsRequest: (f = msg.getListIntentsRequest()) && proto.Anoma.Protobuf.IntentPool.ListIntents.Request.toObject(includeInstance, f), + listIntentsResponse: (f = msg.getListIntentsResponse()) && proto.Anoma.Protobuf.IntentPool.ListIntents.Response.toObject(includeInstance, f), + addIntentRequest: (f = msg.getAddIntentRequest()) && proto.Anoma.Protobuf.IntentPool.AddIntent.Request.toObject(includeInstance, f), + addIntentResponse: (f = msg.getAddIntentResponse()) && proto.Anoma.Protobuf.IntentPool.AddIntent.Response.toObject(includeInstance, f), + nullifiersRequest: (f = msg.getNullifiersRequest()) && proto.Anoma.Protobuf.Indexer.Nullifiers.Request.toObject(includeInstance, f), + nullifiersResponse: (f = msg.getNullifiersResponse()) && proto.Anoma.Protobuf.Indexer.Nullifiers.Response.toObject(includeInstance, f), + unrevealedCommitsRequest: (f = msg.getUnrevealedCommitsRequest()) && proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request.toObject(includeInstance, f), + unrevealedCommitsResponse: (f = msg.getUnrevealedCommitsResponse()) && proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response.toObject(includeInstance, f), + unspentResourcesRequest: (f = msg.getUnspentResourcesRequest()) && proto.Anoma.Protobuf.Indexer.UnspentResources.Request.toObject(includeInstance, f), + unspentResourcesResponse: (f = msg.getUnspentResourcesResponse()) && proto.Anoma.Protobuf.Indexer.UnspentResources.Response.toObject(includeInstance, f), + mempoolDumpRequest: (f = msg.getMempoolDumpRequest()) && proto.Anoma.Protobuf.MemPool.Dump.Request.toObject(includeInstance, f), + mempoolDumpResponse: (f = msg.getMempoolDumpResponse()) && proto.Anoma.Protobuf.MemPool.Dump.Response.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.Anoma.Protobuf.Envelope} + */ +proto.Anoma.Protobuf.Envelope.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.Anoma.Protobuf.Envelope; + return proto.Anoma.Protobuf.Envelope.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.Anoma.Protobuf.Envelope} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.Anoma.Protobuf.Envelope} + */ +proto.Anoma.Protobuf.Envelope.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.Anoma.Protobuf.NodeInfo; + reader.readMessage(value,proto.Anoma.Protobuf.NodeInfo.deserializeBinaryFromReader); + msg.setSenderInfo(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setMessageId(value); + break; + case 3: + var value = new proto.Anoma.Protobuf.Announcement; + reader.readMessage(value,proto.Anoma.Protobuf.Announcement.deserializeBinaryFromReader); + msg.setAnnouncement(value); + break; + case 4: + var value = new proto.Anoma.Protobuf.IntentPool.ListIntents.Request; + reader.readMessage(value,proto.Anoma.Protobuf.IntentPool.ListIntents.Request.deserializeBinaryFromReader); + msg.setListIntentsRequest(value); + break; + case 5: + var value = new proto.Anoma.Protobuf.IntentPool.ListIntents.Response; + reader.readMessage(value,proto.Anoma.Protobuf.IntentPool.ListIntents.Response.deserializeBinaryFromReader); + msg.setListIntentsResponse(value); + break; + case 6: + var value = new proto.Anoma.Protobuf.IntentPool.AddIntent.Request; + reader.readMessage(value,proto.Anoma.Protobuf.IntentPool.AddIntent.Request.deserializeBinaryFromReader); + msg.setAddIntentRequest(value); + break; + case 7: + var value = new proto.Anoma.Protobuf.IntentPool.AddIntent.Response; + reader.readMessage(value,proto.Anoma.Protobuf.IntentPool.AddIntent.Response.deserializeBinaryFromReader); + msg.setAddIntentResponse(value); + break; + case 8: + var value = new proto.Anoma.Protobuf.Indexer.Nullifiers.Request; + reader.readMessage(value,proto.Anoma.Protobuf.Indexer.Nullifiers.Request.deserializeBinaryFromReader); + msg.setNullifiersRequest(value); + break; + case 9: + var value = new proto.Anoma.Protobuf.Indexer.Nullifiers.Response; + reader.readMessage(value,proto.Anoma.Protobuf.Indexer.Nullifiers.Response.deserializeBinaryFromReader); + msg.setNullifiersResponse(value); + break; + case 10: + var value = new proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request; + reader.readMessage(value,proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request.deserializeBinaryFromReader); + msg.setUnrevealedCommitsRequest(value); + break; + case 11: + var value = new proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response; + reader.readMessage(value,proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response.deserializeBinaryFromReader); + msg.setUnrevealedCommitsResponse(value); + break; + case 12: + var value = new proto.Anoma.Protobuf.Indexer.UnspentResources.Request; + reader.readMessage(value,proto.Anoma.Protobuf.Indexer.UnspentResources.Request.deserializeBinaryFromReader); + msg.setUnspentResourcesRequest(value); + break; + case 13: + var value = new proto.Anoma.Protobuf.Indexer.UnspentResources.Response; + reader.readMessage(value,proto.Anoma.Protobuf.Indexer.UnspentResources.Response.deserializeBinaryFromReader); + msg.setUnspentResourcesResponse(value); + break; + case 14: + var value = new proto.Anoma.Protobuf.MemPool.Dump.Request; + reader.readMessage(value,proto.Anoma.Protobuf.MemPool.Dump.Request.deserializeBinaryFromReader); + msg.setMempoolDumpRequest(value); + break; + case 15: + var value = new proto.Anoma.Protobuf.MemPool.Dump.Response; + reader.readMessage(value,proto.Anoma.Protobuf.MemPool.Dump.Response.deserializeBinaryFromReader); + msg.setMempoolDumpResponse(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.Envelope.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.Anoma.Protobuf.Envelope.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.Anoma.Protobuf.Envelope} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.Anoma.Protobuf.Envelope.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSenderInfo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.Anoma.Protobuf.NodeInfo.serializeBinaryToWriter + ); + } + f = message.getMessageId_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getAnnouncement(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.Anoma.Protobuf.Announcement.serializeBinaryToWriter + ); + } + f = message.getListIntentsRequest(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.Anoma.Protobuf.IntentPool.ListIntents.Request.serializeBinaryToWriter + ); + } + f = message.getListIntentsResponse(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.Anoma.Protobuf.IntentPool.ListIntents.Response.serializeBinaryToWriter + ); + } + f = message.getAddIntentRequest(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.Anoma.Protobuf.IntentPool.AddIntent.Request.serializeBinaryToWriter + ); + } + f = message.getAddIntentResponse(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.Anoma.Protobuf.IntentPool.AddIntent.Response.serializeBinaryToWriter + ); + } + f = message.getNullifiersRequest(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto.Anoma.Protobuf.Indexer.Nullifiers.Request.serializeBinaryToWriter + ); + } + f = message.getNullifiersResponse(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.Anoma.Protobuf.Indexer.Nullifiers.Response.serializeBinaryToWriter + ); + } + f = message.getUnrevealedCommitsRequest(); + if (f != null) { + writer.writeMessage( + 10, + f, + proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request.serializeBinaryToWriter + ); + } + f = message.getUnrevealedCommitsResponse(); + if (f != null) { + writer.writeMessage( + 11, + f, + proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response.serializeBinaryToWriter + ); + } + f = message.getUnspentResourcesRequest(); + if (f != null) { + writer.writeMessage( + 12, + f, + proto.Anoma.Protobuf.Indexer.UnspentResources.Request.serializeBinaryToWriter + ); + } + f = message.getUnspentResourcesResponse(); + if (f != null) { + writer.writeMessage( + 13, + f, + proto.Anoma.Protobuf.Indexer.UnspentResources.Response.serializeBinaryToWriter + ); + } + f = message.getMempoolDumpRequest(); + if (f != null) { + writer.writeMessage( + 14, + f, + proto.Anoma.Protobuf.MemPool.Dump.Request.serializeBinaryToWriter + ); + } + f = message.getMempoolDumpResponse(); + if (f != null) { + writer.writeMessage( + 15, + f, + proto.Anoma.Protobuf.MemPool.Dump.Response.serializeBinaryToWriter + ); + } +}; + + +/** + * optional NodeInfo sender_info = 1; + * @return {?proto.Anoma.Protobuf.NodeInfo} + */ +proto.Anoma.Protobuf.Envelope.prototype.getSenderInfo = function() { + return /** @type{?proto.Anoma.Protobuf.NodeInfo} */ ( + jspb.Message.getWrapperField(this, proto.Anoma.Protobuf.NodeInfo, 1)); +}; + + +/** + * @param {?proto.Anoma.Protobuf.NodeInfo|undefined} value + * @return {!proto.Anoma.Protobuf.Envelope} returns this +*/ +proto.Anoma.Protobuf.Envelope.prototype.setSenderInfo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.Anoma.Protobuf.Envelope} returns this + */ +proto.Anoma.Protobuf.Envelope.prototype.clearSenderInfo = function() { + return this.setSenderInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.Anoma.Protobuf.Envelope.prototype.hasSenderInfo = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bytes message_id = 2; + * @return {!(string|Uint8Array)} + */ +proto.Anoma.Protobuf.Envelope.prototype.getMessageId = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes message_id = 2; + * This is a type-conversion wrapper around `getMessageId()` + * @return {string} + */ +proto.Anoma.Protobuf.Envelope.prototype.getMessageId_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getMessageId())); +}; + + +/** + * optional bytes message_id = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getMessageId()` + * @return {!Uint8Array} + */ +proto.Anoma.Protobuf.Envelope.prototype.getMessageId_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getMessageId())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.Anoma.Protobuf.Envelope} returns this + */ +proto.Anoma.Protobuf.Envelope.prototype.setMessageId = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + +/** + * optional Announcement announcement = 3; + * @return {?proto.Anoma.Protobuf.Announcement} + */ +proto.Anoma.Protobuf.Envelope.prototype.getAnnouncement = function() { + return /** @type{?proto.Anoma.Protobuf.Announcement} */ ( + jspb.Message.getWrapperField(this, proto.Anoma.Protobuf.Announcement, 3)); +}; + + +/** + * @param {?proto.Anoma.Protobuf.Announcement|undefined} value + * @return {!proto.Anoma.Protobuf.Envelope} returns this +*/ +proto.Anoma.Protobuf.Envelope.prototype.setAnnouncement = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.Anoma.Protobuf.Envelope.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.Anoma.Protobuf.Envelope} returns this + */ +proto.Anoma.Protobuf.Envelope.prototype.clearAnnouncement = function() { + return this.setAnnouncement(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.Anoma.Protobuf.Envelope.prototype.hasAnnouncement = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional IntentPool.ListIntents.Request list_intents_request = 4; + * @return {?proto.Anoma.Protobuf.IntentPool.ListIntents.Request} + */ +proto.Anoma.Protobuf.Envelope.prototype.getListIntentsRequest = function() { + return /** @type{?proto.Anoma.Protobuf.IntentPool.ListIntents.Request} */ ( + jspb.Message.getWrapperField(this, proto.Anoma.Protobuf.IntentPool.ListIntents.Request, 4)); +}; + + +/** + * @param {?proto.Anoma.Protobuf.IntentPool.ListIntents.Request|undefined} value + * @return {!proto.Anoma.Protobuf.Envelope} returns this +*/ +proto.Anoma.Protobuf.Envelope.prototype.setListIntentsRequest = function(value) { + return jspb.Message.setOneofWrapperField(this, 4, proto.Anoma.Protobuf.Envelope.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.Anoma.Protobuf.Envelope} returns this + */ +proto.Anoma.Protobuf.Envelope.prototype.clearListIntentsRequest = function() { + return this.setListIntentsRequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.Anoma.Protobuf.Envelope.prototype.hasListIntentsRequest = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional IntentPool.ListIntents.Response list_intents_response = 5; + * @return {?proto.Anoma.Protobuf.IntentPool.ListIntents.Response} + */ +proto.Anoma.Protobuf.Envelope.prototype.getListIntentsResponse = function() { + return /** @type{?proto.Anoma.Protobuf.IntentPool.ListIntents.Response} */ ( + jspb.Message.getWrapperField(this, proto.Anoma.Protobuf.IntentPool.ListIntents.Response, 5)); +}; + + +/** + * @param {?proto.Anoma.Protobuf.IntentPool.ListIntents.Response|undefined} value + * @return {!proto.Anoma.Protobuf.Envelope} returns this +*/ +proto.Anoma.Protobuf.Envelope.prototype.setListIntentsResponse = function(value) { + return jspb.Message.setOneofWrapperField(this, 5, proto.Anoma.Protobuf.Envelope.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.Anoma.Protobuf.Envelope} returns this + */ +proto.Anoma.Protobuf.Envelope.prototype.clearListIntentsResponse = function() { + return this.setListIntentsResponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.Anoma.Protobuf.Envelope.prototype.hasListIntentsResponse = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional IntentPool.AddIntent.Request add_intent_request = 6; + * @return {?proto.Anoma.Protobuf.IntentPool.AddIntent.Request} + */ +proto.Anoma.Protobuf.Envelope.prototype.getAddIntentRequest = function() { + return /** @type{?proto.Anoma.Protobuf.IntentPool.AddIntent.Request} */ ( + jspb.Message.getWrapperField(this, proto.Anoma.Protobuf.IntentPool.AddIntent.Request, 6)); +}; + + +/** + * @param {?proto.Anoma.Protobuf.IntentPool.AddIntent.Request|undefined} value + * @return {!proto.Anoma.Protobuf.Envelope} returns this +*/ +proto.Anoma.Protobuf.Envelope.prototype.setAddIntentRequest = function(value) { + return jspb.Message.setOneofWrapperField(this, 6, proto.Anoma.Protobuf.Envelope.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.Anoma.Protobuf.Envelope} returns this + */ +proto.Anoma.Protobuf.Envelope.prototype.clearAddIntentRequest = function() { + return this.setAddIntentRequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.Anoma.Protobuf.Envelope.prototype.hasAddIntentRequest = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional IntentPool.AddIntent.Response add_intent_response = 7; + * @return {?proto.Anoma.Protobuf.IntentPool.AddIntent.Response} + */ +proto.Anoma.Protobuf.Envelope.prototype.getAddIntentResponse = function() { + return /** @type{?proto.Anoma.Protobuf.IntentPool.AddIntent.Response} */ ( + jspb.Message.getWrapperField(this, proto.Anoma.Protobuf.IntentPool.AddIntent.Response, 7)); +}; + + +/** + * @param {?proto.Anoma.Protobuf.IntentPool.AddIntent.Response|undefined} value + * @return {!proto.Anoma.Protobuf.Envelope} returns this +*/ +proto.Anoma.Protobuf.Envelope.prototype.setAddIntentResponse = function(value) { + return jspb.Message.setOneofWrapperField(this, 7, proto.Anoma.Protobuf.Envelope.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.Anoma.Protobuf.Envelope} returns this + */ +proto.Anoma.Protobuf.Envelope.prototype.clearAddIntentResponse = function() { + return this.setAddIntentResponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.Anoma.Protobuf.Envelope.prototype.hasAddIntentResponse = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional Indexer.Nullifiers.Request nullifiers_request = 8; + * @return {?proto.Anoma.Protobuf.Indexer.Nullifiers.Request} + */ +proto.Anoma.Protobuf.Envelope.prototype.getNullifiersRequest = function() { + return /** @type{?proto.Anoma.Protobuf.Indexer.Nullifiers.Request} */ ( + jspb.Message.getWrapperField(this, proto.Anoma.Protobuf.Indexer.Nullifiers.Request, 8)); +}; + + +/** + * @param {?proto.Anoma.Protobuf.Indexer.Nullifiers.Request|undefined} value + * @return {!proto.Anoma.Protobuf.Envelope} returns this +*/ +proto.Anoma.Protobuf.Envelope.prototype.setNullifiersRequest = function(value) { + return jspb.Message.setOneofWrapperField(this, 8, proto.Anoma.Protobuf.Envelope.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.Anoma.Protobuf.Envelope} returns this + */ +proto.Anoma.Protobuf.Envelope.prototype.clearNullifiersRequest = function() { + return this.setNullifiersRequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.Anoma.Protobuf.Envelope.prototype.hasNullifiersRequest = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional Indexer.Nullifiers.Response nullifiers_response = 9; + * @return {?proto.Anoma.Protobuf.Indexer.Nullifiers.Response} + */ +proto.Anoma.Protobuf.Envelope.prototype.getNullifiersResponse = function() { + return /** @type{?proto.Anoma.Protobuf.Indexer.Nullifiers.Response} */ ( + jspb.Message.getWrapperField(this, proto.Anoma.Protobuf.Indexer.Nullifiers.Response, 9)); +}; + + +/** + * @param {?proto.Anoma.Protobuf.Indexer.Nullifiers.Response|undefined} value + * @return {!proto.Anoma.Protobuf.Envelope} returns this +*/ +proto.Anoma.Protobuf.Envelope.prototype.setNullifiersResponse = function(value) { + return jspb.Message.setOneofWrapperField(this, 9, proto.Anoma.Protobuf.Envelope.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.Anoma.Protobuf.Envelope} returns this + */ +proto.Anoma.Protobuf.Envelope.prototype.clearNullifiersResponse = function() { + return this.setNullifiersResponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.Anoma.Protobuf.Envelope.prototype.hasNullifiersResponse = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional Indexer.UnrevealedCommits.Request unrevealed_commits_request = 10; + * @return {?proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request} + */ +proto.Anoma.Protobuf.Envelope.prototype.getUnrevealedCommitsRequest = function() { + return /** @type{?proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request} */ ( + jspb.Message.getWrapperField(this, proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request, 10)); +}; + + +/** + * @param {?proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Request|undefined} value + * @return {!proto.Anoma.Protobuf.Envelope} returns this +*/ +proto.Anoma.Protobuf.Envelope.prototype.setUnrevealedCommitsRequest = function(value) { + return jspb.Message.setOneofWrapperField(this, 10, proto.Anoma.Protobuf.Envelope.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.Anoma.Protobuf.Envelope} returns this + */ +proto.Anoma.Protobuf.Envelope.prototype.clearUnrevealedCommitsRequest = function() { + return this.setUnrevealedCommitsRequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.Anoma.Protobuf.Envelope.prototype.hasUnrevealedCommitsRequest = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional Indexer.UnrevealedCommits.Response unrevealed_commits_response = 11; + * @return {?proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response} + */ +proto.Anoma.Protobuf.Envelope.prototype.getUnrevealedCommitsResponse = function() { + return /** @type{?proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response} */ ( + jspb.Message.getWrapperField(this, proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response, 11)); +}; + + +/** + * @param {?proto.Anoma.Protobuf.Indexer.UnrevealedCommits.Response|undefined} value + * @return {!proto.Anoma.Protobuf.Envelope} returns this +*/ +proto.Anoma.Protobuf.Envelope.prototype.setUnrevealedCommitsResponse = function(value) { + return jspb.Message.setOneofWrapperField(this, 11, proto.Anoma.Protobuf.Envelope.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.Anoma.Protobuf.Envelope} returns this + */ +proto.Anoma.Protobuf.Envelope.prototype.clearUnrevealedCommitsResponse = function() { + return this.setUnrevealedCommitsResponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.Anoma.Protobuf.Envelope.prototype.hasUnrevealedCommitsResponse = function() { + return jspb.Message.getField(this, 11) != null; +}; + + +/** + * optional Indexer.UnspentResources.Request unspent_resources_request = 12; + * @return {?proto.Anoma.Protobuf.Indexer.UnspentResources.Request} + */ +proto.Anoma.Protobuf.Envelope.prototype.getUnspentResourcesRequest = function() { + return /** @type{?proto.Anoma.Protobuf.Indexer.UnspentResources.Request} */ ( + jspb.Message.getWrapperField(this, proto.Anoma.Protobuf.Indexer.UnspentResources.Request, 12)); +}; + + +/** + * @param {?proto.Anoma.Protobuf.Indexer.UnspentResources.Request|undefined} value + * @return {!proto.Anoma.Protobuf.Envelope} returns this +*/ +proto.Anoma.Protobuf.Envelope.prototype.setUnspentResourcesRequest = function(value) { + return jspb.Message.setOneofWrapperField(this, 12, proto.Anoma.Protobuf.Envelope.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.Anoma.Protobuf.Envelope} returns this + */ +proto.Anoma.Protobuf.Envelope.prototype.clearUnspentResourcesRequest = function() { + return this.setUnspentResourcesRequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.Anoma.Protobuf.Envelope.prototype.hasUnspentResourcesRequest = function() { + return jspb.Message.getField(this, 12) != null; +}; + + +/** + * optional Indexer.UnspentResources.Response unspent_resources_response = 13; + * @return {?proto.Anoma.Protobuf.Indexer.UnspentResources.Response} + */ +proto.Anoma.Protobuf.Envelope.prototype.getUnspentResourcesResponse = function() { + return /** @type{?proto.Anoma.Protobuf.Indexer.UnspentResources.Response} */ ( + jspb.Message.getWrapperField(this, proto.Anoma.Protobuf.Indexer.UnspentResources.Response, 13)); +}; + + +/** + * @param {?proto.Anoma.Protobuf.Indexer.UnspentResources.Response|undefined} value + * @return {!proto.Anoma.Protobuf.Envelope} returns this +*/ +proto.Anoma.Protobuf.Envelope.prototype.setUnspentResourcesResponse = function(value) { + return jspb.Message.setOneofWrapperField(this, 13, proto.Anoma.Protobuf.Envelope.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.Anoma.Protobuf.Envelope} returns this + */ +proto.Anoma.Protobuf.Envelope.prototype.clearUnspentResourcesResponse = function() { + return this.setUnspentResourcesResponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.Anoma.Protobuf.Envelope.prototype.hasUnspentResourcesResponse = function() { + return jspb.Message.getField(this, 13) != null; +}; + + +/** + * optional MemPool.Dump.Request mempool_dump_request = 14; + * @return {?proto.Anoma.Protobuf.MemPool.Dump.Request} + */ +proto.Anoma.Protobuf.Envelope.prototype.getMempoolDumpRequest = function() { + return /** @type{?proto.Anoma.Protobuf.MemPool.Dump.Request} */ ( + jspb.Message.getWrapperField(this, proto.Anoma.Protobuf.MemPool.Dump.Request, 14)); +}; + + +/** + * @param {?proto.Anoma.Protobuf.MemPool.Dump.Request|undefined} value + * @return {!proto.Anoma.Protobuf.Envelope} returns this +*/ +proto.Anoma.Protobuf.Envelope.prototype.setMempoolDumpRequest = function(value) { + return jspb.Message.setOneofWrapperField(this, 14, proto.Anoma.Protobuf.Envelope.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.Anoma.Protobuf.Envelope} returns this + */ +proto.Anoma.Protobuf.Envelope.prototype.clearMempoolDumpRequest = function() { + return this.setMempoolDumpRequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.Anoma.Protobuf.Envelope.prototype.hasMempoolDumpRequest = function() { + return jspb.Message.getField(this, 14) != null; +}; + + +/** + * optional MemPool.Dump.Response mempool_dump_response = 15; + * @return {?proto.Anoma.Protobuf.MemPool.Dump.Response} + */ +proto.Anoma.Protobuf.Envelope.prototype.getMempoolDumpResponse = function() { + return /** @type{?proto.Anoma.Protobuf.MemPool.Dump.Response} */ ( + jspb.Message.getWrapperField(this, proto.Anoma.Protobuf.MemPool.Dump.Response, 15)); +}; + + +/** + * @param {?proto.Anoma.Protobuf.MemPool.Dump.Response|undefined} value + * @return {!proto.Anoma.Protobuf.Envelope} returns this +*/ +proto.Anoma.Protobuf.Envelope.prototype.setMempoolDumpResponse = function(value) { + return jspb.Message.setOneofWrapperField(this, 15, proto.Anoma.Protobuf.Envelope.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.Anoma.Protobuf.Envelope} returns this + */ +proto.Anoma.Protobuf.Envelope.prototype.clearMempoolDumpResponse = function() { + return this.setMempoolDumpResponse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.Anoma.Protobuf.Envelope.prototype.hasMempoolDumpResponse = function() { + return jspb.Message.getField(this, 15) != null; +}; + + +goog.object.extend(exports, proto.Anoma.Protobuf); diff --git a/scripts/genereate-protobuf.sh b/scripts/genereate-protobuf.sh new file mode 100755 index 0000000..50f4d6f --- /dev/null +++ b/scripts/genereate-protobuf.sh @@ -0,0 +1,7 @@ +npx protoc-gen-grpc \ + --js_out=import_style=commonjs,binary:./ \ + --grpc_out=grpc_js:./ \ + ./proto/anoma.proto +npx protoc-gen-grpc-ts \ + --ts_out=grpc_js:./ \ + ./proto/anoma.proto diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..56a8ab8 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,110 @@ +{ + "compilerOptions": { + /* Visit https://aka.ms/tsconfig to read more about this file */ + + /* Projects */ + // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */ + // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ + // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ + // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */ + // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ + // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ + + /* Language and Environment */ + "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ + // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ + // "jsx": "preserve", /* Specify what JSX code is generated. */ + // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */ + // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ + // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */ + // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */ + // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */ + // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */ + // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ + // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ + // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ + + /* Modules */ + "module": "commonjs", /* Specify what module code is generated. */ + // "rootDir": "./", /* Specify the root folder within your source files. */ + // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ + // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ + // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ + // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ + // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */ + // "types": [], /* Specify type package names to be included without being referenced in a source file. */ + // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ + // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */ + // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */ + // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */ + // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ + // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ + // "noUncheckedSideEffectImports": true, /* Check side effect imports. */ + // "resolveJsonModule": true, /* Enable importing .json files. */ + // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ + // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ + + /* JavaScript Support */ + // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ + // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ + // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ + + /* Emit */ + // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ + // "declarationMap": true, /* Create sourcemaps for d.ts files. */ + // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ + // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ + // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ + // "noEmit": true, /* Disable emitting files from a compilation. */ + // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ + // "outDir": "./", /* Specify an output folder for all emitted files. */ + // "removeComments": true, /* Disable emitting comments. */ + // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ + // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ + // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */ + // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ + // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */ + // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */ + // "newLine": "crlf", /* Set the newline character for emitting files. */ + // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */ + // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */ + // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ + // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */ + // "declarationDir": "./", /* Specify the output directory for generated declaration files. */ + + /* Interop Constraints */ + // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ + // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */ + // "isolatedDeclarations": true, /* Require sufficient annotation on exports so other tools can trivially generate declaration files. */ + // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ + "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ + // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ + "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ + + /* Type Checking */ + "strict": true, /* Enable all strict type-checking options. */ + // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ + // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */ + // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ + // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */ + // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */ + // "strictBuiltinIteratorReturn": true, /* Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'. */ + // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */ + // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */ + // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ + // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */ + // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */ + // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ + // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ + // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ + // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */ + // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ + // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */ + // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ + // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ + + /* Completeness */ + // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ + "skipLibCheck": true /* Skip type checking all .d.ts files. */ + } +}