From 6df3a0d6dc1e503a19867bb10659a169932cedda Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Fri, 10 May 2024 17:47:34 +0200 Subject: [PATCH] feat: update nns-proto Signed-off-by: David Dal Busco --- package-lock.json | 2166 +- package.json | 1 + packages/nns-proto/proto/base_types.proto | 38 +- packages/nns-proto/proto/base_types_pb.d.ts | 112 - packages/nns-proto/proto/base_types_pb.js | 908 +- packages/nns-proto/proto/governance.proto | 2661 +- packages/nns-proto/proto/governance_pb.d.ts | 5395 ++- packages/nns-proto/proto/governance_pb.js | 37414 ++++++++++++++-- packages/nns-proto/proto/ledger.proto | 252 +- packages/nns-proto/proto/ledger_pb.d.ts | 680 +- packages/nns-proto/proto/ledger_pb.js | 9471 ++-- packages/nns-proto/proto/nervous_system.proto | 51 + packages/nns-proto/proto/nns_common.proto | 20 + packages/nns-proto/proto/swap.proto | 1547 + scripts/update_proto.sh | 14 + 15 files changed, 52380 insertions(+), 8350 deletions(-) create mode 100644 packages/nns-proto/proto/nervous_system.proto create mode 100644 packages/nns-proto/proto/nns_common.proto create mode 100644 packages/nns-proto/proto/swap.proto diff --git a/package-lock.json b/package-lock.json index c90cd1936..7d1278e25 100644 --- a/package-lock.json +++ b/package-lock.json @@ -38,6 +38,7 @@ "node-fetch": "^3.3.2", "prettier": "^3.2.5", "prettier-plugin-organize-imports": "^3.2.4", + "protoc-gen-js": "^3.21.2", "semver": "^7.6.0", "size-limit": "^11.1.2", "text-encoding": "^0.7.0", @@ -1716,6 +1717,15 @@ "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", "dev": true }, + "node_modules/@sindresorhus/is": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.7.0.tgz", + "integrity": "sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/@sindresorhus/merge-streams": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-2.1.0.tgz", @@ -2417,6 +2427,15 @@ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, + "node_modules/adm-zip": { + "version": "0.5.12", + "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.12.tgz", + "integrity": "sha512-6TVU49mK6KZb4qG6xWaaM4C7sA/sgUMLy/JYMOzkcp3BvVLpW0fXDFQiIzAuxFCt/2+xD7fNIiPFAoLZPhVNLQ==", + "dev": true, + "engines": { + "node": ">=6.0" + } + }, "node_modules/ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", @@ -2497,6 +2516,27 @@ "node": ">= 8" } }, + "node_modules/archive-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/archive-type/-/archive-type-4.0.0.tgz", + "integrity": "sha512-zV4Ky0v1F8dBrdYElwTvQhweQ0P7Kwc1aluqJsYtOBP01jXcWCyW2IEfI1YiqsG+Iy7ZR+o5LF1N+PGECBxHWA==", + "dev": true, + "dependencies": { + "file-type": "^4.2.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/archive-type/node_modules/file-type": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-4.4.0.tgz", + "integrity": "sha512-f2UbFQEk7LXgWpi5ntcO86OeA/cC80fuDDDaX/fZ2ZGel+AF7leRQqBBW1eJNiiQkrZlAoM6P+VYP5P6bOlDEQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", @@ -2763,8 +2803,7 @@ "type": "consulting", "url": "https://feross.org/support" } - ], - "peer": true + ] }, "node_modules/bech32": { "version": "2.0.0", @@ -2792,6 +2831,46 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/bl": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.3.tgz", + "integrity": "sha512-pvcNpa0UU69UT341rO6AYy4FVAIkUHuZXRIWbq+zHnsVcRzDDjIAhGuuYoi0d//cwIwtt4pkpKycWEfjdV+vww==", + "dev": true, + "dependencies": { + "readable-stream": "^2.3.5", + "safe-buffer": "^5.1.1" + } + }, + "node_modules/bl/node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "node_modules/bl/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "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/bl/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/borc": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", @@ -2929,6 +3008,37 @@ "ieee754": "^1.2.1" } }, + "node_modules/buffer-alloc": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz", + "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==", + "dev": true, + "dependencies": { + "buffer-alloc-unsafe": "^1.1.0", + "buffer-fill": "^1.0.0" + } + }, + "node_modules/buffer-alloc-unsafe": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", + "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==", + "dev": true + }, + "node_modules/buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/buffer-fill": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", + "integrity": "sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==", + "dev": true + }, "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", @@ -2954,6 +3064,39 @@ "node": ">= 0.8" } }, + "node_modules/cacheable-request": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-2.1.4.tgz", + "integrity": "sha512-vag0O2LKZ/najSoUwDbVlnlCFvhBE/7mGTY2B5FgCBDcRD+oVV1HYTOwM6JZfMg/hIcM6IwnTZ1uQQL5/X3xIQ==", + "dev": true, + "dependencies": { + "clone-response": "1.0.2", + "get-stream": "3.0.0", + "http-cache-semantics": "3.8.1", + "keyv": "3.0.0", + "lowercase-keys": "1.0.0", + "normalize-url": "2.0.1", + "responselike": "1.0.2" + } + }, + "node_modules/cacheable-request/node_modules/get-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "integrity": "sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/cacheable-request/node_modules/lowercase-keys": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz", + "integrity": "sha512-RPlX0+PHuvxVDZ7xX+EBVAp4RsVxP/TdDSN2mJYdiq1Lc4Hz7EUSjUI7RZrKKlmrIzVhf6Jo2stj7++gVarS0A==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/call-bind": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", @@ -3088,6 +3231,15 @@ "node": ">=12" } }, + "node_modules/clone-response": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", + "integrity": "sha512-yjLXh88P599UOyPTFX0POsd7WxnbsVsGohcwzHOLspIhhpalPw1BcqED8NblyZLKcGrL8dTgMlcaZxV2jAD41Q==", + "dev": true, + "dependencies": { + "mimic-response": "^1.0.0" + } + }, "node_modules/co": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", @@ -3125,8 +3277,7 @@ "node_modules/commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "peer": true + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "node_modules/concat-map": { "version": "0.0.1", @@ -3134,6 +3285,38 @@ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", "dev": true }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "dev": true, + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-disposition/node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, "node_modules/convert-source-map": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", @@ -3143,6 +3326,12 @@ "safe-buffer": "~5.1.1" } }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true + }, "node_modules/create-jest": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", @@ -3204,6 +3393,220 @@ } } }, + "node_modules/decode-uri-component": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "dev": true, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/decompress": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/decompress/-/decompress-4.2.1.tgz", + "integrity": "sha512-e48kc2IjU+2Zw8cTb6VZcJQ3lgVbS4uuB1TfCHbiZIP/haNXm+SVyhu+87jts5/3ROpd82GSVCoNs/z8l4ZOaQ==", + "dev": true, + "dependencies": { + "decompress-tar": "^4.0.0", + "decompress-tarbz2": "^4.0.0", + "decompress-targz": "^4.0.0", + "decompress-unzip": "^4.0.1", + "graceful-fs": "^4.1.10", + "make-dir": "^1.0.0", + "pify": "^2.3.0", + "strip-dirs": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/decompress-response": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", + "integrity": "sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA==", + "dev": true, + "dependencies": { + "mimic-response": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/decompress-tar": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/decompress-tar/-/decompress-tar-4.1.1.tgz", + "integrity": "sha512-JdJMaCrGpB5fESVyxwpCx4Jdj2AagLmv3y58Qy4GE6HMVjWz1FeVQk1Ct4Kye7PftcdOo/7U7UKzYBJgqnGeUQ==", + "dev": true, + "dependencies": { + "file-type": "^5.2.0", + "is-stream": "^1.1.0", + "tar-stream": "^1.5.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/decompress-tar/node_modules/file-type": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-5.2.0.tgz", + "integrity": "sha512-Iq1nJ6D2+yIO4c8HHg4fyVb8mAJieo1Oloy1mLLaB2PvezNedhBVm+QU7g0qM42aiMbRXTxKKwGD17rjKNJYVQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/decompress-tar/node_modules/is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decompress-tarbz2": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/decompress-tarbz2/-/decompress-tarbz2-4.1.1.tgz", + "integrity": "sha512-s88xLzf1r81ICXLAVQVzaN6ZmX4A6U4z2nMbOwobxkLoIIfjVMBg7TeguTUXkKeXni795B6y5rnvDw7rxhAq9A==", + "dev": true, + "dependencies": { + "decompress-tar": "^4.1.0", + "file-type": "^6.1.0", + "is-stream": "^1.1.0", + "seek-bzip": "^1.0.5", + "unbzip2-stream": "^1.0.9" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/decompress-tarbz2/node_modules/file-type": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-6.2.0.tgz", + "integrity": "sha512-YPcTBDV+2Tm0VqjybVd32MHdlEGAtuxS3VAYsumFokDSMG+ROT5wawGlnHDoz7bfMcMDt9hxuXvXwoKUx2fkOg==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/decompress-tarbz2/node_modules/is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decompress-targz": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/decompress-targz/-/decompress-targz-4.1.1.tgz", + "integrity": "sha512-4z81Znfr6chWnRDNfFNqLwPvm4db3WuZkqV+UgXQzSngG3CEKdBkw5jrv3axjjL96glyiiKjsxJG3X6WBZwX3w==", + "dev": true, + "dependencies": { + "decompress-tar": "^4.1.1", + "file-type": "^5.2.0", + "is-stream": "^1.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/decompress-targz/node_modules/file-type": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-5.2.0.tgz", + "integrity": "sha512-Iq1nJ6D2+yIO4c8HHg4fyVb8mAJieo1Oloy1mLLaB2PvezNedhBVm+QU7g0qM42aiMbRXTxKKwGD17rjKNJYVQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/decompress-targz/node_modules/is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decompress-unzip": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/decompress-unzip/-/decompress-unzip-4.0.1.tgz", + "integrity": "sha512-1fqeluvxgnn86MOh66u8FjbtJpAFv5wgCT9Iw8rcBqQcCo5tO8eiJw7NNTrvt9n4CRBVq7CstiS922oPgyGLrw==", + "dev": true, + "dependencies": { + "file-type": "^3.8.0", + "get-stream": "^2.2.0", + "pify": "^2.3.0", + "yauzl": "^2.4.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/decompress-unzip/node_modules/file-type": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz", + "integrity": "sha512-RLoqTXE8/vPmMuTI88DAzhMYC99I8BWv7zYP4A1puo5HIjEJ5EX48ighy4ZyKMG9EDXxBgW6e++cn7d1xuFghA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decompress-unzip/node_modules/get-stream": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-2.3.1.tgz", + "integrity": "sha512-AUGhbbemXxrZJRD5cDvKtQxLuYaIbNtDTK8YqupCI393Q2KSTreEsLUN3ZxAWFGiKTzL6nKuzfcIvieflUX9qA==", + "dev": true, + "dependencies": { + "object-assign": "^4.0.1", + "pinkie-promise": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decompress-unzip/node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decompress/node_modules/make-dir": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", + "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", + "dev": true, + "dependencies": { + "pify": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/decompress/node_modules/make-dir/node_modules/pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/decompress/node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/dedent": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.1.tgz", @@ -3312,6 +3715,59 @@ "node": ">=6.0.0" } }, + "node_modules/download": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/download/-/download-8.0.0.tgz", + "integrity": "sha512-ASRY5QhDk7FK+XrQtQyvhpDKanLluEEQtWl/J7Lxuf/b+i8RYh997QeXvL85xitrmRKVlx9c7eTrcRdq2GS4eA==", + "dev": true, + "dependencies": { + "archive-type": "^4.0.0", + "content-disposition": "^0.5.2", + "decompress": "^4.2.1", + "ext-name": "^5.0.0", + "file-type": "^11.1.0", + "filenamify": "^3.0.0", + "get-stream": "^4.1.0", + "got": "^8.3.1", + "make-dir": "^2.1.0", + "p-event": "^2.1.0", + "pify": "^4.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/download/node_modules/get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/download/node_modules/make-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", + "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "dev": true, + "dependencies": { + "pify": "^4.0.1", + "semver": "^5.6.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/duplexer3": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.5.tgz", + "integrity": "sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA==", + "dev": true + }, "node_modules/electron-to-chromium": { "version": "1.4.270", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.270.tgz", @@ -3336,6 +3792,15 @@ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "dependencies": { + "once": "^1.4.0" + } + }, "node_modules/error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", @@ -4049,6 +4514,31 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/ext-list": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/ext-list/-/ext-list-2.2.2.tgz", + "integrity": "sha512-u+SQgsubraE6zItfVA0tBuCBhfU9ogSRnsvygI7wht9TS510oLkBRXBsqopeUG/GBOIQyKZO9wjTqIu/sf5zFA==", + "dev": true, + "dependencies": { + "mime-db": "^1.28.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ext-name": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ext-name/-/ext-name-5.0.0.tgz", + "integrity": "sha512-yblEwXAbGv1VQDmow7s38W77hzAgJAO50ztBLMcUyUBfxv1HC+LGwtiEN+Co6LtlqT/5uwVOxsD4TNIilWhwdQ==", + "dev": true, + "dependencies": { + "ext-list": "^2.0.0", + "sort-keys-length": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -4113,6 +4603,15 @@ "bser": "2.1.1" } }, + "node_modules/fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "dev": true, + "dependencies": { + "pend": "~1.2.0" + } + }, "node_modules/fetch-blob": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", @@ -4148,6 +4647,38 @@ "node": "^10.12.0 || >=12.0.0" } }, + "node_modules/file-type": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-11.1.0.tgz", + "integrity": "sha512-rM0UO7Qm9K7TWTtA6AShI/t7H5BPjDeGVDaNyg9BjHAj3PysKy7+8C8D137R88jnR3rFJZQB/tFgydl5sN5m7g==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/filename-reserved-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz", + "integrity": "sha512-lc1bnsSr4L4Bdif8Xb/qrtokGbq5zlsms/CYH8PP+WtCkGNF65DPiQY8vG3SakEdRn8Dlnm+gW/qWKKjS5sZzQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/filenamify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/filenamify/-/filenamify-3.0.0.tgz", + "integrity": "sha512-5EFZ//MsvJgXjBAFJ+Bh2YaCTRF/VP1YOmGrgt+KJ4SFRLjI87EIdwLLuT6wQX0I4F9W41xutobzczjsOKlI/g==", + "dev": true, + "dependencies": { + "filename-reserved-regex": "^2.0.0", + "strip-outer": "^1.0.0", + "trim-repeated": "^1.0.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/fill-range": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", @@ -4213,6 +4744,52 @@ "node": ">=12.20.0" } }, + "node_modules/from2": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", + "integrity": "sha512-OMcX/4IC/uqEPVgGeyfN22LJk6AZrMkRZHxcHBMBvHScDGgwTm2GT2Wkgtocyd3JfZffjj2kYUDXXII0Fk9W0g==", + "dev": true, + "dependencies": { + "inherits": "^2.0.1", + "readable-stream": "^2.0.0" + } + }, + "node_modules/from2/node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "node_modules/from2/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "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/from2/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/fs-constants": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", + "dev": true + }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -4438,6 +5015,52 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/got": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/got/-/got-8.3.2.tgz", + "integrity": "sha512-qjUJ5U/hawxosMryILofZCkm3C84PLJS/0grRIpjAwu+Lkxxj5cxeCU25BG0/3mDSpXKTyZr8oh8wIgLaH0QCw==", + "dev": true, + "dependencies": { + "@sindresorhus/is": "^0.7.0", + "cacheable-request": "^2.1.1", + "decompress-response": "^3.3.0", + "duplexer3": "^0.1.4", + "get-stream": "^3.0.0", + "into-stream": "^3.1.0", + "is-retry-allowed": "^1.1.0", + "isurl": "^1.0.0-alpha5", + "lowercase-keys": "^1.0.0", + "mimic-response": "^1.0.0", + "p-cancelable": "^0.4.0", + "p-timeout": "^2.0.1", + "pify": "^3.0.0", + "safe-buffer": "^5.1.1", + "timed-out": "^4.0.1", + "url-parse-lax": "^3.0.0", + "url-to-options": "^1.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/got/node_modules/get-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "integrity": "sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/got/node_modules/pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/graceful-fs": { "version": "4.2.10", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", @@ -4504,6 +5127,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/has-symbol-support-x": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/has-symbol-support-x/-/has-symbol-support-x-1.4.2.tgz", + "integrity": "sha512-3ToOva++HaW+eCpgqZrCfN51IPB+7bJNVT6CUATzueB5Heb8o6Nam0V3HG5dlDvZU1Gn5QLcbahiKw/XVk5JJw==", + "dev": true, + "engines": { + "node": "*" + } + }, "node_modules/has-symbols": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", @@ -4516,6 +5148,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/has-to-string-tag-x": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz", + "integrity": "sha512-vdbKfmw+3LoOYVr+mtxHaX5a96+0f3DljYd8JOqvOLsf5mw2Otda2qCDT9qRqLAhrjyQ0h7ual5nOiASpsGNFw==", + "dev": true, + "dependencies": { + "has-symbol-support-x": "^1.4.1" + }, + "engines": { + "node": "*" + } + }, "node_modules/has-tostringtag": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", @@ -4549,6 +5193,12 @@ "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "dev": true }, + "node_modules/http-cache-semantics": { + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz", + "integrity": "sha512-5ai2iksyV8ZXmnZhHH4rWPoxxistEexSi5936zIQ1bnNTW5VnA85B6P/VpXiRM017IgRvb2kKo1a//y+0wSp3w==", + "dev": true + }, "node_modules/human-signals": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", @@ -4575,8 +5225,7 @@ "type": "consulting", "url": "https://feross.org/support" } - ], - "peer": true + ] }, "node_modules/ignore": { "version": "5.2.4", @@ -4657,7 +5306,20 @@ "side-channel": "^1.0.4" }, "engines": { - "node": ">= 0.4" + "node": ">= 0.4" + } + }, + "node_modules/into-stream": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-3.1.0.tgz", + "integrity": "sha512-TcdjPibTksa1NQximqep2r17ISRiNE9fwlfbg3F8ANdvP5/yrFTew86VcO//jk4QTaMlbjypPBq76HN2zaKfZQ==", + "dev": true, + "dependencies": { + "from2": "^2.1.1", + "p-is-promise": "^1.1.0" + }, + "engines": { + "node": ">=4" } }, "node_modules/is-array-buffer": { @@ -4798,6 +5460,12 @@ "node": ">=0.10.0" } }, + "node_modules/is-natural-number": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-natural-number/-/is-natural-number-4.0.1.tgz", + "integrity": "sha512-Y4LTamMe0DDQIIAlaer9eKebAlDSV6huy+TWhJVPlzZh2o4tRP5SQWFlLn5N0To4mDD22/qdOq+veo1cSISLgQ==", + "dev": true + }, "node_modules/is-negative-zero": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", @@ -4834,6 +5502,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-object": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-object/-/is-object-1.0.2.tgz", + "integrity": "sha512-2rRIahhZr2UWb45fIOuvZGpFtz0TyOZLf32KxBbSoUCeZR495zCKlWUKKUByk3geS2eAs7ZAABt0Y/Rx0GiQGA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-path-inside": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", @@ -4843,6 +5520,15 @@ "node": ">=8" } }, + "node_modules/is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/is-regex": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", @@ -4859,6 +5545,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-retry-allowed": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz", + "integrity": "sha512-RUbUeKwvm3XG2VYamhJL1xFktgjvPzL0Hq8C+6yrWIswDy3BIXGqCxhxkc30N9jqK311gVU137K8Ei55/zVJRg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/is-shared-array-buffer": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", @@ -5027,6 +5722,19 @@ "node": ">=8" } }, + "node_modules/isurl": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isurl/-/isurl-1.0.0.tgz", + "integrity": "sha512-1P/yWsxPlDtn7QeRD+ULKQPaIaN6yF368GZ2vDfv0AL0NwpStafjWCDDdn0k8wgFMWpVAqG7oJhxHnlud42i9w==", + "dev": true, + "dependencies": { + "has-to-string-tag-x": "^1.2.0", + "is-object": "^1.0.1" + }, + "engines": { + "node": ">= 4" + } + }, "node_modules/jest": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", @@ -5634,6 +6342,12 @@ "node": ">=4" } }, + "node_modules/json-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", + "integrity": "sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ==", + "dev": true + }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", @@ -5673,6 +6387,15 @@ "node": ">=6" } }, + "node_modules/keyv": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.0.0.tgz", + "integrity": "sha512-eguHnq22OE3uVoSYG0LVWNP+4ppamWr9+zWBe1bsNcovIMy6huUJFPgy4mGwCd/rnl3vOLGW1MTlu4c57CT1xA==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.0" + } + }, "node_modules/kleur": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", @@ -5746,6 +6469,15 @@ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, + "node_modules/lowercase-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/lru-cache": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", @@ -5816,6 +6548,15 @@ "node": ">=8.6" } }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", @@ -5825,6 +6566,15 @@ "node": ">=6" } }, + "node_modules/mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -5943,6 +6693,20 @@ "node": ">=0.10.0" } }, + "node_modules/normalize-url": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-2.0.1.tgz", + "integrity": "sha512-D6MUW4K/VzoJ4rJ01JFKxDrtY1v9wrgzCX5f2qj/lzH1m/lW6MhUZFKerVsnyjOhOsYzI9Kqqak+10l4LvLpMw==", + "dev": true, + "dependencies": { + "prepend-http": "^2.0.0", + "query-string": "^5.0.1", + "sort-keys": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/npm-run-path": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", @@ -5955,6 +6719,15 @@ "node": ">=8" } }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/object-inspect": { "version": "1.12.3", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", @@ -6078,6 +6851,45 @@ "node": ">= 0.8.0" } }, + "node_modules/p-cancelable": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.4.1.tgz", + "integrity": "sha512-HNa1A8LvB1kie7cERyy21VNeHb2CWJJYqyyC2o3klWFfMGlFmWv2Z7sFgZH8ZiaYL95ydToKTFVXgMV/Os0bBQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/p-event": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/p-event/-/p-event-2.3.1.tgz", + "integrity": "sha512-NQCqOFhbpVTMX4qMe8PF8lbGtzZ+LCiN7pcNrb/413Na7+TRoe1xkKUzuWa/YEJdGQ0FvKtj35EEbDoVPO2kbA==", + "dev": true, + "dependencies": { + "p-timeout": "^2.0.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/p-is-promise": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-1.1.0.tgz", + "integrity": "sha512-zL7VE4JVS2IFSkR2GQKDSPEVxkoH43/p7oEnwpdCndKYJO0HVeRB7fA8TJwuLOTBREtK0ea8eHaxdwcpob5dmg==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -6120,6 +6932,18 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/p-timeout": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-2.0.1.tgz", + "integrity": "sha512-88em58dDVB/KzPEx1X0N3LwFfYZPyDc4B6eF38M1rk9VTZMbxXXgjugz8mmwpS9Ox4BDZ+t6t3QP5+/gazweIA==", + "dev": true, + "dependencies": { + "p-finally": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", @@ -6201,6 +7025,12 @@ "node": ">=8" } }, + "node_modules/pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + "dev": true + }, "node_modules/picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", @@ -6219,6 +7049,36 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==", + "dev": true, + "dependencies": { + "pinkie": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/pirates": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", @@ -6249,6 +7109,15 @@ "node": ">= 0.8.0" } }, + "node_modules/prepend-http": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", + "integrity": "sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/prettier": { "version": "3.2.5", "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", @@ -6310,6 +7179,12 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, "node_modules/prompts": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", @@ -6323,6 +7198,30 @@ "node": ">= 6" } }, + "node_modules/protoc-gen-js": { + "version": "3.21.2", + "resolved": "https://registry.npmjs.org/protoc-gen-js/-/protoc-gen-js-3.21.2.tgz", + "integrity": "sha512-nSpiXulygg0vUv05uFeATuZSbgMQMeoef0BhB5266Y6HmsqVtIrbSkK/Z2Yk0KLE+BirRNjsTKDUJxg3OPO9pQ==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "adm-zip": "^0.5.10", + "download": "^8.0.0" + }, + "bin": { + "protoc-gen-js": "cli.js" + } + }, + "node_modules/pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, "node_modules/punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", @@ -6348,6 +7247,20 @@ } ] }, + "node_modules/query-string": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-5.1.1.tgz", + "integrity": "sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw==", + "dev": true, + "dependencies": { + "decode-uri-component": "^0.2.0", + "object-assign": "^4.1.0", + "strict-uri-encode": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -6502,6 +7415,15 @@ "node": ">=10" } }, + "node_modules/responselike": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", + "integrity": "sha512-/Fpe5guzJk1gPqdJLJR5u7eG/gNY4nImjbRDaVWVMRhne55TCmj2i9Q+54PBRfatRC8v/rIiv9BN0pMd9OV5EQ==", + "dev": true, + "dependencies": { + "lowercase-keys": "^1.0.0" + } + }, "node_modules/reusify": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", @@ -6587,6 +7509,19 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/seek-bzip": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/seek-bzip/-/seek-bzip-1.0.6.tgz", + "integrity": "sha512-e1QtP3YL5tWww8uKaOCQ18UxIT2laNBXHjV/S2WYCiK4udiv8lkG89KRIoCjUagnAmCBurjF4zEVX2ByBbnCjQ==", + "dev": true, + "dependencies": { + "commander": "^2.8.1" + }, + "bin": { + "seek-bunzip": "bin/seek-bunzip", + "seek-table": "bin/seek-bzip-table" + } + }, "node_modules/semver": { "version": "7.6.0", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", @@ -6743,6 +7678,42 @@ "node": ">=8" } }, + "node_modules/sort-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-2.0.0.tgz", + "integrity": "sha512-/dPCrG1s3ePpWm6yBbxZq5Be1dXGLyLn9Z791chDC3NFrpkVbWGzkBwPN1knaciexFXgRJ7hzdnwZ4stHSDmjg==", + "dev": true, + "dependencies": { + "is-plain-obj": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/sort-keys-length": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/sort-keys-length/-/sort-keys-length-1.0.1.tgz", + "integrity": "sha512-GRbEOUqCxemTAk/b32F2xa8wDTs+Z1QHOkbhJDQTvv/6G3ZkbJ+frYWsTcc7cBB3Fu4wy4XlLCuNtJuMn7Gsvw==", + "dev": true, + "dependencies": { + "sort-keys": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sort-keys-length/node_modules/sort-keys": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz", + "integrity": "sha512-vzn8aSqKgytVik0iwdBEi+zevbTYZogewTUM6dtpmGwEcdzbub/TX4bCzRhebDCRC3QzXgJsLRKB2V/Oof7HXg==", + "dev": true, + "dependencies": { + "is-plain-obj": "^1.0.0" + }, + "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", @@ -6789,6 +7760,15 @@ "node": ">=8" } }, + "node_modules/strict-uri-encode": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", + "integrity": "sha512-R3f198pcvnB+5IpnBlRkphuE9n46WyVl8I39W/ZUTZLz4nqSP/oLYUrcnJrw462Ds8he4YKMov2efsTIw1BDGQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", @@ -6911,6 +7891,15 @@ "node": ">=8" } }, + "node_modules/strip-dirs": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/strip-dirs/-/strip-dirs-2.1.0.tgz", + "integrity": "sha512-JOCxOeKLm2CAS73y/U4ZeZPTkE+gNVCzKt7Eox84Iej1LT/2pTWYpZKJuxwQpvX1LiZb1xokNR7RLfuBAa7T3g==", + "dev": true, + "dependencies": { + "is-natural-number": "^4.0.1" + } + }, "node_modules/strip-final-newline": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", @@ -6932,6 +7921,27 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/strip-outer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/strip-outer/-/strip-outer-1.0.1.tgz", + "integrity": "sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^1.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-outer/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, "node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -6956,6 +7966,54 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/tar-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.2.tgz", + "integrity": "sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==", + "dev": true, + "dependencies": { + "bl": "^1.0.0", + "buffer-alloc": "^1.2.0", + "end-of-stream": "^1.0.0", + "fs-constants": "^1.0.0", + "readable-stream": "^2.3.0", + "to-buffer": "^1.1.1", + "xtend": "^4.0.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/tar-stream/node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "node_modules/tar-stream/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "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/tar-stream/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/test-exclude": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", @@ -6983,12 +8041,33 @@ "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", "dev": true }, + "node_modules/through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + "dev": true + }, + "node_modules/timed-out": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", + "integrity": "sha512-G7r3AhovYtr5YKOWQkta8RKAPb+J9IsO4uVmzjl8AZwfhs8UcUwTiD6gcJYSgOtzyjvQKrKYn41syHbUWMkafA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/tmpl": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", "dev": true }, + "node_modules/to-buffer": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.1.1.tgz", + "integrity": "sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg==", + "dev": true + }, "node_modules/to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", @@ -7004,10 +8083,31 @@ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, "dependencies": { - "is-number": "^7.0.0" + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/trim-repeated": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/trim-repeated/-/trim-repeated-1.0.0.tgz", + "integrity": "sha512-pkonvlKk8/ZuR0D5tLW8ljt5I8kmxp2XKymhepUeOdCEfKpZaktSArkLHZt76OB1ZvO9bssUsDty4SWhLvZpLg==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^1.0.2" }, "engines": { - "node": ">=8.0" + "node": ">=0.10.0" + } + }, + "node_modules/trim-repeated/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" } }, "node_modules/ts-api-utils": { @@ -7257,6 +8357,40 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/unbzip2-stream": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz", + "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==", + "dev": true, + "dependencies": { + "buffer": "^5.2.1", + "through": "^2.3.8" + } + }, + "node_modules/unbzip2-stream/node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, "node_modules/undici-types": { "version": "5.26.5", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", @@ -7310,11 +8444,31 @@ "punycode": "^2.1.0" } }, + "node_modules/url-parse-lax": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", + "integrity": "sha512-NjFKA0DidqPa5ciFcSrXnAltTtzz84ogy+NebPvfEgAck0+TNg4UJ4IN+fB7zRZfbgUf0syOo9MDxFkDSMuFaQ==", + "dev": true, + "dependencies": { + "prepend-http": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/url-to-options": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/url-to-options/-/url-to-options-1.0.1.tgz", + "integrity": "sha512-0kQLIzG4fdk/G5NONku64rSH/x32NOA39LVQqlK8Le6lvTF6GGRJpqaQFGgU+CLwySIqBSMdwYM0sYcW9f6P4A==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "peer": true + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" }, "node_modules/v8-to-istanbul": { "version": "9.1.0", @@ -7434,6 +8588,15 @@ "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "dev": true, + "engines": { + "node": ">=0.4" + } + }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", @@ -7476,6 +8639,16 @@ "node": ">=12" } }, + "node_modules/yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "dev": true, + "dependencies": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } + }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", @@ -8802,6 +9975,12 @@ "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", "dev": true }, + "@sindresorhus/is": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.7.0.tgz", + "integrity": "sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==", + "dev": true + }, "@sindresorhus/merge-streams": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-2.1.0.tgz", @@ -9296,6 +10475,12 @@ "dev": true, "requires": {} }, + "adm-zip": { + "version": "0.5.12", + "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.12.tgz", + "integrity": "sha512-6TVU49mK6KZb4qG6xWaaM4C7sA/sgUMLy/JYMOzkcp3BvVLpW0fXDFQiIzAuxFCt/2+xD7fNIiPFAoLZPhVNLQ==", + "dev": true + }, "ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", @@ -9350,6 +10535,23 @@ "picomatch": "^2.0.4" } }, + "archive-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/archive-type/-/archive-type-4.0.0.tgz", + "integrity": "sha512-zV4Ky0v1F8dBrdYElwTvQhweQ0P7Kwc1aluqJsYtOBP01jXcWCyW2IEfI1YiqsG+Iy7ZR+o5LF1N+PGECBxHWA==", + "dev": true, + "requires": { + "file-type": "^4.2.0" + }, + "dependencies": { + "file-type": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-4.4.0.tgz", + "integrity": "sha512-f2UbFQEk7LXgWpi5ntcO86OeA/cC80fuDDDaX/fZ2ZGel+AF7leRQqBBW1eJNiiQkrZlAoM6P+VYP5P6bOlDEQ==", + "dev": true + } + } + }, "argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", @@ -9533,8 +10735,7 @@ "base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "peer": true + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" }, "bech32": { "version": "2.0.0", @@ -9553,6 +10754,48 @@ "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", "dev": true }, + "bl": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.3.tgz", + "integrity": "sha512-pvcNpa0UU69UT341rO6AYy4FVAIkUHuZXRIWbq+zHnsVcRzDDjIAhGuuYoi0d//cwIwtt4pkpKycWEfjdV+vww==", + "dev": true, + "requires": { + "readable-stream": "^2.3.5", + "safe-buffer": "^5.1.1" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "requires": { + "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" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, "borc": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/borc/-/borc-2.1.2.tgz", @@ -9639,6 +10882,34 @@ "ieee754": "^1.2.1" } }, + "buffer-alloc": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz", + "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==", + "dev": true, + "requires": { + "buffer-alloc-unsafe": "^1.1.0", + "buffer-fill": "^1.0.0" + } + }, + "buffer-alloc-unsafe": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", + "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==", + "dev": true + }, + "buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "dev": true + }, + "buffer-fill": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", + "integrity": "sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==", + "dev": true + }, "buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", @@ -9661,6 +10932,35 @@ "integrity": "sha512-fey6+4jDK7TFtFg/klGSvNKJctyU7n2aQdnM+CO0ruLPbqqMOM8Tio0Pc+deqUeVKX1tL5DQep1zQ7+37aTAsA==", "dev": true }, + "cacheable-request": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-2.1.4.tgz", + "integrity": "sha512-vag0O2LKZ/najSoUwDbVlnlCFvhBE/7mGTY2B5FgCBDcRD+oVV1HYTOwM6JZfMg/hIcM6IwnTZ1uQQL5/X3xIQ==", + "dev": true, + "requires": { + "clone-response": "1.0.2", + "get-stream": "3.0.0", + "http-cache-semantics": "3.8.1", + "keyv": "3.0.0", + "lowercase-keys": "1.0.0", + "normalize-url": "2.0.1", + "responselike": "1.0.2" + }, + "dependencies": { + "get-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "integrity": "sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==", + "dev": true + }, + "lowercase-keys": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz", + "integrity": "sha512-RPlX0+PHuvxVDZ7xX+EBVAp4RsVxP/TdDSN2mJYdiq1Lc4Hz7EUSjUI7RZrKKlmrIzVhf6Jo2stj7++gVarS0A==", + "dev": true + } + } + }, "call-bind": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", @@ -9755,6 +11055,15 @@ "wrap-ansi": "^7.0.0" } }, + "clone-response": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", + "integrity": "sha512-yjLXh88P599UOyPTFX0POsd7WxnbsVsGohcwzHOLspIhhpalPw1BcqED8NblyZLKcGrL8dTgMlcaZxV2jAD41Q==", + "dev": true, + "requires": { + "mimic-response": "^1.0.0" + } + }, "co": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", @@ -9785,8 +11094,7 @@ "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "peer": true + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "concat-map": { "version": "0.0.1", @@ -9794,6 +11102,23 @@ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", "dev": true }, + "content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "dev": true, + "requires": { + "safe-buffer": "5.2.1" + }, + "dependencies": { + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true + } + } + }, "convert-source-map": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", @@ -9803,6 +11128,12 @@ "safe-buffer": "~5.1.1" } }, + "core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true + }, "create-jest": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", @@ -9844,6 +11175,175 @@ "ms": "2.1.2" } }, + "decode-uri-component": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "dev": true + }, + "decompress": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/decompress/-/decompress-4.2.1.tgz", + "integrity": "sha512-e48kc2IjU+2Zw8cTb6VZcJQ3lgVbS4uuB1TfCHbiZIP/haNXm+SVyhu+87jts5/3ROpd82GSVCoNs/z8l4ZOaQ==", + "dev": true, + "requires": { + "decompress-tar": "^4.0.0", + "decompress-tarbz2": "^4.0.0", + "decompress-targz": "^4.0.0", + "decompress-unzip": "^4.0.1", + "graceful-fs": "^4.1.10", + "make-dir": "^1.0.0", + "pify": "^2.3.0", + "strip-dirs": "^2.0.0" + }, + "dependencies": { + "make-dir": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", + "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", + "dev": true, + "requires": { + "pify": "^3.0.0" + }, + "dependencies": { + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", + "dev": true + } + } + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true + } + } + }, + "decompress-response": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", + "integrity": "sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA==", + "dev": true, + "requires": { + "mimic-response": "^1.0.0" + } + }, + "decompress-tar": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/decompress-tar/-/decompress-tar-4.1.1.tgz", + "integrity": "sha512-JdJMaCrGpB5fESVyxwpCx4Jdj2AagLmv3y58Qy4GE6HMVjWz1FeVQk1Ct4Kye7PftcdOo/7U7UKzYBJgqnGeUQ==", + "dev": true, + "requires": { + "file-type": "^5.2.0", + "is-stream": "^1.1.0", + "tar-stream": "^1.5.2" + }, + "dependencies": { + "file-type": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-5.2.0.tgz", + "integrity": "sha512-Iq1nJ6D2+yIO4c8HHg4fyVb8mAJieo1Oloy1mLLaB2PvezNedhBVm+QU7g0qM42aiMbRXTxKKwGD17rjKNJYVQ==", + "dev": true + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "dev": true + } + } + }, + "decompress-tarbz2": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/decompress-tarbz2/-/decompress-tarbz2-4.1.1.tgz", + "integrity": "sha512-s88xLzf1r81ICXLAVQVzaN6ZmX4A6U4z2nMbOwobxkLoIIfjVMBg7TeguTUXkKeXni795B6y5rnvDw7rxhAq9A==", + "dev": true, + "requires": { + "decompress-tar": "^4.1.0", + "file-type": "^6.1.0", + "is-stream": "^1.1.0", + "seek-bzip": "^1.0.5", + "unbzip2-stream": "^1.0.9" + }, + "dependencies": { + "file-type": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-6.2.0.tgz", + "integrity": "sha512-YPcTBDV+2Tm0VqjybVd32MHdlEGAtuxS3VAYsumFokDSMG+ROT5wawGlnHDoz7bfMcMDt9hxuXvXwoKUx2fkOg==", + "dev": true + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "dev": true + } + } + }, + "decompress-targz": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/decompress-targz/-/decompress-targz-4.1.1.tgz", + "integrity": "sha512-4z81Znfr6chWnRDNfFNqLwPvm4db3WuZkqV+UgXQzSngG3CEKdBkw5jrv3axjjL96glyiiKjsxJG3X6WBZwX3w==", + "dev": true, + "requires": { + "decompress-tar": "^4.1.1", + "file-type": "^5.2.0", + "is-stream": "^1.1.0" + }, + "dependencies": { + "file-type": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-5.2.0.tgz", + "integrity": "sha512-Iq1nJ6D2+yIO4c8HHg4fyVb8mAJieo1Oloy1mLLaB2PvezNedhBVm+QU7g0qM42aiMbRXTxKKwGD17rjKNJYVQ==", + "dev": true + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "dev": true + } + } + }, + "decompress-unzip": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/decompress-unzip/-/decompress-unzip-4.0.1.tgz", + "integrity": "sha512-1fqeluvxgnn86MOh66u8FjbtJpAFv5wgCT9Iw8rcBqQcCo5tO8eiJw7NNTrvt9n4CRBVq7CstiS922oPgyGLrw==", + "dev": true, + "requires": { + "file-type": "^3.8.0", + "get-stream": "^2.2.0", + "pify": "^2.3.0", + "yauzl": "^2.4.2" + }, + "dependencies": { + "file-type": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz", + "integrity": "sha512-RLoqTXE8/vPmMuTI88DAzhMYC99I8BWv7zYP4A1puo5HIjEJ5EX48ighy4ZyKMG9EDXxBgW6e++cn7d1xuFghA==", + "dev": true + }, + "get-stream": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-2.3.1.tgz", + "integrity": "sha512-AUGhbbemXxrZJRD5cDvKtQxLuYaIbNtDTK8YqupCI393Q2KSTreEsLUN3ZxAWFGiKTzL6nKuzfcIvieflUX9qA==", + "dev": true, + "requires": { + "object-assign": "^4.0.1", + "pinkie-promise": "^2.0.0" + } + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true + } + } + }, "dedent": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.1.tgz", @@ -9921,6 +11421,52 @@ "esutils": "^2.0.2" } }, + "download": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/download/-/download-8.0.0.tgz", + "integrity": "sha512-ASRY5QhDk7FK+XrQtQyvhpDKanLluEEQtWl/J7Lxuf/b+i8RYh997QeXvL85xitrmRKVlx9c7eTrcRdq2GS4eA==", + "dev": true, + "requires": { + "archive-type": "^4.0.0", + "content-disposition": "^0.5.2", + "decompress": "^4.2.1", + "ext-name": "^5.0.0", + "file-type": "^11.1.0", + "filenamify": "^3.0.0", + "get-stream": "^4.1.0", + "got": "^8.3.1", + "make-dir": "^2.1.0", + "p-event": "^2.1.0", + "pify": "^4.0.1" + }, + "dependencies": { + "get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "make-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", + "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "dev": true, + "requires": { + "pify": "^4.0.1", + "semver": "^7.6.0" + } + } + } + }, + "duplexer3": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.5.tgz", + "integrity": "sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA==", + "dev": true + }, "electron-to-chromium": { "version": "1.4.270", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.270.tgz", @@ -9939,6 +11485,15 @@ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, + "end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "requires": { + "once": "^1.4.0" + } + }, "error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", @@ -10452,6 +12007,25 @@ "jest-util": "^29.7.0" } }, + "ext-list": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/ext-list/-/ext-list-2.2.2.tgz", + "integrity": "sha512-u+SQgsubraE6zItfVA0tBuCBhfU9ogSRnsvygI7wht9TS510oLkBRXBsqopeUG/GBOIQyKZO9wjTqIu/sf5zFA==", + "dev": true, + "requires": { + "mime-db": "^1.28.0" + } + }, + "ext-name": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ext-name/-/ext-name-5.0.0.tgz", + "integrity": "sha512-yblEwXAbGv1VQDmow7s38W77hzAgJAO50ztBLMcUyUBfxv1HC+LGwtiEN+Co6LtlqT/5uwVOxsD4TNIilWhwdQ==", + "dev": true, + "requires": { + "ext-list": "^2.0.0", + "sort-keys-length": "^1.0.0" + } + }, "fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -10512,6 +12086,15 @@ "bser": "2.1.1" } }, + "fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "dev": true, + "requires": { + "pend": "~1.2.0" + } + }, "fetch-blob": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", @@ -10528,7 +12111,30 @@ "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", "dev": true, "requires": { - "flat-cache": "^3.0.4" + "flat-cache": "^3.0.4" + } + }, + "file-type": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-11.1.0.tgz", + "integrity": "sha512-rM0UO7Qm9K7TWTtA6AShI/t7H5BPjDeGVDaNyg9BjHAj3PysKy7+8C8D137R88jnR3rFJZQB/tFgydl5sN5m7g==", + "dev": true + }, + "filename-reserved-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz", + "integrity": "sha512-lc1bnsSr4L4Bdif8Xb/qrtokGbq5zlsms/CYH8PP+WtCkGNF65DPiQY8vG3SakEdRn8Dlnm+gW/qWKKjS5sZzQ==", + "dev": true + }, + "filenamify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/filenamify/-/filenamify-3.0.0.tgz", + "integrity": "sha512-5EFZ//MsvJgXjBAFJ+Bh2YaCTRF/VP1YOmGrgt+KJ4SFRLjI87EIdwLLuT6wQX0I4F9W41xutobzczjsOKlI/g==", + "dev": true, + "requires": { + "filename-reserved-regex": "^2.0.0", + "strip-outer": "^1.0.0", + "trim-repeated": "^1.0.0" } }, "fill-range": { @@ -10584,6 +12190,54 @@ "fetch-blob": "^3.1.2" } }, + "from2": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", + "integrity": "sha512-OMcX/4IC/uqEPVgGeyfN22LJk6AZrMkRZHxcHBMBvHScDGgwTm2GT2Wkgtocyd3JfZffjj2kYUDXXII0Fk9W0g==", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "readable-stream": "^2.0.0" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "requires": { + "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" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, + "fs-constants": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", + "dev": true + }, "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -10736,6 +12390,45 @@ "get-intrinsic": "^1.1.3" } }, + "got": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/got/-/got-8.3.2.tgz", + "integrity": "sha512-qjUJ5U/hawxosMryILofZCkm3C84PLJS/0grRIpjAwu+Lkxxj5cxeCU25BG0/3mDSpXKTyZr8oh8wIgLaH0QCw==", + "dev": true, + "requires": { + "@sindresorhus/is": "^0.7.0", + "cacheable-request": "^2.1.1", + "decompress-response": "^3.3.0", + "duplexer3": "^0.1.4", + "get-stream": "^3.0.0", + "into-stream": "^3.1.0", + "is-retry-allowed": "^1.1.0", + "isurl": "^1.0.0-alpha5", + "lowercase-keys": "^1.0.0", + "mimic-response": "^1.0.0", + "p-cancelable": "^0.4.0", + "p-timeout": "^2.0.1", + "pify": "^3.0.0", + "safe-buffer": "^5.1.1", + "timed-out": "^4.0.1", + "url-parse-lax": "^3.0.0", + "url-to-options": "^1.0.1" + }, + "dependencies": { + "get-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "integrity": "sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==", + "dev": true + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", + "dev": true + } + } + }, "graceful-fs": { "version": "4.2.10", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", @@ -10784,12 +12477,27 @@ "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", "dev": true }, + "has-symbol-support-x": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/has-symbol-support-x/-/has-symbol-support-x-1.4.2.tgz", + "integrity": "sha512-3ToOva++HaW+eCpgqZrCfN51IPB+7bJNVT6CUATzueB5Heb8o6Nam0V3HG5dlDvZU1Gn5QLcbahiKw/XVk5JJw==", + "dev": true + }, "has-symbols": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", "dev": true }, + "has-to-string-tag-x": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz", + "integrity": "sha512-vdbKfmw+3LoOYVr+mtxHaX5a96+0f3DljYd8JOqvOLsf5mw2Otda2qCDT9qRqLAhrjyQ0h7ual5nOiASpsGNFw==", + "dev": true, + "requires": { + "has-symbol-support-x": "^1.4.1" + } + }, "has-tostringtag": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", @@ -10814,6 +12522,12 @@ "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "dev": true }, + "http-cache-semantics": { + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz", + "integrity": "sha512-5ai2iksyV8ZXmnZhHH4rWPoxxistEexSi5936zIQ1bnNTW5VnA85B6P/VpXiRM017IgRvb2kKo1a//y+0wSp3w==", + "dev": true + }, "human-signals": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", @@ -10823,8 +12537,7 @@ "ieee754": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "peer": true + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" }, "ignore": { "version": "5.2.4", @@ -10884,6 +12597,16 @@ "side-channel": "^1.0.4" } }, + "into-stream": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-3.1.0.tgz", + "integrity": "sha512-TcdjPibTksa1NQximqep2r17ISRiNE9fwlfbg3F8ANdvP5/yrFTew86VcO//jk4QTaMlbjypPBq76HN2zaKfZQ==", + "dev": true, + "requires": { + "from2": "^2.1.1", + "p-is-promise": "^1.1.0" + } + }, "is-array-buffer": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", @@ -10980,6 +12703,12 @@ "is-extglob": "^2.1.1" } }, + "is-natural-number": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-natural-number/-/is-natural-number-4.0.1.tgz", + "integrity": "sha512-Y4LTamMe0DDQIIAlaer9eKebAlDSV6huy+TWhJVPlzZh2o4tRP5SQWFlLn5N0To4mDD22/qdOq+veo1cSISLgQ==", + "dev": true + }, "is-negative-zero": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", @@ -11001,12 +12730,24 @@ "has-tostringtag": "^1.0.0" } }, + "is-object": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-object/-/is-object-1.0.2.tgz", + "integrity": "sha512-2rRIahhZr2UWb45fIOuvZGpFtz0TyOZLf32KxBbSoUCeZR495zCKlWUKKUByk3geS2eAs7ZAABt0Y/Rx0GiQGA==", + "dev": true + }, "is-path-inside": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", "dev": true }, + "is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", + "dev": true + }, "is-regex": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", @@ -11017,6 +12758,12 @@ "has-tostringtag": "^1.0.0" } }, + "is-retry-allowed": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz", + "integrity": "sha512-RUbUeKwvm3XG2VYamhJL1xFktgjvPzL0Hq8C+6yrWIswDy3BIXGqCxhxkc30N9jqK311gVU137K8Ei55/zVJRg==", + "dev": true + }, "is-shared-array-buffer": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", @@ -11137,6 +12884,16 @@ "istanbul-lib-report": "^3.0.0" } }, + "isurl": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isurl/-/isurl-1.0.0.tgz", + "integrity": "sha512-1P/yWsxPlDtn7QeRD+ULKQPaIaN6yF368GZ2vDfv0AL0NwpStafjWCDDdn0k8wgFMWpVAqG7oJhxHnlud42i9w==", + "dev": true, + "requires": { + "has-to-string-tag-x": "^1.2.0", + "is-object": "^1.0.1" + } + }, "jest": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", @@ -11599,6 +13356,12 @@ "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", "dev": true }, + "json-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", + "integrity": "sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ==", + "dev": true + }, "json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", @@ -11632,6 +13395,15 @@ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true }, + "keyv": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.0.0.tgz", + "integrity": "sha512-eguHnq22OE3uVoSYG0LVWNP+4ppamWr9+zWBe1bsNcovIMy6huUJFPgy4mGwCd/rnl3vOLGW1MTlu4c57CT1xA==", + "dev": true, + "requires": { + "json-buffer": "3.0.0" + } + }, "kleur": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", @@ -11687,6 +13459,12 @@ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, + "lowercase-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", + "dev": true + }, "lru-cache": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", @@ -11742,12 +13520,24 @@ "picomatch": "^2.3.1" } }, + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true + }, "mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", "dev": true }, + "mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "dev": true + }, "minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -11825,6 +13615,17 @@ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true }, + "normalize-url": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-2.0.1.tgz", + "integrity": "sha512-D6MUW4K/VzoJ4rJ01JFKxDrtY1v9wrgzCX5f2qj/lzH1m/lW6MhUZFKerVsnyjOhOsYzI9Kqqak+10l4LvLpMw==", + "dev": true, + "requires": { + "prepend-http": "^2.0.0", + "query-string": "^5.0.1", + "sort-keys": "^2.0.0" + } + }, "npm-run-path": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", @@ -11834,6 +13635,12 @@ "path-key": "^3.0.0" } }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true + }, "object-inspect": { "version": "1.12.3", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", @@ -11924,6 +13731,33 @@ "type-check": "^0.4.0" } }, + "p-cancelable": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.4.1.tgz", + "integrity": "sha512-HNa1A8LvB1kie7cERyy21VNeHb2CWJJYqyyC2o3klWFfMGlFmWv2Z7sFgZH8ZiaYL95ydToKTFVXgMV/Os0bBQ==", + "dev": true + }, + "p-event": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/p-event/-/p-event-2.3.1.tgz", + "integrity": "sha512-NQCqOFhbpVTMX4qMe8PF8lbGtzZ+LCiN7pcNrb/413Na7+TRoe1xkKUzuWa/YEJdGQ0FvKtj35EEbDoVPO2kbA==", + "dev": true, + "requires": { + "p-timeout": "^2.0.1" + } + }, + "p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", + "dev": true + }, + "p-is-promise": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-1.1.0.tgz", + "integrity": "sha512-zL7VE4JVS2IFSkR2GQKDSPEVxkoH43/p7oEnwpdCndKYJO0HVeRB7fA8TJwuLOTBREtK0ea8eHaxdwcpob5dmg==", + "dev": true + }, "p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -11953,6 +13787,15 @@ } } }, + "p-timeout": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-2.0.1.tgz", + "integrity": "sha512-88em58dDVB/KzPEx1X0N3LwFfYZPyDc4B6eF38M1rk9VTZMbxXXgjugz8mmwpS9Ox4BDZ+t6t3QP5+/gazweIA==", + "dev": true, + "requires": { + "p-finally": "^1.0.0" + } + }, "p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", @@ -12010,6 +13853,12 @@ "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "dev": true }, + "pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + "dev": true + }, "picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", @@ -12022,6 +13871,27 @@ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true }, + "pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "dev": true + }, + "pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==", + "dev": true + }, + "pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==", + "dev": true, + "requires": { + "pinkie": "^2.0.0" + } + }, "pirates": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", @@ -12043,6 +13913,12 @@ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true }, + "prepend-http": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", + "integrity": "sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==", + "dev": true + }, "prettier": { "version": "3.2.5", "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", @@ -12075,6 +13951,12 @@ } } }, + "process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, "prompts": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", @@ -12085,6 +13967,26 @@ "sisteransi": "^1.0.5" } }, + "protoc-gen-js": { + "version": "3.21.2", + "resolved": "https://registry.npmjs.org/protoc-gen-js/-/protoc-gen-js-3.21.2.tgz", + "integrity": "sha512-nSpiXulygg0vUv05uFeATuZSbgMQMeoef0BhB5266Y6HmsqVtIrbSkK/Z2Yk0KLE+BirRNjsTKDUJxg3OPO9pQ==", + "dev": true, + "requires": { + "adm-zip": "^0.5.10", + "download": "^8.0.0" + } + }, + "pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, "punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", @@ -12097,6 +13999,17 @@ "integrity": "sha512-KddyFewCsO0j3+np81IQ+SweXLDnDQTs5s67BOnrYmYe/yNmUhttQyGsYzy8yUnoljGAQ9sl38YB4vH8ur7Y+w==", "dev": true }, + "query-string": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-5.1.1.tgz", + "integrity": "sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw==", + "dev": true, + "requires": { + "decode-uri-component": "^0.2.0", + "object-assign": "^4.1.0", + "strict-uri-encode": "^1.0.0" + } + }, "queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -12200,6 +14113,15 @@ "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", "dev": true }, + "responselike": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", + "integrity": "sha512-/Fpe5guzJk1gPqdJLJR5u7eG/gNY4nImjbRDaVWVMRhne55TCmj2i9Q+54PBRfatRC8v/rIiv9BN0pMd9OV5EQ==", + "dev": true, + "requires": { + "lowercase-keys": "^1.0.0" + } + }, "reusify": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", @@ -12252,6 +14174,15 @@ "is-regex": "^1.1.4" } }, + "seek-bzip": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/seek-bzip/-/seek-bzip-1.0.6.tgz", + "integrity": "sha512-e1QtP3YL5tWww8uKaOCQ18UxIT2laNBXHjV/S2WYCiK4udiv8lkG89KRIoCjUagnAmCBurjF4zEVX2ByBbnCjQ==", + "dev": true, + "requires": { + "commander": "^2.8.1" + } + }, "semver": { "version": "7.6.0", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", @@ -12365,6 +14296,35 @@ "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true }, + "sort-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-2.0.0.tgz", + "integrity": "sha512-/dPCrG1s3ePpWm6yBbxZq5Be1dXGLyLn9Z791chDC3NFrpkVbWGzkBwPN1knaciexFXgRJ7hzdnwZ4stHSDmjg==", + "dev": true, + "requires": { + "is-plain-obj": "^1.0.0" + } + }, + "sort-keys-length": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/sort-keys-length/-/sort-keys-length-1.0.1.tgz", + "integrity": "sha512-GRbEOUqCxemTAk/b32F2xa8wDTs+Z1QHOkbhJDQTvv/6G3ZkbJ+frYWsTcc7cBB3Fu4wy4XlLCuNtJuMn7Gsvw==", + "dev": true, + "requires": { + "sort-keys": "^1.0.0" + }, + "dependencies": { + "sort-keys": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz", + "integrity": "sha512-vzn8aSqKgytVik0iwdBEi+zevbTYZogewTUM6dtpmGwEcdzbub/TX4bCzRhebDCRC3QzXgJsLRKB2V/Oof7HXg==", + "dev": true, + "requires": { + "is-plain-obj": "^1.0.0" + } + } + } + }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -12404,6 +14364,12 @@ } } }, + "strict-uri-encode": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", + "integrity": "sha512-R3f198pcvnB+5IpnBlRkphuE9n46WyVl8I39W/ZUTZLz4nqSP/oLYUrcnJrw462Ds8he4YKMov2efsTIw1BDGQ==", + "dev": true + }, "string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", @@ -12490,6 +14456,15 @@ "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", "dev": true }, + "strip-dirs": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/strip-dirs/-/strip-dirs-2.1.0.tgz", + "integrity": "sha512-JOCxOeKLm2CAS73y/U4ZeZPTkE+gNVCzKt7Eox84Iej1LT/2pTWYpZKJuxwQpvX1LiZb1xokNR7RLfuBAa7T3g==", + "dev": true, + "requires": { + "is-natural-number": "^4.0.1" + } + }, "strip-final-newline": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", @@ -12502,6 +14477,23 @@ "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true }, + "strip-outer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/strip-outer/-/strip-outer-1.0.1.tgz", + "integrity": "sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg==", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.2" + }, + "dependencies": { + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true + } + } + }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -12517,6 +14509,53 @@ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true }, + "tar-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.2.tgz", + "integrity": "sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==", + "dev": true, + "requires": { + "bl": "^1.0.0", + "buffer-alloc": "^1.2.0", + "end-of-stream": "^1.0.0", + "fs-constants": "^1.0.0", + "readable-stream": "^2.3.0", + "to-buffer": "^1.1.1", + "xtend": "^4.0.0" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "requires": { + "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" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, "test-exclude": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", @@ -12540,12 +14579,30 @@ "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", "dev": true }, + "through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + "dev": true + }, + "timed-out": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", + "integrity": "sha512-G7r3AhovYtr5YKOWQkta8RKAPb+J9IsO4uVmzjl8AZwfhs8UcUwTiD6gcJYSgOtzyjvQKrKYn41syHbUWMkafA==", + "dev": true + }, "tmpl": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", "dev": true }, + "to-buffer": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.1.1.tgz", + "integrity": "sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg==", + "dev": true + }, "to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", @@ -12561,6 +14618,23 @@ "is-number": "^7.0.0" } }, + "trim-repeated": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/trim-repeated/-/trim-repeated-1.0.0.tgz", + "integrity": "sha512-pkonvlKk8/ZuR0D5tLW8ljt5I8kmxp2XKymhepUeOdCEfKpZaktSArkLHZt76OB1ZvO9bssUsDty4SWhLvZpLg==", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.2" + }, + "dependencies": { + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true + } + } + }, "ts-api-utils": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.3.0.tgz", @@ -12722,6 +14796,28 @@ "which-boxed-primitive": "^1.0.2" } }, + "unbzip2-stream": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz", + "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==", + "dev": true, + "requires": { + "buffer": "^5.2.1", + "through": "^2.3.8" + }, + "dependencies": { + "buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + } + } + }, "undici-types": { "version": "5.26.5", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", @@ -12753,11 +14849,25 @@ "punycode": "^2.1.0" } }, + "url-parse-lax": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", + "integrity": "sha512-NjFKA0DidqPa5ciFcSrXnAltTtzz84ogy+NebPvfEgAck0+TNg4UJ4IN+fB7zRZfbgUf0syOo9MDxFkDSMuFaQ==", + "dev": true, + "requires": { + "prepend-http": "^2.0.0" + } + }, + "url-to-options": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/url-to-options/-/url-to-options-1.0.1.tgz", + "integrity": "sha512-0kQLIzG4fdk/G5NONku64rSH/x32NOA39LVQqlK8Le6lvTF6GGRJpqaQFGgU+CLwySIqBSMdwYM0sYcW9f6P4A==", + "dev": true + }, "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "peer": true + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" }, "v8-to-istanbul": { "version": "9.1.0", @@ -12847,6 +14957,12 @@ "signal-exit": "^3.0.7" } }, + "xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "dev": true + }, "y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", @@ -12880,6 +14996,16 @@ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", "dev": true }, + "yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "dev": true, + "requires": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } + }, "yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/package.json b/package.json index 2e4d1a223..a735a338d 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "node-fetch": "^3.3.2", "prettier": "^3.2.5", "prettier-plugin-organize-imports": "^3.2.4", + "protoc-gen-js": "^3.21.2", "semver": "^7.6.0", "size-limit": "^11.1.2", "text-encoding": "^0.7.0", diff --git a/packages/nns-proto/proto/base_types.proto b/packages/nns-proto/proto/base_types.proto index 2dc4619a5..817f431fc 100644 --- a/packages/nns-proto/proto/base_types.proto +++ b/packages/nns-proto/proto/base_types.proto @@ -20,41 +20,5 @@ extend google.protobuf.FieldOptions { // a principal. message PrincipalId { option (tui_signed_message) = true; - bytes serialized_id = 1 [(tui_signed_display_q2_2021) = true]; -} - -// A PB container for a CanisterId, which uniquely identifies -// a principal. -message CanisterId { - bytes serialized_id = 1; -} - -// A container for a NeuronId blob, which uniquely identifies -// a Neuron. -message NeuronId { - option (ic_base_types.pb.v1.tui_signed_message) = true; - // bytes serialized_id = 1; - reserved 1; - reserved 'serialized_id'; - uint64 id = 2 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true, jstype = JS_STRING];; -} - -// The id of a specific proposal. -message ProposalId { - uint64 id = 1 [jstype = JS_STRING]; -} - -// A descriptor of the authorization of a single method. -// Any of the principals in the list are authorized to execute -// the method. -message MethodAuthzInfo { - string method_name = 1; - repeated bytes principal_ids = 2; -} - -// A descriptor of the authorization of all the update methods in a -// canister that require authorization. -// Methods that should be accessible to anyone should not appear in this list -message CanisterAuthzInfo { - repeated MethodAuthzInfo methods_authz = 1; + bytes serialized_id = 1 [(tui_signed_display_q2_2021) = true]; } diff --git a/packages/nns-proto/proto/base_types_pb.d.ts b/packages/nns-proto/proto/base_types_pb.d.ts index 248d7c09c..0d3f58a10 100644 --- a/packages/nns-proto/proto/base_types_pb.d.ts +++ b/packages/nns-proto/proto/base_types_pb.d.ts @@ -26,118 +26,6 @@ export namespace PrincipalId { } } -export class CanisterId extends jspb.Message { - getSerializedId(): Uint8Array | string; - getSerializedId_asU8(): Uint8Array; - getSerializedId_asB64(): string; - setSerializedId(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CanisterId.AsObject; - static toObject(includeInstance: boolean, msg: CanisterId): CanisterId.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CanisterId, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CanisterId; - static deserializeBinaryFromReader(message: CanisterId, reader: jspb.BinaryReader): CanisterId; -} - -export namespace CanisterId { - export type AsObject = { - serializedId: Uint8Array | string, - } -} - -export class NeuronId extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NeuronId.AsObject; - static toObject(includeInstance: boolean, msg: NeuronId): NeuronId.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NeuronId, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NeuronId; - static deserializeBinaryFromReader(message: NeuronId, reader: jspb.BinaryReader): NeuronId; -} - -export namespace NeuronId { - export type AsObject = { - id: string, - } -} - -export class ProposalId extends jspb.Message { - getId(): string; - setId(value: string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProposalId.AsObject; - static toObject(includeInstance: boolean, msg: ProposalId): ProposalId.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ProposalId, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProposalId; - static deserializeBinaryFromReader(message: ProposalId, reader: jspb.BinaryReader): ProposalId; -} - -export namespace ProposalId { - export type AsObject = { - id: string, - } -} - -export class MethodAuthzInfo extends jspb.Message { - getMethodName(): string; - setMethodName(value: string): void; - - clearPrincipalIdsList(): void; - getPrincipalIdsList(): Array; - getPrincipalIdsList_asU8(): Array; - getPrincipalIdsList_asB64(): Array; - setPrincipalIdsList(value: Array): void; - addPrincipalIds(value: Uint8Array | string, index?: number): Uint8Array | string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MethodAuthzInfo.AsObject; - static toObject(includeInstance: boolean, msg: MethodAuthzInfo): MethodAuthzInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MethodAuthzInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MethodAuthzInfo; - static deserializeBinaryFromReader(message: MethodAuthzInfo, reader: jspb.BinaryReader): MethodAuthzInfo; -} - -export namespace MethodAuthzInfo { - export type AsObject = { - methodName: string, - principalIdsList: Array, - } -} - -export class CanisterAuthzInfo extends jspb.Message { - clearMethodsAuthzList(): void; - getMethodsAuthzList(): Array; - setMethodsAuthzList(value: Array): void; - addMethodsAuthz(value?: MethodAuthzInfo, index?: number): MethodAuthzInfo; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CanisterAuthzInfo.AsObject; - static toObject(includeInstance: boolean, msg: CanisterAuthzInfo): CanisterAuthzInfo.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CanisterAuthzInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CanisterAuthzInfo; - static deserializeBinaryFromReader(message: CanisterAuthzInfo, reader: jspb.BinaryReader): CanisterAuthzInfo; -} - -export namespace CanisterAuthzInfo { - export type AsObject = { - methodsAuthzList: Array, - } -} - export const tuiSignedMessage: jspb.ExtensionFieldInfo; export const tuiSignedDisplayQ22021: jspb.ExtensionFieldInfo; diff --git a/packages/nns-proto/proto/base_types_pb.js b/packages/nns-proto/proto/base_types_pb.js index e4559188a..492489d16 100644 --- a/packages/nns-proto/proto/base_types_pb.js +++ b/packages/nns-proto/proto/base_types_pb.js @@ -13,22 +13,17 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); goog.object.extend(proto, google_protobuf_descriptor_pb); -goog.exportSymbol('proto.ic_base_types.pb.v1.CanisterAuthzInfo', null, global); -goog.exportSymbol('proto.ic_base_types.pb.v1.CanisterId', null, global); -goog.exportSymbol('proto.ic_base_types.pb.v1.MethodAuthzInfo', null, global); -goog.exportSymbol('proto.ic_base_types.pb.v1.NeuronId', null, global); goog.exportSymbol('proto.ic_base_types.pb.v1.PrincipalId', null, global); -goog.exportSymbol('proto.ic_base_types.pb.v1.ProposalId', null, global); goog.exportSymbol('proto.ic_base_types.pb.v1.tuiSignedDisplayQ22021', null, global); goog.exportSymbol('proto.ic_base_types.pb.v1.tuiSignedMessage', null, global); /** @@ -52,111 +47,6 @@ if (goog.DEBUG && !COMPILED) { */ proto.ic_base_types.pb.v1.PrincipalId.displayName = 'proto.ic_base_types.pb.v1.PrincipalId'; } -/** - * 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.ic_base_types.pb.v1.CanisterId = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.ic_base_types.pb.v1.CanisterId, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.ic_base_types.pb.v1.CanisterId.displayName = 'proto.ic_base_types.pb.v1.CanisterId'; -} -/** - * 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.ic_base_types.pb.v1.NeuronId = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.ic_base_types.pb.v1.NeuronId, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.ic_base_types.pb.v1.NeuronId.displayName = 'proto.ic_base_types.pb.v1.NeuronId'; -} -/** - * 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.ic_base_types.pb.v1.ProposalId = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.ic_base_types.pb.v1.ProposalId, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.ic_base_types.pb.v1.ProposalId.displayName = 'proto.ic_base_types.pb.v1.ProposalId'; -} -/** - * 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.ic_base_types.pb.v1.MethodAuthzInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_base_types.pb.v1.MethodAuthzInfo.repeatedFields_, null); -}; -goog.inherits(proto.ic_base_types.pb.v1.MethodAuthzInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.ic_base_types.pb.v1.MethodAuthzInfo.displayName = 'proto.ic_base_types.pb.v1.MethodAuthzInfo'; -} -/** - * 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.ic_base_types.pb.v1.CanisterAuthzInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_base_types.pb.v1.CanisterAuthzInfo.repeatedFields_, null); -}; -goog.inherits(proto.ic_base_types.pb.v1.CanisterAuthzInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.ic_base_types.pb.v1.CanisterAuthzInfo.displayName = 'proto.ic_base_types.pb.v1.CanisterAuthzInfo'; -} @@ -312,790 +202,6 @@ proto.ic_base_types.pb.v1.PrincipalId.prototype.setSerializedId = function(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.ic_base_types.pb.v1.CanisterId.prototype.toObject = function(opt_includeInstance) { - return proto.ic_base_types.pb.v1.CanisterId.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.ic_base_types.pb.v1.CanisterId} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ic_base_types.pb.v1.CanisterId.toObject = function(includeInstance, msg) { - var f, obj = { - serializedId: msg.getSerializedId_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.ic_base_types.pb.v1.CanisterId} - */ -proto.ic_base_types.pb.v1.CanisterId.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_base_types.pb.v1.CanisterId; - return proto.ic_base_types.pb.v1.CanisterId.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ic_base_types.pb.v1.CanisterId} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_base_types.pb.v1.CanisterId} - */ -proto.ic_base_types.pb.v1.CanisterId.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.setSerializedId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.ic_base_types.pb.v1.CanisterId.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ic_base_types.pb.v1.CanisterId.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ic_base_types.pb.v1.CanisterId} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ic_base_types.pb.v1.CanisterId.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSerializedId_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } -}; - - -/** - * optional bytes serialized_id = 1; - * @return {!(string|Uint8Array)} - */ -proto.ic_base_types.pb.v1.CanisterId.prototype.getSerializedId = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes serialized_id = 1; - * This is a type-conversion wrapper around `getSerializedId()` - * @return {string} - */ -proto.ic_base_types.pb.v1.CanisterId.prototype.getSerializedId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSerializedId())); -}; - - -/** - * optional bytes serialized_id = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSerializedId()` - * @return {!Uint8Array} - */ -proto.ic_base_types.pb.v1.CanisterId.prototype.getSerializedId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSerializedId())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.ic_base_types.pb.v1.CanisterId} returns this - */ -proto.ic_base_types.pb.v1.CanisterId.prototype.setSerializedId = 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.ic_base_types.pb.v1.NeuronId.prototype.toObject = function(opt_includeInstance) { - return proto.ic_base_types.pb.v1.NeuronId.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.ic_base_types.pb.v1.NeuronId} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ic_base_types.pb.v1.NeuronId.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 2, "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.ic_base_types.pb.v1.NeuronId} - */ -proto.ic_base_types.pb.v1.NeuronId.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_base_types.pb.v1.NeuronId; - return proto.ic_base_types.pb.v1.NeuronId.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ic_base_types.pb.v1.NeuronId} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_base_types.pb.v1.NeuronId} - */ -proto.ic_base_types.pb.v1.NeuronId.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.ic_base_types.pb.v1.NeuronId.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ic_base_types.pb.v1.NeuronId.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ic_base_types.pb.v1.NeuronId} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ic_base_types.pb.v1.NeuronId.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } -}; - - -/** - * optional uint64 id = 2; - * @return {string} - */ -proto.ic_base_types.pb.v1.NeuronId.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.ic_base_types.pb.v1.NeuronId} returns this - */ -proto.ic_base_types.pb.v1.NeuronId.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, 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.ic_base_types.pb.v1.ProposalId.prototype.toObject = function(opt_includeInstance) { - return proto.ic_base_types.pb.v1.ProposalId.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.ic_base_types.pb.v1.ProposalId} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ic_base_types.pb.v1.ProposalId.toObject = function(includeInstance, msg) { - var f, obj = { - id: 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.ic_base_types.pb.v1.ProposalId} - */ -proto.ic_base_types.pb.v1.ProposalId.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_base_types.pb.v1.ProposalId; - return proto.ic_base_types.pb.v1.ProposalId.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ic_base_types.pb.v1.ProposalId} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_base_types.pb.v1.ProposalId} - */ -proto.ic_base_types.pb.v1.ProposalId.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.ic_base_types.pb.v1.ProposalId.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ic_base_types.pb.v1.ProposalId.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ic_base_types.pb.v1.ProposalId} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ic_base_types.pb.v1.ProposalId.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } -}; - - -/** - * optional uint64 id = 1; - * @return {string} - */ -proto.ic_base_types.pb.v1.ProposalId.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.ic_base_types.pb.v1.ProposalId} returns this - */ -proto.ic_base_types.pb.v1.ProposalId.prototype.setId = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.ic_base_types.pb.v1.MethodAuthzInfo.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.ic_base_types.pb.v1.MethodAuthzInfo.prototype.toObject = function(opt_includeInstance) { - return proto.ic_base_types.pb.v1.MethodAuthzInfo.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.ic_base_types.pb.v1.MethodAuthzInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ic_base_types.pb.v1.MethodAuthzInfo.toObject = function(includeInstance, msg) { - var f, obj = { - methodName: jspb.Message.getFieldWithDefault(msg, 1, ""), - principalIdsList: msg.getPrincipalIdsList_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.ic_base_types.pb.v1.MethodAuthzInfo} - */ -proto.ic_base_types.pb.v1.MethodAuthzInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_base_types.pb.v1.MethodAuthzInfo; - return proto.ic_base_types.pb.v1.MethodAuthzInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ic_base_types.pb.v1.MethodAuthzInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_base_types.pb.v1.MethodAuthzInfo} - */ -proto.ic_base_types.pb.v1.MethodAuthzInfo.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.setMethodName(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.addPrincipalIds(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ic_base_types.pb.v1.MethodAuthzInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ic_base_types.pb.v1.MethodAuthzInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ic_base_types.pb.v1.MethodAuthzInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMethodName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPrincipalIdsList_asU8(); - if (f.length > 0) { - writer.writeRepeatedBytes( - 2, - f - ); - } -}; - - -/** - * optional string method_name = 1; - * @return {string} - */ -proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.getMethodName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.ic_base_types.pb.v1.MethodAuthzInfo} returns this - */ -proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.setMethodName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated bytes principal_ids = 2; - * @return {!(Array|Array)} - */ -proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.getPrincipalIdsList = function() { - return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * repeated bytes principal_ids = 2; - * This is a type-conversion wrapper around `getPrincipalIdsList()` - * @return {!Array} - */ -proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.getPrincipalIdsList_asB64 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsB64( - this.getPrincipalIdsList())); -}; - - -/** - * repeated bytes principal_ids = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPrincipalIdsList()` - * @return {!Array} - */ -proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.getPrincipalIdsList_asU8 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsU8( - this.getPrincipalIdsList())); -}; - - -/** - * @param {!(Array|Array)} value - * @return {!proto.ic_base_types.pb.v1.MethodAuthzInfo} returns this - */ -proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.setPrincipalIdsList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @param {number=} opt_index - * @return {!proto.ic_base_types.pb.v1.MethodAuthzInfo} returns this - */ -proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.addPrincipalIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.ic_base_types.pb.v1.MethodAuthzInfo} returns this - */ -proto.ic_base_types.pb.v1.MethodAuthzInfo.prototype.clearPrincipalIdsList = function() { - return this.setPrincipalIdsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.ic_base_types.pb.v1.CanisterAuthzInfo.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.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.toObject = function(opt_includeInstance) { - return proto.ic_base_types.pb.v1.CanisterAuthzInfo.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.ic_base_types.pb.v1.CanisterAuthzInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ic_base_types.pb.v1.CanisterAuthzInfo.toObject = function(includeInstance, msg) { - var f, obj = { - methodsAuthzList: jspb.Message.toObjectList(msg.getMethodsAuthzList(), - proto.ic_base_types.pb.v1.MethodAuthzInfo.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_base_types.pb.v1.CanisterAuthzInfo} - */ -proto.ic_base_types.pb.v1.CanisterAuthzInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_base_types.pb.v1.CanisterAuthzInfo; - return proto.ic_base_types.pb.v1.CanisterAuthzInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ic_base_types.pb.v1.CanisterAuthzInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_base_types.pb.v1.CanisterAuthzInfo} - */ -proto.ic_base_types.pb.v1.CanisterAuthzInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.ic_base_types.pb.v1.MethodAuthzInfo; - reader.readMessage(value,proto.ic_base_types.pb.v1.MethodAuthzInfo.deserializeBinaryFromReader); - msg.addMethodsAuthz(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ic_base_types.pb.v1.CanisterAuthzInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ic_base_types.pb.v1.CanisterAuthzInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ic_base_types.pb.v1.CanisterAuthzInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMethodsAuthzList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.ic_base_types.pb.v1.MethodAuthzInfo.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated MethodAuthzInfo methods_authz = 1; - * @return {!Array} - */ -proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.getMethodsAuthzList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.ic_base_types.pb.v1.MethodAuthzInfo, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.ic_base_types.pb.v1.CanisterAuthzInfo} returns this -*/ -proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.setMethodsAuthzList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.ic_base_types.pb.v1.MethodAuthzInfo=} opt_value - * @param {number=} opt_index - * @return {!proto.ic_base_types.pb.v1.MethodAuthzInfo} - */ -proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.addMethodsAuthz = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ic_base_types.pb.v1.MethodAuthzInfo, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.ic_base_types.pb.v1.CanisterAuthzInfo} returns this - */ -proto.ic_base_types.pb.v1.CanisterAuthzInfo.prototype.clearMethodsAuthzList = function() { - return this.setMethodsAuthzList([]); -}; - - - /** * A tuple of {field number, class constructor} for the extension * field named `tuiSignedMessage`. diff --git a/packages/nns-proto/proto/governance.proto b/packages/nns-proto/proto/governance.proto index a0259723f..b1c7f2441 100644 --- a/packages/nns-proto/proto/governance.proto +++ b/packages/nns-proto/proto/governance.proto @@ -4,6 +4,846 @@ package ic_nns_governance.pb.v1; import "base_types.proto"; import "ledger.proto"; +import "nervous_system.proto"; +import "nns_common.proto"; +import "swap.proto"; + +// The entity that owns the nodes that run the network. +// +// Note that this is different from a node operator, the entity that +// operates the nodes. In terms of responsibilities, the node operator +// is responsible for adding/removing and generally making sure that +// the nodes are working, while the NodeProvider is the entity that +// is compensated. +// +// Note: The NodeOperatorRecord is defined in: +// rs/protobuf/def/registry/node_operator/v1/node_operator.proto. +message NodeProvider { + // The ID of the node provider. + ic_base_types.pb.v1.PrincipalId id = 1; + + // The account where rewards earned from providing nodes will be sent. + ic_ledger.pb.v1.AccountIdentifier reward_account = 2; +} + +// Used to update node provider records +// +// There is no need to specify a node provider Principal ID here, as Governance +// uses the Principal ID of the caller as the Node Provider Principal ID. +message UpdateNodeProvider { + // The account where rewards earned from providing nodes will be sent. + ic_ledger.pb.v1.AccountIdentifier reward_account = 1; +} + +// Proposal types are organized into topics. Neurons can automatically +// vote based on following other neurons, and these follow +// relationships are defined per topic. +enum Topic { + // The `Unspecified` topic is used as a fallback when + // following. That is, if no followees are specified for a given + // topic, the followees for this topic are used instead. + TOPIC_UNSPECIFIED = 0; + // A special topic by means of which a neuron can be managed by the + // followees for this topic (in this case, there is no fallback to + // 'unspecified'). Votes on this topic are not included in the + // voting history of the neuron (cf., `recent_ballots` in `Neuron`). + // + // For proposals on this topic, only followees on the 'neuron + // management' topic of the neuron that the proposals pertains to + // are allowed to vote. + // + // As the set of eligible voters on this topic is restricted, + // proposals on this topic have a *short voting period*. + TOPIC_NEURON_MANAGEMENT = 1; + // All proposals that provide “real time” information about the + // value of ICP, as measured by an IMF SDR, which allows the NNS to + // convert ICP to cycles (which power computation) at a rate which + // keeps their real world cost constant. Votes on this topic are not + // included in the voting history of the neuron (cf., + // `recent_ballots` in `Neuron`). + // + // Proposals on this topic have a *short voting period* due to their + // frequency. + TOPIC_EXCHANGE_RATE = 2; + // All proposals that administer network economics, for example, + // determining what rewards should be paid to node operators. + TOPIC_NETWORK_ECONOMICS = 3; + // All proposals that administer governance, for example to freeze + // malicious canisters that are harming the network. + TOPIC_GOVERNANCE = 4; + // All proposals that administer node machines, including, but not + // limited to, upgrading or configuring the OS, upgrading or + // configuring the virtual machine framework and upgrading or + // configuring the node replica software. + TOPIC_NODE_ADMIN = 5; + // All proposals that administer network participants, for example, + // granting and revoking DCIDs (data center identities) or NOIDs + // (node operator identities). + TOPIC_PARTICIPANT_MANAGEMENT = 6; + // All proposals that administer network subnets, for example + // creating new subnets, adding and removing subnet nodes, and + // splitting subnets. + TOPIC_SUBNET_MANAGEMENT = 7; + // Installing and upgrading “system” canisters that belong to the network. + // For example, upgrading the NNS. + TOPIC_NETWORK_CANISTER_MANAGEMENT = 8; + // Proposals that update KYC information for regulatory purposes, + // for example during the initial Genesis distribution of ICP in the + // form of neurons. + TOPIC_KYC = 9; + // Topic for proposals to reward node providers. + TOPIC_NODE_PROVIDER_REWARDS = 10; + + // IC OS upgrade proposals + // ----------------------- + // ICP runs on a distributed network of nodes grouped into subnets. Each node runs a stack of + // operating systems, including HostOS (runs on bare metal) and GuestOS (runs inside HostOS; + // contains, e.g., the ICP replica process). HostOS and GuestOS are distributed via separate disk + // images. The umbrella term IC OS refers to the whole stack. + // + // The IC OS upgrade process involves two phases, where the first phase is the election of a new + // IC OS version and the second phase is the deployment of a previously elected IC OS version on + // all nodes of a subnet or on some number of nodes (including nodes comprising subnets and + // unassigned nodes). + // + // A special case is for API boundary nodes, special nodes that route API requests to a replica + // of the right subnet. API boundary nodes run a different process than the replica, but their + // executable is distributed via the same disk image as GuestOS. Therefore, electing a new GuestOS + // version also results in a new version of boundary node software being elected. + // + // Proposals handling the deployment of IC OS to some nodes. It is possible to deploy only + // the versions of IC OS that are in the set of elected IC OS versions. + TOPIC_IC_OS_VERSION_DEPLOYMENT = 12; + // Proposals for changing the set of elected IC OS versions. + TOPIC_IC_OS_VERSION_ELECTION = 13; + + // Proposals related to SNS and Community Fund. + TOPIC_SNS_AND_COMMUNITY_FUND = 14; + // Proposals related to the management of API Boundary Nodes + TOPIC_API_BOUNDARY_NODE_MANAGEMENT = 15; + + // Superseded by SNS_COMMUNITY_FUND. + reserved 11; + reserved "TOPIC_SNS_DECENTRALIZATION_SALE"; +} + +// Every neuron is in one of three states. +// +// Note that `Disbursed` is not a state of a neuron, as the neuron is +// consumed through the act of disbursement (using the method +// [Governance::disburse]). +// +// See [neuron::DissolveState] for detail on how the different states +// are represented. +enum NeuronState { + // Not a valid state. Required by Protobufs. + NEURON_STATE_UNSPECIFIED = 0; + // In this state, the neuron is not dissolving and has a specific + // `dissolve_delay`. It accrues `age` by the passage of time and it + // can vote if `dissolve_delay` is at least six months. The method + // [Neuron::start_dissolving] can be called to transfer the neuron + // to the `Dissolving` state. The method + // [Neuron::increase_dissolve_delay] can be used to increase the + // dissolve delay without affecting the state or the age of the + // neuron. + NEURON_STATE_NOT_DISSOLVING = 1; + // In this state, the neuron's `dissolve_delay` decreases with the + // passage of time. While dissolving, the neuron's age is considered + // zero. Eventually it will reach the `Dissolved` state. The method + // [Neuron::stop_dissolving] can be called to transfer the neuron to + // the `NotDissolving` state, and the neuron will start aging again. The + // method [Neuron::increase_dissolve_delay] can be used to increase + // the dissolve delay, but this will not stop the timer or affect + // the age of the neuron. + NEURON_STATE_DISSOLVING = 2; + // In the dissolved state, the neuron's stake can be disbursed using + // the [Governance::disburse] method. It cannot vote as its + // `dissolve_delay` is considered to be zero. + // + // If the method [Neuron::increase_dissolve_delay] is called in this + // state, the neuron will no longer be dissolving, with the specified + // dissolve delay, and will start aging again. + // + // Neuron holders have an incentive not to keep neurons in the + // 'dissolved' state for a long time: if the holders wants to make + // their tokens liquid, they disburse the neuron's stake, and if + // they want to earn voting rewards, they increase the dissolve + // delay. If these incentives turn out to be insufficient, the NNS + // may decide to impose further restrictions on dissolved neurons. + NEURON_STATE_DISSOLVED = 3; + + // The neuron is in spawning state, meaning it's maturity will be + // converted to ICP according to https://wiki.internetcomputer.org/wiki/Maturity_modulation. + NEURON_STATE_SPAWNING = 4; +} + +// How did a neuron vote in the recent past? This data is used by +// other neurons to determine what neurons to follow. +message BallotInfo { + ic_nns_common.pb.v1.ProposalId proposal_id = 1; + Vote vote = 2; +} + +// The result of querying for the state of a single neuron. +message NeuronInfo { + // The exact time at which this data was computed. This means, for + // example, that the exact time that this neuron will enter the + // dissolved state, assuming it is currently dissolving, is given + // by `retrieved_at_timestamp_seconds+dissolve_delay_seconds`. + uint64 retrieved_at_timestamp_seconds = 1; + // The current state of the neuron. See [NeuronState] for a + // description of the different states. + NeuronState state = 2; + // The current age of the neuron. See [Neuron::age_seconds] + // for details on how it is computed. + uint64 age_seconds = 3; + // The current dissolve delay of the neuron. See + // [Neuron::dissolve_delay_seconds] for details on how it is + // computed. + uint64 dissolve_delay_seconds = 4; + // See [Neuron::recent_ballots] for a description. + repeated BallotInfo recent_ballots = 5; + // Current voting power of the neuron. + uint64 voting_power = 6; + // When the Neuron was created. A neuron can only vote on proposals + // submitted after its creation date. + uint64 created_timestamp_seconds = 7; + // Current stake of the neuron, in e8s. + uint64 stake_e8s = 8; + // Timestamp when this neuron joined the community fund. + optional uint64 joined_community_fund_timestamp_seconds = 9; + // If this neuron is a known neuron, this is data associated + // with it, including the neuron's name and (optionally) a description. + optional KnownNeuronData known_neuron_data = 10; + // The type of the Neuron. See [NeuronType] for a description + // of the different states. + optional NeuronType neuron_type = 11; +} + +// A transfer performed from some account to stake a new neuron. +message NeuronStakeTransfer { + // When the transfer arrived at the governance canister. + uint64 transfer_timestamp = 1; + // The principal that made the transfer. + ic_base_types.pb.v1.PrincipalId from = 2; + // The (optional) subaccount from which the transfer was made. + bytes from_subaccount = 3; + // The subaccount to which the transfer was made. + bytes to_subaccount = 4; + // The amount of stake that was transferred. + uint64 neuron_stake_e8s = 5; + // The block height at which the transfer occurred. + uint64 block_height = 6; + // The memo sent with the transfer. + uint64 memo = 7; +} + +// This structure represents a neuron "at rest" in governance system of +// the Internet Computer IC. +message Neuron { + // The id of the neuron. + // + // This is stored here temporarily, since its also stored on the map + // that contains neurons. + // + // Initialization uses ids for the following graph. We need neurons + // to come into existence at genesis with pre-chosen ids, so a + // neuron needs to have an id. We could alternatively choose a + // unique naming scheme instead and chose the ids on the + // initialization of the canister. + ic_nns_common.pb.v1.NeuronId id = 1; + + // The principal of the ICP ledger account where the locked ICP + // balance resides. This principal is indistinguishable from one + // identifying a public key pair, such that those browsing the ICP + // ledger cannot tell which balances belong to neurons. + bytes account = 2; + + // The principal that actually controls the neuron. The principal + // must identify a public key pair, which acts as a “master key”, + // such that the corresponding secret key should be kept very + // secure. The principal may control many neurons. + ic_base_types.pb.v1.PrincipalId controller = 3; + + // Keys that can be used to perform actions with limited privileges + // without exposing the secret key corresponding to the principal + // e.g. could be a WebAuthn key. + repeated ic_base_types.pb.v1.PrincipalId hot_keys = 4; + + // The amount of staked ICP tokens, measured in fractions of 10E-8 + // of an ICP. + // + // Cached record of the locked ICP balance on the ICP ledger. + // + // For neuron creation: has to contain some minimum amount. A + // spawned neuron with less stake cannot increase its dissolve + // delay. + uint64 cached_neuron_stake_e8s = 5; + + // The amount of ICP that this neuron has forfeited due to making + // proposals that were subsequently rejected or from using the + // 'manage neurons through proposals' functionality. Must be smaller + // than 'neuron_stake_e8s'. When a neuron is disbursed, these ICP + // will be burned. + uint64 neuron_fees_e8s = 6; + + // When the Neuron was created. A neuron can only vote on proposals + // submitted after its creation date. + uint64 created_timestamp_seconds = 7; + + // The timestamp, in seconds from the Unix epoch, corresponding to + // the time this neuron has started aging. This is either the + // creation time or the last time at which the neuron has stopped + // dissolving. + // + // This value is meaningless when the neuron is dissolving, since a + // dissolving neurons always has age zero. The canonical value of + // this field for a dissolving neuron is `u64::MAX`. + uint64 aging_since_timestamp_seconds = 8; + + // The timestamp, in seconds from the Unix epoch, at which this + // neuron should be spawned and its maturity converted to ICP + // according to https://wiki.internetcomputer.org/wiki/Maturity_modulation. + optional uint64 spawn_at_timestamp_seconds = 19; + + // At any time, at most one of `when_dissolved` and + // `dissolve_delay` are specified. + // + // `NotDissolving`. This is represented by `dissolve_delay` being + // set to a non zero value. + // + // `Dissolving`. This is represented by `when_dissolved` being + // set, and this value is in the future. + // + // `Dissolved`. All other states represent the dissolved + // state. That is, (a) `when_dissolved` is set and in the past, + // (b) `dissolve_delay` is set to zero, (c) neither value is set. + // + // Cf. [Neuron::stop_dissolving] and [Neuron::start_dissolving]. + oneof dissolve_state { + // When the dissolve timer is running, this stores the timestamp, + // in seconds from the Unix epoch, at which the neuron becomes + // dissolved. + // + // At any time while the neuron is dissolving, the neuron owner + // may pause dissolving, in which case `dissolve_delay_seconds` + // will get assigned to: `when_dissolved_timestamp_seconds - + // `. + uint64 when_dissolved_timestamp_seconds = 9; + // When the dissolve timer is stopped, this stores how much time, + // in seconds, the dissolve timer will be started with. Can be at + // most 8 years. + // + // At any time while in this state, the neuron owner may (re)start + // dissolving, in which case `when_dissolved_timestamp_seconds` + // will get assigned to: ` + + // dissolve_delay_seconds`. + uint64 dissolve_delay_seconds = 10; + } + + // Protobuf representing a list of followees of a neuron for a + // specific topic. + message Followees { + repeated ic_nns_common.pb.v1.NeuronId followees = 1; + } + + // Map `Topic` to followees. The key is represented by an integer as + // Protobuf does not support enum keys in maps. + map followees = 11; + + // Information about how this neuron voted in the recent past. It + // only contains proposals that the neuron voted yes or no on. + repeated BallotInfo recent_ballots = 12; + + // `true` if this neuron has passed KYC, `false` otherwise + bool kyc_verified = 13; + + // The record of the transfer that was made to create this neuron. + NeuronStakeTransfer transfer = 14; + + // The accumulated unstaked maturity of the neuron, in "e8s equivalent". + // + // The unit is "e8s equivalent" to insist that, while this quantity is on + // the same scale as ICPs, maturity is not directly convertible to ICPs: + // conversion requires a minting event and the conversion rate is variable. + uint64 maturity_e8s_equivalent = 15; + + // The accumulated staked maturity of the neuron, in "e8s equivalent" (see + // "maturity_e8s_equivalent"). Staked maturity becomes regular maturity once + // the neuron is dissolved. + // + // Contrary to `maturity_e8s_equivalent` this maturity is staked and thus + // locked until the neuron is dissolved and contributes to voting power + // and rewards. Once the neuron is dissolved, this maturity will be "moved" + // to 'maturity_e8s_equivalent' and will be able to be spawned (with maturity + // modulation). + optional uint64 staked_maturity_e8s_equivalent = 20; + + // If set and true the maturity rewarded to this neuron for voting will be + // automatically staked and will contribute to the neuron's voting power. + optional bool auto_stake_maturity = 21; + + // Whether this neuron is "Not for profit", making it dissolvable + // by voting. + bool not_for_profit = 16; + + // If set, this neuron is a member of the Community Fund. This means that when + // a proposal to open an SNS token swap is executed, maturity from this neuron + // will be used to participate in the SNS token swap. + optional uint64 joined_community_fund_timestamp_seconds = 17; + + // If set, the neuron belongs to the "known neurons". It has been given a name and maybe a description. + optional KnownNeuronData known_neuron_data = 18; + + // The type of the Neuron. See [NeuronType] for a description + // of the different states. + optional NeuronType neuron_type = 22; +} + +// Subset of Neuron that has no collections or big fields that might not exist in most neurons, and +// the goal is to keep the size of the struct consistent and can be easily stored in a +// StableBTreeMap. For the meaning of each field, see the Neuron struct. +message AbridgedNeuron { + bytes account = 2; + ic_base_types.pb.v1.PrincipalId controller = 3; + uint64 cached_neuron_stake_e8s = 5; + uint64 neuron_fees_e8s = 6; + uint64 created_timestamp_seconds = 7; + uint64 aging_since_timestamp_seconds = 8; + optional uint64 spawn_at_timestamp_seconds = 19; + oneof dissolve_state { + uint64 when_dissolved_timestamp_seconds = 9; + uint64 dissolve_delay_seconds = 10; + } + bool kyc_verified = 13; + uint64 maturity_e8s_equivalent = 15; + optional uint64 staked_maturity_e8s_equivalent = 20; + optional bool auto_stake_maturity = 21; + bool not_for_profit = 16; + optional uint64 joined_community_fund_timestamp_seconds = 17; + optional NeuronType neuron_type = 22; + + reserved 1; + reserved "id"; +} + +// Types of a Neuron. +enum NeuronType { + // Placeholder value due to the proto3 requirement for a zero default. + // This is an invalid type; neurons should not be assigned this value. + NEURON_TYPE_UNSPECIFIED = 0; + + // Represents neurons initially created for Seed accounts in the + // Genesis Token Canister, or those descended from such neurons. + NEURON_TYPE_SEED = 1; + + // Represents neurons initially created for Early Contributor Token (ECT) + // accounts in the Genesis Token Canister, or those descended from such neurons. + NEURON_TYPE_ECT = 2; +} + +// The types of votes the Neuron can issue. +enum Vote { + // This exists because proto3 defaults to the 0 value on enums. + // This is not a valid choice, i.e., a vote with this choice will + // not be counted. + VOTE_UNSPECIFIED = 0; + // Vote for the proposal to be adopted. + VOTE_YES = 1; + // Vote for the proposal to be rejected. + VOTE_NO = 2; +} + +// List of NNS functions that can be called by proposals. +enum NnsFunction { + // This exists because proto3 defaults to the 0 value on enums. + NNS_FUNCTION_UNSPECIFIED = 0; + // Combine a specified set of nodes, typically drawn from data centers and + // operators in such a way as to guarantee their independence, into a new + // decentralized subnet. + // The execution of this NNS function first initiates a new instance of + // the distributed key generation protocol. The transcript of that protocol + // is written to a new subnet record in the registry, together with initial + // configuration information for the subnet, from where the nodes comprising + // the subnet pick it up. + NNS_FUNCTION_CREATE_SUBNET = 1; + // Add a new node to a subnet. The node cannot be currently assigned to a + // subnet. + // The execution of this proposal changes an existing subnet record to add + // a node. From the perspective of the NNS, this update is a simple update + // of the subnet record in the registry. + NNS_FUNCTION_ADD_NODE_TO_SUBNET = 2; + // A proposal to add a new canister to be installed and executed in the + // NNS subnetwork. + // The root canister, which controls all canisters on the NNS except for + // itself, handles this proposal type. The call also expects the Wasm module + // that shall be installed. + NNS_FUNCTION_NNS_CANISTER_INSTALL = 3; + // A proposal to upgrade an existing canister in the NNS subnetwork. + // This proposal type is executed by the root canister. Beyond upgrading + // the Wasm module of the target canister, the proposal can also set the + // authorization information and the allocations. + NNS_FUNCTION_NNS_CANISTER_UPGRADE = 4; + // A proposal to bless a new version to which the replicas can be + // upgraded. + // The proposal registers a replica version (identified by the hash of the + // installation image) in the registry. Besides creating a record for that + // version, the proposal also appends that version to the list of "blessed + // versions" that can be installed on a subnet. By itself, this proposal + // does not effect any upgrade. + NNS_FUNCTION_BLESS_REPLICA_VERSION = 5; + // Update a subnet's recovery CUP (used to recover subnets that have stalled). + // Nodes that find a recovery CUP for their subnet will load that CUP from + // the registry and restart the replica from that CUP. + NNS_FUNCTION_RECOVER_SUBNET = 6; + // Update a subnet's configuration. + // This proposal updates the subnet record in the registry, with the changes + // being picked up by the nodes on the subnet when they reference the + // respective registry version. Subnet configuration comprises protocol + // parameters that must be consistent across the subnet (e.g. message sizes). + NNS_FUNCTION_UPDATE_CONFIG_OF_SUBNET = 7; + // Assign an identity to a node operator, such as a funding partner, + // associating key information regarding its ownership, the jurisdiction + // in which it is located, and other information. + // The node operator is stored as a record in the registry. It contains + // the remaining node allowance for that node operator, that is the number + // of nodes the node operator can still add to the IC. When an additional + // node is added by the node operator, the remaining allowance is decreased. + NNS_FUNCTION_ASSIGN_NOID = 8; + // A proposal to upgrade the root canister in the NNS subnetwork. + // The proposal is processed by the Lifeline canister, which controls the + // root canister. The proposal updates the Wasm module as well as the + // authorization settings. + NNS_FUNCTION_NNS_ROOT_UPGRADE = 9; + // Update the ICP/XDR conversion rate. + // Changes the ICP-to-XDR conversion rate in the governance canister. This + // setting affects cycles pricing (as the value of cycles shall be constant + // with respect to IMF SDRs) as well as the rewards paid for nodes, which + // are expected to be specified in terms of IMF SDRs as well. + NNS_FUNCTION_ICP_XDR_CONVERSION_RATE = 10; + // Deploy a GuestOS version to a given subnet. The proposal changes the GuestOS version that is + // used on the specified subnet. The version must be contained in the list of elected GuestOS + // versions. The upgrade is completed when the subnet creates the next regular CUP. + NNS_FUNCTION_DEPLOY_GUESTOS_TO_ALL_SUBNET_NODES = 11; + // Clear the provisional whitelist. + // The proposal changes the provisional whitelist to the empty list. + NNS_FUNCTION_CLEAR_PROVISIONAL_WHITELIST = 12; + // Removes a node from a subnet. The node must be currently assigned to a + // subnet. + // The execution of this proposal changes an existing subnet record to remove + // a node. From the perspective of the NNS, this update is a simple update + // of the subnet record in the registry. + NNS_FUNCTION_REMOVE_NODES_FROM_SUBNET = 13; + // Informs the cycles minting canister that a certain principal is + // authorized to use certain subnetworks (from a list). Can also be + // used to set the "default" list of subnetworks that principals + // without special authorization are allowed to use. + NNS_FUNCTION_SET_AUTHORIZED_SUBNETWORKS = 14; + // Change the Firewall configuration in the registry. (TODO: Remove when IC-1026 is fully integrated) + NNS_FUNCTION_SET_FIREWALL_CONFIG = 15; + // Change a Node Operator's allowance in the registry. + NNS_FUNCTION_UPDATE_NODE_OPERATOR_CONFIG = 16; + // Stop or start an NNS canister. + NNS_FUNCTION_STOP_OR_START_NNS_CANISTER = 17; + // Remove unassigned nodes from the registry. + NNS_FUNCTION_REMOVE_NODES = 18; + // Uninstall code of a canister. + NNS_FUNCTION_UNINSTALL_CODE = 19; + // Update the node rewards table. + NNS_FUNCTION_UPDATE_NODE_REWARDS_TABLE = 20; + // Add or remove Data Center records. + NNS_FUNCTION_ADD_OR_REMOVE_DATA_CENTERS = 21; + // (obsolete) Update the config for all unassigned nodes. + NNS_FUNCTION_UPDATE_UNASSIGNED_NODES_CONFIG = 22; + // Remove Node Operator from the registry. + NNS_FUNCTION_REMOVE_NODE_OPERATORS = 23; + // Update the routing table in the registry. + NNS_FUNCTION_REROUTE_CANISTER_RANGES = 24; + // Add firewall rules in the registry + NNS_FUNCTION_ADD_FIREWALL_RULES = 25; + // Remove firewall rules in the registry + NNS_FUNCTION_REMOVE_FIREWALL_RULES = 26; + // Update firewall rules in the registry + NNS_FUNCTION_UPDATE_FIREWALL_RULES = 27; + // Insert or update `canister_migrations` entries. + NNS_FUNCTION_PREPARE_CANISTER_MIGRATION = 28; + // Remove `canister_migrations` entries. + NNS_FUNCTION_COMPLETE_CANISTER_MIGRATION = 29; + // Add a new SNS canister WASM + NNS_FUNCTION_ADD_SNS_WASM = 30; + // Change the subnet node membership. In a way, this function combines the separate + // functions for adding and removing nodes from the subnet record, but adds the property + // of atomic node replacement (node swap) on top. + // + // The nodes that are being added to the subnet must be currently unassigned. + // The nodes that are being removed from the subnet must be currently assigned to the subnet. + NNS_FUNCTION_CHANGE_SUBNET_MEMBERSHIP = 31; + // Updates the available subnet types in the cycles minting canister. + NNS_FUNCTION_UPDATE_SUBNET_TYPE = 32; + // Changes the assignment of subnets to subnet types in the cycles minting + // canister. + NNS_FUNCTION_CHANGE_SUBNET_TYPE_ASSIGNMENT = 33; + // Update the list of SNS subnet IDs that SNS WASM will deploy SNS instances to. + NNS_FUNCTION_UPDATE_SNS_WASM_SNS_SUBNET_IDS = 34; + // Update the SNS-wasm canister's list of allowed principals. This list guards which principals can deploy an SNS. + NNS_FUNCTION_UPDATE_ALLOWED_PRINCIPALS = 35; + // A proposal to retire previously elected and unused replica versions. + // The specified versions are removed from the registry and the "blessed versions" record. + // This ensures that the replica cannot upgrade to these versions anymore. + NNS_FUNCTION_RETIRE_REPLICA_VERSION = 36; + // Insert custom upgrade path entries into SNS-W for all SNSes, or for an SNS specified by its governance canister ID. + NNS_FUNCTION_INSERT_SNS_WASM_UPGRADE_PATH_ENTRIES = 37; + // A proposal to change the set of elected GuestOS versions. The version to elect (identified by + // the hash of the installation image) is added to the registry. Besides creating a record for + // that version, the proposal also appends that version to the list of elected versions that can + // be installed on nodes of a subnet. Only elected GuestOS versions can be deployed. + NNS_FUNCTION_REVISE_ELECTED_GUESTOS_VERSIONS = 38; + + NNS_FUNCTION_BITCOIN_SET_CONFIG = 39; + + // OBSOLETE: use NNS_FUNCTION_REVISE_ELECTED_HOSTOS_VERSIONS instead + NNS_FUNCTION_UPDATE_ELECTED_HOSTOS_VERSIONS = 40; + // OBSOLETE: use NNS_FUNCTION_UPGRADE_HOSTOS_FOR_SOME_NODES instead + NNS_FUNCTION_UPDATE_NODES_HOSTOS_VERSION = 41; + + // Uninstall and Install Root with the WASM provided in the function. If InitArgs are provided + // They will be passed to the canister_init function of the WASM provided. + // This function is meant as a Break Glass mechanism for when an open call context in + // the Root canister is preventing root or another canister from upgrading (in the case of proxied calls). + NNS_FUNCTION_HARD_RESET_NNS_ROOT_TO_VERSION = 42; + + // A proposal to add a set of new API Boundary Nodes using unassigned nodes + NNS_FUNCTION_ADD_API_BOUNDARY_NODES = 43; + + // A proposal to remove a set of API Boundary Nodes, which will designate them as unassigned nodes + NNS_FUNCTION_REMOVE_API_BOUNDARY_NODES = 44; + + reserved 45; + reserved "NNS_FUNCTION_UPDATE_API_BOUNDARY_NODE_DOMAIN"; + + // (obsolete) A proposal to update the version of a set of API Boundary Nodes + NNS_FUNCTION_UPDATE_API_BOUNDARY_NODES_VERSION = 46; + + // A proposal to update the version of a set of API Boundary Nodes + NNS_FUNCTION_DEPLOY_GUESTOS_TO_SOME_API_BOUNDARY_NODES = 47; + + // A proposal to update the version of all unassigned nodes + NNS_FUNCTION_DEPLOY_GUESTOS_TO_ALL_UNASSIGNED_NODES = 48; + + // A proposal to update SSH readonly access for all unassigned nodes + NNS_FUNCTION_UPDATE_SSH_READONLY_ACCESS_FOR_ALL_UNASSIGNED_NODES = 49; + + // A proposal to change the set of currently elected HostOS versions, by electing a new version, + // and/or unelecting some priorly elected versions. HostOS versions are identified by the hash + // of the installation image. The version to elect is added to the Registry, and the versions + // to unelect are removed from the Registry, ensuring that HostOS cannot upgrade to these versions + // anymore. This proposal does not actually perform the upgrade; for deployment of an elected + // version, please refer to `NNS_FUNCTION_DEPLOY_HOSTOS_TO_SOME_NODES`. + NNS_FUNCTION_REVISE_ELECTED_HOSTOS_VERSIONS = 50; + + // Deploy a HostOS version to a given set of nodes. The proposal changes the HostOS version that + // is used on the specified nodes. + NNS_FUNCTION_DEPLOY_HOSTOS_TO_SOME_NODES = 51; +} + +// Payload of a proposal that calls a function on another NNS +// canister. The canister and function to call is derived from the +// `nns_function`. +message ExecuteNnsFunction { + // This enum value determines what canister to call and what NNS + // function to call on that canister. + NnsFunction nns_function = 1; + // The payload of the NNS function. + bytes payload = 2; +} + +// If adopted, a motion should guide the future strategy of the +// Internet Computer ecosystem. +message Motion { + // The text of the motion. Maximum 100kib. + string motion_text = 1; +} + +// For all Neurons controlled by the given principals, set their +// KYC status to `kyc_verified=true`. +message ApproveGenesisKYC { + repeated ic_base_types.pb.v1.PrincipalId principals = 1; +} + +// Adds and/or removes NodeProviders from the list of current +// node providers. +message AddOrRemoveNodeProvider { + oneof change { + NodeProvider to_add = 1; + NodeProvider to_remove = 2; + } +} + +// This proposal payload is used to reward a node provider by minting +// ICPs directly to the node provider's ledger account, or into a new +// neuron created on behalf of the node provider. +message RewardNodeProvider { + // The NodeProvider to reward. + NodeProvider node_provider = 1; + // The amount of e8s to mint to reward the node provider. + uint64 amount_e8s = 2; + // This message specifies how to create a new neuron on behalf of + // the node provider. + // + // - The controller of the new neuron is the node provider's + // principal. + // + // - The account is chosen at random. + // + // - The stake of the new neuron is `amount_e8s`. + // + // - `dissolve_delay_seconds` is as specified in the proto. + // + // - `kyc_verified` is set to true, as node providers are + // (implicitly) KYC'ed. + // + // - `not_for_profit` is set to false. + // + // - All other values are set as for other neurons: timestamp is + // now, following is set up per default, maturity is 0, neuron fee + // is 0. + message RewardToNeuron { + uint64 dissolve_delay_seconds = 1; + } + + message RewardToAccount { + ic_ledger.pb.v1.AccountIdentifier to_account = 1; + } + + oneof reward_mode { + // If this is specified, executing this proposal will create a + // neuron instead of directly minting ICP into the node provider's + // account. + RewardToNeuron reward_to_neuron = 4; + // If this is specified, executing this proposal will mint to the + // specified account. + RewardToAccount reward_to_account = 5; + } + + reserved 3; + reserved "create_neuron"; +} + +message RewardNodeProviders { + repeated RewardNodeProvider rewards = 1; + + // If true, reward Node Providers with the rewards returned by the Registry's + // get_node_providers_monthly_xdr_rewards method + optional bool use_registry_derived_rewards = 2; +} + +// Changes the default followees to match the one provided. +// This completely replaces the default followees so entries for all +// Topics (except ManageNeuron) must be provided on each proposal. +message SetDefaultFollowees { + map default_followees = 1; +} + +// Obsolete. Superseded by OpenSnsTokenSwap. +message SetSnsTokenSwapOpenTimeWindow { + // The swap canister to send the request to. + ic_base_types.pb.v1.PrincipalId swap_canister_id = 1; + + // Arguments that get sent to the swap canister when its set_open_time_window + // Candid method is called. + ic_sns_swap.pb.v1.SetOpenTimeWindowRequest request = 2; +} + +// A proposal is the immutable input of a proposal submission. This contains +// all the information from the original proposal submission. +// +// Making a proposal implicitly votes yes. +message Proposal { + // Must be present (enforced at the application layer, not by PB). + // A brief description of what the proposal does. + // Size in bytes must be in the interval [5, 256]. + optional string title = 20; + + // Text providing a short description of the proposal, composed + // using a maximum of 30000 bytes of characters. + string summary = 1; + + // The Web address of additional content required to evaluate the + // proposal, specified using HTTPS. For example, the address might + // describe content supporting the assignment of a DCID (data center + // id) to a new data center. The URL string must not be longer than + // 2000 bytes. + string url = 2; + + // This section describes the action that the proposal proposes to + // take. + oneof action { + // This type of proposal calls a major function on a specified + // target neuron. Only the followees of the target neuron (on the + // topic [Topic::ManageNeuron]) may vote on these proposals, + // which effectively provides the followees with control over the + // target neuron. This can provide a convenient and highly secure + // means for a team of individuals to manage an important + // neuron. For example, a neuron might hold a large balance, or + // belong to an organization of high repute, and be publicized so + // that many other neurons can follow its vote. In both cases, + // managing the private key of the principal securely could be + // problematic (either a single copy is held, which is very + // insecure and provides for a single party to take control, or a + // group of individuals must divide responsibility, for example + // using threshold cryptography, which is complex and time + // consuming). To address this, using this proposal type, the + // important neuron can be configured to follow the neurons + // controlled by individual members of a team. Now they can submit + // proposals to make the important neuron perform actions, which + // are adopted if and only if a majority of them vote to + // adopt. Nearly any command on the target neuron can be executed, + // including commands that change the follow rules, allowing the + // set of team members to be dynamic. Only the final step of + // dissolving the neuron once its dissolve delay reaches zero + // cannot be performed using this type of proposal (since this + // would allow control/“ownership” over the locked balances to be + // transferred). To prevent a neuron falling under the malign + // control of the principal’s private key by accident, the private + // key can be destroyed so that the neuron can only be controlled + // by its followees, although this makes it impossible to + // subsequently unlock the balance. + ManageNeuron manage_neuron = 10; + // Propose a change to some network parameters of network + // economics. + NetworkEconomics manage_network_economics = 12; + // See [Motion] + Motion motion = 13; + // A update affecting something outside of the Governance + // canister. + ExecuteNnsFunction execute_nns_function = 14; + // Approve Genesis KYC for a given list of principals. + ApproveGenesisKYC approve_genesis_kyc = 15; + // Add/remove NodeProvider from the list of NodeProviders + AddOrRemoveNodeProvider add_or_remove_node_provider = 16; + // Reward a NodeProvider + RewardNodeProvider reward_node_provider = 17; + // Set the default following + SetDefaultFollowees set_default_followees = 18; + // Reward multiple NodeProvider + RewardNodeProviders reward_node_providers = 19; + // Register Known Neuron + KnownNeuron register_known_neuron = 21; + // Obsolete. Superseded by CreateServiceNervousSystem. Kept for Candid compatibility. + SetSnsTokenSwapOpenTimeWindow set_sns_token_swap_open_time_window = 22 [deprecated = true]; + // Call the open method on an SNS swap canister. + // + // This is still supported but will soon be superseded by + // CreateServiceNervousSystem. + OpenSnsTokenSwap open_sns_token_swap = 23 [deprecated = true]; + // Create a new SNS. + CreateServiceNervousSystem create_service_nervous_system = 24; + } +} + +// Empty message to use in oneof fields that represent empty +// enums. +message Empty {} // All operations that modify the state of an existing neuron are // represented by instances of `ManageNeuron`. @@ -16,29 +856,54 @@ message ManageNeuron { option (ic_base_types.pb.v1.tui_signed_message) = true; // This is the legacy way to specify neuron IDs that is now discouraged. - ic_base_types.pb.v1.NeuronId id = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; + ic_nns_common.pb.v1.NeuronId id = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; // The ID of the neuron to manage. This can either be a subaccount or a neuron ID. oneof neuron_id_or_subaccount { bytes subaccount = 11 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; - ic_base_types.pb.v1.NeuronId neuron_id = 12 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; + ic_nns_common.pb.v1.NeuronId neuron_id = 12 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; } + // The dissolve delay of a neuron can be increased up to a maximum + // of 8 years. message IncreaseDissolveDelay { + option (ic_base_types.pb.v1.tui_signed_message) = true; uint32 additional_dissolve_delay_seconds = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; } - message StartDissolving {} message StopDissolving {} - + // Add a new hot key that can be used to manage the neuron. This + // provides an alternative to using the controller principal’s cold key to + // manage the neuron, which might be onerous and difficult to keep + // secure, especially if it is used regularly. A hot key might be a + // WebAuthn key that is maintained inside a user device, such as a + // smartphone. message AddHotKey { + option (ic_base_types.pb.v1.tui_signed_message) = true; ic_base_types.pb.v1.PrincipalId new_hot_key = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; } - + // Remove a hot key that has been previously assigned to the neuron. message RemoveHotKey { + option (ic_base_types.pb.v1.tui_signed_message) = true; ic_base_types.pb.v1.PrincipalId hot_key_to_remove = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; } - + // An (idempotent) alternative to IncreaseDissolveDelay where the dissolve delay + // is passed as an absolute timestamp in seconds since the unix epoch. + message SetDissolveTimestamp { + option (ic_base_types.pb.v1.tui_signed_message) = true; + uint64 dissolve_timestamp_seconds = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; + } + // Join the Internet Computer's community fund with this neuron's present and future maturity. + message JoinCommunityFund {} + // Leave the Internet Computer's community fund. + message LeaveCommunityFund {} + // Changes auto-stake maturity for this Neuron. While on, auto-stake + // maturity will cause all the maturity generated by voting rewards + // to this neuron to be automatically staked and contribute to the + // voting power of the neuron. + message ChangeAutoStakeMaturity { + bool requested_setting_for_auto_stake_maturity = 1; + } // Commands that only configure a given neuron, but do not interact // with the outside world. They all require the caller to be the // controller of the neuron. @@ -49,60 +914,168 @@ message ManageNeuron { StopDissolving stop_dissolving = 3; AddHotKey add_hot_key = 4; RemoveHotKey remove_hot_key = 5; + SetDissolveTimestamp set_dissolve_timestamp = 6; JoinCommunityFund join_community_fund = 7; + LeaveCommunityFund leave_community_fund = 8; + ChangeAutoStakeMaturity change_auto_stake_maturity = 9; } } - - message Spawn { - ic_base_types.pb.v1.PrincipalId new_controller = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; - optional uint64 nonce = 2; - optional uint32 percentage_to_spawn = 3; - } - + // Disburse this neuron's stake: transfer the staked ICP to the + // specified account. message Disburse { option (ic_base_types.pb.v1.tui_signed_message) = true; message Amount { option (ic_base_types.pb.v1.tui_signed_message) = true; - uint64 e8s = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true, jstype = JS_STRING]; + uint64 e8s = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; } + // The (optional) amount to transfer. If not specified the cached + // stake is used. Amount amount = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; + // The principal to which to transfer the stake. ic_ledger.pb.v1.AccountIdentifier to_account = 2 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; } - message Follow { - Topic topic = 1; - repeated ic_base_types.pb.v1.NeuronId followees = 2; - } - - message RegisterVote { - ic_base_types.pb.v1.ProposalId proposal = 1; - Vote vote = 2; + // Split this neuron into two neurons. + // + // The child neuron retains the parent neuron's properties. + message Split { + // The amount to split to the child neuron. + uint64 amount_e8s = 1; } // Merge another neuron into this neuron. message Merge { // The neuron to merge stake and maturity from. - ic_base_types.pb.v1.NeuronId source_neuron_id = 1; + ic_nns_common.pb.v1.NeuronId source_neuron_id = 1; + } + + // When the maturity of a neuron has risen above a threshold, it can + // be instructed to spawn a new neuron. This creates a new neuron + // that locks a new balance of ICP on the ledger. The new neuron can + // remain controlled by the same principal as its parent, or be + // assigned to a new principal. + message Spawn { + option (ic_base_types.pb.v1.tui_signed_message) = true; + // If not set, the spawned neuron will have the same controller as + // this neuron. + ic_base_types.pb.v1.PrincipalId new_controller = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; + // The nonce with which to create the subaccount. + optional uint64 nonce = 2; + // The percentage to spawn, from 1 to 100 (inclusive). + optional uint32 percentage_to_spawn = 3; } + // Merge the maturity of a neuron into the current stake. + // The caller can choose a percentage of the current maturity to merge into + // the existing stake. The resulting amount to merge must be greater than + // or equal to the transaction fee. message MergeMaturity { - uint32 percentage_to_merge = 1; + option (ic_base_types.pb.v1.tui_signed_message) = true; + // The percentage to merge, from 1 to 100 (inclusive). + uint32 percentage_to_merge = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; } - message JoinCommunityFund {} + // Stake the maturity of a neuron. + // The caller can choose a percentage of of the current maturity to stake. + // If 'percentage_to_stake' is not provided, all of the neuron's current + // maturity will be staked. + message StakeMaturity { + // The percentage of maturity to stake, from 1 to 100 (inclusive). + optional uint32 percentage_to_stake = 1; + } + + // Disburse a portion of this neuron's stake into another neuron. + // This allows to split a neuron but with a new dissolve delay + // and owned by someone else. + message DisburseToNeuron { + // The controller of the new neuron (must be set). + ic_base_types.pb.v1.PrincipalId new_controller = 1; + // The amount to disburse. + uint64 amount_e8s = 2; + // The dissolve delay of the new neuron. + uint64 dissolve_delay_seconds = 3; + // Whether the new neuron has been kyc verified. + bool kyc_verified = 4; + // The nonce with which to create the subaccount. + uint64 nonce = 5; + } + + // Add a rule that enables the neuron to vote automatically on + // proposals that belong to a specific topic, by specifying a group + // of followee neurons whose majority vote is followed. The + // configuration of such follow rules can be used to a) distribute + // control over voting power amongst multiple entities, b) have a + // neuron vote automatically when its owner lacks time to evaluate + // newly submitted proposals, c) have a neuron vote automatically + // when its own lacks the expertise to evaluate newly submitted + // proposals, and d) for other purposes. A follow rule specifies a + // set of followees. Once a majority of the followees votes to adopt + // or reject a proposal belonging to the specified topic, the neuron + // votes the same way. If it becomes impossible for a majority of + // the followees to adopt (for example, because they are split 50-50 + // between adopt and reject), then the neuron votes to reject. If a + // rule is specified where the proposal topic is UNSPECIFIED, then it + // becomes a catch-all follow rule, which will be used to vote + // automatically on proposals belonging to topics for which no + // specific rule has been specified. + // + // If the list 'followees' is empty, this removes following for a + // specific topic. + message Follow { + option (ic_base_types.pb.v1.tui_signed_message) = true; + // Topic UNSPECIFIED means add following for the 'catch all'. + Topic topic = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; + repeated ic_nns_common.pb.v1.NeuronId followees = 2 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; + } + // Have the neuron vote to either adopt or reject a proposal with a specified + // id. + message RegisterVote { + option (ic_base_types.pb.v1.tui_signed_message) = true; + ic_nns_common.pb.v1.ProposalId proposal = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; + Vote vote = 2 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; + } + + // Claim a new neuron or refresh the stake of an existing neuron. + message ClaimOrRefresh { + message MemoAndController { + uint64 memo = 1; + ic_base_types.pb.v1.PrincipalId controller = 2; + } + + oneof by { + // DEPRECATED: Use MemoAndController and omit the controller. + uint64 memo = 1; + + // Claim or refresh a neuron, by providing the memo used in the + // staking transfer and 'controller' as the principal id used to + // calculate the subaccount to which the transfer was made. If + // 'controller' is omitted, the principal id of the caller is + // used. + MemoAndController memo_and_controller = 2; + + // This just serves as a tag to indicate that the neuron should be + // refreshed by it's id or subaccount. This does not work to claim + // new neurons. + Empty neuron_id_or_subaccount = 3; + } + } oneof command { Configure configure = 2; Disburse disburse = 3; Spawn spawn = 4; Follow follow = 5; + Proposal make_proposal = 6; RegisterVote register_vote = 7; + Split split = 8; + DisburseToNeuron disburse_to_neuron = 9; + ClaimOrRefresh claim_or_refresh = 10; MergeMaturity merge_maturity = 13; Merge merge = 14; + StakeMaturity stake_maturity = 15; } } - // The response of the ManageNeuron command // // There is a dedicated response type for each `ManageNeuron.command` field @@ -110,23 +1083,60 @@ message ManageNeuronResponse { message ConfigureResponse {} message DisburseResponse { - uint64 transfer_block_height = 1 [jstype = JS_STRING]; + // The block height at which the disburse transfer happened + uint64 transfer_block_height = 1; } message SpawnResponse { - ic_base_types.pb.v1.NeuronId created_neuron_id = 1; + // The ID of the Neuron created from spawning a Neuron + ic_nns_common.pb.v1.NeuronId created_neuron_id = 1; } message MergeMaturityResponse { - uint64 merged_maturity_e8s = 1 [jstype = JS_STRING]; - uint64 new_stake_e8s = 2 [jstype = JS_STRING]; + uint64 merged_maturity_e8s = 1; + uint64 new_stake_e8s = 2; + } + + message StakeMaturityResponse { + uint64 maturity_e8s = 1; + uint64 staked_maturity_e8s = 2; } message FollowResponse {} + message MakeProposalResponse { + // The ID of the created proposal + ic_nns_common.pb.v1.ProposalId proposal_id = 1; + optional string message = 2; + } + message RegisterVoteResponse {} - message MergeResponse {} + message SplitResponse { + // The ID of the Neuron created from splitting another Neuron + ic_nns_common.pb.v1.NeuronId created_neuron_id = 1; + } + + // A response for merging or simulating merge neurons + message MergeResponse { + // The resulting state of the source neuron + Neuron source_neuron = 1; + // The resulting state of the target neuron + Neuron target_neuron = 2; + // The NeuronInfo of the source neuron + NeuronInfo source_neuron_info = 3; + // The NeuronInfo of the target neuron + NeuronInfo target_neuron_info = 4; + } + + message DisburseToNeuronResponse { + // The ID of the Neuron created from disbursing a Neuron + ic_nns_common.pb.v1.NeuronId created_neuron_id = 1; + } + + message ClaimOrRefreshResponse { + ic_nns_common.pb.v1.NeuronId refreshed_neuron_id = 1; + } oneof command { GovernanceError error = 1; @@ -134,160 +1144,1489 @@ message ManageNeuronResponse { DisburseResponse disburse = 3; SpawnResponse spawn = 4; FollowResponse follow = 5; + MakeProposalResponse make_proposal = 6; RegisterVoteResponse register_vote = 7; + SplitResponse split = 8; + DisburseToNeuronResponse disburse_to_neuron = 9; + ClaimOrRefreshResponse claim_or_refresh = 10; MergeMaturityResponse merge_maturity = 11; MergeResponse merge = 12; + StakeMaturityResponse stake_maturity = 13; } } message GovernanceError { enum ErrorType { - ERROR_TYPE_UNSPECIFIED = 0; - // The operation was successfully completed. - ERROR_TYPE_OK = 1; - // This operation is not available, e.g., not implemented. - ERROR_TYPE_UNAVAILABLE = 2; - // The caller is not authorized to perform this operation. - ERROR_TYPE_NOT_AUTHORIZED = 3; - // Some entity required for the operation (for example, a neuron) was not found. - ERROR_TYPE_NOT_FOUND = 4; - // The command was missing or invalid. This is a permanent error. - ERROR_TYPE_INVALID_COMMAND = 5; - // The neuron is dissolving or dissolved and the operation requires it to - // be not dissolving (that is, having a non-zero dissolve delay that is - // accumulating age). - ERROR_TYPE_REQUIRES_NOT_DISSOLVING = 6; - // The neuron is not dissolving or dissolved and the operation requires - // it to be dissolving (that is, having a non-zero dissolve delay with - // zero age that is not accumulating). - ERROR_TYPE_REQUIRES_DISSOLVING = 7; - // The neuron is not dissolving and not dissolved and the operation - // requires it to be dissolved (that is, having a dissolve delay of zero - // and an age of zero). - ERROR_TYPE_REQUIRES_DISSOLVED = 8; - // When adding or removing a hot key: the key to add was already - // present or the key to remove was not present or the key to add - // was invalid or adding another hot key would bring the total - // number of the maximum number of allowed hot keys per neuron. - ERROR_TYPE_HOT_KEY = 9; - // Some canister side resource is exhausted, so this operation cannot be - // performed. - ERROR_TYPE_RESOURCE_EXHAUSTED = 10; - // Some precondition for executing this method was not met (e.g. the - // neuron's desolve time is too short). There could be a change in the - // state of the system such that the operation becomes allowed (e.g. the - // owner of the neuron increases its desolve delay). - ERROR_TYPE_PRECONDITION_FAILED = 11; - // Executing this method failed for some reason external to the - // governance canister. - ERROR_TYPE_EXTERNAL = 12; - // A neuron has an ongoing ledger update and thus can't be - // changed. - ERROR_TYPE_LEDGER_UPDATE_ONGOING = 13; - // There wasn't enough funds to perform the operation. - ERROR_TYPE_INSUFFICIENT_FUNDS = 14; - // The principal provided was invalid. - ERROR_TYPE_INVALID_PRINCIPAL = 15; - // The proposal is defective in some way (e.g. title is too long). If the - // same proposal is submitted again without modification, it will be - // rejected regardless of changes in the system's state (e.g. increasing - // the neuron's desolve delay will not make the proposal acceptable). - ERROR_TYPE_INVALID_PROPOSAL = 16; - // The neuron attempted to join the community fund while already - // a member. - ERROR_TYPE_ALREADY_JOINED_COMMUNITY_FUND = 17; + ERROR_TYPE_UNSPECIFIED = 0; + // The operation was successfully completed. + ERROR_TYPE_OK = 1; + // This operation is not available, e.g., not implemented. + ERROR_TYPE_UNAVAILABLE = 2; + // The caller is not authorized to perform this operation. + ERROR_TYPE_NOT_AUTHORIZED = 3; + // Some entity required for the operation (for example, a neuron) was not found. + ERROR_TYPE_NOT_FOUND = 4; + // The command was missing or invalid. This is a permanent error. + ERROR_TYPE_INVALID_COMMAND = 5; + // The neuron is dissolving or dissolved and the operation requires it to + // be not dissolving (that is, having a non-zero dissolve delay that is + // accumulating age). + ERROR_TYPE_REQUIRES_NOT_DISSOLVING = 6; + // The neuron is not dissolving or dissolved and the operation requires + // it to be dissolving (that is, having a non-zero dissolve delay with + // zero age that is not accumulating). + ERROR_TYPE_REQUIRES_DISSOLVING = 7; + // The neuron is not dissolving and not dissolved and the operation + // requires it to be dissolved (that is, having a dissolve delay of zero + // and an age of zero). + ERROR_TYPE_REQUIRES_DISSOLVED = 8; + // When adding or removing a hot key: the key to add was already + // present or the key to remove was not present or the key to add + // was invalid or adding another hot key would bring the total + // number of the maximum number of allowed hot keys per neuron. + ERROR_TYPE_HOT_KEY = 9; + // Some canister side resource is exhausted, so this operation cannot be + // performed. + ERROR_TYPE_RESOURCE_EXHAUSTED = 10; + // Some precondition for executing this method was not met (e.g. the + // neuron's dissolve time is too short). There could be a change in the + // state of the system such that the operation becomes allowed (e.g. the + // owner of the neuron increases its dissolve delay). + ERROR_TYPE_PRECONDITION_FAILED = 11; + // Executing this method failed for some reason external to the + // governance canister. + ERROR_TYPE_EXTERNAL = 12; + // A neuron has an ongoing ledger update and thus can't be + // changed. + ERROR_TYPE_LEDGER_UPDATE_ONGOING = 13; + // There wasn't enough funds to perform the operation. + ERROR_TYPE_INSUFFICIENT_FUNDS = 14; + // The principal provided was invalid. + ERROR_TYPE_INVALID_PRINCIPAL = 15; + // The proposal is defective in some way (e.g. title is too long). If the + // same proposal is submitted again without modification, it will be + // rejected regardless of changes in the system's state (e.g. increasing + // the neuron's dissolve delay will not make the proposal acceptable). + ERROR_TYPE_INVALID_PROPOSAL = 16; + // The neuron attempted to join the community fund while already + // a member. + ERROR_TYPE_ALREADY_JOINED_COMMUNITY_FUND = 17; + // The neuron attempted to leave the community fund but is not a member. + ERROR_TYPE_NOT_IN_THE_COMMUNITY_FUND = 18; } ErrorType error_type = 1; string error_message = 2; } -message ListNeurons { - option (ic_base_types.pb.v1.tui_signed_message) = true; - repeated fixed64 neuron_ids = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true, jstype = JS_STRING]; - bool include_neurons_readable_by_caller = 2 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; +message Ballot { + Vote vote = 1; + uint64 voting_power = 2; } -message ListNeuronsResponse { - message NeuronMapEntry { - fixed64 key = 1 [jstype = JS_STRING]; - NeuronInfo value = 2; - } +// The proposal status, with respect to decision making and execution. +// See also ProposalRewardStatus. +enum ProposalStatus { + PROPOSAL_STATUS_UNSPECIFIED = 0; - // Was originally `map neuron_infos = 1` - // It had to be modified to this form to annotate the key with js_type. - repeated NeuronMapEntry neuron_ids = 1; - repeated Neuron full_neurons = 2; -} + // A decision (adopt/reject) has yet to be made. + PROPOSAL_STATUS_OPEN = 1; -message BallotInfo { - ic_base_types.pb.v1.ProposalId proposal_id = 1; - Vote vote = 2; -} + // The proposal has been rejected. + PROPOSAL_STATUS_REJECTED = 2; -message NeuronInfo { - uint64 retrieved_at_timestamp_seconds = 1 [jstype = JS_STRING];; - uint64 age_seconds = 3 [jstype = JS_STRING]; - uint64 dissolve_delay_seconds = 4 [jstype = JS_STRING]; - repeated BallotInfo recent_ballots = 5; - uint64 voting_power = 6 [jstype = JS_STRING]; - uint64 created_timestamp_seconds = 7 [jstype = JS_STRING]; -} + // The proposal has been adopted (sometimes also called + // "accepted"). At this time, either execution as not yet started, + // or it has but the outcome is not yet known. + PROPOSAL_STATUS_ADOPTED = 3; -message Neuron { - ic_base_types.pb.v1.NeuronId id = 1; - bytes account = 2; - ic_base_types.pb.v1.PrincipalId controller = 3; - repeated ic_base_types.pb.v1.PrincipalId hot_keys = 4; - uint64 cached_neuron_stake_e8s = 5 [jstype = JS_STRING]; - uint64 neuron_fees_e8s = 6 [jstype = JS_STRING]; - uint64 created_timestamp_seconds = 7 [jstype = JS_STRING]; - uint64 aging_since_timestamp_seconds = 8 [jstype = JS_STRING]; - optional uint64 spawn_at_timestamp_seconds = 19 [jstype = JS_STRING]; - oneof dissolve_state { - uint64 when_dissolved_timestamp_seconds = 9 [jstype = JS_STRING]; - uint64 dissolve_delay_seconds = 10 [jstype = JS_STRING]; - } - message Followees { repeated ic_base_types.pb.v1.NeuronId followees = 1; } - map followees = 11; - repeated BallotInfo recent_ballots = 12; - bool kyc_verified = 13; - NeuronStakeTransfer transfer = 14; - uint64 maturity_e8s_equivalent = 15 [jstype = JS_STRING]; - bool not_for_profit = 16; + // The proposal was adopted and successfully executed. + PROPOSAL_STATUS_EXECUTED = 4; + + // The proposal was adopted, but execution failed. + PROPOSAL_STATUS_FAILED = 5; } -enum Vote { - VOTE_UNSPECIFIED = 0; - VOTE_YES = 1; - VOTE_NO = 2; +// The proposal status, with respect to reward distribution. +// See also ProposalStatus. +enum ProposalRewardStatus { + PROPOSAL_REWARD_STATUS_UNSPECIFIED = 0; + + // The proposal still accept votes, for the purpose of + // vote rewards. This implies nothing on the ProposalStatus. + PROPOSAL_REWARD_STATUS_ACCEPT_VOTES = 1; + + // The proposal no longer accepts votes. It is due to settle + // at the next reward event. + PROPOSAL_REWARD_STATUS_READY_TO_SETTLE = 2; + + // The proposal has been taken into account in a reward event. + PROPOSAL_REWARD_STATUS_SETTLED = 3; + + // The proposal is not eligible to be taken into account in a reward event. + PROPOSAL_REWARD_STATUS_INELIGIBLE = 4; } -message NeuronStakeTransfer { - uint64 transfer_timestamp = 1 [jstype = JS_STRING]; - ic_base_types.pb.v1.PrincipalId from = 2; - bytes from_subaccount = 3; - bytes to_subaccount = 4; - uint64 neuron_stake_e8s = 5 [jstype = JS_STRING]; - uint64 block_height = 6 [jstype = JS_STRING]; - uint64 memo = 7 [jstype = JS_STRING]; +// A tally of votes. +message Tally { + // When was this tally made + uint64 timestamp_seconds = 1; + + // Yeses, in voting power unit. + uint64 yes = 2; + + // Noes, in voting power unit. + uint64 no = 3; + + // Total voting power unit of eligible neurons. + // Should always be greater than or equal to yes + no. + uint64 total = 4; } -enum Topic { - TOPIC_UNSPECIFIED = 0; - TOPIC_NEURON_MANAGEMENT = 1; - TOPIC_EXCHANGE_RATE = 2; - TOPIC_NETWORK_ECONOMICS = 3; - TOPIC_GOVERNANCE = 4; - TOPIC_NODE_ADMIN = 5; - TOPIC_PARTICIPANT_MANAGEMENT = 6; - TOPIC_SUBNET_MANAGEMENT = 7; - TOPIC_NETWORK_CANISTER_MANAGEMENT = 8; - TOPIC_KYC = 9; - TOPIC_NODE_PROVIDER_REWARDS = 10; - TOPIC_SNS_DECENTRALIZATION_SALE = 11; - TOPIC_SUBNET_REPLICA_VERSION_MANAGEMENT = 12; - TOPIC_REPLICA_VERSION_MANAGEMENT = 13; - TOPIC_SNS_AND_COMMUNITY_FUND = 14; - TOPIC_API_BOUNDARY_NODE_MANAGEMENT = 15; +// A ProposalData contains everything related to an open proposal: +// the proposal itself (immutable), as well as mutable data such as +// ballots. +message ProposalData { + // This is stored here temporarily. It is also stored on the map + // that contains proposals. + // + // Immutable: The unique id for this proposal. + ic_nns_common.pb.v1.ProposalId id = 1; + + // Immutable: The ID of the neuron that made this proposal. + ic_nns_common.pb.v1.NeuronId proposer = 2; + + // Immutable: The amount of ICP in E8s to be charged to the proposer if the + // proposal is rejected. + uint64 reject_cost_e8s = 3; + + // Immutable: The proposal originally submitted. + Proposal proposal = 4; + + // Immutable: The timestamp, in seconds from the Unix epoch, when this proposal + // was made. + uint64 proposal_timestamp_seconds = 5; + + // Map neuron ID to to the neuron's vote and voting power. Only + // present for as long as the proposal is not yet settled with + // respect to rewards. + map ballots = 6; + + // Latest tally. Recomputed for every vote. Even after the proposal has been + // decided, the latest_tally will still be updated based on the recent vote, + // until the voting deadline. + Tally latest_tally = 7; + + // If specified: the timestamp when this proposal was adopted or + // rejected. If not specified, this proposal is still 'open'. + uint64 decided_timestamp_seconds = 8; + + // When an adopted proposal has been executed, this is set to + // current timestamp. + uint64 executed_timestamp_seconds = 12; + + // When an adopted proposal has failed to be executed, this is set + // to the current timestamp. + uint64 failed_timestamp_seconds = 13; + + // When an adopted proposal has failed to executed, this is set the + // reason for the failure. + GovernanceError failure_reason = 15; + + // The reward event round at which rewards for votes on this proposal + // was distributed. + // + // Rounds do not have to be consecutive. + // + // Rounds start at one: a value of zero indicates that + // no reward event taking this proposal into consideration happened yet. + // + // This field matches field day_after_genesis in RewardEvent. + uint64 reward_event_round = 14; + + // Wait-for-quiet state that needs to be saved in stable memory. + WaitForQuietState wait_for_quiet_state = 16; + + // SNS Token Swap-related fields + // ----------------------------- + + // This is populated when an OpenSnsTokenSwap proposal is first made. + optional uint64 original_total_community_fund_maturity_e8s_equivalent = 17; + + // This is populated when OpenSnsTokenSwap is executed. It is used when our + // conclude_community_fund_participation Candid method is called to either + // mint ICP, or restore CF neuron maturity. + repeated ic_sns_swap.pb.v1.CfParticipant cf_participants = 18; + + // This gets set to one of the terminal values (i.e. Committed or Aborted) + // when the swap canister calls our conclude_community_fund_participation + // Candid method. Initially, it is set to Open, because swap is supposed to + // enter that state when we call its open Candid method, which is the main + // operation in the execution of an OpenSnsTokenSwap proposal. + optional ic_sns_swap.pb.v1.Lifecycle sns_token_swap_lifecycle = 19; + + DerivedProposalInformation derived_proposal_information = 20; + + // This structure contains data for settling the Neurons' Fund participation at the end of a swap. + // + // TODO[NNS1-2566]: deprecate `original_total_community_fund_maturity_e8s_equivalent` and + // `cf_participants` and use only this field for managing the Neurons' Fund swap participation. + optional NeuronsFundData neurons_fund_data = 21; +} + +// This structure contains data for settling the Neurons' Fund participation in an SNS token swap. +message NeuronsFundData { + // Initial Neurons' Fund reserves computed at the time of execution of the proposal through which + // the SNS swap is created. + optional NeuronsFundParticipation initial_neurons_fund_participation = 1; + + // Final Neurons' Fund participation computed at the time of swap finalization. This field should + // remain unspecified until either (1) the `settle_neurons_fund_participation` function is called + // or (2) the NNS handles an error at the SNS deployment stage. + // + // If specified, this must be a subset of `initial_neurons_fund_participation`. + optional NeuronsFundParticipation final_neurons_fund_participation = 2; + + // Refunds for any leftover Neurons' Fund maturity that could not be used to participate in + // the swap. This field should remain unspecified `settle_neurons_fund_participation` is called. + // + // If specified, this must be equal to the following set-difference: + // `initial_neurons_fund_participation.neurons_fund_reserves` + // set-minus `final_neurons_fund_participation.neurons_fund_reserves`. + optional NeuronsFundSnapshot neurons_fund_refunds = 3; +} + +// This is a view of the NeuronsFundData returned by API queries and is NOT used for storage. +// Currently, the structure is identical to NeuronsFundData, but this may change over time. +// Some of the fields, e.g., actual IDs of neurons, are anonymized. +message NeuronsFundAuditInfo { + // See documentation for NeuronsFundData.neurons_fund_participation + optional NeuronsFundParticipation initial_neurons_fund_participation = 1; + + // See documentation for NeuronsFundData.final_neurons_fund_participation + optional NeuronsFundParticipation final_neurons_fund_participation = 2; + + // See documentation for NeuronsFundData.neurons_fund_refunds + optional NeuronsFundSnapshot neurons_fund_refunds = 3; +} + +message GetNeuronsFundAuditInfoRequest { + // ID of the NNS proposal that resulted in the creation of the corresponding Swap. + optional ic_nns_common.pb.v1.ProposalId nns_proposal_id = 1; +} + +message GetNeuronsFundAuditInfoResponse { + // Request was completed successfully. + message Ok { + // Represents public information suitable for auditing Neurons' Fund participation in an SNS swap. + optional NeuronsFundAuditInfo neurons_fund_audit_info = 1; + } + + oneof result { + GovernanceError err = 1; + Ok ok = 2; + } +} + +// Information for deciding how the Neurons' Fund should participate in an SNS Swap. +message NeuronsFundParticipation { + // The function used in the implementation of Matched Funding. + // + // If an NNS Governance upgrade takes place *during* a swap, the original "ideal" matched + // participation function needs to be recovered at the end of the swap, ensuring e.g., that + // the amount of maturity stored in `neurons_fund_snapshot` will not not be exceeded for due to + // a change in this function. + optional IdealMatchedParticipationFunction ideal_matched_participation_function = 1; + + // The snapshot of the Neurons' Fund allocation of its maximum swap participation amount among + // its neurons. This snapshot is computed at the execution time of the NNS proposal leading + // to the swap opening. + optional NeuronsFundSnapshot neurons_fund_reserves = 2; + + // Absolute constraints for direct participants of this swap needed in Matched Funding + // computations. + optional SwapParticipationLimits swap_participation_limits = 3; + + // The following fields are provided for auditability. + + // Neurons' Fund participation is computed for this amount of direct participation. + optional uint64 direct_participation_icp_e8s = 4; + + // Total amount of maturity in the Neurons' Fund at the time when the Neurons' Fund participation + // was created. + optional uint64 total_maturity_equivalent_icp_e8s = 5; + + // Maximum amount that the Neurons' Fund will participate with in this SNS swap, regardless of how + // large the value of `direct_participation_icp_e8s` is. + optional uint64 max_neurons_fund_swap_participation_icp_e8s = 6; + + // How much the Neurons' Fund would ideally like to participate with in this SNS swap, given + // the direct participation amount (`direct_participation_icp_e8s`) and matching function + // (`ideal_matched_participation_function`). + optional uint64 intended_neurons_fund_participation_icp_e8s = 7; + + // How much from `intended_neurons_fund_participation_icp_e8s` was the Neurons' Fund actually able + // to allocate, given the specific composition of neurons at the time of execution of the proposal + // through which this SNS was created and the participation limits of this SNS. + optional uint64 allocated_neurons_fund_participation_icp_e8s = 8; +} + +// This function is called "ideal" because it serves as the guideline that the Neurons' Fund will +// try to follow, but may deviate from in order to satisfy SNS-specific participation constraints +// while allocating its overall participation amount among its neurons' maturity. In contrast, +// The "effective" matched participation function `crate::neurons_fund::MatchedParticipationFunction` +// is computed *based* on this one. +message IdealMatchedParticipationFunction { + // The encoding of the "ideal" matched participation function is defined in `crate::neurons_fund`. + // In the future, we could change this message to represent full abstract syntactic trees + // comprised of elementary mathematical operators, with literals and variables as tree leaves. + optional string serialized_representation = 1; +} + +// The snapshot of the Neurons' Fund allocation of its maximum swap participation amount among +// its neurons. This snapshot is computed at the execution time of the NNS proposal leading +// to the swap opening; it is then used at the end of a swap to compute the refund amounts +// per Neuron' Fund neuron. +message NeuronsFundSnapshot { + // Represents one NNS neuron from the Neurons' Fund participating in this swap. + message NeuronsFundNeuronPortion { + // The NNS neuron ID of the participating neuron. + optional ic_nns_common.pb.v1.NeuronId nns_neuron_id = 1; + // Portion of maturity taken from this neuron. Must be less than or equal to + // `maturity_equivalent_icp_e8s`. + optional uint64 amount_icp_e8s = 2; + // Overall amount of maturity of the neuron from which this portion is taken. + optional uint64 maturity_equivalent_icp_e8s = 3; + // The principal that can vote on behalf of this neuron. + optional ic_base_types.pb.v1.PrincipalId hotkey_principal = 4; + // Whether the portion specified by `amount_icp_e8s` is limited due to SNS-specific + // participation constraints. + optional bool is_capped = 5; + } + + repeated NeuronsFundNeuronPortion neurons_fund_neuron_portions = 1; +} + +// Absolute constraints of this swap needed that the Neurons' Fund need to be aware of. +// The fields correspond to those in Swap's `Init` message. +message SwapParticipationLimits { + optional uint64 min_direct_participation_icp_e8s = 1; + optional uint64 max_direct_participation_icp_e8s = 2; + optional uint64 min_participant_icp_e8s = 3; + optional uint64 max_participant_icp_e8s = 4; +} + +// This message has a couple of unusual features. +// +// 1. There is (currently) only one field. We expect that more fields will be +// (and possibly other clients) to be able to handle this information in a +// generic way, i.e. without having to change their code. +// +// 2. Fields that might be added later will probably be mutually exclusive with +// existing fields. Normally, this would be handled by putting all such +// fields into a oneof. However, Candid has a bug where variant is not +// handled correctly. Therefore, we refrain from using oneof until we believe +// that the fix is very imminent. +message DerivedProposalInformation { + SwapBackgroundInformation swap_background_information = 1; +} + +// Additional information about the SNS that's being "swapped". +// +// This data is fetched from other canisters. Currently, the swap canister +// itself, and the root canister are queried, but additional canisters could be +// queried later. In particular, the ID of the root canister is discovered via +// the swap canister. +// +// (See Governance::fetch_swap_background_information for how this is compiled.) +message SwapBackgroundInformation { + // Obsolete. Superseded by newer fields. + + reserved "sns_root_canister_id"; + reserved 1; + reserved "sns_governance_canister_id"; + reserved 2; + reserved "sns_ledger_canister_id"; + reserved 3; + reserved "sns_ledger_index_canister_id"; + reserved 4; + reserved "sns_ledger_archive_canister_ids"; + reserved 5; + reserved "dapp_canister_ids"; + reserved 6; + + // In case swap fails/aborts. + + repeated ic_base_types.pb.v1.PrincipalId fallback_controller_principal_ids = 7; + + // Primary Canisters + + CanisterSummary root_canister_summary = 8; + CanisterSummary governance_canister_summary = 9; + CanisterSummary ledger_canister_summary = 10; + CanisterSummary swap_canister_summary = 11; + + // Secondary Canisters + + repeated CanisterSummary ledger_archive_canister_summaries = 12; + CanisterSummary ledger_index_canister_summary = 13; + + // Non-SNS Canister(s) + + repeated CanisterSummary dapp_canister_summaries = 14; + + // Transcribed from sns/root. + message CanisterSummary { + ic_base_types.pb.v1.PrincipalId canister_id = 1; + CanisterStatusResultV2 status = 2; + } + + message CanisterStatusResultV2 { + optional CanisterStatusType status = 1; + bytes module_hash = 2; + + // no controller field, because that is obsolete and superseded by the + // controllers field within settings. + + repeated ic_base_types.pb.v1.PrincipalId controllers = 3; + + // Resources + + optional uint64 memory_size = 4; + optional uint64 cycles = 5; + optional uint64 freezing_threshold = 6; + optional uint64 idle_cycles_burned_per_day = 7; + } + + // A canister can be stopped by calling stop_canister. The effect of + // stop_canister can be undone by calling start_canister. Stopping is an + // intermediate state where new method calls are rejected, but in-flight + // method calls are allowed to be fully serviced. + enum CanisterStatusType { + CANISTER_STATUS_TYPE_UNSPECIFIED = 0; + CANISTER_STATUS_TYPE_RUNNING = 1; + CANISTER_STATUS_TYPE_STOPPING = 2; + CANISTER_STATUS_TYPE_STOPPED = 3; + } +} + +// Stores data relevant to the "wait for quiet" implementation. +message WaitForQuietState { + uint64 current_deadline_timestamp_seconds = 1; +} + +// This is a view of the ProposalData returned by API queries and is NOT used +// for storage. The ballots are restricted to those of the caller's neurons and +// additionally it has the computed fields, topic, status, and reward_status. +message ProposalInfo { + // The unique id for this proposal. + ic_nns_common.pb.v1.ProposalId id = 1; + + // The ID of the neuron that made this proposal. + ic_nns_common.pb.v1.NeuronId proposer = 2; + + // The amount of ICP in E8s to be charged to the proposer if the proposal is + // rejected. + uint64 reject_cost_e8s = 3; + + // The proposal originally submitted. + Proposal proposal = 4; + + // The timestamp, in seconds from the Unix epoch, when this proposal was made. + uint64 proposal_timestamp_seconds = 5; + + // See [ProposalData::ballots]. + map ballots = 6; + + // See [ProposalData::latest_tally]. + Tally latest_tally = 7; + + // See [ProposalData::decided_timestamp_seconds]. + uint64 decided_timestamp_seconds = 8; + + // See [ProposalData::executed_timestamp_seconds]. + uint64 executed_timestamp_seconds = 12; + + // See [ProposalData::failed_timestamp_seconds]. + uint64 failed_timestamp_seconds = 13; + + // See [ProposalData::failure_reason]. + GovernanceError failure_reason = 18; + + // See [ProposalData::reward_event_round]. + uint64 reward_event_round = 14; + + // Derived - see [Topic] for more information + Topic topic = 15; + + // Derived - see [ProposalStatus] for more information + ProposalStatus status = 16; + + // Derived - see [ProposalRewardStatus] for more information + ProposalRewardStatus reward_status = 17; + + optional uint64 deadline_timestamp_seconds = 19; + + DerivedProposalInformation derived_proposal_information = 20; +} + +// Network economics contains the parameters for several operations related +// to the economy of the network. When submitting a NetworkEconomics proposal +// default values (0) are considered unchanged, so a valid proposal only needs +// to set the parameters that it wishes to change. +// In other words, it's not possible to set any of the values of +// NetworkEconomics to 0. +// +// NOTE: If adding a value to this proto, make sure there is a corresponding +// `if` in Governance::perform_action(). +message NetworkEconomics { + reserved 3, 7; + // The number of E8s (10E-8 of an ICP token) that a rejected + // proposal will cost. + // + // This fee should be controlled by an #Economic proposal type. + // The fee does not apply for ManageNeuron proposals. + uint64 reject_cost_e8s = 1; + + // The minimum number of E8s that can be staked in a neuron. + uint64 neuron_minimum_stake_e8s = 2; + + // The number of E8s (10E-8 of an ICP token) that it costs to + // employ the 'manage neuron' functionality through proposals. The + // cost is incurred by the neuron that makes the 'manage neuron' + // proposal and is applied regardless of whether the proposal is + // adopted or rejected. + uint64 neuron_management_fee_per_proposal_e8s = 4; + + // The minimum number that the ICP/XDR conversion rate can be set to. + // + // Measured in XDR (the currency code of IMF SDR) to two decimal + // places. + // + // See /rs/protobuf/def/registry/conversion_rate/v1/conversion_rate.proto + // for more information on the rate itself. + uint64 minimum_icp_xdr_rate = 5; + + // The dissolve delay of a neuron spawned from the maturity of an + // existing neuron. + uint64 neuron_spawn_dissolve_delay_seconds = 6; + + // The maximum rewards to be distributed to NodeProviders in a single + // distribution event, in e8s. + uint64 maximum_node_provider_rewards_e8s = 8; + + // The transaction fee that must be paid for each ledger transaction. + uint64 transaction_fee_e8s = 9; + + // The maximum number of proposals to keep, per topic for eligible topics. + // When the total number of proposals for a given topic is greater than this + // number, the oldest proposals that have reached a "final" state + // may be deleted. + // + // If unspecified or zero, all proposals are kept. + uint32 max_proposals_to_keep_per_topic = 10; + + // Global Neurons' Fund participation thresholds. + optional NeuronsFundEconomics neurons_fund_economics = 11; +} + +// The thresholds specify the shape of the ideal matching function used by the Neurons' Fund to +// determine how much to contribute for a given direct participation amount. Note that the actual +// swap participation is in ICP, whereas these thresholds are specifid in XDR; the conversion rate +// is determined at the time of execution of the CreateServiceNervousSystem proposal. +message NeuronsFundMatchedFundingCurveCoefficients { + // Up to this amount of direct participation, the Neurons' Fund does not contribute to this SNS. + optional ic_nervous_system.pb.v1.Decimal contribution_threshold_xdr = 1; + + // Say the direct participation amount is `x_icp`. When `x_icp` equals the equavalent of + // `one_third_participation_milestone_xdr` in ICP (we use ICP/XDR conversion data from the CMC), + // the Neurons' Fund contributes 50% on top of that amount, so the overall contributions would + // be `1.5 * x_icp` of which 1/3 comes from the Neurons' Fund. + optional ic_nervous_system.pb.v1.Decimal one_third_participation_milestone_xdr = 2; + + // Say the direct participation amount is `x_icp`. When `x_icp` equals the equavalent of + // `full_participation_milestone_xdr` in ICP (we use ICP/XDR conversion data from the CMC), + // the Neurons' Fund contributes 100% on top of that amount, so the overall contributions would + // be `2.0 * x_icp` of which a half comes from the Neurons' Fund. + optional ic_nervous_system.pb.v1.Decimal full_participation_milestone_xdr = 3; +} + +// When the Neurons' Fund decides to participates in an SNS swap, the amount of participation is +// determined according to the rules of Matched Funding. The amount of ICP tokens contributed by +// the Neurons' Fund depends on four factors: +// (1) Direct participation amount at the time of the swap's successful finalization. +// (2) Amount of maturity held by all eligible neurons that were members of the Neurons' Fund +// at the time of the CreateServiceNervousSystem proposal execution. +// (3) Global Neurons' Fund participation thresholds, held in this structure (defined in XDR). +// (4) ICP/XDR conversion rate at the time of the CreateServiceNervousSystem proposal execution. +message NeuronsFundEconomics { + // This is a theoretical limit which should be smaller than any realistic amount of maturity + // that practically needs to be reserved from the Neurons' Fund for a given SNS swap. + optional ic_nervous_system.pb.v1.Decimal max_theoretical_neurons_fund_participation_amount_xdr = 1; + + // Thresholds specifying the shape of the matching function used by the Neurons' Fund to + // determine how much to contribute for a given direct participation amount. + optional NeuronsFundMatchedFundingCurveCoefficients neurons_fund_matched_funding_curve_coefficients = 2; + + // The minimum value of the ICP/XDR conversion rate used by the Neurons' Fund for converting + // XDR values into ICP. + optional ic_nervous_system.pb.v1.Percentage minimum_icp_xdr_rate = 3; + + // The maximum value of the ICP/XDR conversion rate used by the Neurons' Fund for converting + // XDR values into ICP. + optional ic_nervous_system.pb.v1.Percentage maximum_icp_xdr_rate = 4; +} + +// A reward event is an event at which neuron maturity is increased +message RewardEvent { + // This reward event correspond to a time interval that ends at the end of + // genesis + day_after_genesis days. + // + // For instance: when this is 0, this is for a period that ends at genesis -- there can + // never be a reward for this. + // + // When this is 1, this is for the first day after genesis. + // + // On rare occasions, the reward event may cover several days ending at genesis + day_after_genesis days, + // when it was not possible to proceed to a reward event for a while. This makes that day_after_genesis + // does not have to be consecutive. + uint64 day_after_genesis = 1; + + // The timestamp at which this reward event took place, in seconds since the unix epoch. + // + // This does not match the date taken into account for reward computation, which + // should always be an integer number of days after genesis. + uint64 actual_timestamp_seconds = 2; + + // The list of proposals that were taken into account during + // this reward event. + repeated ic_nns_common.pb.v1.ProposalId settled_proposals = 3; + + // The total amount of reward that was distributed during this reward event. + // + // The unit is "e8s equivalent" to insist that, while this quantity is on + // the same scale as ICPs, maturity is not directly convertible to ICPs: + // conversion requires a minting event to spawn a new neuron. + uint64 distributed_e8s_equivalent = 4; + + // The total amount of rewards that was available during the reward event. + uint64 total_available_e8s_equivalent = 5; + + // The amount of rewards that was available during the last round included in + // this event. This will only be different from `total_available_e8s_equivalent` + // if there were "rollover rounds" included in this event. + optional uint64 latest_round_available_e8s_equivalent = 7; + + // In some cases, the rewards that would have been distributed in one round are + // "rolled over" into the next reward event. This field keeps track of how many + // rounds have passed since the last time rewards were distributed (rather + // than being rolled over). + // + // For the genesis reward event, this field will be zero. + // + // In normal operation, this field will almost always be 1. There are two + // reasons that rewards might not be distributed in a given round. + // + // 1. "Missed" rounds: there was a long period when we did calculate rewards + // (longer than 1 round). (I.e. distribute_rewards was not called by + // heartbeat for whatever reason, most likely some kind of bug.) + // + // 2. Rollover: We tried to distribute rewards, but there were no proposals + // settled to distribute rewards for. + // + // In both of these cases, the rewards purse rolls over into the next round. + optional uint64 rounds_since_last_distribution = 6; +} + +message KnownNeuron { + ic_nns_common.pb.v1.NeuronId id = 1; + KnownNeuronData known_neuron_data = 2; +} + +// Known neurons have extra information (a name and optionally a description) that can be used to identify them. +message KnownNeuronData { + string name = 1; + optional string description = 2; +} + +// Proposal action to call the "open" method of an SNS token swap canister. +message OpenSnsTokenSwap { + // The ID of the canister where the command will be sent (assuming that the + // proposal is adopted, of course). + ic_base_types.pb.v1.PrincipalId target_swap_canister_id = 1; + + // Various limits on the swap. + ic_sns_swap.pb.v1.Params params = 2; + + // The amount that the community fund will collectively spend in maturity on + // the swap. + optional uint64 community_fund_investment_e8s = 3; +} + +// Mainly, calls the deploy_new_sns Candid method on the SNS-WASMs canister. +// Therefore, most of the fields here have equivalents in SnsInitPayload. +// Please, consult the comments therein. +message CreateServiceNervousSystem { + // Metadata + // -------- + + optional string name = 1; + optional string description = 2; + optional string url = 3; + ic_nervous_system.pb.v1.Image logo = 4; + + // Canister Control + // ---------------- + + repeated ic_base_types.pb.v1.PrincipalId fallback_controller_principal_ids = 5; + + repeated ic_nervous_system.pb.v1.Canister dapp_canisters = 6; + + // Initial SNS Tokens and Neurons + // ------------------------------ + + message InitialTokenDistribution { + message DeveloperDistribution { + message NeuronDistribution { + ic_base_types.pb.v1.PrincipalId controller = 1; + ic_nervous_system.pb.v1.Duration dissolve_delay = 2; + optional uint64 memo = 3; + ic_nervous_system.pb.v1.Tokens stake = 4; + ic_nervous_system.pb.v1.Duration vesting_period = 5; + } + + repeated NeuronDistribution developer_neurons = 1; + } + + DeveloperDistribution developer_distribution = 1; + + message TreasuryDistribution { + ic_nervous_system.pb.v1.Tokens total = 1; + } + + TreasuryDistribution treasury_distribution = 2; + + message SwapDistribution { + ic_nervous_system.pb.v1.Tokens total = 1; + } + + SwapDistribution swap_distribution = 3; + } + + InitialTokenDistribution initial_token_distribution = 7; + + // Canister Initialization + // ------------------------ + + message SwapParameters { + optional uint64 minimum_participants = 1; + + optional ic_nervous_system.pb.v1.Tokens minimum_icp = 2; + optional ic_nervous_system.pb.v1.Tokens maximum_icp = 3; + + optional ic_nervous_system.pb.v1.Tokens minimum_direct_participation_icp = 12; + optional ic_nervous_system.pb.v1.Tokens maximum_direct_participation_icp = 13; + + optional ic_nervous_system.pb.v1.Tokens minimum_participant_icp = 4; + optional ic_nervous_system.pb.v1.Tokens maximum_participant_icp = 5; + + message NeuronBasketConstructionParameters { + optional uint64 count = 1; + ic_nervous_system.pb.v1.Duration dissolve_delay_interval = 2; + } + + NeuronBasketConstructionParameters neuron_basket_construction_parameters = 6; + + optional string confirmation_text = 7; + + optional ic_nervous_system.pb.v1.Countries restricted_countries = 8; + + // The swap occurs at a specific time of day, in UTC. + // It will happen the first time start_time occurs that's at least 24h after + // the proposal is adopted. + ic_nervous_system.pb.v1.GlobalTimeOfDay start_time = 9; + ic_nervous_system.pb.v1.Duration duration = 10; + + // The amount that the Neuron's Fund will collectively spend in maturity on + // the swap. + optional ic_nervous_system.pb.v1.Tokens neurons_fund_investment_icp = 11; + + // Whether Neurons' Fund participation is requested. + // Cannot be set to true until Matched Funding is released + optional bool neurons_fund_participation = 14; + } + + SwapParameters swap_parameters = 8; + + message LedgerParameters { + optional ic_nervous_system.pb.v1.Tokens transaction_fee = 1; + optional string token_name = 2; + optional string token_symbol = 3; + ic_nervous_system.pb.v1.Image token_logo = 4; + } + + LedgerParameters ledger_parameters = 9; + + message GovernanceParameters { + // Proposal Parameters + // ------------------- + + ic_nervous_system.pb.v1.Tokens proposal_rejection_fee = 1; + ic_nervous_system.pb.v1.Duration proposal_initial_voting_period = 2; + ic_nervous_system.pb.v1.Duration proposal_wait_for_quiet_deadline_increase = 3; + + // Neuron Parameters + // ----------------- + + ic_nervous_system.pb.v1.Tokens neuron_minimum_stake = 4; + + ic_nervous_system.pb.v1.Duration neuron_minimum_dissolve_delay_to_vote = 5; + ic_nervous_system.pb.v1.Duration neuron_maximum_dissolve_delay = 6; + ic_nervous_system.pb.v1.Percentage neuron_maximum_dissolve_delay_bonus = 7; + + ic_nervous_system.pb.v1.Duration neuron_maximum_age_for_age_bonus = 8; + ic_nervous_system.pb.v1.Percentage neuron_maximum_age_bonus = 9; + + // Voting Reward(s) Parameters + // --------------------------- + + message VotingRewardParameters { + ic_nervous_system.pb.v1.Percentage initial_reward_rate = 1; + ic_nervous_system.pb.v1.Percentage final_reward_rate = 2; + ic_nervous_system.pb.v1.Duration reward_rate_transition_duration = 3; + } + + VotingRewardParameters voting_reward_parameters = 10; + } + + GovernanceParameters governance_parameters = 10; +} + +// This represents the whole NNS governance system. It contains all +// information about the NNS governance system that must be kept +// across upgrades of the NNS governance system. +message Governance { + // Current set of neurons. + map neurons = 1; + // Proposals. + map proposals = 2; + // The transfers that have been made to stake new neurons, but + // haven't been claimed by the user, yet. + repeated NeuronStakeTransfer to_claim_transfers = 3; + // Also known as the 'normal voting period'. The maximum time a + // proposal (of a topic with "normal" voting period) is open for + // voting. If a proposal has not been decided (adopted or rejected) + // within this time since the proposal was made, the proposal is + // rejected. + // + // See also `short_voting_period_seconds`. + uint64 wait_for_quiet_threshold_seconds = 5; + + // The network economics configuration parameters. + NetworkEconomics economics = 8; + // The last reward event. Should never be missing. + RewardEvent latest_reward_event = 9; + + // The possible commands that require interaction with the ledger. + message NeuronInFlightCommand { + // The timestamp at which the command was issued, for debugging + // purposes. + uint64 timestamp = 1; + reserved 6; + reserved "claim_or_refresh"; + reserved 4; + + // A general place holder for sync commands. The neuron lock is + // never left holding a sync command (as it either succeeds to + // acquire the lock and releases it in the same call, or never + // acquires it in the first place), but it still must be acquired + // to prevent interleaving with another async command. Thus there's + // no value in actually storing the command itself, and this placeholder + // can generally be used in all sync cases. + message SyncCommand {} + + oneof command { + ManageNeuron.Disburse disburse = 2; + ManageNeuron.Split split = 3; + ManageNeuron.DisburseToNeuron disburse_to_neuron = 5; + ManageNeuron.MergeMaturity merge_maturity = 7; + ManageNeuron.ClaimOrRefresh claim_or_refresh_neuron = 8; + ManageNeuron.Configure configure = 9; + ManageNeuron.Merge merge = 10; + ic_nns_common.pb.v1.NeuronId spawn = 20; + SyncCommand sync_command = 21; + } + } + + // Set of in-flight neuron ledger commands. + // + // Whenever we issue a ledger transfer (for disburse, split, spawn etc) + // we store it in this map, keyed by the id of the neuron being changed + // and remove the entry when it completes. + // + // An entry being present in this map acts like a "lock" on the neuron + // and thus prevents concurrent changes that might happen due to the + // interleaving of user requests and callback execution. + // + // If there are no ongoing requests, this map should be empty. + // + // If something goes fundamentally wrong (say we trap at some point + // after issuing a transfer call) the neuron(s) involved are left in a + // "locked" state, meaning new operations can't be applied without + // reconciling the state. + // + // Because we know exactly what was going on, we should have the + // information necessary to reconcile the state, using custom code + // added on upgrade, if necessary. + map in_flight_commands = 10; + + // The timestamp, in seconds since the unix epoch, at which `canister_init` was run for + // the governance canister, considered + // the genesis of the IC for reward purposes. + uint64 genesis_timestamp_seconds = 11; + + // The entities that own the nodes running the IC. + repeated NodeProvider node_providers = 12; + + // Default followees + // + // A map of Topic (as i32) to Neuron id that is set as the default + // following for all neurons created post-genesis. + // + // On initialization it's required that the Neurons present in this + // map are present in the initial set of neurons. + // + // Default following can be changed via proposal. + map default_followees = 13; + + // The maximum time a proposal of a topic with *short voting period* + // is open for voting. If a proposal on a topic with short voting + // period has not been decided (adopted or rejected) within this + // time since the proposal was made, the proposal is rejected. + // The short voting period is used for proposals that don't make sense to vote + // on if the proposal is "old". For example, proposals to set the exchange + // rate should not be voted on if they're days old because exchange rates + // fluctuate regularly. Currently, only proposals to set the exchange rate + // use the short voting period, and such proposals are deprecated. + uint64 short_voting_period_seconds = 14; + + // The maximum time a proposal of a topic with *private voting period* + // is open for voting. If a proposal on a topic with short voting + // period has not been decided (adopted or rejected) within this + // time since the proposal was made, the proposal is rejected. + // This is useful for proposals that are for "private matters" like + // NeuronManagement proposals. These proposals are not meant to be voted on + // by the general public and have limited impact, so a different voting period + // is appropriate. + optional uint64 neuron_management_voting_period_seconds = 25; + + // Stores metrics that are too costly to compute each time metrics are + // requested. For bucketed metrics, keys are bucket IDs, i.e., number of full + // half-year dissolve delay intervals of neurons counted towards this bucket. + message GovernanceCachedMetrics { + uint64 timestamp_seconds = 1; + uint64 total_supply_icp = 2; + uint64 dissolving_neurons_count = 3; + map dissolving_neurons_e8s_buckets = 4; + map dissolving_neurons_count_buckets = 5; + uint64 not_dissolving_neurons_count = 6; + map not_dissolving_neurons_e8s_buckets = 7; + map not_dissolving_neurons_count_buckets = 8; + uint64 dissolved_neurons_count = 9; + uint64 dissolved_neurons_e8s = 10; + uint64 garbage_collectable_neurons_count = 11; + uint64 neurons_with_invalid_stake_count = 12; + uint64 total_staked_e8s = 13; + uint64 neurons_with_less_than_6_months_dissolve_delay_count = 14; + uint64 neurons_with_less_than_6_months_dissolve_delay_e8s = 15; + uint64 community_fund_total_staked_e8s = 16; + uint64 community_fund_total_maturity_e8s_equivalent = 17; + uint64 neurons_fund_total_active_neurons = 25; + uint64 total_locked_e8s = 18; + uint64 total_maturity_e8s_equivalent = 19; + uint64 total_staked_maturity_e8s_equivalent = 20; + map dissolving_neurons_staked_maturity_e8s_equivalent_buckets = 21; + uint64 dissolving_neurons_staked_maturity_e8s_equivalent_sum = 22; + map not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets = 23; + uint64 not_dissolving_neurons_staked_maturity_e8s_equivalent_sum = 24; + uint64 seed_neuron_count = 26; + uint64 ect_neuron_count = 27; + uint64 total_staked_e8s_seed = 28; + uint64 total_staked_e8s_ect = 29; + uint64 total_staked_maturity_e8s_equivalent_seed = 30; + uint64 total_staked_maturity_e8s_equivalent_ect = 31; + map dissolving_neurons_e8s_buckets_seed = 32; + map dissolving_neurons_e8s_buckets_ect = 33; + map not_dissolving_neurons_e8s_buckets_seed = 34; + map not_dissolving_neurons_e8s_buckets_ect = 35; + } + + GovernanceCachedMetrics metrics = 15; + + MostRecentMonthlyNodeProviderRewards most_recent_monthly_node_provider_rewards = 16; + + // Cached value for the maturity modulation as calculated each day. + optional int32 cached_daily_maturity_modulation_basis_points = 17; + + // The last time that the maturity modulation value was updated. + optional uint64 maturity_modulation_last_updated_at_timestamp_seconds = 18; + + // Whether the heartbeat function is currently spawning neurons, meaning + // that it should finish before being called again. + optional bool spawning_neurons = 19; + + // Records that making an OpenSnsTokenSwap (OSTS) or CreateServiceNervousSystem (CSNS) + // proposal is in progress. We only want one of these to be happening at the same time, + // because otherwise, it is error prone to enforce that open OSTS or CSNS proposals are + // unique. In particular, the result of checking that the proposal currently being made + // would be unique is liable to becoming invalid during an .await. + // + // This is a temporary measure, because OSTS is part of the SNS flow that will + // be replaced by 1-proposal very soon. + message MakingSnsProposal { + ic_nns_common.pb.v1.NeuronId proposer_id = 1; + ic_base_types.pb.v1.PrincipalId caller = 2; + Proposal proposal = 3; + } + + MakingSnsProposal making_sns_proposal = 20; + + // Progress of a migration that (potentially) is performed over the course of more than one heartbeat call. + message Migration { + enum MigrationStatus { + // Unspecified. + MIGRATION_STATUS_UNSPECIFIED = 0; + // Migration is in progress. + MIGRATION_STATUS_IN_PROGRESS = 1; + // Migration succeeded. + MIGRATION_STATUS_SUCCEEDED = 2; + // Migration failed. + MIGRATION_STATUS_FAILED = 3; + } + + // Migration status. + optional MigrationStatus status = 1; + + // The reason why it failed. Should only be present when the status is FAILED. + // This is only for debugging and it should not be used programmatically (other than its presence). + optional string failure_reason = 2; + + // Migration progress (cursor). + oneof progress { + // Last neuron id migrated. + ic_nns_common.pb.v1.NeuronId last_neuron_id = 3; + } + } + + // The status of all on-going (and recently completed) migrations (that take + // place over the course of multiple heartbeat calls). + // + // Each Migration field corresponds to one (ongoing or recently completed) migration. + // + // After a migration is finished, it should be OK to reserve the tag and lose the data. + message Migrations { + // Migrates neuron indexes to stable storage. + Migration neuron_indexes_migration = 1; + Migration copy_inactive_neurons_to_stable_memory_migration = 2; + + // TODO(NNS1-2533): Migration delete_inactive_neurons_from_heap = 3; + } + + // Migration related data. + Migrations migrations = 21; + + // A map of followees to their followers. + message FollowersMap { + message Followers { + // The followers of the neuron with the given ID. + // These values will be non-repeating, and order does not matter. + repeated ic_nns_common.pb.v1.NeuronId followers = 1; + } + // The key is the neuron ID of the followee. + map followers_map = 1; + } + + // A Structure used during upgrade to store the index of topics for neurons to their followers. + // This is the inverse of what is stored in a Neuron (its followees). + map topic_followee_index = 22; + + reserved 6; + reserved "authz"; + + // Reserved id for deprecated `seed_accounts` + reserved 23; + reserved "seed_accounts"; + + // Reserved id for deprecated `genesis_neuron_accounts` + reserved 24; + reserved "genesis_neuron_accounts"; + + // Local cache for XDR-related conversion rates (the source of truth is in the CMC canister). + optional XdrConversionRate xdr_conversion_rate = 26; + + // The summary of restore aging event. + optional RestoreAgingSummary restore_aging_summary = 27; +} + +message XdrConversionRate { + /// Time at which this rate has been fetched. + optional uint64 timestamp_seconds = 1; + + /// One ICP is worth this number of 1/10,000ths parts of an XDR. + optional uint64 xdr_permyriad_per_icp = 2; +} + +// Proposals with restricted voting are not included unless the caller +// is allowed to vote on them. +// +// The actual ballots of the proposal are restricted to ballots cast +// by the caller. +message ListProposalInfo { + // Limit on the number of [ProposalInfo] to return. If no value is + // specified, or if a value greater than 100 is specified, 100 + // will be used. + uint32 limit = 1; + // If specified, only return proposals that are strictly earlier than + // the specified proposal according to the proposal ID. If not + // specified, start with the most recent proposal. + ic_nns_common.pb.v1.ProposalId before_proposal = 2; + // Exclude proposals with a topic in this list. This is particularly + // useful to exclude proposals on the topics TOPIC_EXCHANGE_RATE and + // TOPIC_KYC which most users are not likely to be interested in + // seeing. + repeated Topic exclude_topic = 3; + // Include proposals that have a reward status in this list (see + // [ProposalRewardStatus] for more information). If this list is + // empty, no restriction is applied. For example, many users listing + // proposals will only be interested in proposals for which they can + // receive voting rewards, i.e., with reward status + // PROPOSAL_REWARD_STATUS_ACCEPT_VOTES. + repeated ProposalRewardStatus include_reward_status = 4; + // Include proposals that have a status in this list (see + // [ProposalStatus] for more information). If this list is empty, no + // restriction is applied. + repeated ProposalStatus include_status = 5; + // Include all ManageNeuron proposals regardless of the visibility of the + // proposal to the caller principal. Note that exclude_topic is still + // respected even when this option is set to true. + optional bool include_all_manage_neuron_proposals = 6; + // Omits "large fields" from the response. Currently only omits the + // `logo` and `token_logo` field of CreateServiceNervousSystem proposals. This + // is useful to improve download times and to ensure that the response to the + // request doesn't exceed the message size limit. + optional bool omit_large_fields = 7; +} + +message ListProposalInfoResponse { + repeated ProposalInfo proposal_info = 1; +} + +// A request to list neurons. The "requested list", i.e., the list of +// neuron IDs to retrieve information about, is the union of the list +// of neurons listed in `neuron_ids` and, if `caller_neurons` is true, +// the list of neuron IDs of neurons for which the caller is the +// controller or one of the hot keys. +message ListNeurons { + option (ic_base_types.pb.v1.tui_signed_message) = true; + // The neurons to get information about. The "requested list" + // contains all of these neuron IDs. + repeated fixed64 neuron_ids = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; + // If true, the "requested list" also contains the neuron ID of the + // neurons that the calling principal is authorized to read. + bool include_neurons_readable_by_caller = 2 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; +} + +// A response to a `ListNeurons` request. +// +// The "requested list" is described in `ListNeurons`. +message ListNeuronsResponse { + // For each neuron ID in the "requested list", if this neuron exists, + // its `NeuronInfo` at the time of the call will be in this map. + map neuron_infos = 1; + // For each neuron ID in the "requested list", if the neuron exists, + // and the caller is authorized to read the full neuron (controller, + // hot key, or controller or hot key of some followee on the + // `ManageNeuron` topic). + repeated Neuron full_neurons = 2; +} + +// A response to "ListKnownNeurons" +message ListKnownNeuronsResponse { + // List of known neurons. + repeated KnownNeuron known_neurons = 1; +} + +// Response to list_node_providers +message ListNodeProvidersResponse { + // List of all "NodeProviders" + repeated NodeProvider node_providers = 1; +} + +// The arguments to the method `claim_or_refresh_neuron_from_account`. +// +// DEPRECATED: Use ManageNeuron::ClaimOrRefresh. +message ClaimOrRefreshNeuronFromAccount { + // The principal for which to refresh the account. If not specified, + // defaults to the caller. + ic_base_types.pb.v1.PrincipalId controller = 1; + // The memo of the staking transaction. + uint64 memo = 2; +} + +// Response to claim_or_refresh_neuron_from_account. +// +// DEPRECATED: Use ManageNeuron::ClaimOrRefresh. +message ClaimOrRefreshNeuronFromAccountResponse { + oneof result { + // Specified in case of error. + GovernanceError error = 1; + // The ID of the neuron that was created or empty in the case of error. + ic_nns_common.pb.v1.NeuronId neuron_id = 2; + } +} + +// The most recent monthly Node Provider rewards +message MostRecentMonthlyNodeProviderRewards { + uint64 timestamp = 1; + repeated RewardNodeProvider rewards = 2; +} + +// TODO(NNS1-1589): Until the Jira ticket gets solved, changes here need to be +// manually propagated to (sns) swap.proto. +// This message is obsolete; please use SettleNeuronsFundParticipation instead. +message SettleCommunityFundParticipation { + // The caller's principal ID must match the value in the + // target_swap_canister_id field in the proposal (more precisely, in the + // OpenSnsTokenSwap). + optional uint64 open_sns_token_swap_proposal_id = 1; + + // Each of the possibilities here corresponds to one of two ways that a swap + // can terminate. See also sns_swap_pb::Lifecycle::is_terminal. + oneof result { + Committed committed = 2; + Aborted aborted = 3; + } + + // When this happens, ICP needs to be minted, and sent to the SNS governance + // canister's main account on the ICP Ledger. As with Aborted, the amount of + // ICP that needs to be minted can be deduced from the ProposalData's + // cf_participants field. + message Committed { + // This is where the minted ICP will be sent. In principal, this could be + // fetched using the swap canister's get_state method. + ic_base_types.pb.v1.PrincipalId sns_governance_canister_id = 1; + // Total contribution amount from direct swap participants. + optional uint64 total_direct_contribution_icp_e8s = 2; + // Total contribution amount from the Neuron's Fund. + // TODO[NNS1-2570]: Ensure this field is set. + optional uint64 total_neurons_fund_contribution_icp_e8s = 3; + } + + // When this happens, maturity needs to be restored to CF neurons. The amounts + // to be refunded can be found in the ProposalData's cf_participants field. + message Aborted {} +} + +// Request to settle the Neurons' Fund participation in this SNS Swap. +// +// When a swap ends, the Swap canister notifies the Neurons' Fund of the swap's ultimate result, +// which can be either `Committed` or `Aborted`. Note that currently, the Neurons' Fund is managed +// by the NNS Governance canister. +// * If the result is `Committed`: +// - Neurons' Fund computes the "effective" participation amount for each of its neurons (as per +// the Matched Funding rules). This computation is based on the total direct participation +// amount, which is thus a field of `Committed`. +// - Neurons' Fund converts the "effective" amount of maturity into ICP by: +// - Requesting the ICP Ledger to mint an appropriate amount of ICP tokens and sending them +// to the SNS treasury. +// - Refunding whatever maturity is left over (the maximum possible maturity is reserved by +// the Neurons' Fund before the swap begins). +// - Neurons' Fund returns the Neurons' Fund participants back to the Swap canister +// (see SettleNeuronsFundParticipationResponse). +// - The Swap canister then creates SNS neurons for the Neurons' Fund participants. +// * If the result is Aborted, the Neurons' Fund is refunded for all maturity reserved for this SNS. +// +// This design assumes trust between the Neurons' Fund and the SNS Swap canisters. In the one hand, +// the Swap trusts that the Neurons' Fund sends the correct amount of ICP to the SNS treasury, +// and that the Neurons' Fund allocates its participants following the Matched Funding rules. On the +// other hand, the Neurons' Fund trusts that the Swap will indeed create appropriate SNS neurons +// for the Neurons' Fund participants. +// +// The justification for this trust assumption is as follows. The Neurons' Fund can be trusted as +// it is controlled by the NNS. The SNS Swap can be trusted as it is (1) deployed by SNS-W, which is +// also part of the NNS and (2) upgraded via an NNS proposal (unlike all other SNS canisters). +// +// This request may be submitted only by the Swap canister of an SNS instance created by +// a CreateServiceNervousSystem proposal. +// +// TODO(NNS1-1589): Until the Jira ticket gets solved, changes here need to be +// manually propagated to (sns) swap.proto. +message SettleNeuronsFundParticipationRequest { + // Proposal ID of the CreateServiceNervousSystem proposal that created this SNS instance. + optional uint64 nns_proposal_id = 1; + + // Each of the possibilities here corresponds to one of two ways that a swap can terminate. + // See also sns_swap_pb::Lifecycle::is_terminal. + oneof result { + Committed committed = 2; + Aborted aborted = 3; + } + + // When this happens, the NNS Governance needs to do several things: + // (1) Compute the effective amount of ICP per neuron of the Neurons' Fund as a function of + // `total_direct_participation_icp_e8s`. The overall Neurons' Fund participation should + // equal `total_neurons_fund_contribution_icp_e8s`. + // (2) Mint (via the ICP Ledger) and sent to the SNS governance the amount of + // `total_neurons_fund_contribution_icp_e8s`. + // (3) Respond to this request with `SettleNeuronsFundParticipationResponse`, providing + // the set of `NeuronsFundParticipant`s with the effective amount of ICP per neuron, + // as computed in step (1). + // (4) Refund each neuron of the Neurons' Fund with (reserved - effective) amount of ICP. + // Effective amounts depend on `total_direct_participation_icp_e8s` and the participation limits + // of a particular SNS instance, namely, each participation must be between + // `min_participant_icp_e8s` and `max_participant_icp_e8s`. + // - If a neuron of the Neurons' Fund has less than `min_participant_icp_e8s` worth of maturity, + // then it is ineligible to participate. + // - If a neuron of the Neurons' Fund has more than `max_participant_icp_e8s` worth of maturity, + // then its participation amount is limited to `max_participant_icp_e8s`. + // Reserved amounts are computed as the minimal upper bound on the effective amounts, i.e., when + // the value `total_direct_participation_icp_e8s` reaches its theoretical maximum. + message Committed { + // This is where the minted ICP will be sent. + ic_base_types.pb.v1.PrincipalId sns_governance_canister_id = 1; + // Total amount of participation from direct swap participants. + optional uint64 total_direct_participation_icp_e8s = 2; + // Total amount of participation from the Neurons' Fund. + // TODO[NNS1-2570]: Ensure this field is set. + optional uint64 total_neurons_fund_participation_icp_e8s = 3; + } + + // When this happens, all priorly reserved maturity for this SNS instance needs to be restored to + // the Neurons' Fund neurons. + message Aborted {} +} + +// Handling the Neurons' Fund and transferring some of its maturity to an SNS treasury is +// thus the responsibility of the NNS Governance. When a swap succeeds, a Swap canister should send +// a `settle_neurons_fund_participation` request to the NNS Governance, specifying its `result` +// field as `committed`. The NNS Governance then computes the ultimate distribution of maturity in +// the Neurons' Fund. However, this distribution also needs to be made available to the SNS Swap +// that will use this information to create SNS neurons of an appropriate size for each +// Neurons' Fund (as well as direct) participant. That is why in the `committed` case, +// the NNS Governance should populate the `neurons_fund_participants` field, while in the `aborted` +// case it should be empty. +// +// TODO(NNS1-1589): Until the Jira ticket gets solved, changes here need to be +// manually propagated to (sns) swap.proto. +message SettleNeuronsFundParticipationResponse { + // Represents one NNS neuron from the Neurons' Fund participating in this swap. + message NeuronsFundNeuron { + // The NNS neuron ID of the participating neuron. + optional uint64 nns_neuron_id = 1; + // The amount of Neurons' Fund participation associated with this neuron. + optional uint64 amount_icp_e8s = 2; + // The principal that can vote on behalf of this neuron. + optional string hotkey_principal = 3; + // Whether the amount maturity amount of Neurons' Fund participation associated with this neuron + // has been capped to reflect the maximum participation amount for this SNS swap. + optional bool is_capped = 4; + } + + // Request was completed successfully. + message Ok { + repeated NeuronsFundNeuron neurons_fund_neuron_portions = 1; + } + + oneof result { + GovernanceError err = 1; + Ok ok = 2; + } +} + +// Audit events in order to leave an audit trail for certain operations. +message AuditEvent { + // The timestamp of the event. + uint64 timestamp_seconds = 1; + + oneof payload { + // Reset aging timestamps for https://forum.dfinity.org/t/icp-neuron-age-is-52-years/21261/26 + ResetAging reset_aging = 2; + // Restore aging timestamp that were incorrectly reset. + RestoreAging restore_aging = 3; + } + + message ResetAging { + // The neuron id whose aging was reset. + fixed64 neuron_id = 1; + + // The aging_since_timestamp_seconds before reset. + uint64 previous_aging_since_timestamp_seconds = 2; + + // The aging_since_timestamp_seconds after reset. + uint64 new_aging_since_timestamp_seconds = 3; + + // Neuron's dissolve state at the time of reset. + oneof neuron_dissolve_state { + uint64 when_dissolved_timestamp_seconds = 4; + uint64 dissolve_delay_seconds = 5; + } + + // Neuron's stake at the time of reset. + uint64 neuron_stake_e8s = 6; + } + + message RestoreAging { + // The neuron id whose aging was restored. + optional uint64 neuron_id = 1; + + // The aging_since_timestamp_seconds before restore. + optional uint64 previous_aging_since_timestamp_seconds = 2; + + // The aging_since_timestamp_seconds after restore. + optional uint64 new_aging_since_timestamp_seconds = 3; + + // Neuron's dissolve state at the time of restore. + oneof neuron_dissolve_state { + uint64 when_dissolved_timestamp_seconds = 4; + uint64 dissolve_delay_seconds = 5; + } + + // Neuron's stake at the time of restore. + optional uint64 neuron_stake_e8s = 6; + } +} + +// The summary of the restore aging event. +message RestoreAgingSummary { + // The timestamp of the restore aging event. + optional uint64 timestamp_seconds = 1; + // Groups of neurons that were considered for restoring their aging. + repeated RestoreAgingNeuronGroup groups = 2; + + enum NeuronGroupType { + NEURON_GROUP_TYPE_UNSPECIFIED = 0; + // The neurons in this group were not pre-aging. We don't restore their aging. + NEURON_GROUP_TYPE_NOT_PRE_AGING = 1; + // The neurons in this group are dissolving or dissolved. We don't restore their aging because + // it's invalid for a dissolving/dissolved neuron to have age. + NEURON_GROUP_TYPE_DISSOLVING_OR_DISSOLVED = 2; + // The neurons in this group have their stake changed. We restore them to be pre-aged. + NEURON_GROUP_TYPE_STAKE_CHANGED = 3; + // The neurons in this group have their stake remain the same and aging changed. We restore them + // to be pre-aged. + NEURON_GROUP_TYPE_STAKE_SAME_AGING_CHANGED = 4; + // The neurons in this group have their stake remain the same and aging remain the same. We + // restore them to be pre-aged. + NEURON_GROUP_TYPE_STAKE_SAME_AGING_SAME = 5; + } + + message RestoreAgingNeuronGroup { + NeuronGroupType group_type = 1; + // The number of neurons in this group. + optional uint64 count = 2; + // The previous total stake of neurons in this group when the aging was reset. + optional uint64 previous_total_stake_e8s = 3; + // The current total stake of neurons in this group when considering to restore aging. + optional uint64 current_total_stake_e8s = 4; + } } diff --git a/packages/nns-proto/proto/governance_pb.d.ts b/packages/nns-proto/proto/governance_pb.d.ts index 0d6190f34..35e9a6ff1 100644 --- a/packages/nns-proto/proto/governance_pb.d.ts +++ b/packages/nns-proto/proto/governance_pb.d.ts @@ -4,1044 +4,4907 @@ import * as jspb from "google-protobuf"; import * as base_types_pb from "./base_types_pb"; import * as ledger_pb from "./ledger_pb"; +import * as nervous_system_pb from "./nervous_system_pb"; +import * as nns_common_pb from "./nns_common_pb"; +import * as swap_pb from "./swap_pb"; + +export class NodeProvider extends jspb.Message { + hasId(): boolean; + clearId(): void; + getId(): base_types_pb.PrincipalId | undefined; + setId(value?: base_types_pb.PrincipalId): void; + + hasRewardAccount(): boolean; + clearRewardAccount(): void; + getRewardAccount(): ledger_pb.AccountIdentifier | undefined; + setRewardAccount(value?: ledger_pb.AccountIdentifier): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NodeProvider.AsObject; + static toObject(includeInstance: boolean, msg: NodeProvider): NodeProvider.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NodeProvider, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NodeProvider; + static deserializeBinaryFromReader(message: NodeProvider, reader: jspb.BinaryReader): NodeProvider; +} + +export namespace NodeProvider { + export type AsObject = { + id?: base_types_pb.PrincipalId.AsObject, + rewardAccount?: ledger_pb.AccountIdentifier.AsObject, + } +} + +export class UpdateNodeProvider extends jspb.Message { + hasRewardAccount(): boolean; + clearRewardAccount(): void; + getRewardAccount(): ledger_pb.AccountIdentifier | undefined; + setRewardAccount(value?: ledger_pb.AccountIdentifier): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateNodeProvider.AsObject; + static toObject(includeInstance: boolean, msg: UpdateNodeProvider): UpdateNodeProvider.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateNodeProvider, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateNodeProvider; + static deserializeBinaryFromReader(message: UpdateNodeProvider, reader: jspb.BinaryReader): UpdateNodeProvider; +} + +export namespace UpdateNodeProvider { + export type AsObject = { + rewardAccount?: ledger_pb.AccountIdentifier.AsObject, + } +} + +export class BallotInfo extends jspb.Message { + hasProposalId(): boolean; + clearProposalId(): void; + getProposalId(): nns_common_pb.ProposalId | undefined; + setProposalId(value?: nns_common_pb.ProposalId): void; + + getVote(): VoteMap[keyof VoteMap]; + setVote(value: VoteMap[keyof VoteMap]): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BallotInfo.AsObject; + static toObject(includeInstance: boolean, msg: BallotInfo): BallotInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: BallotInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BallotInfo; + static deserializeBinaryFromReader(message: BallotInfo, reader: jspb.BinaryReader): BallotInfo; +} + +export namespace BallotInfo { + export type AsObject = { + proposalId?: nns_common_pb.ProposalId.AsObject, + vote: VoteMap[keyof VoteMap], + } +} + +export class NeuronInfo extends jspb.Message { + getRetrievedAtTimestampSeconds(): number; + setRetrievedAtTimestampSeconds(value: number): void; + + getState(): NeuronStateMap[keyof NeuronStateMap]; + setState(value: NeuronStateMap[keyof NeuronStateMap]): void; + + getAgeSeconds(): number; + setAgeSeconds(value: number): void; + + getDissolveDelaySeconds(): number; + setDissolveDelaySeconds(value: number): void; + + clearRecentBallotsList(): void; + getRecentBallotsList(): Array; + setRecentBallotsList(value: Array): void; + addRecentBallots(value?: BallotInfo, index?: number): BallotInfo; + + getVotingPower(): number; + setVotingPower(value: number): void; + + getCreatedTimestampSeconds(): number; + setCreatedTimestampSeconds(value: number): void; + + getStakeE8s(): number; + setStakeE8s(value: number): void; + + hasJoinedCommunityFundTimestampSeconds(): boolean; + clearJoinedCommunityFundTimestampSeconds(): void; + getJoinedCommunityFundTimestampSeconds(): number; + setJoinedCommunityFundTimestampSeconds(value: number): void; + + hasKnownNeuronData(): boolean; + clearKnownNeuronData(): void; + getKnownNeuronData(): KnownNeuronData | undefined; + setKnownNeuronData(value?: KnownNeuronData): void; + + hasNeuronType(): boolean; + clearNeuronType(): void; + getNeuronType(): NeuronTypeMap[keyof NeuronTypeMap]; + setNeuronType(value: NeuronTypeMap[keyof NeuronTypeMap]): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NeuronInfo.AsObject; + static toObject(includeInstance: boolean, msg: NeuronInfo): NeuronInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NeuronInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NeuronInfo; + static deserializeBinaryFromReader(message: NeuronInfo, reader: jspb.BinaryReader): NeuronInfo; +} + +export namespace NeuronInfo { + export type AsObject = { + retrievedAtTimestampSeconds: number, + state: NeuronStateMap[keyof NeuronStateMap], + ageSeconds: number, + dissolveDelaySeconds: number, + recentBallotsList: Array, + votingPower: number, + createdTimestampSeconds: number, + stakeE8s: number, + joinedCommunityFundTimestampSeconds: number, + knownNeuronData?: KnownNeuronData.AsObject, + neuronType: NeuronTypeMap[keyof NeuronTypeMap], + } +} + +export class NeuronStakeTransfer extends jspb.Message { + getTransferTimestamp(): number; + setTransferTimestamp(value: number): void; + + hasFrom(): boolean; + clearFrom(): void; + getFrom(): base_types_pb.PrincipalId | undefined; + setFrom(value?: base_types_pb.PrincipalId): void; + + getFromSubaccount(): Uint8Array | string; + getFromSubaccount_asU8(): Uint8Array; + getFromSubaccount_asB64(): string; + setFromSubaccount(value: Uint8Array | string): void; + + getToSubaccount(): Uint8Array | string; + getToSubaccount_asU8(): Uint8Array; + getToSubaccount_asB64(): string; + setToSubaccount(value: Uint8Array | string): void; + + getNeuronStakeE8s(): number; + setNeuronStakeE8s(value: number): void; + + getBlockHeight(): number; + setBlockHeight(value: number): void; + + getMemo(): number; + setMemo(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NeuronStakeTransfer.AsObject; + static toObject(includeInstance: boolean, msg: NeuronStakeTransfer): NeuronStakeTransfer.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NeuronStakeTransfer, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NeuronStakeTransfer; + static deserializeBinaryFromReader(message: NeuronStakeTransfer, reader: jspb.BinaryReader): NeuronStakeTransfer; +} + +export namespace NeuronStakeTransfer { + export type AsObject = { + transferTimestamp: number, + from?: base_types_pb.PrincipalId.AsObject, + fromSubaccount: Uint8Array | string, + toSubaccount: Uint8Array | string, + neuronStakeE8s: number, + blockHeight: number, + memo: number, + } +} + +export class Neuron extends jspb.Message { + hasId(): boolean; + clearId(): void; + getId(): nns_common_pb.NeuronId | undefined; + setId(value?: nns_common_pb.NeuronId): void; + + getAccount(): Uint8Array | string; + getAccount_asU8(): Uint8Array; + getAccount_asB64(): string; + setAccount(value: Uint8Array | string): void; + + hasController(): boolean; + clearController(): void; + getController(): base_types_pb.PrincipalId | undefined; + setController(value?: base_types_pb.PrincipalId): void; + + clearHotKeysList(): void; + getHotKeysList(): Array; + setHotKeysList(value: Array): void; + addHotKeys(value?: base_types_pb.PrincipalId, index?: number): base_types_pb.PrincipalId; + + getCachedNeuronStakeE8s(): number; + setCachedNeuronStakeE8s(value: number): void; + + getNeuronFeesE8s(): number; + setNeuronFeesE8s(value: number): void; + + getCreatedTimestampSeconds(): number; + setCreatedTimestampSeconds(value: number): void; + + getAgingSinceTimestampSeconds(): number; + setAgingSinceTimestampSeconds(value: number): void; + + hasSpawnAtTimestampSeconds(): boolean; + clearSpawnAtTimestampSeconds(): void; + getSpawnAtTimestampSeconds(): number; + setSpawnAtTimestampSeconds(value: number): void; + + hasWhenDissolvedTimestampSeconds(): boolean; + clearWhenDissolvedTimestampSeconds(): void; + getWhenDissolvedTimestampSeconds(): number; + setWhenDissolvedTimestampSeconds(value: number): void; + + hasDissolveDelaySeconds(): boolean; + clearDissolveDelaySeconds(): void; + getDissolveDelaySeconds(): number; + setDissolveDelaySeconds(value: number): void; + + getFolloweesMap(): jspb.Map; + clearFolloweesMap(): void; + clearRecentBallotsList(): void; + getRecentBallotsList(): Array; + setRecentBallotsList(value: Array): void; + addRecentBallots(value?: BallotInfo, index?: number): BallotInfo; + + getKycVerified(): boolean; + setKycVerified(value: boolean): void; + + hasTransfer(): boolean; + clearTransfer(): void; + getTransfer(): NeuronStakeTransfer | undefined; + setTransfer(value?: NeuronStakeTransfer): void; + + getMaturityE8sEquivalent(): number; + setMaturityE8sEquivalent(value: number): void; + + hasStakedMaturityE8sEquivalent(): boolean; + clearStakedMaturityE8sEquivalent(): void; + getStakedMaturityE8sEquivalent(): number; + setStakedMaturityE8sEquivalent(value: number): void; + + hasAutoStakeMaturity(): boolean; + clearAutoStakeMaturity(): void; + getAutoStakeMaturity(): boolean; + setAutoStakeMaturity(value: boolean): void; + + getNotForProfit(): boolean; + setNotForProfit(value: boolean): void; + + hasJoinedCommunityFundTimestampSeconds(): boolean; + clearJoinedCommunityFundTimestampSeconds(): void; + getJoinedCommunityFundTimestampSeconds(): number; + setJoinedCommunityFundTimestampSeconds(value: number): void; + + hasKnownNeuronData(): boolean; + clearKnownNeuronData(): void; + getKnownNeuronData(): KnownNeuronData | undefined; + setKnownNeuronData(value?: KnownNeuronData): void; + + hasNeuronType(): boolean; + clearNeuronType(): void; + getNeuronType(): NeuronTypeMap[keyof NeuronTypeMap]; + setNeuronType(value: NeuronTypeMap[keyof NeuronTypeMap]): void; + + getDissolveStateCase(): Neuron.DissolveStateCase; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Neuron.AsObject; + static toObject(includeInstance: boolean, msg: Neuron): Neuron.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Neuron, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Neuron; + static deserializeBinaryFromReader(message: Neuron, reader: jspb.BinaryReader): Neuron; +} + +export namespace Neuron { + export type AsObject = { + id?: nns_common_pb.NeuronId.AsObject, + account: Uint8Array | string, + controller?: base_types_pb.PrincipalId.AsObject, + hotKeysList: Array, + cachedNeuronStakeE8s: number, + neuronFeesE8s: number, + createdTimestampSeconds: number, + agingSinceTimestampSeconds: number, + spawnAtTimestampSeconds: number, + whenDissolvedTimestampSeconds: number, + dissolveDelaySeconds: number, + followeesMap: Array<[number, Neuron.Followees.AsObject]>, + recentBallotsList: Array, + kycVerified: boolean, + transfer?: NeuronStakeTransfer.AsObject, + maturityE8sEquivalent: number, + stakedMaturityE8sEquivalent: number, + autoStakeMaturity: boolean, + notForProfit: boolean, + joinedCommunityFundTimestampSeconds: number, + knownNeuronData?: KnownNeuronData.AsObject, + neuronType: NeuronTypeMap[keyof NeuronTypeMap], + } + + export class Followees extends jspb.Message { + clearFolloweesList(): void; + getFolloweesList(): Array; + setFolloweesList(value: Array): void; + addFollowees(value?: nns_common_pb.NeuronId, index?: number): nns_common_pb.NeuronId; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Followees.AsObject; + static toObject(includeInstance: boolean, msg: Followees): Followees.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Followees, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Followees; + static deserializeBinaryFromReader(message: Followees, reader: jspb.BinaryReader): Followees; + } + + export namespace Followees { + export type AsObject = { + followeesList: Array, + } + } + + export enum DissolveStateCase { + DISSOLVE_STATE_NOT_SET = 0, + WHEN_DISSOLVED_TIMESTAMP_SECONDS = 9, + DISSOLVE_DELAY_SECONDS = 10, + } +} + +export class AbridgedNeuron extends jspb.Message { + getAccount(): Uint8Array | string; + getAccount_asU8(): Uint8Array; + getAccount_asB64(): string; + setAccount(value: Uint8Array | string): void; + + hasController(): boolean; + clearController(): void; + getController(): base_types_pb.PrincipalId | undefined; + setController(value?: base_types_pb.PrincipalId): void; + + getCachedNeuronStakeE8s(): number; + setCachedNeuronStakeE8s(value: number): void; + + getNeuronFeesE8s(): number; + setNeuronFeesE8s(value: number): void; + + getCreatedTimestampSeconds(): number; + setCreatedTimestampSeconds(value: number): void; + + getAgingSinceTimestampSeconds(): number; + setAgingSinceTimestampSeconds(value: number): void; + + hasSpawnAtTimestampSeconds(): boolean; + clearSpawnAtTimestampSeconds(): void; + getSpawnAtTimestampSeconds(): number; + setSpawnAtTimestampSeconds(value: number): void; + + hasWhenDissolvedTimestampSeconds(): boolean; + clearWhenDissolvedTimestampSeconds(): void; + getWhenDissolvedTimestampSeconds(): number; + setWhenDissolvedTimestampSeconds(value: number): void; + + hasDissolveDelaySeconds(): boolean; + clearDissolveDelaySeconds(): void; + getDissolveDelaySeconds(): number; + setDissolveDelaySeconds(value: number): void; + + getKycVerified(): boolean; + setKycVerified(value: boolean): void; + + getMaturityE8sEquivalent(): number; + setMaturityE8sEquivalent(value: number): void; + + hasStakedMaturityE8sEquivalent(): boolean; + clearStakedMaturityE8sEquivalent(): void; + getStakedMaturityE8sEquivalent(): number; + setStakedMaturityE8sEquivalent(value: number): void; + + hasAutoStakeMaturity(): boolean; + clearAutoStakeMaturity(): void; + getAutoStakeMaturity(): boolean; + setAutoStakeMaturity(value: boolean): void; + + getNotForProfit(): boolean; + setNotForProfit(value: boolean): void; + + hasJoinedCommunityFundTimestampSeconds(): boolean; + clearJoinedCommunityFundTimestampSeconds(): void; + getJoinedCommunityFundTimestampSeconds(): number; + setJoinedCommunityFundTimestampSeconds(value: number): void; + + hasNeuronType(): boolean; + clearNeuronType(): void; + getNeuronType(): NeuronTypeMap[keyof NeuronTypeMap]; + setNeuronType(value: NeuronTypeMap[keyof NeuronTypeMap]): void; + + getDissolveStateCase(): AbridgedNeuron.DissolveStateCase; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AbridgedNeuron.AsObject; + static toObject(includeInstance: boolean, msg: AbridgedNeuron): AbridgedNeuron.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AbridgedNeuron, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AbridgedNeuron; + static deserializeBinaryFromReader(message: AbridgedNeuron, reader: jspb.BinaryReader): AbridgedNeuron; +} + +export namespace AbridgedNeuron { + export type AsObject = { + account: Uint8Array | string, + controller?: base_types_pb.PrincipalId.AsObject, + cachedNeuronStakeE8s: number, + neuronFeesE8s: number, + createdTimestampSeconds: number, + agingSinceTimestampSeconds: number, + spawnAtTimestampSeconds: number, + whenDissolvedTimestampSeconds: number, + dissolveDelaySeconds: number, + kycVerified: boolean, + maturityE8sEquivalent: number, + stakedMaturityE8sEquivalent: number, + autoStakeMaturity: boolean, + notForProfit: boolean, + joinedCommunityFundTimestampSeconds: number, + neuronType: NeuronTypeMap[keyof NeuronTypeMap], + } + + export enum DissolveStateCase { + DISSOLVE_STATE_NOT_SET = 0, + WHEN_DISSOLVED_TIMESTAMP_SECONDS = 9, + DISSOLVE_DELAY_SECONDS = 10, + } +} + +export class ExecuteNnsFunction extends jspb.Message { + getNnsFunction(): NnsFunctionMap[keyof NnsFunctionMap]; + setNnsFunction(value: NnsFunctionMap[keyof NnsFunctionMap]): void; + + getPayload(): Uint8Array | string; + getPayload_asU8(): Uint8Array; + getPayload_asB64(): string; + setPayload(value: Uint8Array | string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ExecuteNnsFunction.AsObject; + static toObject(includeInstance: boolean, msg: ExecuteNnsFunction): ExecuteNnsFunction.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ExecuteNnsFunction, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ExecuteNnsFunction; + static deserializeBinaryFromReader(message: ExecuteNnsFunction, reader: jspb.BinaryReader): ExecuteNnsFunction; +} + +export namespace ExecuteNnsFunction { + export type AsObject = { + nnsFunction: NnsFunctionMap[keyof NnsFunctionMap], + payload: Uint8Array | string, + } +} + +export class Motion extends jspb.Message { + getMotionText(): string; + setMotionText(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Motion.AsObject; + static toObject(includeInstance: boolean, msg: Motion): Motion.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Motion, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Motion; + static deserializeBinaryFromReader(message: Motion, reader: jspb.BinaryReader): Motion; +} + +export namespace Motion { + export type AsObject = { + motionText: string, + } +} + +export class ApproveGenesisKYC extends jspb.Message { + clearPrincipalsList(): void; + getPrincipalsList(): Array; + setPrincipalsList(value: Array): void; + addPrincipals(value?: base_types_pb.PrincipalId, index?: number): base_types_pb.PrincipalId; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ApproveGenesisKYC.AsObject; + static toObject(includeInstance: boolean, msg: ApproveGenesisKYC): ApproveGenesisKYC.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ApproveGenesisKYC, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ApproveGenesisKYC; + static deserializeBinaryFromReader(message: ApproveGenesisKYC, reader: jspb.BinaryReader): ApproveGenesisKYC; +} + +export namespace ApproveGenesisKYC { + export type AsObject = { + principalsList: Array, + } +} + +export class AddOrRemoveNodeProvider extends jspb.Message { + hasToAdd(): boolean; + clearToAdd(): void; + getToAdd(): NodeProvider | undefined; + setToAdd(value?: NodeProvider): void; + + hasToRemove(): boolean; + clearToRemove(): void; + getToRemove(): NodeProvider | undefined; + setToRemove(value?: NodeProvider): void; + + getChangeCase(): AddOrRemoveNodeProvider.ChangeCase; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AddOrRemoveNodeProvider.AsObject; + static toObject(includeInstance: boolean, msg: AddOrRemoveNodeProvider): AddOrRemoveNodeProvider.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AddOrRemoveNodeProvider, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AddOrRemoveNodeProvider; + static deserializeBinaryFromReader(message: AddOrRemoveNodeProvider, reader: jspb.BinaryReader): AddOrRemoveNodeProvider; +} + +export namespace AddOrRemoveNodeProvider { + export type AsObject = { + toAdd?: NodeProvider.AsObject, + toRemove?: NodeProvider.AsObject, + } + + export enum ChangeCase { + CHANGE_NOT_SET = 0, + TO_ADD = 1, + TO_REMOVE = 2, + } +} + +export class RewardNodeProvider extends jspb.Message { + hasNodeProvider(): boolean; + clearNodeProvider(): void; + getNodeProvider(): NodeProvider | undefined; + setNodeProvider(value?: NodeProvider): void; + + getAmountE8s(): number; + setAmountE8s(value: number): void; + + hasRewardToNeuron(): boolean; + clearRewardToNeuron(): void; + getRewardToNeuron(): RewardNodeProvider.RewardToNeuron | undefined; + setRewardToNeuron(value?: RewardNodeProvider.RewardToNeuron): void; + + hasRewardToAccount(): boolean; + clearRewardToAccount(): void; + getRewardToAccount(): RewardNodeProvider.RewardToAccount | undefined; + setRewardToAccount(value?: RewardNodeProvider.RewardToAccount): void; + + getRewardModeCase(): RewardNodeProvider.RewardModeCase; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RewardNodeProvider.AsObject; + static toObject(includeInstance: boolean, msg: RewardNodeProvider): RewardNodeProvider.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RewardNodeProvider, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RewardNodeProvider; + static deserializeBinaryFromReader(message: RewardNodeProvider, reader: jspb.BinaryReader): RewardNodeProvider; +} + +export namespace RewardNodeProvider { + export type AsObject = { + nodeProvider?: NodeProvider.AsObject, + amountE8s: number, + rewardToNeuron?: RewardNodeProvider.RewardToNeuron.AsObject, + rewardToAccount?: RewardNodeProvider.RewardToAccount.AsObject, + } + + export class RewardToNeuron extends jspb.Message { + getDissolveDelaySeconds(): number; + setDissolveDelaySeconds(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RewardToNeuron.AsObject; + static toObject(includeInstance: boolean, msg: RewardToNeuron): RewardToNeuron.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RewardToNeuron, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RewardToNeuron; + static deserializeBinaryFromReader(message: RewardToNeuron, reader: jspb.BinaryReader): RewardToNeuron; + } + + export namespace RewardToNeuron { + export type AsObject = { + dissolveDelaySeconds: number, + } + } + + export class RewardToAccount extends jspb.Message { + hasToAccount(): boolean; + clearToAccount(): void; + getToAccount(): ledger_pb.AccountIdentifier | undefined; + setToAccount(value?: ledger_pb.AccountIdentifier): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RewardToAccount.AsObject; + static toObject(includeInstance: boolean, msg: RewardToAccount): RewardToAccount.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RewardToAccount, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RewardToAccount; + static deserializeBinaryFromReader(message: RewardToAccount, reader: jspb.BinaryReader): RewardToAccount; + } + + export namespace RewardToAccount { + export type AsObject = { + toAccount?: ledger_pb.AccountIdentifier.AsObject, + } + } + + export enum RewardModeCase { + REWARD_MODE_NOT_SET = 0, + REWARD_TO_NEURON = 4, + REWARD_TO_ACCOUNT = 5, + } +} + +export class RewardNodeProviders extends jspb.Message { + clearRewardsList(): void; + getRewardsList(): Array; + setRewardsList(value: Array): void; + addRewards(value?: RewardNodeProvider, index?: number): RewardNodeProvider; + + hasUseRegistryDerivedRewards(): boolean; + clearUseRegistryDerivedRewards(): void; + getUseRegistryDerivedRewards(): boolean; + setUseRegistryDerivedRewards(value: boolean): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RewardNodeProviders.AsObject; + static toObject(includeInstance: boolean, msg: RewardNodeProviders): RewardNodeProviders.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RewardNodeProviders, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RewardNodeProviders; + static deserializeBinaryFromReader(message: RewardNodeProviders, reader: jspb.BinaryReader): RewardNodeProviders; +} + +export namespace RewardNodeProviders { + export type AsObject = { + rewardsList: Array, + useRegistryDerivedRewards: boolean, + } +} + +export class SetDefaultFollowees extends jspb.Message { + getDefaultFolloweesMap(): jspb.Map; + clearDefaultFolloweesMap(): void; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SetDefaultFollowees.AsObject; + static toObject(includeInstance: boolean, msg: SetDefaultFollowees): SetDefaultFollowees.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SetDefaultFollowees, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SetDefaultFollowees; + static deserializeBinaryFromReader(message: SetDefaultFollowees, reader: jspb.BinaryReader): SetDefaultFollowees; +} + +export namespace SetDefaultFollowees { + export type AsObject = { + defaultFolloweesMap: Array<[number, Neuron.Followees.AsObject]>, + } +} + +export class SetSnsTokenSwapOpenTimeWindow extends jspb.Message { + hasSwapCanisterId(): boolean; + clearSwapCanisterId(): void; + getSwapCanisterId(): base_types_pb.PrincipalId | undefined; + setSwapCanisterId(value?: base_types_pb.PrincipalId): void; + + hasRequest(): boolean; + clearRequest(): void; + getRequest(): swap_pb.SetOpenTimeWindowRequest | undefined; + setRequest(value?: swap_pb.SetOpenTimeWindowRequest): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SetSnsTokenSwapOpenTimeWindow.AsObject; + static toObject(includeInstance: boolean, msg: SetSnsTokenSwapOpenTimeWindow): SetSnsTokenSwapOpenTimeWindow.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SetSnsTokenSwapOpenTimeWindow, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SetSnsTokenSwapOpenTimeWindow; + static deserializeBinaryFromReader(message: SetSnsTokenSwapOpenTimeWindow, reader: jspb.BinaryReader): SetSnsTokenSwapOpenTimeWindow; +} + +export namespace SetSnsTokenSwapOpenTimeWindow { + export type AsObject = { + swapCanisterId?: base_types_pb.PrincipalId.AsObject, + request?: swap_pb.SetOpenTimeWindowRequest.AsObject, + } +} + +export class Proposal extends jspb.Message { + hasTitle(): boolean; + clearTitle(): void; + getTitle(): string; + setTitle(value: string): void; + + getSummary(): string; + setSummary(value: string): void; + + getUrl(): string; + setUrl(value: string): void; + + hasManageNeuron(): boolean; + clearManageNeuron(): void; + getManageNeuron(): ManageNeuron | undefined; + setManageNeuron(value?: ManageNeuron): void; + + hasManageNetworkEconomics(): boolean; + clearManageNetworkEconomics(): void; + getManageNetworkEconomics(): NetworkEconomics | undefined; + setManageNetworkEconomics(value?: NetworkEconomics): void; + + hasMotion(): boolean; + clearMotion(): void; + getMotion(): Motion | undefined; + setMotion(value?: Motion): void; + + hasExecuteNnsFunction(): boolean; + clearExecuteNnsFunction(): void; + getExecuteNnsFunction(): ExecuteNnsFunction | undefined; + setExecuteNnsFunction(value?: ExecuteNnsFunction): void; + + hasApproveGenesisKyc(): boolean; + clearApproveGenesisKyc(): void; + getApproveGenesisKyc(): ApproveGenesisKYC | undefined; + setApproveGenesisKyc(value?: ApproveGenesisKYC): void; + + hasAddOrRemoveNodeProvider(): boolean; + clearAddOrRemoveNodeProvider(): void; + getAddOrRemoveNodeProvider(): AddOrRemoveNodeProvider | undefined; + setAddOrRemoveNodeProvider(value?: AddOrRemoveNodeProvider): void; + + hasRewardNodeProvider(): boolean; + clearRewardNodeProvider(): void; + getRewardNodeProvider(): RewardNodeProvider | undefined; + setRewardNodeProvider(value?: RewardNodeProvider): void; + + hasSetDefaultFollowees(): boolean; + clearSetDefaultFollowees(): void; + getSetDefaultFollowees(): SetDefaultFollowees | undefined; + setSetDefaultFollowees(value?: SetDefaultFollowees): void; + + hasRewardNodeProviders(): boolean; + clearRewardNodeProviders(): void; + getRewardNodeProviders(): RewardNodeProviders | undefined; + setRewardNodeProviders(value?: RewardNodeProviders): void; + + hasRegisterKnownNeuron(): boolean; + clearRegisterKnownNeuron(): void; + getRegisterKnownNeuron(): KnownNeuron | undefined; + setRegisterKnownNeuron(value?: KnownNeuron): void; + + hasSetSnsTokenSwapOpenTimeWindow(): boolean; + clearSetSnsTokenSwapOpenTimeWindow(): void; + getSetSnsTokenSwapOpenTimeWindow(): SetSnsTokenSwapOpenTimeWindow | undefined; + setSetSnsTokenSwapOpenTimeWindow(value?: SetSnsTokenSwapOpenTimeWindow): void; + + hasOpenSnsTokenSwap(): boolean; + clearOpenSnsTokenSwap(): void; + getOpenSnsTokenSwap(): OpenSnsTokenSwap | undefined; + setOpenSnsTokenSwap(value?: OpenSnsTokenSwap): void; + + hasCreateServiceNervousSystem(): boolean; + clearCreateServiceNervousSystem(): void; + getCreateServiceNervousSystem(): CreateServiceNervousSystem | undefined; + setCreateServiceNervousSystem(value?: CreateServiceNervousSystem): void; + + getActionCase(): Proposal.ActionCase; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Proposal.AsObject; + static toObject(includeInstance: boolean, msg: Proposal): Proposal.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Proposal, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Proposal; + static deserializeBinaryFromReader(message: Proposal, reader: jspb.BinaryReader): Proposal; +} + +export namespace Proposal { + export type AsObject = { + title: string, + summary: string, + url: string, + manageNeuron?: ManageNeuron.AsObject, + manageNetworkEconomics?: NetworkEconomics.AsObject, + motion?: Motion.AsObject, + executeNnsFunction?: ExecuteNnsFunction.AsObject, + approveGenesisKyc?: ApproveGenesisKYC.AsObject, + addOrRemoveNodeProvider?: AddOrRemoveNodeProvider.AsObject, + rewardNodeProvider?: RewardNodeProvider.AsObject, + setDefaultFollowees?: SetDefaultFollowees.AsObject, + rewardNodeProviders?: RewardNodeProviders.AsObject, + registerKnownNeuron?: KnownNeuron.AsObject, + setSnsTokenSwapOpenTimeWindow?: SetSnsTokenSwapOpenTimeWindow.AsObject, + openSnsTokenSwap?: OpenSnsTokenSwap.AsObject, + createServiceNervousSystem?: CreateServiceNervousSystem.AsObject, + } + + export enum ActionCase { + ACTION_NOT_SET = 0, + MANAGE_NEURON = 10, + MANAGE_NETWORK_ECONOMICS = 12, + MOTION = 13, + EXECUTE_NNS_FUNCTION = 14, + APPROVE_GENESIS_KYC = 15, + ADD_OR_REMOVE_NODE_PROVIDER = 16, + REWARD_NODE_PROVIDER = 17, + SET_DEFAULT_FOLLOWEES = 18, + REWARD_NODE_PROVIDERS = 19, + REGISTER_KNOWN_NEURON = 21, + SET_SNS_TOKEN_SWAP_OPEN_TIME_WINDOW = 22, + OPEN_SNS_TOKEN_SWAP = 23, + CREATE_SERVICE_NERVOUS_SYSTEM = 24, + } +} + +export class Empty extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Empty.AsObject; + static toObject(includeInstance: boolean, msg: Empty): Empty.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Empty, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Empty; + static deserializeBinaryFromReader(message: Empty, reader: jspb.BinaryReader): Empty; +} + +export namespace Empty { + export type AsObject = { + } +} export class ManageNeuron extends jspb.Message { hasId(): boolean; clearId(): void; - getId(): base_types_pb.NeuronId | undefined; - setId(value?: base_types_pb.NeuronId): void; + getId(): nns_common_pb.NeuronId | undefined; + setId(value?: nns_common_pb.NeuronId): void; + + hasSubaccount(): boolean; + clearSubaccount(): void; + getSubaccount(): Uint8Array | string; + getSubaccount_asU8(): Uint8Array; + getSubaccount_asB64(): string; + setSubaccount(value: Uint8Array | string): void; + + hasNeuronId(): boolean; + clearNeuronId(): void; + getNeuronId(): nns_common_pb.NeuronId | undefined; + setNeuronId(value?: nns_common_pb.NeuronId): void; + + hasConfigure(): boolean; + clearConfigure(): void; + getConfigure(): ManageNeuron.Configure | undefined; + setConfigure(value?: ManageNeuron.Configure): void; + + hasDisburse(): boolean; + clearDisburse(): void; + getDisburse(): ManageNeuron.Disburse | undefined; + setDisburse(value?: ManageNeuron.Disburse): void; + + hasSpawn(): boolean; + clearSpawn(): void; + getSpawn(): ManageNeuron.Spawn | undefined; + setSpawn(value?: ManageNeuron.Spawn): void; + + hasFollow(): boolean; + clearFollow(): void; + getFollow(): ManageNeuron.Follow | undefined; + setFollow(value?: ManageNeuron.Follow): void; + + hasMakeProposal(): boolean; + clearMakeProposal(): void; + getMakeProposal(): Proposal | undefined; + setMakeProposal(value?: Proposal): void; + + hasRegisterVote(): boolean; + clearRegisterVote(): void; + getRegisterVote(): ManageNeuron.RegisterVote | undefined; + setRegisterVote(value?: ManageNeuron.RegisterVote): void; + + hasSplit(): boolean; + clearSplit(): void; + getSplit(): ManageNeuron.Split | undefined; + setSplit(value?: ManageNeuron.Split): void; + + hasDisburseToNeuron(): boolean; + clearDisburseToNeuron(): void; + getDisburseToNeuron(): ManageNeuron.DisburseToNeuron | undefined; + setDisburseToNeuron(value?: ManageNeuron.DisburseToNeuron): void; + + hasClaimOrRefresh(): boolean; + clearClaimOrRefresh(): void; + getClaimOrRefresh(): ManageNeuron.ClaimOrRefresh | undefined; + setClaimOrRefresh(value?: ManageNeuron.ClaimOrRefresh): void; + + hasMergeMaturity(): boolean; + clearMergeMaturity(): void; + getMergeMaturity(): ManageNeuron.MergeMaturity | undefined; + setMergeMaturity(value?: ManageNeuron.MergeMaturity): void; + + hasMerge(): boolean; + clearMerge(): void; + getMerge(): ManageNeuron.Merge | undefined; + setMerge(value?: ManageNeuron.Merge): void; + + hasStakeMaturity(): boolean; + clearStakeMaturity(): void; + getStakeMaturity(): ManageNeuron.StakeMaturity | undefined; + setStakeMaturity(value?: ManageNeuron.StakeMaturity): void; + + getNeuronIdOrSubaccountCase(): ManageNeuron.NeuronIdOrSubaccountCase; + getCommandCase(): ManageNeuron.CommandCase; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ManageNeuron.AsObject; + static toObject(includeInstance: boolean, msg: ManageNeuron): ManageNeuron.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ManageNeuron, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ManageNeuron; + static deserializeBinaryFromReader(message: ManageNeuron, reader: jspb.BinaryReader): ManageNeuron; +} + +export namespace ManageNeuron { + export type AsObject = { + id?: nns_common_pb.NeuronId.AsObject, + subaccount: Uint8Array | string, + neuronId?: nns_common_pb.NeuronId.AsObject, + configure?: ManageNeuron.Configure.AsObject, + disburse?: ManageNeuron.Disburse.AsObject, + spawn?: ManageNeuron.Spawn.AsObject, + follow?: ManageNeuron.Follow.AsObject, + makeProposal?: Proposal.AsObject, + registerVote?: ManageNeuron.RegisterVote.AsObject, + split?: ManageNeuron.Split.AsObject, + disburseToNeuron?: ManageNeuron.DisburseToNeuron.AsObject, + claimOrRefresh?: ManageNeuron.ClaimOrRefresh.AsObject, + mergeMaturity?: ManageNeuron.MergeMaturity.AsObject, + merge?: ManageNeuron.Merge.AsObject, + stakeMaturity?: ManageNeuron.StakeMaturity.AsObject, + } + + export class IncreaseDissolveDelay extends jspb.Message { + getAdditionalDissolveDelaySeconds(): number; + setAdditionalDissolveDelaySeconds(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): IncreaseDissolveDelay.AsObject; + static toObject(includeInstance: boolean, msg: IncreaseDissolveDelay): IncreaseDissolveDelay.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: IncreaseDissolveDelay, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): IncreaseDissolveDelay; + static deserializeBinaryFromReader(message: IncreaseDissolveDelay, reader: jspb.BinaryReader): IncreaseDissolveDelay; + } + + export namespace IncreaseDissolveDelay { + export type AsObject = { + additionalDissolveDelaySeconds: number, + } + } + + export class StartDissolving extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StartDissolving.AsObject; + static toObject(includeInstance: boolean, msg: StartDissolving): StartDissolving.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StartDissolving, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StartDissolving; + static deserializeBinaryFromReader(message: StartDissolving, reader: jspb.BinaryReader): StartDissolving; + } + + export namespace StartDissolving { + export type AsObject = { + } + } + + export class StopDissolving extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StopDissolving.AsObject; + static toObject(includeInstance: boolean, msg: StopDissolving): StopDissolving.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StopDissolving, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StopDissolving; + static deserializeBinaryFromReader(message: StopDissolving, reader: jspb.BinaryReader): StopDissolving; + } + + export namespace StopDissolving { + export type AsObject = { + } + } + + export class AddHotKey extends jspb.Message { + hasNewHotKey(): boolean; + clearNewHotKey(): void; + getNewHotKey(): base_types_pb.PrincipalId | undefined; + setNewHotKey(value?: base_types_pb.PrincipalId): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AddHotKey.AsObject; + static toObject(includeInstance: boolean, msg: AddHotKey): AddHotKey.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AddHotKey, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AddHotKey; + static deserializeBinaryFromReader(message: AddHotKey, reader: jspb.BinaryReader): AddHotKey; + } + + export namespace AddHotKey { + export type AsObject = { + newHotKey?: base_types_pb.PrincipalId.AsObject, + } + } + + export class RemoveHotKey extends jspb.Message { + hasHotKeyToRemove(): boolean; + clearHotKeyToRemove(): void; + getHotKeyToRemove(): base_types_pb.PrincipalId | undefined; + setHotKeyToRemove(value?: base_types_pb.PrincipalId): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RemoveHotKey.AsObject; + static toObject(includeInstance: boolean, msg: RemoveHotKey): RemoveHotKey.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RemoveHotKey, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RemoveHotKey; + static deserializeBinaryFromReader(message: RemoveHotKey, reader: jspb.BinaryReader): RemoveHotKey; + } + + export namespace RemoveHotKey { + export type AsObject = { + hotKeyToRemove?: base_types_pb.PrincipalId.AsObject, + } + } + + export class SetDissolveTimestamp extends jspb.Message { + getDissolveTimestampSeconds(): number; + setDissolveTimestampSeconds(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SetDissolveTimestamp.AsObject; + static toObject(includeInstance: boolean, msg: SetDissolveTimestamp): SetDissolveTimestamp.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SetDissolveTimestamp, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SetDissolveTimestamp; + static deserializeBinaryFromReader(message: SetDissolveTimestamp, reader: jspb.BinaryReader): SetDissolveTimestamp; + } + + export namespace SetDissolveTimestamp { + export type AsObject = { + dissolveTimestampSeconds: number, + } + } + + export class JoinCommunityFund extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): JoinCommunityFund.AsObject; + static toObject(includeInstance: boolean, msg: JoinCommunityFund): JoinCommunityFund.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: JoinCommunityFund, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): JoinCommunityFund; + static deserializeBinaryFromReader(message: JoinCommunityFund, reader: jspb.BinaryReader): JoinCommunityFund; + } + + export namespace JoinCommunityFund { + export type AsObject = { + } + } + + export class LeaveCommunityFund extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LeaveCommunityFund.AsObject; + static toObject(includeInstance: boolean, msg: LeaveCommunityFund): LeaveCommunityFund.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: LeaveCommunityFund, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LeaveCommunityFund; + static deserializeBinaryFromReader(message: LeaveCommunityFund, reader: jspb.BinaryReader): LeaveCommunityFund; + } + + export namespace LeaveCommunityFund { + export type AsObject = { + } + } + + export class ChangeAutoStakeMaturity extends jspb.Message { + getRequestedSettingForAutoStakeMaturity(): boolean; + setRequestedSettingForAutoStakeMaturity(value: boolean): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ChangeAutoStakeMaturity.AsObject; + static toObject(includeInstance: boolean, msg: ChangeAutoStakeMaturity): ChangeAutoStakeMaturity.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ChangeAutoStakeMaturity, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ChangeAutoStakeMaturity; + static deserializeBinaryFromReader(message: ChangeAutoStakeMaturity, reader: jspb.BinaryReader): ChangeAutoStakeMaturity; + } + + export namespace ChangeAutoStakeMaturity { + export type AsObject = { + requestedSettingForAutoStakeMaturity: boolean, + } + } + + export class Configure extends jspb.Message { + hasIncreaseDissolveDelay(): boolean; + clearIncreaseDissolveDelay(): void; + getIncreaseDissolveDelay(): ManageNeuron.IncreaseDissolveDelay | undefined; + setIncreaseDissolveDelay(value?: ManageNeuron.IncreaseDissolveDelay): void; + + hasStartDissolving(): boolean; + clearStartDissolving(): void; + getStartDissolving(): ManageNeuron.StartDissolving | undefined; + setStartDissolving(value?: ManageNeuron.StartDissolving): void; + + hasStopDissolving(): boolean; + clearStopDissolving(): void; + getStopDissolving(): ManageNeuron.StopDissolving | undefined; + setStopDissolving(value?: ManageNeuron.StopDissolving): void; + + hasAddHotKey(): boolean; + clearAddHotKey(): void; + getAddHotKey(): ManageNeuron.AddHotKey | undefined; + setAddHotKey(value?: ManageNeuron.AddHotKey): void; + + hasRemoveHotKey(): boolean; + clearRemoveHotKey(): void; + getRemoveHotKey(): ManageNeuron.RemoveHotKey | undefined; + setRemoveHotKey(value?: ManageNeuron.RemoveHotKey): void; + + hasSetDissolveTimestamp(): boolean; + clearSetDissolveTimestamp(): void; + getSetDissolveTimestamp(): ManageNeuron.SetDissolveTimestamp | undefined; + setSetDissolveTimestamp(value?: ManageNeuron.SetDissolveTimestamp): void; + + hasJoinCommunityFund(): boolean; + clearJoinCommunityFund(): void; + getJoinCommunityFund(): ManageNeuron.JoinCommunityFund | undefined; + setJoinCommunityFund(value?: ManageNeuron.JoinCommunityFund): void; + + hasLeaveCommunityFund(): boolean; + clearLeaveCommunityFund(): void; + getLeaveCommunityFund(): ManageNeuron.LeaveCommunityFund | undefined; + setLeaveCommunityFund(value?: ManageNeuron.LeaveCommunityFund): void; + + hasChangeAutoStakeMaturity(): boolean; + clearChangeAutoStakeMaturity(): void; + getChangeAutoStakeMaturity(): ManageNeuron.ChangeAutoStakeMaturity | undefined; + setChangeAutoStakeMaturity(value?: ManageNeuron.ChangeAutoStakeMaturity): void; + + getOperationCase(): Configure.OperationCase; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Configure.AsObject; + static toObject(includeInstance: boolean, msg: Configure): Configure.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Configure, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Configure; + static deserializeBinaryFromReader(message: Configure, reader: jspb.BinaryReader): Configure; + } + + export namespace Configure { + export type AsObject = { + increaseDissolveDelay?: ManageNeuron.IncreaseDissolveDelay.AsObject, + startDissolving?: ManageNeuron.StartDissolving.AsObject, + stopDissolving?: ManageNeuron.StopDissolving.AsObject, + addHotKey?: ManageNeuron.AddHotKey.AsObject, + removeHotKey?: ManageNeuron.RemoveHotKey.AsObject, + setDissolveTimestamp?: ManageNeuron.SetDissolveTimestamp.AsObject, + joinCommunityFund?: ManageNeuron.JoinCommunityFund.AsObject, + leaveCommunityFund?: ManageNeuron.LeaveCommunityFund.AsObject, + changeAutoStakeMaturity?: ManageNeuron.ChangeAutoStakeMaturity.AsObject, + } + + export enum OperationCase { + OPERATION_NOT_SET = 0, + INCREASE_DISSOLVE_DELAY = 1, + START_DISSOLVING = 2, + STOP_DISSOLVING = 3, + ADD_HOT_KEY = 4, + REMOVE_HOT_KEY = 5, + SET_DISSOLVE_TIMESTAMP = 6, + JOIN_COMMUNITY_FUND = 7, + LEAVE_COMMUNITY_FUND = 8, + CHANGE_AUTO_STAKE_MATURITY = 9, + } + } + + export class Disburse extends jspb.Message { + hasAmount(): boolean; + clearAmount(): void; + getAmount(): ManageNeuron.Disburse.Amount | undefined; + setAmount(value?: ManageNeuron.Disburse.Amount): void; + + hasToAccount(): boolean; + clearToAccount(): void; + getToAccount(): ledger_pb.AccountIdentifier | undefined; + setToAccount(value?: ledger_pb.AccountIdentifier): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Disburse.AsObject; + static toObject(includeInstance: boolean, msg: Disburse): Disburse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Disburse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Disburse; + static deserializeBinaryFromReader(message: Disburse, reader: jspb.BinaryReader): Disburse; + } + + export namespace Disburse { + export type AsObject = { + amount?: ManageNeuron.Disburse.Amount.AsObject, + toAccount?: ledger_pb.AccountIdentifier.AsObject, + } + + export class Amount extends jspb.Message { + getE8s(): number; + setE8s(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Amount.AsObject; + static toObject(includeInstance: boolean, msg: Amount): Amount.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Amount, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Amount; + static deserializeBinaryFromReader(message: Amount, reader: jspb.BinaryReader): Amount; + } + + export namespace Amount { + export type AsObject = { + e8s: number, + } + } + } + + export class Split extends jspb.Message { + getAmountE8s(): number; + setAmountE8s(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Split.AsObject; + static toObject(includeInstance: boolean, msg: Split): Split.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Split, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Split; + static deserializeBinaryFromReader(message: Split, reader: jspb.BinaryReader): Split; + } + + export namespace Split { + export type AsObject = { + amountE8s: number, + } + } + + export class Merge extends jspb.Message { + hasSourceNeuronId(): boolean; + clearSourceNeuronId(): void; + getSourceNeuronId(): nns_common_pb.NeuronId | undefined; + setSourceNeuronId(value?: nns_common_pb.NeuronId): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Merge.AsObject; + static toObject(includeInstance: boolean, msg: Merge): Merge.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Merge, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Merge; + static deserializeBinaryFromReader(message: Merge, reader: jspb.BinaryReader): Merge; + } + + export namespace Merge { + export type AsObject = { + sourceNeuronId?: nns_common_pb.NeuronId.AsObject, + } + } + + export class Spawn extends jspb.Message { + hasNewController(): boolean; + clearNewController(): void; + getNewController(): base_types_pb.PrincipalId | undefined; + setNewController(value?: base_types_pb.PrincipalId): void; + + hasNonce(): boolean; + clearNonce(): void; + getNonce(): number; + setNonce(value: number): void; + + hasPercentageToSpawn(): boolean; + clearPercentageToSpawn(): void; + getPercentageToSpawn(): number; + setPercentageToSpawn(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Spawn.AsObject; + static toObject(includeInstance: boolean, msg: Spawn): Spawn.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Spawn, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Spawn; + static deserializeBinaryFromReader(message: Spawn, reader: jspb.BinaryReader): Spawn; + } + + export namespace Spawn { + export type AsObject = { + newController?: base_types_pb.PrincipalId.AsObject, + nonce: number, + percentageToSpawn: number, + } + } + + export class MergeMaturity extends jspb.Message { + getPercentageToMerge(): number; + setPercentageToMerge(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MergeMaturity.AsObject; + static toObject(includeInstance: boolean, msg: MergeMaturity): MergeMaturity.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MergeMaturity, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MergeMaturity; + static deserializeBinaryFromReader(message: MergeMaturity, reader: jspb.BinaryReader): MergeMaturity; + } + + export namespace MergeMaturity { + export type AsObject = { + percentageToMerge: number, + } + } + + export class StakeMaturity extends jspb.Message { + hasPercentageToStake(): boolean; + clearPercentageToStake(): void; + getPercentageToStake(): number; + setPercentageToStake(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StakeMaturity.AsObject; + static toObject(includeInstance: boolean, msg: StakeMaturity): StakeMaturity.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StakeMaturity, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StakeMaturity; + static deserializeBinaryFromReader(message: StakeMaturity, reader: jspb.BinaryReader): StakeMaturity; + } + + export namespace StakeMaturity { + export type AsObject = { + percentageToStake: number, + } + } + + export class DisburseToNeuron extends jspb.Message { + hasNewController(): boolean; + clearNewController(): void; + getNewController(): base_types_pb.PrincipalId | undefined; + setNewController(value?: base_types_pb.PrincipalId): void; + + getAmountE8s(): number; + setAmountE8s(value: number): void; + + getDissolveDelaySeconds(): number; + setDissolveDelaySeconds(value: number): void; + + getKycVerified(): boolean; + setKycVerified(value: boolean): void; + + getNonce(): number; + setNonce(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DisburseToNeuron.AsObject; + static toObject(includeInstance: boolean, msg: DisburseToNeuron): DisburseToNeuron.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DisburseToNeuron, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DisburseToNeuron; + static deserializeBinaryFromReader(message: DisburseToNeuron, reader: jspb.BinaryReader): DisburseToNeuron; + } + + export namespace DisburseToNeuron { + export type AsObject = { + newController?: base_types_pb.PrincipalId.AsObject, + amountE8s: number, + dissolveDelaySeconds: number, + kycVerified: boolean, + nonce: number, + } + } + + export class Follow extends jspb.Message { + getTopic(): TopicMap[keyof TopicMap]; + setTopic(value: TopicMap[keyof TopicMap]): void; + + clearFolloweesList(): void; + getFolloweesList(): Array; + setFolloweesList(value: Array): void; + addFollowees(value?: nns_common_pb.NeuronId, index?: number): nns_common_pb.NeuronId; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Follow.AsObject; + static toObject(includeInstance: boolean, msg: Follow): Follow.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Follow, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Follow; + static deserializeBinaryFromReader(message: Follow, reader: jspb.BinaryReader): Follow; + } + + export namespace Follow { + export type AsObject = { + topic: TopicMap[keyof TopicMap], + followeesList: Array, + } + } + + export class RegisterVote extends jspb.Message { + hasProposal(): boolean; + clearProposal(): void; + getProposal(): nns_common_pb.ProposalId | undefined; + setProposal(value?: nns_common_pb.ProposalId): void; + + getVote(): VoteMap[keyof VoteMap]; + setVote(value: VoteMap[keyof VoteMap]): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RegisterVote.AsObject; + static toObject(includeInstance: boolean, msg: RegisterVote): RegisterVote.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RegisterVote, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RegisterVote; + static deserializeBinaryFromReader(message: RegisterVote, reader: jspb.BinaryReader): RegisterVote; + } + + export namespace RegisterVote { + export type AsObject = { + proposal?: nns_common_pb.ProposalId.AsObject, + vote: VoteMap[keyof VoteMap], + } + } + + export class ClaimOrRefresh extends jspb.Message { + hasMemo(): boolean; + clearMemo(): void; + getMemo(): number; + setMemo(value: number): void; + + hasMemoAndController(): boolean; + clearMemoAndController(): void; + getMemoAndController(): ManageNeuron.ClaimOrRefresh.MemoAndController | undefined; + setMemoAndController(value?: ManageNeuron.ClaimOrRefresh.MemoAndController): void; + + hasNeuronIdOrSubaccount(): boolean; + clearNeuronIdOrSubaccount(): void; + getNeuronIdOrSubaccount(): Empty | undefined; + setNeuronIdOrSubaccount(value?: Empty): void; + + getByCase(): ClaimOrRefresh.ByCase; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ClaimOrRefresh.AsObject; + static toObject(includeInstance: boolean, msg: ClaimOrRefresh): ClaimOrRefresh.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ClaimOrRefresh, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ClaimOrRefresh; + static deserializeBinaryFromReader(message: ClaimOrRefresh, reader: jspb.BinaryReader): ClaimOrRefresh; + } + + export namespace ClaimOrRefresh { + export type AsObject = { + memo: number, + memoAndController?: ManageNeuron.ClaimOrRefresh.MemoAndController.AsObject, + neuronIdOrSubaccount?: Empty.AsObject, + } + + export class MemoAndController extends jspb.Message { + getMemo(): number; + setMemo(value: number): void; + + hasController(): boolean; + clearController(): void; + getController(): base_types_pb.PrincipalId | undefined; + setController(value?: base_types_pb.PrincipalId): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MemoAndController.AsObject; + static toObject(includeInstance: boolean, msg: MemoAndController): MemoAndController.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MemoAndController, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MemoAndController; + static deserializeBinaryFromReader(message: MemoAndController, reader: jspb.BinaryReader): MemoAndController; + } + + export namespace MemoAndController { + export type AsObject = { + memo: number, + controller?: base_types_pb.PrincipalId.AsObject, + } + } + + export enum ByCase { + BY_NOT_SET = 0, + MEMO = 1, + MEMO_AND_CONTROLLER = 2, + NEURON_ID_OR_SUBACCOUNT = 3, + } + } + + export enum NeuronIdOrSubaccountCase { + NEURON_ID_OR_SUBACCOUNT_NOT_SET = 0, + SUBACCOUNT = 11, + NEURON_ID = 12, + } + + export enum CommandCase { + COMMAND_NOT_SET = 0, + CONFIGURE = 2, + DISBURSE = 3, + SPAWN = 4, + FOLLOW = 5, + MAKE_PROPOSAL = 6, + REGISTER_VOTE = 7, + SPLIT = 8, + DISBURSE_TO_NEURON = 9, + CLAIM_OR_REFRESH = 10, + MERGE_MATURITY = 13, + MERGE = 14, + STAKE_MATURITY = 15, + } +} + +export class ManageNeuronResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): GovernanceError | undefined; + setError(value?: GovernanceError): void; + + hasConfigure(): boolean; + clearConfigure(): void; + getConfigure(): ManageNeuronResponse.ConfigureResponse | undefined; + setConfigure(value?: ManageNeuronResponse.ConfigureResponse): void; + + hasDisburse(): boolean; + clearDisburse(): void; + getDisburse(): ManageNeuronResponse.DisburseResponse | undefined; + setDisburse(value?: ManageNeuronResponse.DisburseResponse): void; + + hasSpawn(): boolean; + clearSpawn(): void; + getSpawn(): ManageNeuronResponse.SpawnResponse | undefined; + setSpawn(value?: ManageNeuronResponse.SpawnResponse): void; + + hasFollow(): boolean; + clearFollow(): void; + getFollow(): ManageNeuronResponse.FollowResponse | undefined; + setFollow(value?: ManageNeuronResponse.FollowResponse): void; + + hasMakeProposal(): boolean; + clearMakeProposal(): void; + getMakeProposal(): ManageNeuronResponse.MakeProposalResponse | undefined; + setMakeProposal(value?: ManageNeuronResponse.MakeProposalResponse): void; + + hasRegisterVote(): boolean; + clearRegisterVote(): void; + getRegisterVote(): ManageNeuronResponse.RegisterVoteResponse | undefined; + setRegisterVote(value?: ManageNeuronResponse.RegisterVoteResponse): void; + + hasSplit(): boolean; + clearSplit(): void; + getSplit(): ManageNeuronResponse.SplitResponse | undefined; + setSplit(value?: ManageNeuronResponse.SplitResponse): void; + + hasDisburseToNeuron(): boolean; + clearDisburseToNeuron(): void; + getDisburseToNeuron(): ManageNeuronResponse.DisburseToNeuronResponse | undefined; + setDisburseToNeuron(value?: ManageNeuronResponse.DisburseToNeuronResponse): void; + + hasClaimOrRefresh(): boolean; + clearClaimOrRefresh(): void; + getClaimOrRefresh(): ManageNeuronResponse.ClaimOrRefreshResponse | undefined; + setClaimOrRefresh(value?: ManageNeuronResponse.ClaimOrRefreshResponse): void; + + hasMergeMaturity(): boolean; + clearMergeMaturity(): void; + getMergeMaturity(): ManageNeuronResponse.MergeMaturityResponse | undefined; + setMergeMaturity(value?: ManageNeuronResponse.MergeMaturityResponse): void; + + hasMerge(): boolean; + clearMerge(): void; + getMerge(): ManageNeuronResponse.MergeResponse | undefined; + setMerge(value?: ManageNeuronResponse.MergeResponse): void; + + hasStakeMaturity(): boolean; + clearStakeMaturity(): void; + getStakeMaturity(): ManageNeuronResponse.StakeMaturityResponse | undefined; + setStakeMaturity(value?: ManageNeuronResponse.StakeMaturityResponse): void; + + getCommandCase(): ManageNeuronResponse.CommandCase; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ManageNeuronResponse.AsObject; + static toObject(includeInstance: boolean, msg: ManageNeuronResponse): ManageNeuronResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ManageNeuronResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ManageNeuronResponse; + static deserializeBinaryFromReader(message: ManageNeuronResponse, reader: jspb.BinaryReader): ManageNeuronResponse; +} + +export namespace ManageNeuronResponse { + export type AsObject = { + error?: GovernanceError.AsObject, + configure?: ManageNeuronResponse.ConfigureResponse.AsObject, + disburse?: ManageNeuronResponse.DisburseResponse.AsObject, + spawn?: ManageNeuronResponse.SpawnResponse.AsObject, + follow?: ManageNeuronResponse.FollowResponse.AsObject, + makeProposal?: ManageNeuronResponse.MakeProposalResponse.AsObject, + registerVote?: ManageNeuronResponse.RegisterVoteResponse.AsObject, + split?: ManageNeuronResponse.SplitResponse.AsObject, + disburseToNeuron?: ManageNeuronResponse.DisburseToNeuronResponse.AsObject, + claimOrRefresh?: ManageNeuronResponse.ClaimOrRefreshResponse.AsObject, + mergeMaturity?: ManageNeuronResponse.MergeMaturityResponse.AsObject, + merge?: ManageNeuronResponse.MergeResponse.AsObject, + stakeMaturity?: ManageNeuronResponse.StakeMaturityResponse.AsObject, + } + + export class ConfigureResponse extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ConfigureResponse.AsObject; + static toObject(includeInstance: boolean, msg: ConfigureResponse): ConfigureResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ConfigureResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ConfigureResponse; + static deserializeBinaryFromReader(message: ConfigureResponse, reader: jspb.BinaryReader): ConfigureResponse; + } + + export namespace ConfigureResponse { + export type AsObject = { + } + } + + export class DisburseResponse extends jspb.Message { + getTransferBlockHeight(): number; + setTransferBlockHeight(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DisburseResponse.AsObject; + static toObject(includeInstance: boolean, msg: DisburseResponse): DisburseResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DisburseResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DisburseResponse; + static deserializeBinaryFromReader(message: DisburseResponse, reader: jspb.BinaryReader): DisburseResponse; + } + + export namespace DisburseResponse { + export type AsObject = { + transferBlockHeight: number, + } + } + + export class SpawnResponse extends jspb.Message { + hasCreatedNeuronId(): boolean; + clearCreatedNeuronId(): void; + getCreatedNeuronId(): nns_common_pb.NeuronId | undefined; + setCreatedNeuronId(value?: nns_common_pb.NeuronId): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SpawnResponse.AsObject; + static toObject(includeInstance: boolean, msg: SpawnResponse): SpawnResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SpawnResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SpawnResponse; + static deserializeBinaryFromReader(message: SpawnResponse, reader: jspb.BinaryReader): SpawnResponse; + } + + export namespace SpawnResponse { + export type AsObject = { + createdNeuronId?: nns_common_pb.NeuronId.AsObject, + } + } + + export class MergeMaturityResponse extends jspb.Message { + getMergedMaturityE8s(): number; + setMergedMaturityE8s(value: number): void; + + getNewStakeE8s(): number; + setNewStakeE8s(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MergeMaturityResponse.AsObject; + static toObject(includeInstance: boolean, msg: MergeMaturityResponse): MergeMaturityResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MergeMaturityResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MergeMaturityResponse; + static deserializeBinaryFromReader(message: MergeMaturityResponse, reader: jspb.BinaryReader): MergeMaturityResponse; + } + + export namespace MergeMaturityResponse { + export type AsObject = { + mergedMaturityE8s: number, + newStakeE8s: number, + } + } + + export class StakeMaturityResponse extends jspb.Message { + getMaturityE8s(): number; + setMaturityE8s(value: number): void; + + getStakedMaturityE8s(): number; + setStakedMaturityE8s(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StakeMaturityResponse.AsObject; + static toObject(includeInstance: boolean, msg: StakeMaturityResponse): StakeMaturityResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StakeMaturityResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StakeMaturityResponse; + static deserializeBinaryFromReader(message: StakeMaturityResponse, reader: jspb.BinaryReader): StakeMaturityResponse; + } + + export namespace StakeMaturityResponse { + export type AsObject = { + maturityE8s: number, + stakedMaturityE8s: number, + } + } + + export class FollowResponse extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): FollowResponse.AsObject; + static toObject(includeInstance: boolean, msg: FollowResponse): FollowResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: FollowResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): FollowResponse; + static deserializeBinaryFromReader(message: FollowResponse, reader: jspb.BinaryReader): FollowResponse; + } + + export namespace FollowResponse { + export type AsObject = { + } + } + + export class MakeProposalResponse extends jspb.Message { + hasProposalId(): boolean; + clearProposalId(): void; + getProposalId(): nns_common_pb.ProposalId | undefined; + setProposalId(value?: nns_common_pb.ProposalId): void; + + hasMessage(): boolean; + clearMessage(): void; + getMessage(): string; + setMessage(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MakeProposalResponse.AsObject; + static toObject(includeInstance: boolean, msg: MakeProposalResponse): MakeProposalResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MakeProposalResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MakeProposalResponse; + static deserializeBinaryFromReader(message: MakeProposalResponse, reader: jspb.BinaryReader): MakeProposalResponse; + } + + export namespace MakeProposalResponse { + export type AsObject = { + proposalId?: nns_common_pb.ProposalId.AsObject, + message: string, + } + } + + export class RegisterVoteResponse extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RegisterVoteResponse.AsObject; + static toObject(includeInstance: boolean, msg: RegisterVoteResponse): RegisterVoteResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RegisterVoteResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RegisterVoteResponse; + static deserializeBinaryFromReader(message: RegisterVoteResponse, reader: jspb.BinaryReader): RegisterVoteResponse; + } + + export namespace RegisterVoteResponse { + export type AsObject = { + } + } + + export class SplitResponse extends jspb.Message { + hasCreatedNeuronId(): boolean; + clearCreatedNeuronId(): void; + getCreatedNeuronId(): nns_common_pb.NeuronId | undefined; + setCreatedNeuronId(value?: nns_common_pb.NeuronId): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SplitResponse.AsObject; + static toObject(includeInstance: boolean, msg: SplitResponse): SplitResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SplitResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SplitResponse; + static deserializeBinaryFromReader(message: SplitResponse, reader: jspb.BinaryReader): SplitResponse; + } + + export namespace SplitResponse { + export type AsObject = { + createdNeuronId?: nns_common_pb.NeuronId.AsObject, + } + } + + export class MergeResponse extends jspb.Message { + hasSourceNeuron(): boolean; + clearSourceNeuron(): void; + getSourceNeuron(): Neuron | undefined; + setSourceNeuron(value?: Neuron): void; + + hasTargetNeuron(): boolean; + clearTargetNeuron(): void; + getTargetNeuron(): Neuron | undefined; + setTargetNeuron(value?: Neuron): void; + + hasSourceNeuronInfo(): boolean; + clearSourceNeuronInfo(): void; + getSourceNeuronInfo(): NeuronInfo | undefined; + setSourceNeuronInfo(value?: NeuronInfo): void; + + hasTargetNeuronInfo(): boolean; + clearTargetNeuronInfo(): void; + getTargetNeuronInfo(): NeuronInfo | undefined; + setTargetNeuronInfo(value?: NeuronInfo): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): MergeResponse.AsObject; + static toObject(includeInstance: boolean, msg: MergeResponse): MergeResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: MergeResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MergeResponse; + static deserializeBinaryFromReader(message: MergeResponse, reader: jspb.BinaryReader): MergeResponse; + } + + export namespace MergeResponse { + export type AsObject = { + sourceNeuron?: Neuron.AsObject, + targetNeuron?: Neuron.AsObject, + sourceNeuronInfo?: NeuronInfo.AsObject, + targetNeuronInfo?: NeuronInfo.AsObject, + } + } + + export class DisburseToNeuronResponse extends jspb.Message { + hasCreatedNeuronId(): boolean; + clearCreatedNeuronId(): void; + getCreatedNeuronId(): nns_common_pb.NeuronId | undefined; + setCreatedNeuronId(value?: nns_common_pb.NeuronId): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DisburseToNeuronResponse.AsObject; + static toObject(includeInstance: boolean, msg: DisburseToNeuronResponse): DisburseToNeuronResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DisburseToNeuronResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DisburseToNeuronResponse; + static deserializeBinaryFromReader(message: DisburseToNeuronResponse, reader: jspb.BinaryReader): DisburseToNeuronResponse; + } + + export namespace DisburseToNeuronResponse { + export type AsObject = { + createdNeuronId?: nns_common_pb.NeuronId.AsObject, + } + } + + export class ClaimOrRefreshResponse extends jspb.Message { + hasRefreshedNeuronId(): boolean; + clearRefreshedNeuronId(): void; + getRefreshedNeuronId(): nns_common_pb.NeuronId | undefined; + setRefreshedNeuronId(value?: nns_common_pb.NeuronId): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ClaimOrRefreshResponse.AsObject; + static toObject(includeInstance: boolean, msg: ClaimOrRefreshResponse): ClaimOrRefreshResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ClaimOrRefreshResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ClaimOrRefreshResponse; + static deserializeBinaryFromReader(message: ClaimOrRefreshResponse, reader: jspb.BinaryReader): ClaimOrRefreshResponse; + } + + export namespace ClaimOrRefreshResponse { + export type AsObject = { + refreshedNeuronId?: nns_common_pb.NeuronId.AsObject, + } + } + + export enum CommandCase { + COMMAND_NOT_SET = 0, + ERROR = 1, + CONFIGURE = 2, + DISBURSE = 3, + SPAWN = 4, + FOLLOW = 5, + MAKE_PROPOSAL = 6, + REGISTER_VOTE = 7, + SPLIT = 8, + DISBURSE_TO_NEURON = 9, + CLAIM_OR_REFRESH = 10, + MERGE_MATURITY = 11, + MERGE = 12, + STAKE_MATURITY = 13, + } +} + +export class GovernanceError extends jspb.Message { + getErrorType(): GovernanceError.ErrorTypeMap[keyof GovernanceError.ErrorTypeMap]; + setErrorType(value: GovernanceError.ErrorTypeMap[keyof GovernanceError.ErrorTypeMap]): void; + + getErrorMessage(): string; + setErrorMessage(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GovernanceError.AsObject; + static toObject(includeInstance: boolean, msg: GovernanceError): GovernanceError.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GovernanceError, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GovernanceError; + static deserializeBinaryFromReader(message: GovernanceError, reader: jspb.BinaryReader): GovernanceError; +} + +export namespace GovernanceError { + export type AsObject = { + errorType: GovernanceError.ErrorTypeMap[keyof GovernanceError.ErrorTypeMap], + errorMessage: string, + } + + export interface ErrorTypeMap { + ERROR_TYPE_UNSPECIFIED: 0; + ERROR_TYPE_OK: 1; + ERROR_TYPE_UNAVAILABLE: 2; + ERROR_TYPE_NOT_AUTHORIZED: 3; + ERROR_TYPE_NOT_FOUND: 4; + ERROR_TYPE_INVALID_COMMAND: 5; + ERROR_TYPE_REQUIRES_NOT_DISSOLVING: 6; + ERROR_TYPE_REQUIRES_DISSOLVING: 7; + ERROR_TYPE_REQUIRES_DISSOLVED: 8; + ERROR_TYPE_HOT_KEY: 9; + ERROR_TYPE_RESOURCE_EXHAUSTED: 10; + ERROR_TYPE_PRECONDITION_FAILED: 11; + ERROR_TYPE_EXTERNAL: 12; + ERROR_TYPE_LEDGER_UPDATE_ONGOING: 13; + ERROR_TYPE_INSUFFICIENT_FUNDS: 14; + ERROR_TYPE_INVALID_PRINCIPAL: 15; + ERROR_TYPE_INVALID_PROPOSAL: 16; + ERROR_TYPE_ALREADY_JOINED_COMMUNITY_FUND: 17; + ERROR_TYPE_NOT_IN_THE_COMMUNITY_FUND: 18; + } + + export const ErrorType: ErrorTypeMap; +} + +export class Ballot extends jspb.Message { + getVote(): VoteMap[keyof VoteMap]; + setVote(value: VoteMap[keyof VoteMap]): void; + + getVotingPower(): number; + setVotingPower(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Ballot.AsObject; + static toObject(includeInstance: boolean, msg: Ballot): Ballot.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Ballot, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Ballot; + static deserializeBinaryFromReader(message: Ballot, reader: jspb.BinaryReader): Ballot; +} + +export namespace Ballot { + export type AsObject = { + vote: VoteMap[keyof VoteMap], + votingPower: number, + } +} + +export class Tally extends jspb.Message { + getTimestampSeconds(): number; + setTimestampSeconds(value: number): void; + + getYes(): number; + setYes(value: number): void; + + getNo(): number; + setNo(value: number): void; + + getTotal(): number; + setTotal(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Tally.AsObject; + static toObject(includeInstance: boolean, msg: Tally): Tally.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Tally, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Tally; + static deserializeBinaryFromReader(message: Tally, reader: jspb.BinaryReader): Tally; +} + +export namespace Tally { + export type AsObject = { + timestampSeconds: number, + yes: number, + no: number, + total: number, + } +} + +export class ProposalData extends jspb.Message { + hasId(): boolean; + clearId(): void; + getId(): nns_common_pb.ProposalId | undefined; + setId(value?: nns_common_pb.ProposalId): void; + + hasProposer(): boolean; + clearProposer(): void; + getProposer(): nns_common_pb.NeuronId | undefined; + setProposer(value?: nns_common_pb.NeuronId): void; + + getRejectCostE8s(): number; + setRejectCostE8s(value: number): void; + + hasProposal(): boolean; + clearProposal(): void; + getProposal(): Proposal | undefined; + setProposal(value?: Proposal): void; + + getProposalTimestampSeconds(): number; + setProposalTimestampSeconds(value: number): void; + + getBallotsMap(): jspb.Map; + clearBallotsMap(): void; + hasLatestTally(): boolean; + clearLatestTally(): void; + getLatestTally(): Tally | undefined; + setLatestTally(value?: Tally): void; + + getDecidedTimestampSeconds(): number; + setDecidedTimestampSeconds(value: number): void; + + getExecutedTimestampSeconds(): number; + setExecutedTimestampSeconds(value: number): void; + + getFailedTimestampSeconds(): number; + setFailedTimestampSeconds(value: number): void; + + hasFailureReason(): boolean; + clearFailureReason(): void; + getFailureReason(): GovernanceError | undefined; + setFailureReason(value?: GovernanceError): void; + + getRewardEventRound(): number; + setRewardEventRound(value: number): void; + + hasWaitForQuietState(): boolean; + clearWaitForQuietState(): void; + getWaitForQuietState(): WaitForQuietState | undefined; + setWaitForQuietState(value?: WaitForQuietState): void; + + hasOriginalTotalCommunityFundMaturityE8sEquivalent(): boolean; + clearOriginalTotalCommunityFundMaturityE8sEquivalent(): void; + getOriginalTotalCommunityFundMaturityE8sEquivalent(): number; + setOriginalTotalCommunityFundMaturityE8sEquivalent(value: number): void; + + clearCfParticipantsList(): void; + getCfParticipantsList(): Array; + setCfParticipantsList(value: Array): void; + addCfParticipants(value?: swap_pb.CfParticipant, index?: number): swap_pb.CfParticipant; + + hasSnsTokenSwapLifecycle(): boolean; + clearSnsTokenSwapLifecycle(): void; + getSnsTokenSwapLifecycle(): swap_pb.LifecycleMap[keyof swap_pb.LifecycleMap]; + setSnsTokenSwapLifecycle(value: swap_pb.LifecycleMap[keyof swap_pb.LifecycleMap]): void; + + hasDerivedProposalInformation(): boolean; + clearDerivedProposalInformation(): void; + getDerivedProposalInformation(): DerivedProposalInformation | undefined; + setDerivedProposalInformation(value?: DerivedProposalInformation): void; + + hasNeuronsFundData(): boolean; + clearNeuronsFundData(): void; + getNeuronsFundData(): NeuronsFundData | undefined; + setNeuronsFundData(value?: NeuronsFundData): void; - hasSubaccount(): boolean; - clearSubaccount(): void; - getSubaccount(): Uint8Array | string; - getSubaccount_asU8(): Uint8Array; - getSubaccount_asB64(): string; - setSubaccount(value: Uint8Array | string): void; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProposalData.AsObject; + static toObject(includeInstance: boolean, msg: ProposalData): ProposalData.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProposalData, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProposalData; + static deserializeBinaryFromReader(message: ProposalData, reader: jspb.BinaryReader): ProposalData; +} - hasNeuronId(): boolean; - clearNeuronId(): void; - getNeuronId(): base_types_pb.NeuronId | undefined; - setNeuronId(value?: base_types_pb.NeuronId): void; +export namespace ProposalData { + export type AsObject = { + id?: nns_common_pb.ProposalId.AsObject, + proposer?: nns_common_pb.NeuronId.AsObject, + rejectCostE8s: number, + proposal?: Proposal.AsObject, + proposalTimestampSeconds: number, + ballotsMap: Array<[number, Ballot.AsObject]>, + latestTally?: Tally.AsObject, + decidedTimestampSeconds: number, + executedTimestampSeconds: number, + failedTimestampSeconds: number, + failureReason?: GovernanceError.AsObject, + rewardEventRound: number, + waitForQuietState?: WaitForQuietState.AsObject, + originalTotalCommunityFundMaturityE8sEquivalent: number, + cfParticipantsList: Array, + snsTokenSwapLifecycle: swap_pb.LifecycleMap[keyof swap_pb.LifecycleMap], + derivedProposalInformation?: DerivedProposalInformation.AsObject, + neuronsFundData?: NeuronsFundData.AsObject, + } +} - hasConfigure(): boolean; - clearConfigure(): void; - getConfigure(): ManageNeuron.Configure | undefined; - setConfigure(value?: ManageNeuron.Configure): void; +export class NeuronsFundData extends jspb.Message { + hasInitialNeuronsFundParticipation(): boolean; + clearInitialNeuronsFundParticipation(): void; + getInitialNeuronsFundParticipation(): NeuronsFundParticipation | undefined; + setInitialNeuronsFundParticipation(value?: NeuronsFundParticipation): void; - hasDisburse(): boolean; - clearDisburse(): void; - getDisburse(): ManageNeuron.Disburse | undefined; - setDisburse(value?: ManageNeuron.Disburse): void; + hasFinalNeuronsFundParticipation(): boolean; + clearFinalNeuronsFundParticipation(): void; + getFinalNeuronsFundParticipation(): NeuronsFundParticipation | undefined; + setFinalNeuronsFundParticipation(value?: NeuronsFundParticipation): void; - hasSpawn(): boolean; - clearSpawn(): void; - getSpawn(): ManageNeuron.Spawn | undefined; - setSpawn(value?: ManageNeuron.Spawn): void; + hasNeuronsFundRefunds(): boolean; + clearNeuronsFundRefunds(): void; + getNeuronsFundRefunds(): NeuronsFundSnapshot | undefined; + setNeuronsFundRefunds(value?: NeuronsFundSnapshot): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NeuronsFundData.AsObject; + static toObject(includeInstance: boolean, msg: NeuronsFundData): NeuronsFundData.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NeuronsFundData, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NeuronsFundData; + static deserializeBinaryFromReader(message: NeuronsFundData, reader: jspb.BinaryReader): NeuronsFundData; +} + +export namespace NeuronsFundData { + export type AsObject = { + initialNeuronsFundParticipation?: NeuronsFundParticipation.AsObject, + finalNeuronsFundParticipation?: NeuronsFundParticipation.AsObject, + neuronsFundRefunds?: NeuronsFundSnapshot.AsObject, + } +} + +export class NeuronsFundAuditInfo extends jspb.Message { + hasInitialNeuronsFundParticipation(): boolean; + clearInitialNeuronsFundParticipation(): void; + getInitialNeuronsFundParticipation(): NeuronsFundParticipation | undefined; + setInitialNeuronsFundParticipation(value?: NeuronsFundParticipation): void; + + hasFinalNeuronsFundParticipation(): boolean; + clearFinalNeuronsFundParticipation(): void; + getFinalNeuronsFundParticipation(): NeuronsFundParticipation | undefined; + setFinalNeuronsFundParticipation(value?: NeuronsFundParticipation): void; + + hasNeuronsFundRefunds(): boolean; + clearNeuronsFundRefunds(): void; + getNeuronsFundRefunds(): NeuronsFundSnapshot | undefined; + setNeuronsFundRefunds(value?: NeuronsFundSnapshot): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NeuronsFundAuditInfo.AsObject; + static toObject(includeInstance: boolean, msg: NeuronsFundAuditInfo): NeuronsFundAuditInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NeuronsFundAuditInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NeuronsFundAuditInfo; + static deserializeBinaryFromReader(message: NeuronsFundAuditInfo, reader: jspb.BinaryReader): NeuronsFundAuditInfo; +} + +export namespace NeuronsFundAuditInfo { + export type AsObject = { + initialNeuronsFundParticipation?: NeuronsFundParticipation.AsObject, + finalNeuronsFundParticipation?: NeuronsFundParticipation.AsObject, + neuronsFundRefunds?: NeuronsFundSnapshot.AsObject, + } +} + +export class GetNeuronsFundAuditInfoRequest extends jspb.Message { + hasNnsProposalId(): boolean; + clearNnsProposalId(): void; + getNnsProposalId(): nns_common_pb.ProposalId | undefined; + setNnsProposalId(value?: nns_common_pb.ProposalId): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetNeuronsFundAuditInfoRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetNeuronsFundAuditInfoRequest): GetNeuronsFundAuditInfoRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetNeuronsFundAuditInfoRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetNeuronsFundAuditInfoRequest; + static deserializeBinaryFromReader(message: GetNeuronsFundAuditInfoRequest, reader: jspb.BinaryReader): GetNeuronsFundAuditInfoRequest; +} + +export namespace GetNeuronsFundAuditInfoRequest { + export type AsObject = { + nnsProposalId?: nns_common_pb.ProposalId.AsObject, + } +} + +export class GetNeuronsFundAuditInfoResponse extends jspb.Message { + hasErr(): boolean; + clearErr(): void; + getErr(): GovernanceError | undefined; + setErr(value?: GovernanceError): void; + + hasOk(): boolean; + clearOk(): void; + getOk(): GetNeuronsFundAuditInfoResponse.Ok | undefined; + setOk(value?: GetNeuronsFundAuditInfoResponse.Ok): void; + + getResultCase(): GetNeuronsFundAuditInfoResponse.ResultCase; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetNeuronsFundAuditInfoResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetNeuronsFundAuditInfoResponse): GetNeuronsFundAuditInfoResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetNeuronsFundAuditInfoResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetNeuronsFundAuditInfoResponse; + static deserializeBinaryFromReader(message: GetNeuronsFundAuditInfoResponse, reader: jspb.BinaryReader): GetNeuronsFundAuditInfoResponse; +} + +export namespace GetNeuronsFundAuditInfoResponse { + export type AsObject = { + err?: GovernanceError.AsObject, + ok?: GetNeuronsFundAuditInfoResponse.Ok.AsObject, + } + + export class Ok extends jspb.Message { + hasNeuronsFundAuditInfo(): boolean; + clearNeuronsFundAuditInfo(): void; + getNeuronsFundAuditInfo(): NeuronsFundAuditInfo | undefined; + setNeuronsFundAuditInfo(value?: NeuronsFundAuditInfo): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Ok.AsObject; + static toObject(includeInstance: boolean, msg: Ok): Ok.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Ok, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Ok; + static deserializeBinaryFromReader(message: Ok, reader: jspb.BinaryReader): Ok; + } + + export namespace Ok { + export type AsObject = { + neuronsFundAuditInfo?: NeuronsFundAuditInfo.AsObject, + } + } + + export enum ResultCase { + RESULT_NOT_SET = 0, + ERR = 1, + OK = 2, + } +} + +export class NeuronsFundParticipation extends jspb.Message { + hasIdealMatchedParticipationFunction(): boolean; + clearIdealMatchedParticipationFunction(): void; + getIdealMatchedParticipationFunction(): IdealMatchedParticipationFunction | undefined; + setIdealMatchedParticipationFunction(value?: IdealMatchedParticipationFunction): void; + + hasNeuronsFundReserves(): boolean; + clearNeuronsFundReserves(): void; + getNeuronsFundReserves(): NeuronsFundSnapshot | undefined; + setNeuronsFundReserves(value?: NeuronsFundSnapshot): void; + + hasSwapParticipationLimits(): boolean; + clearSwapParticipationLimits(): void; + getSwapParticipationLimits(): SwapParticipationLimits | undefined; + setSwapParticipationLimits(value?: SwapParticipationLimits): void; + + hasDirectParticipationIcpE8s(): boolean; + clearDirectParticipationIcpE8s(): void; + getDirectParticipationIcpE8s(): number; + setDirectParticipationIcpE8s(value: number): void; + + hasTotalMaturityEquivalentIcpE8s(): boolean; + clearTotalMaturityEquivalentIcpE8s(): void; + getTotalMaturityEquivalentIcpE8s(): number; + setTotalMaturityEquivalentIcpE8s(value: number): void; + + hasMaxNeuronsFundSwapParticipationIcpE8s(): boolean; + clearMaxNeuronsFundSwapParticipationIcpE8s(): void; + getMaxNeuronsFundSwapParticipationIcpE8s(): number; + setMaxNeuronsFundSwapParticipationIcpE8s(value: number): void; + + hasIntendedNeuronsFundParticipationIcpE8s(): boolean; + clearIntendedNeuronsFundParticipationIcpE8s(): void; + getIntendedNeuronsFundParticipationIcpE8s(): number; + setIntendedNeuronsFundParticipationIcpE8s(value: number): void; + + hasAllocatedNeuronsFundParticipationIcpE8s(): boolean; + clearAllocatedNeuronsFundParticipationIcpE8s(): void; + getAllocatedNeuronsFundParticipationIcpE8s(): number; + setAllocatedNeuronsFundParticipationIcpE8s(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NeuronsFundParticipation.AsObject; + static toObject(includeInstance: boolean, msg: NeuronsFundParticipation): NeuronsFundParticipation.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NeuronsFundParticipation, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NeuronsFundParticipation; + static deserializeBinaryFromReader(message: NeuronsFundParticipation, reader: jspb.BinaryReader): NeuronsFundParticipation; +} + +export namespace NeuronsFundParticipation { + export type AsObject = { + idealMatchedParticipationFunction?: IdealMatchedParticipationFunction.AsObject, + neuronsFundReserves?: NeuronsFundSnapshot.AsObject, + swapParticipationLimits?: SwapParticipationLimits.AsObject, + directParticipationIcpE8s: number, + totalMaturityEquivalentIcpE8s: number, + maxNeuronsFundSwapParticipationIcpE8s: number, + intendedNeuronsFundParticipationIcpE8s: number, + allocatedNeuronsFundParticipationIcpE8s: number, + } +} + +export class IdealMatchedParticipationFunction extends jspb.Message { + hasSerializedRepresentation(): boolean; + clearSerializedRepresentation(): void; + getSerializedRepresentation(): string; + setSerializedRepresentation(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): IdealMatchedParticipationFunction.AsObject; + static toObject(includeInstance: boolean, msg: IdealMatchedParticipationFunction): IdealMatchedParticipationFunction.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: IdealMatchedParticipationFunction, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): IdealMatchedParticipationFunction; + static deserializeBinaryFromReader(message: IdealMatchedParticipationFunction, reader: jspb.BinaryReader): IdealMatchedParticipationFunction; +} + +export namespace IdealMatchedParticipationFunction { + export type AsObject = { + serializedRepresentation: string, + } +} + +export class NeuronsFundSnapshot extends jspb.Message { + clearNeuronsFundNeuronPortionsList(): void; + getNeuronsFundNeuronPortionsList(): Array; + setNeuronsFundNeuronPortionsList(value: Array): void; + addNeuronsFundNeuronPortions(value?: NeuronsFundSnapshot.NeuronsFundNeuronPortion, index?: number): NeuronsFundSnapshot.NeuronsFundNeuronPortion; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NeuronsFundSnapshot.AsObject; + static toObject(includeInstance: boolean, msg: NeuronsFundSnapshot): NeuronsFundSnapshot.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NeuronsFundSnapshot, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NeuronsFundSnapshot; + static deserializeBinaryFromReader(message: NeuronsFundSnapshot, reader: jspb.BinaryReader): NeuronsFundSnapshot; +} + +export namespace NeuronsFundSnapshot { + export type AsObject = { + neuronsFundNeuronPortionsList: Array, + } + + export class NeuronsFundNeuronPortion extends jspb.Message { + hasNnsNeuronId(): boolean; + clearNnsNeuronId(): void; + getNnsNeuronId(): nns_common_pb.NeuronId | undefined; + setNnsNeuronId(value?: nns_common_pb.NeuronId): void; + + hasAmountIcpE8s(): boolean; + clearAmountIcpE8s(): void; + getAmountIcpE8s(): number; + setAmountIcpE8s(value: number): void; + + hasMaturityEquivalentIcpE8s(): boolean; + clearMaturityEquivalentIcpE8s(): void; + getMaturityEquivalentIcpE8s(): number; + setMaturityEquivalentIcpE8s(value: number): void; + + hasHotkeyPrincipal(): boolean; + clearHotkeyPrincipal(): void; + getHotkeyPrincipal(): base_types_pb.PrincipalId | undefined; + setHotkeyPrincipal(value?: base_types_pb.PrincipalId): void; + + hasIsCapped(): boolean; + clearIsCapped(): void; + getIsCapped(): boolean; + setIsCapped(value: boolean): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NeuronsFundNeuronPortion.AsObject; + static toObject(includeInstance: boolean, msg: NeuronsFundNeuronPortion): NeuronsFundNeuronPortion.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NeuronsFundNeuronPortion, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NeuronsFundNeuronPortion; + static deserializeBinaryFromReader(message: NeuronsFundNeuronPortion, reader: jspb.BinaryReader): NeuronsFundNeuronPortion; + } + + export namespace NeuronsFundNeuronPortion { + export type AsObject = { + nnsNeuronId?: nns_common_pb.NeuronId.AsObject, + amountIcpE8s: number, + maturityEquivalentIcpE8s: number, + hotkeyPrincipal?: base_types_pb.PrincipalId.AsObject, + isCapped: boolean, + } + } +} + +export class SwapParticipationLimits extends jspb.Message { + hasMinDirectParticipationIcpE8s(): boolean; + clearMinDirectParticipationIcpE8s(): void; + getMinDirectParticipationIcpE8s(): number; + setMinDirectParticipationIcpE8s(value: number): void; + + hasMaxDirectParticipationIcpE8s(): boolean; + clearMaxDirectParticipationIcpE8s(): void; + getMaxDirectParticipationIcpE8s(): number; + setMaxDirectParticipationIcpE8s(value: number): void; + + hasMinParticipantIcpE8s(): boolean; + clearMinParticipantIcpE8s(): void; + getMinParticipantIcpE8s(): number; + setMinParticipantIcpE8s(value: number): void; + + hasMaxParticipantIcpE8s(): boolean; + clearMaxParticipantIcpE8s(): void; + getMaxParticipantIcpE8s(): number; + setMaxParticipantIcpE8s(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SwapParticipationLimits.AsObject; + static toObject(includeInstance: boolean, msg: SwapParticipationLimits): SwapParticipationLimits.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SwapParticipationLimits, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SwapParticipationLimits; + static deserializeBinaryFromReader(message: SwapParticipationLimits, reader: jspb.BinaryReader): SwapParticipationLimits; +} - hasFollow(): boolean; - clearFollow(): void; - getFollow(): ManageNeuron.Follow | undefined; - setFollow(value?: ManageNeuron.Follow): void; +export namespace SwapParticipationLimits { + export type AsObject = { + minDirectParticipationIcpE8s: number, + maxDirectParticipationIcpE8s: number, + minParticipantIcpE8s: number, + maxParticipantIcpE8s: number, + } +} - hasRegisterVote(): boolean; - clearRegisterVote(): void; - getRegisterVote(): ManageNeuron.RegisterVote | undefined; - setRegisterVote(value?: ManageNeuron.RegisterVote): void; +export class DerivedProposalInformation extends jspb.Message { + hasSwapBackgroundInformation(): boolean; + clearSwapBackgroundInformation(): void; + getSwapBackgroundInformation(): SwapBackgroundInformation | undefined; + setSwapBackgroundInformation(value?: SwapBackgroundInformation): void; - hasMergeMaturity(): boolean; - clearMergeMaturity(): void; - getMergeMaturity(): ManageNeuron.MergeMaturity | undefined; - setMergeMaturity(value?: ManageNeuron.MergeMaturity): void; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DerivedProposalInformation.AsObject; + static toObject(includeInstance: boolean, msg: DerivedProposalInformation): DerivedProposalInformation.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DerivedProposalInformation, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DerivedProposalInformation; + static deserializeBinaryFromReader(message: DerivedProposalInformation, reader: jspb.BinaryReader): DerivedProposalInformation; +} - hasMerge(): boolean; - clearMerge(): void; - getMerge(): ManageNeuron.Merge | undefined; - setMerge(value?: ManageNeuron.Merge): void; +export namespace DerivedProposalInformation { + export type AsObject = { + swapBackgroundInformation?: SwapBackgroundInformation.AsObject, + } +} + +export class SwapBackgroundInformation extends jspb.Message { + clearFallbackControllerPrincipalIdsList(): void; + getFallbackControllerPrincipalIdsList(): Array; + setFallbackControllerPrincipalIdsList(value: Array): void; + addFallbackControllerPrincipalIds(value?: base_types_pb.PrincipalId, index?: number): base_types_pb.PrincipalId; + + hasRootCanisterSummary(): boolean; + clearRootCanisterSummary(): void; + getRootCanisterSummary(): SwapBackgroundInformation.CanisterSummary | undefined; + setRootCanisterSummary(value?: SwapBackgroundInformation.CanisterSummary): void; + + hasGovernanceCanisterSummary(): boolean; + clearGovernanceCanisterSummary(): void; + getGovernanceCanisterSummary(): SwapBackgroundInformation.CanisterSummary | undefined; + setGovernanceCanisterSummary(value?: SwapBackgroundInformation.CanisterSummary): void; + + hasLedgerCanisterSummary(): boolean; + clearLedgerCanisterSummary(): void; + getLedgerCanisterSummary(): SwapBackgroundInformation.CanisterSummary | undefined; + setLedgerCanisterSummary(value?: SwapBackgroundInformation.CanisterSummary): void; + + hasSwapCanisterSummary(): boolean; + clearSwapCanisterSummary(): void; + getSwapCanisterSummary(): SwapBackgroundInformation.CanisterSummary | undefined; + setSwapCanisterSummary(value?: SwapBackgroundInformation.CanisterSummary): void; + + clearLedgerArchiveCanisterSummariesList(): void; + getLedgerArchiveCanisterSummariesList(): Array; + setLedgerArchiveCanisterSummariesList(value: Array): void; + addLedgerArchiveCanisterSummaries(value?: SwapBackgroundInformation.CanisterSummary, index?: number): SwapBackgroundInformation.CanisterSummary; + + hasLedgerIndexCanisterSummary(): boolean; + clearLedgerIndexCanisterSummary(): void; + getLedgerIndexCanisterSummary(): SwapBackgroundInformation.CanisterSummary | undefined; + setLedgerIndexCanisterSummary(value?: SwapBackgroundInformation.CanisterSummary): void; + + clearDappCanisterSummariesList(): void; + getDappCanisterSummariesList(): Array; + setDappCanisterSummariesList(value: Array): void; + addDappCanisterSummaries(value?: SwapBackgroundInformation.CanisterSummary, index?: number): SwapBackgroundInformation.CanisterSummary; - getNeuronIdOrSubaccountCase(): ManageNeuron.NeuronIdOrSubaccountCase; - getCommandCase(): ManageNeuron.CommandCase; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ManageNeuron.AsObject; - static toObject(includeInstance: boolean, msg: ManageNeuron): ManageNeuron.AsObject; + toObject(includeInstance?: boolean): SwapBackgroundInformation.AsObject; + static toObject(includeInstance: boolean, msg: SwapBackgroundInformation): SwapBackgroundInformation.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ManageNeuron, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ManageNeuron; - static deserializeBinaryFromReader(message: ManageNeuron, reader: jspb.BinaryReader): ManageNeuron; + static serializeBinaryToWriter(message: SwapBackgroundInformation, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SwapBackgroundInformation; + static deserializeBinaryFromReader(message: SwapBackgroundInformation, reader: jspb.BinaryReader): SwapBackgroundInformation; } -export namespace ManageNeuron { +export namespace SwapBackgroundInformation { export type AsObject = { - id?: base_types_pb.NeuronId.AsObject, - subaccount: Uint8Array | string, - neuronId?: base_types_pb.NeuronId.AsObject, - configure?: ManageNeuron.Configure.AsObject, - disburse?: ManageNeuron.Disburse.AsObject, - spawn?: ManageNeuron.Spawn.AsObject, - follow?: ManageNeuron.Follow.AsObject, - registerVote?: ManageNeuron.RegisterVote.AsObject, - mergeMaturity?: ManageNeuron.MergeMaturity.AsObject, - merge?: ManageNeuron.Merge.AsObject, + fallbackControllerPrincipalIdsList: Array, + rootCanisterSummary?: SwapBackgroundInformation.CanisterSummary.AsObject, + governanceCanisterSummary?: SwapBackgroundInformation.CanisterSummary.AsObject, + ledgerCanisterSummary?: SwapBackgroundInformation.CanisterSummary.AsObject, + swapCanisterSummary?: SwapBackgroundInformation.CanisterSummary.AsObject, + ledgerArchiveCanisterSummariesList: Array, + ledgerIndexCanisterSummary?: SwapBackgroundInformation.CanisterSummary.AsObject, + dappCanisterSummariesList: Array, } - export class IncreaseDissolveDelay extends jspb.Message { - getAdditionalDissolveDelaySeconds(): number; - setAdditionalDissolveDelaySeconds(value: number): void; + export class CanisterSummary extends jspb.Message { + hasCanisterId(): boolean; + clearCanisterId(): void; + getCanisterId(): base_types_pb.PrincipalId | undefined; + setCanisterId(value?: base_types_pb.PrincipalId): void; + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): SwapBackgroundInformation.CanisterStatusResultV2 | undefined; + setStatus(value?: SwapBackgroundInformation.CanisterStatusResultV2): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): IncreaseDissolveDelay.AsObject; - static toObject(includeInstance: boolean, msg: IncreaseDissolveDelay): IncreaseDissolveDelay.AsObject; + toObject(includeInstance?: boolean): CanisterSummary.AsObject; + static toObject(includeInstance: boolean, msg: CanisterSummary): CanisterSummary.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: IncreaseDissolveDelay, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): IncreaseDissolveDelay; - static deserializeBinaryFromReader(message: IncreaseDissolveDelay, reader: jspb.BinaryReader): IncreaseDissolveDelay; + static serializeBinaryToWriter(message: CanisterSummary, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CanisterSummary; + static deserializeBinaryFromReader(message: CanisterSummary, reader: jspb.BinaryReader): CanisterSummary; } - export namespace IncreaseDissolveDelay { + export namespace CanisterSummary { export type AsObject = { - additionalDissolveDelaySeconds: number, + canisterId?: base_types_pb.PrincipalId.AsObject, + status?: SwapBackgroundInformation.CanisterStatusResultV2.AsObject, } } - export class StartDissolving extends jspb.Message { + export class CanisterStatusResultV2 extends jspb.Message { + hasStatus(): boolean; + clearStatus(): void; + getStatus(): SwapBackgroundInformation.CanisterStatusTypeMap[keyof SwapBackgroundInformation.CanisterStatusTypeMap]; + setStatus(value: SwapBackgroundInformation.CanisterStatusTypeMap[keyof SwapBackgroundInformation.CanisterStatusTypeMap]): void; + + getModuleHash(): Uint8Array | string; + getModuleHash_asU8(): Uint8Array; + getModuleHash_asB64(): string; + setModuleHash(value: Uint8Array | string): void; + + clearControllersList(): void; + getControllersList(): Array; + setControllersList(value: Array): void; + addControllers(value?: base_types_pb.PrincipalId, index?: number): base_types_pb.PrincipalId; + + hasMemorySize(): boolean; + clearMemorySize(): void; + getMemorySize(): number; + setMemorySize(value: number): void; + + hasCycles(): boolean; + clearCycles(): void; + getCycles(): number; + setCycles(value: number): void; + + hasFreezingThreshold(): boolean; + clearFreezingThreshold(): void; + getFreezingThreshold(): number; + setFreezingThreshold(value: number): void; + + hasIdleCyclesBurnedPerDay(): boolean; + clearIdleCyclesBurnedPerDay(): void; + getIdleCyclesBurnedPerDay(): number; + setIdleCyclesBurnedPerDay(value: number): void; + serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StartDissolving.AsObject; - static toObject(includeInstance: boolean, msg: StartDissolving): StartDissolving.AsObject; + toObject(includeInstance?: boolean): CanisterStatusResultV2.AsObject; + static toObject(includeInstance: boolean, msg: CanisterStatusResultV2): CanisterStatusResultV2.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StartDissolving, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StartDissolving; - static deserializeBinaryFromReader(message: StartDissolving, reader: jspb.BinaryReader): StartDissolving; + static serializeBinaryToWriter(message: CanisterStatusResultV2, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CanisterStatusResultV2; + static deserializeBinaryFromReader(message: CanisterStatusResultV2, reader: jspb.BinaryReader): CanisterStatusResultV2; } - export namespace StartDissolving { + export namespace CanisterStatusResultV2 { export type AsObject = { + status: SwapBackgroundInformation.CanisterStatusTypeMap[keyof SwapBackgroundInformation.CanisterStatusTypeMap], + moduleHash: Uint8Array | string, + controllersList: Array, + memorySize: number, + cycles: number, + freezingThreshold: number, + idleCyclesBurnedPerDay: number, } } - export class StopDissolving extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): StopDissolving.AsObject; - static toObject(includeInstance: boolean, msg: StopDissolving): StopDissolving.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: StopDissolving, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): StopDissolving; - static deserializeBinaryFromReader(message: StopDissolving, reader: jspb.BinaryReader): StopDissolving; + export interface CanisterStatusTypeMap { + CANISTER_STATUS_TYPE_UNSPECIFIED: 0; + CANISTER_STATUS_TYPE_RUNNING: 1; + CANISTER_STATUS_TYPE_STOPPING: 2; + CANISTER_STATUS_TYPE_STOPPED: 3; } - export namespace StopDissolving { - export type AsObject = { - } + export const CanisterStatusType: CanisterStatusTypeMap; +} + +export class WaitForQuietState extends jspb.Message { + getCurrentDeadlineTimestampSeconds(): number; + setCurrentDeadlineTimestampSeconds(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): WaitForQuietState.AsObject; + static toObject(includeInstance: boolean, msg: WaitForQuietState): WaitForQuietState.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: WaitForQuietState, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): WaitForQuietState; + static deserializeBinaryFromReader(message: WaitForQuietState, reader: jspb.BinaryReader): WaitForQuietState; +} + +export namespace WaitForQuietState { + export type AsObject = { + currentDeadlineTimestampSeconds: number, } +} - export class AddHotKey extends jspb.Message { - hasNewHotKey(): boolean; - clearNewHotKey(): void; - getNewHotKey(): base_types_pb.PrincipalId | undefined; - setNewHotKey(value?: base_types_pb.PrincipalId): void; +export class ProposalInfo extends jspb.Message { + hasId(): boolean; + clearId(): void; + getId(): nns_common_pb.ProposalId | undefined; + setId(value?: nns_common_pb.ProposalId): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): AddHotKey.AsObject; - static toObject(includeInstance: boolean, msg: AddHotKey): AddHotKey.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: AddHotKey, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): AddHotKey; - static deserializeBinaryFromReader(message: AddHotKey, reader: jspb.BinaryReader): AddHotKey; + hasProposer(): boolean; + clearProposer(): void; + getProposer(): nns_common_pb.NeuronId | undefined; + setProposer(value?: nns_common_pb.NeuronId): void; + + getRejectCostE8s(): number; + setRejectCostE8s(value: number): void; + + hasProposal(): boolean; + clearProposal(): void; + getProposal(): Proposal | undefined; + setProposal(value?: Proposal): void; + + getProposalTimestampSeconds(): number; + setProposalTimestampSeconds(value: number): void; + + getBallotsMap(): jspb.Map; + clearBallotsMap(): void; + hasLatestTally(): boolean; + clearLatestTally(): void; + getLatestTally(): Tally | undefined; + setLatestTally(value?: Tally): void; + + getDecidedTimestampSeconds(): number; + setDecidedTimestampSeconds(value: number): void; + + getExecutedTimestampSeconds(): number; + setExecutedTimestampSeconds(value: number): void; + + getFailedTimestampSeconds(): number; + setFailedTimestampSeconds(value: number): void; + + hasFailureReason(): boolean; + clearFailureReason(): void; + getFailureReason(): GovernanceError | undefined; + setFailureReason(value?: GovernanceError): void; + + getRewardEventRound(): number; + setRewardEventRound(value: number): void; + + getTopic(): TopicMap[keyof TopicMap]; + setTopic(value: TopicMap[keyof TopicMap]): void; + + getStatus(): ProposalStatusMap[keyof ProposalStatusMap]; + setStatus(value: ProposalStatusMap[keyof ProposalStatusMap]): void; + + getRewardStatus(): ProposalRewardStatusMap[keyof ProposalRewardStatusMap]; + setRewardStatus(value: ProposalRewardStatusMap[keyof ProposalRewardStatusMap]): void; + + hasDeadlineTimestampSeconds(): boolean; + clearDeadlineTimestampSeconds(): void; + getDeadlineTimestampSeconds(): number; + setDeadlineTimestampSeconds(value: number): void; + + hasDerivedProposalInformation(): boolean; + clearDerivedProposalInformation(): void; + getDerivedProposalInformation(): DerivedProposalInformation | undefined; + setDerivedProposalInformation(value?: DerivedProposalInformation): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProposalInfo.AsObject; + static toObject(includeInstance: boolean, msg: ProposalInfo): ProposalInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProposalInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProposalInfo; + static deserializeBinaryFromReader(message: ProposalInfo, reader: jspb.BinaryReader): ProposalInfo; +} + +export namespace ProposalInfo { + export type AsObject = { + id?: nns_common_pb.ProposalId.AsObject, + proposer?: nns_common_pb.NeuronId.AsObject, + rejectCostE8s: number, + proposal?: Proposal.AsObject, + proposalTimestampSeconds: number, + ballotsMap: Array<[number, Ballot.AsObject]>, + latestTally?: Tally.AsObject, + decidedTimestampSeconds: number, + executedTimestampSeconds: number, + failedTimestampSeconds: number, + failureReason?: GovernanceError.AsObject, + rewardEventRound: number, + topic: TopicMap[keyof TopicMap], + status: ProposalStatusMap[keyof ProposalStatusMap], + rewardStatus: ProposalRewardStatusMap[keyof ProposalRewardStatusMap], + deadlineTimestampSeconds: number, + derivedProposalInformation?: DerivedProposalInformation.AsObject, } +} - export namespace AddHotKey { - export type AsObject = { - newHotKey?: base_types_pb.PrincipalId.AsObject, - } +export class NetworkEconomics extends jspb.Message { + getRejectCostE8s(): number; + setRejectCostE8s(value: number): void; + + getNeuronMinimumStakeE8s(): number; + setNeuronMinimumStakeE8s(value: number): void; + + getNeuronManagementFeePerProposalE8s(): number; + setNeuronManagementFeePerProposalE8s(value: number): void; + + getMinimumIcpXdrRate(): number; + setMinimumIcpXdrRate(value: number): void; + + getNeuronSpawnDissolveDelaySeconds(): number; + setNeuronSpawnDissolveDelaySeconds(value: number): void; + + getMaximumNodeProviderRewardsE8s(): number; + setMaximumNodeProviderRewardsE8s(value: number): void; + + getTransactionFeeE8s(): number; + setTransactionFeeE8s(value: number): void; + + getMaxProposalsToKeepPerTopic(): number; + setMaxProposalsToKeepPerTopic(value: number): void; + + hasNeuronsFundEconomics(): boolean; + clearNeuronsFundEconomics(): void; + getNeuronsFundEconomics(): NeuronsFundEconomics | undefined; + setNeuronsFundEconomics(value?: NeuronsFundEconomics): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NetworkEconomics.AsObject; + static toObject(includeInstance: boolean, msg: NetworkEconomics): NetworkEconomics.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NetworkEconomics, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NetworkEconomics; + static deserializeBinaryFromReader(message: NetworkEconomics, reader: jspb.BinaryReader): NetworkEconomics; +} + +export namespace NetworkEconomics { + export type AsObject = { + rejectCostE8s: number, + neuronMinimumStakeE8s: number, + neuronManagementFeePerProposalE8s: number, + minimumIcpXdrRate: number, + neuronSpawnDissolveDelaySeconds: number, + maximumNodeProviderRewardsE8s: number, + transactionFeeE8s: number, + maxProposalsToKeepPerTopic: number, + neuronsFundEconomics?: NeuronsFundEconomics.AsObject, } +} - export class RemoveHotKey extends jspb.Message { - hasHotKeyToRemove(): boolean; - clearHotKeyToRemove(): void; - getHotKeyToRemove(): base_types_pb.PrincipalId | undefined; - setHotKeyToRemove(value?: base_types_pb.PrincipalId): void; +export class NeuronsFundMatchedFundingCurveCoefficients extends jspb.Message { + hasContributionThresholdXdr(): boolean; + clearContributionThresholdXdr(): void; + getContributionThresholdXdr(): nervous_system_pb.Decimal | undefined; + setContributionThresholdXdr(value?: nervous_system_pb.Decimal): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RemoveHotKey.AsObject; - static toObject(includeInstance: boolean, msg: RemoveHotKey): RemoveHotKey.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RemoveHotKey, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RemoveHotKey; - static deserializeBinaryFromReader(message: RemoveHotKey, reader: jspb.BinaryReader): RemoveHotKey; + hasOneThirdParticipationMilestoneXdr(): boolean; + clearOneThirdParticipationMilestoneXdr(): void; + getOneThirdParticipationMilestoneXdr(): nervous_system_pb.Decimal | undefined; + setOneThirdParticipationMilestoneXdr(value?: nervous_system_pb.Decimal): void; + + hasFullParticipationMilestoneXdr(): boolean; + clearFullParticipationMilestoneXdr(): void; + getFullParticipationMilestoneXdr(): nervous_system_pb.Decimal | undefined; + setFullParticipationMilestoneXdr(value?: nervous_system_pb.Decimal): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NeuronsFundMatchedFundingCurveCoefficients.AsObject; + static toObject(includeInstance: boolean, msg: NeuronsFundMatchedFundingCurveCoefficients): NeuronsFundMatchedFundingCurveCoefficients.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NeuronsFundMatchedFundingCurveCoefficients, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NeuronsFundMatchedFundingCurveCoefficients; + static deserializeBinaryFromReader(message: NeuronsFundMatchedFundingCurveCoefficients, reader: jspb.BinaryReader): NeuronsFundMatchedFundingCurveCoefficients; +} + +export namespace NeuronsFundMatchedFundingCurveCoefficients { + export type AsObject = { + contributionThresholdXdr?: nervous_system_pb.Decimal.AsObject, + oneThirdParticipationMilestoneXdr?: nervous_system_pb.Decimal.AsObject, + fullParticipationMilestoneXdr?: nervous_system_pb.Decimal.AsObject, } +} - export namespace RemoveHotKey { - export type AsObject = { - hotKeyToRemove?: base_types_pb.PrincipalId.AsObject, - } +export class NeuronsFundEconomics extends jspb.Message { + hasMaxTheoreticalNeuronsFundParticipationAmountXdr(): boolean; + clearMaxTheoreticalNeuronsFundParticipationAmountXdr(): void; + getMaxTheoreticalNeuronsFundParticipationAmountXdr(): nervous_system_pb.Decimal | undefined; + setMaxTheoreticalNeuronsFundParticipationAmountXdr(value?: nervous_system_pb.Decimal): void; + + hasNeuronsFundMatchedFundingCurveCoefficients(): boolean; + clearNeuronsFundMatchedFundingCurveCoefficients(): void; + getNeuronsFundMatchedFundingCurveCoefficients(): NeuronsFundMatchedFundingCurveCoefficients | undefined; + setNeuronsFundMatchedFundingCurveCoefficients(value?: NeuronsFundMatchedFundingCurveCoefficients): void; + + hasMinimumIcpXdrRate(): boolean; + clearMinimumIcpXdrRate(): void; + getMinimumIcpXdrRate(): nervous_system_pb.Percentage | undefined; + setMinimumIcpXdrRate(value?: nervous_system_pb.Percentage): void; + + hasMaximumIcpXdrRate(): boolean; + clearMaximumIcpXdrRate(): void; + getMaximumIcpXdrRate(): nervous_system_pb.Percentage | undefined; + setMaximumIcpXdrRate(value?: nervous_system_pb.Percentage): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NeuronsFundEconomics.AsObject; + static toObject(includeInstance: boolean, msg: NeuronsFundEconomics): NeuronsFundEconomics.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NeuronsFundEconomics, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NeuronsFundEconomics; + static deserializeBinaryFromReader(message: NeuronsFundEconomics, reader: jspb.BinaryReader): NeuronsFundEconomics; +} + +export namespace NeuronsFundEconomics { + export type AsObject = { + maxTheoreticalNeuronsFundParticipationAmountXdr?: nervous_system_pb.Decimal.AsObject, + neuronsFundMatchedFundingCurveCoefficients?: NeuronsFundMatchedFundingCurveCoefficients.AsObject, + minimumIcpXdrRate?: nervous_system_pb.Percentage.AsObject, + maximumIcpXdrRate?: nervous_system_pb.Percentage.AsObject, } +} - export class Configure extends jspb.Message { - hasIncreaseDissolveDelay(): boolean; - clearIncreaseDissolveDelay(): void; - getIncreaseDissolveDelay(): ManageNeuron.IncreaseDissolveDelay | undefined; - setIncreaseDissolveDelay(value?: ManageNeuron.IncreaseDissolveDelay): void; +export class RewardEvent extends jspb.Message { + getDayAfterGenesis(): number; + setDayAfterGenesis(value: number): void; - hasStartDissolving(): boolean; - clearStartDissolving(): void; - getStartDissolving(): ManageNeuron.StartDissolving | undefined; - setStartDissolving(value?: ManageNeuron.StartDissolving): void; + getActualTimestampSeconds(): number; + setActualTimestampSeconds(value: number): void; - hasStopDissolving(): boolean; - clearStopDissolving(): void; - getStopDissolving(): ManageNeuron.StopDissolving | undefined; - setStopDissolving(value?: ManageNeuron.StopDissolving): void; + clearSettledProposalsList(): void; + getSettledProposalsList(): Array; + setSettledProposalsList(value: Array): void; + addSettledProposals(value?: nns_common_pb.ProposalId, index?: number): nns_common_pb.ProposalId; - hasAddHotKey(): boolean; - clearAddHotKey(): void; - getAddHotKey(): ManageNeuron.AddHotKey | undefined; - setAddHotKey(value?: ManageNeuron.AddHotKey): void; + getDistributedE8sEquivalent(): number; + setDistributedE8sEquivalent(value: number): void; - hasRemoveHotKey(): boolean; - clearRemoveHotKey(): void; - getRemoveHotKey(): ManageNeuron.RemoveHotKey | undefined; - setRemoveHotKey(value?: ManageNeuron.RemoveHotKey): void; + getTotalAvailableE8sEquivalent(): number; + setTotalAvailableE8sEquivalent(value: number): void; + + hasLatestRoundAvailableE8sEquivalent(): boolean; + clearLatestRoundAvailableE8sEquivalent(): void; + getLatestRoundAvailableE8sEquivalent(): number; + setLatestRoundAvailableE8sEquivalent(value: number): void; + + hasRoundsSinceLastDistribution(): boolean; + clearRoundsSinceLastDistribution(): void; + getRoundsSinceLastDistribution(): number; + setRoundsSinceLastDistribution(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RewardEvent.AsObject; + static toObject(includeInstance: boolean, msg: RewardEvent): RewardEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RewardEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RewardEvent; + static deserializeBinaryFromReader(message: RewardEvent, reader: jspb.BinaryReader): RewardEvent; +} + +export namespace RewardEvent { + export type AsObject = { + dayAfterGenesis: number, + actualTimestampSeconds: number, + settledProposalsList: Array, + distributedE8sEquivalent: number, + totalAvailableE8sEquivalent: number, + latestRoundAvailableE8sEquivalent: number, + roundsSinceLastDistribution: number, + } +} + +export class KnownNeuron extends jspb.Message { + hasId(): boolean; + clearId(): void; + getId(): nns_common_pb.NeuronId | undefined; + setId(value?: nns_common_pb.NeuronId): void; + + hasKnownNeuronData(): boolean; + clearKnownNeuronData(): void; + getKnownNeuronData(): KnownNeuronData | undefined; + setKnownNeuronData(value?: KnownNeuronData): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): KnownNeuron.AsObject; + static toObject(includeInstance: boolean, msg: KnownNeuron): KnownNeuron.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: KnownNeuron, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): KnownNeuron; + static deserializeBinaryFromReader(message: KnownNeuron, reader: jspb.BinaryReader): KnownNeuron; +} + +export namespace KnownNeuron { + export type AsObject = { + id?: nns_common_pb.NeuronId.AsObject, + knownNeuronData?: KnownNeuronData.AsObject, + } +} + +export class KnownNeuronData extends jspb.Message { + getName(): string; + setName(value: string): void; + + hasDescription(): boolean; + clearDescription(): void; + getDescription(): string; + setDescription(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): KnownNeuronData.AsObject; + static toObject(includeInstance: boolean, msg: KnownNeuronData): KnownNeuronData.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: KnownNeuronData, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): KnownNeuronData; + static deserializeBinaryFromReader(message: KnownNeuronData, reader: jspb.BinaryReader): KnownNeuronData; +} + +export namespace KnownNeuronData { + export type AsObject = { + name: string, + description: string, + } +} + +export class OpenSnsTokenSwap extends jspb.Message { + hasTargetSwapCanisterId(): boolean; + clearTargetSwapCanisterId(): void; + getTargetSwapCanisterId(): base_types_pb.PrincipalId | undefined; + setTargetSwapCanisterId(value?: base_types_pb.PrincipalId): void; + + hasParams(): boolean; + clearParams(): void; + getParams(): swap_pb.Params | undefined; + setParams(value?: swap_pb.Params): void; + + hasCommunityFundInvestmentE8s(): boolean; + clearCommunityFundInvestmentE8s(): void; + getCommunityFundInvestmentE8s(): number; + setCommunityFundInvestmentE8s(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): OpenSnsTokenSwap.AsObject; + static toObject(includeInstance: boolean, msg: OpenSnsTokenSwap): OpenSnsTokenSwap.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: OpenSnsTokenSwap, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): OpenSnsTokenSwap; + static deserializeBinaryFromReader(message: OpenSnsTokenSwap, reader: jspb.BinaryReader): OpenSnsTokenSwap; +} + +export namespace OpenSnsTokenSwap { + export type AsObject = { + targetSwapCanisterId?: base_types_pb.PrincipalId.AsObject, + params?: swap_pb.Params.AsObject, + communityFundInvestmentE8s: number, + } +} + +export class CreateServiceNervousSystem extends jspb.Message { + hasName(): boolean; + clearName(): void; + getName(): string; + setName(value: string): void; + + hasDescription(): boolean; + clearDescription(): void; + getDescription(): string; + setDescription(value: string): void; + + hasUrl(): boolean; + clearUrl(): void; + getUrl(): string; + setUrl(value: string): void; + + hasLogo(): boolean; + clearLogo(): void; + getLogo(): nervous_system_pb.Image | undefined; + setLogo(value?: nervous_system_pb.Image): void; + + clearFallbackControllerPrincipalIdsList(): void; + getFallbackControllerPrincipalIdsList(): Array; + setFallbackControllerPrincipalIdsList(value: Array): void; + addFallbackControllerPrincipalIds(value?: base_types_pb.PrincipalId, index?: number): base_types_pb.PrincipalId; + + clearDappCanistersList(): void; + getDappCanistersList(): Array; + setDappCanistersList(value: Array): void; + addDappCanisters(value?: nervous_system_pb.Canister, index?: number): nervous_system_pb.Canister; + + hasInitialTokenDistribution(): boolean; + clearInitialTokenDistribution(): void; + getInitialTokenDistribution(): CreateServiceNervousSystem.InitialTokenDistribution | undefined; + setInitialTokenDistribution(value?: CreateServiceNervousSystem.InitialTokenDistribution): void; + + hasSwapParameters(): boolean; + clearSwapParameters(): void; + getSwapParameters(): CreateServiceNervousSystem.SwapParameters | undefined; + setSwapParameters(value?: CreateServiceNervousSystem.SwapParameters): void; + + hasLedgerParameters(): boolean; + clearLedgerParameters(): void; + getLedgerParameters(): CreateServiceNervousSystem.LedgerParameters | undefined; + setLedgerParameters(value?: CreateServiceNervousSystem.LedgerParameters): void; + + hasGovernanceParameters(): boolean; + clearGovernanceParameters(): void; + getGovernanceParameters(): CreateServiceNervousSystem.GovernanceParameters | undefined; + setGovernanceParameters(value?: CreateServiceNervousSystem.GovernanceParameters): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateServiceNervousSystem.AsObject; + static toObject(includeInstance: boolean, msg: CreateServiceNervousSystem): CreateServiceNervousSystem.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateServiceNervousSystem, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateServiceNervousSystem; + static deserializeBinaryFromReader(message: CreateServiceNervousSystem, reader: jspb.BinaryReader): CreateServiceNervousSystem; +} + +export namespace CreateServiceNervousSystem { + export type AsObject = { + name: string, + description: string, + url: string, + logo?: nervous_system_pb.Image.AsObject, + fallbackControllerPrincipalIdsList: Array, + dappCanistersList: Array, + initialTokenDistribution?: CreateServiceNervousSystem.InitialTokenDistribution.AsObject, + swapParameters?: CreateServiceNervousSystem.SwapParameters.AsObject, + ledgerParameters?: CreateServiceNervousSystem.LedgerParameters.AsObject, + governanceParameters?: CreateServiceNervousSystem.GovernanceParameters.AsObject, + } + + export class InitialTokenDistribution extends jspb.Message { + hasDeveloperDistribution(): boolean; + clearDeveloperDistribution(): void; + getDeveloperDistribution(): CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution | undefined; + setDeveloperDistribution(value?: CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution): void; - hasJoinCommunityFund(): boolean; - clearJoinCommunityFund(): void; - getJoinCommunityFund(): ManageNeuron.JoinCommunityFund | undefined; - setJoinCommunityFund(value?: ManageNeuron.JoinCommunityFund): void; + hasTreasuryDistribution(): boolean; + clearTreasuryDistribution(): void; + getTreasuryDistribution(): CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution | undefined; + setTreasuryDistribution(value?: CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution): void; + + hasSwapDistribution(): boolean; + clearSwapDistribution(): void; + getSwapDistribution(): CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution | undefined; + setSwapDistribution(value?: CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution): void; - getOperationCase(): Configure.OperationCase; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Configure.AsObject; - static toObject(includeInstance: boolean, msg: Configure): Configure.AsObject; + toObject(includeInstance?: boolean): InitialTokenDistribution.AsObject; + static toObject(includeInstance: boolean, msg: InitialTokenDistribution): InitialTokenDistribution.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Configure, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Configure; - static deserializeBinaryFromReader(message: Configure, reader: jspb.BinaryReader): Configure; + static serializeBinaryToWriter(message: InitialTokenDistribution, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): InitialTokenDistribution; + static deserializeBinaryFromReader(message: InitialTokenDistribution, reader: jspb.BinaryReader): InitialTokenDistribution; } - export namespace Configure { + export namespace InitialTokenDistribution { export type AsObject = { - increaseDissolveDelay?: ManageNeuron.IncreaseDissolveDelay.AsObject, - startDissolving?: ManageNeuron.StartDissolving.AsObject, - stopDissolving?: ManageNeuron.StopDissolving.AsObject, - addHotKey?: ManageNeuron.AddHotKey.AsObject, - removeHotKey?: ManageNeuron.RemoveHotKey.AsObject, - joinCommunityFund?: ManageNeuron.JoinCommunityFund.AsObject, + developerDistribution?: CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.AsObject, + treasuryDistribution?: CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution.AsObject, + swapDistribution?: CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution.AsObject, } - export enum OperationCase { - OPERATION_NOT_SET = 0, - INCREASE_DISSOLVE_DELAY = 1, - START_DISSOLVING = 2, - STOP_DISSOLVING = 3, - ADD_HOT_KEY = 4, - REMOVE_HOT_KEY = 5, - JOIN_COMMUNITY_FUND = 7, + export class DeveloperDistribution extends jspb.Message { + clearDeveloperNeuronsList(): void; + getDeveloperNeuronsList(): Array; + setDeveloperNeuronsList(value: Array): void; + addDeveloperNeurons(value?: CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution, index?: number): CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeveloperDistribution.AsObject; + static toObject(includeInstance: boolean, msg: DeveloperDistribution): DeveloperDistribution.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeveloperDistribution, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeveloperDistribution; + static deserializeBinaryFromReader(message: DeveloperDistribution, reader: jspb.BinaryReader): DeveloperDistribution; } - } - export class Spawn extends jspb.Message { - hasNewController(): boolean; - clearNewController(): void; - getNewController(): base_types_pb.PrincipalId | undefined; - setNewController(value?: base_types_pb.PrincipalId): void; + export namespace DeveloperDistribution { + export type AsObject = { + developerNeuronsList: Array, + } - hasNonce(): boolean; - clearNonce(): void; - getNonce(): number; - setNonce(value: number): void; + export class NeuronDistribution extends jspb.Message { + hasController(): boolean; + clearController(): void; + getController(): base_types_pb.PrincipalId | undefined; + setController(value?: base_types_pb.PrincipalId): void; + + hasDissolveDelay(): boolean; + clearDissolveDelay(): void; + getDissolveDelay(): nervous_system_pb.Duration | undefined; + setDissolveDelay(value?: nervous_system_pb.Duration): void; + + hasMemo(): boolean; + clearMemo(): void; + getMemo(): number; + setMemo(value: number): void; + + hasStake(): boolean; + clearStake(): void; + getStake(): nervous_system_pb.Tokens | undefined; + setStake(value?: nervous_system_pb.Tokens): void; + + hasVestingPeriod(): boolean; + clearVestingPeriod(): void; + getVestingPeriod(): nervous_system_pb.Duration | undefined; + setVestingPeriod(value?: nervous_system_pb.Duration): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NeuronDistribution.AsObject; + static toObject(includeInstance: boolean, msg: NeuronDistribution): NeuronDistribution.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NeuronDistribution, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NeuronDistribution; + static deserializeBinaryFromReader(message: NeuronDistribution, reader: jspb.BinaryReader): NeuronDistribution; + } - hasPercentageToSpawn(): boolean; - clearPercentageToSpawn(): void; - getPercentageToSpawn(): number; - setPercentageToSpawn(value: number): void; + export namespace NeuronDistribution { + export type AsObject = { + controller?: base_types_pb.PrincipalId.AsObject, + dissolveDelay?: nervous_system_pb.Duration.AsObject, + memo: number, + stake?: nervous_system_pb.Tokens.AsObject, + vestingPeriod?: nervous_system_pb.Duration.AsObject, + } + } + } - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Spawn.AsObject; - static toObject(includeInstance: boolean, msg: Spawn): Spawn.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Spawn, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Spawn; - static deserializeBinaryFromReader(message: Spawn, reader: jspb.BinaryReader): Spawn; - } + export class TreasuryDistribution extends jspb.Message { + hasTotal(): boolean; + clearTotal(): void; + getTotal(): nervous_system_pb.Tokens | undefined; + setTotal(value?: nervous_system_pb.Tokens): void; - export namespace Spawn { - export type AsObject = { - newController?: base_types_pb.PrincipalId.AsObject, - nonce: number, - percentageToSpawn: number, + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TreasuryDistribution.AsObject; + static toObject(includeInstance: boolean, msg: TreasuryDistribution): TreasuryDistribution.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TreasuryDistribution, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TreasuryDistribution; + static deserializeBinaryFromReader(message: TreasuryDistribution, reader: jspb.BinaryReader): TreasuryDistribution; } - } - export class Disburse extends jspb.Message { - hasAmount(): boolean; - clearAmount(): void; - getAmount(): ManageNeuron.Disburse.Amount | undefined; - setAmount(value?: ManageNeuron.Disburse.Amount): void; + export namespace TreasuryDistribution { + export type AsObject = { + total?: nervous_system_pb.Tokens.AsObject, + } + } - hasToAccount(): boolean; - clearToAccount(): void; - getToAccount(): ledger_pb.AccountIdentifier | undefined; - setToAccount(value?: ledger_pb.AccountIdentifier): void; + export class SwapDistribution extends jspb.Message { + hasTotal(): boolean; + clearTotal(): void; + getTotal(): nervous_system_pb.Tokens | undefined; + setTotal(value?: nervous_system_pb.Tokens): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SwapDistribution.AsObject; + static toObject(includeInstance: boolean, msg: SwapDistribution): SwapDistribution.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SwapDistribution, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SwapDistribution; + static deserializeBinaryFromReader(message: SwapDistribution, reader: jspb.BinaryReader): SwapDistribution; + } + + export namespace SwapDistribution { + export type AsObject = { + total?: nervous_system_pb.Tokens.AsObject, + } + } + } + + export class SwapParameters extends jspb.Message { + hasMinimumParticipants(): boolean; + clearMinimumParticipants(): void; + getMinimumParticipants(): number; + setMinimumParticipants(value: number): void; + + hasMinimumIcp(): boolean; + clearMinimumIcp(): void; + getMinimumIcp(): nervous_system_pb.Tokens | undefined; + setMinimumIcp(value?: nervous_system_pb.Tokens): void; + + hasMaximumIcp(): boolean; + clearMaximumIcp(): void; + getMaximumIcp(): nervous_system_pb.Tokens | undefined; + setMaximumIcp(value?: nervous_system_pb.Tokens): void; + + hasMinimumDirectParticipationIcp(): boolean; + clearMinimumDirectParticipationIcp(): void; + getMinimumDirectParticipationIcp(): nervous_system_pb.Tokens | undefined; + setMinimumDirectParticipationIcp(value?: nervous_system_pb.Tokens): void; + + hasMaximumDirectParticipationIcp(): boolean; + clearMaximumDirectParticipationIcp(): void; + getMaximumDirectParticipationIcp(): nervous_system_pb.Tokens | undefined; + setMaximumDirectParticipationIcp(value?: nervous_system_pb.Tokens): void; + + hasMinimumParticipantIcp(): boolean; + clearMinimumParticipantIcp(): void; + getMinimumParticipantIcp(): nervous_system_pb.Tokens | undefined; + setMinimumParticipantIcp(value?: nervous_system_pb.Tokens): void; + + hasMaximumParticipantIcp(): boolean; + clearMaximumParticipantIcp(): void; + getMaximumParticipantIcp(): nervous_system_pb.Tokens | undefined; + setMaximumParticipantIcp(value?: nervous_system_pb.Tokens): void; + + hasNeuronBasketConstructionParameters(): boolean; + clearNeuronBasketConstructionParameters(): void; + getNeuronBasketConstructionParameters(): CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters | undefined; + setNeuronBasketConstructionParameters(value?: CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters): void; + + hasConfirmationText(): boolean; + clearConfirmationText(): void; + getConfirmationText(): string; + setConfirmationText(value: string): void; + + hasRestrictedCountries(): boolean; + clearRestrictedCountries(): void; + getRestrictedCountries(): nervous_system_pb.Countries | undefined; + setRestrictedCountries(value?: nervous_system_pb.Countries): void; + + hasStartTime(): boolean; + clearStartTime(): void; + getStartTime(): nervous_system_pb.GlobalTimeOfDay | undefined; + setStartTime(value?: nervous_system_pb.GlobalTimeOfDay): void; + + hasDuration(): boolean; + clearDuration(): void; + getDuration(): nervous_system_pb.Duration | undefined; + setDuration(value?: nervous_system_pb.Duration): void; + + hasNeuronsFundInvestmentIcp(): boolean; + clearNeuronsFundInvestmentIcp(): void; + getNeuronsFundInvestmentIcp(): nervous_system_pb.Tokens | undefined; + setNeuronsFundInvestmentIcp(value?: nervous_system_pb.Tokens): void; + + hasNeuronsFundParticipation(): boolean; + clearNeuronsFundParticipation(): void; + getNeuronsFundParticipation(): boolean; + setNeuronsFundParticipation(value: boolean): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Disburse.AsObject; - static toObject(includeInstance: boolean, msg: Disburse): Disburse.AsObject; + toObject(includeInstance?: boolean): SwapParameters.AsObject; + static toObject(includeInstance: boolean, msg: SwapParameters): SwapParameters.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Disburse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Disburse; - static deserializeBinaryFromReader(message: Disburse, reader: jspb.BinaryReader): Disburse; + static serializeBinaryToWriter(message: SwapParameters, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SwapParameters; + static deserializeBinaryFromReader(message: SwapParameters, reader: jspb.BinaryReader): SwapParameters; } - export namespace Disburse { + export namespace SwapParameters { export type AsObject = { - amount?: ManageNeuron.Disburse.Amount.AsObject, - toAccount?: ledger_pb.AccountIdentifier.AsObject, + minimumParticipants: number, + minimumIcp?: nervous_system_pb.Tokens.AsObject, + maximumIcp?: nervous_system_pb.Tokens.AsObject, + minimumDirectParticipationIcp?: nervous_system_pb.Tokens.AsObject, + maximumDirectParticipationIcp?: nervous_system_pb.Tokens.AsObject, + minimumParticipantIcp?: nervous_system_pb.Tokens.AsObject, + maximumParticipantIcp?: nervous_system_pb.Tokens.AsObject, + neuronBasketConstructionParameters?: CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters.AsObject, + confirmationText: string, + restrictedCountries?: nervous_system_pb.Countries.AsObject, + startTime?: nervous_system_pb.GlobalTimeOfDay.AsObject, + duration?: nervous_system_pb.Duration.AsObject, + neuronsFundInvestmentIcp?: nervous_system_pb.Tokens.AsObject, + neuronsFundParticipation: boolean, } - export class Amount extends jspb.Message { - getE8s(): string; - setE8s(value: string): void; + export class NeuronBasketConstructionParameters extends jspb.Message { + hasCount(): boolean; + clearCount(): void; + getCount(): number; + setCount(value: number): void; + + hasDissolveDelayInterval(): boolean; + clearDissolveDelayInterval(): void; + getDissolveDelayInterval(): nervous_system_pb.Duration | undefined; + setDissolveDelayInterval(value?: nervous_system_pb.Duration): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Amount.AsObject; - static toObject(includeInstance: boolean, msg: Amount): Amount.AsObject; + toObject(includeInstance?: boolean): NeuronBasketConstructionParameters.AsObject; + static toObject(includeInstance: boolean, msg: NeuronBasketConstructionParameters): NeuronBasketConstructionParameters.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Amount, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Amount; - static deserializeBinaryFromReader(message: Amount, reader: jspb.BinaryReader): Amount; + static serializeBinaryToWriter(message: NeuronBasketConstructionParameters, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NeuronBasketConstructionParameters; + static deserializeBinaryFromReader(message: NeuronBasketConstructionParameters, reader: jspb.BinaryReader): NeuronBasketConstructionParameters; } - export namespace Amount { + export namespace NeuronBasketConstructionParameters { export type AsObject = { - e8s: string, + count: number, + dissolveDelayInterval?: nervous_system_pb.Duration.AsObject, } } } - export class Follow extends jspb.Message { - getTopic(): TopicMap[keyof TopicMap]; - setTopic(value: TopicMap[keyof TopicMap]): void; + export class LedgerParameters extends jspb.Message { + hasTransactionFee(): boolean; + clearTransactionFee(): void; + getTransactionFee(): nervous_system_pb.Tokens | undefined; + setTransactionFee(value?: nervous_system_pb.Tokens): void; - clearFolloweesList(): void; - getFolloweesList(): Array; - setFolloweesList(value: Array): void; - addFollowees(value?: base_types_pb.NeuronId, index?: number): base_types_pb.NeuronId; + hasTokenName(): boolean; + clearTokenName(): void; + getTokenName(): string; + setTokenName(value: string): void; + + hasTokenSymbol(): boolean; + clearTokenSymbol(): void; + getTokenSymbol(): string; + setTokenSymbol(value: string): void; + + hasTokenLogo(): boolean; + clearTokenLogo(): void; + getTokenLogo(): nervous_system_pb.Image | undefined; + setTokenLogo(value?: nervous_system_pb.Image): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Follow.AsObject; - static toObject(includeInstance: boolean, msg: Follow): Follow.AsObject; + toObject(includeInstance?: boolean): LedgerParameters.AsObject; + static toObject(includeInstance: boolean, msg: LedgerParameters): LedgerParameters.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Follow, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Follow; - static deserializeBinaryFromReader(message: Follow, reader: jspb.BinaryReader): Follow; + static serializeBinaryToWriter(message: LedgerParameters, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LedgerParameters; + static deserializeBinaryFromReader(message: LedgerParameters, reader: jspb.BinaryReader): LedgerParameters; } - export namespace Follow { + export namespace LedgerParameters { export type AsObject = { - topic: TopicMap[keyof TopicMap], - followeesList: Array, + transactionFee?: nervous_system_pb.Tokens.AsObject, + tokenName: string, + tokenSymbol: string, + tokenLogo?: nervous_system_pb.Image.AsObject, } } - export class RegisterVote extends jspb.Message { - hasProposal(): boolean; - clearProposal(): void; - getProposal(): base_types_pb.ProposalId | undefined; - setProposal(value?: base_types_pb.ProposalId): void; - - getVote(): VoteMap[keyof VoteMap]; - setVote(value: VoteMap[keyof VoteMap]): void; + export class GovernanceParameters extends jspb.Message { + hasProposalRejectionFee(): boolean; + clearProposalRejectionFee(): void; + getProposalRejectionFee(): nervous_system_pb.Tokens | undefined; + setProposalRejectionFee(value?: nervous_system_pb.Tokens): void; + + hasProposalInitialVotingPeriod(): boolean; + clearProposalInitialVotingPeriod(): void; + getProposalInitialVotingPeriod(): nervous_system_pb.Duration | undefined; + setProposalInitialVotingPeriod(value?: nervous_system_pb.Duration): void; + + hasProposalWaitForQuietDeadlineIncrease(): boolean; + clearProposalWaitForQuietDeadlineIncrease(): void; + getProposalWaitForQuietDeadlineIncrease(): nervous_system_pb.Duration | undefined; + setProposalWaitForQuietDeadlineIncrease(value?: nervous_system_pb.Duration): void; + + hasNeuronMinimumStake(): boolean; + clearNeuronMinimumStake(): void; + getNeuronMinimumStake(): nervous_system_pb.Tokens | undefined; + setNeuronMinimumStake(value?: nervous_system_pb.Tokens): void; + + hasNeuronMinimumDissolveDelayToVote(): boolean; + clearNeuronMinimumDissolveDelayToVote(): void; + getNeuronMinimumDissolveDelayToVote(): nervous_system_pb.Duration | undefined; + setNeuronMinimumDissolveDelayToVote(value?: nervous_system_pb.Duration): void; + + hasNeuronMaximumDissolveDelay(): boolean; + clearNeuronMaximumDissolveDelay(): void; + getNeuronMaximumDissolveDelay(): nervous_system_pb.Duration | undefined; + setNeuronMaximumDissolveDelay(value?: nervous_system_pb.Duration): void; + + hasNeuronMaximumDissolveDelayBonus(): boolean; + clearNeuronMaximumDissolveDelayBonus(): void; + getNeuronMaximumDissolveDelayBonus(): nervous_system_pb.Percentage | undefined; + setNeuronMaximumDissolveDelayBonus(value?: nervous_system_pb.Percentage): void; + + hasNeuronMaximumAgeForAgeBonus(): boolean; + clearNeuronMaximumAgeForAgeBonus(): void; + getNeuronMaximumAgeForAgeBonus(): nervous_system_pb.Duration | undefined; + setNeuronMaximumAgeForAgeBonus(value?: nervous_system_pb.Duration): void; + + hasNeuronMaximumAgeBonus(): boolean; + clearNeuronMaximumAgeBonus(): void; + getNeuronMaximumAgeBonus(): nervous_system_pb.Percentage | undefined; + setNeuronMaximumAgeBonus(value?: nervous_system_pb.Percentage): void; + + hasVotingRewardParameters(): boolean; + clearVotingRewardParameters(): void; + getVotingRewardParameters(): CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters | undefined; + setVotingRewardParameters(value?: CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RegisterVote.AsObject; - static toObject(includeInstance: boolean, msg: RegisterVote): RegisterVote.AsObject; + toObject(includeInstance?: boolean): GovernanceParameters.AsObject; + static toObject(includeInstance: boolean, msg: GovernanceParameters): GovernanceParameters.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RegisterVote, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RegisterVote; - static deserializeBinaryFromReader(message: RegisterVote, reader: jspb.BinaryReader): RegisterVote; + static serializeBinaryToWriter(message: GovernanceParameters, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GovernanceParameters; + static deserializeBinaryFromReader(message: GovernanceParameters, reader: jspb.BinaryReader): GovernanceParameters; } - export namespace RegisterVote { + export namespace GovernanceParameters { export type AsObject = { - proposal?: base_types_pb.ProposalId.AsObject, - vote: VoteMap[keyof VoteMap], + proposalRejectionFee?: nervous_system_pb.Tokens.AsObject, + proposalInitialVotingPeriod?: nervous_system_pb.Duration.AsObject, + proposalWaitForQuietDeadlineIncrease?: nervous_system_pb.Duration.AsObject, + neuronMinimumStake?: nervous_system_pb.Tokens.AsObject, + neuronMinimumDissolveDelayToVote?: nervous_system_pb.Duration.AsObject, + neuronMaximumDissolveDelay?: nervous_system_pb.Duration.AsObject, + neuronMaximumDissolveDelayBonus?: nervous_system_pb.Percentage.AsObject, + neuronMaximumAgeForAgeBonus?: nervous_system_pb.Duration.AsObject, + neuronMaximumAgeBonus?: nervous_system_pb.Percentage.AsObject, + votingRewardParameters?: CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.AsObject, } - } - export class Merge extends jspb.Message { - hasSourceNeuronId(): boolean; - clearSourceNeuronId(): void; - getSourceNeuronId(): base_types_pb.NeuronId | undefined; - setSourceNeuronId(value?: base_types_pb.NeuronId): void; + export class VotingRewardParameters extends jspb.Message { + hasInitialRewardRate(): boolean; + clearInitialRewardRate(): void; + getInitialRewardRate(): nervous_system_pb.Percentage | undefined; + setInitialRewardRate(value?: nervous_system_pb.Percentage): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Merge.AsObject; - static toObject(includeInstance: boolean, msg: Merge): Merge.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Merge, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Merge; - static deserializeBinaryFromReader(message: Merge, reader: jspb.BinaryReader): Merge; - } + hasFinalRewardRate(): boolean; + clearFinalRewardRate(): void; + getFinalRewardRate(): nervous_system_pb.Percentage | undefined; + setFinalRewardRate(value?: nervous_system_pb.Percentage): void; - export namespace Merge { - export type AsObject = { - sourceNeuronId?: base_types_pb.NeuronId.AsObject, + hasRewardRateTransitionDuration(): boolean; + clearRewardRateTransitionDuration(): void; + getRewardRateTransitionDuration(): nervous_system_pb.Duration | undefined; + setRewardRateTransitionDuration(value?: nervous_system_pb.Duration): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): VotingRewardParameters.AsObject; + static toObject(includeInstance: boolean, msg: VotingRewardParameters): VotingRewardParameters.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: VotingRewardParameters, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): VotingRewardParameters; + static deserializeBinaryFromReader(message: VotingRewardParameters, reader: jspb.BinaryReader): VotingRewardParameters; + } + + export namespace VotingRewardParameters { + export type AsObject = { + initialRewardRate?: nervous_system_pb.Percentage.AsObject, + finalRewardRate?: nervous_system_pb.Percentage.AsObject, + rewardRateTransitionDuration?: nervous_system_pb.Duration.AsObject, + } } } +} - export class MergeMaturity extends jspb.Message { - getPercentageToMerge(): number; - setPercentageToMerge(value: number): void; +export class Governance extends jspb.Message { + getNeuronsMap(): jspb.Map; + clearNeuronsMap(): void; + getProposalsMap(): jspb.Map; + clearProposalsMap(): void; + clearToClaimTransfersList(): void; + getToClaimTransfersList(): Array; + setToClaimTransfersList(value: Array): void; + addToClaimTransfers(value?: NeuronStakeTransfer, index?: number): NeuronStakeTransfer; + + getWaitForQuietThresholdSeconds(): number; + setWaitForQuietThresholdSeconds(value: number): void; + + hasEconomics(): boolean; + clearEconomics(): void; + getEconomics(): NetworkEconomics | undefined; + setEconomics(value?: NetworkEconomics): void; + + hasLatestRewardEvent(): boolean; + clearLatestRewardEvent(): void; + getLatestRewardEvent(): RewardEvent | undefined; + setLatestRewardEvent(value?: RewardEvent): void; + + getInFlightCommandsMap(): jspb.Map; + clearInFlightCommandsMap(): void; + getGenesisTimestampSeconds(): number; + setGenesisTimestampSeconds(value: number): void; + + clearNodeProvidersList(): void; + getNodeProvidersList(): Array; + setNodeProvidersList(value: Array): void; + addNodeProviders(value?: NodeProvider, index?: number): NodeProvider; + + getDefaultFolloweesMap(): jspb.Map; + clearDefaultFolloweesMap(): void; + getShortVotingPeriodSeconds(): number; + setShortVotingPeriodSeconds(value: number): void; + + hasNeuronManagementVotingPeriodSeconds(): boolean; + clearNeuronManagementVotingPeriodSeconds(): void; + getNeuronManagementVotingPeriodSeconds(): number; + setNeuronManagementVotingPeriodSeconds(value: number): void; + + hasMetrics(): boolean; + clearMetrics(): void; + getMetrics(): Governance.GovernanceCachedMetrics | undefined; + setMetrics(value?: Governance.GovernanceCachedMetrics): void; + + hasMostRecentMonthlyNodeProviderRewards(): boolean; + clearMostRecentMonthlyNodeProviderRewards(): void; + getMostRecentMonthlyNodeProviderRewards(): MostRecentMonthlyNodeProviderRewards | undefined; + setMostRecentMonthlyNodeProviderRewards(value?: MostRecentMonthlyNodeProviderRewards): void; + + hasCachedDailyMaturityModulationBasisPoints(): boolean; + clearCachedDailyMaturityModulationBasisPoints(): void; + getCachedDailyMaturityModulationBasisPoints(): number; + setCachedDailyMaturityModulationBasisPoints(value: number): void; + + hasMaturityModulationLastUpdatedAtTimestampSeconds(): boolean; + clearMaturityModulationLastUpdatedAtTimestampSeconds(): void; + getMaturityModulationLastUpdatedAtTimestampSeconds(): number; + setMaturityModulationLastUpdatedAtTimestampSeconds(value: number): void; + + hasSpawningNeurons(): boolean; + clearSpawningNeurons(): void; + getSpawningNeurons(): boolean; + setSpawningNeurons(value: boolean): void; + + hasMakingSnsProposal(): boolean; + clearMakingSnsProposal(): void; + getMakingSnsProposal(): Governance.MakingSnsProposal | undefined; + setMakingSnsProposal(value?: Governance.MakingSnsProposal): void; + + hasMigrations(): boolean; + clearMigrations(): void; + getMigrations(): Governance.Migrations | undefined; + setMigrations(value?: Governance.Migrations): void; + + getTopicFolloweeIndexMap(): jspb.Map; + clearTopicFolloweeIndexMap(): void; + hasXdrConversionRate(): boolean; + clearXdrConversionRate(): void; + getXdrConversionRate(): XdrConversionRate | undefined; + setXdrConversionRate(value?: XdrConversionRate): void; + + hasRestoreAgingSummary(): boolean; + clearRestoreAgingSummary(): void; + getRestoreAgingSummary(): RestoreAgingSummary | undefined; + setRestoreAgingSummary(value?: RestoreAgingSummary): void; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MergeMaturity.AsObject; - static toObject(includeInstance: boolean, msg: MergeMaturity): MergeMaturity.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MergeMaturity, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MergeMaturity; - static deserializeBinaryFromReader(message: MergeMaturity, reader: jspb.BinaryReader): MergeMaturity; - } + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Governance.AsObject; + static toObject(includeInstance: boolean, msg: Governance): Governance.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Governance, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Governance; + static deserializeBinaryFromReader(message: Governance, reader: jspb.BinaryReader): Governance; +} - export namespace MergeMaturity { - export type AsObject = { - percentageToMerge: number, - } +export namespace Governance { + export type AsObject = { + neuronsMap: Array<[number, Neuron.AsObject]>, + proposalsMap: Array<[number, ProposalData.AsObject]>, + toClaimTransfersList: Array, + waitForQuietThresholdSeconds: number, + economics?: NetworkEconomics.AsObject, + latestRewardEvent?: RewardEvent.AsObject, + inFlightCommandsMap: Array<[number, Governance.NeuronInFlightCommand.AsObject]>, + genesisTimestampSeconds: number, + nodeProvidersList: Array, + defaultFolloweesMap: Array<[number, Neuron.Followees.AsObject]>, + shortVotingPeriodSeconds: number, + neuronManagementVotingPeriodSeconds: number, + metrics?: Governance.GovernanceCachedMetrics.AsObject, + mostRecentMonthlyNodeProviderRewards?: MostRecentMonthlyNodeProviderRewards.AsObject, + cachedDailyMaturityModulationBasisPoints: number, + maturityModulationLastUpdatedAtTimestampSeconds: number, + spawningNeurons: boolean, + makingSnsProposal?: Governance.MakingSnsProposal.AsObject, + migrations?: Governance.Migrations.AsObject, + topicFolloweeIndexMap: Array<[number, Governance.FollowersMap.AsObject]>, + xdrConversionRate?: XdrConversionRate.AsObject, + restoreAgingSummary?: RestoreAgingSummary.AsObject, } - export class JoinCommunityFund extends jspb.Message { + export class NeuronInFlightCommand extends jspb.Message { + getTimestamp(): number; + setTimestamp(value: number): void; + + hasDisburse(): boolean; + clearDisburse(): void; + getDisburse(): ManageNeuron.Disburse | undefined; + setDisburse(value?: ManageNeuron.Disburse): void; + + hasSplit(): boolean; + clearSplit(): void; + getSplit(): ManageNeuron.Split | undefined; + setSplit(value?: ManageNeuron.Split): void; + + hasDisburseToNeuron(): boolean; + clearDisburseToNeuron(): void; + getDisburseToNeuron(): ManageNeuron.DisburseToNeuron | undefined; + setDisburseToNeuron(value?: ManageNeuron.DisburseToNeuron): void; + + hasMergeMaturity(): boolean; + clearMergeMaturity(): void; + getMergeMaturity(): ManageNeuron.MergeMaturity | undefined; + setMergeMaturity(value?: ManageNeuron.MergeMaturity): void; + + hasClaimOrRefreshNeuron(): boolean; + clearClaimOrRefreshNeuron(): void; + getClaimOrRefreshNeuron(): ManageNeuron.ClaimOrRefresh | undefined; + setClaimOrRefreshNeuron(value?: ManageNeuron.ClaimOrRefresh): void; + + hasConfigure(): boolean; + clearConfigure(): void; + getConfigure(): ManageNeuron.Configure | undefined; + setConfigure(value?: ManageNeuron.Configure): void; + + hasMerge(): boolean; + clearMerge(): void; + getMerge(): ManageNeuron.Merge | undefined; + setMerge(value?: ManageNeuron.Merge): void; + + hasSpawn(): boolean; + clearSpawn(): void; + getSpawn(): nns_common_pb.NeuronId | undefined; + setSpawn(value?: nns_common_pb.NeuronId): void; + + hasSyncCommand(): boolean; + clearSyncCommand(): void; + getSyncCommand(): Governance.NeuronInFlightCommand.SyncCommand | undefined; + setSyncCommand(value?: Governance.NeuronInFlightCommand.SyncCommand): void; + + getCommandCase(): NeuronInFlightCommand.CommandCase; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): JoinCommunityFund.AsObject; - static toObject(includeInstance: boolean, msg: JoinCommunityFund): JoinCommunityFund.AsObject; + toObject(includeInstance?: boolean): NeuronInFlightCommand.AsObject; + static toObject(includeInstance: boolean, msg: NeuronInFlightCommand): NeuronInFlightCommand.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: JoinCommunityFund, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): JoinCommunityFund; - static deserializeBinaryFromReader(message: JoinCommunityFund, reader: jspb.BinaryReader): JoinCommunityFund; + static serializeBinaryToWriter(message: NeuronInFlightCommand, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NeuronInFlightCommand; + static deserializeBinaryFromReader(message: NeuronInFlightCommand, reader: jspb.BinaryReader): NeuronInFlightCommand; } - export namespace JoinCommunityFund { + export namespace NeuronInFlightCommand { export type AsObject = { + timestamp: number, + disburse?: ManageNeuron.Disburse.AsObject, + split?: ManageNeuron.Split.AsObject, + disburseToNeuron?: ManageNeuron.DisburseToNeuron.AsObject, + mergeMaturity?: ManageNeuron.MergeMaturity.AsObject, + claimOrRefreshNeuron?: ManageNeuron.ClaimOrRefresh.AsObject, + configure?: ManageNeuron.Configure.AsObject, + merge?: ManageNeuron.Merge.AsObject, + spawn?: nns_common_pb.NeuronId.AsObject, + syncCommand?: Governance.NeuronInFlightCommand.SyncCommand.AsObject, } - } - export enum NeuronIdOrSubaccountCase { - NEURON_ID_OR_SUBACCOUNT_NOT_SET = 0, - SUBACCOUNT = 11, - NEURON_ID = 12, - } + export class SyncCommand extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SyncCommand.AsObject; + static toObject(includeInstance: boolean, msg: SyncCommand): SyncCommand.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SyncCommand, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SyncCommand; + static deserializeBinaryFromReader(message: SyncCommand, reader: jspb.BinaryReader): SyncCommand; + } - export enum CommandCase { - COMMAND_NOT_SET = 0, - CONFIGURE = 2, - DISBURSE = 3, - SPAWN = 4, - FOLLOW = 5, - REGISTER_VOTE = 7, - MERGE_MATURITY = 13, - MERGE = 14, + export namespace SyncCommand { + export type AsObject = { + } + } + + export enum CommandCase { + COMMAND_NOT_SET = 0, + DISBURSE = 2, + SPLIT = 3, + DISBURSE_TO_NEURON = 5, + MERGE_MATURITY = 7, + CLAIM_OR_REFRESH_NEURON = 8, + CONFIGURE = 9, + MERGE = 10, + SPAWN = 20, + SYNC_COMMAND = 21, + } } -} -export class ManageNeuronResponse extends jspb.Message { - hasError(): boolean; - clearError(): void; - getError(): GovernanceError | undefined; - setError(value?: GovernanceError): void; + export class GovernanceCachedMetrics extends jspb.Message { + getTimestampSeconds(): number; + setTimestampSeconds(value: number): void; - hasConfigure(): boolean; - clearConfigure(): void; - getConfigure(): ManageNeuronResponse.ConfigureResponse | undefined; - setConfigure(value?: ManageNeuronResponse.ConfigureResponse): void; + getTotalSupplyIcp(): number; + setTotalSupplyIcp(value: number): void; - hasDisburse(): boolean; - clearDisburse(): void; - getDisburse(): ManageNeuronResponse.DisburseResponse | undefined; - setDisburse(value?: ManageNeuronResponse.DisburseResponse): void; + getDissolvingNeuronsCount(): number; + setDissolvingNeuronsCount(value: number): void; - hasSpawn(): boolean; - clearSpawn(): void; - getSpawn(): ManageNeuronResponse.SpawnResponse | undefined; - setSpawn(value?: ManageNeuronResponse.SpawnResponse): void; + getDissolvingNeuronsE8sBucketsMap(): jspb.Map; + clearDissolvingNeuronsE8sBucketsMap(): void; + getDissolvingNeuronsCountBucketsMap(): jspb.Map; + clearDissolvingNeuronsCountBucketsMap(): void; + getNotDissolvingNeuronsCount(): number; + setNotDissolvingNeuronsCount(value: number): void; - hasFollow(): boolean; - clearFollow(): void; - getFollow(): ManageNeuronResponse.FollowResponse | undefined; - setFollow(value?: ManageNeuronResponse.FollowResponse): void; + getNotDissolvingNeuronsE8sBucketsMap(): jspb.Map; + clearNotDissolvingNeuronsE8sBucketsMap(): void; + getNotDissolvingNeuronsCountBucketsMap(): jspb.Map; + clearNotDissolvingNeuronsCountBucketsMap(): void; + getDissolvedNeuronsCount(): number; + setDissolvedNeuronsCount(value: number): void; - hasRegisterVote(): boolean; - clearRegisterVote(): void; - getRegisterVote(): ManageNeuronResponse.RegisterVoteResponse | undefined; - setRegisterVote(value?: ManageNeuronResponse.RegisterVoteResponse): void; + getDissolvedNeuronsE8s(): number; + setDissolvedNeuronsE8s(value: number): void; - hasMergeMaturity(): boolean; - clearMergeMaturity(): void; - getMergeMaturity(): ManageNeuronResponse.MergeMaturityResponse | undefined; - setMergeMaturity(value?: ManageNeuronResponse.MergeMaturityResponse): void; + getGarbageCollectableNeuronsCount(): number; + setGarbageCollectableNeuronsCount(value: number): void; - hasMerge(): boolean; - clearMerge(): void; - getMerge(): ManageNeuronResponse.MergeResponse | undefined; - setMerge(value?: ManageNeuronResponse.MergeResponse): void; + getNeuronsWithInvalidStakeCount(): number; + setNeuronsWithInvalidStakeCount(value: number): void; + + getTotalStakedE8s(): number; + setTotalStakedE8s(value: number): void; + + getNeuronsWithLessThan6MonthsDissolveDelayCount(): number; + setNeuronsWithLessThan6MonthsDissolveDelayCount(value: number): void; + + getNeuronsWithLessThan6MonthsDissolveDelayE8s(): number; + setNeuronsWithLessThan6MonthsDissolveDelayE8s(value: number): void; + + getCommunityFundTotalStakedE8s(): number; + setCommunityFundTotalStakedE8s(value: number): void; + + getCommunityFundTotalMaturityE8sEquivalent(): number; + setCommunityFundTotalMaturityE8sEquivalent(value: number): void; + + getNeuronsFundTotalActiveNeurons(): number; + setNeuronsFundTotalActiveNeurons(value: number): void; + + getTotalLockedE8s(): number; + setTotalLockedE8s(value: number): void; + + getTotalMaturityE8sEquivalent(): number; + setTotalMaturityE8sEquivalent(value: number): void; + + getTotalStakedMaturityE8sEquivalent(): number; + setTotalStakedMaturityE8sEquivalent(value: number): void; + + getDissolvingNeuronsStakedMaturityE8sEquivalentBucketsMap(): jspb.Map; + clearDissolvingNeuronsStakedMaturityE8sEquivalentBucketsMap(): void; + getDissolvingNeuronsStakedMaturityE8sEquivalentSum(): number; + setDissolvingNeuronsStakedMaturityE8sEquivalentSum(value: number): void; + + getNotDissolvingNeuronsStakedMaturityE8sEquivalentBucketsMap(): jspb.Map; + clearNotDissolvingNeuronsStakedMaturityE8sEquivalentBucketsMap(): void; + getNotDissolvingNeuronsStakedMaturityE8sEquivalentSum(): number; + setNotDissolvingNeuronsStakedMaturityE8sEquivalentSum(value: number): void; + + getSeedNeuronCount(): number; + setSeedNeuronCount(value: number): void; + + getEctNeuronCount(): number; + setEctNeuronCount(value: number): void; + + getTotalStakedE8sSeed(): number; + setTotalStakedE8sSeed(value: number): void; - getCommandCase(): ManageNeuronResponse.CommandCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ManageNeuronResponse.AsObject; - static toObject(includeInstance: boolean, msg: ManageNeuronResponse): ManageNeuronResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ManageNeuronResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ManageNeuronResponse; - static deserializeBinaryFromReader(message: ManageNeuronResponse, reader: jspb.BinaryReader): ManageNeuronResponse; -} + getTotalStakedE8sEct(): number; + setTotalStakedE8sEct(value: number): void; -export namespace ManageNeuronResponse { - export type AsObject = { - error?: GovernanceError.AsObject, - configure?: ManageNeuronResponse.ConfigureResponse.AsObject, - disburse?: ManageNeuronResponse.DisburseResponse.AsObject, - spawn?: ManageNeuronResponse.SpawnResponse.AsObject, - follow?: ManageNeuronResponse.FollowResponse.AsObject, - registerVote?: ManageNeuronResponse.RegisterVoteResponse.AsObject, - mergeMaturity?: ManageNeuronResponse.MergeMaturityResponse.AsObject, - merge?: ManageNeuronResponse.MergeResponse.AsObject, - } + getTotalStakedMaturityE8sEquivalentSeed(): number; + setTotalStakedMaturityE8sEquivalentSeed(value: number): void; - export class ConfigureResponse extends jspb.Message { + getTotalStakedMaturityE8sEquivalentEct(): number; + setTotalStakedMaturityE8sEquivalentEct(value: number): void; + + getDissolvingNeuronsE8sBucketsSeedMap(): jspb.Map; + clearDissolvingNeuronsE8sBucketsSeedMap(): void; + getDissolvingNeuronsE8sBucketsEctMap(): jspb.Map; + clearDissolvingNeuronsE8sBucketsEctMap(): void; + getNotDissolvingNeuronsE8sBucketsSeedMap(): jspb.Map; + clearNotDissolvingNeuronsE8sBucketsSeedMap(): void; + getNotDissolvingNeuronsE8sBucketsEctMap(): jspb.Map; + clearNotDissolvingNeuronsE8sBucketsEctMap(): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ConfigureResponse.AsObject; - static toObject(includeInstance: boolean, msg: ConfigureResponse): ConfigureResponse.AsObject; + toObject(includeInstance?: boolean): GovernanceCachedMetrics.AsObject; + static toObject(includeInstance: boolean, msg: GovernanceCachedMetrics): GovernanceCachedMetrics.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ConfigureResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ConfigureResponse; - static deserializeBinaryFromReader(message: ConfigureResponse, reader: jspb.BinaryReader): ConfigureResponse; + static serializeBinaryToWriter(message: GovernanceCachedMetrics, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GovernanceCachedMetrics; + static deserializeBinaryFromReader(message: GovernanceCachedMetrics, reader: jspb.BinaryReader): GovernanceCachedMetrics; } - export namespace ConfigureResponse { + export namespace GovernanceCachedMetrics { export type AsObject = { + timestampSeconds: number, + totalSupplyIcp: number, + dissolvingNeuronsCount: number, + dissolvingNeuronsE8sBucketsMap: Array<[number, number]>, + dissolvingNeuronsCountBucketsMap: Array<[number, number]>, + notDissolvingNeuronsCount: number, + notDissolvingNeuronsE8sBucketsMap: Array<[number, number]>, + notDissolvingNeuronsCountBucketsMap: Array<[number, number]>, + dissolvedNeuronsCount: number, + dissolvedNeuronsE8s: number, + garbageCollectableNeuronsCount: number, + neuronsWithInvalidStakeCount: number, + totalStakedE8s: number, + neuronsWithLessThan6MonthsDissolveDelayCount: number, + neuronsWithLessThan6MonthsDissolveDelayE8s: number, + communityFundTotalStakedE8s: number, + communityFundTotalMaturityE8sEquivalent: number, + neuronsFundTotalActiveNeurons: number, + totalLockedE8s: number, + totalMaturityE8sEquivalent: number, + totalStakedMaturityE8sEquivalent: number, + dissolvingNeuronsStakedMaturityE8sEquivalentBucketsMap: Array<[number, number]>, + dissolvingNeuronsStakedMaturityE8sEquivalentSum: number, + notDissolvingNeuronsStakedMaturityE8sEquivalentBucketsMap: Array<[number, number]>, + notDissolvingNeuronsStakedMaturityE8sEquivalentSum: number, + seedNeuronCount: number, + ectNeuronCount: number, + totalStakedE8sSeed: number, + totalStakedE8sEct: number, + totalStakedMaturityE8sEquivalentSeed: number, + totalStakedMaturityE8sEquivalentEct: number, + dissolvingNeuronsE8sBucketsSeedMap: Array<[number, number]>, + dissolvingNeuronsE8sBucketsEctMap: Array<[number, number]>, + notDissolvingNeuronsE8sBucketsSeedMap: Array<[number, number]>, + notDissolvingNeuronsE8sBucketsEctMap: Array<[number, number]>, } } - export class DisburseResponse extends jspb.Message { - getTransferBlockHeight(): string; - setTransferBlockHeight(value: string): void; + export class MakingSnsProposal extends jspb.Message { + hasProposerId(): boolean; + clearProposerId(): void; + getProposerId(): nns_common_pb.NeuronId | undefined; + setProposerId(value?: nns_common_pb.NeuronId): void; + + hasCaller(): boolean; + clearCaller(): void; + getCaller(): base_types_pb.PrincipalId | undefined; + setCaller(value?: base_types_pb.PrincipalId): void; + + hasProposal(): boolean; + clearProposal(): void; + getProposal(): Proposal | undefined; + setProposal(value?: Proposal): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): DisburseResponse.AsObject; - static toObject(includeInstance: boolean, msg: DisburseResponse): DisburseResponse.AsObject; + toObject(includeInstance?: boolean): MakingSnsProposal.AsObject; + static toObject(includeInstance: boolean, msg: MakingSnsProposal): MakingSnsProposal.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: DisburseResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): DisburseResponse; - static deserializeBinaryFromReader(message: DisburseResponse, reader: jspb.BinaryReader): DisburseResponse; + static serializeBinaryToWriter(message: MakingSnsProposal, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MakingSnsProposal; + static deserializeBinaryFromReader(message: MakingSnsProposal, reader: jspb.BinaryReader): MakingSnsProposal; } - export namespace DisburseResponse { + export namespace MakingSnsProposal { export type AsObject = { - transferBlockHeight: string, + proposerId?: nns_common_pb.NeuronId.AsObject, + caller?: base_types_pb.PrincipalId.AsObject, + proposal?: Proposal.AsObject, } } - export class SpawnResponse extends jspb.Message { - hasCreatedNeuronId(): boolean; - clearCreatedNeuronId(): void; - getCreatedNeuronId(): base_types_pb.NeuronId | undefined; - setCreatedNeuronId(value?: base_types_pb.NeuronId): void; + export class Migration extends jspb.Message { + hasStatus(): boolean; + clearStatus(): void; + getStatus(): Governance.Migration.MigrationStatusMap[keyof Governance.Migration.MigrationStatusMap]; + setStatus(value: Governance.Migration.MigrationStatusMap[keyof Governance.Migration.MigrationStatusMap]): void; + + hasFailureReason(): boolean; + clearFailureReason(): void; + getFailureReason(): string; + setFailureReason(value: string): void; + hasLastNeuronId(): boolean; + clearLastNeuronId(): void; + getLastNeuronId(): nns_common_pb.NeuronId | undefined; + setLastNeuronId(value?: nns_common_pb.NeuronId): void; + + getProgressCase(): Migration.ProgressCase; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): SpawnResponse.AsObject; - static toObject(includeInstance: boolean, msg: SpawnResponse): SpawnResponse.AsObject; + toObject(includeInstance?: boolean): Migration.AsObject; + static toObject(includeInstance: boolean, msg: Migration): Migration.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: SpawnResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): SpawnResponse; - static deserializeBinaryFromReader(message: SpawnResponse, reader: jspb.BinaryReader): SpawnResponse; + static serializeBinaryToWriter(message: Migration, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Migration; + static deserializeBinaryFromReader(message: Migration, reader: jspb.BinaryReader): Migration; } - export namespace SpawnResponse { + export namespace Migration { export type AsObject = { - createdNeuronId?: base_types_pb.NeuronId.AsObject, + status: Governance.Migration.MigrationStatusMap[keyof Governance.Migration.MigrationStatusMap], + failureReason: string, + lastNeuronId?: nns_common_pb.NeuronId.AsObject, + } + + export interface MigrationStatusMap { + MIGRATION_STATUS_UNSPECIFIED: 0; + MIGRATION_STATUS_IN_PROGRESS: 1; + MIGRATION_STATUS_SUCCEEDED: 2; + MIGRATION_STATUS_FAILED: 3; + } + + export const MigrationStatus: MigrationStatusMap; + + export enum ProgressCase { + PROGRESS_NOT_SET = 0, + LAST_NEURON_ID = 3, } } - export class MergeMaturityResponse extends jspb.Message { - getMergedMaturityE8s(): string; - setMergedMaturityE8s(value: string): void; + export class Migrations extends jspb.Message { + hasNeuronIndexesMigration(): boolean; + clearNeuronIndexesMigration(): void; + getNeuronIndexesMigration(): Governance.Migration | undefined; + setNeuronIndexesMigration(value?: Governance.Migration): void; - getNewStakeE8s(): string; - setNewStakeE8s(value: string): void; + hasCopyInactiveNeuronsToStableMemoryMigration(): boolean; + clearCopyInactiveNeuronsToStableMemoryMigration(): void; + getCopyInactiveNeuronsToStableMemoryMigration(): Governance.Migration | undefined; + setCopyInactiveNeuronsToStableMemoryMigration(value?: Governance.Migration): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MergeMaturityResponse.AsObject; - static toObject(includeInstance: boolean, msg: MergeMaturityResponse): MergeMaturityResponse.AsObject; + toObject(includeInstance?: boolean): Migrations.AsObject; + static toObject(includeInstance: boolean, msg: Migrations): Migrations.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MergeMaturityResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MergeMaturityResponse; - static deserializeBinaryFromReader(message: MergeMaturityResponse, reader: jspb.BinaryReader): MergeMaturityResponse; + static serializeBinaryToWriter(message: Migrations, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Migrations; + static deserializeBinaryFromReader(message: Migrations, reader: jspb.BinaryReader): Migrations; } - export namespace MergeMaturityResponse { + export namespace Migrations { export type AsObject = { - mergedMaturityE8s: string, - newStakeE8s: string, + neuronIndexesMigration?: Governance.Migration.AsObject, + copyInactiveNeuronsToStableMemoryMigration?: Governance.Migration.AsObject, } } - export class FollowResponse extends jspb.Message { + export class FollowersMap extends jspb.Message { + getFollowersMapMap(): jspb.Map; + clearFollowersMapMap(): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): FollowResponse.AsObject; - static toObject(includeInstance: boolean, msg: FollowResponse): FollowResponse.AsObject; + toObject(includeInstance?: boolean): FollowersMap.AsObject; + static toObject(includeInstance: boolean, msg: FollowersMap): FollowersMap.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: FollowResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): FollowResponse; - static deserializeBinaryFromReader(message: FollowResponse, reader: jspb.BinaryReader): FollowResponse; + static serializeBinaryToWriter(message: FollowersMap, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): FollowersMap; + static deserializeBinaryFromReader(message: FollowersMap, reader: jspb.BinaryReader): FollowersMap; } - export namespace FollowResponse { + export namespace FollowersMap { export type AsObject = { + followersMapMap: Array<[number, Governance.FollowersMap.Followers.AsObject]>, + } + + export class Followers extends jspb.Message { + clearFollowersList(): void; + getFollowersList(): Array; + setFollowersList(value: Array): void; + addFollowers(value?: nns_common_pb.NeuronId, index?: number): nns_common_pb.NeuronId; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Followers.AsObject; + static toObject(includeInstance: boolean, msg: Followers): Followers.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Followers, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Followers; + static deserializeBinaryFromReader(message: Followers, reader: jspb.BinaryReader): Followers; + } + + export namespace Followers { + export type AsObject = { + followersList: Array, + } } } +} - export class RegisterVoteResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): RegisterVoteResponse.AsObject; - static toObject(includeInstance: boolean, msg: RegisterVoteResponse): RegisterVoteResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: RegisterVoteResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): RegisterVoteResponse; - static deserializeBinaryFromReader(message: RegisterVoteResponse, reader: jspb.BinaryReader): RegisterVoteResponse; +export class XdrConversionRate extends jspb.Message { + hasTimestampSeconds(): boolean; + clearTimestampSeconds(): void; + getTimestampSeconds(): number; + setTimestampSeconds(value: number): void; + + hasXdrPermyriadPerIcp(): boolean; + clearXdrPermyriadPerIcp(): void; + getXdrPermyriadPerIcp(): number; + setXdrPermyriadPerIcp(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): XdrConversionRate.AsObject; + static toObject(includeInstance: boolean, msg: XdrConversionRate): XdrConversionRate.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: XdrConversionRate, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): XdrConversionRate; + static deserializeBinaryFromReader(message: XdrConversionRate, reader: jspb.BinaryReader): XdrConversionRate; +} + +export namespace XdrConversionRate { + export type AsObject = { + timestampSeconds: number, + xdrPermyriadPerIcp: number, } +} - export namespace RegisterVoteResponse { - export type AsObject = { - } +export class ListProposalInfo extends jspb.Message { + getLimit(): number; + setLimit(value: number): void; + + hasBeforeProposal(): boolean; + clearBeforeProposal(): void; + getBeforeProposal(): nns_common_pb.ProposalId | undefined; + setBeforeProposal(value?: nns_common_pb.ProposalId): void; + + clearExcludeTopicList(): void; + getExcludeTopicList(): Array; + setExcludeTopicList(value: Array): void; + addExcludeTopic(value: TopicMap[keyof TopicMap], index?: number): TopicMap[keyof TopicMap]; + + clearIncludeRewardStatusList(): void; + getIncludeRewardStatusList(): Array; + setIncludeRewardStatusList(value: Array): void; + addIncludeRewardStatus(value: ProposalRewardStatusMap[keyof ProposalRewardStatusMap], index?: number): ProposalRewardStatusMap[keyof ProposalRewardStatusMap]; + + clearIncludeStatusList(): void; + getIncludeStatusList(): Array; + setIncludeStatusList(value: Array): void; + addIncludeStatus(value: ProposalStatusMap[keyof ProposalStatusMap], index?: number): ProposalStatusMap[keyof ProposalStatusMap]; + + hasIncludeAllManageNeuronProposals(): boolean; + clearIncludeAllManageNeuronProposals(): void; + getIncludeAllManageNeuronProposals(): boolean; + setIncludeAllManageNeuronProposals(value: boolean): void; + + hasOmitLargeFields(): boolean; + clearOmitLargeFields(): void; + getOmitLargeFields(): boolean; + setOmitLargeFields(value: boolean): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListProposalInfo.AsObject; + static toObject(includeInstance: boolean, msg: ListProposalInfo): ListProposalInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListProposalInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListProposalInfo; + static deserializeBinaryFromReader(message: ListProposalInfo, reader: jspb.BinaryReader): ListProposalInfo; +} + +export namespace ListProposalInfo { + export type AsObject = { + limit: number, + beforeProposal?: nns_common_pb.ProposalId.AsObject, + excludeTopicList: Array, + includeRewardStatusList: Array, + includeStatusList: Array, + includeAllManageNeuronProposals: boolean, + omitLargeFields: boolean, } +} - export class MergeResponse extends jspb.Message { - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): MergeResponse.AsObject; - static toObject(includeInstance: boolean, msg: MergeResponse): MergeResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: MergeResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): MergeResponse; - static deserializeBinaryFromReader(message: MergeResponse, reader: jspb.BinaryReader): MergeResponse; +export class ListProposalInfoResponse extends jspb.Message { + clearProposalInfoList(): void; + getProposalInfoList(): Array; + setProposalInfoList(value: Array): void; + addProposalInfo(value?: ProposalInfo, index?: number): ProposalInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListProposalInfoResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListProposalInfoResponse): ListProposalInfoResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListProposalInfoResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListProposalInfoResponse; + static deserializeBinaryFromReader(message: ListProposalInfoResponse, reader: jspb.BinaryReader): ListProposalInfoResponse; +} + +export namespace ListProposalInfoResponse { + export type AsObject = { + proposalInfoList: Array, } +} - export namespace MergeResponse { - export type AsObject = { - } +export class ListNeurons extends jspb.Message { + clearNeuronIdsList(): void; + getNeuronIdsList(): Array; + setNeuronIdsList(value: Array): void; + addNeuronIds(value: number, index?: number): number; + + getIncludeNeuronsReadableByCaller(): boolean; + setIncludeNeuronsReadableByCaller(value: boolean): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListNeurons.AsObject; + static toObject(includeInstance: boolean, msg: ListNeurons): ListNeurons.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListNeurons, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListNeurons; + static deserializeBinaryFromReader(message: ListNeurons, reader: jspb.BinaryReader): ListNeurons; +} + +export namespace ListNeurons { + export type AsObject = { + neuronIdsList: Array, + includeNeuronsReadableByCaller: boolean, } +} - export enum CommandCase { - COMMAND_NOT_SET = 0, - ERROR = 1, - CONFIGURE = 2, - DISBURSE = 3, - SPAWN = 4, - FOLLOW = 5, - REGISTER_VOTE = 7, - MERGE_MATURITY = 11, - MERGE = 12, +export class ListNeuronsResponse extends jspb.Message { + getNeuronInfosMap(): jspb.Map; + clearNeuronInfosMap(): void; + clearFullNeuronsList(): void; + getFullNeuronsList(): Array; + setFullNeuronsList(value: Array): void; + addFullNeurons(value?: Neuron, index?: number): Neuron; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListNeuronsResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListNeuronsResponse): ListNeuronsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListNeuronsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListNeuronsResponse; + static deserializeBinaryFromReader(message: ListNeuronsResponse, reader: jspb.BinaryReader): ListNeuronsResponse; +} + +export namespace ListNeuronsResponse { + export type AsObject = { + neuronInfosMap: Array<[number, NeuronInfo.AsObject]>, + fullNeuronsList: Array, } } -export class GovernanceError extends jspb.Message { - getErrorType(): GovernanceError.ErrorTypeMap[keyof GovernanceError.ErrorTypeMap]; - setErrorType(value: GovernanceError.ErrorTypeMap[keyof GovernanceError.ErrorTypeMap]): void; +export class ListKnownNeuronsResponse extends jspb.Message { + clearKnownNeuronsList(): void; + getKnownNeuronsList(): Array; + setKnownNeuronsList(value: Array): void; + addKnownNeurons(value?: KnownNeuron, index?: number): KnownNeuron; - getErrorMessage(): string; - setErrorMessage(value: string): void; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListKnownNeuronsResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListKnownNeuronsResponse): ListKnownNeuronsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListKnownNeuronsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListKnownNeuronsResponse; + static deserializeBinaryFromReader(message: ListKnownNeuronsResponse, reader: jspb.BinaryReader): ListKnownNeuronsResponse; +} + +export namespace ListKnownNeuronsResponse { + export type AsObject = { + knownNeuronsList: Array, + } +} + +export class ListNodeProvidersResponse extends jspb.Message { + clearNodeProvidersList(): void; + getNodeProvidersList(): Array; + setNodeProvidersList(value: Array): void; + addNodeProviders(value?: NodeProvider, index?: number): NodeProvider; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GovernanceError.AsObject; - static toObject(includeInstance: boolean, msg: GovernanceError): GovernanceError.AsObject; + toObject(includeInstance?: boolean): ListNodeProvidersResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListNodeProvidersResponse): ListNodeProvidersResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GovernanceError, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GovernanceError; - static deserializeBinaryFromReader(message: GovernanceError, reader: jspb.BinaryReader): GovernanceError; + static serializeBinaryToWriter(message: ListNodeProvidersResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListNodeProvidersResponse; + static deserializeBinaryFromReader(message: ListNodeProvidersResponse, reader: jspb.BinaryReader): ListNodeProvidersResponse; } -export namespace GovernanceError { +export namespace ListNodeProvidersResponse { export type AsObject = { - errorType: GovernanceError.ErrorTypeMap[keyof GovernanceError.ErrorTypeMap], - errorMessage: string, + nodeProvidersList: Array, } +} - export interface ErrorTypeMap { - ERROR_TYPE_UNSPECIFIED: 0; - ERROR_TYPE_OK: 1; - ERROR_TYPE_UNAVAILABLE: 2; - ERROR_TYPE_NOT_AUTHORIZED: 3; - ERROR_TYPE_NOT_FOUND: 4; - ERROR_TYPE_INVALID_COMMAND: 5; - ERROR_TYPE_REQUIRES_NOT_DISSOLVING: 6; - ERROR_TYPE_REQUIRES_DISSOLVING: 7; - ERROR_TYPE_REQUIRES_DISSOLVED: 8; - ERROR_TYPE_HOT_KEY: 9; - ERROR_TYPE_RESOURCE_EXHAUSTED: 10; - ERROR_TYPE_PRECONDITION_FAILED: 11; - ERROR_TYPE_EXTERNAL: 12; - ERROR_TYPE_LEDGER_UPDATE_ONGOING: 13; - ERROR_TYPE_INSUFFICIENT_FUNDS: 14; - ERROR_TYPE_INVALID_PRINCIPAL: 15; - ERROR_TYPE_INVALID_PROPOSAL: 16; - ERROR_TYPE_ALREADY_JOINED_COMMUNITY_FUND: 17; +export class ClaimOrRefreshNeuronFromAccount extends jspb.Message { + hasController(): boolean; + clearController(): void; + getController(): base_types_pb.PrincipalId | undefined; + setController(value?: base_types_pb.PrincipalId): void; + + getMemo(): number; + setMemo(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ClaimOrRefreshNeuronFromAccount.AsObject; + static toObject(includeInstance: boolean, msg: ClaimOrRefreshNeuronFromAccount): ClaimOrRefreshNeuronFromAccount.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ClaimOrRefreshNeuronFromAccount, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ClaimOrRefreshNeuronFromAccount; + static deserializeBinaryFromReader(message: ClaimOrRefreshNeuronFromAccount, reader: jspb.BinaryReader): ClaimOrRefreshNeuronFromAccount; +} + +export namespace ClaimOrRefreshNeuronFromAccount { + export type AsObject = { + controller?: base_types_pb.PrincipalId.AsObject, + memo: number, + } +} + +export class ClaimOrRefreshNeuronFromAccountResponse extends jspb.Message { + hasError(): boolean; + clearError(): void; + getError(): GovernanceError | undefined; + setError(value?: GovernanceError): void; + + hasNeuronId(): boolean; + clearNeuronId(): void; + getNeuronId(): nns_common_pb.NeuronId | undefined; + setNeuronId(value?: nns_common_pb.NeuronId): void; + + getResultCase(): ClaimOrRefreshNeuronFromAccountResponse.ResultCase; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ClaimOrRefreshNeuronFromAccountResponse.AsObject; + static toObject(includeInstance: boolean, msg: ClaimOrRefreshNeuronFromAccountResponse): ClaimOrRefreshNeuronFromAccountResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ClaimOrRefreshNeuronFromAccountResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ClaimOrRefreshNeuronFromAccountResponse; + static deserializeBinaryFromReader(message: ClaimOrRefreshNeuronFromAccountResponse, reader: jspb.BinaryReader): ClaimOrRefreshNeuronFromAccountResponse; +} + +export namespace ClaimOrRefreshNeuronFromAccountResponse { + export type AsObject = { + error?: GovernanceError.AsObject, + neuronId?: nns_common_pb.NeuronId.AsObject, } - export const ErrorType: ErrorTypeMap; + export enum ResultCase { + RESULT_NOT_SET = 0, + ERROR = 1, + NEURON_ID = 2, + } } -export class ListNeurons extends jspb.Message { - clearNeuronIdsList(): void; - getNeuronIdsList(): Array; - setNeuronIdsList(value: Array): void; - addNeuronIds(value: string, index?: number): string; +export class MostRecentMonthlyNodeProviderRewards extends jspb.Message { + getTimestamp(): number; + setTimestamp(value: number): void; - getIncludeNeuronsReadableByCaller(): boolean; - setIncludeNeuronsReadableByCaller(value: boolean): void; + clearRewardsList(): void; + getRewardsList(): Array; + setRewardsList(value: Array): void; + addRewards(value?: RewardNodeProvider, index?: number): RewardNodeProvider; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListNeurons.AsObject; - static toObject(includeInstance: boolean, msg: ListNeurons): ListNeurons.AsObject; + toObject(includeInstance?: boolean): MostRecentMonthlyNodeProviderRewards.AsObject; + static toObject(includeInstance: boolean, msg: MostRecentMonthlyNodeProviderRewards): MostRecentMonthlyNodeProviderRewards.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListNeurons, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListNeurons; - static deserializeBinaryFromReader(message: ListNeurons, reader: jspb.BinaryReader): ListNeurons; + static serializeBinaryToWriter(message: MostRecentMonthlyNodeProviderRewards, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): MostRecentMonthlyNodeProviderRewards; + static deserializeBinaryFromReader(message: MostRecentMonthlyNodeProviderRewards, reader: jspb.BinaryReader): MostRecentMonthlyNodeProviderRewards; } -export namespace ListNeurons { +export namespace MostRecentMonthlyNodeProviderRewards { export type AsObject = { - neuronIdsList: Array, - includeNeuronsReadableByCaller: boolean, + timestamp: number, + rewardsList: Array, } } -export class ListNeuronsResponse extends jspb.Message { - clearNeuronIdsList(): void; - getNeuronIdsList(): Array; - setNeuronIdsList(value: Array): void; - addNeuronIds(value?: ListNeuronsResponse.NeuronMapEntry, index?: number): ListNeuronsResponse.NeuronMapEntry; +export class SettleCommunityFundParticipation extends jspb.Message { + hasOpenSnsTokenSwapProposalId(): boolean; + clearOpenSnsTokenSwapProposalId(): void; + getOpenSnsTokenSwapProposalId(): number; + setOpenSnsTokenSwapProposalId(value: number): void; - clearFullNeuronsList(): void; - getFullNeuronsList(): Array; - setFullNeuronsList(value: Array): void; - addFullNeurons(value?: Neuron, index?: number): Neuron; + hasCommitted(): boolean; + clearCommitted(): void; + getCommitted(): SettleCommunityFundParticipation.Committed | undefined; + setCommitted(value?: SettleCommunityFundParticipation.Committed): void; + hasAborted(): boolean; + clearAborted(): void; + getAborted(): SettleCommunityFundParticipation.Aborted | undefined; + setAborted(value?: SettleCommunityFundParticipation.Aborted): void; + + getResultCase(): SettleCommunityFundParticipation.ResultCase; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ListNeuronsResponse.AsObject; - static toObject(includeInstance: boolean, msg: ListNeuronsResponse): ListNeuronsResponse.AsObject; + toObject(includeInstance?: boolean): SettleCommunityFundParticipation.AsObject; + static toObject(includeInstance: boolean, msg: SettleCommunityFundParticipation): SettleCommunityFundParticipation.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ListNeuronsResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ListNeuronsResponse; - static deserializeBinaryFromReader(message: ListNeuronsResponse, reader: jspb.BinaryReader): ListNeuronsResponse; + static serializeBinaryToWriter(message: SettleCommunityFundParticipation, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SettleCommunityFundParticipation; + static deserializeBinaryFromReader(message: SettleCommunityFundParticipation, reader: jspb.BinaryReader): SettleCommunityFundParticipation; } -export namespace ListNeuronsResponse { +export namespace SettleCommunityFundParticipation { export type AsObject = { - neuronIdsList: Array, - fullNeuronsList: Array, + openSnsTokenSwapProposalId: number, + committed?: SettleCommunityFundParticipation.Committed.AsObject, + aborted?: SettleCommunityFundParticipation.Aborted.AsObject, } - export class NeuronMapEntry extends jspb.Message { - getKey(): string; - setKey(value: string): void; + export class Committed extends jspb.Message { + hasSnsGovernanceCanisterId(): boolean; + clearSnsGovernanceCanisterId(): void; + getSnsGovernanceCanisterId(): base_types_pb.PrincipalId | undefined; + setSnsGovernanceCanisterId(value?: base_types_pb.PrincipalId): void; + + hasTotalDirectContributionIcpE8s(): boolean; + clearTotalDirectContributionIcpE8s(): void; + getTotalDirectContributionIcpE8s(): number; + setTotalDirectContributionIcpE8s(value: number): void; + + hasTotalNeuronsFundContributionIcpE8s(): boolean; + clearTotalNeuronsFundContributionIcpE8s(): void; + getTotalNeuronsFundContributionIcpE8s(): number; + setTotalNeuronsFundContributionIcpE8s(value: number): void; - hasValue(): boolean; - clearValue(): void; - getValue(): NeuronInfo | undefined; - setValue(value?: NeuronInfo): void; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Committed.AsObject; + static toObject(includeInstance: boolean, msg: Committed): Committed.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Committed, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Committed; + static deserializeBinaryFromReader(message: Committed, reader: jspb.BinaryReader): Committed; + } + + export namespace Committed { + export type AsObject = { + snsGovernanceCanisterId?: base_types_pb.PrincipalId.AsObject, + totalDirectContributionIcpE8s: number, + totalNeuronsFundContributionIcpE8s: number, + } + } + export class Aborted extends jspb.Message { serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NeuronMapEntry.AsObject; - static toObject(includeInstance: boolean, msg: NeuronMapEntry): NeuronMapEntry.AsObject; + toObject(includeInstance?: boolean): Aborted.AsObject; + static toObject(includeInstance: boolean, msg: Aborted): Aborted.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NeuronMapEntry, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NeuronMapEntry; - static deserializeBinaryFromReader(message: NeuronMapEntry, reader: jspb.BinaryReader): NeuronMapEntry; + static serializeBinaryToWriter(message: Aborted, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Aborted; + static deserializeBinaryFromReader(message: Aborted, reader: jspb.BinaryReader): Aborted; } - export namespace NeuronMapEntry { + export namespace Aborted { export type AsObject = { - key: string, - value?: NeuronInfo.AsObject, } } + + export enum ResultCase { + RESULT_NOT_SET = 0, + COMMITTED = 2, + ABORTED = 3, + } } -export class BallotInfo extends jspb.Message { - hasProposalId(): boolean; - clearProposalId(): void; - getProposalId(): base_types_pb.ProposalId | undefined; - setProposalId(value?: base_types_pb.ProposalId): void; +export class SettleNeuronsFundParticipationRequest extends jspb.Message { + hasNnsProposalId(): boolean; + clearNnsProposalId(): void; + getNnsProposalId(): number; + setNnsProposalId(value: number): void; - getVote(): VoteMap[keyof VoteMap]; - setVote(value: VoteMap[keyof VoteMap]): void; + hasCommitted(): boolean; + clearCommitted(): void; + getCommitted(): SettleNeuronsFundParticipationRequest.Committed | undefined; + setCommitted(value?: SettleNeuronsFundParticipationRequest.Committed): void; + + hasAborted(): boolean; + clearAborted(): void; + getAborted(): SettleNeuronsFundParticipationRequest.Aborted | undefined; + setAborted(value?: SettleNeuronsFundParticipationRequest.Aborted): void; + getResultCase(): SettleNeuronsFundParticipationRequest.ResultCase; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BallotInfo.AsObject; - static toObject(includeInstance: boolean, msg: BallotInfo): BallotInfo.AsObject; + toObject(includeInstance?: boolean): SettleNeuronsFundParticipationRequest.AsObject; + static toObject(includeInstance: boolean, msg: SettleNeuronsFundParticipationRequest): SettleNeuronsFundParticipationRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BallotInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BallotInfo; - static deserializeBinaryFromReader(message: BallotInfo, reader: jspb.BinaryReader): BallotInfo; + static serializeBinaryToWriter(message: SettleNeuronsFundParticipationRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SettleNeuronsFundParticipationRequest; + static deserializeBinaryFromReader(message: SettleNeuronsFundParticipationRequest, reader: jspb.BinaryReader): SettleNeuronsFundParticipationRequest; } -export namespace BallotInfo { +export namespace SettleNeuronsFundParticipationRequest { export type AsObject = { - proposalId?: base_types_pb.ProposalId.AsObject, - vote: VoteMap[keyof VoteMap], + nnsProposalId: number, + committed?: SettleNeuronsFundParticipationRequest.Committed.AsObject, + aborted?: SettleNeuronsFundParticipationRequest.Aborted.AsObject, } -} -export class NeuronInfo extends jspb.Message { - getRetrievedAtTimestampSeconds(): string; - setRetrievedAtTimestampSeconds(value: string): void; + export class Committed extends jspb.Message { + hasSnsGovernanceCanisterId(): boolean; + clearSnsGovernanceCanisterId(): void; + getSnsGovernanceCanisterId(): base_types_pb.PrincipalId | undefined; + setSnsGovernanceCanisterId(value?: base_types_pb.PrincipalId): void; - getAgeSeconds(): string; - setAgeSeconds(value: string): void; + hasTotalDirectParticipationIcpE8s(): boolean; + clearTotalDirectParticipationIcpE8s(): void; + getTotalDirectParticipationIcpE8s(): number; + setTotalDirectParticipationIcpE8s(value: number): void; - getDissolveDelaySeconds(): string; - setDissolveDelaySeconds(value: string): void; + hasTotalNeuronsFundParticipationIcpE8s(): boolean; + clearTotalNeuronsFundParticipationIcpE8s(): void; + getTotalNeuronsFundParticipationIcpE8s(): number; + setTotalNeuronsFundParticipationIcpE8s(value: number): void; - clearRecentBallotsList(): void; - getRecentBallotsList(): Array; - setRecentBallotsList(value: Array): void; - addRecentBallots(value?: BallotInfo, index?: number): BallotInfo; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Committed.AsObject; + static toObject(includeInstance: boolean, msg: Committed): Committed.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Committed, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Committed; + static deserializeBinaryFromReader(message: Committed, reader: jspb.BinaryReader): Committed; + } + + export namespace Committed { + export type AsObject = { + snsGovernanceCanisterId?: base_types_pb.PrincipalId.AsObject, + totalDirectParticipationIcpE8s: number, + totalNeuronsFundParticipationIcpE8s: number, + } + } + + export class Aborted extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Aborted.AsObject; + static toObject(includeInstance: boolean, msg: Aborted): Aborted.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Aborted, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Aborted; + static deserializeBinaryFromReader(message: Aborted, reader: jspb.BinaryReader): Aborted; + } + + export namespace Aborted { + export type AsObject = { + } + } + + export enum ResultCase { + RESULT_NOT_SET = 0, + COMMITTED = 2, + ABORTED = 3, + } +} - getVotingPower(): string; - setVotingPower(value: string): void; +export class SettleNeuronsFundParticipationResponse extends jspb.Message { + hasErr(): boolean; + clearErr(): void; + getErr(): GovernanceError | undefined; + setErr(value?: GovernanceError): void; - getCreatedTimestampSeconds(): string; - setCreatedTimestampSeconds(value: string): void; + hasOk(): boolean; + clearOk(): void; + getOk(): SettleNeuronsFundParticipationResponse.Ok | undefined; + setOk(value?: SettleNeuronsFundParticipationResponse.Ok): void; + getResultCase(): SettleNeuronsFundParticipationResponse.ResultCase; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NeuronInfo.AsObject; - static toObject(includeInstance: boolean, msg: NeuronInfo): NeuronInfo.AsObject; + toObject(includeInstance?: boolean): SettleNeuronsFundParticipationResponse.AsObject; + static toObject(includeInstance: boolean, msg: SettleNeuronsFundParticipationResponse): SettleNeuronsFundParticipationResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NeuronInfo, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NeuronInfo; - static deserializeBinaryFromReader(message: NeuronInfo, reader: jspb.BinaryReader): NeuronInfo; + static serializeBinaryToWriter(message: SettleNeuronsFundParticipationResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SettleNeuronsFundParticipationResponse; + static deserializeBinaryFromReader(message: SettleNeuronsFundParticipationResponse, reader: jspb.BinaryReader): SettleNeuronsFundParticipationResponse; } -export namespace NeuronInfo { +export namespace SettleNeuronsFundParticipationResponse { export type AsObject = { - retrievedAtTimestampSeconds: string, - ageSeconds: string, - dissolveDelaySeconds: string, - recentBallotsList: Array, - votingPower: string, - createdTimestampSeconds: string, + err?: GovernanceError.AsObject, + ok?: SettleNeuronsFundParticipationResponse.Ok.AsObject, } -} - -export class Neuron extends jspb.Message { - hasId(): boolean; - clearId(): void; - getId(): base_types_pb.NeuronId | undefined; - setId(value?: base_types_pb.NeuronId): void; - - getAccount(): Uint8Array | string; - getAccount_asU8(): Uint8Array; - getAccount_asB64(): string; - setAccount(value: Uint8Array | string): void; - - hasController(): boolean; - clearController(): void; - getController(): base_types_pb.PrincipalId | undefined; - setController(value?: base_types_pb.PrincipalId): void; - clearHotKeysList(): void; - getHotKeysList(): Array; - setHotKeysList(value: Array): void; - addHotKeys(value?: base_types_pb.PrincipalId, index?: number): base_types_pb.PrincipalId; + export class NeuronsFundNeuron extends jspb.Message { + hasNnsNeuronId(): boolean; + clearNnsNeuronId(): void; + getNnsNeuronId(): number; + setNnsNeuronId(value: number): void; - getCachedNeuronStakeE8s(): string; - setCachedNeuronStakeE8s(value: string): void; + hasAmountIcpE8s(): boolean; + clearAmountIcpE8s(): void; + getAmountIcpE8s(): number; + setAmountIcpE8s(value: number): void; - getNeuronFeesE8s(): string; - setNeuronFeesE8s(value: string): void; + hasHotkeyPrincipal(): boolean; + clearHotkeyPrincipal(): void; + getHotkeyPrincipal(): string; + setHotkeyPrincipal(value: string): void; - getCreatedTimestampSeconds(): string; - setCreatedTimestampSeconds(value: string): void; + hasIsCapped(): boolean; + clearIsCapped(): void; + getIsCapped(): boolean; + setIsCapped(value: boolean): void; - getAgingSinceTimestampSeconds(): string; - setAgingSinceTimestampSeconds(value: string): void; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NeuronsFundNeuron.AsObject; + static toObject(includeInstance: boolean, msg: NeuronsFundNeuron): NeuronsFundNeuron.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NeuronsFundNeuron, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NeuronsFundNeuron; + static deserializeBinaryFromReader(message: NeuronsFundNeuron, reader: jspb.BinaryReader): NeuronsFundNeuron; + } - hasSpawnAtTimestampSeconds(): boolean; - clearSpawnAtTimestampSeconds(): void; - getSpawnAtTimestampSeconds(): string; - setSpawnAtTimestampSeconds(value: string): void; + export namespace NeuronsFundNeuron { + export type AsObject = { + nnsNeuronId: number, + amountIcpE8s: number, + hotkeyPrincipal: string, + isCapped: boolean, + } + } - hasWhenDissolvedTimestampSeconds(): boolean; - clearWhenDissolvedTimestampSeconds(): void; - getWhenDissolvedTimestampSeconds(): string; - setWhenDissolvedTimestampSeconds(value: string): void; + export class Ok extends jspb.Message { + clearNeuronsFundNeuronPortionsList(): void; + getNeuronsFundNeuronPortionsList(): Array; + setNeuronsFundNeuronPortionsList(value: Array): void; + addNeuronsFundNeuronPortions(value?: SettleNeuronsFundParticipationResponse.NeuronsFundNeuron, index?: number): SettleNeuronsFundParticipationResponse.NeuronsFundNeuron; - hasDissolveDelaySeconds(): boolean; - clearDissolveDelaySeconds(): void; - getDissolveDelaySeconds(): string; - setDissolveDelaySeconds(value: string): void; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Ok.AsObject; + static toObject(includeInstance: boolean, msg: Ok): Ok.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Ok, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Ok; + static deserializeBinaryFromReader(message: Ok, reader: jspb.BinaryReader): Ok; + } - getFolloweesMap(): jspb.Map; - clearFolloweesMap(): void; - clearRecentBallotsList(): void; - getRecentBallotsList(): Array; - setRecentBallotsList(value: Array): void; - addRecentBallots(value?: BallotInfo, index?: number): BallotInfo; + export namespace Ok { + export type AsObject = { + neuronsFundNeuronPortionsList: Array, + } + } - getKycVerified(): boolean; - setKycVerified(value: boolean): void; + export enum ResultCase { + RESULT_NOT_SET = 0, + ERR = 1, + OK = 2, + } +} - hasTransfer(): boolean; - clearTransfer(): void; - getTransfer(): NeuronStakeTransfer | undefined; - setTransfer(value?: NeuronStakeTransfer): void; +export class AuditEvent extends jspb.Message { + getTimestampSeconds(): number; + setTimestampSeconds(value: number): void; - getMaturityE8sEquivalent(): string; - setMaturityE8sEquivalent(value: string): void; + hasResetAging(): boolean; + clearResetAging(): void; + getResetAging(): AuditEvent.ResetAging | undefined; + setResetAging(value?: AuditEvent.ResetAging): void; - getNotForProfit(): boolean; - setNotForProfit(value: boolean): void; + hasRestoreAging(): boolean; + clearRestoreAging(): void; + getRestoreAging(): AuditEvent.RestoreAging | undefined; + setRestoreAging(value?: AuditEvent.RestoreAging): void; - getDissolveStateCase(): Neuron.DissolveStateCase; + getPayloadCase(): AuditEvent.PayloadCase; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Neuron.AsObject; - static toObject(includeInstance: boolean, msg: Neuron): Neuron.AsObject; + toObject(includeInstance?: boolean): AuditEvent.AsObject; + static toObject(includeInstance: boolean, msg: AuditEvent): AuditEvent.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Neuron, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Neuron; - static deserializeBinaryFromReader(message: Neuron, reader: jspb.BinaryReader): Neuron; + static serializeBinaryToWriter(message: AuditEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AuditEvent; + static deserializeBinaryFromReader(message: AuditEvent, reader: jspb.BinaryReader): AuditEvent; } -export namespace Neuron { +export namespace AuditEvent { export type AsObject = { - id?: base_types_pb.NeuronId.AsObject, - account: Uint8Array | string, - controller?: base_types_pb.PrincipalId.AsObject, - hotKeysList: Array, - cachedNeuronStakeE8s: string, - neuronFeesE8s: string, - createdTimestampSeconds: string, - agingSinceTimestampSeconds: string, - spawnAtTimestampSeconds: string, - whenDissolvedTimestampSeconds: string, - dissolveDelaySeconds: string, - followeesMap: Array<[number, Neuron.Followees.AsObject]>, - recentBallotsList: Array, - kycVerified: boolean, - transfer?: NeuronStakeTransfer.AsObject, - maturityE8sEquivalent: string, - notForProfit: boolean, + timestampSeconds: number, + resetAging?: AuditEvent.ResetAging.AsObject, + restoreAging?: AuditEvent.RestoreAging.AsObject, } - export class Followees extends jspb.Message { - clearFolloweesList(): void; - getFolloweesList(): Array; - setFolloweesList(value: Array): void; - addFollowees(value?: base_types_pb.NeuronId, index?: number): base_types_pb.NeuronId; + export class ResetAging extends jspb.Message { + getNeuronId(): number; + setNeuronId(value: number): void; + getPreviousAgingSinceTimestampSeconds(): number; + setPreviousAgingSinceTimestampSeconds(value: number): void; + + getNewAgingSinceTimestampSeconds(): number; + setNewAgingSinceTimestampSeconds(value: number): void; + + hasWhenDissolvedTimestampSeconds(): boolean; + clearWhenDissolvedTimestampSeconds(): void; + getWhenDissolvedTimestampSeconds(): number; + setWhenDissolvedTimestampSeconds(value: number): void; + + hasDissolveDelaySeconds(): boolean; + clearDissolveDelaySeconds(): void; + getDissolveDelaySeconds(): number; + setDissolveDelaySeconds(value: number): void; + + getNeuronStakeE8s(): number; + setNeuronStakeE8s(value: number): void; + + getNeuronDissolveStateCase(): ResetAging.NeuronDissolveStateCase; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): Followees.AsObject; - static toObject(includeInstance: boolean, msg: Followees): Followees.AsObject; + toObject(includeInstance?: boolean): ResetAging.AsObject; + static toObject(includeInstance: boolean, msg: ResetAging): ResetAging.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: Followees, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): Followees; - static deserializeBinaryFromReader(message: Followees, reader: jspb.BinaryReader): Followees; + static serializeBinaryToWriter(message: ResetAging, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ResetAging; + static deserializeBinaryFromReader(message: ResetAging, reader: jspb.BinaryReader): ResetAging; } - export namespace Followees { + export namespace ResetAging { export type AsObject = { - followeesList: Array, + neuronId: number, + previousAgingSinceTimestampSeconds: number, + newAgingSinceTimestampSeconds: number, + whenDissolvedTimestampSeconds: number, + dissolveDelaySeconds: number, + neuronStakeE8s: number, } - } - export enum DissolveStateCase { - DISSOLVE_STATE_NOT_SET = 0, - WHEN_DISSOLVED_TIMESTAMP_SECONDS = 9, - DISSOLVE_DELAY_SECONDS = 10, + export enum NeuronDissolveStateCase { + NEURON_DISSOLVE_STATE_NOT_SET = 0, + WHEN_DISSOLVED_TIMESTAMP_SECONDS = 4, + DISSOLVE_DELAY_SECONDS = 5, + } } -} - -export class NeuronStakeTransfer extends jspb.Message { - getTransferTimestamp(): string; - setTransferTimestamp(value: string): void; - hasFrom(): boolean; - clearFrom(): void; - getFrom(): base_types_pb.PrincipalId | undefined; - setFrom(value?: base_types_pb.PrincipalId): void; + export class RestoreAging extends jspb.Message { + hasNeuronId(): boolean; + clearNeuronId(): void; + getNeuronId(): number; + setNeuronId(value: number): void; + + hasPreviousAgingSinceTimestampSeconds(): boolean; + clearPreviousAgingSinceTimestampSeconds(): void; + getPreviousAgingSinceTimestampSeconds(): number; + setPreviousAgingSinceTimestampSeconds(value: number): void; + + hasNewAgingSinceTimestampSeconds(): boolean; + clearNewAgingSinceTimestampSeconds(): void; + getNewAgingSinceTimestampSeconds(): number; + setNewAgingSinceTimestampSeconds(value: number): void; + + hasWhenDissolvedTimestampSeconds(): boolean; + clearWhenDissolvedTimestampSeconds(): void; + getWhenDissolvedTimestampSeconds(): number; + setWhenDissolvedTimestampSeconds(value: number): void; + + hasDissolveDelaySeconds(): boolean; + clearDissolveDelaySeconds(): void; + getDissolveDelaySeconds(): number; + setDissolveDelaySeconds(value: number): void; + + hasNeuronStakeE8s(): boolean; + clearNeuronStakeE8s(): void; + getNeuronStakeE8s(): number; + setNeuronStakeE8s(value: number): void; + + getNeuronDissolveStateCase(): RestoreAging.NeuronDissolveStateCase; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RestoreAging.AsObject; + static toObject(includeInstance: boolean, msg: RestoreAging): RestoreAging.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RestoreAging, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RestoreAging; + static deserializeBinaryFromReader(message: RestoreAging, reader: jspb.BinaryReader): RestoreAging; + } - getFromSubaccount(): Uint8Array | string; - getFromSubaccount_asU8(): Uint8Array; - getFromSubaccount_asB64(): string; - setFromSubaccount(value: Uint8Array | string): void; + export namespace RestoreAging { + export type AsObject = { + neuronId: number, + previousAgingSinceTimestampSeconds: number, + newAgingSinceTimestampSeconds: number, + whenDissolvedTimestampSeconds: number, + dissolveDelaySeconds: number, + neuronStakeE8s: number, + } - getToSubaccount(): Uint8Array | string; - getToSubaccount_asU8(): Uint8Array; - getToSubaccount_asB64(): string; - setToSubaccount(value: Uint8Array | string): void; + export enum NeuronDissolveStateCase { + NEURON_DISSOLVE_STATE_NOT_SET = 0, + WHEN_DISSOLVED_TIMESTAMP_SECONDS = 4, + DISSOLVE_DELAY_SECONDS = 5, + } + } - getNeuronStakeE8s(): string; - setNeuronStakeE8s(value: string): void; + export enum PayloadCase { + PAYLOAD_NOT_SET = 0, + RESET_AGING = 2, + RESTORE_AGING = 3, + } +} - getBlockHeight(): string; - setBlockHeight(value: string): void; +export class RestoreAgingSummary extends jspb.Message { + hasTimestampSeconds(): boolean; + clearTimestampSeconds(): void; + getTimestampSeconds(): number; + setTimestampSeconds(value: number): void; - getMemo(): string; - setMemo(value: string): void; + clearGroupsList(): void; + getGroupsList(): Array; + setGroupsList(value: Array): void; + addGroups(value?: RestoreAgingSummary.RestoreAgingNeuronGroup, index?: number): RestoreAgingSummary.RestoreAgingNeuronGroup; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NeuronStakeTransfer.AsObject; - static toObject(includeInstance: boolean, msg: NeuronStakeTransfer): NeuronStakeTransfer.AsObject; + toObject(includeInstance?: boolean): RestoreAgingSummary.AsObject; + static toObject(includeInstance: boolean, msg: RestoreAgingSummary): RestoreAgingSummary.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NeuronStakeTransfer, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NeuronStakeTransfer; - static deserializeBinaryFromReader(message: NeuronStakeTransfer, reader: jspb.BinaryReader): NeuronStakeTransfer; + static serializeBinaryToWriter(message: RestoreAgingSummary, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RestoreAgingSummary; + static deserializeBinaryFromReader(message: RestoreAgingSummary, reader: jspb.BinaryReader): RestoreAgingSummary; } -export namespace NeuronStakeTransfer { +export namespace RestoreAgingSummary { export type AsObject = { - transferTimestamp: string, - from?: base_types_pb.PrincipalId.AsObject, - fromSubaccount: Uint8Array | string, - toSubaccount: Uint8Array | string, - neuronStakeE8s: string, - blockHeight: string, - memo: string, + timestampSeconds: number, + groupsList: Array, } -} -export interface VoteMap { - VOTE_UNSPECIFIED: 0; - VOTE_YES: 1; - VOTE_NO: 2; -} + export class RestoreAgingNeuronGroup extends jspb.Message { + getGroupType(): RestoreAgingSummary.NeuronGroupTypeMap[keyof RestoreAgingSummary.NeuronGroupTypeMap]; + setGroupType(value: RestoreAgingSummary.NeuronGroupTypeMap[keyof RestoreAgingSummary.NeuronGroupTypeMap]): void; -export const Vote: VoteMap; + hasCount(): boolean; + clearCount(): void; + getCount(): number; + setCount(value: number): void; + + hasPreviousTotalStakeE8s(): boolean; + clearPreviousTotalStakeE8s(): void; + getPreviousTotalStakeE8s(): number; + setPreviousTotalStakeE8s(value: number): void; + + hasCurrentTotalStakeE8s(): boolean; + clearCurrentTotalStakeE8s(): void; + getCurrentTotalStakeE8s(): number; + setCurrentTotalStakeE8s(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RestoreAgingNeuronGroup.AsObject; + static toObject(includeInstance: boolean, msg: RestoreAgingNeuronGroup): RestoreAgingNeuronGroup.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RestoreAgingNeuronGroup, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RestoreAgingNeuronGroup; + static deserializeBinaryFromReader(message: RestoreAgingNeuronGroup, reader: jspb.BinaryReader): RestoreAgingNeuronGroup; + } + + export namespace RestoreAgingNeuronGroup { + export type AsObject = { + groupType: RestoreAgingSummary.NeuronGroupTypeMap[keyof RestoreAgingSummary.NeuronGroupTypeMap], + count: number, + previousTotalStakeE8s: number, + currentTotalStakeE8s: number, + } + } + + export interface NeuronGroupTypeMap { + NEURON_GROUP_TYPE_UNSPECIFIED: 0; + NEURON_GROUP_TYPE_NOT_PRE_AGING: 1; + NEURON_GROUP_TYPE_DISSOLVING_OR_DISSOLVED: 2; + NEURON_GROUP_TYPE_STAKE_CHANGED: 3; + NEURON_GROUP_TYPE_STAKE_SAME_AGING_CHANGED: 4; + NEURON_GROUP_TYPE_STAKE_SAME_AGING_SAME: 5; + } + + export const NeuronGroupType: NeuronGroupTypeMap; +} export interface TopicMap { TOPIC_UNSPECIFIED: 0; @@ -1055,12 +4918,114 @@ export interface TopicMap { TOPIC_NETWORK_CANISTER_MANAGEMENT: 8; TOPIC_KYC: 9; TOPIC_NODE_PROVIDER_REWARDS: 10; - TOPIC_SNS_DECENTRALIZATION_SALE: 11; - TOPIC_SUBNET_REPLICA_VERSION_MANAGEMENT: 12; - TOPIC_REPLICA_VERSION_MANAGEMENT: 13; + TOPIC_IC_OS_VERSION_DEPLOYMENT: 12; + TOPIC_IC_OS_VERSION_ELECTION: 13; TOPIC_SNS_AND_COMMUNITY_FUND: 14; TOPIC_API_BOUNDARY_NODE_MANAGEMENT: 15; } export const Topic: TopicMap; +export interface NeuronStateMap { + NEURON_STATE_UNSPECIFIED: 0; + NEURON_STATE_NOT_DISSOLVING: 1; + NEURON_STATE_DISSOLVING: 2; + NEURON_STATE_DISSOLVED: 3; + NEURON_STATE_SPAWNING: 4; +} + +export const NeuronState: NeuronStateMap; + +export interface NeuronTypeMap { + NEURON_TYPE_UNSPECIFIED: 0; + NEURON_TYPE_SEED: 1; + NEURON_TYPE_ECT: 2; +} + +export const NeuronType: NeuronTypeMap; + +export interface VoteMap { + VOTE_UNSPECIFIED: 0; + VOTE_YES: 1; + VOTE_NO: 2; +} + +export const Vote: VoteMap; + +export interface NnsFunctionMap { + NNS_FUNCTION_UNSPECIFIED: 0; + NNS_FUNCTION_CREATE_SUBNET: 1; + NNS_FUNCTION_ADD_NODE_TO_SUBNET: 2; + NNS_FUNCTION_NNS_CANISTER_INSTALL: 3; + NNS_FUNCTION_NNS_CANISTER_UPGRADE: 4; + NNS_FUNCTION_BLESS_REPLICA_VERSION: 5; + NNS_FUNCTION_RECOVER_SUBNET: 6; + NNS_FUNCTION_UPDATE_CONFIG_OF_SUBNET: 7; + NNS_FUNCTION_ASSIGN_NOID: 8; + NNS_FUNCTION_NNS_ROOT_UPGRADE: 9; + NNS_FUNCTION_ICP_XDR_CONVERSION_RATE: 10; + NNS_FUNCTION_DEPLOY_GUESTOS_TO_ALL_SUBNET_NODES: 11; + NNS_FUNCTION_CLEAR_PROVISIONAL_WHITELIST: 12; + NNS_FUNCTION_REMOVE_NODES_FROM_SUBNET: 13; + NNS_FUNCTION_SET_AUTHORIZED_SUBNETWORKS: 14; + NNS_FUNCTION_SET_FIREWALL_CONFIG: 15; + NNS_FUNCTION_UPDATE_NODE_OPERATOR_CONFIG: 16; + NNS_FUNCTION_STOP_OR_START_NNS_CANISTER: 17; + NNS_FUNCTION_REMOVE_NODES: 18; + NNS_FUNCTION_UNINSTALL_CODE: 19; + NNS_FUNCTION_UPDATE_NODE_REWARDS_TABLE: 20; + NNS_FUNCTION_ADD_OR_REMOVE_DATA_CENTERS: 21; + NNS_FUNCTION_UPDATE_UNASSIGNED_NODES_CONFIG: 22; + NNS_FUNCTION_REMOVE_NODE_OPERATORS: 23; + NNS_FUNCTION_REROUTE_CANISTER_RANGES: 24; + NNS_FUNCTION_ADD_FIREWALL_RULES: 25; + NNS_FUNCTION_REMOVE_FIREWALL_RULES: 26; + NNS_FUNCTION_UPDATE_FIREWALL_RULES: 27; + NNS_FUNCTION_PREPARE_CANISTER_MIGRATION: 28; + NNS_FUNCTION_COMPLETE_CANISTER_MIGRATION: 29; + NNS_FUNCTION_ADD_SNS_WASM: 30; + NNS_FUNCTION_CHANGE_SUBNET_MEMBERSHIP: 31; + NNS_FUNCTION_UPDATE_SUBNET_TYPE: 32; + NNS_FUNCTION_CHANGE_SUBNET_TYPE_ASSIGNMENT: 33; + NNS_FUNCTION_UPDATE_SNS_WASM_SNS_SUBNET_IDS: 34; + NNS_FUNCTION_UPDATE_ALLOWED_PRINCIPALS: 35; + NNS_FUNCTION_RETIRE_REPLICA_VERSION: 36; + NNS_FUNCTION_INSERT_SNS_WASM_UPGRADE_PATH_ENTRIES: 37; + NNS_FUNCTION_REVISE_ELECTED_GUESTOS_VERSIONS: 38; + NNS_FUNCTION_BITCOIN_SET_CONFIG: 39; + NNS_FUNCTION_UPDATE_ELECTED_HOSTOS_VERSIONS: 40; + NNS_FUNCTION_UPDATE_NODES_HOSTOS_VERSION: 41; + NNS_FUNCTION_HARD_RESET_NNS_ROOT_TO_VERSION: 42; + NNS_FUNCTION_ADD_API_BOUNDARY_NODES: 43; + NNS_FUNCTION_REMOVE_API_BOUNDARY_NODES: 44; + NNS_FUNCTION_UPDATE_API_BOUNDARY_NODES_VERSION: 46; + NNS_FUNCTION_DEPLOY_GUESTOS_TO_SOME_API_BOUNDARY_NODES: 47; + NNS_FUNCTION_DEPLOY_GUESTOS_TO_ALL_UNASSIGNED_NODES: 48; + NNS_FUNCTION_UPDATE_SSH_READONLY_ACCESS_FOR_ALL_UNASSIGNED_NODES: 49; + NNS_FUNCTION_REVISE_ELECTED_HOSTOS_VERSIONS: 50; + NNS_FUNCTION_DEPLOY_HOSTOS_TO_SOME_NODES: 51; +} + +export const NnsFunction: NnsFunctionMap; + +export interface ProposalStatusMap { + PROPOSAL_STATUS_UNSPECIFIED: 0; + PROPOSAL_STATUS_OPEN: 1; + PROPOSAL_STATUS_REJECTED: 2; + PROPOSAL_STATUS_ADOPTED: 3; + PROPOSAL_STATUS_EXECUTED: 4; + PROPOSAL_STATUS_FAILED: 5; +} + +export const ProposalStatus: ProposalStatusMap; + +export interface ProposalRewardStatusMap { + PROPOSAL_REWARD_STATUS_UNSPECIFIED: 0; + PROPOSAL_REWARD_STATUS_ACCEPT_VOTES: 1; + PROPOSAL_REWARD_STATUS_READY_TO_SETTLE: 2; + PROPOSAL_REWARD_STATUS_SETTLED: 3; + PROPOSAL_REWARD_STATUS_INELIGIBLE: 4; +} + +export const ProposalRewardStatus: ProposalRewardStatusMap; + diff --git a/packages/nns-proto/proto/governance_pb.js b/packages/nns-proto/proto/governance_pb.js index 9925440c4..8cbbf011c 100644 --- a/packages/nns-proto/proto/governance_pb.js +++ b/packages/nns-proto/proto/governance_pb.js @@ -13,58 +13,182 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); var base_types_pb = require('./base_types_pb.js'); goog.object.extend(proto, base_types_pb); var ledger_pb = require('./ledger_pb.js'); goog.object.extend(proto, ledger_pb); +var nervous_system_pb = require('./nervous_system_pb.js'); +goog.object.extend(proto, nervous_system_pb); +var nns_common_pb = require('./nns_common_pb.js'); +goog.object.extend(proto, nns_common_pb); +var swap_pb = require('./swap_pb.js'); +goog.object.extend(proto, swap_pb); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.AbridgedNeuron', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.AbridgedNeuron.DissolveStateCase', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.ChangeCase', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ApproveGenesisKYC', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.AuditEvent', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.AuditEvent.PayloadCase', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.NeuronDissolveStateCase', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.NeuronDissolveStateCase', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.Ballot', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.BallotInfo', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.ResultCase', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.DerivedProposalInformation', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.Empty', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ExecuteNnsFunction', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.ResultCase', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.Governance', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.Governance.FollowersMap', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.Governance.Migration', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.Governance.Migration.MigrationStatus', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.Governance.Migration.ProgressCase', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.Governance.Migrations', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.CommandCase', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.GovernanceError', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.GovernanceError.ErrorType', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.KnownNeuron', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.KnownNeuronData', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ListNeurons', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ListNeuronsResponse', null, global); -goog.exportSymbol('proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ListProposalInfo', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ListProposalInfoResponse', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.ByCase', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.CommandCase', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.Configure', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.OperationCase', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.Follow', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.Merge', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.NeuronIdOrSubaccountCase', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.Split', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuronResponse', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuronResponse.CommandCase', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.Motion', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.NetworkEconomics', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.Neuron', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.Neuron.DissolveStateCase', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.Neuron.Followees', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.NeuronInfo', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.NeuronStakeTransfer', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.NeuronState', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.NeuronType', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.NeuronsFundData', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.NeuronsFundEconomics', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.NeuronsFundParticipation', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.NnsFunction', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.NodeProvider', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.Proposal', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.Proposal.ActionCase', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ProposalData', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ProposalInfo', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ProposalRewardStatus', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.ProposalStatus', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.RestoreAgingSummary', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.RestoreAgingSummary.NeuronGroupType', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.RewardEvent', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.RewardNodeProvider', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardModeCase', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.RewardNodeProviders', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.SetDefaultFollowees', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.ResultCase', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.ResultCase', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.ResultCase', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.SwapBackgroundInformation', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusType', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.SwapParticipationLimits', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.Tally', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.Topic', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.UpdateNodeProvider', null, global); goog.exportSymbol('proto.ic_nns_governance.pb.v1.Vote', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.WaitForQuietState', null, global); +goog.exportSymbol('proto.ic_nns_governance.pb.v1.XdrConversionRate', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -75,16 +199,16 @@ goog.exportSymbol('proto.ic_nns_governance.pb.v1.Vote', null, global); * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuron = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_); +proto.ic_nns_governance.pb.v1.NodeProvider = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.NodeProvider, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuron.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron'; + proto.ic_nns_governance.pb.v1.NodeProvider.displayName = 'proto.ic_nns_governance.pb.v1.NodeProvider'; } /** * Generated by JsPbCodeGenerator. @@ -96,16 +220,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay = function(opt_data) { +proto.ic_nns_governance.pb.v1.UpdateNodeProvider = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.UpdateNodeProvider, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay'; + proto.ic_nns_governance.pb.v1.UpdateNodeProvider.displayName = 'proto.ic_nns_governance.pb.v1.UpdateNodeProvider'; } /** * Generated by JsPbCodeGenerator. @@ -117,16 +241,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving = function(opt_data) { +proto.ic_nns_governance.pb.v1.BallotInfo = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.BallotInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving'; + proto.ic_nns_governance.pb.v1.BallotInfo.displayName = 'proto.ic_nns_governance.pb.v1.BallotInfo'; } /** * Generated by JsPbCodeGenerator. @@ -138,16 +262,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.ic_nns_governance.pb.v1.NeuronInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.NeuronInfo.repeatedFields_, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.NeuronInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving'; + proto.ic_nns_governance.pb.v1.NeuronInfo.displayName = 'proto.ic_nns_governance.pb.v1.NeuronInfo'; } /** * Generated by JsPbCodeGenerator. @@ -159,16 +283,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey = function(opt_data) { +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.NeuronStakeTransfer, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey'; + proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.displayName = 'proto.ic_nns_governance.pb.v1.NeuronStakeTransfer'; } /** * Generated by JsPbCodeGenerator. @@ -180,16 +304,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.ic_nns_governance.pb.v1.Neuron = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.Neuron.repeatedFields_, proto.ic_nns_governance.pb.v1.Neuron.oneofGroups_); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.Neuron, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey'; + proto.ic_nns_governance.pb.v1.Neuron.displayName = 'proto.ic_nns_governance.pb.v1.Neuron'; } /** * Generated by JsPbCodeGenerator. @@ -201,16 +325,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.oneofGroups_); +proto.ic_nns_governance.pb.v1.Neuron.Followees = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.Neuron.Followees.repeatedFields_, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.Configure, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.Neuron.Followees, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.Configure'; + proto.ic_nns_governance.pb.v1.Neuron.Followees.displayName = 'proto.ic_nns_governance.pb.v1.Neuron.Followees'; } /** * Generated by JsPbCodeGenerator. @@ -222,16 +346,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.ic_nns_governance.pb.v1.AbridgedNeuron = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_nns_governance.pb.v1.AbridgedNeuron.oneofGroups_); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.AbridgedNeuron, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn'; + proto.ic_nns_governance.pb.v1.AbridgedNeuron.displayName = 'proto.ic_nns_governance.pb.v1.AbridgedNeuron'; } /** * Generated by JsPbCodeGenerator. @@ -243,16 +367,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse = function(opt_data) { +proto.ic_nns_governance.pb.v1.ExecuteNnsFunction = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.ExecuteNnsFunction, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse'; + proto.ic_nns_governance.pb.v1.ExecuteNnsFunction.displayName = 'proto.ic_nns_governance.pb.v1.ExecuteNnsFunction'; } /** * Generated by JsPbCodeGenerator. @@ -264,16 +388,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount = function(opt_data) { +proto.ic_nns_governance.pb.v1.Motion = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.Motion, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount'; + proto.ic_nns_governance.pb.v1.Motion.displayName = 'proto.ic_nns_governance.pb.v1.Motion'; } /** * Generated by JsPbCodeGenerator. @@ -285,16 +409,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Follow = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.repeatedFields_, null); +proto.ic_nns_governance.pb.v1.ApproveGenesisKYC = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.ApproveGenesisKYC.repeatedFields_, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.Follow, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.ApproveGenesisKYC, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.Follow'; + proto.ic_nns_governance.pb.v1.ApproveGenesisKYC.displayName = 'proto.ic_nns_governance.pb.v1.ApproveGenesisKYC'; } /** * Generated by JsPbCodeGenerator. @@ -306,16 +430,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.oneofGroups_); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote'; + proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.displayName = 'proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider'; } /** * Generated by JsPbCodeGenerator. @@ -327,16 +451,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Merge = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.ic_nns_governance.pb.v1.RewardNodeProvider = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_nns_governance.pb.v1.RewardNodeProvider.oneofGroups_); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.Merge, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.RewardNodeProvider, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.Merge'; + proto.ic_nns_governance.pb.v1.RewardNodeProvider.displayName = 'proto.ic_nns_governance.pb.v1.RewardNodeProvider'; } /** * Generated by JsPbCodeGenerator. @@ -348,16 +472,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity = function(opt_data) { +proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity'; + proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron.displayName = 'proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron'; } /** * Generated by JsPbCodeGenerator. @@ -369,16 +493,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund = function(opt_data) { +proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund'; + proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount.displayName = 'proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount'; } /** * Generated by JsPbCodeGenerator. @@ -390,16 +514,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_); +proto.ic_nns_governance.pb.v1.RewardNodeProviders = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.RewardNodeProviders.repeatedFields_, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuronResponse, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.RewardNodeProviders, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuronResponse'; + proto.ic_nns_governance.pb.v1.RewardNodeProviders.displayName = 'proto.ic_nns_governance.pb.v1.RewardNodeProviders'; } /** * Generated by JsPbCodeGenerator. @@ -411,16 +535,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse = function(opt_data) { +proto.ic_nns_governance.pb.v1.SetDefaultFollowees = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.SetDefaultFollowees, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse'; + proto.ic_nns_governance.pb.v1.SetDefaultFollowees.displayName = 'proto.ic_nns_governance.pb.v1.SetDefaultFollowees'; } /** * Generated by JsPbCodeGenerator. @@ -432,16 +556,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse = function(opt_data) { +proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse'; + proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow.displayName = 'proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow'; } /** * Generated by JsPbCodeGenerator. @@ -453,16 +577,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.ic_nns_governance.pb.v1.Proposal = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_nns_governance.pb.v1.Proposal.oneofGroups_); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.Proposal, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse'; + proto.ic_nns_governance.pb.v1.Proposal.displayName = 'proto.ic_nns_governance.pb.v1.Proposal'; } /** * Generated by JsPbCodeGenerator. @@ -474,16 +598,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse = function(opt_data) { +proto.ic_nns_governance.pb.v1.Empty = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.Empty, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse'; + proto.ic_nns_governance.pb.v1.Empty.displayName = 'proto.ic_nns_governance.pb.v1.Empty'; } /** * Generated by JsPbCodeGenerator. @@ -495,16 +619,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.ic_nns_governance.pb.v1.ManageNeuron = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse'; + proto.ic_nns_governance.pb.v1.ManageNeuron.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron'; } /** * Generated by JsPbCodeGenerator. @@ -516,16 +640,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse = function(opt_data) { +proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse'; + proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay'; } /** * Generated by JsPbCodeGenerator. @@ -537,16 +661,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse = function(opt_data) { +proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse'; + proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving'; } /** * Generated by JsPbCodeGenerator. @@ -558,16 +682,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.GovernanceError = function(opt_data) { +proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.GovernanceError, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.GovernanceError.displayName = 'proto.ic_nns_governance.pb.v1.GovernanceError'; + proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving'; } /** * Generated by JsPbCodeGenerator. @@ -579,16 +703,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ListNeurons = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.ListNeurons.repeatedFields_, null); +proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ListNeurons, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ListNeurons.displayName = 'proto.ic_nns_governance.pb.v1.ListNeurons'; + proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey'; } /** * Generated by JsPbCodeGenerator. @@ -600,16 +724,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.ListNeuronsResponse.repeatedFields_, null); +proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ListNeuronsResponse, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ListNeuronsResponse.displayName = 'proto.ic_nns_governance.pb.v1.ListNeuronsResponse'; + proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey'; } /** * Generated by JsPbCodeGenerator. @@ -621,16 +745,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry = function(opt_data) { +proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.displayName = 'proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry'; + proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp'; } /** * Generated by JsPbCodeGenerator. @@ -642,16 +766,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.BallotInfo = function(opt_data) { +proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.BallotInfo, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.BallotInfo.displayName = 'proto.ic_nns_governance.pb.v1.BallotInfo'; + proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund'; } /** * Generated by JsPbCodeGenerator. @@ -663,16 +787,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.NeuronInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.NeuronInfo.repeatedFields_, null); +proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.NeuronInfo, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.NeuronInfo.displayName = 'proto.ic_nns_governance.pb.v1.NeuronInfo'; + proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund'; } /** * Generated by JsPbCodeGenerator. @@ -684,16 +808,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.Neuron = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.Neuron.repeatedFields_, proto.ic_nns_governance.pb.v1.Neuron.oneofGroups_); +proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.Neuron, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.Neuron.displayName = 'proto.ic_nns_governance.pb.v1.Neuron'; + proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity'; } /** * Generated by JsPbCodeGenerator. @@ -705,16 +829,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.Neuron.Followees = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.Neuron.Followees.repeatedFields_, null); +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.oneofGroups_); }; -goog.inherits(proto.ic_nns_governance.pb.v1.Neuron.Followees, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.Configure, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.Neuron.Followees.displayName = 'proto.ic_nns_governance.pb.v1.Neuron.Followees'; + proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.Configure'; } /** * Generated by JsPbCodeGenerator. @@ -726,530 +850,30065 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer = function(opt_data) { +proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_nns_governance.pb.v1.NeuronStakeTransfer, jspb.Message); +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.displayName = 'proto.ic_nns_governance.pb.v1.NeuronStakeTransfer'; + proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse'; } - -/** - * 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.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_ = [[11,12],[2,3,4,5,7,13,14]]; - /** - * @enum {number} + * 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.ic_nns_governance.pb.v1.ManageNeuron.NeuronIdOrSubaccountCase = { - NEURON_ID_OR_SUBACCOUNT_NOT_SET: 0, - SUBACCOUNT: 11, - NEURON_ID: 12 +proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; - +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount'; +} /** - * @return {proto.ic_nns_governance.pb.v1.ManageNeuron.NeuronIdOrSubaccountCase} + * 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.ic_nns_governance.pb.v1.ManageNeuron.prototype.getNeuronIdOrSubaccountCase = function() { - return /** @type {proto.ic_nns_governance.pb.v1.ManageNeuron.NeuronIdOrSubaccountCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[0])); +proto.ic_nns_governance.pb.v1.ManageNeuron.Split = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; - +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.Split, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuron.Split.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.Split'; +} /** - * @enum {number} + * 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.ic_nns_governance.pb.v1.ManageNeuron.CommandCase = { - COMMAND_NOT_SET: 0, - CONFIGURE: 2, - DISBURSE: 3, - SPAWN: 4, - FOLLOW: 5, - REGISTER_VOTE: 7, - MERGE_MATURITY: 13, - MERGE: 14 +proto.ic_nns_governance.pb.v1.ManageNeuron.Merge = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; - +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.Merge, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.Merge'; +} /** - * @return {proto.ic_nns_governance.pb.v1.ManageNeuron.CommandCase} + * 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.ic_nns_governance.pb.v1.ManageNeuron.prototype.getCommandCase = function() { - return /** @type {proto.ic_nns_governance.pb.v1.ManageNeuron.CommandCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[1])); +proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn'; +} +/** + * 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.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity'; +} +/** + * 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.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity'; +} +/** + * 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.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron'; +} +/** + * 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.ic_nns_governance.pb.v1.ManageNeuron.Follow = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.repeatedFields_, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.Follow, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.Follow'; +} +/** + * 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.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote'; +} +/** + * 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.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.oneofGroups_); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh'; +} +/** + * 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.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController'; +} +/** + * 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.ic_nns_governance.pb.v1.ManageNeuronResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuronResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuronResponse'; +} +/** + * 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.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse'; +} +/** + * 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.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse'; +} +/** + * 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.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse'; +} +/** + * 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.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse'; +} +/** + * 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.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse'; +} +/** + * 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.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse'; +} +/** + * 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.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse'; +} +/** + * 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.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse'; +} +/** + * 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.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse'; +} +/** + * 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.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse'; +} +/** + * 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.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse'; +} +/** + * 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.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse.displayName = 'proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse'; +} +/** + * 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.ic_nns_governance.pb.v1.GovernanceError = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.GovernanceError, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.GovernanceError.displayName = 'proto.ic_nns_governance.pb.v1.GovernanceError'; +} +/** + * 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.ic_nns_governance.pb.v1.Ballot = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.Ballot, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.Ballot.displayName = 'proto.ic_nns_governance.pb.v1.Ballot'; +} +/** + * 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.ic_nns_governance.pb.v1.Tally = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.Tally, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.Tally.displayName = 'proto.ic_nns_governance.pb.v1.Tally'; +} +/** + * 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.ic_nns_governance.pb.v1.ProposalData = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.ProposalData.repeatedFields_, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ProposalData, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ProposalData.displayName = 'proto.ic_nns_governance.pb.v1.ProposalData'; +} +/** + * 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.ic_nns_governance.pb.v1.NeuronsFundData = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.NeuronsFundData, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.NeuronsFundData.displayName = 'proto.ic_nns_governance.pb.v1.NeuronsFundData'; +} +/** + * 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.ic_nns_governance.pb.v1.NeuronsFundAuditInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.displayName = 'proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo'; +} +/** + * 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.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest.displayName = 'proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest'; +} +/** + * 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.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.oneofGroups_); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.displayName = 'proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse'; +} +/** + * 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.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok.displayName = 'proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok'; +} +/** + * 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.ic_nns_governance.pb.v1.NeuronsFundParticipation = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.NeuronsFundParticipation, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.displayName = 'proto.ic_nns_governance.pb.v1.NeuronsFundParticipation'; +} +/** + * 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.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction.displayName = 'proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction'; +} +/** + * 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.ic_nns_governance.pb.v1.NeuronsFundSnapshot = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.repeatedFields_, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.displayName = 'proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot'; +} +/** + * 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.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.displayName = 'proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion'; +} +/** + * 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.ic_nns_governance.pb.v1.SwapParticipationLimits = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.SwapParticipationLimits, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.SwapParticipationLimits.displayName = 'proto.ic_nns_governance.pb.v1.SwapParticipationLimits'; +} +/** + * 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.ic_nns_governance.pb.v1.DerivedProposalInformation = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.DerivedProposalInformation, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.DerivedProposalInformation.displayName = 'proto.ic_nns_governance.pb.v1.DerivedProposalInformation'; +} +/** + * 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.ic_nns_governance.pb.v1.SwapBackgroundInformation = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.repeatedFields_, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.SwapBackgroundInformation, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.displayName = 'proto.ic_nns_governance.pb.v1.SwapBackgroundInformation'; +} +/** + * 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.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.displayName = 'proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary'; +} +/** + * 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.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2 = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.repeatedFields_, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.displayName = 'proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2'; +} +/** + * 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.ic_nns_governance.pb.v1.WaitForQuietState = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.WaitForQuietState, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.WaitForQuietState.displayName = 'proto.ic_nns_governance.pb.v1.WaitForQuietState'; +} +/** + * 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.ic_nns_governance.pb.v1.ProposalInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ProposalInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ProposalInfo.displayName = 'proto.ic_nns_governance.pb.v1.ProposalInfo'; +} +/** + * 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.ic_nns_governance.pb.v1.NetworkEconomics = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.NetworkEconomics, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.NetworkEconomics.displayName = 'proto.ic_nns_governance.pb.v1.NetworkEconomics'; +} +/** + * 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.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.displayName = 'proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients'; +} +/** + * 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.ic_nns_governance.pb.v1.NeuronsFundEconomics = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.NeuronsFundEconomics, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.displayName = 'proto.ic_nns_governance.pb.v1.NeuronsFundEconomics'; +} +/** + * 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.ic_nns_governance.pb.v1.RewardEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.RewardEvent.repeatedFields_, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.RewardEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.RewardEvent.displayName = 'proto.ic_nns_governance.pb.v1.RewardEvent'; +} +/** + * 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.ic_nns_governance.pb.v1.KnownNeuron = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.KnownNeuron, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.KnownNeuron.displayName = 'proto.ic_nns_governance.pb.v1.KnownNeuron'; +} +/** + * 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.ic_nns_governance.pb.v1.KnownNeuronData = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.KnownNeuronData, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.KnownNeuronData.displayName = 'proto.ic_nns_governance.pb.v1.KnownNeuronData'; +} +/** + * 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.ic_nns_governance.pb.v1.OpenSnsTokenSwap = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.displayName = 'proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap'; +} +/** + * 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.ic_nns_governance.pb.v1.CreateServiceNervousSystem = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.repeatedFields_, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.displayName = 'proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem'; +} +/** + * 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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.displayName = 'proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution'; +} +/** + * 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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.repeatedFields_, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.displayName = 'proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution'; +} +/** + * 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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.displayName = 'proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution'; +} +/** + * 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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution.displayName = 'proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution'; +} +/** + * 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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution.displayName = 'proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution'; +} +/** + * 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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.displayName = 'proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters'; +} +/** + * 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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters.displayName = 'proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters'; +} +/** + * 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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.displayName = 'proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters'; +} +/** + * 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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.displayName = 'proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters'; +} +/** + * 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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.displayName = 'proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters'; +} +/** + * 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.ic_nns_governance.pb.v1.Governance = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.Governance.repeatedFields_, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.Governance, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.Governance.displayName = 'proto.ic_nns_governance.pb.v1.Governance'; +} +/** + * 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.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.oneofGroups_); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.displayName = 'proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand'; +} +/** + * 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.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand.displayName = 'proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand'; +} +/** + * 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.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.displayName = 'proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics'; +} +/** + * 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.ic_nns_governance.pb.v1.Governance.MakingSnsProposal = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.displayName = 'proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal'; +} +/** + * 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.ic_nns_governance.pb.v1.Governance.Migration = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_nns_governance.pb.v1.Governance.Migration.oneofGroups_); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.Governance.Migration, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.Governance.Migration.displayName = 'proto.ic_nns_governance.pb.v1.Governance.Migration'; +} +/** + * 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.ic_nns_governance.pb.v1.Governance.Migrations = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.Governance.Migrations, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.Governance.Migrations.displayName = 'proto.ic_nns_governance.pb.v1.Governance.Migrations'; +} +/** + * 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.ic_nns_governance.pb.v1.Governance.FollowersMap = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.Governance.FollowersMap, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.Governance.FollowersMap.displayName = 'proto.ic_nns_governance.pb.v1.Governance.FollowersMap'; +} +/** + * 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.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers.repeatedFields_, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers.displayName = 'proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers'; +} +/** + * 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.ic_nns_governance.pb.v1.XdrConversionRate = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.XdrConversionRate, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.XdrConversionRate.displayName = 'proto.ic_nns_governance.pb.v1.XdrConversionRate'; +} +/** + * 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.ic_nns_governance.pb.v1.ListProposalInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.ListProposalInfo.repeatedFields_, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ListProposalInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ListProposalInfo.displayName = 'proto.ic_nns_governance.pb.v1.ListProposalInfo'; +} +/** + * 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.ic_nns_governance.pb.v1.ListProposalInfoResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.ListProposalInfoResponse.repeatedFields_, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ListProposalInfoResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ListProposalInfoResponse.displayName = 'proto.ic_nns_governance.pb.v1.ListProposalInfoResponse'; +} +/** + * 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.ic_nns_governance.pb.v1.ListNeurons = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.ListNeurons.repeatedFields_, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ListNeurons, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ListNeurons.displayName = 'proto.ic_nns_governance.pb.v1.ListNeurons'; +} +/** + * 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.ic_nns_governance.pb.v1.ListNeuronsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.ListNeuronsResponse.repeatedFields_, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ListNeuronsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ListNeuronsResponse.displayName = 'proto.ic_nns_governance.pb.v1.ListNeuronsResponse'; +} +/** + * 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.ic_nns_governance.pb.v1.ListKnownNeuronsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse.repeatedFields_, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse.displayName = 'proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse'; +} +/** + * 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.ic_nns_governance.pb.v1.ListNodeProvidersResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse.repeatedFields_, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse.displayName = 'proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse'; +} +/** + * 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.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount.displayName = 'proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount'; +} +/** + * 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.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.oneofGroups_); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.displayName = 'proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse'; +} +/** + * 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.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards.repeatedFields_, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards.displayName = 'proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards'; +} +/** + * 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.ic_nns_governance.pb.v1.SettleCommunityFundParticipation = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.oneofGroups_); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.displayName = 'proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation'; +} +/** + * 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.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.displayName = 'proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed'; +} +/** + * 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.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted.displayName = 'proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted'; +} +/** + * 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.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.oneofGroups_); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.displayName = 'proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest'; +} +/** + * 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.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.displayName = 'proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed'; +} +/** + * 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.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted.displayName = 'proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted'; +} +/** + * 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.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.oneofGroups_); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.displayName = 'proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse'; +} +/** + * 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.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.displayName = 'proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron'; +} +/** + * 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.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok.repeatedFields_, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok.displayName = 'proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok'; +} +/** + * 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.ic_nns_governance.pb.v1.AuditEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_nns_governance.pb.v1.AuditEvent.oneofGroups_); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.AuditEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.AuditEvent.displayName = 'proto.ic_nns_governance.pb.v1.AuditEvent'; +} +/** + * 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.ic_nns_governance.pb.v1.AuditEvent.ResetAging = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.oneofGroups_); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.displayName = 'proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging'; +} +/** + * 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.ic_nns_governance.pb.v1.AuditEvent.RestoreAging = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.oneofGroups_); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.displayName = 'proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging'; +} +/** + * 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.ic_nns_governance.pb.v1.RestoreAgingSummary = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_nns_governance.pb.v1.RestoreAgingSummary.repeatedFields_, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.RestoreAgingSummary, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.RestoreAgingSummary.displayName = 'proto.ic_nns_governance.pb.v1.RestoreAgingSummary'; +} +/** + * 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.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.displayName = 'proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup'; +} + + + +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.ic_nns_governance.pb.v1.NodeProvider.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.NodeProvider.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.ic_nns_governance.pb.v1.NodeProvider} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.NodeProvider.toObject = function(includeInstance, msg) { + var f, obj = { + id: (f = msg.getId()) && base_types_pb.PrincipalId.toObject(includeInstance, f), + rewardAccount: (f = msg.getRewardAccount()) && ledger_pb.AccountIdentifier.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.ic_nns_governance.pb.v1.NodeProvider} + */ +proto.ic_nns_governance.pb.v1.NodeProvider.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.NodeProvider; + return proto.ic_nns_governance.pb.v1.NodeProvider.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.NodeProvider} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.NodeProvider} + */ +proto.ic_nns_governance.pb.v1.NodeProvider.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setId(value); + break; + case 2: + var value = new ledger_pb.AccountIdentifier; + reader.readMessage(value,ledger_pb.AccountIdentifier.deserializeBinaryFromReader); + msg.setRewardAccount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.NodeProvider.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.NodeProvider.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.NodeProvider} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.NodeProvider.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f != null) { + writer.writeMessage( + 1, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = message.getRewardAccount(); + if (f != null) { + writer.writeMessage( + 2, + f, + ledger_pb.AccountIdentifier.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_base_types.pb.v1.PrincipalId id = 1; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_nns_governance.pb.v1.NodeProvider.prototype.getId = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 1)); +}; + + +/** + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NodeProvider} returns this +*/ +proto.ic_nns_governance.pb.v1.NodeProvider.prototype.setId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NodeProvider} returns this + */ +proto.ic_nns_governance.pb.v1.NodeProvider.prototype.clearId = function() { + return this.setId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NodeProvider.prototype.hasId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ic_ledger.pb.v1.AccountIdentifier reward_account = 2; + * @return {?proto.ic_ledger.pb.v1.AccountIdentifier} + */ +proto.ic_nns_governance.pb.v1.NodeProvider.prototype.getRewardAccount = function() { + return /** @type{?proto.ic_ledger.pb.v1.AccountIdentifier} */ ( + jspb.Message.getWrapperField(this, ledger_pb.AccountIdentifier, 2)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.AccountIdentifier|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NodeProvider} returns this +*/ +proto.ic_nns_governance.pb.v1.NodeProvider.prototype.setRewardAccount = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NodeProvider} returns this + */ +proto.ic_nns_governance.pb.v1.NodeProvider.prototype.clearRewardAccount = function() { + return this.setRewardAccount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NodeProvider.prototype.hasRewardAccount = function() { + return jspb.Message.getField(this, 2) != 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.ic_nns_governance.pb.v1.UpdateNodeProvider.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.UpdateNodeProvider.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.ic_nns_governance.pb.v1.UpdateNodeProvider} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.UpdateNodeProvider.toObject = function(includeInstance, msg) { + var f, obj = { + rewardAccount: (f = msg.getRewardAccount()) && ledger_pb.AccountIdentifier.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.ic_nns_governance.pb.v1.UpdateNodeProvider} + */ +proto.ic_nns_governance.pb.v1.UpdateNodeProvider.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.UpdateNodeProvider; + return proto.ic_nns_governance.pb.v1.UpdateNodeProvider.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.UpdateNodeProvider} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.UpdateNodeProvider} + */ +proto.ic_nns_governance.pb.v1.UpdateNodeProvider.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new ledger_pb.AccountIdentifier; + reader.readMessage(value,ledger_pb.AccountIdentifier.deserializeBinaryFromReader); + msg.setRewardAccount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.UpdateNodeProvider.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.UpdateNodeProvider.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.UpdateNodeProvider} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.UpdateNodeProvider.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRewardAccount(); + if (f != null) { + writer.writeMessage( + 1, + f, + ledger_pb.AccountIdentifier.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_ledger.pb.v1.AccountIdentifier reward_account = 1; + * @return {?proto.ic_ledger.pb.v1.AccountIdentifier} + */ +proto.ic_nns_governance.pb.v1.UpdateNodeProvider.prototype.getRewardAccount = function() { + return /** @type{?proto.ic_ledger.pb.v1.AccountIdentifier} */ ( + jspb.Message.getWrapperField(this, ledger_pb.AccountIdentifier, 1)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.AccountIdentifier|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.UpdateNodeProvider} returns this +*/ +proto.ic_nns_governance.pb.v1.UpdateNodeProvider.prototype.setRewardAccount = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.UpdateNodeProvider} returns this + */ +proto.ic_nns_governance.pb.v1.UpdateNodeProvider.prototype.clearRewardAccount = function() { + return this.setRewardAccount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.UpdateNodeProvider.prototype.hasRewardAccount = 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.ic_nns_governance.pb.v1.BallotInfo.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.BallotInfo.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.ic_nns_governance.pb.v1.BallotInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.BallotInfo.toObject = function(includeInstance, msg) { + var f, obj = { + proposalId: (f = msg.getProposalId()) && nns_common_pb.ProposalId.toObject(includeInstance, f), + vote: jspb.Message.getFieldWithDefault(msg, 2, 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.ic_nns_governance.pb.v1.BallotInfo} + */ +proto.ic_nns_governance.pb.v1.BallotInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.BallotInfo; + return proto.ic_nns_governance.pb.v1.BallotInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.BallotInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.BallotInfo} + */ +proto.ic_nns_governance.pb.v1.BallotInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nns_common_pb.ProposalId; + reader.readMessage(value,nns_common_pb.ProposalId.deserializeBinaryFromReader); + msg.setProposalId(value); + break; + case 2: + var value = /** @type {!proto.ic_nns_governance.pb.v1.Vote} */ (reader.readEnum()); + msg.setVote(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.BallotInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.BallotInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.BallotInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.BallotInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProposalId(); + if (f != null) { + writer.writeMessage( + 1, + f, + nns_common_pb.ProposalId.serializeBinaryToWriter + ); + } + f = message.getVote(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } +}; + + +/** + * optional ic_nns_common.pb.v1.ProposalId proposal_id = 1; + * @return {?proto.ic_nns_common.pb.v1.ProposalId} + */ +proto.ic_nns_governance.pb.v1.BallotInfo.prototype.getProposalId = function() { + return /** @type{?proto.ic_nns_common.pb.v1.ProposalId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.ProposalId, 1)); +}; + + +/** + * @param {?proto.ic_nns_common.pb.v1.ProposalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.BallotInfo} returns this +*/ +proto.ic_nns_governance.pb.v1.BallotInfo.prototype.setProposalId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.BallotInfo} returns this + */ +proto.ic_nns_governance.pb.v1.BallotInfo.prototype.clearProposalId = function() { + return this.setProposalId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.BallotInfo.prototype.hasProposalId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Vote vote = 2; + * @return {!proto.ic_nns_governance.pb.v1.Vote} + */ +proto.ic_nns_governance.pb.v1.BallotInfo.prototype.getVote = function() { + return /** @type {!proto.ic_nns_governance.pb.v1.Vote} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.Vote} value + * @return {!proto.ic_nns_governance.pb.v1.BallotInfo} returns this + */ +proto.ic_nns_governance.pb.v1.BallotInfo.prototype.setVote = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.repeatedFields_ = [5]; + + + +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.ic_nns_governance.pb.v1.NeuronInfo.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.NeuronInfo.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.ic_nns_governance.pb.v1.NeuronInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.toObject = function(includeInstance, msg) { + var f, obj = { + retrievedAtTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 1, 0), + state: jspb.Message.getFieldWithDefault(msg, 2, 0), + ageSeconds: jspb.Message.getFieldWithDefault(msg, 3, 0), + dissolveDelaySeconds: jspb.Message.getFieldWithDefault(msg, 4, 0), + recentBallotsList: jspb.Message.toObjectList(msg.getRecentBallotsList(), + proto.ic_nns_governance.pb.v1.BallotInfo.toObject, includeInstance), + votingPower: jspb.Message.getFieldWithDefault(msg, 6, 0), + createdTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 7, 0), + stakeE8s: jspb.Message.getFieldWithDefault(msg, 8, 0), + joinedCommunityFundTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 9, 0), + knownNeuronData: (f = msg.getKnownNeuronData()) && proto.ic_nns_governance.pb.v1.KnownNeuronData.toObject(includeInstance, f), + neuronType: jspb.Message.getFieldWithDefault(msg, 11, 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.ic_nns_governance.pb.v1.NeuronInfo} + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.NeuronInfo; + return proto.ic_nns_governance.pb.v1.NeuronInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.NeuronInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setRetrievedAtTimestampSeconds(value); + break; + case 2: + var value = /** @type {!proto.ic_nns_governance.pb.v1.NeuronState} */ (reader.readEnum()); + msg.setState(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setAgeSeconds(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDissolveDelaySeconds(value); + break; + case 5: + var value = new proto.ic_nns_governance.pb.v1.BallotInfo; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.BallotInfo.deserializeBinaryFromReader); + msg.addRecentBallots(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setVotingPower(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedTimestampSeconds(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setStakeE8s(value); + break; + case 9: + var value = /** @type {number} */ (reader.readUint64()); + msg.setJoinedCommunityFundTimestampSeconds(value); + break; + case 10: + var value = new proto.ic_nns_governance.pb.v1.KnownNeuronData; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.KnownNeuronData.deserializeBinaryFromReader); + msg.setKnownNeuronData(value); + break; + case 11: + var value = /** @type {!proto.ic_nns_governance.pb.v1.NeuronType} */ (reader.readEnum()); + msg.setNeuronType(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.NeuronInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.NeuronInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRetrievedAtTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getState(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } + f = message.getAgeSeconds(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } + f = message.getDissolveDelaySeconds(); + if (f !== 0) { + writer.writeUint64( + 4, + f + ); + } + f = message.getRecentBallotsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 5, + f, + proto.ic_nns_governance.pb.v1.BallotInfo.serializeBinaryToWriter + ); + } + f = message.getVotingPower(); + if (f !== 0) { + writer.writeUint64( + 6, + f + ); + } + f = message.getCreatedTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( + 7, + f + ); + } + f = message.getStakeE8s(); + if (f !== 0) { + writer.writeUint64( + 8, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 9)); + if (f != null) { + writer.writeUint64( + 9, + f + ); + } + f = message.getKnownNeuronData(); + if (f != null) { + writer.writeMessage( + 10, + f, + proto.ic_nns_governance.pb.v1.KnownNeuronData.serializeBinaryToWriter + ); + } + f = /** @type {!proto.ic_nns_governance.pb.v1.NeuronType} */ (jspb.Message.getField(message, 11)); + if (f != null) { + writer.writeEnum( + 11, + f + ); + } +}; + + +/** + * optional uint64 retrieved_at_timestamp_seconds = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.getRetrievedAtTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.setRetrievedAtTimestampSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional NeuronState state = 2; + * @return {!proto.ic_nns_governance.pb.v1.NeuronState} + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.getState = function() { + return /** @type {!proto.ic_nns_governance.pb.v1.NeuronState} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.NeuronState} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.setState = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * optional uint64 age_seconds = 3; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.getAgeSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.setAgeSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional uint64 dissolve_delay_seconds = 4; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.getDissolveDelaySeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.setDissolveDelaySeconds = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * repeated BallotInfo recent_ballots = 5; + * @return {!Array} + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.getRecentBallotsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ic_nns_governance.pb.v1.BallotInfo, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} returns this +*/ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.setRecentBallotsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.BallotInfo=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_nns_governance.pb.v1.BallotInfo} + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.addRecentBallots = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.ic_nns_governance.pb.v1.BallotInfo, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.clearRecentBallotsList = function() { + return this.setRecentBallotsList([]); +}; + + +/** + * optional uint64 voting_power = 6; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.getVotingPower = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.setVotingPower = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional uint64 created_timestamp_seconds = 7; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.getCreatedTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.setCreatedTimestampSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional uint64 stake_e8s = 8; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.getStakeE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.setStakeE8s = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional uint64 joined_community_fund_timestamp_seconds = 9; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.getJoinedCommunityFundTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.setJoinedCommunityFundTimestampSeconds = function(value) { + return jspb.Message.setField(this, 9, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.clearJoinedCommunityFundTimestampSeconds = function() { + return jspb.Message.setField(this, 9, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.hasJoinedCommunityFundTimestampSeconds = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional KnownNeuronData known_neuron_data = 10; + * @return {?proto.ic_nns_governance.pb.v1.KnownNeuronData} + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.getKnownNeuronData = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.KnownNeuronData} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.KnownNeuronData, 10)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.KnownNeuronData|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} returns this +*/ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.setKnownNeuronData = function(value) { + return jspb.Message.setWrapperField(this, 10, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.clearKnownNeuronData = function() { + return this.setKnownNeuronData(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.hasKnownNeuronData = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional NeuronType neuron_type = 11; + * @return {!proto.ic_nns_governance.pb.v1.NeuronType} + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.getNeuronType = function() { + return /** @type {!proto.ic_nns_governance.pb.v1.NeuronType} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.NeuronType} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.setNeuronType = function(value) { + return jspb.Message.setField(this, 11, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.clearNeuronType = function() { + return jspb.Message.setField(this, 11, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.hasNeuronType = function() { + return jspb.Message.getField(this, 11) != 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.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.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.ic_nns_governance.pb.v1.NeuronStakeTransfer} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.toObject = function(includeInstance, msg) { + var f, obj = { + transferTimestamp: jspb.Message.getFieldWithDefault(msg, 1, 0), + from: (f = msg.getFrom()) && base_types_pb.PrincipalId.toObject(includeInstance, f), + fromSubaccount: msg.getFromSubaccount_asB64(), + toSubaccount: msg.getToSubaccount_asB64(), + neuronStakeE8s: jspb.Message.getFieldWithDefault(msg, 5, 0), + blockHeight: jspb.Message.getFieldWithDefault(msg, 6, 0), + memo: jspb.Message.getFieldWithDefault(msg, 7, 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.ic_nns_governance.pb.v1.NeuronStakeTransfer} + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.NeuronStakeTransfer; + return proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTransferTimestamp(value); + break; + case 2: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setFrom(value); + break; + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setFromSubaccount(value); + break; + case 4: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setToSubaccount(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setNeuronStakeE8s(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setBlockHeight(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTransferTimestamp(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getFrom(); + if (f != null) { + writer.writeMessage( + 2, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = message.getFromSubaccount_asU8(); + if (f.length > 0) { + writer.writeBytes( + 3, + f + ); + } + f = message.getToSubaccount_asU8(); + if (f.length > 0) { + writer.writeBytes( + 4, + f + ); + } + f = message.getNeuronStakeE8s(); + if (f !== 0) { + writer.writeUint64( + 5, + f + ); + } + f = message.getBlockHeight(); + if (f !== 0) { + writer.writeUint64( + 6, + f + ); + } + f = message.getMemo(); + if (f !== 0) { + writer.writeUint64( + 7, + f + ); + } +}; + + +/** + * optional uint64 transfer_timestamp = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.getTransferTimestamp = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.setTransferTimestamp = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional ic_base_types.pb.v1.PrincipalId from = 2; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.getFrom = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 2)); +}; + + +/** + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} returns this +*/ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.setFrom = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.clearFrom = function() { + return this.setFrom(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.hasFrom = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional bytes from_subaccount = 3; + * @return {!(string|Uint8Array)} + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.getFromSubaccount = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * optional bytes from_subaccount = 3; + * This is a type-conversion wrapper around `getFromSubaccount()` + * @return {string} + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.getFromSubaccount_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getFromSubaccount())); +}; + + +/** + * optional bytes from_subaccount = 3; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getFromSubaccount()` + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.getFromSubaccount_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getFromSubaccount())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.setFromSubaccount = function(value) { + return jspb.Message.setProto3BytesField(this, 3, value); +}; + + +/** + * optional bytes to_subaccount = 4; + * @return {!(string|Uint8Array)} + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.getToSubaccount = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * optional bytes to_subaccount = 4; + * This is a type-conversion wrapper around `getToSubaccount()` + * @return {string} + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.getToSubaccount_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getToSubaccount())); +}; + + +/** + * optional bytes to_subaccount = 4; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getToSubaccount()` + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.getToSubaccount_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getToSubaccount())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.setToSubaccount = function(value) { + return jspb.Message.setProto3BytesField(this, 4, value); +}; + + +/** + * optional uint64 neuron_stake_e8s = 5; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.getNeuronStakeE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.setNeuronStakeE8s = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional uint64 block_height = 6; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.getBlockHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.setBlockHeight = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional uint64 memo = 7; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.getMemo = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.setMemo = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_nns_governance.pb.v1.Neuron.repeatedFields_ = [4,12]; + +/** + * 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.ic_nns_governance.pb.v1.Neuron.oneofGroups_ = [[9,10]]; + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.Neuron.DissolveStateCase = { + DISSOLVE_STATE_NOT_SET: 0, + WHEN_DISSOLVED_TIMESTAMP_SECONDS: 9, + DISSOLVE_DELAY_SECONDS: 10 +}; + +/** + * @return {proto.ic_nns_governance.pb.v1.Neuron.DissolveStateCase} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getDissolveStateCase = function() { + return /** @type {proto.ic_nns_governance.pb.v1.Neuron.DissolveStateCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.Neuron.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.ic_nns_governance.pb.v1.Neuron.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.Neuron.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.ic_nns_governance.pb.v1.Neuron} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.Neuron.toObject = function(includeInstance, msg) { + var f, obj = { + id: (f = msg.getId()) && nns_common_pb.NeuronId.toObject(includeInstance, f), + account: msg.getAccount_asB64(), + controller: (f = msg.getController()) && base_types_pb.PrincipalId.toObject(includeInstance, f), + hotKeysList: jspb.Message.toObjectList(msg.getHotKeysList(), + base_types_pb.PrincipalId.toObject, includeInstance), + cachedNeuronStakeE8s: jspb.Message.getFieldWithDefault(msg, 5, 0), + neuronFeesE8s: jspb.Message.getFieldWithDefault(msg, 6, 0), + createdTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 7, 0), + agingSinceTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 8, 0), + spawnAtTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 19, 0), + whenDissolvedTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 9, 0), + dissolveDelaySeconds: jspb.Message.getFieldWithDefault(msg, 10, 0), + followeesMap: (f = msg.getFolloweesMap()) ? f.toObject(includeInstance, proto.ic_nns_governance.pb.v1.Neuron.Followees.toObject) : [], + recentBallotsList: jspb.Message.toObjectList(msg.getRecentBallotsList(), + proto.ic_nns_governance.pb.v1.BallotInfo.toObject, includeInstance), + kycVerified: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), + transfer: (f = msg.getTransfer()) && proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.toObject(includeInstance, f), + maturityE8sEquivalent: jspb.Message.getFieldWithDefault(msg, 15, 0), + stakedMaturityE8sEquivalent: jspb.Message.getFieldWithDefault(msg, 20, 0), + autoStakeMaturity: jspb.Message.getBooleanFieldWithDefault(msg, 21, false), + notForProfit: jspb.Message.getBooleanFieldWithDefault(msg, 16, false), + joinedCommunityFundTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 17, 0), + knownNeuronData: (f = msg.getKnownNeuronData()) && proto.ic_nns_governance.pb.v1.KnownNeuronData.toObject(includeInstance, f), + neuronType: jspb.Message.getFieldWithDefault(msg, 22, 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.ic_nns_governance.pb.v1.Neuron} + */ +proto.ic_nns_governance.pb.v1.Neuron.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.Neuron; + return proto.ic_nns_governance.pb.v1.Neuron.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.Neuron} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.Neuron} + */ +proto.ic_nns_governance.pb.v1.Neuron.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nns_common_pb.NeuronId; + reader.readMessage(value,nns_common_pb.NeuronId.deserializeBinaryFromReader); + msg.setId(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setAccount(value); + break; + case 3: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setController(value); + break; + case 4: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.addHotKeys(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCachedNeuronStakeE8s(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setNeuronFeesE8s(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedTimestampSeconds(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setAgingSinceTimestampSeconds(value); + break; + case 19: + var value = /** @type {number} */ (reader.readUint64()); + msg.setSpawnAtTimestampSeconds(value); + break; + case 9: + var value = /** @type {number} */ (reader.readUint64()); + msg.setWhenDissolvedTimestampSeconds(value); + break; + case 10: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDissolveDelaySeconds(value); + break; + case 11: + var value = msg.getFolloweesMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readInt32, jspb.BinaryReader.prototype.readMessage, proto.ic_nns_governance.pb.v1.Neuron.Followees.deserializeBinaryFromReader, 0, new proto.ic_nns_governance.pb.v1.Neuron.Followees()); + }); + break; + case 12: + var value = new proto.ic_nns_governance.pb.v1.BallotInfo; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.BallotInfo.deserializeBinaryFromReader); + msg.addRecentBallots(value); + break; + case 13: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setKycVerified(value); + break; + case 14: + var value = new proto.ic_nns_governance.pb.v1.NeuronStakeTransfer; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.deserializeBinaryFromReader); + msg.setTransfer(value); + break; + case 15: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMaturityE8sEquivalent(value); + break; + case 20: + var value = /** @type {number} */ (reader.readUint64()); + msg.setStakedMaturityE8sEquivalent(value); + break; + case 21: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setAutoStakeMaturity(value); + break; + case 16: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setNotForProfit(value); + break; + case 17: + var value = /** @type {number} */ (reader.readUint64()); + msg.setJoinedCommunityFundTimestampSeconds(value); + break; + case 18: + var value = new proto.ic_nns_governance.pb.v1.KnownNeuronData; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.KnownNeuronData.deserializeBinaryFromReader); + msg.setKnownNeuronData(value); + break; + case 22: + var value = /** @type {!proto.ic_nns_governance.pb.v1.NeuronType} */ (reader.readEnum()); + msg.setNeuronType(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.Neuron.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.Neuron} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.Neuron.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f != null) { + writer.writeMessage( + 1, + f, + nns_common_pb.NeuronId.serializeBinaryToWriter + ); + } + f = message.getAccount_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getController(); + if (f != null) { + writer.writeMessage( + 3, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = message.getHotKeysList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 4, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = message.getCachedNeuronStakeE8s(); + if (f !== 0) { + writer.writeUint64( + 5, + f + ); + } + f = message.getNeuronFeesE8s(); + if (f !== 0) { + writer.writeUint64( + 6, + f + ); + } + f = message.getCreatedTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( + 7, + f + ); + } + f = message.getAgingSinceTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( + 8, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 19)); + if (f != null) { + writer.writeUint64( + 19, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 9)); + if (f != null) { + writer.writeUint64( + 9, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 10)); + if (f != null) { + writer.writeUint64( + 10, + f + ); + } + f = message.getFolloweesMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(11, writer, jspb.BinaryWriter.prototype.writeInt32, jspb.BinaryWriter.prototype.writeMessage, proto.ic_nns_governance.pb.v1.Neuron.Followees.serializeBinaryToWriter); + } + f = message.getRecentBallotsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 12, + f, + proto.ic_nns_governance.pb.v1.BallotInfo.serializeBinaryToWriter + ); + } + f = message.getKycVerified(); + if (f) { + writer.writeBool( + 13, + f + ); + } + f = message.getTransfer(); + if (f != null) { + writer.writeMessage( + 14, + f, + proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.serializeBinaryToWriter + ); + } + f = message.getMaturityE8sEquivalent(); + if (f !== 0) { + writer.writeUint64( + 15, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 20)); + if (f != null) { + writer.writeUint64( + 20, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 21)); + if (f != null) { + writer.writeBool( + 21, + f + ); + } + f = message.getNotForProfit(); + if (f) { + writer.writeBool( + 16, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 17)); + if (f != null) { + writer.writeUint64( + 17, + f + ); + } + f = message.getKnownNeuronData(); + if (f != null) { + writer.writeMessage( + 18, + f, + proto.ic_nns_governance.pb.v1.KnownNeuronData.serializeBinaryToWriter + ); + } + f = /** @type {!proto.ic_nns_governance.pb.v1.NeuronType} */ (jspb.Message.getField(message, 22)); + if (f != null) { + writer.writeEnum( + 22, + f + ); + } +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_nns_governance.pb.v1.Neuron.Followees.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.ic_nns_governance.pb.v1.Neuron.Followees.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.Neuron.Followees.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.ic_nns_governance.pb.v1.Neuron.Followees} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.Neuron.Followees.toObject = function(includeInstance, msg) { + var f, obj = { + followeesList: jspb.Message.toObjectList(msg.getFolloweesList(), + nns_common_pb.NeuronId.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_nns_governance.pb.v1.Neuron.Followees} + */ +proto.ic_nns_governance.pb.v1.Neuron.Followees.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.Neuron.Followees; + return proto.ic_nns_governance.pb.v1.Neuron.Followees.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.Neuron.Followees} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.Neuron.Followees} + */ +proto.ic_nns_governance.pb.v1.Neuron.Followees.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nns_common_pb.NeuronId; + reader.readMessage(value,nns_common_pb.NeuronId.deserializeBinaryFromReader); + msg.addFollowees(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.Neuron.Followees.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.Neuron.Followees.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.Neuron.Followees} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.Neuron.Followees.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getFolloweesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + nns_common_pb.NeuronId.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated ic_nns_common.pb.v1.NeuronId followees = 1; + * @return {!Array} + */ +proto.ic_nns_governance.pb.v1.Neuron.Followees.prototype.getFolloweesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, nns_common_pb.NeuronId, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.Neuron.Followees} returns this +*/ +proto.ic_nns_governance.pb.v1.Neuron.Followees.prototype.setFolloweesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.ic_nns_common.pb.v1.NeuronId=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_nns_common.pb.v1.NeuronId} + */ +proto.ic_nns_governance.pb.v1.Neuron.Followees.prototype.addFollowees = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ic_nns_common.pb.v1.NeuronId, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.Neuron.Followees} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.Followees.prototype.clearFolloweesList = function() { + return this.setFolloweesList([]); +}; + + +/** + * optional ic_nns_common.pb.v1.NeuronId id = 1; + * @return {?proto.ic_nns_common.pb.v1.NeuronId} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getId = function() { + return /** @type{?proto.ic_nns_common.pb.v1.NeuronId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.NeuronId, 1)); +}; + + +/** + * @param {?proto.ic_nns_common.pb.v1.NeuronId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this +*/ +proto.ic_nns_governance.pb.v1.Neuron.prototype.setId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.clearId = function() { + return this.setId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.hasId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bytes account = 2; + * @return {!(string|Uint8Array)} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getAccount = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes account = 2; + * This is a type-conversion wrapper around `getAccount()` + * @return {string} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getAccount_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getAccount())); +}; + + +/** + * optional bytes account = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getAccount()` + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getAccount_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getAccount())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.setAccount = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + +/** + * optional ic_base_types.pb.v1.PrincipalId controller = 3; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getController = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 3)); +}; + + +/** + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this +*/ +proto.ic_nns_governance.pb.v1.Neuron.prototype.setController = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.clearController = function() { + return this.setController(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.hasController = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * repeated ic_base_types.pb.v1.PrincipalId hot_keys = 4; + * @return {!Array} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getHotKeysList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, base_types_pb.PrincipalId, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this +*/ +proto.ic_nns_governance.pb.v1.Neuron.prototype.setHotKeysList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 4, value); +}; + + +/** + * @param {!proto.ic_base_types.pb.v1.PrincipalId=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.addHotKeys = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.ic_base_types.pb.v1.PrincipalId, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.clearHotKeysList = function() { + return this.setHotKeysList([]); +}; + + +/** + * optional uint64 cached_neuron_stake_e8s = 5; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getCachedNeuronStakeE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.setCachedNeuronStakeE8s = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional uint64 neuron_fees_e8s = 6; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getNeuronFeesE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.setNeuronFeesE8s = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional uint64 created_timestamp_seconds = 7; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getCreatedTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.setCreatedTimestampSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional uint64 aging_since_timestamp_seconds = 8; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getAgingSinceTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.setAgingSinceTimestampSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional uint64 spawn_at_timestamp_seconds = 19; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getSpawnAtTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.setSpawnAtTimestampSeconds = function(value) { + return jspb.Message.setField(this, 19, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.clearSpawnAtTimestampSeconds = function() { + return jspb.Message.setField(this, 19, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.hasSpawnAtTimestampSeconds = function() { + return jspb.Message.getField(this, 19) != null; +}; + + +/** + * optional uint64 when_dissolved_timestamp_seconds = 9; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getWhenDissolvedTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.setWhenDissolvedTimestampSeconds = function(value) { + return jspb.Message.setOneofField(this, 9, proto.ic_nns_governance.pb.v1.Neuron.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.clearWhenDissolvedTimestampSeconds = function() { + return jspb.Message.setOneofField(this, 9, proto.ic_nns_governance.pb.v1.Neuron.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.hasWhenDissolvedTimestampSeconds = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional uint64 dissolve_delay_seconds = 10; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getDissolveDelaySeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.setDissolveDelaySeconds = function(value) { + return jspb.Message.setOneofField(this, 10, proto.ic_nns_governance.pb.v1.Neuron.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.clearDissolveDelaySeconds = function() { + return jspb.Message.setOneofField(this, 10, proto.ic_nns_governance.pb.v1.Neuron.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.hasDissolveDelaySeconds = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * map followees = 11; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getFolloweesMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 11, opt_noLazyCreate, + proto.ic_nns_governance.pb.v1.Neuron.Followees)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.clearFolloweesMap = function() { + this.getFolloweesMap().clear(); + return this; +}; + + +/** + * repeated BallotInfo recent_ballots = 12; + * @return {!Array} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getRecentBallotsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ic_nns_governance.pb.v1.BallotInfo, 12)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this +*/ +proto.ic_nns_governance.pb.v1.Neuron.prototype.setRecentBallotsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 12, value); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.BallotInfo=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_nns_governance.pb.v1.BallotInfo} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.addRecentBallots = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.ic_nns_governance.pb.v1.BallotInfo, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.clearRecentBallotsList = function() { + return this.setRecentBallotsList([]); +}; + + +/** + * optional bool kyc_verified = 13; + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getKycVerified = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.setKycVerified = function(value) { + return jspb.Message.setProto3BooleanField(this, 13, value); +}; + + +/** + * optional NeuronStakeTransfer transfer = 14; + * @return {?proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getTransfer = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.NeuronStakeTransfer, 14)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.NeuronStakeTransfer|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this +*/ +proto.ic_nns_governance.pb.v1.Neuron.prototype.setTransfer = function(value) { + return jspb.Message.setWrapperField(this, 14, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.clearTransfer = function() { + return this.setTransfer(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.hasTransfer = function() { + return jspb.Message.getField(this, 14) != null; +}; + + +/** + * optional uint64 maturity_e8s_equivalent = 15; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getMaturityE8sEquivalent = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.setMaturityE8sEquivalent = function(value) { + return jspb.Message.setProto3IntField(this, 15, value); +}; + + +/** + * optional uint64 staked_maturity_e8s_equivalent = 20; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getStakedMaturityE8sEquivalent = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.setStakedMaturityE8sEquivalent = function(value) { + return jspb.Message.setField(this, 20, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.clearStakedMaturityE8sEquivalent = function() { + return jspb.Message.setField(this, 20, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.hasStakedMaturityE8sEquivalent = function() { + return jspb.Message.getField(this, 20) != null; +}; + + +/** + * optional bool auto_stake_maturity = 21; + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getAutoStakeMaturity = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 21, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.setAutoStakeMaturity = function(value) { + return jspb.Message.setField(this, 21, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.clearAutoStakeMaturity = function() { + return jspb.Message.setField(this, 21, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.hasAutoStakeMaturity = function() { + return jspb.Message.getField(this, 21) != null; +}; + + +/** + * optional bool not_for_profit = 16; + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getNotForProfit = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 16, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.setNotForProfit = function(value) { + return jspb.Message.setProto3BooleanField(this, 16, value); +}; + + +/** + * optional uint64 joined_community_fund_timestamp_seconds = 17; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getJoinedCommunityFundTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.setJoinedCommunityFundTimestampSeconds = function(value) { + return jspb.Message.setField(this, 17, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.clearJoinedCommunityFundTimestampSeconds = function() { + return jspb.Message.setField(this, 17, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.hasJoinedCommunityFundTimestampSeconds = function() { + return jspb.Message.getField(this, 17) != null; +}; + + +/** + * optional KnownNeuronData known_neuron_data = 18; + * @return {?proto.ic_nns_governance.pb.v1.KnownNeuronData} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getKnownNeuronData = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.KnownNeuronData} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.KnownNeuronData, 18)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.KnownNeuronData|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this +*/ +proto.ic_nns_governance.pb.v1.Neuron.prototype.setKnownNeuronData = function(value) { + return jspb.Message.setWrapperField(this, 18, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.clearKnownNeuronData = function() { + return this.setKnownNeuronData(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.hasKnownNeuronData = function() { + return jspb.Message.getField(this, 18) != null; +}; + + +/** + * optional NeuronType neuron_type = 22; + * @return {!proto.ic_nns_governance.pb.v1.NeuronType} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.getNeuronType = function() { + return /** @type {!proto.ic_nns_governance.pb.v1.NeuronType} */ (jspb.Message.getFieldWithDefault(this, 22, 0)); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.NeuronType} value + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.setNeuronType = function(value) { + return jspb.Message.setField(this, 22, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.clearNeuronType = function() { + return jspb.Message.setField(this, 22, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Neuron.prototype.hasNeuronType = function() { + return jspb.Message.getField(this, 22) != null; +}; + + + +/** + * 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.ic_nns_governance.pb.v1.AbridgedNeuron.oneofGroups_ = [[9,10]]; + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.DissolveStateCase = { + DISSOLVE_STATE_NOT_SET: 0, + WHEN_DISSOLVED_TIMESTAMP_SECONDS: 9, + DISSOLVE_DELAY_SECONDS: 10 +}; + +/** + * @return {proto.ic_nns_governance.pb.v1.AbridgedNeuron.DissolveStateCase} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.getDissolveStateCase = function() { + return /** @type {proto.ic_nns_governance.pb.v1.AbridgedNeuron.DissolveStateCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.AbridgedNeuron.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.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.AbridgedNeuron.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.ic_nns_governance.pb.v1.AbridgedNeuron} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.toObject = function(includeInstance, msg) { + var f, obj = { + account: msg.getAccount_asB64(), + controller: (f = msg.getController()) && base_types_pb.PrincipalId.toObject(includeInstance, f), + cachedNeuronStakeE8s: jspb.Message.getFieldWithDefault(msg, 5, 0), + neuronFeesE8s: jspb.Message.getFieldWithDefault(msg, 6, 0), + createdTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 7, 0), + agingSinceTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 8, 0), + spawnAtTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 19, 0), + whenDissolvedTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 9, 0), + dissolveDelaySeconds: jspb.Message.getFieldWithDefault(msg, 10, 0), + kycVerified: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), + maturityE8sEquivalent: jspb.Message.getFieldWithDefault(msg, 15, 0), + stakedMaturityE8sEquivalent: jspb.Message.getFieldWithDefault(msg, 20, 0), + autoStakeMaturity: jspb.Message.getBooleanFieldWithDefault(msg, 21, false), + notForProfit: jspb.Message.getBooleanFieldWithDefault(msg, 16, false), + joinedCommunityFundTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 17, 0), + neuronType: jspb.Message.getFieldWithDefault(msg, 22, 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.ic_nns_governance.pb.v1.AbridgedNeuron} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.AbridgedNeuron; + return proto.ic_nns_governance.pb.v1.AbridgedNeuron.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setAccount(value); + break; + case 3: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setController(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCachedNeuronStakeE8s(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setNeuronFeesE8s(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedTimestampSeconds(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setAgingSinceTimestampSeconds(value); + break; + case 19: + var value = /** @type {number} */ (reader.readUint64()); + msg.setSpawnAtTimestampSeconds(value); + break; + case 9: + var value = /** @type {number} */ (reader.readUint64()); + msg.setWhenDissolvedTimestampSeconds(value); + break; + case 10: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDissolveDelaySeconds(value); + break; + case 13: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setKycVerified(value); + break; + case 15: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMaturityE8sEquivalent(value); + break; + case 20: + var value = /** @type {number} */ (reader.readUint64()); + msg.setStakedMaturityE8sEquivalent(value); + break; + case 21: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setAutoStakeMaturity(value); + break; + case 16: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setNotForProfit(value); + break; + case 17: + var value = /** @type {number} */ (reader.readUint64()); + msg.setJoinedCommunityFundTimestampSeconds(value); + break; + case 22: + var value = /** @type {!proto.ic_nns_governance.pb.v1.NeuronType} */ (reader.readEnum()); + msg.setNeuronType(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.AbridgedNeuron.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAccount_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getController(); + if (f != null) { + writer.writeMessage( + 3, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = message.getCachedNeuronStakeE8s(); + if (f !== 0) { + writer.writeUint64( + 5, + f + ); + } + f = message.getNeuronFeesE8s(); + if (f !== 0) { + writer.writeUint64( + 6, + f + ); + } + f = message.getCreatedTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( + 7, + f + ); + } + f = message.getAgingSinceTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( + 8, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 19)); + if (f != null) { + writer.writeUint64( + 19, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 9)); + if (f != null) { + writer.writeUint64( + 9, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 10)); + if (f != null) { + writer.writeUint64( + 10, + f + ); + } + f = message.getKycVerified(); + if (f) { + writer.writeBool( + 13, + f + ); + } + f = message.getMaturityE8sEquivalent(); + if (f !== 0) { + writer.writeUint64( + 15, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 20)); + if (f != null) { + writer.writeUint64( + 20, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 21)); + if (f != null) { + writer.writeBool( + 21, + f + ); + } + f = message.getNotForProfit(); + if (f) { + writer.writeBool( + 16, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 17)); + if (f != null) { + writer.writeUint64( + 17, + f + ); + } + f = /** @type {!proto.ic_nns_governance.pb.v1.NeuronType} */ (jspb.Message.getField(message, 22)); + if (f != null) { + writer.writeEnum( + 22, + f + ); + } +}; + + +/** + * optional bytes account = 2; + * @return {!(string|Uint8Array)} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.getAccount = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes account = 2; + * This is a type-conversion wrapper around `getAccount()` + * @return {string} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.getAccount_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getAccount())); +}; + + +/** + * optional bytes account = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getAccount()` + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.getAccount_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getAccount())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.setAccount = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + +/** + * optional ic_base_types.pb.v1.PrincipalId controller = 3; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.getController = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 3)); +}; + + +/** + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this +*/ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.setController = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.clearController = function() { + return this.setController(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.hasController = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional uint64 cached_neuron_stake_e8s = 5; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.getCachedNeuronStakeE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.setCachedNeuronStakeE8s = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional uint64 neuron_fees_e8s = 6; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.getNeuronFeesE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.setNeuronFeesE8s = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional uint64 created_timestamp_seconds = 7; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.getCreatedTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.setCreatedTimestampSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 7, value); +}; + + +/** + * optional uint64 aging_since_timestamp_seconds = 8; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.getAgingSinceTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.setAgingSinceTimestampSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional uint64 spawn_at_timestamp_seconds = 19; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.getSpawnAtTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.setSpawnAtTimestampSeconds = function(value) { + return jspb.Message.setField(this, 19, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.clearSpawnAtTimestampSeconds = function() { + return jspb.Message.setField(this, 19, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.hasSpawnAtTimestampSeconds = function() { + return jspb.Message.getField(this, 19) != null; +}; + + +/** + * optional uint64 when_dissolved_timestamp_seconds = 9; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.getWhenDissolvedTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.setWhenDissolvedTimestampSeconds = function(value) { + return jspb.Message.setOneofField(this, 9, proto.ic_nns_governance.pb.v1.AbridgedNeuron.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.clearWhenDissolvedTimestampSeconds = function() { + return jspb.Message.setOneofField(this, 9, proto.ic_nns_governance.pb.v1.AbridgedNeuron.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.hasWhenDissolvedTimestampSeconds = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional uint64 dissolve_delay_seconds = 10; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.getDissolveDelaySeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.setDissolveDelaySeconds = function(value) { + return jspb.Message.setOneofField(this, 10, proto.ic_nns_governance.pb.v1.AbridgedNeuron.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.clearDissolveDelaySeconds = function() { + return jspb.Message.setOneofField(this, 10, proto.ic_nns_governance.pb.v1.AbridgedNeuron.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.hasDissolveDelaySeconds = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional bool kyc_verified = 13; + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.getKycVerified = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.setKycVerified = function(value) { + return jspb.Message.setProto3BooleanField(this, 13, value); +}; + + +/** + * optional uint64 maturity_e8s_equivalent = 15; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.getMaturityE8sEquivalent = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.setMaturityE8sEquivalent = function(value) { + return jspb.Message.setProto3IntField(this, 15, value); +}; + + +/** + * optional uint64 staked_maturity_e8s_equivalent = 20; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.getStakedMaturityE8sEquivalent = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.setStakedMaturityE8sEquivalent = function(value) { + return jspb.Message.setField(this, 20, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.clearStakedMaturityE8sEquivalent = function() { + return jspb.Message.setField(this, 20, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.hasStakedMaturityE8sEquivalent = function() { + return jspb.Message.getField(this, 20) != null; +}; + + +/** + * optional bool auto_stake_maturity = 21; + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.getAutoStakeMaturity = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 21, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.setAutoStakeMaturity = function(value) { + return jspb.Message.setField(this, 21, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.clearAutoStakeMaturity = function() { + return jspb.Message.setField(this, 21, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.hasAutoStakeMaturity = function() { + return jspb.Message.getField(this, 21) != null; +}; + + +/** + * optional bool not_for_profit = 16; + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.getNotForProfit = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 16, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.setNotForProfit = function(value) { + return jspb.Message.setProto3BooleanField(this, 16, value); +}; + + +/** + * optional uint64 joined_community_fund_timestamp_seconds = 17; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.getJoinedCommunityFundTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.setJoinedCommunityFundTimestampSeconds = function(value) { + return jspb.Message.setField(this, 17, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.clearJoinedCommunityFundTimestampSeconds = function() { + return jspb.Message.setField(this, 17, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.hasJoinedCommunityFundTimestampSeconds = function() { + return jspb.Message.getField(this, 17) != null; +}; + + +/** + * optional NeuronType neuron_type = 22; + * @return {!proto.ic_nns_governance.pb.v1.NeuronType} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.getNeuronType = function() { + return /** @type {!proto.ic_nns_governance.pb.v1.NeuronType} */ (jspb.Message.getFieldWithDefault(this, 22, 0)); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.NeuronType} value + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.setNeuronType = function(value) { + return jspb.Message.setField(this, 22, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.AbridgedNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.clearNeuronType = function() { + return jspb.Message.setField(this, 22, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.AbridgedNeuron.prototype.hasNeuronType = function() { + return jspb.Message.getField(this, 22) != 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.ic_nns_governance.pb.v1.ExecuteNnsFunction.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ExecuteNnsFunction.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.ic_nns_governance.pb.v1.ExecuteNnsFunction} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ExecuteNnsFunction.toObject = function(includeInstance, msg) { + var f, obj = { + nnsFunction: jspb.Message.getFieldWithDefault(msg, 1, 0), + payload: msg.getPayload_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.ic_nns_governance.pb.v1.ExecuteNnsFunction} + */ +proto.ic_nns_governance.pb.v1.ExecuteNnsFunction.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ExecuteNnsFunction; + return proto.ic_nns_governance.pb.v1.ExecuteNnsFunction.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ExecuteNnsFunction} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ExecuteNnsFunction} + */ +proto.ic_nns_governance.pb.v1.ExecuteNnsFunction.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.ic_nns_governance.pb.v1.NnsFunction} */ (reader.readEnum()); + msg.setNnsFunction(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setPayload(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ExecuteNnsFunction.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ExecuteNnsFunction.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ExecuteNnsFunction} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ExecuteNnsFunction.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNnsFunction(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getPayload_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } +}; + + +/** + * optional NnsFunction nns_function = 1; + * @return {!proto.ic_nns_governance.pb.v1.NnsFunction} + */ +proto.ic_nns_governance.pb.v1.ExecuteNnsFunction.prototype.getNnsFunction = function() { + return /** @type {!proto.ic_nns_governance.pb.v1.NnsFunction} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.NnsFunction} value + * @return {!proto.ic_nns_governance.pb.v1.ExecuteNnsFunction} returns this + */ +proto.ic_nns_governance.pb.v1.ExecuteNnsFunction.prototype.setNnsFunction = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * optional bytes payload = 2; + * @return {!(string|Uint8Array)} + */ +proto.ic_nns_governance.pb.v1.ExecuteNnsFunction.prototype.getPayload = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes payload = 2; + * This is a type-conversion wrapper around `getPayload()` + * @return {string} + */ +proto.ic_nns_governance.pb.v1.ExecuteNnsFunction.prototype.getPayload_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getPayload())); +}; + + +/** + * optional bytes payload = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getPayload()` + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ExecuteNnsFunction.prototype.getPayload_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getPayload())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.ic_nns_governance.pb.v1.ExecuteNnsFunction} returns this + */ +proto.ic_nns_governance.pb.v1.ExecuteNnsFunction.prototype.setPayload = function(value) { + return jspb.Message.setProto3BytesField(this, 2, 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.ic_nns_governance.pb.v1.Motion.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.Motion.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.ic_nns_governance.pb.v1.Motion} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.Motion.toObject = function(includeInstance, msg) { + var f, obj = { + motionText: 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.ic_nns_governance.pb.v1.Motion} + */ +proto.ic_nns_governance.pb.v1.Motion.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.Motion; + return proto.ic_nns_governance.pb.v1.Motion.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.Motion} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.Motion} + */ +proto.ic_nns_governance.pb.v1.Motion.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.setMotionText(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.Motion.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.Motion.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.Motion} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.Motion.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMotionText(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string motion_text = 1; + * @return {string} + */ +proto.ic_nns_governance.pb.v1.Motion.prototype.getMotionText = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ic_nns_governance.pb.v1.Motion} returns this + */ +proto.ic_nns_governance.pb.v1.Motion.prototype.setMotionText = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_nns_governance.pb.v1.ApproveGenesisKYC.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.ic_nns_governance.pb.v1.ApproveGenesisKYC.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ApproveGenesisKYC.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.ic_nns_governance.pb.v1.ApproveGenesisKYC} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ApproveGenesisKYC.toObject = function(includeInstance, msg) { + var f, obj = { + principalsList: jspb.Message.toObjectList(msg.getPrincipalsList(), + base_types_pb.PrincipalId.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_nns_governance.pb.v1.ApproveGenesisKYC} + */ +proto.ic_nns_governance.pb.v1.ApproveGenesisKYC.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ApproveGenesisKYC; + return proto.ic_nns_governance.pb.v1.ApproveGenesisKYC.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ApproveGenesisKYC} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ApproveGenesisKYC} + */ +proto.ic_nns_governance.pb.v1.ApproveGenesisKYC.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.addPrincipals(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ApproveGenesisKYC.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ApproveGenesisKYC.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ApproveGenesisKYC} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ApproveGenesisKYC.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPrincipalsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated ic_base_types.pb.v1.PrincipalId principals = 1; + * @return {!Array} + */ +proto.ic_nns_governance.pb.v1.ApproveGenesisKYC.prototype.getPrincipalsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, base_types_pb.PrincipalId, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.ApproveGenesisKYC} returns this +*/ +proto.ic_nns_governance.pb.v1.ApproveGenesisKYC.prototype.setPrincipalsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.ic_base_types.pb.v1.PrincipalId=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_nns_governance.pb.v1.ApproveGenesisKYC.prototype.addPrincipals = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ic_base_types.pb.v1.PrincipalId, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.ApproveGenesisKYC} returns this + */ +proto.ic_nns_governance.pb.v1.ApproveGenesisKYC.prototype.clearPrincipalsList = function() { + return this.setPrincipalsList([]); +}; + + + +/** + * 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.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.oneofGroups_ = [[1,2]]; + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.ChangeCase = { + CHANGE_NOT_SET: 0, + TO_ADD: 1, + TO_REMOVE: 2 +}; + +/** + * @return {proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.ChangeCase} + */ +proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.prototype.getChangeCase = function() { + return /** @type {proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.ChangeCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.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.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.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.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.toObject = function(includeInstance, msg) { + var f, obj = { + toAdd: (f = msg.getToAdd()) && proto.ic_nns_governance.pb.v1.NodeProvider.toObject(includeInstance, f), + toRemove: (f = msg.getToRemove()) && proto.ic_nns_governance.pb.v1.NodeProvider.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.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider} + */ +proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider; + return proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider} + */ +proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_nns_governance.pb.v1.NodeProvider; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NodeProvider.deserializeBinaryFromReader); + msg.setToAdd(value); + break; + case 2: + var value = new proto.ic_nns_governance.pb.v1.NodeProvider; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NodeProvider.deserializeBinaryFromReader); + msg.setToRemove(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getToAdd(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_nns_governance.pb.v1.NodeProvider.serializeBinaryToWriter + ); + } + f = message.getToRemove(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_nns_governance.pb.v1.NodeProvider.serializeBinaryToWriter + ); + } +}; + + +/** + * optional NodeProvider to_add = 1; + * @return {?proto.ic_nns_governance.pb.v1.NodeProvider} + */ +proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.prototype.getToAdd = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.NodeProvider} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.NodeProvider, 1)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.NodeProvider|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider} returns this +*/ +proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.prototype.setToAdd = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider} returns this + */ +proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.prototype.clearToAdd = function() { + return this.setToAdd(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.prototype.hasToAdd = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional NodeProvider to_remove = 2; + * @return {?proto.ic_nns_governance.pb.v1.NodeProvider} + */ +proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.prototype.getToRemove = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.NodeProvider} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.NodeProvider, 2)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.NodeProvider|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider} returns this +*/ +proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.prototype.setToRemove = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider} returns this + */ +proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.prototype.clearToRemove = function() { + return this.setToRemove(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.prototype.hasToRemove = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * 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.ic_nns_governance.pb.v1.RewardNodeProvider.oneofGroups_ = [[4,5]]; + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardModeCase = { + REWARD_MODE_NOT_SET: 0, + REWARD_TO_NEURON: 4, + REWARD_TO_ACCOUNT: 5 +}; + +/** + * @return {proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardModeCase} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.prototype.getRewardModeCase = function() { + return /** @type {proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardModeCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.RewardNodeProvider.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.ic_nns_governance.pb.v1.RewardNodeProvider.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.RewardNodeProvider.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.ic_nns_governance.pb.v1.RewardNodeProvider} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.toObject = function(includeInstance, msg) { + var f, obj = { + nodeProvider: (f = msg.getNodeProvider()) && proto.ic_nns_governance.pb.v1.NodeProvider.toObject(includeInstance, f), + amountE8s: jspb.Message.getFieldWithDefault(msg, 2, 0), + rewardToNeuron: (f = msg.getRewardToNeuron()) && proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron.toObject(includeInstance, f), + rewardToAccount: (f = msg.getRewardToAccount()) && proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount.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.ic_nns_governance.pb.v1.RewardNodeProvider} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.RewardNodeProvider; + return proto.ic_nns_governance.pb.v1.RewardNodeProvider.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.RewardNodeProvider} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.RewardNodeProvider} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_nns_governance.pb.v1.NodeProvider; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NodeProvider.deserializeBinaryFromReader); + msg.setNodeProvider(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setAmountE8s(value); + break; + case 4: + var value = new proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron.deserializeBinaryFromReader); + msg.setRewardToNeuron(value); + break; + case 5: + var value = new proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount.deserializeBinaryFromReader); + msg.setRewardToAccount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.RewardNodeProvider.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.RewardNodeProvider} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNodeProvider(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_nns_governance.pb.v1.NodeProvider.serializeBinaryToWriter + ); + } + f = message.getAmountE8s(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getRewardToNeuron(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron.serializeBinaryToWriter + ); + } + f = message.getRewardToAccount(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount.serializeBinaryToWriter + ); + } +}; + + + + + +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.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron.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.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron.toObject = function(includeInstance, msg) { + var f, obj = { + dissolveDelaySeconds: 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.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron; + return proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDissolveDelaySeconds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDissolveDelaySeconds(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } +}; + + +/** + * optional uint64 dissolve_delay_seconds = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron.prototype.getDissolveDelaySeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron.prototype.setDissolveDelaySeconds = 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.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount.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.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount.toObject = function(includeInstance, msg) { + var f, obj = { + toAccount: (f = msg.getToAccount()) && ledger_pb.AccountIdentifier.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.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount; + return proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new ledger_pb.AccountIdentifier; + reader.readMessage(value,ledger_pb.AccountIdentifier.deserializeBinaryFromReader); + msg.setToAccount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getToAccount(); + if (f != null) { + writer.writeMessage( + 1, + f, + ledger_pb.AccountIdentifier.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_ledger.pb.v1.AccountIdentifier to_account = 1; + * @return {?proto.ic_ledger.pb.v1.AccountIdentifier} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount.prototype.getToAccount = function() { + return /** @type{?proto.ic_ledger.pb.v1.AccountIdentifier} */ ( + jspb.Message.getWrapperField(this, ledger_pb.AccountIdentifier, 1)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.AccountIdentifier|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount} returns this +*/ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount.prototype.setToAccount = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount} returns this + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount.prototype.clearToAccount = function() { + return this.setToAccount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount.prototype.hasToAccount = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional NodeProvider node_provider = 1; + * @return {?proto.ic_nns_governance.pb.v1.NodeProvider} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.prototype.getNodeProvider = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.NodeProvider} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.NodeProvider, 1)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.NodeProvider|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.RewardNodeProvider} returns this +*/ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.prototype.setNodeProvider = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.RewardNodeProvider} returns this + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.prototype.clearNodeProvider = function() { + return this.setNodeProvider(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.prototype.hasNodeProvider = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional uint64 amount_e8s = 2; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.prototype.getAmountE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.RewardNodeProvider} returns this + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.prototype.setAmountE8s = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional RewardToNeuron reward_to_neuron = 4; + * @return {?proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.prototype.getRewardToNeuron = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron, 4)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToNeuron|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.RewardNodeProvider} returns this +*/ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.prototype.setRewardToNeuron = function(value) { + return jspb.Message.setOneofWrapperField(this, 4, proto.ic_nns_governance.pb.v1.RewardNodeProvider.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.RewardNodeProvider} returns this + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.prototype.clearRewardToNeuron = function() { + return this.setRewardToNeuron(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.prototype.hasRewardToNeuron = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional RewardToAccount reward_to_account = 5; + * @return {?proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.prototype.getRewardToAccount = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount, 5)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.RewardNodeProvider.RewardToAccount|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.RewardNodeProvider} returns this +*/ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.prototype.setRewardToAccount = function(value) { + return jspb.Message.setOneofWrapperField(this, 5, proto.ic_nns_governance.pb.v1.RewardNodeProvider.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.RewardNodeProvider} returns this + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.prototype.clearRewardToAccount = function() { + return this.setRewardToAccount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProvider.prototype.hasRewardToAccount = function() { + return jspb.Message.getField(this, 5) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_nns_governance.pb.v1.RewardNodeProviders.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.ic_nns_governance.pb.v1.RewardNodeProviders.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.RewardNodeProviders.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.ic_nns_governance.pb.v1.RewardNodeProviders} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.RewardNodeProviders.toObject = function(includeInstance, msg) { + var f, obj = { + rewardsList: jspb.Message.toObjectList(msg.getRewardsList(), + proto.ic_nns_governance.pb.v1.RewardNodeProvider.toObject, includeInstance), + useRegistryDerivedRewards: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_nns_governance.pb.v1.RewardNodeProviders} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProviders.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.RewardNodeProviders; + return proto.ic_nns_governance.pb.v1.RewardNodeProviders.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.RewardNodeProviders} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.RewardNodeProviders} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProviders.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_nns_governance.pb.v1.RewardNodeProvider; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.RewardNodeProvider.deserializeBinaryFromReader); + msg.addRewards(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setUseRegistryDerivedRewards(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProviders.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.RewardNodeProviders.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.RewardNodeProviders} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.RewardNodeProviders.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRewardsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.ic_nns_governance.pb.v1.RewardNodeProvider.serializeBinaryToWriter + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeBool( + 2, + f + ); + } +}; + + +/** + * repeated RewardNodeProvider rewards = 1; + * @return {!Array} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProviders.prototype.getRewardsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ic_nns_governance.pb.v1.RewardNodeProvider, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.RewardNodeProviders} returns this +*/ +proto.ic_nns_governance.pb.v1.RewardNodeProviders.prototype.setRewardsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.RewardNodeProvider=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_nns_governance.pb.v1.RewardNodeProvider} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProviders.prototype.addRewards = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ic_nns_governance.pb.v1.RewardNodeProvider, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.RewardNodeProviders} returns this + */ +proto.ic_nns_governance.pb.v1.RewardNodeProviders.prototype.clearRewardsList = function() { + return this.setRewardsList([]); +}; + + +/** + * optional bool use_registry_derived_rewards = 2; + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProviders.prototype.getUseRegistryDerivedRewards = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.ic_nns_governance.pb.v1.RewardNodeProviders} returns this + */ +proto.ic_nns_governance.pb.v1.RewardNodeProviders.prototype.setUseRegistryDerivedRewards = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.RewardNodeProviders} returns this + */ +proto.ic_nns_governance.pb.v1.RewardNodeProviders.prototype.clearUseRegistryDerivedRewards = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.RewardNodeProviders.prototype.hasUseRegistryDerivedRewards = function() { + return jspb.Message.getField(this, 2) != 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.ic_nns_governance.pb.v1.SetDefaultFollowees.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.SetDefaultFollowees.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.ic_nns_governance.pb.v1.SetDefaultFollowees} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.SetDefaultFollowees.toObject = function(includeInstance, msg) { + var f, obj = { + defaultFolloweesMap: (f = msg.getDefaultFolloweesMap()) ? f.toObject(includeInstance, proto.ic_nns_governance.pb.v1.Neuron.Followees.toObject) : [] + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_nns_governance.pb.v1.SetDefaultFollowees} + */ +proto.ic_nns_governance.pb.v1.SetDefaultFollowees.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.SetDefaultFollowees; + return proto.ic_nns_governance.pb.v1.SetDefaultFollowees.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.SetDefaultFollowees} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.SetDefaultFollowees} + */ +proto.ic_nns_governance.pb.v1.SetDefaultFollowees.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = msg.getDefaultFolloweesMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readInt32, jspb.BinaryReader.prototype.readMessage, proto.ic_nns_governance.pb.v1.Neuron.Followees.deserializeBinaryFromReader, 0, new proto.ic_nns_governance.pb.v1.Neuron.Followees()); + }); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.SetDefaultFollowees.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.SetDefaultFollowees.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.SetDefaultFollowees} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.SetDefaultFollowees.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDefaultFolloweesMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeInt32, jspb.BinaryWriter.prototype.writeMessage, proto.ic_nns_governance.pb.v1.Neuron.Followees.serializeBinaryToWriter); + } +}; + + +/** + * map default_followees = 1; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.ic_nns_governance.pb.v1.SetDefaultFollowees.prototype.getDefaultFolloweesMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 1, opt_noLazyCreate, + proto.ic_nns_governance.pb.v1.Neuron.Followees)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.ic_nns_governance.pb.v1.SetDefaultFollowees} returns this + */ +proto.ic_nns_governance.pb.v1.SetDefaultFollowees.prototype.clearDefaultFolloweesMap = function() { + this.getDefaultFolloweesMap().clear(); + return this; +}; + + + + + +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.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow.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.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow.toObject = function(includeInstance, msg) { + var f, obj = { + swapCanisterId: (f = msg.getSwapCanisterId()) && base_types_pb.PrincipalId.toObject(includeInstance, f), + request: (f = msg.getRequest()) && swap_pb.SetOpenTimeWindowRequest.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.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow} + */ +proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow; + return proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow} + */ +proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setSwapCanisterId(value); + break; + case 2: + var value = new swap_pb.SetOpenTimeWindowRequest; + reader.readMessage(value,swap_pb.SetOpenTimeWindowRequest.deserializeBinaryFromReader); + msg.setRequest(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSwapCanisterId(); + if (f != null) { + writer.writeMessage( + 1, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = message.getRequest(); + if (f != null) { + writer.writeMessage( + 2, + f, + swap_pb.SetOpenTimeWindowRequest.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_base_types.pb.v1.PrincipalId swap_canister_id = 1; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow.prototype.getSwapCanisterId = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 1)); +}; + + +/** + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow} returns this +*/ +proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow.prototype.setSwapCanisterId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow} returns this + */ +proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow.prototype.clearSwapCanisterId = function() { + return this.setSwapCanisterId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow.prototype.hasSwapCanisterId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ic_sns_swap.pb.v1.SetOpenTimeWindowRequest request = 2; + * @return {?proto.ic_sns_swap.pb.v1.SetOpenTimeWindowRequest} + */ +proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow.prototype.getRequest = function() { + return /** @type{?proto.ic_sns_swap.pb.v1.SetOpenTimeWindowRequest} */ ( + jspb.Message.getWrapperField(this, swap_pb.SetOpenTimeWindowRequest, 2)); +}; + + +/** + * @param {?proto.ic_sns_swap.pb.v1.SetOpenTimeWindowRequest|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow} returns this +*/ +proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow.prototype.setRequest = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow} returns this + */ +proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow.prototype.clearRequest = function() { + return this.setRequest(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow.prototype.hasRequest = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * 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.ic_nns_governance.pb.v1.Proposal.oneofGroups_ = [[10,12,13,14,15,16,17,18,19,21,22,23,24]]; + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.Proposal.ActionCase = { + ACTION_NOT_SET: 0, + MANAGE_NEURON: 10, + MANAGE_NETWORK_ECONOMICS: 12, + MOTION: 13, + EXECUTE_NNS_FUNCTION: 14, + APPROVE_GENESIS_KYC: 15, + ADD_OR_REMOVE_NODE_PROVIDER: 16, + REWARD_NODE_PROVIDER: 17, + SET_DEFAULT_FOLLOWEES: 18, + REWARD_NODE_PROVIDERS: 19, + REGISTER_KNOWN_NEURON: 21, + SET_SNS_TOKEN_SWAP_OPEN_TIME_WINDOW: 22, + OPEN_SNS_TOKEN_SWAP: 23, + CREATE_SERVICE_NERVOUS_SYSTEM: 24 +}; + +/** + * @return {proto.ic_nns_governance.pb.v1.Proposal.ActionCase} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.getActionCase = function() { + return /** @type {proto.ic_nns_governance.pb.v1.Proposal.ActionCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.Proposal.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.ic_nns_governance.pb.v1.Proposal.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.Proposal.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.ic_nns_governance.pb.v1.Proposal} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.Proposal.toObject = function(includeInstance, msg) { + var f, obj = { + title: jspb.Message.getFieldWithDefault(msg, 20, ""), + summary: jspb.Message.getFieldWithDefault(msg, 1, ""), + url: jspb.Message.getFieldWithDefault(msg, 2, ""), + manageNeuron: (f = msg.getManageNeuron()) && proto.ic_nns_governance.pb.v1.ManageNeuron.toObject(includeInstance, f), + manageNetworkEconomics: (f = msg.getManageNetworkEconomics()) && proto.ic_nns_governance.pb.v1.NetworkEconomics.toObject(includeInstance, f), + motion: (f = msg.getMotion()) && proto.ic_nns_governance.pb.v1.Motion.toObject(includeInstance, f), + executeNnsFunction: (f = msg.getExecuteNnsFunction()) && proto.ic_nns_governance.pb.v1.ExecuteNnsFunction.toObject(includeInstance, f), + approveGenesisKyc: (f = msg.getApproveGenesisKyc()) && proto.ic_nns_governance.pb.v1.ApproveGenesisKYC.toObject(includeInstance, f), + addOrRemoveNodeProvider: (f = msg.getAddOrRemoveNodeProvider()) && proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.toObject(includeInstance, f), + rewardNodeProvider: (f = msg.getRewardNodeProvider()) && proto.ic_nns_governance.pb.v1.RewardNodeProvider.toObject(includeInstance, f), + setDefaultFollowees: (f = msg.getSetDefaultFollowees()) && proto.ic_nns_governance.pb.v1.SetDefaultFollowees.toObject(includeInstance, f), + rewardNodeProviders: (f = msg.getRewardNodeProviders()) && proto.ic_nns_governance.pb.v1.RewardNodeProviders.toObject(includeInstance, f), + registerKnownNeuron: (f = msg.getRegisterKnownNeuron()) && proto.ic_nns_governance.pb.v1.KnownNeuron.toObject(includeInstance, f), + setSnsTokenSwapOpenTimeWindow: (f = msg.getSetSnsTokenSwapOpenTimeWindow()) && proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow.toObject(includeInstance, f), + openSnsTokenSwap: (f = msg.getOpenSnsTokenSwap()) && proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.toObject(includeInstance, f), + createServiceNervousSystem: (f = msg.getCreateServiceNervousSystem()) && proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.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.ic_nns_governance.pb.v1.Proposal} + */ +proto.ic_nns_governance.pb.v1.Proposal.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.Proposal; + return proto.ic_nns_governance.pb.v1.Proposal.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.Proposal} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.Proposal} + */ +proto.ic_nns_governance.pb.v1.Proposal.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 20: + var value = /** @type {string} */ (reader.readString()); + msg.setTitle(value); + break; + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setSummary(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setUrl(value); + break; + case 10: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.deserializeBinaryFromReader); + msg.setManageNeuron(value); + break; + case 12: + var value = new proto.ic_nns_governance.pb.v1.NetworkEconomics; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NetworkEconomics.deserializeBinaryFromReader); + msg.setManageNetworkEconomics(value); + break; + case 13: + var value = new proto.ic_nns_governance.pb.v1.Motion; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.Motion.deserializeBinaryFromReader); + msg.setMotion(value); + break; + case 14: + var value = new proto.ic_nns_governance.pb.v1.ExecuteNnsFunction; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ExecuteNnsFunction.deserializeBinaryFromReader); + msg.setExecuteNnsFunction(value); + break; + case 15: + var value = new proto.ic_nns_governance.pb.v1.ApproveGenesisKYC; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ApproveGenesisKYC.deserializeBinaryFromReader); + msg.setApproveGenesisKyc(value); + break; + case 16: + var value = new proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.deserializeBinaryFromReader); + msg.setAddOrRemoveNodeProvider(value); + break; + case 17: + var value = new proto.ic_nns_governance.pb.v1.RewardNodeProvider; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.RewardNodeProvider.deserializeBinaryFromReader); + msg.setRewardNodeProvider(value); + break; + case 18: + var value = new proto.ic_nns_governance.pb.v1.SetDefaultFollowees; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.SetDefaultFollowees.deserializeBinaryFromReader); + msg.setSetDefaultFollowees(value); + break; + case 19: + var value = new proto.ic_nns_governance.pb.v1.RewardNodeProviders; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.RewardNodeProviders.deserializeBinaryFromReader); + msg.setRewardNodeProviders(value); + break; + case 21: + var value = new proto.ic_nns_governance.pb.v1.KnownNeuron; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.KnownNeuron.deserializeBinaryFromReader); + msg.setRegisterKnownNeuron(value); + break; + case 22: + var value = new proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow.deserializeBinaryFromReader); + msg.setSetSnsTokenSwapOpenTimeWindow(value); + break; + case 23: + var value = new proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.deserializeBinaryFromReader); + msg.setOpenSnsTokenSwap(value); + break; + case 24: + var value = new proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.deserializeBinaryFromReader); + msg.setCreateServiceNervousSystem(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.Proposal.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.Proposal} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.Proposal.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 20)); + if (f != null) { + writer.writeString( + 20, + f + ); + } + f = message.getSummary(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getUrl(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getManageNeuron(); + if (f != null) { + writer.writeMessage( + 10, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.serializeBinaryToWriter + ); + } + f = message.getManageNetworkEconomics(); + if (f != null) { + writer.writeMessage( + 12, + f, + proto.ic_nns_governance.pb.v1.NetworkEconomics.serializeBinaryToWriter + ); + } + f = message.getMotion(); + if (f != null) { + writer.writeMessage( + 13, + f, + proto.ic_nns_governance.pb.v1.Motion.serializeBinaryToWriter + ); + } + f = message.getExecuteNnsFunction(); + if (f != null) { + writer.writeMessage( + 14, + f, + proto.ic_nns_governance.pb.v1.ExecuteNnsFunction.serializeBinaryToWriter + ); + } + f = message.getApproveGenesisKyc(); + if (f != null) { + writer.writeMessage( + 15, + f, + proto.ic_nns_governance.pb.v1.ApproveGenesisKYC.serializeBinaryToWriter + ); + } + f = message.getAddOrRemoveNodeProvider(); + if (f != null) { + writer.writeMessage( + 16, + f, + proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider.serializeBinaryToWriter + ); + } + f = message.getRewardNodeProvider(); + if (f != null) { + writer.writeMessage( + 17, + f, + proto.ic_nns_governance.pb.v1.RewardNodeProvider.serializeBinaryToWriter + ); + } + f = message.getSetDefaultFollowees(); + if (f != null) { + writer.writeMessage( + 18, + f, + proto.ic_nns_governance.pb.v1.SetDefaultFollowees.serializeBinaryToWriter + ); + } + f = message.getRewardNodeProviders(); + if (f != null) { + writer.writeMessage( + 19, + f, + proto.ic_nns_governance.pb.v1.RewardNodeProviders.serializeBinaryToWriter + ); + } + f = message.getRegisterKnownNeuron(); + if (f != null) { + writer.writeMessage( + 21, + f, + proto.ic_nns_governance.pb.v1.KnownNeuron.serializeBinaryToWriter + ); + } + f = message.getSetSnsTokenSwapOpenTimeWindow(); + if (f != null) { + writer.writeMessage( + 22, + f, + proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow.serializeBinaryToWriter + ); + } + f = message.getOpenSnsTokenSwap(); + if (f != null) { + writer.writeMessage( + 23, + f, + proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.serializeBinaryToWriter + ); + } + f = message.getCreateServiceNervousSystem(); + if (f != null) { + writer.writeMessage( + 24, + f, + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string title = 20; + * @return {string} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.getTitle = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.setTitle = function(value) { + return jspb.Message.setField(this, 20, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.clearTitle = function() { + return jspb.Message.setField(this, 20, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.hasTitle = function() { + return jspb.Message.getField(this, 20) != null; +}; + + +/** + * optional string summary = 1; + * @return {string} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.getSummary = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.setSummary = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string url = 2; + * @return {string} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.getUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.setUrl = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional ManageNeuron manage_neuron = 10; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.getManageNeuron = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron, 10)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this +*/ +proto.ic_nns_governance.pb.v1.Proposal.prototype.setManageNeuron = function(value) { + return jspb.Message.setOneofWrapperField(this, 10, proto.ic_nns_governance.pb.v1.Proposal.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.clearManageNeuron = function() { + return this.setManageNeuron(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.hasManageNeuron = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional NetworkEconomics manage_network_economics = 12; + * @return {?proto.ic_nns_governance.pb.v1.NetworkEconomics} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.getManageNetworkEconomics = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.NetworkEconomics} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.NetworkEconomics, 12)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.NetworkEconomics|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this +*/ +proto.ic_nns_governance.pb.v1.Proposal.prototype.setManageNetworkEconomics = function(value) { + return jspb.Message.setOneofWrapperField(this, 12, proto.ic_nns_governance.pb.v1.Proposal.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.clearManageNetworkEconomics = function() { + return this.setManageNetworkEconomics(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.hasManageNetworkEconomics = function() { + return jspb.Message.getField(this, 12) != null; +}; + + +/** + * optional Motion motion = 13; + * @return {?proto.ic_nns_governance.pb.v1.Motion} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.getMotion = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.Motion} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.Motion, 13)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.Motion|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this +*/ +proto.ic_nns_governance.pb.v1.Proposal.prototype.setMotion = function(value) { + return jspb.Message.setOneofWrapperField(this, 13, proto.ic_nns_governance.pb.v1.Proposal.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.clearMotion = function() { + return this.setMotion(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.hasMotion = function() { + return jspb.Message.getField(this, 13) != null; +}; + + +/** + * optional ExecuteNnsFunction execute_nns_function = 14; + * @return {?proto.ic_nns_governance.pb.v1.ExecuteNnsFunction} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.getExecuteNnsFunction = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ExecuteNnsFunction} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ExecuteNnsFunction, 14)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ExecuteNnsFunction|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this +*/ +proto.ic_nns_governance.pb.v1.Proposal.prototype.setExecuteNnsFunction = function(value) { + return jspb.Message.setOneofWrapperField(this, 14, proto.ic_nns_governance.pb.v1.Proposal.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.clearExecuteNnsFunction = function() { + return this.setExecuteNnsFunction(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.hasExecuteNnsFunction = function() { + return jspb.Message.getField(this, 14) != null; +}; + + +/** + * optional ApproveGenesisKYC approve_genesis_kyc = 15; + * @return {?proto.ic_nns_governance.pb.v1.ApproveGenesisKYC} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.getApproveGenesisKyc = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ApproveGenesisKYC} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ApproveGenesisKYC, 15)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ApproveGenesisKYC|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this +*/ +proto.ic_nns_governance.pb.v1.Proposal.prototype.setApproveGenesisKyc = function(value) { + return jspb.Message.setOneofWrapperField(this, 15, proto.ic_nns_governance.pb.v1.Proposal.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.clearApproveGenesisKyc = function() { + return this.setApproveGenesisKyc(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.hasApproveGenesisKyc = function() { + return jspb.Message.getField(this, 15) != null; +}; + + +/** + * optional AddOrRemoveNodeProvider add_or_remove_node_provider = 16; + * @return {?proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.getAddOrRemoveNodeProvider = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider, 16)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.AddOrRemoveNodeProvider|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this +*/ +proto.ic_nns_governance.pb.v1.Proposal.prototype.setAddOrRemoveNodeProvider = function(value) { + return jspb.Message.setOneofWrapperField(this, 16, proto.ic_nns_governance.pb.v1.Proposal.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.clearAddOrRemoveNodeProvider = function() { + return this.setAddOrRemoveNodeProvider(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.hasAddOrRemoveNodeProvider = function() { + return jspb.Message.getField(this, 16) != null; +}; + + +/** + * optional RewardNodeProvider reward_node_provider = 17; + * @return {?proto.ic_nns_governance.pb.v1.RewardNodeProvider} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.getRewardNodeProvider = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.RewardNodeProvider} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.RewardNodeProvider, 17)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.RewardNodeProvider|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this +*/ +proto.ic_nns_governance.pb.v1.Proposal.prototype.setRewardNodeProvider = function(value) { + return jspb.Message.setOneofWrapperField(this, 17, proto.ic_nns_governance.pb.v1.Proposal.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.clearRewardNodeProvider = function() { + return this.setRewardNodeProvider(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.hasRewardNodeProvider = function() { + return jspb.Message.getField(this, 17) != null; +}; + + +/** + * optional SetDefaultFollowees set_default_followees = 18; + * @return {?proto.ic_nns_governance.pb.v1.SetDefaultFollowees} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.getSetDefaultFollowees = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.SetDefaultFollowees} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.SetDefaultFollowees, 18)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.SetDefaultFollowees|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this +*/ +proto.ic_nns_governance.pb.v1.Proposal.prototype.setSetDefaultFollowees = function(value) { + return jspb.Message.setOneofWrapperField(this, 18, proto.ic_nns_governance.pb.v1.Proposal.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.clearSetDefaultFollowees = function() { + return this.setSetDefaultFollowees(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.hasSetDefaultFollowees = function() { + return jspb.Message.getField(this, 18) != null; +}; + + +/** + * optional RewardNodeProviders reward_node_providers = 19; + * @return {?proto.ic_nns_governance.pb.v1.RewardNodeProviders} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.getRewardNodeProviders = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.RewardNodeProviders} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.RewardNodeProviders, 19)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.RewardNodeProviders|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this +*/ +proto.ic_nns_governance.pb.v1.Proposal.prototype.setRewardNodeProviders = function(value) { + return jspb.Message.setOneofWrapperField(this, 19, proto.ic_nns_governance.pb.v1.Proposal.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.clearRewardNodeProviders = function() { + return this.setRewardNodeProviders(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.hasRewardNodeProviders = function() { + return jspb.Message.getField(this, 19) != null; +}; + + +/** + * optional KnownNeuron register_known_neuron = 21; + * @return {?proto.ic_nns_governance.pb.v1.KnownNeuron} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.getRegisterKnownNeuron = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.KnownNeuron} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.KnownNeuron, 21)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.KnownNeuron|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this +*/ +proto.ic_nns_governance.pb.v1.Proposal.prototype.setRegisterKnownNeuron = function(value) { + return jspb.Message.setOneofWrapperField(this, 21, proto.ic_nns_governance.pb.v1.Proposal.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.clearRegisterKnownNeuron = function() { + return this.setRegisterKnownNeuron(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.hasRegisterKnownNeuron = function() { + return jspb.Message.getField(this, 21) != null; +}; + + +/** + * optional SetSnsTokenSwapOpenTimeWindow set_sns_token_swap_open_time_window = 22; + * @return {?proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.getSetSnsTokenSwapOpenTimeWindow = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow, 22)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.SetSnsTokenSwapOpenTimeWindow|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this +*/ +proto.ic_nns_governance.pb.v1.Proposal.prototype.setSetSnsTokenSwapOpenTimeWindow = function(value) { + return jspb.Message.setOneofWrapperField(this, 22, proto.ic_nns_governance.pb.v1.Proposal.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.clearSetSnsTokenSwapOpenTimeWindow = function() { + return this.setSetSnsTokenSwapOpenTimeWindow(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.hasSetSnsTokenSwapOpenTimeWindow = function() { + return jspb.Message.getField(this, 22) != null; +}; + + +/** + * optional OpenSnsTokenSwap open_sns_token_swap = 23; + * @return {?proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.getOpenSnsTokenSwap = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap, 23)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this +*/ +proto.ic_nns_governance.pb.v1.Proposal.prototype.setOpenSnsTokenSwap = function(value) { + return jspb.Message.setOneofWrapperField(this, 23, proto.ic_nns_governance.pb.v1.Proposal.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.clearOpenSnsTokenSwap = function() { + return this.setOpenSnsTokenSwap(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.hasOpenSnsTokenSwap = function() { + return jspb.Message.getField(this, 23) != null; +}; + + +/** + * optional CreateServiceNervousSystem create_service_nervous_system = 24; + * @return {?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.getCreateServiceNervousSystem = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem, 24)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this +*/ +proto.ic_nns_governance.pb.v1.Proposal.prototype.setCreateServiceNervousSystem = function(value) { + return jspb.Message.setOneofWrapperField(this, 24, proto.ic_nns_governance.pb.v1.Proposal.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Proposal} returns this + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.clearCreateServiceNervousSystem = function() { + return this.setCreateServiceNervousSystem(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Proposal.prototype.hasCreateServiceNervousSystem = function() { + return jspb.Message.getField(this, 24) != 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.ic_nns_governance.pb.v1.Empty.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.Empty.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.ic_nns_governance.pb.v1.Empty} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.Empty.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.ic_nns_governance.pb.v1.Empty} + */ +proto.ic_nns_governance.pb.v1.Empty.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.Empty; + return proto.ic_nns_governance.pb.v1.Empty.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.Empty} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.Empty} + */ +proto.ic_nns_governance.pb.v1.Empty.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.ic_nns_governance.pb.v1.Empty.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.Empty.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.Empty} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.Empty.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * 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.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_ = [[11,12],[2,3,4,5,6,7,8,9,10,13,14,15]]; + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.NeuronIdOrSubaccountCase = { + NEURON_ID_OR_SUBACCOUNT_NOT_SET: 0, + SUBACCOUNT: 11, + NEURON_ID: 12 +}; + +/** + * @return {proto.ic_nns_governance.pb.v1.ManageNeuron.NeuronIdOrSubaccountCase} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getNeuronIdOrSubaccountCase = function() { + return /** @type {proto.ic_nns_governance.pb.v1.ManageNeuron.NeuronIdOrSubaccountCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[0])); +}; + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.CommandCase = { + COMMAND_NOT_SET: 0, + CONFIGURE: 2, + DISBURSE: 3, + SPAWN: 4, + FOLLOW: 5, + MAKE_PROPOSAL: 6, + REGISTER_VOTE: 7, + SPLIT: 8, + DISBURSE_TO_NEURON: 9, + CLAIM_OR_REFRESH: 10, + MERGE_MATURITY: 13, + MERGE: 14, + STAKE_MATURITY: 15 +}; + +/** + * @return {proto.ic_nns_governance.pb.v1.ManageNeuron.CommandCase} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getCommandCase = function() { + return /** @type {proto.ic_nns_governance.pb.v1.ManageNeuron.CommandCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[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.ic_nns_governance.pb.v1.ManageNeuron.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.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.ic_nns_governance.pb.v1.ManageNeuron} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.toObject = function(includeInstance, msg) { + var f, obj = { + id: (f = msg.getId()) && nns_common_pb.NeuronId.toObject(includeInstance, f), + subaccount: msg.getSubaccount_asB64(), + neuronId: (f = msg.getNeuronId()) && nns_common_pb.NeuronId.toObject(includeInstance, f), + configure: (f = msg.getConfigure()) && proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.toObject(includeInstance, f), + disburse: (f = msg.getDisburse()) && proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.toObject(includeInstance, f), + spawn: (f = msg.getSpawn()) && proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.toObject(includeInstance, f), + follow: (f = msg.getFollow()) && proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.toObject(includeInstance, f), + makeProposal: (f = msg.getMakeProposal()) && proto.ic_nns_governance.pb.v1.Proposal.toObject(includeInstance, f), + registerVote: (f = msg.getRegisterVote()) && proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.toObject(includeInstance, f), + split: (f = msg.getSplit()) && proto.ic_nns_governance.pb.v1.ManageNeuron.Split.toObject(includeInstance, f), + disburseToNeuron: (f = msg.getDisburseToNeuron()) && proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.toObject(includeInstance, f), + claimOrRefresh: (f = msg.getClaimOrRefresh()) && proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.toObject(includeInstance, f), + mergeMaturity: (f = msg.getMergeMaturity()) && proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.toObject(includeInstance, f), + merge: (f = msg.getMerge()) && proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.toObject(includeInstance, f), + stakeMaturity: (f = msg.getStakeMaturity()) && proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity.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.ic_nns_governance.pb.v1.ManageNeuron} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron; + return proto.ic_nns_governance.pb.v1.ManageNeuron.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nns_common_pb.NeuronId; + reader.readMessage(value,nns_common_pb.NeuronId.deserializeBinaryFromReader); + msg.setId(value); + break; + case 11: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setSubaccount(value); + break; + case 12: + var value = new nns_common_pb.NeuronId; + reader.readMessage(value,nns_common_pb.NeuronId.deserializeBinaryFromReader); + msg.setNeuronId(value); + break; + case 2: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.Configure; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.deserializeBinaryFromReader); + msg.setConfigure(value); + break; + case 3: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.deserializeBinaryFromReader); + msg.setDisburse(value); + break; + case 4: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.deserializeBinaryFromReader); + msg.setSpawn(value); + break; + case 5: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.Follow; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.deserializeBinaryFromReader); + msg.setFollow(value); + break; + case 6: + var value = new proto.ic_nns_governance.pb.v1.Proposal; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.Proposal.deserializeBinaryFromReader); + msg.setMakeProposal(value); + break; + case 7: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.deserializeBinaryFromReader); + msg.setRegisterVote(value); + break; + case 8: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.Split; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.Split.deserializeBinaryFromReader); + msg.setSplit(value); + break; + case 9: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.deserializeBinaryFromReader); + msg.setDisburseToNeuron(value); + break; + case 10: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.deserializeBinaryFromReader); + msg.setClaimOrRefresh(value); + break; + case 13: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.deserializeBinaryFromReader); + msg.setMergeMaturity(value); + break; + case 14: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.Merge; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.deserializeBinaryFromReader); + msg.setMerge(value); + break; + case 15: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity.deserializeBinaryFromReader); + msg.setStakeMaturity(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f != null) { + writer.writeMessage( + 1, + f, + nns_common_pb.NeuronId.serializeBinaryToWriter + ); + } + f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 11)); + if (f != null) { + writer.writeBytes( + 11, + f + ); + } + f = message.getNeuronId(); + if (f != null) { + writer.writeMessage( + 12, + f, + nns_common_pb.NeuronId.serializeBinaryToWriter + ); + } + f = message.getConfigure(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.serializeBinaryToWriter + ); + } + f = message.getDisburse(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.serializeBinaryToWriter + ); + } + f = message.getSpawn(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.serializeBinaryToWriter + ); + } + f = message.getFollow(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.serializeBinaryToWriter + ); + } + f = message.getMakeProposal(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.ic_nns_governance.pb.v1.Proposal.serializeBinaryToWriter + ); + } + f = message.getRegisterVote(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.serializeBinaryToWriter + ); + } + f = message.getSplit(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.Split.serializeBinaryToWriter + ); + } + f = message.getDisburseToNeuron(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.serializeBinaryToWriter + ); + } + f = message.getClaimOrRefresh(); + if (f != null) { + writer.writeMessage( + 10, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.serializeBinaryToWriter + ); + } + f = message.getMergeMaturity(); + if (f != null) { + writer.writeMessage( + 13, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.serializeBinaryToWriter + ); + } + f = message.getMerge(); + if (f != null) { + writer.writeMessage( + 14, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.serializeBinaryToWriter + ); + } + f = message.getStakeMaturity(); + if (f != null) { + writer.writeMessage( + 15, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity.serializeBinaryToWriter + ); + } +}; + + + + + +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.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.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.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.toObject = function(includeInstance, msg) { + var f, obj = { + additionalDissolveDelaySeconds: 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.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay; + return proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint32()); + msg.setAdditionalDissolveDelaySeconds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAdditionalDissolveDelaySeconds(); + if (f !== 0) { + writer.writeUint32( + 1, + f + ); + } +}; + + +/** + * optional uint32 additional_dissolve_delay_seconds = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.prototype.getAdditionalDissolveDelaySeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.prototype.setAdditionalDissolveDelaySeconds = 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.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.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.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.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.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving; + return proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.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.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.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.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.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.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.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.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving; + return proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.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.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.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.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.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.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.toObject = function(includeInstance, msg) { + var f, obj = { + newHotKey: (f = msg.getNewHotKey()) && base_types_pb.PrincipalId.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.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey; + return proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setNewHotKey(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNewHotKey(); + if (f != null) { + writer.writeMessage( + 1, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_base_types.pb.v1.PrincipalId new_hot_key = 1; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.prototype.getNewHotKey = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 1)); +}; + + +/** + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.prototype.setNewHotKey = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.prototype.clearNewHotKey = function() { + return this.setNewHotKey(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.prototype.hasNewHotKey = 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.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.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.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.toObject = function(includeInstance, msg) { + var f, obj = { + hotKeyToRemove: (f = msg.getHotKeyToRemove()) && base_types_pb.PrincipalId.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.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey; + return proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setHotKeyToRemove(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHotKeyToRemove(); + if (f != null) { + writer.writeMessage( + 1, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_base_types.pb.v1.PrincipalId hot_key_to_remove = 1; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.prototype.getHotKeyToRemove = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 1)); +}; + + +/** + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.prototype.setHotKeyToRemove = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.prototype.clearHotKeyToRemove = function() { + return this.setHotKeyToRemove(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.prototype.hasHotKeyToRemove = 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.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp.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.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp.toObject = function(includeInstance, msg) { + var f, obj = { + dissolveTimestampSeconds: 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.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp; + return proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDissolveTimestampSeconds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDissolveTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } +}; + + +/** + * optional uint64 dissolve_timestamp_seconds = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp.prototype.getDissolveTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp.prototype.setDissolveTimestampSeconds = 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.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.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.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.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.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund; + return proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.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.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.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.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund.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.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund.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.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund; + return proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund.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.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund.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.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity.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.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity.toObject = function(includeInstance, msg) { + var f, obj = { + requestedSettingForAutoStakeMaturity: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity; + return proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setRequestedSettingForAutoStakeMaturity(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRequestedSettingForAutoStakeMaturity(); + if (f) { + writer.writeBool( + 1, + f + ); + } +}; + + +/** + * optional bool requested_setting_for_auto_stake_maturity = 1; + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity.prototype.getRequestedSettingForAutoStakeMaturity = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity.prototype.setRequestedSettingForAutoStakeMaturity = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + + +/** + * 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.ic_nns_governance.pb.v1.ManageNeuron.Configure.oneofGroups_ = [[1,2,3,4,5,6,7,8,9]]; + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.OperationCase = { + OPERATION_NOT_SET: 0, + INCREASE_DISSOLVE_DELAY: 1, + START_DISSOLVING: 2, + STOP_DISSOLVING: 3, + ADD_HOT_KEY: 4, + REMOVE_HOT_KEY: 5, + SET_DISSOLVE_TIMESTAMP: 6, + JOIN_COMMUNITY_FUND: 7, + LEAVE_COMMUNITY_FUND: 8, + CHANGE_AUTO_STAKE_MATURITY: 9 +}; + +/** + * @return {proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.OperationCase} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.getOperationCase = function() { + return /** @type {proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.OperationCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.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.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.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.ic_nns_governance.pb.v1.ManageNeuron.Configure} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.toObject = function(includeInstance, msg) { + var f, obj = { + increaseDissolveDelay: (f = msg.getIncreaseDissolveDelay()) && proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.toObject(includeInstance, f), + startDissolving: (f = msg.getStartDissolving()) && proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.toObject(includeInstance, f), + stopDissolving: (f = msg.getStopDissolving()) && proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.toObject(includeInstance, f), + addHotKey: (f = msg.getAddHotKey()) && proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.toObject(includeInstance, f), + removeHotKey: (f = msg.getRemoveHotKey()) && proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.toObject(includeInstance, f), + setDissolveTimestamp: (f = msg.getSetDissolveTimestamp()) && proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp.toObject(includeInstance, f), + joinCommunityFund: (f = msg.getJoinCommunityFund()) && proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.toObject(includeInstance, f), + leaveCommunityFund: (f = msg.getLeaveCommunityFund()) && proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund.toObject(includeInstance, f), + changeAutoStakeMaturity: (f = msg.getChangeAutoStakeMaturity()) && proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity.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.ic_nns_governance.pb.v1.ManageNeuron.Configure} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.Configure; + return proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.deserializeBinaryFromReader); + msg.setIncreaseDissolveDelay(value); + break; + case 2: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.deserializeBinaryFromReader); + msg.setStartDissolving(value); + break; + case 3: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.deserializeBinaryFromReader); + msg.setStopDissolving(value); + break; + case 4: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.deserializeBinaryFromReader); + msg.setAddHotKey(value); + break; + case 5: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.deserializeBinaryFromReader); + msg.setRemoveHotKey(value); + break; + case 6: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp.deserializeBinaryFromReader); + msg.setSetDissolveTimestamp(value); + break; + case 7: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.deserializeBinaryFromReader); + msg.setJoinCommunityFund(value); + break; + case 8: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund.deserializeBinaryFromReader); + msg.setLeaveCommunityFund(value); + break; + case 9: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity.deserializeBinaryFromReader); + msg.setChangeAutoStakeMaturity(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIncreaseDissolveDelay(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.serializeBinaryToWriter + ); + } + f = message.getStartDissolving(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.serializeBinaryToWriter + ); + } + f = message.getStopDissolving(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.serializeBinaryToWriter + ); + } + f = message.getAddHotKey(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.serializeBinaryToWriter + ); + } + f = message.getRemoveHotKey(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.serializeBinaryToWriter + ); + } + f = message.getSetDissolveTimestamp(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp.serializeBinaryToWriter + ); + } + f = message.getJoinCommunityFund(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.serializeBinaryToWriter + ); + } + f = message.getLeaveCommunityFund(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund.serializeBinaryToWriter + ); + } + f = message.getChangeAutoStakeMaturity(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity.serializeBinaryToWriter + ); + } +}; + + +/** + * optional IncreaseDissolveDelay increase_dissolve_delay = 1; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.getIncreaseDissolveDelay = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay, 1)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.setIncreaseDissolveDelay = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.clearIncreaseDissolveDelay = function() { + return this.setIncreaseDissolveDelay(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.hasIncreaseDissolveDelay = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional StartDissolving start_dissolving = 2; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.getStartDissolving = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving, 2)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.setStartDissolving = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.clearStartDissolving = function() { + return this.setStartDissolving(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.hasStartDissolving = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional StopDissolving stop_dissolving = 3; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.getStopDissolving = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving, 3)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.setStopDissolving = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.clearStopDissolving = function() { + return this.setStopDissolving(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.hasStopDissolving = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional AddHotKey add_hot_key = 4; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.getAddHotKey = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey, 4)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.setAddHotKey = function(value) { + return jspb.Message.setOneofWrapperField(this, 4, proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.clearAddHotKey = function() { + return this.setAddHotKey(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.hasAddHotKey = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional RemoveHotKey remove_hot_key = 5; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.getRemoveHotKey = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey, 5)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.setRemoveHotKey = function(value) { + return jspb.Message.setOneofWrapperField(this, 5, proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.clearRemoveHotKey = function() { + return this.setRemoveHotKey(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.hasRemoveHotKey = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional SetDissolveTimestamp set_dissolve_timestamp = 6; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.getSetDissolveTimestamp = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp, 6)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.SetDissolveTimestamp|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.setSetDissolveTimestamp = function(value) { + return jspb.Message.setOneofWrapperField(this, 6, proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.clearSetDissolveTimestamp = function() { + return this.setSetDissolveTimestamp(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.hasSetDissolveTimestamp = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional JoinCommunityFund join_community_fund = 7; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.getJoinCommunityFund = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund, 7)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.setJoinCommunityFund = function(value) { + return jspb.Message.setOneofWrapperField(this, 7, proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.clearJoinCommunityFund = function() { + return this.setJoinCommunityFund(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.hasJoinCommunityFund = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional LeaveCommunityFund leave_community_fund = 8; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.getLeaveCommunityFund = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund, 8)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.LeaveCommunityFund|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.setLeaveCommunityFund = function(value) { + return jspb.Message.setOneofWrapperField(this, 8, proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.clearLeaveCommunityFund = function() { + return this.setLeaveCommunityFund(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.hasLeaveCommunityFund = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional ChangeAutoStakeMaturity change_auto_stake_maturity = 9; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.getChangeAutoStakeMaturity = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity, 9)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.ChangeAutoStakeMaturity|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.setChangeAutoStakeMaturity = function(value) { + return jspb.Message.setOneofWrapperField(this, 9, proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.clearChangeAutoStakeMaturity = function() { + return this.setChangeAutoStakeMaturity(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.hasChangeAutoStakeMaturity = function() { + return jspb.Message.getField(this, 9) != 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.ic_nns_governance.pb.v1.ManageNeuron.Disburse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.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.ic_nns_governance.pb.v1.ManageNeuron.Disburse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.toObject = function(includeInstance, msg) { + var f, obj = { + amount: (f = msg.getAmount()) && proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.toObject(includeInstance, f), + toAccount: (f = msg.getToAccount()) && ledger_pb.AccountIdentifier.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.ic_nns_governance.pb.v1.ManageNeuron.Disburse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse; + return proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.deserializeBinaryFromReader); + msg.setAmount(value); + break; + case 2: + var value = new ledger_pb.AccountIdentifier; + reader.readMessage(value,ledger_pb.AccountIdentifier.deserializeBinaryFromReader); + msg.setToAccount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAmount(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.serializeBinaryToWriter + ); + } + f = message.getToAccount(); + if (f != null) { + writer.writeMessage( + 2, + f, + ledger_pb.AccountIdentifier.serializeBinaryToWriter + ); + } +}; + + + + + +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.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.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.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.toObject = function(includeInstance, msg) { + var f, obj = { + e8s: 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.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount; + return proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setE8s(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getE8s(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } +}; + + +/** + * optional uint64 e8s = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.prototype.getE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.prototype.setE8s = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional Amount amount = 1; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.prototype.getAmount = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount, 1)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.prototype.setAmount = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.prototype.clearAmount = function() { + return this.setAmount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.prototype.hasAmount = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ic_ledger.pb.v1.AccountIdentifier to_account = 2; + * @return {?proto.ic_ledger.pb.v1.AccountIdentifier} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.prototype.getToAccount = function() { + return /** @type{?proto.ic_ledger.pb.v1.AccountIdentifier} */ ( + jspb.Message.getWrapperField(this, ledger_pb.AccountIdentifier, 2)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.AccountIdentifier|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.prototype.setToAccount = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.prototype.clearToAccount = function() { + return this.setToAccount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.prototype.hasToAccount = function() { + return jspb.Message.getField(this, 2) != 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.ic_nns_governance.pb.v1.ManageNeuron.Split.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.Split.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.ic_nns_governance.pb.v1.ManageNeuron.Split} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Split.toObject = function(includeInstance, msg) { + var f, obj = { + amountE8s: 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.ic_nns_governance.pb.v1.ManageNeuron.Split} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Split.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.Split; + return proto.ic_nns_governance.pb.v1.ManageNeuron.Split.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Split} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Split} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Split.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setAmountE8s(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Split.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.Split.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Split} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Split.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAmountE8s(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } +}; + + +/** + * optional uint64 amount_e8s = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Split.prototype.getAmountE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Split} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Split.prototype.setAmountE8s = 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.ic_nns_governance.pb.v1.ManageNeuron.Merge.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.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.ic_nns_governance.pb.v1.ManageNeuron.Merge} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.toObject = function(includeInstance, msg) { + var f, obj = { + sourceNeuronId: (f = msg.getSourceNeuronId()) && nns_common_pb.NeuronId.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.ic_nns_governance.pb.v1.ManageNeuron.Merge} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.Merge; + return proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Merge} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Merge} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nns_common_pb.NeuronId; + reader.readMessage(value,nns_common_pb.NeuronId.deserializeBinaryFromReader); + msg.setSourceNeuronId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Merge} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSourceNeuronId(); + if (f != null) { + writer.writeMessage( + 1, + f, + nns_common_pb.NeuronId.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_nns_common.pb.v1.NeuronId source_neuron_id = 1; + * @return {?proto.ic_nns_common.pb.v1.NeuronId} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.prototype.getSourceNeuronId = function() { + return /** @type{?proto.ic_nns_common.pb.v1.NeuronId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.NeuronId, 1)); +}; + + +/** + * @param {?proto.ic_nns_common.pb.v1.NeuronId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Merge} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.prototype.setSourceNeuronId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Merge} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.prototype.clearSourceNeuronId = function() { + return this.setSourceNeuronId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.prototype.hasSourceNeuronId = 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.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.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.ic_nns_governance.pb.v1.ManageNeuron.Spawn} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.toObject = function(includeInstance, msg) { + var f, obj = { + newController: (f = msg.getNewController()) && base_types_pb.PrincipalId.toObject(includeInstance, f), + nonce: jspb.Message.getFieldWithDefault(msg, 2, 0), + percentageToSpawn: jspb.Message.getFieldWithDefault(msg, 3, 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.ic_nns_governance.pb.v1.ManageNeuron.Spawn} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn; + return proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setNewController(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setNonce(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPercentageToSpawn(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNewController(); + if (f != null) { + writer.writeMessage( + 1, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeUint64( + 2, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeUint32( + 3, + f + ); + } +}; + + +/** + * optional ic_base_types.pb.v1.PrincipalId new_controller = 1; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.getNewController = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 1)); +}; + + +/** + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.setNewController = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.clearNewController = function() { + return this.setNewController(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.hasNewController = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional uint64 nonce = 2; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.getNonce = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.setNonce = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.clearNonce = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.hasNonce = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional uint32 percentage_to_spawn = 3; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.getPercentageToSpawn = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.setPercentageToSpawn = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.clearPercentageToSpawn = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.hasPercentageToSpawn = function() { + return jspb.Message.getField(this, 3) != 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.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.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.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.toObject = function(includeInstance, msg) { + var f, obj = { + percentageToMerge: 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.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity; + return proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPercentageToMerge(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPercentageToMerge(); + if (f !== 0) { + writer.writeUint32( + 1, + f + ); + } +}; + + +/** + * optional uint32 percentage_to_merge = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.prototype.getPercentageToMerge = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.prototype.setPercentageToMerge = 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.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity.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.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity.toObject = function(includeInstance, msg) { + var f, obj = { + percentageToStake: 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.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity; + return proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint32()); + msg.setPercentageToStake(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {number} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeUint32( + 1, + f + ); + } +}; + + +/** + * optional uint32 percentage_to_stake = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity.prototype.getPercentageToStake = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity.prototype.setPercentageToStake = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity.prototype.clearPercentageToStake = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity.prototype.hasPercentageToStake = 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.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.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.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.toObject = function(includeInstance, msg) { + var f, obj = { + newController: (f = msg.getNewController()) && base_types_pb.PrincipalId.toObject(includeInstance, f), + amountE8s: jspb.Message.getFieldWithDefault(msg, 2, 0), + dissolveDelaySeconds: jspb.Message.getFieldWithDefault(msg, 3, 0), + kycVerified: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + nonce: jspb.Message.getFieldWithDefault(msg, 5, 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.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron; + return proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setNewController(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setAmountE8s(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDissolveDelaySeconds(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setKycVerified(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setNonce(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNewController(); + if (f != null) { + writer.writeMessage( + 1, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = message.getAmountE8s(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getDissolveDelaySeconds(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } + f = message.getKycVerified(); + if (f) { + writer.writeBool( + 4, + f + ); + } + f = message.getNonce(); + if (f !== 0) { + writer.writeUint64( + 5, + f + ); + } +}; + + +/** + * optional ic_base_types.pb.v1.PrincipalId new_controller = 1; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.prototype.getNewController = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 1)); +}; + + +/** + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.prototype.setNewController = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.prototype.clearNewController = function() { + return this.setNewController(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.prototype.hasNewController = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional uint64 amount_e8s = 2; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.prototype.getAmountE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.prototype.setAmountE8s = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint64 dissolve_delay_seconds = 3; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.prototype.getDissolveDelaySeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.prototype.setDissolveDelaySeconds = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional bool kyc_verified = 4; + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.prototype.getKycVerified = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.prototype.setKycVerified = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + +/** + * optional uint64 nonce = 5; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.prototype.getNonce = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.prototype.setNonce = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.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.ic_nns_governance.pb.v1.ManageNeuron.Follow.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.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.ic_nns_governance.pb.v1.ManageNeuron.Follow} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.toObject = function(includeInstance, msg) { + var f, obj = { + topic: jspb.Message.getFieldWithDefault(msg, 1, 0), + followeesList: jspb.Message.toObjectList(msg.getFolloweesList(), + nns_common_pb.NeuronId.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Follow} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.Follow; + return proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Follow} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Follow} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.ic_nns_governance.pb.v1.Topic} */ (reader.readEnum()); + msg.setTopic(value); + break; + case 2: + var value = new nns_common_pb.NeuronId; + reader.readMessage(value,nns_common_pb.NeuronId.deserializeBinaryFromReader); + msg.addFollowees(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Follow} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTopic(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getFolloweesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + nns_common_pb.NeuronId.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Topic topic = 1; + * @return {!proto.ic_nns_governance.pb.v1.Topic} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.prototype.getTopic = function() { + return /** @type {!proto.ic_nns_governance.pb.v1.Topic} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.Topic} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Follow} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.prototype.setTopic = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * repeated ic_nns_common.pb.v1.NeuronId followees = 2; + * @return {!Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.prototype.getFolloweesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, nns_common_pb.NeuronId, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Follow} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.prototype.setFolloweesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.ic_nns_common.pb.v1.NeuronId=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_nns_common.pb.v1.NeuronId} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.prototype.addFollowees = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.ic_nns_common.pb.v1.NeuronId, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Follow} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.prototype.clearFolloweesList = function() { + return this.setFolloweesList([]); +}; + + + + + +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.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.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.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.toObject = function(includeInstance, msg) { + var f, obj = { + proposal: (f = msg.getProposal()) && nns_common_pb.ProposalId.toObject(includeInstance, f), + vote: jspb.Message.getFieldWithDefault(msg, 2, 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.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote; + return proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nns_common_pb.ProposalId; + reader.readMessage(value,nns_common_pb.ProposalId.deserializeBinaryFromReader); + msg.setProposal(value); + break; + case 2: + var value = /** @type {!proto.ic_nns_governance.pb.v1.Vote} */ (reader.readEnum()); + msg.setVote(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProposal(); + if (f != null) { + writer.writeMessage( + 1, + f, + nns_common_pb.ProposalId.serializeBinaryToWriter + ); + } + f = message.getVote(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } +}; + + +/** + * optional ic_nns_common.pb.v1.ProposalId proposal = 1; + * @return {?proto.ic_nns_common.pb.v1.ProposalId} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.prototype.getProposal = function() { + return /** @type{?proto.ic_nns_common.pb.v1.ProposalId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.ProposalId, 1)); +}; + + +/** + * @param {?proto.ic_nns_common.pb.v1.ProposalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.prototype.setProposal = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.prototype.clearProposal = function() { + return this.setProposal(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.prototype.hasProposal = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Vote vote = 2; + * @return {!proto.ic_nns_governance.pb.v1.Vote} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.prototype.getVote = function() { + return /** @type {!proto.ic_nns_governance.pb.v1.Vote} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.Vote} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.prototype.setVote = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + + +/** + * 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.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.oneofGroups_ = [[1,2,3]]; + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.ByCase = { + BY_NOT_SET: 0, + MEMO: 1, + MEMO_AND_CONTROLLER: 2, + NEURON_ID_OR_SUBACCOUNT: 3 +}; + +/** + * @return {proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.ByCase} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.prototype.getByCase = function() { + return /** @type {proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.ByCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.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.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.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.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.toObject = function(includeInstance, msg) { + var f, obj = { + memo: jspb.Message.getFieldWithDefault(msg, 1, 0), + memoAndController: (f = msg.getMemoAndController()) && proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController.toObject(includeInstance, f), + neuronIdOrSubaccount: (f = msg.getNeuronIdOrSubaccount()) && proto.ic_nns_governance.pb.v1.Empty.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.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh; + return proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMemo(value); + break; + case 2: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController.deserializeBinaryFromReader); + msg.setMemoAndController(value); + break; + case 3: + var value = new proto.ic_nns_governance.pb.v1.Empty; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.Empty.deserializeBinaryFromReader); + msg.setNeuronIdOrSubaccount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {number} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeUint64( + 1, + f + ); + } + f = message.getMemoAndController(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController.serializeBinaryToWriter + ); + } + f = message.getNeuronIdOrSubaccount(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.ic_nns_governance.pb.v1.Empty.serializeBinaryToWriter + ); + } +}; + + + + + +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.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController.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.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController.toObject = function(includeInstance, msg) { + var f, obj = { + memo: jspb.Message.getFieldWithDefault(msg, 1, 0), + controller: (f = msg.getController()) && base_types_pb.PrincipalId.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.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController; + return proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMemo(value); + break; + case 2: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setController(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemo(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getController(); + if (f != null) { + writer.writeMessage( + 2, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } +}; + + +/** + * optional uint64 memo = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController.prototype.getMemo = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController.prototype.setMemo = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional ic_base_types.pb.v1.PrincipalId controller = 2; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController.prototype.getController = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 2)); +}; + + +/** + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController.prototype.setController = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController.prototype.clearController = function() { + return this.setController(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController.prototype.hasController = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional uint64 memo = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.prototype.getMemo = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.prototype.setMemo = function(value) { + return jspb.Message.setOneofField(this, 1, proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.prototype.clearMemo = function() { + return jspb.Message.setOneofField(this, 1, proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.prototype.hasMemo = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional MemoAndController memo_and_controller = 2; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.prototype.getMemoAndController = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController, 2)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.MemoAndController|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.prototype.setMemoAndController = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.prototype.clearMemoAndController = function() { + return this.setMemoAndController(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.prototype.hasMemoAndController = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional Empty neuron_id_or_subaccount = 3; + * @return {?proto.ic_nns_governance.pb.v1.Empty} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.prototype.getNeuronIdOrSubaccount = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.Empty} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.Empty, 3)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.Empty|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.prototype.setNeuronIdOrSubaccount = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.prototype.clearNeuronIdOrSubaccount = function() { + return this.setNeuronIdOrSubaccount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.prototype.hasNeuronIdOrSubaccount = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional ic_nns_common.pb.v1.NeuronId id = 1; + * @return {?proto.ic_nns_common.pb.v1.NeuronId} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getId = function() { + return /** @type{?proto.ic_nns_common.pb.v1.NeuronId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.NeuronId, 1)); +}; + + +/** + * @param {?proto.ic_nns_common.pb.v1.NeuronId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearId = function() { + return this.setId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bytes subaccount = 11; + * @return {!(string|Uint8Array)} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getSubaccount = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +}; + + +/** + * optional bytes subaccount = 11; + * This is a type-conversion wrapper around `getSubaccount()` + * @return {string} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getSubaccount_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getSubaccount())); +}; + + +/** + * optional bytes subaccount = 11; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getSubaccount()` + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getSubaccount_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSubaccount())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setSubaccount = function(value) { + return jspb.Message.setOneofField(this, 11, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearSubaccount = function() { + return jspb.Message.setOneofField(this, 11, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasSubaccount = function() { + return jspb.Message.getField(this, 11) != null; +}; + + +/** + * optional ic_nns_common.pb.v1.NeuronId neuron_id = 12; + * @return {?proto.ic_nns_common.pb.v1.NeuronId} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getNeuronId = function() { + return /** @type{?proto.ic_nns_common.pb.v1.NeuronId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.NeuronId, 12)); +}; + + +/** + * @param {?proto.ic_nns_common.pb.v1.NeuronId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setNeuronId = function(value) { + return jspb.Message.setOneofWrapperField(this, 12, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearNeuronId = function() { + return this.setNeuronId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasNeuronId = function() { + return jspb.Message.getField(this, 12) != null; +}; + + +/** + * optional Configure configure = 2; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getConfigure = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.Configure, 2)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.Configure|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setConfigure = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[1], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearConfigure = function() { + return this.setConfigure(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasConfigure = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional Disburse disburse = 3; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getDisburse = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse, 3)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setDisburse = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[1], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearDisburse = function() { + return this.setDisburse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasDisburse = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional Spawn spawn = 4; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getSpawn = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn, 4)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setSpawn = function(value) { + return jspb.Message.setOneofWrapperField(this, 4, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[1], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearSpawn = function() { + return this.setSpawn(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasSpawn = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional Follow follow = 5; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.Follow} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getFollow = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.Follow} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.Follow, 5)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.Follow|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setFollow = function(value) { + return jspb.Message.setOneofWrapperField(this, 5, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[1], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearFollow = function() { + return this.setFollow(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasFollow = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional Proposal make_proposal = 6; + * @return {?proto.ic_nns_governance.pb.v1.Proposal} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getMakeProposal = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.Proposal} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.Proposal, 6)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.Proposal|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setMakeProposal = function(value) { + return jspb.Message.setOneofWrapperField(this, 6, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[1], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearMakeProposal = function() { + return this.setMakeProposal(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasMakeProposal = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional RegisterVote register_vote = 7; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getRegisterVote = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote, 7)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setRegisterVote = function(value) { + return jspb.Message.setOneofWrapperField(this, 7, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[1], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearRegisterVote = function() { + return this.setRegisterVote(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasRegisterVote = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional Split split = 8; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.Split} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getSplit = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.Split} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.Split, 8)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.Split|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setSplit = function(value) { + return jspb.Message.setOneofWrapperField(this, 8, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[1], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearSplit = function() { + return this.setSplit(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasSplit = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional DisburseToNeuron disburse_to_neuron = 9; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getDisburseToNeuron = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron, 9)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setDisburseToNeuron = function(value) { + return jspb.Message.setOneofWrapperField(this, 9, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[1], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearDisburseToNeuron = function() { + return this.setDisburseToNeuron(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasDisburseToNeuron = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional ClaimOrRefresh claim_or_refresh = 10; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getClaimOrRefresh = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh, 10)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setClaimOrRefresh = function(value) { + return jspb.Message.setOneofWrapperField(this, 10, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[1], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearClaimOrRefresh = function() { + return this.setClaimOrRefresh(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasClaimOrRefresh = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional MergeMaturity merge_maturity = 13; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getMergeMaturity = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity, 13)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setMergeMaturity = function(value) { + return jspb.Message.setOneofWrapperField(this, 13, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[1], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearMergeMaturity = function() { + return this.setMergeMaturity(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasMergeMaturity = function() { + return jspb.Message.getField(this, 13) != null; +}; + + +/** + * optional Merge merge = 14; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.Merge} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getMerge = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.Merge} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.Merge, 14)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.Merge|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setMerge = function(value) { + return jspb.Message.setOneofWrapperField(this, 14, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[1], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearMerge = function() { + return this.setMerge(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasMerge = function() { + return jspb.Message.getField(this, 14) != null; +}; + + +/** + * optional StakeMaturity stake_maturity = 15; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getStakeMaturity = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity, 15)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.StakeMaturity|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setStakeMaturity = function(value) { + return jspb.Message.setOneofWrapperField(this, 15, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[1], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearStakeMaturity = function() { + return this.setStakeMaturity(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasStakeMaturity = function() { + return jspb.Message.getField(this, 15) != null; +}; + + + +/** + * 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.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_ = [[1,2,3,4,5,6,7,8,9,10,11,12,13]]; + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.CommandCase = { + COMMAND_NOT_SET: 0, + ERROR: 1, + CONFIGURE: 2, + DISBURSE: 3, + SPAWN: 4, + FOLLOW: 5, + MAKE_PROPOSAL: 6, + REGISTER_VOTE: 7, + SPLIT: 8, + DISBURSE_TO_NEURON: 9, + CLAIM_OR_REFRESH: 10, + MERGE_MATURITY: 11, + MERGE: 12, + STAKE_MATURITY: 13 +}; + +/** + * @return {proto.ic_nns_governance.pb.v1.ManageNeuronResponse.CommandCase} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getCommandCase = function() { + return /** @type {proto.ic_nns_governance.pb.v1.ManageNeuronResponse.CommandCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.toObject = function(includeInstance, msg) { + var f, obj = { + error: (f = msg.getError()) && proto.ic_nns_governance.pb.v1.GovernanceError.toObject(includeInstance, f), + configure: (f = msg.getConfigure()) && proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.toObject(includeInstance, f), + disburse: (f = msg.getDisburse()) && proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.toObject(includeInstance, f), + spawn: (f = msg.getSpawn()) && proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.toObject(includeInstance, f), + follow: (f = msg.getFollow()) && proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.toObject(includeInstance, f), + makeProposal: (f = msg.getMakeProposal()) && proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse.toObject(includeInstance, f), + registerVote: (f = msg.getRegisterVote()) && proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.toObject(includeInstance, f), + split: (f = msg.getSplit()) && proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse.toObject(includeInstance, f), + disburseToNeuron: (f = msg.getDisburseToNeuron()) && proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse.toObject(includeInstance, f), + claimOrRefresh: (f = msg.getClaimOrRefresh()) && proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse.toObject(includeInstance, f), + mergeMaturity: (f = msg.getMergeMaturity()) && proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.toObject(includeInstance, f), + merge: (f = msg.getMerge()) && proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.toObject(includeInstance, f), + stakeMaturity: (f = msg.getStakeMaturity()) && proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse; + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_nns_governance.pb.v1.GovernanceError; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.GovernanceError.deserializeBinaryFromReader); + msg.setError(value); + break; + case 2: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.deserializeBinaryFromReader); + msg.setConfigure(value); + break; + case 3: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.deserializeBinaryFromReader); + msg.setDisburse(value); + break; + case 4: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.deserializeBinaryFromReader); + msg.setSpawn(value); + break; + case 5: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.deserializeBinaryFromReader); + msg.setFollow(value); + break; + case 6: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse.deserializeBinaryFromReader); + msg.setMakeProposal(value); + break; + case 7: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.deserializeBinaryFromReader); + msg.setRegisterVote(value); + break; + case 8: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse.deserializeBinaryFromReader); + msg.setSplit(value); + break; + case 9: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse.deserializeBinaryFromReader); + msg.setDisburseToNeuron(value); + break; + case 10: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse.deserializeBinaryFromReader); + msg.setClaimOrRefresh(value); + break; + case 11: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.deserializeBinaryFromReader); + msg.setMergeMaturity(value); + break; + case 12: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.deserializeBinaryFromReader); + msg.setMerge(value); + break; + case 13: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse.deserializeBinaryFromReader); + msg.setStakeMaturity(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getError(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_nns_governance.pb.v1.GovernanceError.serializeBinaryToWriter + ); + } + f = message.getConfigure(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.serializeBinaryToWriter + ); + } + f = message.getDisburse(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.serializeBinaryToWriter + ); + } + f = message.getSpawn(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.serializeBinaryToWriter + ); + } + f = message.getFollow(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.serializeBinaryToWriter + ); + } + f = message.getMakeProposal(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse.serializeBinaryToWriter + ); + } + f = message.getRegisterVote(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.serializeBinaryToWriter + ); + } + f = message.getSplit(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse.serializeBinaryToWriter + ); + } + f = message.getDisburseToNeuron(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse.serializeBinaryToWriter + ); + } + f = message.getClaimOrRefresh(); + if (f != null) { + writer.writeMessage( + 10, + f, + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse.serializeBinaryToWriter + ); + } + f = message.getMergeMaturity(); + if (f != null) { + writer.writeMessage( + 11, + f, + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.serializeBinaryToWriter + ); + } + f = message.getMerge(); + if (f != null) { + writer.writeMessage( + 12, + f, + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.serializeBinaryToWriter + ); + } + f = message.getStakeMaturity(); + if (f != null) { + writer.writeMessage( + 13, + f, + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse.serializeBinaryToWriter + ); + } +}; + + + + + +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.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse; + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.toObject = function(includeInstance, msg) { + var f, obj = { + transferBlockHeight: 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.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse; + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTransferBlockHeight(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTransferBlockHeight(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } +}; + + +/** + * optional uint64 transfer_block_height = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.prototype.getTransferBlockHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.prototype.setTransferBlockHeight = 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.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.toObject = function(includeInstance, msg) { + var f, obj = { + createdNeuronId: (f = msg.getCreatedNeuronId()) && nns_common_pb.NeuronId.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.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse; + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nns_common_pb.NeuronId; + reader.readMessage(value,nns_common_pb.NeuronId.deserializeBinaryFromReader); + msg.setCreatedNeuronId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCreatedNeuronId(); + if (f != null) { + writer.writeMessage( + 1, + f, + nns_common_pb.NeuronId.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_nns_common.pb.v1.NeuronId created_neuron_id = 1; + * @return {?proto.ic_nns_common.pb.v1.NeuronId} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.prototype.getCreatedNeuronId = function() { + return /** @type{?proto.ic_nns_common.pb.v1.NeuronId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.NeuronId, 1)); +}; + + +/** + * @param {?proto.ic_nns_common.pb.v1.NeuronId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.prototype.setCreatedNeuronId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.prototype.clearCreatedNeuronId = function() { + return this.setCreatedNeuronId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.prototype.hasCreatedNeuronId = 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.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.toObject = function(includeInstance, msg) { + var f, obj = { + mergedMaturityE8s: jspb.Message.getFieldWithDefault(msg, 1, 0), + newStakeE8s: jspb.Message.getFieldWithDefault(msg, 2, 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.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse; + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMergedMaturityE8s(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setNewStakeE8s(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMergedMaturityE8s(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getNewStakeE8s(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } +}; + + +/** + * optional uint64 merged_maturity_e8s = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.prototype.getMergedMaturityE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.prototype.setMergedMaturityE8s = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint64 new_stake_e8s = 2; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.prototype.getNewStakeE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.prototype.setNewStakeE8s = function(value) { + return jspb.Message.setProto3IntField(this, 2, 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.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse.toObject = function(includeInstance, msg) { + var f, obj = { + maturityE8s: jspb.Message.getFieldWithDefault(msg, 1, 0), + stakedMaturityE8s: jspb.Message.getFieldWithDefault(msg, 2, 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.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse; + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMaturityE8s(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setStakedMaturityE8s(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMaturityE8s(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getStakedMaturityE8s(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } +}; + + +/** + * optional uint64 maturity_e8s = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse.prototype.getMaturityE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse.prototype.setMaturityE8s = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint64 staked_maturity_e8s = 2; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse.prototype.getStakedMaturityE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse.prototype.setStakedMaturityE8s = function(value) { + return jspb.Message.setProto3IntField(this, 2, 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.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse; + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse.toObject = function(includeInstance, msg) { + var f, obj = { + proposalId: (f = msg.getProposalId()) && nns_common_pb.ProposalId.toObject(includeInstance, f), + message: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse; + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nns_common_pb.ProposalId; + reader.readMessage(value,nns_common_pb.ProposalId.deserializeBinaryFromReader); + msg.setProposalId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setMessage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProposalId(); + if (f != null) { + writer.writeMessage( + 1, + f, + nns_common_pb.ProposalId.serializeBinaryToWriter + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional ic_nns_common.pb.v1.ProposalId proposal_id = 1; + * @return {?proto.ic_nns_common.pb.v1.ProposalId} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse.prototype.getProposalId = function() { + return /** @type{?proto.ic_nns_common.pb.v1.ProposalId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.ProposalId, 1)); +}; + + +/** + * @param {?proto.ic_nns_common.pb.v1.ProposalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse.prototype.setProposalId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse.prototype.clearProposalId = function() { + return this.setProposalId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse.prototype.hasProposalId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string message = 2; + * @return {string} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse.prototype.getMessage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse.prototype.setMessage = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse.prototype.clearMessage = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse.prototype.hasMessage = function() { + return jspb.Message.getField(this, 2) != 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.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse; + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse.toObject = function(includeInstance, msg) { + var f, obj = { + createdNeuronId: (f = msg.getCreatedNeuronId()) && nns_common_pb.NeuronId.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.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse; + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nns_common_pb.NeuronId; + reader.readMessage(value,nns_common_pb.NeuronId.deserializeBinaryFromReader); + msg.setCreatedNeuronId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCreatedNeuronId(); + if (f != null) { + writer.writeMessage( + 1, + f, + nns_common_pb.NeuronId.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_nns_common.pb.v1.NeuronId created_neuron_id = 1; + * @return {?proto.ic_nns_common.pb.v1.NeuronId} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse.prototype.getCreatedNeuronId = function() { + return /** @type{?proto.ic_nns_common.pb.v1.NeuronId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.NeuronId, 1)); +}; + + +/** + * @param {?proto.ic_nns_common.pb.v1.NeuronId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse.prototype.setCreatedNeuronId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse.prototype.clearCreatedNeuronId = function() { + return this.setCreatedNeuronId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse.prototype.hasCreatedNeuronId = 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.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.toObject = function(includeInstance, msg) { + var f, obj = { + sourceNeuron: (f = msg.getSourceNeuron()) && proto.ic_nns_governance.pb.v1.Neuron.toObject(includeInstance, f), + targetNeuron: (f = msg.getTargetNeuron()) && proto.ic_nns_governance.pb.v1.Neuron.toObject(includeInstance, f), + sourceNeuronInfo: (f = msg.getSourceNeuronInfo()) && proto.ic_nns_governance.pb.v1.NeuronInfo.toObject(includeInstance, f), + targetNeuronInfo: (f = msg.getTargetNeuronInfo()) && proto.ic_nns_governance.pb.v1.NeuronInfo.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.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse; + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_nns_governance.pb.v1.Neuron; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.Neuron.deserializeBinaryFromReader); + msg.setSourceNeuron(value); + break; + case 2: + var value = new proto.ic_nns_governance.pb.v1.Neuron; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.Neuron.deserializeBinaryFromReader); + msg.setTargetNeuron(value); + break; + case 3: + var value = new proto.ic_nns_governance.pb.v1.NeuronInfo; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NeuronInfo.deserializeBinaryFromReader); + msg.setSourceNeuronInfo(value); + break; + case 4: + var value = new proto.ic_nns_governance.pb.v1.NeuronInfo; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NeuronInfo.deserializeBinaryFromReader); + msg.setTargetNeuronInfo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSourceNeuron(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_nns_governance.pb.v1.Neuron.serializeBinaryToWriter + ); + } + f = message.getTargetNeuron(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_nns_governance.pb.v1.Neuron.serializeBinaryToWriter + ); + } + f = message.getSourceNeuronInfo(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.ic_nns_governance.pb.v1.NeuronInfo.serializeBinaryToWriter + ); + } + f = message.getTargetNeuronInfo(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.ic_nns_governance.pb.v1.NeuronInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Neuron source_neuron = 1; + * @return {?proto.ic_nns_governance.pb.v1.Neuron} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.prototype.getSourceNeuron = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.Neuron} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.Neuron, 1)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.Neuron|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.prototype.setSourceNeuron = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.prototype.clearSourceNeuron = function() { + return this.setSourceNeuron(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.prototype.hasSourceNeuron = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Neuron target_neuron = 2; + * @return {?proto.ic_nns_governance.pb.v1.Neuron} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.prototype.getTargetNeuron = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.Neuron} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.Neuron, 2)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.Neuron|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.prototype.setTargetNeuron = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.prototype.clearTargetNeuron = function() { + return this.setTargetNeuron(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.prototype.hasTargetNeuron = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional NeuronInfo source_neuron_info = 3; + * @return {?proto.ic_nns_governance.pb.v1.NeuronInfo} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.prototype.getSourceNeuronInfo = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.NeuronInfo} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.NeuronInfo, 3)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.NeuronInfo|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.prototype.setSourceNeuronInfo = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.prototype.clearSourceNeuronInfo = function() { + return this.setSourceNeuronInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.prototype.hasSourceNeuronInfo = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional NeuronInfo target_neuron_info = 4; + * @return {?proto.ic_nns_governance.pb.v1.NeuronInfo} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.prototype.getTargetNeuronInfo = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.NeuronInfo} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.NeuronInfo, 4)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.NeuronInfo|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.prototype.setTargetNeuronInfo = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.prototype.clearTargetNeuronInfo = function() { + return this.setTargetNeuronInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.prototype.hasTargetNeuronInfo = function() { + return jspb.Message.getField(this, 4) != 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.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse.toObject = function(includeInstance, msg) { + var f, obj = { + createdNeuronId: (f = msg.getCreatedNeuronId()) && nns_common_pb.NeuronId.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.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse; + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nns_common_pb.NeuronId; + reader.readMessage(value,nns_common_pb.NeuronId.deserializeBinaryFromReader); + msg.setCreatedNeuronId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCreatedNeuronId(); + if (f != null) { + writer.writeMessage( + 1, + f, + nns_common_pb.NeuronId.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_nns_common.pb.v1.NeuronId created_neuron_id = 1; + * @return {?proto.ic_nns_common.pb.v1.NeuronId} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse.prototype.getCreatedNeuronId = function() { + return /** @type{?proto.ic_nns_common.pb.v1.NeuronId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.NeuronId, 1)); +}; + + +/** + * @param {?proto.ic_nns_common.pb.v1.NeuronId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse.prototype.setCreatedNeuronId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse.prototype.clearCreatedNeuronId = function() { + return this.setCreatedNeuronId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse.prototype.hasCreatedNeuronId = 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.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse.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.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse.toObject = function(includeInstance, msg) { + var f, obj = { + refreshedNeuronId: (f = msg.getRefreshedNeuronId()) && nns_common_pb.NeuronId.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.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse; + return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nns_common_pb.NeuronId; + reader.readMessage(value,nns_common_pb.NeuronId.deserializeBinaryFromReader); + msg.setRefreshedNeuronId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRefreshedNeuronId(); + if (f != null) { + writer.writeMessage( + 1, + f, + nns_common_pb.NeuronId.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_nns_common.pb.v1.NeuronId refreshed_neuron_id = 1; + * @return {?proto.ic_nns_common.pb.v1.NeuronId} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse.prototype.getRefreshedNeuronId = function() { + return /** @type{?proto.ic_nns_common.pb.v1.NeuronId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.NeuronId, 1)); +}; + + +/** + * @param {?proto.ic_nns_common.pb.v1.NeuronId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse.prototype.setRefreshedNeuronId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse.prototype.clearRefreshedNeuronId = function() { + return this.setRefreshedNeuronId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse.prototype.hasRefreshedNeuronId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional GovernanceError error = 1; + * @return {?proto.ic_nns_governance.pb.v1.GovernanceError} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getError = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.GovernanceError} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.GovernanceError, 1)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.GovernanceError|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.setError = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ConfigureResponse configure = 2; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getConfigure = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse, 2)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.setConfigure = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearConfigure = function() { + return this.setConfigure(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.hasConfigure = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional DisburseResponse disburse = 3; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getDisburse = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse, 3)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.setDisburse = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearDisburse = function() { + return this.setDisburse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.hasDisburse = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional SpawnResponse spawn = 4; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getSpawn = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse, 4)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.setSpawn = function(value) { + return jspb.Message.setOneofWrapperField(this, 4, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearSpawn = function() { + return this.setSpawn(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.hasSpawn = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional FollowResponse follow = 5; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getFollow = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse, 5)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.setFollow = function(value) { + return jspb.Message.setOneofWrapperField(this, 5, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearFollow = function() { + return this.setFollow(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.hasFollow = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional MakeProposalResponse make_proposal = 6; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getMakeProposal = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse, 6)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MakeProposalResponse|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.setMakeProposal = function(value) { + return jspb.Message.setOneofWrapperField(this, 6, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearMakeProposal = function() { + return this.setMakeProposal(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.hasMakeProposal = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional RegisterVoteResponse register_vote = 7; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getRegisterVote = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse, 7)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.setRegisterVote = function(value) { + return jspb.Message.setOneofWrapperField(this, 7, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearRegisterVote = function() { + return this.setRegisterVote(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.hasRegisterVote = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional SplitResponse split = 8; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getSplit = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse, 8)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SplitResponse|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.setSplit = function(value) { + return jspb.Message.setOneofWrapperField(this, 8, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearSplit = function() { + return this.setSplit(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.hasSplit = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional DisburseToNeuronResponse disburse_to_neuron = 9; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getDisburseToNeuron = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse, 9)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseToNeuronResponse|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.setDisburseToNeuron = function(value) { + return jspb.Message.setOneofWrapperField(this, 9, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearDisburseToNeuron = function() { + return this.setDisburseToNeuron(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.hasDisburseToNeuron = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional ClaimOrRefreshResponse claim_or_refresh = 10; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getClaimOrRefresh = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse, 10)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ClaimOrRefreshResponse|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.setClaimOrRefresh = function(value) { + return jspb.Message.setOneofWrapperField(this, 10, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearClaimOrRefresh = function() { + return this.setClaimOrRefresh(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.hasClaimOrRefresh = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional MergeMaturityResponse merge_maturity = 11; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getMergeMaturity = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse, 11)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.setMergeMaturity = function(value) { + return jspb.Message.setOneofWrapperField(this, 11, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearMergeMaturity = function() { + return this.setMergeMaturity(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.hasMergeMaturity = function() { + return jspb.Message.getField(this, 11) != null; +}; + + +/** + * optional MergeResponse merge = 12; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getMerge = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse, 12)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.setMerge = function(value) { + return jspb.Message.setOneofWrapperField(this, 12, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearMerge = function() { + return this.setMerge(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.hasMerge = function() { + return jspb.Message.getField(this, 12) != null; +}; + + +/** + * optional StakeMaturityResponse stake_maturity = 13; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getStakeMaturity = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse, 13)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.StakeMaturityResponse|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.setStakeMaturity = function(value) { + return jspb.Message.setOneofWrapperField(this, 13, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearStakeMaturity = function() { + return this.setStakeMaturity(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.hasStakeMaturity = function() { + return jspb.Message.getField(this, 13) != 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.ic_nns_governance.pb.v1.GovernanceError.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.GovernanceError.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.ic_nns_governance.pb.v1.GovernanceError} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.GovernanceError.toObject = function(includeInstance, msg) { + var f, obj = { + errorType: jspb.Message.getFieldWithDefault(msg, 1, 0), + errorMessage: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_nns_governance.pb.v1.GovernanceError} + */ +proto.ic_nns_governance.pb.v1.GovernanceError.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.GovernanceError; + return proto.ic_nns_governance.pb.v1.GovernanceError.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.GovernanceError} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.GovernanceError} + */ +proto.ic_nns_governance.pb.v1.GovernanceError.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.ic_nns_governance.pb.v1.GovernanceError.ErrorType} */ (reader.readEnum()); + msg.setErrorType(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setErrorMessage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.GovernanceError.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.GovernanceError.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.GovernanceError} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.GovernanceError.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getErrorType(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getErrorMessage(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.GovernanceError.ErrorType = { + ERROR_TYPE_UNSPECIFIED: 0, + ERROR_TYPE_OK: 1, + ERROR_TYPE_UNAVAILABLE: 2, + ERROR_TYPE_NOT_AUTHORIZED: 3, + ERROR_TYPE_NOT_FOUND: 4, + ERROR_TYPE_INVALID_COMMAND: 5, + ERROR_TYPE_REQUIRES_NOT_DISSOLVING: 6, + ERROR_TYPE_REQUIRES_DISSOLVING: 7, + ERROR_TYPE_REQUIRES_DISSOLVED: 8, + ERROR_TYPE_HOT_KEY: 9, + ERROR_TYPE_RESOURCE_EXHAUSTED: 10, + ERROR_TYPE_PRECONDITION_FAILED: 11, + ERROR_TYPE_EXTERNAL: 12, + ERROR_TYPE_LEDGER_UPDATE_ONGOING: 13, + ERROR_TYPE_INSUFFICIENT_FUNDS: 14, + ERROR_TYPE_INVALID_PRINCIPAL: 15, + ERROR_TYPE_INVALID_PROPOSAL: 16, + ERROR_TYPE_ALREADY_JOINED_COMMUNITY_FUND: 17, + ERROR_TYPE_NOT_IN_THE_COMMUNITY_FUND: 18 +}; + +/** + * optional ErrorType error_type = 1; + * @return {!proto.ic_nns_governance.pb.v1.GovernanceError.ErrorType} + */ +proto.ic_nns_governance.pb.v1.GovernanceError.prototype.getErrorType = function() { + return /** @type {!proto.ic_nns_governance.pb.v1.GovernanceError.ErrorType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.GovernanceError.ErrorType} value + * @return {!proto.ic_nns_governance.pb.v1.GovernanceError} returns this + */ +proto.ic_nns_governance.pb.v1.GovernanceError.prototype.setErrorType = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * optional string error_message = 2; + * @return {string} + */ +proto.ic_nns_governance.pb.v1.GovernanceError.prototype.getErrorMessage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ic_nns_governance.pb.v1.GovernanceError} returns this + */ +proto.ic_nns_governance.pb.v1.GovernanceError.prototype.setErrorMessage = function(value) { + return jspb.Message.setProto3StringField(this, 2, 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.ic_nns_governance.pb.v1.Ballot.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.Ballot.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.ic_nns_governance.pb.v1.Ballot} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.Ballot.toObject = function(includeInstance, msg) { + var f, obj = { + vote: jspb.Message.getFieldWithDefault(msg, 1, 0), + votingPower: jspb.Message.getFieldWithDefault(msg, 2, 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.ic_nns_governance.pb.v1.Ballot} + */ +proto.ic_nns_governance.pb.v1.Ballot.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.Ballot; + return proto.ic_nns_governance.pb.v1.Ballot.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.Ballot} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.Ballot} + */ +proto.ic_nns_governance.pb.v1.Ballot.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.ic_nns_governance.pb.v1.Vote} */ (reader.readEnum()); + msg.setVote(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setVotingPower(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.Ballot.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.Ballot.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.Ballot} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.Ballot.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getVote(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getVotingPower(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } +}; + + +/** + * optional Vote vote = 1; + * @return {!proto.ic_nns_governance.pb.v1.Vote} + */ +proto.ic_nns_governance.pb.v1.Ballot.prototype.getVote = function() { + return /** @type {!proto.ic_nns_governance.pb.v1.Vote} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.Vote} value + * @return {!proto.ic_nns_governance.pb.v1.Ballot} returns this + */ +proto.ic_nns_governance.pb.v1.Ballot.prototype.setVote = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * optional uint64 voting_power = 2; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Ballot.prototype.getVotingPower = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Ballot} returns this + */ +proto.ic_nns_governance.pb.v1.Ballot.prototype.setVotingPower = function(value) { + return jspb.Message.setProto3IntField(this, 2, 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.ic_nns_governance.pb.v1.Tally.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.Tally.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.ic_nns_governance.pb.v1.Tally} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.Tally.toObject = function(includeInstance, msg) { + var f, obj = { + timestampSeconds: jspb.Message.getFieldWithDefault(msg, 1, 0), + yes: jspb.Message.getFieldWithDefault(msg, 2, 0), + no: jspb.Message.getFieldWithDefault(msg, 3, 0), + total: jspb.Message.getFieldWithDefault(msg, 4, 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.ic_nns_governance.pb.v1.Tally} + */ +proto.ic_nns_governance.pb.v1.Tally.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.Tally; + return proto.ic_nns_governance.pb.v1.Tally.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.Tally} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.Tally} + */ +proto.ic_nns_governance.pb.v1.Tally.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTimestampSeconds(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setYes(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setNo(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotal(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.Tally.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.Tally.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.Tally} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.Tally.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getYes(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getNo(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } + f = message.getTotal(); + if (f !== 0) { + writer.writeUint64( + 4, + f + ); + } +}; + + +/** + * optional uint64 timestamp_seconds = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Tally.prototype.getTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Tally} returns this + */ +proto.ic_nns_governance.pb.v1.Tally.prototype.setTimestampSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint64 yes = 2; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Tally.prototype.getYes = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Tally} returns this + */ +proto.ic_nns_governance.pb.v1.Tally.prototype.setYes = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint64 no = 3; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Tally.prototype.getNo = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Tally} returns this + */ +proto.ic_nns_governance.pb.v1.Tally.prototype.setNo = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional uint64 total = 4; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Tally.prototype.getTotal = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Tally} returns this + */ +proto.ic_nns_governance.pb.v1.Tally.prototype.setTotal = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_nns_governance.pb.v1.ProposalData.repeatedFields_ = [18]; + + + +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.ic_nns_governance.pb.v1.ProposalData.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ProposalData.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.ic_nns_governance.pb.v1.ProposalData} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ProposalData.toObject = function(includeInstance, msg) { + var f, obj = { + id: (f = msg.getId()) && nns_common_pb.ProposalId.toObject(includeInstance, f), + proposer: (f = msg.getProposer()) && nns_common_pb.NeuronId.toObject(includeInstance, f), + rejectCostE8s: jspb.Message.getFieldWithDefault(msg, 3, 0), + proposal: (f = msg.getProposal()) && proto.ic_nns_governance.pb.v1.Proposal.toObject(includeInstance, f), + proposalTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 5, 0), + ballotsMap: (f = msg.getBallotsMap()) ? f.toObject(includeInstance, proto.ic_nns_governance.pb.v1.Ballot.toObject) : [], + latestTally: (f = msg.getLatestTally()) && proto.ic_nns_governance.pb.v1.Tally.toObject(includeInstance, f), + decidedTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 8, 0), + executedTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 12, 0), + failedTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 13, 0), + failureReason: (f = msg.getFailureReason()) && proto.ic_nns_governance.pb.v1.GovernanceError.toObject(includeInstance, f), + rewardEventRound: jspb.Message.getFieldWithDefault(msg, 14, 0), + waitForQuietState: (f = msg.getWaitForQuietState()) && proto.ic_nns_governance.pb.v1.WaitForQuietState.toObject(includeInstance, f), + originalTotalCommunityFundMaturityE8sEquivalent: jspb.Message.getFieldWithDefault(msg, 17, 0), + cfParticipantsList: jspb.Message.toObjectList(msg.getCfParticipantsList(), + swap_pb.CfParticipant.toObject, includeInstance), + snsTokenSwapLifecycle: jspb.Message.getFieldWithDefault(msg, 19, 0), + derivedProposalInformation: (f = msg.getDerivedProposalInformation()) && proto.ic_nns_governance.pb.v1.DerivedProposalInformation.toObject(includeInstance, f), + neuronsFundData: (f = msg.getNeuronsFundData()) && proto.ic_nns_governance.pb.v1.NeuronsFundData.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.ic_nns_governance.pb.v1.ProposalData} + */ +proto.ic_nns_governance.pb.v1.ProposalData.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ProposalData; + return proto.ic_nns_governance.pb.v1.ProposalData.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ProposalData} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} + */ +proto.ic_nns_governance.pb.v1.ProposalData.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nns_common_pb.ProposalId; + reader.readMessage(value,nns_common_pb.ProposalId.deserializeBinaryFromReader); + msg.setId(value); + break; + case 2: + var value = new nns_common_pb.NeuronId; + reader.readMessage(value,nns_common_pb.NeuronId.deserializeBinaryFromReader); + msg.setProposer(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setRejectCostE8s(value); + break; + case 4: + var value = new proto.ic_nns_governance.pb.v1.Proposal; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.Proposal.deserializeBinaryFromReader); + msg.setProposal(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setProposalTimestampSeconds(value); + break; + case 6: + var value = msg.getBallotsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readFixed64, jspb.BinaryReader.prototype.readMessage, proto.ic_nns_governance.pb.v1.Ballot.deserializeBinaryFromReader, 0, new proto.ic_nns_governance.pb.v1.Ballot()); + }); + break; + case 7: + var value = new proto.ic_nns_governance.pb.v1.Tally; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.Tally.deserializeBinaryFromReader); + msg.setLatestTally(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDecidedTimestampSeconds(value); + break; + case 12: + var value = /** @type {number} */ (reader.readUint64()); + msg.setExecutedTimestampSeconds(value); + break; + case 13: + var value = /** @type {number} */ (reader.readUint64()); + msg.setFailedTimestampSeconds(value); + break; + case 15: + var value = new proto.ic_nns_governance.pb.v1.GovernanceError; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.GovernanceError.deserializeBinaryFromReader); + msg.setFailureReason(value); + break; + case 14: + var value = /** @type {number} */ (reader.readUint64()); + msg.setRewardEventRound(value); + break; + case 16: + var value = new proto.ic_nns_governance.pb.v1.WaitForQuietState; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.WaitForQuietState.deserializeBinaryFromReader); + msg.setWaitForQuietState(value); + break; + case 17: + var value = /** @type {number} */ (reader.readUint64()); + msg.setOriginalTotalCommunityFundMaturityE8sEquivalent(value); + break; + case 18: + var value = new swap_pb.CfParticipant; + reader.readMessage(value,swap_pb.CfParticipant.deserializeBinaryFromReader); + msg.addCfParticipants(value); + break; + case 19: + var value = /** @type {!proto.ic_sns_swap.pb.v1.Lifecycle} */ (reader.readEnum()); + msg.setSnsTokenSwapLifecycle(value); + break; + case 20: + var value = new proto.ic_nns_governance.pb.v1.DerivedProposalInformation; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.DerivedProposalInformation.deserializeBinaryFromReader); + msg.setDerivedProposalInformation(value); + break; + case 21: + var value = new proto.ic_nns_governance.pb.v1.NeuronsFundData; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NeuronsFundData.deserializeBinaryFromReader); + msg.setNeuronsFundData(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ProposalData.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ProposalData} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ProposalData.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f != null) { + writer.writeMessage( + 1, + f, + nns_common_pb.ProposalId.serializeBinaryToWriter + ); + } + f = message.getProposer(); + if (f != null) { + writer.writeMessage( + 2, + f, + nns_common_pb.NeuronId.serializeBinaryToWriter + ); + } + f = message.getRejectCostE8s(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } + f = message.getProposal(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.ic_nns_governance.pb.v1.Proposal.serializeBinaryToWriter + ); + } + f = message.getProposalTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( + 5, + f + ); + } + f = message.getBallotsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeFixed64, jspb.BinaryWriter.prototype.writeMessage, proto.ic_nns_governance.pb.v1.Ballot.serializeBinaryToWriter); + } + f = message.getLatestTally(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.ic_nns_governance.pb.v1.Tally.serializeBinaryToWriter + ); + } + f = message.getDecidedTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( + 8, + f + ); + } + f = message.getExecutedTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( + 12, + f + ); + } + f = message.getFailedTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( + 13, + f + ); + } + f = message.getFailureReason(); + if (f != null) { + writer.writeMessage( + 15, + f, + proto.ic_nns_governance.pb.v1.GovernanceError.serializeBinaryToWriter + ); + } + f = message.getRewardEventRound(); + if (f !== 0) { + writer.writeUint64( + 14, + f + ); + } + f = message.getWaitForQuietState(); + if (f != null) { + writer.writeMessage( + 16, + f, + proto.ic_nns_governance.pb.v1.WaitForQuietState.serializeBinaryToWriter + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 17)); + if (f != null) { + writer.writeUint64( + 17, + f + ); + } + f = message.getCfParticipantsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 18, + f, + swap_pb.CfParticipant.serializeBinaryToWriter + ); + } + f = /** @type {!proto.ic_sns_swap.pb.v1.Lifecycle} */ (jspb.Message.getField(message, 19)); + if (f != null) { + writer.writeEnum( + 19, + f + ); + } + f = message.getDerivedProposalInformation(); + if (f != null) { + writer.writeMessage( + 20, + f, + proto.ic_nns_governance.pb.v1.DerivedProposalInformation.serializeBinaryToWriter + ); + } + f = message.getNeuronsFundData(); + if (f != null) { + writer.writeMessage( + 21, + f, + proto.ic_nns_governance.pb.v1.NeuronsFundData.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_nns_common.pb.v1.ProposalId id = 1; + * @return {?proto.ic_nns_common.pb.v1.ProposalId} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.getId = function() { + return /** @type{?proto.ic_nns_common.pb.v1.ProposalId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.ProposalId, 1)); +}; + + +/** + * @param {?proto.ic_nns_common.pb.v1.ProposalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this +*/ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.setId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.clearId = function() { + return this.setId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.hasId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ic_nns_common.pb.v1.NeuronId proposer = 2; + * @return {?proto.ic_nns_common.pb.v1.NeuronId} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.getProposer = function() { + return /** @type{?proto.ic_nns_common.pb.v1.NeuronId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.NeuronId, 2)); +}; + + +/** + * @param {?proto.ic_nns_common.pb.v1.NeuronId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this +*/ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.setProposer = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.clearProposer = function() { + return this.setProposer(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.hasProposer = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional uint64 reject_cost_e8s = 3; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.getRejectCostE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.setRejectCostE8s = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional Proposal proposal = 4; + * @return {?proto.ic_nns_governance.pb.v1.Proposal} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.getProposal = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.Proposal} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.Proposal, 4)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.Proposal|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this +*/ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.setProposal = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.clearProposal = function() { + return this.setProposal(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.hasProposal = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional uint64 proposal_timestamp_seconds = 5; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.getProposalTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.setProposalTimestampSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * map ballots = 6; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.getBallotsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 6, opt_noLazyCreate, + proto.ic_nns_governance.pb.v1.Ballot)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.clearBallotsMap = function() { + this.getBallotsMap().clear(); + return this; +}; + + +/** + * optional Tally latest_tally = 7; + * @return {?proto.ic_nns_governance.pb.v1.Tally} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.getLatestTally = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.Tally} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.Tally, 7)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.Tally|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this +*/ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.setLatestTally = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.clearLatestTally = function() { + return this.setLatestTally(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.hasLatestTally = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional uint64 decided_timestamp_seconds = 8; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.getDecidedTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.setDecidedTimestampSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional uint64 executed_timestamp_seconds = 12; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.getExecutedTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.setExecutedTimestampSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 12, value); +}; + + +/** + * optional uint64 failed_timestamp_seconds = 13; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.getFailedTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.setFailedTimestampSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 13, value); +}; + + +/** + * optional GovernanceError failure_reason = 15; + * @return {?proto.ic_nns_governance.pb.v1.GovernanceError} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.getFailureReason = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.GovernanceError} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.GovernanceError, 15)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.GovernanceError|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this +*/ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.setFailureReason = function(value) { + return jspb.Message.setWrapperField(this, 15, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.clearFailureReason = function() { + return this.setFailureReason(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.hasFailureReason = function() { + return jspb.Message.getField(this, 15) != null; +}; + + +/** + * optional uint64 reward_event_round = 14; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.getRewardEventRound = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.setRewardEventRound = function(value) { + return jspb.Message.setProto3IntField(this, 14, value); +}; + + +/** + * optional WaitForQuietState wait_for_quiet_state = 16; + * @return {?proto.ic_nns_governance.pb.v1.WaitForQuietState} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.getWaitForQuietState = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.WaitForQuietState} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.WaitForQuietState, 16)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.WaitForQuietState|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this +*/ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.setWaitForQuietState = function(value) { + return jspb.Message.setWrapperField(this, 16, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.clearWaitForQuietState = function() { + return this.setWaitForQuietState(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.hasWaitForQuietState = function() { + return jspb.Message.getField(this, 16) != null; +}; + + +/** + * optional uint64 original_total_community_fund_maturity_e8s_equivalent = 17; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.getOriginalTotalCommunityFundMaturityE8sEquivalent = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.setOriginalTotalCommunityFundMaturityE8sEquivalent = function(value) { + return jspb.Message.setField(this, 17, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.clearOriginalTotalCommunityFundMaturityE8sEquivalent = function() { + return jspb.Message.setField(this, 17, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.hasOriginalTotalCommunityFundMaturityE8sEquivalent = function() { + return jspb.Message.getField(this, 17) != null; +}; + + +/** + * repeated ic_sns_swap.pb.v1.CfParticipant cf_participants = 18; + * @return {!Array} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.getCfParticipantsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, swap_pb.CfParticipant, 18)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this +*/ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.setCfParticipantsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 18, value); +}; + + +/** + * @param {!proto.ic_sns_swap.pb.v1.CfParticipant=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_sns_swap.pb.v1.CfParticipant} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.addCfParticipants = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 18, opt_value, proto.ic_sns_swap.pb.v1.CfParticipant, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.clearCfParticipantsList = function() { + return this.setCfParticipantsList([]); +}; + + +/** + * optional ic_sns_swap.pb.v1.Lifecycle sns_token_swap_lifecycle = 19; + * @return {!proto.ic_sns_swap.pb.v1.Lifecycle} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.getSnsTokenSwapLifecycle = function() { + return /** @type {!proto.ic_sns_swap.pb.v1.Lifecycle} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); +}; + + +/** + * @param {!proto.ic_sns_swap.pb.v1.Lifecycle} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.setSnsTokenSwapLifecycle = function(value) { + return jspb.Message.setField(this, 19, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.clearSnsTokenSwapLifecycle = function() { + return jspb.Message.setField(this, 19, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.hasSnsTokenSwapLifecycle = function() { + return jspb.Message.getField(this, 19) != null; +}; + + +/** + * optional DerivedProposalInformation derived_proposal_information = 20; + * @return {?proto.ic_nns_governance.pb.v1.DerivedProposalInformation} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.getDerivedProposalInformation = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.DerivedProposalInformation} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.DerivedProposalInformation, 20)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.DerivedProposalInformation|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this +*/ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.setDerivedProposalInformation = function(value) { + return jspb.Message.setWrapperField(this, 20, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.clearDerivedProposalInformation = function() { + return this.setDerivedProposalInformation(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.hasDerivedProposalInformation = function() { + return jspb.Message.getField(this, 20) != null; +}; + + +/** + * optional NeuronsFundData neurons_fund_data = 21; + * @return {?proto.ic_nns_governance.pb.v1.NeuronsFundData} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.getNeuronsFundData = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.NeuronsFundData} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.NeuronsFundData, 21)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.NeuronsFundData|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this +*/ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.setNeuronsFundData = function(value) { + return jspb.Message.setWrapperField(this, 21, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ProposalData} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.clearNeuronsFundData = function() { + return this.setNeuronsFundData(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ProposalData.prototype.hasNeuronsFundData = function() { + return jspb.Message.getField(this, 21) != 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.ic_nns_governance.pb.v1.NeuronsFundData.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.NeuronsFundData.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.ic_nns_governance.pb.v1.NeuronsFundData} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.NeuronsFundData.toObject = function(includeInstance, msg) { + var f, obj = { + initialNeuronsFundParticipation: (f = msg.getInitialNeuronsFundParticipation()) && proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.toObject(includeInstance, f), + finalNeuronsFundParticipation: (f = msg.getFinalNeuronsFundParticipation()) && proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.toObject(includeInstance, f), + neuronsFundRefunds: (f = msg.getNeuronsFundRefunds()) && proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.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.ic_nns_governance.pb.v1.NeuronsFundData} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundData.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.NeuronsFundData; + return proto.ic_nns_governance.pb.v1.NeuronsFundData.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.NeuronsFundData} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundData} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundData.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_nns_governance.pb.v1.NeuronsFundParticipation; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.deserializeBinaryFromReader); + msg.setInitialNeuronsFundParticipation(value); + break; + case 2: + var value = new proto.ic_nns_governance.pb.v1.NeuronsFundParticipation; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.deserializeBinaryFromReader); + msg.setFinalNeuronsFundParticipation(value); + break; + case 3: + var value = new proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.deserializeBinaryFromReader); + msg.setNeuronsFundRefunds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundData.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.NeuronsFundData.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.NeuronsFundData} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.NeuronsFundData.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getInitialNeuronsFundParticipation(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.serializeBinaryToWriter + ); + } + f = message.getFinalNeuronsFundParticipation(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.serializeBinaryToWriter + ); + } + f = message.getNeuronsFundRefunds(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.serializeBinaryToWriter + ); + } +}; + + +/** + * optional NeuronsFundParticipation initial_neurons_fund_participation = 1; + * @return {?proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundData.prototype.getInitialNeuronsFundParticipation = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.NeuronsFundParticipation, 1)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.NeuronsFundParticipation|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundData} returns this +*/ +proto.ic_nns_governance.pb.v1.NeuronsFundData.prototype.setInitialNeuronsFundParticipation = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundData} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundData.prototype.clearInitialNeuronsFundParticipation = function() { + return this.setInitialNeuronsFundParticipation(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundData.prototype.hasInitialNeuronsFundParticipation = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional NeuronsFundParticipation final_neurons_fund_participation = 2; + * @return {?proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundData.prototype.getFinalNeuronsFundParticipation = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.NeuronsFundParticipation, 2)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.NeuronsFundParticipation|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundData} returns this +*/ +proto.ic_nns_governance.pb.v1.NeuronsFundData.prototype.setFinalNeuronsFundParticipation = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundData} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundData.prototype.clearFinalNeuronsFundParticipation = function() { + return this.setFinalNeuronsFundParticipation(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundData.prototype.hasFinalNeuronsFundParticipation = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional NeuronsFundSnapshot neurons_fund_refunds = 3; + * @return {?proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundData.prototype.getNeuronsFundRefunds = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot, 3)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundData} returns this +*/ +proto.ic_nns_governance.pb.v1.NeuronsFundData.prototype.setNeuronsFundRefunds = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundData} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundData.prototype.clearNeuronsFundRefunds = function() { + return this.setNeuronsFundRefunds(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundData.prototype.hasNeuronsFundRefunds = function() { + return jspb.Message.getField(this, 3) != 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.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.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.ic_nns_governance.pb.v1.NeuronsFundAuditInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.toObject = function(includeInstance, msg) { + var f, obj = { + initialNeuronsFundParticipation: (f = msg.getInitialNeuronsFundParticipation()) && proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.toObject(includeInstance, f), + finalNeuronsFundParticipation: (f = msg.getFinalNeuronsFundParticipation()) && proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.toObject(includeInstance, f), + neuronsFundRefunds: (f = msg.getNeuronsFundRefunds()) && proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.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.ic_nns_governance.pb.v1.NeuronsFundAuditInfo} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo; + return proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_nns_governance.pb.v1.NeuronsFundParticipation; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.deserializeBinaryFromReader); + msg.setInitialNeuronsFundParticipation(value); + break; + case 2: + var value = new proto.ic_nns_governance.pb.v1.NeuronsFundParticipation; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.deserializeBinaryFromReader); + msg.setFinalNeuronsFundParticipation(value); + break; + case 3: + var value = new proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.deserializeBinaryFromReader); + msg.setNeuronsFundRefunds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getInitialNeuronsFundParticipation(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.serializeBinaryToWriter + ); + } + f = message.getFinalNeuronsFundParticipation(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.serializeBinaryToWriter + ); + } + f = message.getNeuronsFundRefunds(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.serializeBinaryToWriter + ); + } +}; + + +/** + * optional NeuronsFundParticipation initial_neurons_fund_participation = 1; + * @return {?proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.prototype.getInitialNeuronsFundParticipation = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.NeuronsFundParticipation, 1)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.NeuronsFundParticipation|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo} returns this +*/ +proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.prototype.setInitialNeuronsFundParticipation = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.prototype.clearInitialNeuronsFundParticipation = function() { + return this.setInitialNeuronsFundParticipation(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.prototype.hasInitialNeuronsFundParticipation = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional NeuronsFundParticipation final_neurons_fund_participation = 2; + * @return {?proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.prototype.getFinalNeuronsFundParticipation = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.NeuronsFundParticipation, 2)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.NeuronsFundParticipation|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo} returns this +*/ +proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.prototype.setFinalNeuronsFundParticipation = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.prototype.clearFinalNeuronsFundParticipation = function() { + return this.setFinalNeuronsFundParticipation(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.prototype.hasFinalNeuronsFundParticipation = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional NeuronsFundSnapshot neurons_fund_refunds = 3; + * @return {?proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.prototype.getNeuronsFundRefunds = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot, 3)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo} returns this +*/ +proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.prototype.setNeuronsFundRefunds = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.prototype.clearNeuronsFundRefunds = function() { + return this.setNeuronsFundRefunds(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.prototype.hasNeuronsFundRefunds = function() { + return jspb.Message.getField(this, 3) != 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.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest.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.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest.toObject = function(includeInstance, msg) { + var f, obj = { + nnsProposalId: (f = msg.getNnsProposalId()) && nns_common_pb.ProposalId.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.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest} + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest; + return proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest} + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nns_common_pb.ProposalId; + reader.readMessage(value,nns_common_pb.ProposalId.deserializeBinaryFromReader); + msg.setNnsProposalId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNnsProposalId(); + if (f != null) { + writer.writeMessage( + 1, + f, + nns_common_pb.ProposalId.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_nns_common.pb.v1.ProposalId nns_proposal_id = 1; + * @return {?proto.ic_nns_common.pb.v1.ProposalId} + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest.prototype.getNnsProposalId = function() { + return /** @type{?proto.ic_nns_common.pb.v1.ProposalId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.ProposalId, 1)); +}; + + +/** + * @param {?proto.ic_nns_common.pb.v1.ProposalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest} returns this +*/ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest.prototype.setNnsProposalId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest} returns this + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest.prototype.clearNnsProposalId = function() { + return this.setNnsProposalId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoRequest.prototype.hasNnsProposalId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + +/** + * 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.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.oneofGroups_ = [[1,2]]; + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.ResultCase = { + RESULT_NOT_SET: 0, + ERR: 1, + OK: 2 +}; + +/** + * @return {proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.ResultCase} + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.prototype.getResultCase = function() { + return /** @type {proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.ResultCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.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.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.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.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.toObject = function(includeInstance, msg) { + var f, obj = { + err: (f = msg.getErr()) && proto.ic_nns_governance.pb.v1.GovernanceError.toObject(includeInstance, f), + ok: (f = msg.getOk()) && proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok.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.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse} + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse; + return proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse} + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_nns_governance.pb.v1.GovernanceError; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.GovernanceError.deserializeBinaryFromReader); + msg.setErr(value); + break; + case 2: + var value = new proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok.deserializeBinaryFromReader); + msg.setOk(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getErr(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_nns_governance.pb.v1.GovernanceError.serializeBinaryToWriter + ); + } + f = message.getOk(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok.serializeBinaryToWriter + ); + } +}; + + + + + +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.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok.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.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok.toObject = function(includeInstance, msg) { + var f, obj = { + neuronsFundAuditInfo: (f = msg.getNeuronsFundAuditInfo()) && proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.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.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok} + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok; + return proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok} + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.deserializeBinaryFromReader); + msg.setNeuronsFundAuditInfo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNeuronsFundAuditInfo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional NeuronsFundAuditInfo neurons_fund_audit_info = 1; + * @return {?proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo} + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok.prototype.getNeuronsFundAuditInfo = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo, 1)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.NeuronsFundAuditInfo|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok} returns this +*/ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok.prototype.setNeuronsFundAuditInfo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok} returns this + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok.prototype.clearNeuronsFundAuditInfo = function() { + return this.setNeuronsFundAuditInfo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok.prototype.hasNeuronsFundAuditInfo = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional GovernanceError err = 1; + * @return {?proto.ic_nns_governance.pb.v1.GovernanceError} + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.prototype.getErr = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.GovernanceError} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.GovernanceError, 1)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.GovernanceError|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.prototype.setErr = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse} returns this + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.prototype.clearErr = function() { + return this.setErr(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.prototype.hasErr = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Ok ok = 2; + * @return {?proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok} + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.prototype.getOk = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok, 2)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.Ok|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.prototype.setOk = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse} returns this + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.prototype.clearOk = function() { + return this.setOk(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.GetNeuronsFundAuditInfoResponse.prototype.hasOk = function() { + return jspb.Message.getField(this, 2) != 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.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.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.ic_nns_governance.pb.v1.NeuronsFundParticipation} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.toObject = function(includeInstance, msg) { + var f, obj = { + idealMatchedParticipationFunction: (f = msg.getIdealMatchedParticipationFunction()) && proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction.toObject(includeInstance, f), + neuronsFundReserves: (f = msg.getNeuronsFundReserves()) && proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.toObject(includeInstance, f), + swapParticipationLimits: (f = msg.getSwapParticipationLimits()) && proto.ic_nns_governance.pb.v1.SwapParticipationLimits.toObject(includeInstance, f), + directParticipationIcpE8s: jspb.Message.getFieldWithDefault(msg, 4, 0), + totalMaturityEquivalentIcpE8s: jspb.Message.getFieldWithDefault(msg, 5, 0), + maxNeuronsFundSwapParticipationIcpE8s: jspb.Message.getFieldWithDefault(msg, 6, 0), + intendedNeuronsFundParticipationIcpE8s: jspb.Message.getFieldWithDefault(msg, 7, 0), + allocatedNeuronsFundParticipationIcpE8s: jspb.Message.getFieldWithDefault(msg, 8, 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.ic_nns_governance.pb.v1.NeuronsFundParticipation} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.NeuronsFundParticipation; + return proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction.deserializeBinaryFromReader); + msg.setIdealMatchedParticipationFunction(value); + break; + case 2: + var value = new proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.deserializeBinaryFromReader); + msg.setNeuronsFundReserves(value); + break; + case 3: + var value = new proto.ic_nns_governance.pb.v1.SwapParticipationLimits; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.SwapParticipationLimits.deserializeBinaryFromReader); + msg.setSwapParticipationLimits(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDirectParticipationIcpE8s(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalMaturityEquivalentIcpE8s(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMaxNeuronsFundSwapParticipationIcpE8s(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setIntendedNeuronsFundParticipationIcpE8s(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setAllocatedNeuronsFundParticipationIcpE8s(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIdealMatchedParticipationFunction(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction.serializeBinaryToWriter + ); + } + f = message.getNeuronsFundReserves(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.serializeBinaryToWriter + ); + } + f = message.getSwapParticipationLimits(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.ic_nns_governance.pb.v1.SwapParticipationLimits.serializeBinaryToWriter + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeUint64( + 4, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeUint64( + 5, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeUint64( + 6, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeUint64( + 7, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 8)); + if (f != null) { + writer.writeUint64( + 8, + f + ); + } +}; + + +/** + * optional IdealMatchedParticipationFunction ideal_matched_participation_function = 1; + * @return {?proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.getIdealMatchedParticipationFunction = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction, 1)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} returns this +*/ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.setIdealMatchedParticipationFunction = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.clearIdealMatchedParticipationFunction = function() { + return this.setIdealMatchedParticipationFunction(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.hasIdealMatchedParticipationFunction = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional NeuronsFundSnapshot neurons_fund_reserves = 2; + * @return {?proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.getNeuronsFundReserves = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot, 2)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} returns this +*/ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.setNeuronsFundReserves = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.clearNeuronsFundReserves = function() { + return this.setNeuronsFundReserves(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.hasNeuronsFundReserves = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional SwapParticipationLimits swap_participation_limits = 3; + * @return {?proto.ic_nns_governance.pb.v1.SwapParticipationLimits} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.getSwapParticipationLimits = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.SwapParticipationLimits} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.SwapParticipationLimits, 3)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.SwapParticipationLimits|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} returns this +*/ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.setSwapParticipationLimits = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.clearSwapParticipationLimits = function() { + return this.setSwapParticipationLimits(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.hasSwapParticipationLimits = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional uint64 direct_participation_icp_e8s = 4; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.getDirectParticipationIcpE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.setDirectParticipationIcpE8s = function(value) { + return jspb.Message.setField(this, 4, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.clearDirectParticipationIcpE8s = function() { + return jspb.Message.setField(this, 4, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.hasDirectParticipationIcpE8s = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional uint64 total_maturity_equivalent_icp_e8s = 5; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.getTotalMaturityEquivalentIcpE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.setTotalMaturityEquivalentIcpE8s = function(value) { + return jspb.Message.setField(this, 5, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.clearTotalMaturityEquivalentIcpE8s = function() { + return jspb.Message.setField(this, 5, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.hasTotalMaturityEquivalentIcpE8s = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional uint64 max_neurons_fund_swap_participation_icp_e8s = 6; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.getMaxNeuronsFundSwapParticipationIcpE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.setMaxNeuronsFundSwapParticipationIcpE8s = function(value) { + return jspb.Message.setField(this, 6, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.clearMaxNeuronsFundSwapParticipationIcpE8s = function() { + return jspb.Message.setField(this, 6, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.hasMaxNeuronsFundSwapParticipationIcpE8s = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional uint64 intended_neurons_fund_participation_icp_e8s = 7; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.getIntendedNeuronsFundParticipationIcpE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.setIntendedNeuronsFundParticipationIcpE8s = function(value) { + return jspb.Message.setField(this, 7, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.clearIntendedNeuronsFundParticipationIcpE8s = function() { + return jspb.Message.setField(this, 7, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.hasIntendedNeuronsFundParticipationIcpE8s = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional uint64 allocated_neurons_fund_participation_icp_e8s = 8; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.getAllocatedNeuronsFundParticipationIcpE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.setAllocatedNeuronsFundParticipationIcpE8s = function(value) { + return jspb.Message.setField(this, 8, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundParticipation} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.clearAllocatedNeuronsFundParticipationIcpE8s = function() { + return jspb.Message.setField(this, 8, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundParticipation.prototype.hasAllocatedNeuronsFundParticipationIcpE8s = function() { + return jspb.Message.getField(this, 8) != 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.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction.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.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction.toObject = function(includeInstance, msg) { + var f, obj = { + serializedRepresentation: 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.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction} + */ +proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction; + return proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction} + */ +proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction.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.setSerializedRepresentation(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string serialized_representation = 1; + * @return {string} + */ +proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction.prototype.getSerializedRepresentation = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction} returns this + */ +proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction.prototype.setSerializedRepresentation = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction} returns this + */ +proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction.prototype.clearSerializedRepresentation = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.IdealMatchedParticipationFunction.prototype.hasSerializedRepresentation = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.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.ic_nns_governance.pb.v1.NeuronsFundSnapshot.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.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.ic_nns_governance.pb.v1.NeuronsFundSnapshot} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.toObject = function(includeInstance, msg) { + var f, obj = { + neuronsFundNeuronPortionsList: jspb.Message.toObjectList(msg.getNeuronsFundNeuronPortionsList(), + proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot; + return proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.deserializeBinaryFromReader); + msg.addNeuronsFundNeuronPortions(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNeuronsFundNeuronPortionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.serializeBinaryToWriter + ); + } +}; + + + + + +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.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.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.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.toObject = function(includeInstance, msg) { + var f, obj = { + nnsNeuronId: (f = msg.getNnsNeuronId()) && nns_common_pb.NeuronId.toObject(includeInstance, f), + amountIcpE8s: jspb.Message.getFieldWithDefault(msg, 2, 0), + maturityEquivalentIcpE8s: jspb.Message.getFieldWithDefault(msg, 3, 0), + hotkeyPrincipal: (f = msg.getHotkeyPrincipal()) && base_types_pb.PrincipalId.toObject(includeInstance, f), + isCapped: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion; + return proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nns_common_pb.NeuronId; + reader.readMessage(value,nns_common_pb.NeuronId.deserializeBinaryFromReader); + msg.setNnsNeuronId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setAmountIcpE8s(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMaturityEquivalentIcpE8s(value); + break; + case 4: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setHotkeyPrincipal(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsCapped(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNnsNeuronId(); + if (f != null) { + writer.writeMessage( + 1, + f, + nns_common_pb.NeuronId.serializeBinaryToWriter + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeUint64( + 2, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeUint64( + 3, + f + ); + } + f = message.getHotkeyPrincipal(); + if (f != null) { + writer.writeMessage( + 4, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeBool( + 5, + f + ); + } +}; + + +/** + * optional ic_nns_common.pb.v1.NeuronId nns_neuron_id = 1; + * @return {?proto.ic_nns_common.pb.v1.NeuronId} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.prototype.getNnsNeuronId = function() { + return /** @type{?proto.ic_nns_common.pb.v1.NeuronId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.NeuronId, 1)); +}; + + +/** + * @param {?proto.ic_nns_common.pb.v1.NeuronId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion} returns this +*/ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.prototype.setNnsNeuronId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.prototype.clearNnsNeuronId = function() { + return this.setNnsNeuronId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.prototype.hasNnsNeuronId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional uint64 amount_icp_e8s = 2; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.prototype.getAmountIcpE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.prototype.setAmountIcpE8s = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.prototype.clearAmountIcpE8s = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.prototype.hasAmountIcpE8s = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional uint64 maturity_equivalent_icp_e8s = 3; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.prototype.getMaturityEquivalentIcpE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.prototype.setMaturityEquivalentIcpE8s = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.prototype.clearMaturityEquivalentIcpE8s = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.prototype.hasMaturityEquivalentIcpE8s = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional ic_base_types.pb.v1.PrincipalId hotkey_principal = 4; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.prototype.getHotkeyPrincipal = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 4)); +}; + + +/** + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion} returns this +*/ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.prototype.setHotkeyPrincipal = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.prototype.clearHotkeyPrincipal = function() { + return this.setHotkeyPrincipal(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.prototype.hasHotkeyPrincipal = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional bool is_capped = 5; + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.prototype.getIsCapped = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.prototype.setIsCapped = function(value) { + return jspb.Message.setField(this, 5, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.prototype.clearIsCapped = function() { + return jspb.Message.setField(this, 5, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion.prototype.hasIsCapped = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * repeated NeuronsFundNeuronPortion neurons_fund_neuron_portions = 1; + * @return {!Array} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.prototype.getNeuronsFundNeuronPortionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot} returns this +*/ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.prototype.setNeuronsFundNeuronPortionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.prototype.addNeuronsFundNeuronPortions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.NeuronsFundNeuronPortion, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundSnapshot.prototype.clearNeuronsFundNeuronPortionsList = function() { + return this.setNeuronsFundNeuronPortionsList([]); +}; + + + + + +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.ic_nns_governance.pb.v1.SwapParticipationLimits.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.SwapParticipationLimits.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.ic_nns_governance.pb.v1.SwapParticipationLimits} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.SwapParticipationLimits.toObject = function(includeInstance, msg) { + var f, obj = { + minDirectParticipationIcpE8s: jspb.Message.getFieldWithDefault(msg, 1, 0), + maxDirectParticipationIcpE8s: jspb.Message.getFieldWithDefault(msg, 2, 0), + minParticipantIcpE8s: jspb.Message.getFieldWithDefault(msg, 3, 0), + maxParticipantIcpE8s: jspb.Message.getFieldWithDefault(msg, 4, 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.ic_nns_governance.pb.v1.SwapParticipationLimits} + */ +proto.ic_nns_governance.pb.v1.SwapParticipationLimits.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.SwapParticipationLimits; + return proto.ic_nns_governance.pb.v1.SwapParticipationLimits.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.SwapParticipationLimits} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.SwapParticipationLimits} + */ +proto.ic_nns_governance.pb.v1.SwapParticipationLimits.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMinDirectParticipationIcpE8s(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMaxDirectParticipationIcpE8s(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMinParticipantIcpE8s(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMaxParticipantIcpE8s(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.SwapParticipationLimits.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.SwapParticipationLimits.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.SwapParticipationLimits} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.SwapParticipationLimits.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {number} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeUint64( + 1, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeUint64( + 2, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeUint64( + 3, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeUint64( + 4, + f + ); + } +}; + + +/** + * optional uint64 min_direct_participation_icp_e8s = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.SwapParticipationLimits.prototype.getMinDirectParticipationIcpE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.SwapParticipationLimits} returns this + */ +proto.ic_nns_governance.pb.v1.SwapParticipationLimits.prototype.setMinDirectParticipationIcpE8s = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SwapParticipationLimits} returns this + */ +proto.ic_nns_governance.pb.v1.SwapParticipationLimits.prototype.clearMinDirectParticipationIcpE8s = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SwapParticipationLimits.prototype.hasMinDirectParticipationIcpE8s = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional uint64 max_direct_participation_icp_e8s = 2; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.SwapParticipationLimits.prototype.getMaxDirectParticipationIcpE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.SwapParticipationLimits} returns this + */ +proto.ic_nns_governance.pb.v1.SwapParticipationLimits.prototype.setMaxDirectParticipationIcpE8s = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SwapParticipationLimits} returns this + */ +proto.ic_nns_governance.pb.v1.SwapParticipationLimits.prototype.clearMaxDirectParticipationIcpE8s = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SwapParticipationLimits.prototype.hasMaxDirectParticipationIcpE8s = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional uint64 min_participant_icp_e8s = 3; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.SwapParticipationLimits.prototype.getMinParticipantIcpE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.SwapParticipationLimits} returns this + */ +proto.ic_nns_governance.pb.v1.SwapParticipationLimits.prototype.setMinParticipantIcpE8s = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SwapParticipationLimits} returns this + */ +proto.ic_nns_governance.pb.v1.SwapParticipationLimits.prototype.clearMinParticipantIcpE8s = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SwapParticipationLimits.prototype.hasMinParticipantIcpE8s = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional uint64 max_participant_icp_e8s = 4; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.SwapParticipationLimits.prototype.getMaxParticipantIcpE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.SwapParticipationLimits} returns this + */ +proto.ic_nns_governance.pb.v1.SwapParticipationLimits.prototype.setMaxParticipantIcpE8s = function(value) { + return jspb.Message.setField(this, 4, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SwapParticipationLimits} returns this + */ +proto.ic_nns_governance.pb.v1.SwapParticipationLimits.prototype.clearMaxParticipantIcpE8s = function() { + return jspb.Message.setField(this, 4, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SwapParticipationLimits.prototype.hasMaxParticipantIcpE8s = function() { + return jspb.Message.getField(this, 4) != 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.ic_nns_governance.pb.v1.DerivedProposalInformation.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.DerivedProposalInformation.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.ic_nns_governance.pb.v1.DerivedProposalInformation} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.DerivedProposalInformation.toObject = function(includeInstance, msg) { + var f, obj = { + swapBackgroundInformation: (f = msg.getSwapBackgroundInformation()) && proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.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.ic_nns_governance.pb.v1.DerivedProposalInformation} + */ +proto.ic_nns_governance.pb.v1.DerivedProposalInformation.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.DerivedProposalInformation; + return proto.ic_nns_governance.pb.v1.DerivedProposalInformation.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.DerivedProposalInformation} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.DerivedProposalInformation} + */ +proto.ic_nns_governance.pb.v1.DerivedProposalInformation.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_nns_governance.pb.v1.SwapBackgroundInformation; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.deserializeBinaryFromReader); + msg.setSwapBackgroundInformation(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.DerivedProposalInformation.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.DerivedProposalInformation.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.DerivedProposalInformation} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.DerivedProposalInformation.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSwapBackgroundInformation(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.serializeBinaryToWriter + ); + } +}; + + +/** + * optional SwapBackgroundInformation swap_background_information = 1; + * @return {?proto.ic_nns_governance.pb.v1.SwapBackgroundInformation} + */ +proto.ic_nns_governance.pb.v1.DerivedProposalInformation.prototype.getSwapBackgroundInformation = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.SwapBackgroundInformation} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.SwapBackgroundInformation, 1)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.SwapBackgroundInformation|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.DerivedProposalInformation} returns this +*/ +proto.ic_nns_governance.pb.v1.DerivedProposalInformation.prototype.setSwapBackgroundInformation = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.DerivedProposalInformation} returns this + */ +proto.ic_nns_governance.pb.v1.DerivedProposalInformation.prototype.clearSwapBackgroundInformation = function() { + return this.setSwapBackgroundInformation(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.DerivedProposalInformation.prototype.hasSwapBackgroundInformation = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.repeatedFields_ = [7,12,14]; + + + +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.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.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.ic_nns_governance.pb.v1.SwapBackgroundInformation} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.toObject = function(includeInstance, msg) { + var f, obj = { + fallbackControllerPrincipalIdsList: jspb.Message.toObjectList(msg.getFallbackControllerPrincipalIdsList(), + base_types_pb.PrincipalId.toObject, includeInstance), + rootCanisterSummary: (f = msg.getRootCanisterSummary()) && proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.toObject(includeInstance, f), + governanceCanisterSummary: (f = msg.getGovernanceCanisterSummary()) && proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.toObject(includeInstance, f), + ledgerCanisterSummary: (f = msg.getLedgerCanisterSummary()) && proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.toObject(includeInstance, f), + swapCanisterSummary: (f = msg.getSwapCanisterSummary()) && proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.toObject(includeInstance, f), + ledgerArchiveCanisterSummariesList: jspb.Message.toObjectList(msg.getLedgerArchiveCanisterSummariesList(), + proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.toObject, includeInstance), + ledgerIndexCanisterSummary: (f = msg.getLedgerIndexCanisterSummary()) && proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.toObject(includeInstance, f), + dappCanisterSummariesList: jspb.Message.toObjectList(msg.getDappCanisterSummariesList(), + proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.SwapBackgroundInformation; + return proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 7: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.addFallbackControllerPrincipalIds(value); + break; + case 8: + var value = new proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.deserializeBinaryFromReader); + msg.setRootCanisterSummary(value); + break; + case 9: + var value = new proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.deserializeBinaryFromReader); + msg.setGovernanceCanisterSummary(value); + break; + case 10: + var value = new proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.deserializeBinaryFromReader); + msg.setLedgerCanisterSummary(value); + break; + case 11: + var value = new proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.deserializeBinaryFromReader); + msg.setSwapCanisterSummary(value); + break; + case 12: + var value = new proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.deserializeBinaryFromReader); + msg.addLedgerArchiveCanisterSummaries(value); + break; + case 13: + var value = new proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.deserializeBinaryFromReader); + msg.setLedgerIndexCanisterSummary(value); + break; + case 14: + var value = new proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.deserializeBinaryFromReader); + msg.addDappCanisterSummaries(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getFallbackControllerPrincipalIdsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 7, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = message.getRootCanisterSummary(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.serializeBinaryToWriter + ); + } + f = message.getGovernanceCanisterSummary(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.serializeBinaryToWriter + ); + } + f = message.getLedgerCanisterSummary(); + if (f != null) { + writer.writeMessage( + 10, + f, + proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.serializeBinaryToWriter + ); + } + f = message.getSwapCanisterSummary(); + if (f != null) { + writer.writeMessage( + 11, + f, + proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.serializeBinaryToWriter + ); + } + f = message.getLedgerArchiveCanisterSummariesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 12, + f, + proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.serializeBinaryToWriter + ); + } + f = message.getLedgerIndexCanisterSummary(); + if (f != null) { + writer.writeMessage( + 13, + f, + proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.serializeBinaryToWriter + ); + } + f = message.getDappCanisterSummariesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 14, + f, + proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.serializeBinaryToWriter + ); + } +}; + + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusType = { + CANISTER_STATUS_TYPE_UNSPECIFIED: 0, + CANISTER_STATUS_TYPE_RUNNING: 1, + CANISTER_STATUS_TYPE_STOPPING: 2, + CANISTER_STATUS_TYPE_STOPPED: 3 +}; + + + + +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.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.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.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.toObject = function(includeInstance, msg) { + var f, obj = { + canisterId: (f = msg.getCanisterId()) && base_types_pb.PrincipalId.toObject(includeInstance, f), + status: (f = msg.getStatus()) && proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.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.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary; + return proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setCanisterId(value); + break; + case 2: + var value = new proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.deserializeBinaryFromReader); + msg.setStatus(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCanisterId(); + if (f != null) { + writer.writeMessage( + 1, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = message.getStatus(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_base_types.pb.v1.PrincipalId canister_id = 1; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.prototype.getCanisterId = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 1)); +}; + + +/** + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary} returns this +*/ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.prototype.setCanisterId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary} returns this + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.prototype.clearCanisterId = function() { + return this.setCanisterId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.prototype.hasCanisterId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional CanisterStatusResultV2 status = 2; + * @return {?proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.prototype.getStatus = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2, 2)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary} returns this +*/ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.prototype.setStatus = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary} returns this + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.prototype.clearStatus = function() { + return this.setStatus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary.prototype.hasStatus = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.repeatedFields_ = [3]; + + + +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.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.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.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.toObject = function(includeInstance, msg) { + var f, obj = { + status: jspb.Message.getFieldWithDefault(msg, 1, 0), + moduleHash: msg.getModuleHash_asB64(), + controllersList: jspb.Message.toObjectList(msg.getControllersList(), + base_types_pb.PrincipalId.toObject, includeInstance), + memorySize: jspb.Message.getFieldWithDefault(msg, 4, 0), + cycles: jspb.Message.getFieldWithDefault(msg, 5, 0), + freezingThreshold: jspb.Message.getFieldWithDefault(msg, 6, 0), + idleCyclesBurnedPerDay: jspb.Message.getFieldWithDefault(msg, 7, 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.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2; + return proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusType} */ (reader.readEnum()); + msg.setStatus(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setModuleHash(value); + break; + case 3: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.addControllers(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMemorySize(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCycles(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setFreezingThreshold(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setIdleCyclesBurnedPerDay(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusType} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeEnum( + 1, + f + ); + } + f = message.getModuleHash_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getControllersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeUint64( + 4, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeUint64( + 5, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeUint64( + 6, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeUint64( + 7, + f + ); + } +}; + + +/** + * optional CanisterStatusType status = 1; + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusType} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.getStatus = function() { + return /** @type {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusType} value + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2} returns this + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.setStatus = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2} returns this + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.clearStatus = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.hasStatus = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bytes module_hash = 2; + * @return {!(string|Uint8Array)} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.getModuleHash = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes module_hash = 2; + * This is a type-conversion wrapper around `getModuleHash()` + * @return {string} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.getModuleHash_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getModuleHash())); +}; + + +/** + * optional bytes module_hash = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getModuleHash()` + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.getModuleHash_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getModuleHash())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2} returns this + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.setModuleHash = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + +/** + * repeated ic_base_types.pb.v1.PrincipalId controllers = 3; + * @return {!Array} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.getControllersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, base_types_pb.PrincipalId, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2} returns this +*/ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.setControllersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.ic_base_types.pb.v1.PrincipalId=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.addControllers = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ic_base_types.pb.v1.PrincipalId, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2} returns this + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.clearControllersList = function() { + return this.setControllersList([]); +}; + + +/** + * optional uint64 memory_size = 4; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.getMemorySize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2} returns this + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.setMemorySize = function(value) { + return jspb.Message.setField(this, 4, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2} returns this + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.clearMemorySize = function() { + return jspb.Message.setField(this, 4, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.hasMemorySize = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional uint64 cycles = 5; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.getCycles = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2} returns this + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.setCycles = function(value) { + return jspb.Message.setField(this, 5, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2} returns this + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.clearCycles = function() { + return jspb.Message.setField(this, 5, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.hasCycles = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional uint64 freezing_threshold = 6; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.getFreezingThreshold = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2} returns this + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.setFreezingThreshold = function(value) { + return jspb.Message.setField(this, 6, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2} returns this + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.clearFreezingThreshold = function() { + return jspb.Message.setField(this, 6, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.hasFreezingThreshold = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional uint64 idle_cycles_burned_per_day = 7; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.getIdleCyclesBurnedPerDay = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2} returns this + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.setIdleCyclesBurnedPerDay = function(value) { + return jspb.Message.setField(this, 7, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2} returns this + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.clearIdleCyclesBurnedPerDay = function() { + return jspb.Message.setField(this, 7, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterStatusResultV2.prototype.hasIdleCyclesBurnedPerDay = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * repeated ic_base_types.pb.v1.PrincipalId fallback_controller_principal_ids = 7; + * @return {!Array} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.getFallbackControllerPrincipalIdsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, base_types_pb.PrincipalId, 7)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation} returns this +*/ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.setFallbackControllerPrincipalIdsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 7, value); +}; + + +/** + * @param {!proto.ic_base_types.pb.v1.PrincipalId=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.addFallbackControllerPrincipalIds = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.ic_base_types.pb.v1.PrincipalId, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation} returns this + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.clearFallbackControllerPrincipalIdsList = function() { + return this.setFallbackControllerPrincipalIdsList([]); +}; + + +/** + * optional CanisterSummary root_canister_summary = 8; + * @return {?proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.getRootCanisterSummary = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary, 8)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation} returns this +*/ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.setRootCanisterSummary = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation} returns this + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.clearRootCanisterSummary = function() { + return this.setRootCanisterSummary(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.hasRootCanisterSummary = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional CanisterSummary governance_canister_summary = 9; + * @return {?proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.getGovernanceCanisterSummary = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary, 9)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation} returns this +*/ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.setGovernanceCanisterSummary = function(value) { + return jspb.Message.setWrapperField(this, 9, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation} returns this + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.clearGovernanceCanisterSummary = function() { + return this.setGovernanceCanisterSummary(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.hasGovernanceCanisterSummary = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional CanisterSummary ledger_canister_summary = 10; + * @return {?proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.getLedgerCanisterSummary = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary, 10)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation} returns this +*/ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.setLedgerCanisterSummary = function(value) { + return jspb.Message.setWrapperField(this, 10, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation} returns this + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.clearLedgerCanisterSummary = function() { + return this.setLedgerCanisterSummary(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.hasLedgerCanisterSummary = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional CanisterSummary swap_canister_summary = 11; + * @return {?proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.getSwapCanisterSummary = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary, 11)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation} returns this +*/ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.setSwapCanisterSummary = function(value) { + return jspb.Message.setWrapperField(this, 11, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation} returns this + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.clearSwapCanisterSummary = function() { + return this.setSwapCanisterSummary(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.hasSwapCanisterSummary = function() { + return jspb.Message.getField(this, 11) != null; +}; + + +/** + * repeated CanisterSummary ledger_archive_canister_summaries = 12; + * @return {!Array} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.getLedgerArchiveCanisterSummariesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary, 12)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation} returns this +*/ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.setLedgerArchiveCanisterSummariesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 12, value); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.addLedgerArchiveCanisterSummaries = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation} returns this + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.clearLedgerArchiveCanisterSummariesList = function() { + return this.setLedgerArchiveCanisterSummariesList([]); +}; + + +/** + * optional CanisterSummary ledger_index_canister_summary = 13; + * @return {?proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.getLedgerIndexCanisterSummary = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary, 13)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation} returns this +*/ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.setLedgerIndexCanisterSummary = function(value) { + return jspb.Message.setWrapperField(this, 13, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation} returns this + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.clearLedgerIndexCanisterSummary = function() { + return this.setLedgerIndexCanisterSummary(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.hasLedgerIndexCanisterSummary = function() { + return jspb.Message.getField(this, 13) != null; +}; + + +/** + * repeated CanisterSummary dapp_canister_summaries = 14; + * @return {!Array} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.getDappCanisterSummariesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary, 14)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation} returns this +*/ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.setDappCanisterSummariesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 14, value); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary} + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.addDappCanisterSummaries = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.CanisterSummary, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.SwapBackgroundInformation} returns this + */ +proto.ic_nns_governance.pb.v1.SwapBackgroundInformation.prototype.clearDappCanisterSummariesList = function() { + return this.setDappCanisterSummariesList([]); +}; + + + + + +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.ic_nns_governance.pb.v1.WaitForQuietState.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.WaitForQuietState.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.ic_nns_governance.pb.v1.WaitForQuietState} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.WaitForQuietState.toObject = function(includeInstance, msg) { + var f, obj = { + currentDeadlineTimestampSeconds: 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.ic_nns_governance.pb.v1.WaitForQuietState} + */ +proto.ic_nns_governance.pb.v1.WaitForQuietState.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.WaitForQuietState; + return proto.ic_nns_governance.pb.v1.WaitForQuietState.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.WaitForQuietState} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.WaitForQuietState} + */ +proto.ic_nns_governance.pb.v1.WaitForQuietState.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCurrentDeadlineTimestampSeconds(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.WaitForQuietState.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.WaitForQuietState.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.WaitForQuietState} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.WaitForQuietState.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCurrentDeadlineTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } +}; + + +/** + * optional uint64 current_deadline_timestamp_seconds = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.WaitForQuietState.prototype.getCurrentDeadlineTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.WaitForQuietState} returns this + */ +proto.ic_nns_governance.pb.v1.WaitForQuietState.prototype.setCurrentDeadlineTimestampSeconds = 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.ic_nns_governance.pb.v1.ProposalInfo.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ProposalInfo.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.ic_nns_governance.pb.v1.ProposalInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.toObject = function(includeInstance, msg) { + var f, obj = { + id: (f = msg.getId()) && nns_common_pb.ProposalId.toObject(includeInstance, f), + proposer: (f = msg.getProposer()) && nns_common_pb.NeuronId.toObject(includeInstance, f), + rejectCostE8s: jspb.Message.getFieldWithDefault(msg, 3, 0), + proposal: (f = msg.getProposal()) && proto.ic_nns_governance.pb.v1.Proposal.toObject(includeInstance, f), + proposalTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 5, 0), + ballotsMap: (f = msg.getBallotsMap()) ? f.toObject(includeInstance, proto.ic_nns_governance.pb.v1.Ballot.toObject) : [], + latestTally: (f = msg.getLatestTally()) && proto.ic_nns_governance.pb.v1.Tally.toObject(includeInstance, f), + decidedTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 8, 0), + executedTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 12, 0), + failedTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 13, 0), + failureReason: (f = msg.getFailureReason()) && proto.ic_nns_governance.pb.v1.GovernanceError.toObject(includeInstance, f), + rewardEventRound: jspb.Message.getFieldWithDefault(msg, 14, 0), + topic: jspb.Message.getFieldWithDefault(msg, 15, 0), + status: jspb.Message.getFieldWithDefault(msg, 16, 0), + rewardStatus: jspb.Message.getFieldWithDefault(msg, 17, 0), + deadlineTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 19, 0), + derivedProposalInformation: (f = msg.getDerivedProposalInformation()) && proto.ic_nns_governance.pb.v1.DerivedProposalInformation.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.ic_nns_governance.pb.v1.ProposalInfo} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ProposalInfo; + return proto.ic_nns_governance.pb.v1.ProposalInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ProposalInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nns_common_pb.ProposalId; + reader.readMessage(value,nns_common_pb.ProposalId.deserializeBinaryFromReader); + msg.setId(value); + break; + case 2: + var value = new nns_common_pb.NeuronId; + reader.readMessage(value,nns_common_pb.NeuronId.deserializeBinaryFromReader); + msg.setProposer(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setRejectCostE8s(value); + break; + case 4: + var value = new proto.ic_nns_governance.pb.v1.Proposal; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.Proposal.deserializeBinaryFromReader); + msg.setProposal(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setProposalTimestampSeconds(value); + break; + case 6: + var value = msg.getBallotsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readFixed64, jspb.BinaryReader.prototype.readMessage, proto.ic_nns_governance.pb.v1.Ballot.deserializeBinaryFromReader, 0, new proto.ic_nns_governance.pb.v1.Ballot()); + }); + break; + case 7: + var value = new proto.ic_nns_governance.pb.v1.Tally; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.Tally.deserializeBinaryFromReader); + msg.setLatestTally(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDecidedTimestampSeconds(value); + break; + case 12: + var value = /** @type {number} */ (reader.readUint64()); + msg.setExecutedTimestampSeconds(value); + break; + case 13: + var value = /** @type {number} */ (reader.readUint64()); + msg.setFailedTimestampSeconds(value); + break; + case 18: + var value = new proto.ic_nns_governance.pb.v1.GovernanceError; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.GovernanceError.deserializeBinaryFromReader); + msg.setFailureReason(value); + break; + case 14: + var value = /** @type {number} */ (reader.readUint64()); + msg.setRewardEventRound(value); + break; + case 15: + var value = /** @type {!proto.ic_nns_governance.pb.v1.Topic} */ (reader.readEnum()); + msg.setTopic(value); + break; + case 16: + var value = /** @type {!proto.ic_nns_governance.pb.v1.ProposalStatus} */ (reader.readEnum()); + msg.setStatus(value); + break; + case 17: + var value = /** @type {!proto.ic_nns_governance.pb.v1.ProposalRewardStatus} */ (reader.readEnum()); + msg.setRewardStatus(value); + break; + case 19: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDeadlineTimestampSeconds(value); + break; + case 20: + var value = new proto.ic_nns_governance.pb.v1.DerivedProposalInformation; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.DerivedProposalInformation.deserializeBinaryFromReader); + msg.setDerivedProposalInformation(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ProposalInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ProposalInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f != null) { + writer.writeMessage( + 1, + f, + nns_common_pb.ProposalId.serializeBinaryToWriter + ); + } + f = message.getProposer(); + if (f != null) { + writer.writeMessage( + 2, + f, + nns_common_pb.NeuronId.serializeBinaryToWriter + ); + } + f = message.getRejectCostE8s(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } + f = message.getProposal(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.ic_nns_governance.pb.v1.Proposal.serializeBinaryToWriter + ); + } + f = message.getProposalTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( + 5, + f + ); + } + f = message.getBallotsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeFixed64, jspb.BinaryWriter.prototype.writeMessage, proto.ic_nns_governance.pb.v1.Ballot.serializeBinaryToWriter); + } + f = message.getLatestTally(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.ic_nns_governance.pb.v1.Tally.serializeBinaryToWriter + ); + } + f = message.getDecidedTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( + 8, + f + ); + } + f = message.getExecutedTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( + 12, + f + ); + } + f = message.getFailedTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( + 13, + f + ); + } + f = message.getFailureReason(); + if (f != null) { + writer.writeMessage( + 18, + f, + proto.ic_nns_governance.pb.v1.GovernanceError.serializeBinaryToWriter + ); + } + f = message.getRewardEventRound(); + if (f !== 0) { + writer.writeUint64( + 14, + f + ); + } + f = message.getTopic(); + if (f !== 0.0) { + writer.writeEnum( + 15, + f + ); + } + f = message.getStatus(); + if (f !== 0.0) { + writer.writeEnum( + 16, + f + ); + } + f = message.getRewardStatus(); + if (f !== 0.0) { + writer.writeEnum( + 17, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 19)); + if (f != null) { + writer.writeUint64( + 19, + f + ); + } + f = message.getDerivedProposalInformation(); + if (f != null) { + writer.writeMessage( + 20, + f, + proto.ic_nns_governance.pb.v1.DerivedProposalInformation.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_nns_common.pb.v1.ProposalId id = 1; + * @return {?proto.ic_nns_common.pb.v1.ProposalId} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.getId = function() { + return /** @type{?proto.ic_nns_common.pb.v1.ProposalId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.ProposalId, 1)); +}; + + +/** + * @param {?proto.ic_nns_common.pb.v1.ProposalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this +*/ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.setId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.clearId = function() { + return this.setId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.hasId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ic_nns_common.pb.v1.NeuronId proposer = 2; + * @return {?proto.ic_nns_common.pb.v1.NeuronId} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.getProposer = function() { + return /** @type{?proto.ic_nns_common.pb.v1.NeuronId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.NeuronId, 2)); +}; + + +/** + * @param {?proto.ic_nns_common.pb.v1.NeuronId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this +*/ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.setProposer = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.clearProposer = function() { + return this.setProposer(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.hasProposer = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional uint64 reject_cost_e8s = 3; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.getRejectCostE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.setRejectCostE8s = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional Proposal proposal = 4; + * @return {?proto.ic_nns_governance.pb.v1.Proposal} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.getProposal = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.Proposal} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.Proposal, 4)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.Proposal|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this +*/ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.setProposal = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.clearProposal = function() { + return this.setProposal(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.hasProposal = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional uint64 proposal_timestamp_seconds = 5; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.getProposalTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.setProposalTimestampSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * map ballots = 6; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.getBallotsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 6, opt_noLazyCreate, + proto.ic_nns_governance.pb.v1.Ballot)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.clearBallotsMap = function() { + this.getBallotsMap().clear(); + return this; +}; + + +/** + * optional Tally latest_tally = 7; + * @return {?proto.ic_nns_governance.pb.v1.Tally} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.getLatestTally = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.Tally} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.Tally, 7)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.Tally|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this +*/ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.setLatestTally = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.clearLatestTally = function() { + return this.setLatestTally(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.hasLatestTally = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional uint64 decided_timestamp_seconds = 8; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.getDecidedTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.setDecidedTimestampSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional uint64 executed_timestamp_seconds = 12; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.getExecutedTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.setExecutedTimestampSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 12, value); +}; + + +/** + * optional uint64 failed_timestamp_seconds = 13; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.getFailedTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.setFailedTimestampSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 13, value); +}; + + +/** + * optional GovernanceError failure_reason = 18; + * @return {?proto.ic_nns_governance.pb.v1.GovernanceError} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.getFailureReason = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.GovernanceError} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.GovernanceError, 18)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.GovernanceError|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this +*/ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.setFailureReason = function(value) { + return jspb.Message.setWrapperField(this, 18, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.clearFailureReason = function() { + return this.setFailureReason(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.hasFailureReason = function() { + return jspb.Message.getField(this, 18) != null; +}; + + +/** + * optional uint64 reward_event_round = 14; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.getRewardEventRound = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.setRewardEventRound = function(value) { + return jspb.Message.setProto3IntField(this, 14, value); +}; + + +/** + * optional Topic topic = 15; + * @return {!proto.ic_nns_governance.pb.v1.Topic} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.getTopic = function() { + return /** @type {!proto.ic_nns_governance.pb.v1.Topic} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.Topic} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.setTopic = function(value) { + return jspb.Message.setProto3EnumField(this, 15, value); +}; + + +/** + * optional ProposalStatus status = 16; + * @return {!proto.ic_nns_governance.pb.v1.ProposalStatus} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.getStatus = function() { + return /** @type {!proto.ic_nns_governance.pb.v1.ProposalStatus} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.ProposalStatus} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.setStatus = function(value) { + return jspb.Message.setProto3EnumField(this, 16, value); +}; + + +/** + * optional ProposalRewardStatus reward_status = 17; + * @return {!proto.ic_nns_governance.pb.v1.ProposalRewardStatus} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.getRewardStatus = function() { + return /** @type {!proto.ic_nns_governance.pb.v1.ProposalRewardStatus} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.ProposalRewardStatus} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.setRewardStatus = function(value) { + return jspb.Message.setProto3EnumField(this, 17, value); +}; + + +/** + * optional uint64 deadline_timestamp_seconds = 19; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.getDeadlineTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.setDeadlineTimestampSeconds = function(value) { + return jspb.Message.setField(this, 19, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.clearDeadlineTimestampSeconds = function() { + return jspb.Message.setField(this, 19, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.hasDeadlineTimestampSeconds = function() { + return jspb.Message.getField(this, 19) != null; +}; + + +/** + * optional DerivedProposalInformation derived_proposal_information = 20; + * @return {?proto.ic_nns_governance.pb.v1.DerivedProposalInformation} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.getDerivedProposalInformation = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.DerivedProposalInformation} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.DerivedProposalInformation, 20)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.DerivedProposalInformation|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this +*/ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.setDerivedProposalInformation = function(value) { + return jspb.Message.setWrapperField(this, 20, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} returns this + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.clearDerivedProposalInformation = function() { + return this.setDerivedProposalInformation(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ProposalInfo.prototype.hasDerivedProposalInformation = function() { + return jspb.Message.getField(this, 20) != 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.ic_nns_governance.pb.v1.NetworkEconomics.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.NetworkEconomics.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.ic_nns_governance.pb.v1.NetworkEconomics} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.toObject = function(includeInstance, msg) { + var f, obj = { + rejectCostE8s: jspb.Message.getFieldWithDefault(msg, 1, 0), + neuronMinimumStakeE8s: jspb.Message.getFieldWithDefault(msg, 2, 0), + neuronManagementFeePerProposalE8s: jspb.Message.getFieldWithDefault(msg, 4, 0), + minimumIcpXdrRate: jspb.Message.getFieldWithDefault(msg, 5, 0), + neuronSpawnDissolveDelaySeconds: jspb.Message.getFieldWithDefault(msg, 6, 0), + maximumNodeProviderRewardsE8s: jspb.Message.getFieldWithDefault(msg, 8, 0), + transactionFeeE8s: jspb.Message.getFieldWithDefault(msg, 9, 0), + maxProposalsToKeepPerTopic: jspb.Message.getFieldWithDefault(msg, 10, 0), + neuronsFundEconomics: (f = msg.getNeuronsFundEconomics()) && proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.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.ic_nns_governance.pb.v1.NetworkEconomics} + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.NetworkEconomics; + return proto.ic_nns_governance.pb.v1.NetworkEconomics.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.NetworkEconomics} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.NetworkEconomics} + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setRejectCostE8s(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setNeuronMinimumStakeE8s(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setNeuronManagementFeePerProposalE8s(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMinimumIcpXdrRate(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setNeuronSpawnDissolveDelaySeconds(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMaximumNodeProviderRewardsE8s(value); + break; + case 9: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTransactionFeeE8s(value); + break; + case 10: + var value = /** @type {number} */ (reader.readUint32()); + msg.setMaxProposalsToKeepPerTopic(value); + break; + case 11: + var value = new proto.ic_nns_governance.pb.v1.NeuronsFundEconomics; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.deserializeBinaryFromReader); + msg.setNeuronsFundEconomics(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.NetworkEconomics.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.NetworkEconomics} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRejectCostE8s(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getNeuronMinimumStakeE8s(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getNeuronManagementFeePerProposalE8s(); + if (f !== 0) { + writer.writeUint64( + 4, + f + ); + } + f = message.getMinimumIcpXdrRate(); + if (f !== 0) { + writer.writeUint64( + 5, + f + ); + } + f = message.getNeuronSpawnDissolveDelaySeconds(); + if (f !== 0) { + writer.writeUint64( + 6, + f + ); + } + f = message.getMaximumNodeProviderRewardsE8s(); + if (f !== 0) { + writer.writeUint64( + 8, + f + ); + } + f = message.getTransactionFeeE8s(); + if (f !== 0) { + writer.writeUint64( + 9, + f + ); + } + f = message.getMaxProposalsToKeepPerTopic(); + if (f !== 0) { + writer.writeUint32( + 10, + f + ); + } + f = message.getNeuronsFundEconomics(); + if (f != null) { + writer.writeMessage( + 11, + f, + proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.serializeBinaryToWriter + ); + } +}; + + +/** + * optional uint64 reject_cost_e8s = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.prototype.getRejectCostE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NetworkEconomics} returns this + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.prototype.setRejectCostE8s = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint64 neuron_minimum_stake_e8s = 2; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.prototype.getNeuronMinimumStakeE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NetworkEconomics} returns this + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.prototype.setNeuronMinimumStakeE8s = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint64 neuron_management_fee_per_proposal_e8s = 4; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.prototype.getNeuronManagementFeePerProposalE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NetworkEconomics} returns this + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.prototype.setNeuronManagementFeePerProposalE8s = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional uint64 minimum_icp_xdr_rate = 5; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.prototype.getMinimumIcpXdrRate = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NetworkEconomics} returns this + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.prototype.setMinimumIcpXdrRate = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional uint64 neuron_spawn_dissolve_delay_seconds = 6; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.prototype.getNeuronSpawnDissolveDelaySeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NetworkEconomics} returns this + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.prototype.setNeuronSpawnDissolveDelaySeconds = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional uint64 maximum_node_provider_rewards_e8s = 8; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.prototype.getMaximumNodeProviderRewardsE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NetworkEconomics} returns this + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.prototype.setMaximumNodeProviderRewardsE8s = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional uint64 transaction_fee_e8s = 9; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.prototype.getTransactionFeeE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NetworkEconomics} returns this + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.prototype.setTransactionFeeE8s = function(value) { + return jspb.Message.setProto3IntField(this, 9, value); +}; + + +/** + * optional uint32 max_proposals_to_keep_per_topic = 10; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.prototype.getMaxProposalsToKeepPerTopic = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.NetworkEconomics} returns this + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.prototype.setMaxProposalsToKeepPerTopic = function(value) { + return jspb.Message.setProto3IntField(this, 10, value); +}; + + +/** + * optional NeuronsFundEconomics neurons_fund_economics = 11; + * @return {?proto.ic_nns_governance.pb.v1.NeuronsFundEconomics} + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.prototype.getNeuronsFundEconomics = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.NeuronsFundEconomics} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.NeuronsFundEconomics, 11)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.NeuronsFundEconomics|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NetworkEconomics} returns this +*/ +proto.ic_nns_governance.pb.v1.NetworkEconomics.prototype.setNeuronsFundEconomics = function(value) { + return jspb.Message.setWrapperField(this, 11, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NetworkEconomics} returns this + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.prototype.clearNeuronsFundEconomics = function() { + return this.setNeuronsFundEconomics(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NetworkEconomics.prototype.hasNeuronsFundEconomics = function() { + return jspb.Message.getField(this, 11) != 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.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.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.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.toObject = function(includeInstance, msg) { + var f, obj = { + contributionThresholdXdr: (f = msg.getContributionThresholdXdr()) && nervous_system_pb.Decimal.toObject(includeInstance, f), + oneThirdParticipationMilestoneXdr: (f = msg.getOneThirdParticipationMilestoneXdr()) && nervous_system_pb.Decimal.toObject(includeInstance, f), + fullParticipationMilestoneXdr: (f = msg.getFullParticipationMilestoneXdr()) && nervous_system_pb.Decimal.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.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients; + return proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nervous_system_pb.Decimal; + reader.readMessage(value,nervous_system_pb.Decimal.deserializeBinaryFromReader); + msg.setContributionThresholdXdr(value); + break; + case 2: + var value = new nervous_system_pb.Decimal; + reader.readMessage(value,nervous_system_pb.Decimal.deserializeBinaryFromReader); + msg.setOneThirdParticipationMilestoneXdr(value); + break; + case 3: + var value = new nervous_system_pb.Decimal; + reader.readMessage(value,nervous_system_pb.Decimal.deserializeBinaryFromReader); + msg.setFullParticipationMilestoneXdr(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getContributionThresholdXdr(); + if (f != null) { + writer.writeMessage( + 1, + f, + nervous_system_pb.Decimal.serializeBinaryToWriter + ); + } + f = message.getOneThirdParticipationMilestoneXdr(); + if (f != null) { + writer.writeMessage( + 2, + f, + nervous_system_pb.Decimal.serializeBinaryToWriter + ); + } + f = message.getFullParticipationMilestoneXdr(); + if (f != null) { + writer.writeMessage( + 3, + f, + nervous_system_pb.Decimal.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_nervous_system.pb.v1.Decimal contribution_threshold_xdr = 1; + * @return {?proto.ic_nervous_system.pb.v1.Decimal} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.prototype.getContributionThresholdXdr = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Decimal} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Decimal, 1)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Decimal|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients} returns this +*/ +proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.prototype.setContributionThresholdXdr = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.prototype.clearContributionThresholdXdr = function() { + return this.setContributionThresholdXdr(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.prototype.hasContributionThresholdXdr = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Decimal one_third_participation_milestone_xdr = 2; + * @return {?proto.ic_nervous_system.pb.v1.Decimal} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.prototype.getOneThirdParticipationMilestoneXdr = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Decimal} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Decimal, 2)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Decimal|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients} returns this +*/ +proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.prototype.setOneThirdParticipationMilestoneXdr = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.prototype.clearOneThirdParticipationMilestoneXdr = function() { + return this.setOneThirdParticipationMilestoneXdr(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.prototype.hasOneThirdParticipationMilestoneXdr = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Decimal full_participation_milestone_xdr = 3; + * @return {?proto.ic_nervous_system.pb.v1.Decimal} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.prototype.getFullParticipationMilestoneXdr = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Decimal} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Decimal, 3)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Decimal|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients} returns this +*/ +proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.prototype.setFullParticipationMilestoneXdr = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.prototype.clearFullParticipationMilestoneXdr = function() { + return this.setFullParticipationMilestoneXdr(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.prototype.hasFullParticipationMilestoneXdr = function() { + return jspb.Message.getField(this, 3) != 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.ic_nns_governance.pb.v1.NeuronsFundEconomics.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.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.ic_nns_governance.pb.v1.NeuronsFundEconomics} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.toObject = function(includeInstance, msg) { + var f, obj = { + maxTheoreticalNeuronsFundParticipationAmountXdr: (f = msg.getMaxTheoreticalNeuronsFundParticipationAmountXdr()) && nervous_system_pb.Decimal.toObject(includeInstance, f), + neuronsFundMatchedFundingCurveCoefficients: (f = msg.getNeuronsFundMatchedFundingCurveCoefficients()) && proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.toObject(includeInstance, f), + minimumIcpXdrRate: (f = msg.getMinimumIcpXdrRate()) && nervous_system_pb.Percentage.toObject(includeInstance, f), + maximumIcpXdrRate: (f = msg.getMaximumIcpXdrRate()) && nervous_system_pb.Percentage.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.ic_nns_governance.pb.v1.NeuronsFundEconomics} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.NeuronsFundEconomics; + return proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.NeuronsFundEconomics} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundEconomics} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nervous_system_pb.Decimal; + reader.readMessage(value,nervous_system_pb.Decimal.deserializeBinaryFromReader); + msg.setMaxTheoreticalNeuronsFundParticipationAmountXdr(value); + break; + case 2: + var value = new proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.deserializeBinaryFromReader); + msg.setNeuronsFundMatchedFundingCurveCoefficients(value); + break; + case 3: + var value = new nervous_system_pb.Percentage; + reader.readMessage(value,nervous_system_pb.Percentage.deserializeBinaryFromReader); + msg.setMinimumIcpXdrRate(value); + break; + case 4: + var value = new nervous_system_pb.Percentage; + reader.readMessage(value,nervous_system_pb.Percentage.deserializeBinaryFromReader); + msg.setMaximumIcpXdrRate(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.NeuronsFundEconomics} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMaxTheoreticalNeuronsFundParticipationAmountXdr(); + if (f != null) { + writer.writeMessage( + 1, + f, + nervous_system_pb.Decimal.serializeBinaryToWriter + ); + } + f = message.getNeuronsFundMatchedFundingCurveCoefficients(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients.serializeBinaryToWriter + ); + } + f = message.getMinimumIcpXdrRate(); + if (f != null) { + writer.writeMessage( + 3, + f, + nervous_system_pb.Percentage.serializeBinaryToWriter + ); + } + f = message.getMaximumIcpXdrRate(); + if (f != null) { + writer.writeMessage( + 4, + f, + nervous_system_pb.Percentage.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_nervous_system.pb.v1.Decimal max_theoretical_neurons_fund_participation_amount_xdr = 1; + * @return {?proto.ic_nervous_system.pb.v1.Decimal} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.prototype.getMaxTheoreticalNeuronsFundParticipationAmountXdr = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Decimal} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Decimal, 1)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Decimal|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundEconomics} returns this +*/ +proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.prototype.setMaxTheoreticalNeuronsFundParticipationAmountXdr = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundEconomics} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.prototype.clearMaxTheoreticalNeuronsFundParticipationAmountXdr = function() { + return this.setMaxTheoreticalNeuronsFundParticipationAmountXdr(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.prototype.hasMaxTheoreticalNeuronsFundParticipationAmountXdr = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional NeuronsFundMatchedFundingCurveCoefficients neurons_fund_matched_funding_curve_coefficients = 2; + * @return {?proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.prototype.getNeuronsFundMatchedFundingCurveCoefficients = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients, 2)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.NeuronsFundMatchedFundingCurveCoefficients|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundEconomics} returns this +*/ +proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.prototype.setNeuronsFundMatchedFundingCurveCoefficients = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundEconomics} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.prototype.clearNeuronsFundMatchedFundingCurveCoefficients = function() { + return this.setNeuronsFundMatchedFundingCurveCoefficients(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.prototype.hasNeuronsFundMatchedFundingCurveCoefficients = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Percentage minimum_icp_xdr_rate = 3; + * @return {?proto.ic_nervous_system.pb.v1.Percentage} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.prototype.getMinimumIcpXdrRate = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Percentage} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Percentage, 3)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Percentage|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundEconomics} returns this +*/ +proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.prototype.setMinimumIcpXdrRate = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundEconomics} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.prototype.clearMinimumIcpXdrRate = function() { + return this.setMinimumIcpXdrRate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.prototype.hasMinimumIcpXdrRate = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Percentage maximum_icp_xdr_rate = 4; + * @return {?proto.ic_nervous_system.pb.v1.Percentage} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.prototype.getMaximumIcpXdrRate = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Percentage} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Percentage, 4)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Percentage|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundEconomics} returns this +*/ +proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.prototype.setMaximumIcpXdrRate = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.NeuronsFundEconomics} returns this + */ +proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.prototype.clearMaximumIcpXdrRate = function() { + return this.setMaximumIcpXdrRate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.NeuronsFundEconomics.prototype.hasMaximumIcpXdrRate = function() { + return jspb.Message.getField(this, 4) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_nns_governance.pb.v1.RewardEvent.repeatedFields_ = [3]; + + + +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.ic_nns_governance.pb.v1.RewardEvent.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.RewardEvent.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.ic_nns_governance.pb.v1.RewardEvent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.RewardEvent.toObject = function(includeInstance, msg) { + var f, obj = { + dayAfterGenesis: jspb.Message.getFieldWithDefault(msg, 1, 0), + actualTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 2, 0), + settledProposalsList: jspb.Message.toObjectList(msg.getSettledProposalsList(), + nns_common_pb.ProposalId.toObject, includeInstance), + distributedE8sEquivalent: jspb.Message.getFieldWithDefault(msg, 4, 0), + totalAvailableE8sEquivalent: jspb.Message.getFieldWithDefault(msg, 5, 0), + latestRoundAvailableE8sEquivalent: jspb.Message.getFieldWithDefault(msg, 7, 0), + roundsSinceLastDistribution: jspb.Message.getFieldWithDefault(msg, 6, 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.ic_nns_governance.pb.v1.RewardEvent} + */ +proto.ic_nns_governance.pb.v1.RewardEvent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.RewardEvent; + return proto.ic_nns_governance.pb.v1.RewardEvent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.RewardEvent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.RewardEvent} + */ +proto.ic_nns_governance.pb.v1.RewardEvent.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDayAfterGenesis(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setActualTimestampSeconds(value); + break; + case 3: + var value = new nns_common_pb.ProposalId; + reader.readMessage(value,nns_common_pb.ProposalId.deserializeBinaryFromReader); + msg.addSettledProposals(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDistributedE8sEquivalent(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalAvailableE8sEquivalent(value); + break; + case 7: + var value = /** @type {number} */ (reader.readUint64()); + msg.setLatestRoundAvailableE8sEquivalent(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setRoundsSinceLastDistribution(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.RewardEvent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.RewardEvent.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.RewardEvent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.RewardEvent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDayAfterGenesis(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getActualTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getSettledProposalsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + nns_common_pb.ProposalId.serializeBinaryToWriter + ); + } + f = message.getDistributedE8sEquivalent(); + if (f !== 0) { + writer.writeUint64( + 4, + f + ); + } + f = message.getTotalAvailableE8sEquivalent(); + if (f !== 0) { + writer.writeUint64( + 5, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeUint64( + 7, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeUint64( + 6, + f + ); + } +}; + + +/** + * optional uint64 day_after_genesis = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.RewardEvent.prototype.getDayAfterGenesis = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.RewardEvent} returns this + */ +proto.ic_nns_governance.pb.v1.RewardEvent.prototype.setDayAfterGenesis = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint64 actual_timestamp_seconds = 2; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.RewardEvent.prototype.getActualTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.RewardEvent} returns this + */ +proto.ic_nns_governance.pb.v1.RewardEvent.prototype.setActualTimestampSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * repeated ic_nns_common.pb.v1.ProposalId settled_proposals = 3; + * @return {!Array} + */ +proto.ic_nns_governance.pb.v1.RewardEvent.prototype.getSettledProposalsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, nns_common_pb.ProposalId, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.RewardEvent} returns this +*/ +proto.ic_nns_governance.pb.v1.RewardEvent.prototype.setSettledProposalsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.ic_nns_common.pb.v1.ProposalId=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_nns_common.pb.v1.ProposalId} + */ +proto.ic_nns_governance.pb.v1.RewardEvent.prototype.addSettledProposals = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ic_nns_common.pb.v1.ProposalId, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.RewardEvent} returns this + */ +proto.ic_nns_governance.pb.v1.RewardEvent.prototype.clearSettledProposalsList = function() { + return this.setSettledProposalsList([]); +}; + + +/** + * optional uint64 distributed_e8s_equivalent = 4; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.RewardEvent.prototype.getDistributedE8sEquivalent = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.RewardEvent} returns this + */ +proto.ic_nns_governance.pb.v1.RewardEvent.prototype.setDistributedE8sEquivalent = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional uint64 total_available_e8s_equivalent = 5; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.RewardEvent.prototype.getTotalAvailableE8sEquivalent = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.RewardEvent} returns this + */ +proto.ic_nns_governance.pb.v1.RewardEvent.prototype.setTotalAvailableE8sEquivalent = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); +}; + + +/** + * optional uint64 latest_round_available_e8s_equivalent = 7; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.RewardEvent.prototype.getLatestRoundAvailableE8sEquivalent = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.RewardEvent} returns this + */ +proto.ic_nns_governance.pb.v1.RewardEvent.prototype.setLatestRoundAvailableE8sEquivalent = function(value) { + return jspb.Message.setField(this, 7, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.RewardEvent} returns this + */ +proto.ic_nns_governance.pb.v1.RewardEvent.prototype.clearLatestRoundAvailableE8sEquivalent = function() { + return jspb.Message.setField(this, 7, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.RewardEvent.prototype.hasLatestRoundAvailableE8sEquivalent = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional uint64 rounds_since_last_distribution = 6; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.RewardEvent.prototype.getRoundsSinceLastDistribution = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.RewardEvent} returns this + */ +proto.ic_nns_governance.pb.v1.RewardEvent.prototype.setRoundsSinceLastDistribution = function(value) { + return jspb.Message.setField(this, 6, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.RewardEvent} returns this + */ +proto.ic_nns_governance.pb.v1.RewardEvent.prototype.clearRoundsSinceLastDistribution = function() { + return jspb.Message.setField(this, 6, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.RewardEvent.prototype.hasRoundsSinceLastDistribution = function() { + return jspb.Message.getField(this, 6) != 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.ic_nns_governance.pb.v1.KnownNeuron.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.KnownNeuron.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.ic_nns_governance.pb.v1.KnownNeuron} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.KnownNeuron.toObject = function(includeInstance, msg) { + var f, obj = { + id: (f = msg.getId()) && nns_common_pb.NeuronId.toObject(includeInstance, f), + knownNeuronData: (f = msg.getKnownNeuronData()) && proto.ic_nns_governance.pb.v1.KnownNeuronData.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.ic_nns_governance.pb.v1.KnownNeuron} + */ +proto.ic_nns_governance.pb.v1.KnownNeuron.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.KnownNeuron; + return proto.ic_nns_governance.pb.v1.KnownNeuron.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.KnownNeuron} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.KnownNeuron} + */ +proto.ic_nns_governance.pb.v1.KnownNeuron.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nns_common_pb.NeuronId; + reader.readMessage(value,nns_common_pb.NeuronId.deserializeBinaryFromReader); + msg.setId(value); + break; + case 2: + var value = new proto.ic_nns_governance.pb.v1.KnownNeuronData; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.KnownNeuronData.deserializeBinaryFromReader); + msg.setKnownNeuronData(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.KnownNeuron.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.KnownNeuron.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.KnownNeuron} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.KnownNeuron.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f != null) { + writer.writeMessage( + 1, + f, + nns_common_pb.NeuronId.serializeBinaryToWriter + ); + } + f = message.getKnownNeuronData(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_nns_governance.pb.v1.KnownNeuronData.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_nns_common.pb.v1.NeuronId id = 1; + * @return {?proto.ic_nns_common.pb.v1.NeuronId} + */ +proto.ic_nns_governance.pb.v1.KnownNeuron.prototype.getId = function() { + return /** @type{?proto.ic_nns_common.pb.v1.NeuronId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.NeuronId, 1)); +}; + + +/** + * @param {?proto.ic_nns_common.pb.v1.NeuronId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.KnownNeuron} returns this +*/ +proto.ic_nns_governance.pb.v1.KnownNeuron.prototype.setId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.KnownNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.KnownNeuron.prototype.clearId = function() { + return this.setId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.KnownNeuron.prototype.hasId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional KnownNeuronData known_neuron_data = 2; + * @return {?proto.ic_nns_governance.pb.v1.KnownNeuronData} + */ +proto.ic_nns_governance.pb.v1.KnownNeuron.prototype.getKnownNeuronData = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.KnownNeuronData} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.KnownNeuronData, 2)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.KnownNeuronData|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.KnownNeuron} returns this +*/ +proto.ic_nns_governance.pb.v1.KnownNeuron.prototype.setKnownNeuronData = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.KnownNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.KnownNeuron.prototype.clearKnownNeuronData = function() { + return this.setKnownNeuronData(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.KnownNeuron.prototype.hasKnownNeuronData = function() { + return jspb.Message.getField(this, 2) != 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.ic_nns_governance.pb.v1.KnownNeuronData.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.KnownNeuronData.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.ic_nns_governance.pb.v1.KnownNeuronData} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.KnownNeuronData.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + description: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_nns_governance.pb.v1.KnownNeuronData} + */ +proto.ic_nns_governance.pb.v1.KnownNeuronData.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.KnownNeuronData; + return proto.ic_nns_governance.pb.v1.KnownNeuronData.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.KnownNeuronData} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.KnownNeuronData} + */ +proto.ic_nns_governance.pb.v1.KnownNeuronData.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.setName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.KnownNeuronData.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.KnownNeuronData.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.KnownNeuronData} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.KnownNeuronData.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.ic_nns_governance.pb.v1.KnownNeuronData.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ic_nns_governance.pb.v1.KnownNeuronData} returns this + */ +proto.ic_nns_governance.pb.v1.KnownNeuronData.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string description = 2; + * @return {string} + */ +proto.ic_nns_governance.pb.v1.KnownNeuronData.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ic_nns_governance.pb.v1.KnownNeuronData} returns this + */ +proto.ic_nns_governance.pb.v1.KnownNeuronData.prototype.setDescription = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.KnownNeuronData} returns this + */ +proto.ic_nns_governance.pb.v1.KnownNeuronData.prototype.clearDescription = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.KnownNeuronData.prototype.hasDescription = function() { + return jspb.Message.getField(this, 2) != 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.ic_nns_governance.pb.v1.OpenSnsTokenSwap.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.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.ic_nns_governance.pb.v1.OpenSnsTokenSwap} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.toObject = function(includeInstance, msg) { + var f, obj = { + targetSwapCanisterId: (f = msg.getTargetSwapCanisterId()) && base_types_pb.PrincipalId.toObject(includeInstance, f), + params: (f = msg.getParams()) && swap_pb.Params.toObject(includeInstance, f), + communityFundInvestmentE8s: jspb.Message.getFieldWithDefault(msg, 3, 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.ic_nns_governance.pb.v1.OpenSnsTokenSwap} + */ +proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap; + return proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap} + */ +proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setTargetSwapCanisterId(value); + break; + case 2: + var value = new swap_pb.Params; + reader.readMessage(value,swap_pb.Params.deserializeBinaryFromReader); + msg.setParams(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCommunityFundInvestmentE8s(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTargetSwapCanisterId(); + if (f != null) { + writer.writeMessage( + 1, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = message.getParams(); + if (f != null) { + writer.writeMessage( + 2, + f, + swap_pb.Params.serializeBinaryToWriter + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeUint64( + 3, + f + ); + } +}; + + +/** + * optional ic_base_types.pb.v1.PrincipalId target_swap_canister_id = 1; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.prototype.getTargetSwapCanisterId = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 1)); +}; + + +/** + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap} returns this +*/ +proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.prototype.setTargetSwapCanisterId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap} returns this + */ +proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.prototype.clearTargetSwapCanisterId = function() { + return this.setTargetSwapCanisterId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.prototype.hasTargetSwapCanisterId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ic_sns_swap.pb.v1.Params params = 2; + * @return {?proto.ic_sns_swap.pb.v1.Params} + */ +proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.prototype.getParams = function() { + return /** @type{?proto.ic_sns_swap.pb.v1.Params} */ ( + jspb.Message.getWrapperField(this, swap_pb.Params, 2)); +}; + + +/** + * @param {?proto.ic_sns_swap.pb.v1.Params|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap} returns this +*/ +proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.prototype.setParams = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap} returns this + */ +proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.prototype.clearParams = function() { + return this.setParams(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.prototype.hasParams = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional uint64 community_fund_investment_e8s = 3; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.prototype.getCommunityFundInvestmentE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap} returns this + */ +proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.prototype.setCommunityFundInvestmentE8s = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap} returns this + */ +proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.prototype.clearCommunityFundInvestmentE8s = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.OpenSnsTokenSwap.prototype.hasCommunityFundInvestmentE8s = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.repeatedFields_ = [5,6]; + + + +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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.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.ic_nns_governance.pb.v1.CreateServiceNervousSystem} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + description: jspb.Message.getFieldWithDefault(msg, 2, ""), + url: jspb.Message.getFieldWithDefault(msg, 3, ""), + logo: (f = msg.getLogo()) && nervous_system_pb.Image.toObject(includeInstance, f), + fallbackControllerPrincipalIdsList: jspb.Message.toObjectList(msg.getFallbackControllerPrincipalIdsList(), + base_types_pb.PrincipalId.toObject, includeInstance), + dappCanistersList: jspb.Message.toObjectList(msg.getDappCanistersList(), + nervous_system_pb.Canister.toObject, includeInstance), + initialTokenDistribution: (f = msg.getInitialTokenDistribution()) && proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.toObject(includeInstance, f), + swapParameters: (f = msg.getSwapParameters()) && proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.toObject(includeInstance, f), + ledgerParameters: (f = msg.getLedgerParameters()) && proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.toObject(includeInstance, f), + governanceParameters: (f = msg.getGovernanceParameters()) && proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.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.ic_nns_governance.pb.v1.CreateServiceNervousSystem} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem; + return proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.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.setName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setUrl(value); + break; + case 4: + var value = new nervous_system_pb.Image; + reader.readMessage(value,nervous_system_pb.Image.deserializeBinaryFromReader); + msg.setLogo(value); + break; + case 5: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.addFallbackControllerPrincipalIds(value); + break; + case 6: + var value = new nervous_system_pb.Canister; + reader.readMessage(value,nervous_system_pb.Canister.deserializeBinaryFromReader); + msg.addDappCanisters(value); + break; + case 7: + var value = new proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.deserializeBinaryFromReader); + msg.setInitialTokenDistribution(value); + break; + case 8: + var value = new proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.deserializeBinaryFromReader); + msg.setSwapParameters(value); + break; + case 9: + var value = new proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.deserializeBinaryFromReader); + msg.setLedgerParameters(value); + break; + case 10: + var value = new proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.deserializeBinaryFromReader); + msg.setGovernanceParameters(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString( + 1, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString( + 3, + f + ); + } + f = message.getLogo(); + if (f != null) { + writer.writeMessage( + 4, + f, + nervous_system_pb.Image.serializeBinaryToWriter + ); + } + f = message.getFallbackControllerPrincipalIdsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 5, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = message.getDappCanistersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 6, + f, + nervous_system_pb.Canister.serializeBinaryToWriter + ); + } + f = message.getInitialTokenDistribution(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.serializeBinaryToWriter + ); + } + f = message.getSwapParameters(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.serializeBinaryToWriter + ); + } + f = message.getLedgerParameters(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.serializeBinaryToWriter + ); + } + f = message.getGovernanceParameters(); + if (f != null) { + writer.writeMessage( + 10, + f, + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.serializeBinaryToWriter + ); + } +}; + + + + + +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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.toObject = function(includeInstance, msg) { + var f, obj = { + developerDistribution: (f = msg.getDeveloperDistribution()) && proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.toObject(includeInstance, f), + treasuryDistribution: (f = msg.getTreasuryDistribution()) && proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution.toObject(includeInstance, f), + swapDistribution: (f = msg.getSwapDistribution()) && proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution.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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution; + return proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.deserializeBinaryFromReader); + msg.setDeveloperDistribution(value); + break; + case 2: + var value = new proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution.deserializeBinaryFromReader); + msg.setTreasuryDistribution(value); + break; + case 3: + var value = new proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution.deserializeBinaryFromReader); + msg.setSwapDistribution(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDeveloperDistribution(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.serializeBinaryToWriter + ); + } + f = message.getTreasuryDistribution(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution.serializeBinaryToWriter + ); + } + f = message.getSwapDistribution(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution.serializeBinaryToWriter + ); + } +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.toObject = function(includeInstance, msg) { + var f, obj = { + developerNeuronsList: jspb.Message.toObjectList(msg.getDeveloperNeuronsList(), + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution; + return proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.deserializeBinaryFromReader); + msg.addDeveloperNeurons(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDeveloperNeuronsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.serializeBinaryToWriter + ); + } +}; + + + + + +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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.toObject = function(includeInstance, msg) { + var f, obj = { + controller: (f = msg.getController()) && base_types_pb.PrincipalId.toObject(includeInstance, f), + dissolveDelay: (f = msg.getDissolveDelay()) && nervous_system_pb.Duration.toObject(includeInstance, f), + memo: jspb.Message.getFieldWithDefault(msg, 3, 0), + stake: (f = msg.getStake()) && nervous_system_pb.Tokens.toObject(includeInstance, f), + vestingPeriod: (f = msg.getVestingPeriod()) && nervous_system_pb.Duration.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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution; + return proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setController(value); + break; + case 2: + var value = new nervous_system_pb.Duration; + reader.readMessage(value,nervous_system_pb.Duration.deserializeBinaryFromReader); + msg.setDissolveDelay(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMemo(value); + break; + case 4: + var value = new nervous_system_pb.Tokens; + reader.readMessage(value,nervous_system_pb.Tokens.deserializeBinaryFromReader); + msg.setStake(value); + break; + case 5: + var value = new nervous_system_pb.Duration; + reader.readMessage(value,nervous_system_pb.Duration.deserializeBinaryFromReader); + msg.setVestingPeriod(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getController(); + if (f != null) { + writer.writeMessage( + 1, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = message.getDissolveDelay(); + if (f != null) { + writer.writeMessage( + 2, + f, + nervous_system_pb.Duration.serializeBinaryToWriter + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeUint64( + 3, + f + ); + } + f = message.getStake(); + if (f != null) { + writer.writeMessage( + 4, + f, + nervous_system_pb.Tokens.serializeBinaryToWriter + ); + } + f = message.getVestingPeriod(); + if (f != null) { + writer.writeMessage( + 5, + f, + nervous_system_pb.Duration.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_base_types.pb.v1.PrincipalId controller = 1; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.prototype.getController = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 1)); +}; + + +/** + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.prototype.setController = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.prototype.clearController = function() { + return this.setController(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.prototype.hasController = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Duration dissolve_delay = 2; + * @return {?proto.ic_nervous_system.pb.v1.Duration} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.prototype.getDissolveDelay = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Duration} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Duration, 2)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Duration|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.prototype.setDissolveDelay = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.prototype.clearDissolveDelay = function() { + return this.setDissolveDelay(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.prototype.hasDissolveDelay = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional uint64 memo = 3; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.prototype.getMemo = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.prototype.setMemo = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.prototype.clearMemo = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.prototype.hasMemo = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Tokens stake = 4; + * @return {?proto.ic_nervous_system.pb.v1.Tokens} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.prototype.getStake = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Tokens, 4)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Tokens|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.prototype.setStake = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.prototype.clearStake = function() { + return this.setStake(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.prototype.hasStake = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Duration vesting_period = 5; + * @return {?proto.ic_nervous_system.pb.v1.Duration} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.prototype.getVestingPeriod = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Duration} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Duration, 5)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Duration|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.prototype.setVestingPeriod = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.prototype.clearVestingPeriod = function() { + return this.setVestingPeriod(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution.prototype.hasVestingPeriod = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * repeated NeuronDistribution developer_neurons = 1; + * @return {!Array} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.prototype.getDeveloperNeuronsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.prototype.setDeveloperNeuronsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.prototype.addDeveloperNeurons = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.NeuronDistribution, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution.prototype.clearDeveloperNeuronsList = function() { + return this.setDeveloperNeuronsList([]); +}; + + + + + +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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution.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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution.toObject = function(includeInstance, msg) { + var f, obj = { + total: (f = msg.getTotal()) && nervous_system_pb.Tokens.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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution; + return proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nervous_system_pb.Tokens; + reader.readMessage(value,nervous_system_pb.Tokens.deserializeBinaryFromReader); + msg.setTotal(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTotal(); + if (f != null) { + writer.writeMessage( + 1, + f, + nervous_system_pb.Tokens.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_nervous_system.pb.v1.Tokens total = 1; + * @return {?proto.ic_nervous_system.pb.v1.Tokens} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution.prototype.getTotal = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Tokens, 1)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Tokens|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution.prototype.setTotal = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution.prototype.clearTotal = function() { + return this.setTotal(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution.prototype.hasTotal = 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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution.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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution.toObject = function(includeInstance, msg) { + var f, obj = { + total: (f = msg.getTotal()) && nervous_system_pb.Tokens.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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution; + return proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nervous_system_pb.Tokens; + reader.readMessage(value,nervous_system_pb.Tokens.deserializeBinaryFromReader); + msg.setTotal(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTotal(); + if (f != null) { + writer.writeMessage( + 1, + f, + nervous_system_pb.Tokens.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_nervous_system.pb.v1.Tokens total = 1; + * @return {?proto.ic_nervous_system.pb.v1.Tokens} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution.prototype.getTotal = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Tokens, 1)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Tokens|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution.prototype.setTotal = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution.prototype.clearTotal = function() { + return this.setTotal(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution.prototype.hasTotal = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional DeveloperDistribution developer_distribution = 1; + * @return {?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.prototype.getDeveloperDistribution = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution, 1)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.DeveloperDistribution|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.prototype.setDeveloperDistribution = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.prototype.clearDeveloperDistribution = function() { + return this.setDeveloperDistribution(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.prototype.hasDeveloperDistribution = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional TreasuryDistribution treasury_distribution = 2; + * @return {?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.prototype.getTreasuryDistribution = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution, 2)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.TreasuryDistribution|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.prototype.setTreasuryDistribution = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.prototype.clearTreasuryDistribution = function() { + return this.setTreasuryDistribution(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.prototype.hasTreasuryDistribution = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional SwapDistribution swap_distribution = 3; + * @return {?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.prototype.getSwapDistribution = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution, 3)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.SwapDistribution|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.prototype.setSwapDistribution = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.prototype.clearSwapDistribution = function() { + return this.setSwapDistribution(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution.prototype.hasSwapDistribution = function() { + return jspb.Message.getField(this, 3) != 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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.toObject = function(includeInstance, msg) { + var f, obj = { + minimumParticipants: jspb.Message.getFieldWithDefault(msg, 1, 0), + minimumIcp: (f = msg.getMinimumIcp()) && nervous_system_pb.Tokens.toObject(includeInstance, f), + maximumIcp: (f = msg.getMaximumIcp()) && nervous_system_pb.Tokens.toObject(includeInstance, f), + minimumDirectParticipationIcp: (f = msg.getMinimumDirectParticipationIcp()) && nervous_system_pb.Tokens.toObject(includeInstance, f), + maximumDirectParticipationIcp: (f = msg.getMaximumDirectParticipationIcp()) && nervous_system_pb.Tokens.toObject(includeInstance, f), + minimumParticipantIcp: (f = msg.getMinimumParticipantIcp()) && nervous_system_pb.Tokens.toObject(includeInstance, f), + maximumParticipantIcp: (f = msg.getMaximumParticipantIcp()) && nervous_system_pb.Tokens.toObject(includeInstance, f), + neuronBasketConstructionParameters: (f = msg.getNeuronBasketConstructionParameters()) && proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters.toObject(includeInstance, f), + confirmationText: jspb.Message.getFieldWithDefault(msg, 7, ""), + restrictedCountries: (f = msg.getRestrictedCountries()) && nervous_system_pb.Countries.toObject(includeInstance, f), + startTime: (f = msg.getStartTime()) && nervous_system_pb.GlobalTimeOfDay.toObject(includeInstance, f), + duration: (f = msg.getDuration()) && nervous_system_pb.Duration.toObject(includeInstance, f), + neuronsFundInvestmentIcp: (f = msg.getNeuronsFundInvestmentIcp()) && nervous_system_pb.Tokens.toObject(includeInstance, f), + neuronsFundParticipation: jspb.Message.getBooleanFieldWithDefault(msg, 14, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters; + return proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMinimumParticipants(value); + break; + case 2: + var value = new nervous_system_pb.Tokens; + reader.readMessage(value,nervous_system_pb.Tokens.deserializeBinaryFromReader); + msg.setMinimumIcp(value); + break; + case 3: + var value = new nervous_system_pb.Tokens; + reader.readMessage(value,nervous_system_pb.Tokens.deserializeBinaryFromReader); + msg.setMaximumIcp(value); + break; + case 12: + var value = new nervous_system_pb.Tokens; + reader.readMessage(value,nervous_system_pb.Tokens.deserializeBinaryFromReader); + msg.setMinimumDirectParticipationIcp(value); + break; + case 13: + var value = new nervous_system_pb.Tokens; + reader.readMessage(value,nervous_system_pb.Tokens.deserializeBinaryFromReader); + msg.setMaximumDirectParticipationIcp(value); + break; + case 4: + var value = new nervous_system_pb.Tokens; + reader.readMessage(value,nervous_system_pb.Tokens.deserializeBinaryFromReader); + msg.setMinimumParticipantIcp(value); + break; + case 5: + var value = new nervous_system_pb.Tokens; + reader.readMessage(value,nervous_system_pb.Tokens.deserializeBinaryFromReader); + msg.setMaximumParticipantIcp(value); + break; + case 6: + var value = new proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters.deserializeBinaryFromReader); + msg.setNeuronBasketConstructionParameters(value); + break; + case 7: + var value = /** @type {string} */ (reader.readString()); + msg.setConfirmationText(value); + break; + case 8: + var value = new nervous_system_pb.Countries; + reader.readMessage(value,nervous_system_pb.Countries.deserializeBinaryFromReader); + msg.setRestrictedCountries(value); + break; + case 9: + var value = new nervous_system_pb.GlobalTimeOfDay; + reader.readMessage(value,nervous_system_pb.GlobalTimeOfDay.deserializeBinaryFromReader); + msg.setStartTime(value); + break; + case 10: + var value = new nervous_system_pb.Duration; + reader.readMessage(value,nervous_system_pb.Duration.deserializeBinaryFromReader); + msg.setDuration(value); + break; + case 11: + var value = new nervous_system_pb.Tokens; + reader.readMessage(value,nervous_system_pb.Tokens.deserializeBinaryFromReader); + msg.setNeuronsFundInvestmentIcp(value); + break; + case 14: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setNeuronsFundParticipation(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {number} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeUint64( + 1, + f + ); + } + f = message.getMinimumIcp(); + if (f != null) { + writer.writeMessage( + 2, + f, + nervous_system_pb.Tokens.serializeBinaryToWriter + ); + } + f = message.getMaximumIcp(); + if (f != null) { + writer.writeMessage( + 3, + f, + nervous_system_pb.Tokens.serializeBinaryToWriter + ); + } + f = message.getMinimumDirectParticipationIcp(); + if (f != null) { + writer.writeMessage( + 12, + f, + nervous_system_pb.Tokens.serializeBinaryToWriter + ); + } + f = message.getMaximumDirectParticipationIcp(); + if (f != null) { + writer.writeMessage( + 13, + f, + nervous_system_pb.Tokens.serializeBinaryToWriter + ); + } + f = message.getMinimumParticipantIcp(); + if (f != null) { + writer.writeMessage( + 4, + f, + nervous_system_pb.Tokens.serializeBinaryToWriter + ); + } + f = message.getMaximumParticipantIcp(); + if (f != null) { + writer.writeMessage( + 5, + f, + nervous_system_pb.Tokens.serializeBinaryToWriter + ); + } + f = message.getNeuronBasketConstructionParameters(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters.serializeBinaryToWriter + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeString( + 7, + f + ); + } + f = message.getRestrictedCountries(); + if (f != null) { + writer.writeMessage( + 8, + f, + nervous_system_pb.Countries.serializeBinaryToWriter + ); + } + f = message.getStartTime(); + if (f != null) { + writer.writeMessage( + 9, + f, + nervous_system_pb.GlobalTimeOfDay.serializeBinaryToWriter + ); + } + f = message.getDuration(); + if (f != null) { + writer.writeMessage( + 10, + f, + nervous_system_pb.Duration.serializeBinaryToWriter + ); + } + f = message.getNeuronsFundInvestmentIcp(); + if (f != null) { + writer.writeMessage( + 11, + f, + nervous_system_pb.Tokens.serializeBinaryToWriter + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 14)); + if (f != null) { + writer.writeBool( + 14, + f + ); + } +}; + + + + + +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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters.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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters.toObject = function(includeInstance, msg) { + var f, obj = { + count: jspb.Message.getFieldWithDefault(msg, 1, 0), + dissolveDelayInterval: (f = msg.getDissolveDelayInterval()) && nervous_system_pb.Duration.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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters; + return proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCount(value); + break; + case 2: + var value = new nervous_system_pb.Duration; + reader.readMessage(value,nervous_system_pb.Duration.deserializeBinaryFromReader); + msg.setDissolveDelayInterval(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {number} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeUint64( + 1, + f + ); + } + f = message.getDissolveDelayInterval(); + if (f != null) { + writer.writeMessage( + 2, + f, + nervous_system_pb.Duration.serializeBinaryToWriter + ); + } +}; + + +/** + * optional uint64 count = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters.prototype.getCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters.prototype.setCount = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters.prototype.clearCount = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters.prototype.hasCount = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Duration dissolve_delay_interval = 2; + * @return {?proto.ic_nervous_system.pb.v1.Duration} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters.prototype.getDissolveDelayInterval = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Duration} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Duration, 2)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Duration|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters.prototype.setDissolveDelayInterval = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters.prototype.clearDissolveDelayInterval = function() { + return this.setDissolveDelayInterval(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters.prototype.hasDissolveDelayInterval = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional uint64 minimum_participants = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.getMinimumParticipants = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.setMinimumParticipants = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.clearMinimumParticipants = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.hasMinimumParticipants = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Tokens minimum_icp = 2; + * @return {?proto.ic_nervous_system.pb.v1.Tokens} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.getMinimumIcp = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Tokens, 2)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Tokens|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.setMinimumIcp = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.clearMinimumIcp = function() { + return this.setMinimumIcp(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.hasMinimumIcp = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Tokens maximum_icp = 3; + * @return {?proto.ic_nervous_system.pb.v1.Tokens} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.getMaximumIcp = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Tokens, 3)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Tokens|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.setMaximumIcp = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.clearMaximumIcp = function() { + return this.setMaximumIcp(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.hasMaximumIcp = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Tokens minimum_direct_participation_icp = 12; + * @return {?proto.ic_nervous_system.pb.v1.Tokens} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.getMinimumDirectParticipationIcp = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Tokens, 12)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Tokens|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.setMinimumDirectParticipationIcp = function(value) { + return jspb.Message.setWrapperField(this, 12, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.clearMinimumDirectParticipationIcp = function() { + return this.setMinimumDirectParticipationIcp(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.hasMinimumDirectParticipationIcp = function() { + return jspb.Message.getField(this, 12) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Tokens maximum_direct_participation_icp = 13; + * @return {?proto.ic_nervous_system.pb.v1.Tokens} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.getMaximumDirectParticipationIcp = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Tokens, 13)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Tokens|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.setMaximumDirectParticipationIcp = function(value) { + return jspb.Message.setWrapperField(this, 13, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.clearMaximumDirectParticipationIcp = function() { + return this.setMaximumDirectParticipationIcp(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.hasMaximumDirectParticipationIcp = function() { + return jspb.Message.getField(this, 13) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Tokens minimum_participant_icp = 4; + * @return {?proto.ic_nervous_system.pb.v1.Tokens} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.getMinimumParticipantIcp = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Tokens, 4)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Tokens|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.setMinimumParticipantIcp = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.clearMinimumParticipantIcp = function() { + return this.setMinimumParticipantIcp(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.hasMinimumParticipantIcp = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Tokens maximum_participant_icp = 5; + * @return {?proto.ic_nervous_system.pb.v1.Tokens} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.getMaximumParticipantIcp = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Tokens, 5)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Tokens|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.setMaximumParticipantIcp = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.clearMaximumParticipantIcp = function() { + return this.setMaximumParticipantIcp(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.hasMaximumParticipantIcp = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional NeuronBasketConstructionParameters neuron_basket_construction_parameters = 6; + * @return {?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.getNeuronBasketConstructionParameters = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters, 6)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.NeuronBasketConstructionParameters|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.setNeuronBasketConstructionParameters = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.clearNeuronBasketConstructionParameters = function() { + return this.setNeuronBasketConstructionParameters(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.hasNeuronBasketConstructionParameters = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional string confirmation_text = 7; + * @return {string} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.getConfirmationText = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.setConfirmationText = function(value) { + return jspb.Message.setField(this, 7, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.clearConfirmationText = function() { + return jspb.Message.setField(this, 7, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.hasConfirmationText = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Countries restricted_countries = 8; + * @return {?proto.ic_nervous_system.pb.v1.Countries} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.getRestrictedCountries = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Countries} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Countries, 8)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Countries|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.setRestrictedCountries = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.clearRestrictedCountries = function() { + return this.setRestrictedCountries(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.hasRestrictedCountries = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.GlobalTimeOfDay start_time = 9; + * @return {?proto.ic_nervous_system.pb.v1.GlobalTimeOfDay} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.getStartTime = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.GlobalTimeOfDay} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.GlobalTimeOfDay, 9)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.GlobalTimeOfDay|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.setStartTime = function(value) { + return jspb.Message.setWrapperField(this, 9, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.clearStartTime = function() { + return this.setStartTime(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.hasStartTime = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Duration duration = 10; + * @return {?proto.ic_nervous_system.pb.v1.Duration} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.getDuration = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Duration} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Duration, 10)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Duration|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.setDuration = function(value) { + return jspb.Message.setWrapperField(this, 10, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.clearDuration = function() { + return this.setDuration(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.hasDuration = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Tokens neurons_fund_investment_icp = 11; + * @return {?proto.ic_nervous_system.pb.v1.Tokens} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.getNeuronsFundInvestmentIcp = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Tokens, 11)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Tokens|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.setNeuronsFundInvestmentIcp = function(value) { + return jspb.Message.setWrapperField(this, 11, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.clearNeuronsFundInvestmentIcp = function() { + return this.setNeuronsFundInvestmentIcp(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.hasNeuronsFundInvestmentIcp = function() { + return jspb.Message.getField(this, 11) != null; +}; + + +/** + * optional bool neurons_fund_participation = 14; + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.getNeuronsFundParticipation = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.setNeuronsFundParticipation = function(value) { + return jspb.Message.setField(this, 14, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.clearNeuronsFundParticipation = function() { + return jspb.Message.setField(this, 14, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters.prototype.hasNeuronsFundParticipation = function() { + return jspb.Message.getField(this, 14) != 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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.toObject = function(includeInstance, msg) { + var f, obj = { + transactionFee: (f = msg.getTransactionFee()) && nervous_system_pb.Tokens.toObject(includeInstance, f), + tokenName: jspb.Message.getFieldWithDefault(msg, 2, ""), + tokenSymbol: jspb.Message.getFieldWithDefault(msg, 3, ""), + tokenLogo: (f = msg.getTokenLogo()) && nervous_system_pb.Image.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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters; + return proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nervous_system_pb.Tokens; + reader.readMessage(value,nervous_system_pb.Tokens.deserializeBinaryFromReader); + msg.setTransactionFee(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setTokenName(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setTokenSymbol(value); + break; + case 4: + var value = new nervous_system_pb.Image; + reader.readMessage(value,nervous_system_pb.Image.deserializeBinaryFromReader); + msg.setTokenLogo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTransactionFee(); + if (f != null) { + writer.writeMessage( + 1, + f, + nervous_system_pb.Tokens.serializeBinaryToWriter + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString( + 3, + f + ); + } + f = message.getTokenLogo(); + if (f != null) { + writer.writeMessage( + 4, + f, + nervous_system_pb.Image.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_nervous_system.pb.v1.Tokens transaction_fee = 1; + * @return {?proto.ic_nervous_system.pb.v1.Tokens} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.prototype.getTransactionFee = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Tokens, 1)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Tokens|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.prototype.setTransactionFee = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.prototype.clearTransactionFee = function() { + return this.setTransactionFee(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.prototype.hasTransactionFee = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string token_name = 2; + * @return {string} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.prototype.getTokenName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.prototype.setTokenName = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.prototype.clearTokenName = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.prototype.hasTokenName = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string token_symbol = 3; + * @return {string} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.prototype.getTokenSymbol = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.prototype.setTokenSymbol = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.prototype.clearTokenSymbol = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.prototype.hasTokenSymbol = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Image token_logo = 4; + * @return {?proto.ic_nervous_system.pb.v1.Image} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.prototype.getTokenLogo = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Image} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Image, 4)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Image|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.prototype.setTokenLogo = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.prototype.clearTokenLogo = function() { + return this.setTokenLogo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters.prototype.hasTokenLogo = function() { + return jspb.Message.getField(this, 4) != 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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.toObject = function(includeInstance, msg) { + var f, obj = { + proposalRejectionFee: (f = msg.getProposalRejectionFee()) && nervous_system_pb.Tokens.toObject(includeInstance, f), + proposalInitialVotingPeriod: (f = msg.getProposalInitialVotingPeriod()) && nervous_system_pb.Duration.toObject(includeInstance, f), + proposalWaitForQuietDeadlineIncrease: (f = msg.getProposalWaitForQuietDeadlineIncrease()) && nervous_system_pb.Duration.toObject(includeInstance, f), + neuronMinimumStake: (f = msg.getNeuronMinimumStake()) && nervous_system_pb.Tokens.toObject(includeInstance, f), + neuronMinimumDissolveDelayToVote: (f = msg.getNeuronMinimumDissolveDelayToVote()) && nervous_system_pb.Duration.toObject(includeInstance, f), + neuronMaximumDissolveDelay: (f = msg.getNeuronMaximumDissolveDelay()) && nervous_system_pb.Duration.toObject(includeInstance, f), + neuronMaximumDissolveDelayBonus: (f = msg.getNeuronMaximumDissolveDelayBonus()) && nervous_system_pb.Percentage.toObject(includeInstance, f), + neuronMaximumAgeForAgeBonus: (f = msg.getNeuronMaximumAgeForAgeBonus()) && nervous_system_pb.Duration.toObject(includeInstance, f), + neuronMaximumAgeBonus: (f = msg.getNeuronMaximumAgeBonus()) && nervous_system_pb.Percentage.toObject(includeInstance, f), + votingRewardParameters: (f = msg.getVotingRewardParameters()) && proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters; + return proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nervous_system_pb.Tokens; + reader.readMessage(value,nervous_system_pb.Tokens.deserializeBinaryFromReader); + msg.setProposalRejectionFee(value); + break; + case 2: + var value = new nervous_system_pb.Duration; + reader.readMessage(value,nervous_system_pb.Duration.deserializeBinaryFromReader); + msg.setProposalInitialVotingPeriod(value); + break; + case 3: + var value = new nervous_system_pb.Duration; + reader.readMessage(value,nervous_system_pb.Duration.deserializeBinaryFromReader); + msg.setProposalWaitForQuietDeadlineIncrease(value); + break; + case 4: + var value = new nervous_system_pb.Tokens; + reader.readMessage(value,nervous_system_pb.Tokens.deserializeBinaryFromReader); + msg.setNeuronMinimumStake(value); + break; + case 5: + var value = new nervous_system_pb.Duration; + reader.readMessage(value,nervous_system_pb.Duration.deserializeBinaryFromReader); + msg.setNeuronMinimumDissolveDelayToVote(value); + break; + case 6: + var value = new nervous_system_pb.Duration; + reader.readMessage(value,nervous_system_pb.Duration.deserializeBinaryFromReader); + msg.setNeuronMaximumDissolveDelay(value); + break; + case 7: + var value = new nervous_system_pb.Percentage; + reader.readMessage(value,nervous_system_pb.Percentage.deserializeBinaryFromReader); + msg.setNeuronMaximumDissolveDelayBonus(value); + break; + case 8: + var value = new nervous_system_pb.Duration; + reader.readMessage(value,nervous_system_pb.Duration.deserializeBinaryFromReader); + msg.setNeuronMaximumAgeForAgeBonus(value); + break; + case 9: + var value = new nervous_system_pb.Percentage; + reader.readMessage(value,nervous_system_pb.Percentage.deserializeBinaryFromReader); + msg.setNeuronMaximumAgeBonus(value); + break; + case 10: + var value = new proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.deserializeBinaryFromReader); + msg.setVotingRewardParameters(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProposalRejectionFee(); + if (f != null) { + writer.writeMessage( + 1, + f, + nervous_system_pb.Tokens.serializeBinaryToWriter + ); + } + f = message.getProposalInitialVotingPeriod(); + if (f != null) { + writer.writeMessage( + 2, + f, + nervous_system_pb.Duration.serializeBinaryToWriter + ); + } + f = message.getProposalWaitForQuietDeadlineIncrease(); + if (f != null) { + writer.writeMessage( + 3, + f, + nervous_system_pb.Duration.serializeBinaryToWriter + ); + } + f = message.getNeuronMinimumStake(); + if (f != null) { + writer.writeMessage( + 4, + f, + nervous_system_pb.Tokens.serializeBinaryToWriter + ); + } + f = message.getNeuronMinimumDissolveDelayToVote(); + if (f != null) { + writer.writeMessage( + 5, + f, + nervous_system_pb.Duration.serializeBinaryToWriter + ); + } + f = message.getNeuronMaximumDissolveDelay(); + if (f != null) { + writer.writeMessage( + 6, + f, + nervous_system_pb.Duration.serializeBinaryToWriter + ); + } + f = message.getNeuronMaximumDissolveDelayBonus(); + if (f != null) { + writer.writeMessage( + 7, + f, + nervous_system_pb.Percentage.serializeBinaryToWriter + ); + } + f = message.getNeuronMaximumAgeForAgeBonus(); + if (f != null) { + writer.writeMessage( + 8, + f, + nervous_system_pb.Duration.serializeBinaryToWriter + ); + } + f = message.getNeuronMaximumAgeBonus(); + if (f != null) { + writer.writeMessage( + 9, + f, + nervous_system_pb.Percentage.serializeBinaryToWriter + ); + } + f = message.getVotingRewardParameters(); + if (f != null) { + writer.writeMessage( + 10, + f, + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.serializeBinaryToWriter + ); + } +}; + + + + + +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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.toObject = function(includeInstance, msg) { + var f, obj = { + initialRewardRate: (f = msg.getInitialRewardRate()) && nervous_system_pb.Percentage.toObject(includeInstance, f), + finalRewardRate: (f = msg.getFinalRewardRate()) && nervous_system_pb.Percentage.toObject(includeInstance, f), + rewardRateTransitionDuration: (f = msg.getRewardRateTransitionDuration()) && nervous_system_pb.Duration.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.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters; + return proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new nervous_system_pb.Percentage; + reader.readMessage(value,nervous_system_pb.Percentage.deserializeBinaryFromReader); + msg.setInitialRewardRate(value); + break; + case 2: + var value = new nervous_system_pb.Percentage; + reader.readMessage(value,nervous_system_pb.Percentage.deserializeBinaryFromReader); + msg.setFinalRewardRate(value); + break; + case 3: + var value = new nervous_system_pb.Duration; + reader.readMessage(value,nervous_system_pb.Duration.deserializeBinaryFromReader); + msg.setRewardRateTransitionDuration(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getInitialRewardRate(); + if (f != null) { + writer.writeMessage( + 1, + f, + nervous_system_pb.Percentage.serializeBinaryToWriter + ); + } + f = message.getFinalRewardRate(); + if (f != null) { + writer.writeMessage( + 2, + f, + nervous_system_pb.Percentage.serializeBinaryToWriter + ); + } + f = message.getRewardRateTransitionDuration(); + if (f != null) { + writer.writeMessage( + 3, + f, + nervous_system_pb.Duration.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_nervous_system.pb.v1.Percentage initial_reward_rate = 1; + * @return {?proto.ic_nervous_system.pb.v1.Percentage} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.prototype.getInitialRewardRate = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Percentage} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Percentage, 1)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Percentage|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.prototype.setInitialRewardRate = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.prototype.clearInitialRewardRate = function() { + return this.setInitialRewardRate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.prototype.hasInitialRewardRate = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Percentage final_reward_rate = 2; + * @return {?proto.ic_nervous_system.pb.v1.Percentage} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.prototype.getFinalRewardRate = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Percentage} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Percentage, 2)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Percentage|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.prototype.setFinalRewardRate = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.prototype.clearFinalRewardRate = function() { + return this.setFinalRewardRate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.prototype.hasFinalRewardRate = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Duration reward_rate_transition_duration = 3; + * @return {?proto.ic_nervous_system.pb.v1.Duration} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.prototype.getRewardRateTransitionDuration = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Duration} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Duration, 3)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Duration|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.prototype.setRewardRateTransitionDuration = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.prototype.clearRewardRateTransitionDuration = function() { + return this.setRewardRateTransitionDuration(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters.prototype.hasRewardRateTransitionDuration = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Tokens proposal_rejection_fee = 1; + * @return {?proto.ic_nervous_system.pb.v1.Tokens} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.getProposalRejectionFee = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Tokens, 1)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Tokens|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.setProposalRejectionFee = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.clearProposalRejectionFee = function() { + return this.setProposalRejectionFee(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.hasProposalRejectionFee = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Duration proposal_initial_voting_period = 2; + * @return {?proto.ic_nervous_system.pb.v1.Duration} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.getProposalInitialVotingPeriod = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Duration} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Duration, 2)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Duration|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.setProposalInitialVotingPeriod = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.clearProposalInitialVotingPeriod = function() { + return this.setProposalInitialVotingPeriod(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.hasProposalInitialVotingPeriod = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Duration proposal_wait_for_quiet_deadline_increase = 3; + * @return {?proto.ic_nervous_system.pb.v1.Duration} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.getProposalWaitForQuietDeadlineIncrease = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Duration} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Duration, 3)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Duration|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.setProposalWaitForQuietDeadlineIncrease = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.clearProposalWaitForQuietDeadlineIncrease = function() { + return this.setProposalWaitForQuietDeadlineIncrease(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.hasProposalWaitForQuietDeadlineIncrease = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Tokens neuron_minimum_stake = 4; + * @return {?proto.ic_nervous_system.pb.v1.Tokens} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.getNeuronMinimumStake = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Tokens, 4)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Tokens|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.setNeuronMinimumStake = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.clearNeuronMinimumStake = function() { + return this.setNeuronMinimumStake(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.hasNeuronMinimumStake = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Duration neuron_minimum_dissolve_delay_to_vote = 5; + * @return {?proto.ic_nervous_system.pb.v1.Duration} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.getNeuronMinimumDissolveDelayToVote = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Duration} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Duration, 5)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Duration|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.setNeuronMinimumDissolveDelayToVote = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.clearNeuronMinimumDissolveDelayToVote = function() { + return this.setNeuronMinimumDissolveDelayToVote(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.hasNeuronMinimumDissolveDelayToVote = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Duration neuron_maximum_dissolve_delay = 6; + * @return {?proto.ic_nervous_system.pb.v1.Duration} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.getNeuronMaximumDissolveDelay = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Duration} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Duration, 6)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Duration|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.setNeuronMaximumDissolveDelay = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.clearNeuronMaximumDissolveDelay = function() { + return this.setNeuronMaximumDissolveDelay(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.hasNeuronMaximumDissolveDelay = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Percentage neuron_maximum_dissolve_delay_bonus = 7; + * @return {?proto.ic_nervous_system.pb.v1.Percentage} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.getNeuronMaximumDissolveDelayBonus = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Percentage} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Percentage, 7)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Percentage|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.setNeuronMaximumDissolveDelayBonus = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.clearNeuronMaximumDissolveDelayBonus = function() { + return this.setNeuronMaximumDissolveDelayBonus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.hasNeuronMaximumDissolveDelayBonus = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Duration neuron_maximum_age_for_age_bonus = 8; + * @return {?proto.ic_nervous_system.pb.v1.Duration} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.getNeuronMaximumAgeForAgeBonus = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Duration} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Duration, 8)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Duration|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.setNeuronMaximumAgeForAgeBonus = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.clearNeuronMaximumAgeForAgeBonus = function() { + return this.setNeuronMaximumAgeForAgeBonus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.hasNeuronMaximumAgeForAgeBonus = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Percentage neuron_maximum_age_bonus = 9; + * @return {?proto.ic_nervous_system.pb.v1.Percentage} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.getNeuronMaximumAgeBonus = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Percentage} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Percentage, 9)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Percentage|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.setNeuronMaximumAgeBonus = function(value) { + return jspb.Message.setWrapperField(this, 9, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.clearNeuronMaximumAgeBonus = function() { + return this.setNeuronMaximumAgeBonus(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.hasNeuronMaximumAgeBonus = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional VotingRewardParameters voting_reward_parameters = 10; + * @return {?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.getVotingRewardParameters = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters, 10)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.VotingRewardParameters|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.setVotingRewardParameters = function(value) { + return jspb.Message.setWrapperField(this, 10, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.clearVotingRewardParameters = function() { + return this.setVotingRewardParameters(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters.prototype.hasVotingRewardParameters = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.setName = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.clearName = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.hasName = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string description = 2; + * @return {string} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.setDescription = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.clearDescription = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.hasDescription = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string url = 3; + * @return {string} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.getUrl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.setUrl = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.clearUrl = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.hasUrl = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional ic_nervous_system.pb.v1.Image logo = 4; + * @return {?proto.ic_nervous_system.pb.v1.Image} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.getLogo = function() { + return /** @type{?proto.ic_nervous_system.pb.v1.Image} */ ( + jspb.Message.getWrapperField(this, nervous_system_pb.Image, 4)); +}; + + +/** + * @param {?proto.ic_nervous_system.pb.v1.Image|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.setLogo = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.clearLogo = function() { + return this.setLogo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.hasLogo = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * repeated ic_base_types.pb.v1.PrincipalId fallback_controller_principal_ids = 5; + * @return {!Array} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.getFallbackControllerPrincipalIdsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, base_types_pb.PrincipalId, 5)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.setFallbackControllerPrincipalIdsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 5, value); +}; + + +/** + * @param {!proto.ic_base_types.pb.v1.PrincipalId=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.addFallbackControllerPrincipalIds = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.ic_base_types.pb.v1.PrincipalId, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.clearFallbackControllerPrincipalIdsList = function() { + return this.setFallbackControllerPrincipalIdsList([]); +}; + + +/** + * repeated ic_nervous_system.pb.v1.Canister dapp_canisters = 6; + * @return {!Array} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.getDappCanistersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, nervous_system_pb.Canister, 6)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.setDappCanistersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 6, value); +}; + + +/** + * @param {!proto.ic_nervous_system.pb.v1.Canister=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_nervous_system.pb.v1.Canister} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.addDappCanisters = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.ic_nervous_system.pb.v1.Canister, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.clearDappCanistersList = function() { + return this.setDappCanistersList([]); +}; + + +/** + * optional InitialTokenDistribution initial_token_distribution = 7; + * @return {?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.getInitialTokenDistribution = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution, 7)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.InitialTokenDistribution|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.setInitialTokenDistribution = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.clearInitialTokenDistribution = function() { + return this.setInitialTokenDistribution(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.hasInitialTokenDistribution = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional SwapParameters swap_parameters = 8; + * @return {?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.getSwapParameters = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters, 8)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.SwapParameters|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.setSwapParameters = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.clearSwapParameters = function() { + return this.setSwapParameters(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.hasSwapParameters = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional LedgerParameters ledger_parameters = 9; + * @return {?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.getLedgerParameters = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters, 9)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.LedgerParameters|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.setLedgerParameters = function(value) { + return jspb.Message.setWrapperField(this, 9, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.clearLedgerParameters = function() { + return this.setLedgerParameters(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.hasLedgerParameters = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional GovernanceParameters governance_parameters = 10; + * @return {?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.getGovernanceParameters = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters, 10)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.GovernanceParameters|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} returns this +*/ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.setGovernanceParameters = function(value) { + return jspb.Message.setWrapperField(this, 10, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem} returns this + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.clearGovernanceParameters = function() { + return this.setGovernanceParameters(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.CreateServiceNervousSystem.prototype.hasGovernanceParameters = function() { + return jspb.Message.getField(this, 10) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_nns_governance.pb.v1.Governance.repeatedFields_ = [3,12]; + + + +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.ic_nns_governance.pb.v1.Governance.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.Governance.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.ic_nns_governance.pb.v1.Governance} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.Governance.toObject = function(includeInstance, msg) { + var f, obj = { + neuronsMap: (f = msg.getNeuronsMap()) ? f.toObject(includeInstance, proto.ic_nns_governance.pb.v1.Neuron.toObject) : [], + proposalsMap: (f = msg.getProposalsMap()) ? f.toObject(includeInstance, proto.ic_nns_governance.pb.v1.ProposalData.toObject) : [], + toClaimTransfersList: jspb.Message.toObjectList(msg.getToClaimTransfersList(), + proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.toObject, includeInstance), + waitForQuietThresholdSeconds: jspb.Message.getFieldWithDefault(msg, 5, 0), + economics: (f = msg.getEconomics()) && proto.ic_nns_governance.pb.v1.NetworkEconomics.toObject(includeInstance, f), + latestRewardEvent: (f = msg.getLatestRewardEvent()) && proto.ic_nns_governance.pb.v1.RewardEvent.toObject(includeInstance, f), + inFlightCommandsMap: (f = msg.getInFlightCommandsMap()) ? f.toObject(includeInstance, proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.toObject) : [], + genesisTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 11, 0), + nodeProvidersList: jspb.Message.toObjectList(msg.getNodeProvidersList(), + proto.ic_nns_governance.pb.v1.NodeProvider.toObject, includeInstance), + defaultFolloweesMap: (f = msg.getDefaultFolloweesMap()) ? f.toObject(includeInstance, proto.ic_nns_governance.pb.v1.Neuron.Followees.toObject) : [], + shortVotingPeriodSeconds: jspb.Message.getFieldWithDefault(msg, 14, 0), + neuronManagementVotingPeriodSeconds: jspb.Message.getFieldWithDefault(msg, 25, 0), + metrics: (f = msg.getMetrics()) && proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.toObject(includeInstance, f), + mostRecentMonthlyNodeProviderRewards: (f = msg.getMostRecentMonthlyNodeProviderRewards()) && proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards.toObject(includeInstance, f), + cachedDailyMaturityModulationBasisPoints: jspb.Message.getFieldWithDefault(msg, 17, 0), + maturityModulationLastUpdatedAtTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 18, 0), + spawningNeurons: jspb.Message.getBooleanFieldWithDefault(msg, 19, false), + makingSnsProposal: (f = msg.getMakingSnsProposal()) && proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.toObject(includeInstance, f), + migrations: (f = msg.getMigrations()) && proto.ic_nns_governance.pb.v1.Governance.Migrations.toObject(includeInstance, f), + topicFolloweeIndexMap: (f = msg.getTopicFolloweeIndexMap()) ? f.toObject(includeInstance, proto.ic_nns_governance.pb.v1.Governance.FollowersMap.toObject) : [], + xdrConversionRate: (f = msg.getXdrConversionRate()) && proto.ic_nns_governance.pb.v1.XdrConversionRate.toObject(includeInstance, f), + restoreAgingSummary: (f = msg.getRestoreAgingSummary()) && proto.ic_nns_governance.pb.v1.RestoreAgingSummary.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.ic_nns_governance.pb.v1.Governance} + */ +proto.ic_nns_governance.pb.v1.Governance.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.Governance; + return proto.ic_nns_governance.pb.v1.Governance.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.Governance} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.Governance} + */ +proto.ic_nns_governance.pb.v1.Governance.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = msg.getNeuronsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readFixed64, jspb.BinaryReader.prototype.readMessage, proto.ic_nns_governance.pb.v1.Neuron.deserializeBinaryFromReader, 0, new proto.ic_nns_governance.pb.v1.Neuron()); + }); + break; + case 2: + var value = msg.getProposalsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readMessage, proto.ic_nns_governance.pb.v1.ProposalData.deserializeBinaryFromReader, 0, new proto.ic_nns_governance.pb.v1.ProposalData()); + }); + break; + case 3: + var value = new proto.ic_nns_governance.pb.v1.NeuronStakeTransfer; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.deserializeBinaryFromReader); + msg.addToClaimTransfers(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setWaitForQuietThresholdSeconds(value); + break; + case 8: + var value = new proto.ic_nns_governance.pb.v1.NetworkEconomics; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NetworkEconomics.deserializeBinaryFromReader); + msg.setEconomics(value); + break; + case 9: + var value = new proto.ic_nns_governance.pb.v1.RewardEvent; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.RewardEvent.deserializeBinaryFromReader); + msg.setLatestRewardEvent(value); + break; + case 10: + var value = msg.getInFlightCommandsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readFixed64, jspb.BinaryReader.prototype.readMessage, proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.deserializeBinaryFromReader, 0, new proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand()); + }); + break; + case 11: + var value = /** @type {number} */ (reader.readUint64()); + msg.setGenesisTimestampSeconds(value); + break; + case 12: + var value = new proto.ic_nns_governance.pb.v1.NodeProvider; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NodeProvider.deserializeBinaryFromReader); + msg.addNodeProviders(value); + break; + case 13: + var value = msg.getDefaultFolloweesMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readInt32, jspb.BinaryReader.prototype.readMessage, proto.ic_nns_governance.pb.v1.Neuron.Followees.deserializeBinaryFromReader, 0, new proto.ic_nns_governance.pb.v1.Neuron.Followees()); + }); + break; + case 14: + var value = /** @type {number} */ (reader.readUint64()); + msg.setShortVotingPeriodSeconds(value); + break; + case 25: + var value = /** @type {number} */ (reader.readUint64()); + msg.setNeuronManagementVotingPeriodSeconds(value); + break; + case 15: + var value = new proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.deserializeBinaryFromReader); + msg.setMetrics(value); + break; + case 16: + var value = new proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards.deserializeBinaryFromReader); + msg.setMostRecentMonthlyNodeProviderRewards(value); + break; + case 17: + var value = /** @type {number} */ (reader.readInt32()); + msg.setCachedDailyMaturityModulationBasisPoints(value); + break; + case 18: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMaturityModulationLastUpdatedAtTimestampSeconds(value); + break; + case 19: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setSpawningNeurons(value); + break; + case 20: + var value = new proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.deserializeBinaryFromReader); + msg.setMakingSnsProposal(value); + break; + case 21: + var value = new proto.ic_nns_governance.pb.v1.Governance.Migrations; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.Governance.Migrations.deserializeBinaryFromReader); + msg.setMigrations(value); + break; + case 22: + var value = msg.getTopicFolloweeIndexMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readInt32, jspb.BinaryReader.prototype.readMessage, proto.ic_nns_governance.pb.v1.Governance.FollowersMap.deserializeBinaryFromReader, 0, new proto.ic_nns_governance.pb.v1.Governance.FollowersMap()); + }); + break; + case 26: + var value = new proto.ic_nns_governance.pb.v1.XdrConversionRate; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.XdrConversionRate.deserializeBinaryFromReader); + msg.setXdrConversionRate(value); + break; + case 27: + var value = new proto.ic_nns_governance.pb.v1.RestoreAgingSummary; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.RestoreAgingSummary.deserializeBinaryFromReader); + msg.setRestoreAgingSummary(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.Governance.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.Governance.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.Governance} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.Governance.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNeuronsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeFixed64, jspb.BinaryWriter.prototype.writeMessage, proto.ic_nns_governance.pb.v1.Neuron.serializeBinaryToWriter); + } + f = message.getProposalsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeUint64, jspb.BinaryWriter.prototype.writeMessage, proto.ic_nns_governance.pb.v1.ProposalData.serializeBinaryToWriter); + } + f = message.getToClaimTransfersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.serializeBinaryToWriter + ); + } + f = message.getWaitForQuietThresholdSeconds(); + if (f !== 0) { + writer.writeUint64( + 5, + f + ); + } + f = message.getEconomics(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto.ic_nns_governance.pb.v1.NetworkEconomics.serializeBinaryToWriter + ); + } + f = message.getLatestRewardEvent(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.ic_nns_governance.pb.v1.RewardEvent.serializeBinaryToWriter + ); + } + f = message.getInFlightCommandsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(10, writer, jspb.BinaryWriter.prototype.writeFixed64, jspb.BinaryWriter.prototype.writeMessage, proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.serializeBinaryToWriter); + } + f = message.getGenesisTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( + 11, + f + ); + } + f = message.getNodeProvidersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 12, + f, + proto.ic_nns_governance.pb.v1.NodeProvider.serializeBinaryToWriter + ); + } + f = message.getDefaultFolloweesMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(13, writer, jspb.BinaryWriter.prototype.writeInt32, jspb.BinaryWriter.prototype.writeMessage, proto.ic_nns_governance.pb.v1.Neuron.Followees.serializeBinaryToWriter); + } + f = message.getShortVotingPeriodSeconds(); + if (f !== 0) { + writer.writeUint64( + 14, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 25)); + if (f != null) { + writer.writeUint64( + 25, + f + ); + } + f = message.getMetrics(); + if (f != null) { + writer.writeMessage( + 15, + f, + proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.serializeBinaryToWriter + ); + } + f = message.getMostRecentMonthlyNodeProviderRewards(); + if (f != null) { + writer.writeMessage( + 16, + f, + proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards.serializeBinaryToWriter + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 17)); + if (f != null) { + writer.writeInt32( + 17, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 18)); + if (f != null) { + writer.writeUint64( + 18, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 19)); + if (f != null) { + writer.writeBool( + 19, + f + ); + } + f = message.getMakingSnsProposal(); + if (f != null) { + writer.writeMessage( + 20, + f, + proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.serializeBinaryToWriter + ); + } + f = message.getMigrations(); + if (f != null) { + writer.writeMessage( + 21, + f, + proto.ic_nns_governance.pb.v1.Governance.Migrations.serializeBinaryToWriter + ); + } + f = message.getTopicFolloweeIndexMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(22, writer, jspb.BinaryWriter.prototype.writeInt32, jspb.BinaryWriter.prototype.writeMessage, proto.ic_nns_governance.pb.v1.Governance.FollowersMap.serializeBinaryToWriter); + } + f = message.getXdrConversionRate(); + if (f != null) { + writer.writeMessage( + 26, + f, + proto.ic_nns_governance.pb.v1.XdrConversionRate.serializeBinaryToWriter + ); + } + f = message.getRestoreAgingSummary(); + if (f != null) { + writer.writeMessage( + 27, + f, + proto.ic_nns_governance.pb.v1.RestoreAgingSummary.serializeBinaryToWriter + ); + } +}; + + + +/** + * 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.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.oneofGroups_ = [[2,3,5,7,8,9,10,20,21]]; + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.CommandCase = { + COMMAND_NOT_SET: 0, + DISBURSE: 2, + SPLIT: 3, + DISBURSE_TO_NEURON: 5, + MERGE_MATURITY: 7, + CLAIM_OR_REFRESH_NEURON: 8, + CONFIGURE: 9, + MERGE: 10, + SPAWN: 20, + SYNC_COMMAND: 21 +}; + +/** + * @return {proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.CommandCase} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.getCommandCase = function() { + return /** @type {proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.CommandCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.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.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.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.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.toObject = function(includeInstance, msg) { + var f, obj = { + timestamp: jspb.Message.getFieldWithDefault(msg, 1, 0), + disburse: (f = msg.getDisburse()) && proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.toObject(includeInstance, f), + split: (f = msg.getSplit()) && proto.ic_nns_governance.pb.v1.ManageNeuron.Split.toObject(includeInstance, f), + disburseToNeuron: (f = msg.getDisburseToNeuron()) && proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.toObject(includeInstance, f), + mergeMaturity: (f = msg.getMergeMaturity()) && proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.toObject(includeInstance, f), + claimOrRefreshNeuron: (f = msg.getClaimOrRefreshNeuron()) && proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.toObject(includeInstance, f), + configure: (f = msg.getConfigure()) && proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.toObject(includeInstance, f), + merge: (f = msg.getMerge()) && proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.toObject(includeInstance, f), + spawn: (f = msg.getSpawn()) && nns_common_pb.NeuronId.toObject(includeInstance, f), + syncCommand: (f = msg.getSyncCommand()) && proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand.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.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand; + return proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTimestamp(value); + break; + case 2: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.deserializeBinaryFromReader); + msg.setDisburse(value); + break; + case 3: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.Split; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.Split.deserializeBinaryFromReader); + msg.setSplit(value); + break; + case 5: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.deserializeBinaryFromReader); + msg.setDisburseToNeuron(value); + break; + case 7: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.deserializeBinaryFromReader); + msg.setMergeMaturity(value); + break; + case 8: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.deserializeBinaryFromReader); + msg.setClaimOrRefreshNeuron(value); + break; + case 9: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.Configure; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.deserializeBinaryFromReader); + msg.setConfigure(value); + break; + case 10: + var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.Merge; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.deserializeBinaryFromReader); + msg.setMerge(value); + break; + case 20: + var value = new nns_common_pb.NeuronId; + reader.readMessage(value,nns_common_pb.NeuronId.deserializeBinaryFromReader); + msg.setSpawn(value); + break; + case 21: + var value = new proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand.deserializeBinaryFromReader); + msg.setSyncCommand(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTimestamp(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getDisburse(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.serializeBinaryToWriter + ); + } + f = message.getSplit(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.Split.serializeBinaryToWriter + ); + } + f = message.getDisburseToNeuron(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron.serializeBinaryToWriter + ); + } + f = message.getMergeMaturity(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.serializeBinaryToWriter + ); + } + f = message.getClaimOrRefreshNeuron(); + if (f != null) { + writer.writeMessage( + 8, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh.serializeBinaryToWriter + ); + } + f = message.getConfigure(); + if (f != null) { + writer.writeMessage( + 9, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.serializeBinaryToWriter + ); + } + f = message.getMerge(); + if (f != null) { + writer.writeMessage( + 10, + f, + proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.serializeBinaryToWriter + ); + } + f = message.getSpawn(); + if (f != null) { + writer.writeMessage( + 20, + f, + nns_common_pb.NeuronId.serializeBinaryToWriter + ); + } + f = message.getSyncCommand(); + if (f != null) { + writer.writeMessage( + 21, + f, + proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand.serializeBinaryToWriter + ); + } +}; + + + + + +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.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand.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.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand.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.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand; + return proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand.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.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + +/** + * optional uint64 timestamp = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.getTimestamp = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.setTimestamp = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional ManageNeuron.Disburse disburse = 2; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.getDisburse = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse, 2)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} returns this +*/ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.setDisburse = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.clearDisburse = function() { + return this.setDisburse(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.hasDisburse = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional ManageNeuron.Split split = 3; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.Split} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.getSplit = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.Split} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.Split, 3)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.Split|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} returns this +*/ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.setSplit = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.clearSplit = function() { + return this.setSplit(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.hasSplit = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional ManageNeuron.DisburseToNeuron disburse_to_neuron = 5; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.getDisburseToNeuron = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron, 5)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.DisburseToNeuron|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} returns this +*/ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.setDisburseToNeuron = function(value) { + return jspb.Message.setOneofWrapperField(this, 5, proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.clearDisburseToNeuron = function() { + return this.setDisburseToNeuron(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.hasDisburseToNeuron = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional ManageNeuron.MergeMaturity merge_maturity = 7; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.getMergeMaturity = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity, 7)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} returns this +*/ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.setMergeMaturity = function(value) { + return jspb.Message.setOneofWrapperField(this, 7, proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.clearMergeMaturity = function() { + return this.setMergeMaturity(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.hasMergeMaturity = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional ManageNeuron.ClaimOrRefresh claim_or_refresh_neuron = 8; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.getClaimOrRefreshNeuron = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh, 8)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.ClaimOrRefresh|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} returns this +*/ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.setClaimOrRefreshNeuron = function(value) { + return jspb.Message.setOneofWrapperField(this, 8, proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.clearClaimOrRefreshNeuron = function() { + return this.setClaimOrRefreshNeuron(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.hasClaimOrRefreshNeuron = function() { + return jspb.Message.getField(this, 8) != null; +}; + + +/** + * optional ManageNeuron.Configure configure = 9; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.getConfigure = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.Configure, 9)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.Configure|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} returns this +*/ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.setConfigure = function(value) { + return jspb.Message.setOneofWrapperField(this, 9, proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.clearConfigure = function() { + return this.setConfigure(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.hasConfigure = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * optional ManageNeuron.Merge merge = 10; + * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.Merge} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.getMerge = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.Merge} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.Merge, 10)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.Merge|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} returns this +*/ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.setMerge = function(value) { + return jspb.Message.setOneofWrapperField(this, 10, proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.clearMerge = function() { + return this.setMerge(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.hasMerge = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * optional ic_nns_common.pb.v1.NeuronId spawn = 20; + * @return {?proto.ic_nns_common.pb.v1.NeuronId} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.getSpawn = function() { + return /** @type{?proto.ic_nns_common.pb.v1.NeuronId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.NeuronId, 20)); +}; + + +/** + * @param {?proto.ic_nns_common.pb.v1.NeuronId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} returns this +*/ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.setSpawn = function(value) { + return jspb.Message.setOneofWrapperField(this, 20, proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.clearSpawn = function() { + return this.setSpawn(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.hasSpawn = function() { + return jspb.Message.getField(this, 20) != null; +}; + + +/** + * optional SyncCommand sync_command = 21; + * @return {?proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.getSyncCommand = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand, 21)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.SyncCommand|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} returns this +*/ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.setSyncCommand = function(value) { + return jspb.Message.setOneofWrapperField(this, 21, proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.clearSyncCommand = function() { + return this.setSyncCommand(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand.prototype.hasSyncCommand = function() { + return jspb.Message.getField(this, 21) != 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.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.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.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.toObject = function(includeInstance, msg) { + var f, obj = { + timestampSeconds: jspb.Message.getFieldWithDefault(msg, 1, 0), + totalSupplyIcp: jspb.Message.getFieldWithDefault(msg, 2, 0), + dissolvingNeuronsCount: jspb.Message.getFieldWithDefault(msg, 3, 0), + dissolvingNeuronsE8sBucketsMap: (f = msg.getDissolvingNeuronsE8sBucketsMap()) ? f.toObject(includeInstance, undefined) : [], + dissolvingNeuronsCountBucketsMap: (f = msg.getDissolvingNeuronsCountBucketsMap()) ? f.toObject(includeInstance, undefined) : [], + notDissolvingNeuronsCount: jspb.Message.getFieldWithDefault(msg, 6, 0), + notDissolvingNeuronsE8sBucketsMap: (f = msg.getNotDissolvingNeuronsE8sBucketsMap()) ? f.toObject(includeInstance, undefined) : [], + notDissolvingNeuronsCountBucketsMap: (f = msg.getNotDissolvingNeuronsCountBucketsMap()) ? f.toObject(includeInstance, undefined) : [], + dissolvedNeuronsCount: jspb.Message.getFieldWithDefault(msg, 9, 0), + dissolvedNeuronsE8s: jspb.Message.getFieldWithDefault(msg, 10, 0), + garbageCollectableNeuronsCount: jspb.Message.getFieldWithDefault(msg, 11, 0), + neuronsWithInvalidStakeCount: jspb.Message.getFieldWithDefault(msg, 12, 0), + totalStakedE8s: jspb.Message.getFieldWithDefault(msg, 13, 0), + neuronsWithLessThan6MonthsDissolveDelayCount: jspb.Message.getFieldWithDefault(msg, 14, 0), + neuronsWithLessThan6MonthsDissolveDelayE8s: jspb.Message.getFieldWithDefault(msg, 15, 0), + communityFundTotalStakedE8s: jspb.Message.getFieldWithDefault(msg, 16, 0), + communityFundTotalMaturityE8sEquivalent: jspb.Message.getFieldWithDefault(msg, 17, 0), + neuronsFundTotalActiveNeurons: jspb.Message.getFieldWithDefault(msg, 25, 0), + totalLockedE8s: jspb.Message.getFieldWithDefault(msg, 18, 0), + totalMaturityE8sEquivalent: jspb.Message.getFieldWithDefault(msg, 19, 0), + totalStakedMaturityE8sEquivalent: jspb.Message.getFieldWithDefault(msg, 20, 0), + dissolvingNeuronsStakedMaturityE8sEquivalentBucketsMap: (f = msg.getDissolvingNeuronsStakedMaturityE8sEquivalentBucketsMap()) ? f.toObject(includeInstance, undefined) : [], + dissolvingNeuronsStakedMaturityE8sEquivalentSum: jspb.Message.getFieldWithDefault(msg, 22, 0), + notDissolvingNeuronsStakedMaturityE8sEquivalentBucketsMap: (f = msg.getNotDissolvingNeuronsStakedMaturityE8sEquivalentBucketsMap()) ? f.toObject(includeInstance, undefined) : [], + notDissolvingNeuronsStakedMaturityE8sEquivalentSum: jspb.Message.getFieldWithDefault(msg, 24, 0), + seedNeuronCount: jspb.Message.getFieldWithDefault(msg, 26, 0), + ectNeuronCount: jspb.Message.getFieldWithDefault(msg, 27, 0), + totalStakedE8sSeed: jspb.Message.getFieldWithDefault(msg, 28, 0), + totalStakedE8sEct: jspb.Message.getFieldWithDefault(msg, 29, 0), + totalStakedMaturityE8sEquivalentSeed: jspb.Message.getFieldWithDefault(msg, 30, 0), + totalStakedMaturityE8sEquivalentEct: jspb.Message.getFieldWithDefault(msg, 31, 0), + dissolvingNeuronsE8sBucketsSeedMap: (f = msg.getDissolvingNeuronsE8sBucketsSeedMap()) ? f.toObject(includeInstance, undefined) : [], + dissolvingNeuronsE8sBucketsEctMap: (f = msg.getDissolvingNeuronsE8sBucketsEctMap()) ? f.toObject(includeInstance, undefined) : [], + notDissolvingNeuronsE8sBucketsSeedMap: (f = msg.getNotDissolvingNeuronsE8sBucketsSeedMap()) ? f.toObject(includeInstance, undefined) : [], + notDissolvingNeuronsE8sBucketsEctMap: (f = msg.getNotDissolvingNeuronsE8sBucketsEctMap()) ? f.toObject(includeInstance, undefined) : [] + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics; + return proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTimestampSeconds(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalSupplyIcp(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDissolvingNeuronsCount(value); + break; + case 4: + var value = msg.getDissolvingNeuronsE8sBucketsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readDouble, null, 0, 0.0); + }); + break; + case 5: + var value = msg.getDissolvingNeuronsCountBucketsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readUint64, null, 0, 0); + }); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setNotDissolvingNeuronsCount(value); + break; + case 7: + var value = msg.getNotDissolvingNeuronsE8sBucketsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readDouble, null, 0, 0.0); + }); + break; + case 8: + var value = msg.getNotDissolvingNeuronsCountBucketsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readUint64, null, 0, 0); + }); + break; + case 9: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDissolvedNeuronsCount(value); + break; + case 10: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDissolvedNeuronsE8s(value); + break; + case 11: + var value = /** @type {number} */ (reader.readUint64()); + msg.setGarbageCollectableNeuronsCount(value); + break; + case 12: + var value = /** @type {number} */ (reader.readUint64()); + msg.setNeuronsWithInvalidStakeCount(value); + break; + case 13: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalStakedE8s(value); + break; + case 14: + var value = /** @type {number} */ (reader.readUint64()); + msg.setNeuronsWithLessThan6MonthsDissolveDelayCount(value); + break; + case 15: + var value = /** @type {number} */ (reader.readUint64()); + msg.setNeuronsWithLessThan6MonthsDissolveDelayE8s(value); + break; + case 16: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCommunityFundTotalStakedE8s(value); + break; + case 17: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCommunityFundTotalMaturityE8sEquivalent(value); + break; + case 25: + var value = /** @type {number} */ (reader.readUint64()); + msg.setNeuronsFundTotalActiveNeurons(value); + break; + case 18: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalLockedE8s(value); + break; + case 19: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalMaturityE8sEquivalent(value); + break; + case 20: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalStakedMaturityE8sEquivalent(value); + break; + case 21: + var value = msg.getDissolvingNeuronsStakedMaturityE8sEquivalentBucketsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readDouble, null, 0, 0.0); + }); + break; + case 22: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDissolvingNeuronsStakedMaturityE8sEquivalentSum(value); + break; + case 23: + var value = msg.getNotDissolvingNeuronsStakedMaturityE8sEquivalentBucketsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readDouble, null, 0, 0.0); + }); + break; + case 24: + var value = /** @type {number} */ (reader.readUint64()); + msg.setNotDissolvingNeuronsStakedMaturityE8sEquivalentSum(value); + break; + case 26: + var value = /** @type {number} */ (reader.readUint64()); + msg.setSeedNeuronCount(value); + break; + case 27: + var value = /** @type {number} */ (reader.readUint64()); + msg.setEctNeuronCount(value); + break; + case 28: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalStakedE8sSeed(value); + break; + case 29: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalStakedE8sEct(value); + break; + case 30: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalStakedMaturityE8sEquivalentSeed(value); + break; + case 31: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalStakedMaturityE8sEquivalentEct(value); + break; + case 32: + var value = msg.getDissolvingNeuronsE8sBucketsSeedMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readDouble, null, 0, 0.0); + }); + break; + case 33: + var value = msg.getDissolvingNeuronsE8sBucketsEctMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readDouble, null, 0, 0.0); + }); + break; + case 34: + var value = msg.getNotDissolvingNeuronsE8sBucketsSeedMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readDouble, null, 0, 0.0); + }); + break; + case 35: + var value = msg.getNotDissolvingNeuronsE8sBucketsEctMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readDouble, null, 0, 0.0); + }); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getTotalSupplyIcp(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getDissolvingNeuronsCount(); + if (f !== 0) { + writer.writeUint64( + 3, + f + ); + } + f = message.getDissolvingNeuronsE8sBucketsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeUint64, jspb.BinaryWriter.prototype.writeDouble); + } + f = message.getDissolvingNeuronsCountBucketsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeUint64, jspb.BinaryWriter.prototype.writeUint64); + } + f = message.getNotDissolvingNeuronsCount(); + if (f !== 0) { + writer.writeUint64( + 6, + f + ); + } + f = message.getNotDissolvingNeuronsE8sBucketsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeUint64, jspb.BinaryWriter.prototype.writeDouble); + } + f = message.getNotDissolvingNeuronsCountBucketsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(8, writer, jspb.BinaryWriter.prototype.writeUint64, jspb.BinaryWriter.prototype.writeUint64); + } + f = message.getDissolvedNeuronsCount(); + if (f !== 0) { + writer.writeUint64( + 9, + f + ); + } + f = message.getDissolvedNeuronsE8s(); + if (f !== 0) { + writer.writeUint64( + 10, + f + ); + } + f = message.getGarbageCollectableNeuronsCount(); + if (f !== 0) { + writer.writeUint64( + 11, + f + ); + } + f = message.getNeuronsWithInvalidStakeCount(); + if (f !== 0) { + writer.writeUint64( + 12, + f + ); + } + f = message.getTotalStakedE8s(); + if (f !== 0) { + writer.writeUint64( + 13, + f + ); + } + f = message.getNeuronsWithLessThan6MonthsDissolveDelayCount(); + if (f !== 0) { + writer.writeUint64( + 14, + f + ); + } + f = message.getNeuronsWithLessThan6MonthsDissolveDelayE8s(); + if (f !== 0) { + writer.writeUint64( + 15, + f + ); + } + f = message.getCommunityFundTotalStakedE8s(); + if (f !== 0) { + writer.writeUint64( + 16, + f + ); + } + f = message.getCommunityFundTotalMaturityE8sEquivalent(); + if (f !== 0) { + writer.writeUint64( + 17, + f + ); + } + f = message.getNeuronsFundTotalActiveNeurons(); + if (f !== 0) { + writer.writeUint64( + 25, + f + ); + } + f = message.getTotalLockedE8s(); + if (f !== 0) { + writer.writeUint64( + 18, + f + ); + } + f = message.getTotalMaturityE8sEquivalent(); + if (f !== 0) { + writer.writeUint64( + 19, + f + ); + } + f = message.getTotalStakedMaturityE8sEquivalent(); + if (f !== 0) { + writer.writeUint64( + 20, + f + ); + } + f = message.getDissolvingNeuronsStakedMaturityE8sEquivalentBucketsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(21, writer, jspb.BinaryWriter.prototype.writeUint64, jspb.BinaryWriter.prototype.writeDouble); + } + f = message.getDissolvingNeuronsStakedMaturityE8sEquivalentSum(); + if (f !== 0) { + writer.writeUint64( + 22, + f + ); + } + f = message.getNotDissolvingNeuronsStakedMaturityE8sEquivalentBucketsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(23, writer, jspb.BinaryWriter.prototype.writeUint64, jspb.BinaryWriter.prototype.writeDouble); + } + f = message.getNotDissolvingNeuronsStakedMaturityE8sEquivalentSum(); + if (f !== 0) { + writer.writeUint64( + 24, + f + ); + } + f = message.getSeedNeuronCount(); + if (f !== 0) { + writer.writeUint64( + 26, + f + ); + } + f = message.getEctNeuronCount(); + if (f !== 0) { + writer.writeUint64( + 27, + f + ); + } + f = message.getTotalStakedE8sSeed(); + if (f !== 0) { + writer.writeUint64( + 28, + f + ); + } + f = message.getTotalStakedE8sEct(); + if (f !== 0) { + writer.writeUint64( + 29, + f + ); + } + f = message.getTotalStakedMaturityE8sEquivalentSeed(); + if (f !== 0) { + writer.writeUint64( + 30, + f + ); + } + f = message.getTotalStakedMaturityE8sEquivalentEct(); + if (f !== 0) { + writer.writeUint64( + 31, + f + ); + } + f = message.getDissolvingNeuronsE8sBucketsSeedMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(32, writer, jspb.BinaryWriter.prototype.writeUint64, jspb.BinaryWriter.prototype.writeDouble); + } + f = message.getDissolvingNeuronsE8sBucketsEctMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(33, writer, jspb.BinaryWriter.prototype.writeUint64, jspb.BinaryWriter.prototype.writeDouble); + } + f = message.getNotDissolvingNeuronsE8sBucketsSeedMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(34, writer, jspb.BinaryWriter.prototype.writeUint64, jspb.BinaryWriter.prototype.writeDouble); + } + f = message.getNotDissolvingNeuronsE8sBucketsEctMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(35, writer, jspb.BinaryWriter.prototype.writeUint64, jspb.BinaryWriter.prototype.writeDouble); + } +}; + + +/** + * optional uint64 timestamp_seconds = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setTimestampSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint64 total_supply_icp = 2; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getTotalSupplyIcp = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setTotalSupplyIcp = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint64 dissolving_neurons_count = 3; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getDissolvingNeuronsCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setDissolvingNeuronsCount = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * map dissolving_neurons_e8s_buckets = 4; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getDissolvingNeuronsE8sBucketsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 4, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.clearDissolvingNeuronsE8sBucketsMap = function() { + this.getDissolvingNeuronsE8sBucketsMap().clear(); + return this; +}; + + +/** + * map dissolving_neurons_count_buckets = 5; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getDissolvingNeuronsCountBucketsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 5, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.clearDissolvingNeuronsCountBucketsMap = function() { + this.getDissolvingNeuronsCountBucketsMap().clear(); + return this; +}; + + +/** + * optional uint64 not_dissolving_neurons_count = 6; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getNotDissolvingNeuronsCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setNotDissolvingNeuronsCount = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * map not_dissolving_neurons_e8s_buckets = 7; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getNotDissolvingNeuronsE8sBucketsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 7, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.clearNotDissolvingNeuronsE8sBucketsMap = function() { + this.getNotDissolvingNeuronsE8sBucketsMap().clear(); + return this; +}; + + +/** + * map not_dissolving_neurons_count_buckets = 8; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getNotDissolvingNeuronsCountBucketsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 8, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.clearNotDissolvingNeuronsCountBucketsMap = function() { + this.getNotDissolvingNeuronsCountBucketsMap().clear(); + return this; +}; + + +/** + * optional uint64 dissolved_neurons_count = 9; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getDissolvedNeuronsCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setDissolvedNeuronsCount = function(value) { + return jspb.Message.setProto3IntField(this, 9, value); +}; + + +/** + * optional uint64 dissolved_neurons_e8s = 10; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getDissolvedNeuronsE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setDissolvedNeuronsE8s = function(value) { + return jspb.Message.setProto3IntField(this, 10, value); +}; + + +/** + * optional uint64 garbage_collectable_neurons_count = 11; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getGarbageCollectableNeuronsCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setGarbageCollectableNeuronsCount = function(value) { + return jspb.Message.setProto3IntField(this, 11, value); +}; + + +/** + * optional uint64 neurons_with_invalid_stake_count = 12; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getNeuronsWithInvalidStakeCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setNeuronsWithInvalidStakeCount = function(value) { + return jspb.Message.setProto3IntField(this, 12, value); +}; + + +/** + * optional uint64 total_staked_e8s = 13; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getTotalStakedE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setTotalStakedE8s = function(value) { + return jspb.Message.setProto3IntField(this, 13, value); +}; + + +/** + * optional uint64 neurons_with_less_than_6_months_dissolve_delay_count = 14; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getNeuronsWithLessThan6MonthsDissolveDelayCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setNeuronsWithLessThan6MonthsDissolveDelayCount = function(value) { + return jspb.Message.setProto3IntField(this, 14, value); +}; + + +/** + * optional uint64 neurons_with_less_than_6_months_dissolve_delay_e8s = 15; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getNeuronsWithLessThan6MonthsDissolveDelayE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setNeuronsWithLessThan6MonthsDissolveDelayE8s = function(value) { + return jspb.Message.setProto3IntField(this, 15, value); +}; + + +/** + * optional uint64 community_fund_total_staked_e8s = 16; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getCommunityFundTotalStakedE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setCommunityFundTotalStakedE8s = function(value) { + return jspb.Message.setProto3IntField(this, 16, value); +}; + + +/** + * optional uint64 community_fund_total_maturity_e8s_equivalent = 17; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getCommunityFundTotalMaturityE8sEquivalent = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setCommunityFundTotalMaturityE8sEquivalent = function(value) { + return jspb.Message.setProto3IntField(this, 17, value); +}; + + +/** + * optional uint64 neurons_fund_total_active_neurons = 25; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getNeuronsFundTotalActiveNeurons = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 25, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setNeuronsFundTotalActiveNeurons = function(value) { + return jspb.Message.setProto3IntField(this, 25, value); +}; + + +/** + * optional uint64 total_locked_e8s = 18; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getTotalLockedE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setTotalLockedE8s = function(value) { + return jspb.Message.setProto3IntField(this, 18, value); +}; + + +/** + * optional uint64 total_maturity_e8s_equivalent = 19; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getTotalMaturityE8sEquivalent = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setTotalMaturityE8sEquivalent = function(value) { + return jspb.Message.setProto3IntField(this, 19, value); +}; + + +/** + * optional uint64 total_staked_maturity_e8s_equivalent = 20; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getTotalStakedMaturityE8sEquivalent = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 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} + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuron.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setTotalStakedMaturityE8sEquivalent = function(value) { + return jspb.Message.setProto3IntField(this, 20, value); }; /** - * 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.ic_nns_governance.pb.v1.ManageNeuron} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * map dissolving_neurons_staked_maturity_e8s_equivalent_buckets = 21; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.toObject = function(includeInstance, msg) { - var f, obj = { - id: (f = msg.getId()) && base_types_pb.NeuronId.toObject(includeInstance, f), - subaccount: msg.getSubaccount_asB64(), - neuronId: (f = msg.getNeuronId()) && base_types_pb.NeuronId.toObject(includeInstance, f), - configure: (f = msg.getConfigure()) && proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.toObject(includeInstance, f), - disburse: (f = msg.getDisburse()) && proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.toObject(includeInstance, f), - spawn: (f = msg.getSpawn()) && proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.toObject(includeInstance, f), - follow: (f = msg.getFollow()) && proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.toObject(includeInstance, f), - registerVote: (f = msg.getRegisterVote()) && proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.toObject(includeInstance, f), - mergeMaturity: (f = msg.getMergeMaturity()) && proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.toObject(includeInstance, f), - merge: (f = msg.getMerge()) && proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.toObject(includeInstance, f) - }; +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getDissolvingNeuronsStakedMaturityE8sEquivalentBucketsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 21, opt_noLazyCreate, + null)); +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.clearDissolvingNeuronsStakedMaturityE8sEquivalentBucketsMap = function() { + this.getDissolvingNeuronsStakedMaturityE8sEquivalentBucketsMap().clear(); + return this; }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} + * optional uint64 dissolving_neurons_staked_maturity_e8s_equivalent_sum = 22; + * @return {number} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron; - return proto.ic_nns_governance.pb.v1.ManageNeuron.deserializeBinaryFromReader(msg, reader); +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getDissolvingNeuronsStakedMaturityE8sEquivalentSum = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 22, 0)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new base_types_pb.NeuronId; - reader.readMessage(value,base_types_pb.NeuronId.deserializeBinaryFromReader); - msg.setId(value); - break; - case 11: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSubaccount(value); - break; - case 12: - var value = new base_types_pb.NeuronId; - reader.readMessage(value,base_types_pb.NeuronId.deserializeBinaryFromReader); - msg.setNeuronId(value); - break; - case 2: - var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.Configure; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.deserializeBinaryFromReader); - msg.setConfigure(value); - break; - case 3: - var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.deserializeBinaryFromReader); - msg.setDisburse(value); - break; - case 4: - var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.deserializeBinaryFromReader); - msg.setSpawn(value); - break; - case 5: - var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.Follow; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.deserializeBinaryFromReader); - msg.setFollow(value); - break; - case 7: - var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.deserializeBinaryFromReader); - msg.setRegisterVote(value); - break; - case 13: - var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.deserializeBinaryFromReader); - msg.setMergeMaturity(value); - break; - case 14: - var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.Merge; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.deserializeBinaryFromReader); - msg.setMerge(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setDissolvingNeuronsStakedMaturityE8sEquivalentSum = function(value) { + return jspb.Message.setProto3IntField(this, 22, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * map not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets = 23; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuron.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getNotDissolvingNeuronsStakedMaturityE8sEquivalentBucketsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 23, opt_noLazyCreate, + null)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears values from the map. The map will be non-null. + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( - 1, - f, - base_types_pb.NeuronId.serializeBinaryToWriter - ); - } - f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 11)); - if (f != null) { - writer.writeBytes( - 11, - f - ); - } - f = message.getNeuronId(); - if (f != null) { - writer.writeMessage( - 12, - f, - base_types_pb.NeuronId.serializeBinaryToWriter - ); - } - f = message.getConfigure(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.serializeBinaryToWriter - ); - } - f = message.getDisburse(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.serializeBinaryToWriter - ); - } - f = message.getSpawn(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.serializeBinaryToWriter - ); - } - f = message.getFollow(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.serializeBinaryToWriter - ); - } - f = message.getRegisterVote(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.serializeBinaryToWriter - ); - } - f = message.getMergeMaturity(); - if (f != null) { - writer.writeMessage( - 13, - f, - proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.serializeBinaryToWriter - ); - } - f = message.getMerge(); - if (f != null) { - writer.writeMessage( - 14, - f, - proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.serializeBinaryToWriter - ); - } +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.clearNotDissolvingNeuronsStakedMaturityE8sEquivalentBucketsMap = function() { + this.getNotDissolvingNeuronsStakedMaturityE8sEquivalentBucketsMap().clear(); + return this; }; +/** + * optional uint64 not_dissolving_neurons_staked_maturity_e8s_equivalent_sum = 24; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getNotDissolvingNeuronsStakedMaturityE8sEquivalentSum = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 24, 0)); +}; + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setNotDissolvingNeuronsStakedMaturityE8sEquivalentSum = function(value) { + return jspb.Message.setProto3IntField(this, 24, 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} + * optional uint64 seed_neuron_count = 26; + * @return {number} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getSeedNeuronCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 26, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setSeedNeuronCount = function(value) { + return jspb.Message.setProto3IntField(this, 26, value); +}; + + +/** + * optional uint64 ect_neuron_count = 27; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getEctNeuronCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 27, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setEctNeuronCount = function(value) { + return jspb.Message.setProto3IntField(this, 27, value); +}; + + +/** + * optional uint64 total_staked_e8s_seed = 28; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getTotalStakedE8sSeed = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 28, 0)); }; /** - * 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.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.toObject = function(includeInstance, msg) { - var f, obj = { - additionalDissolveDelaySeconds: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setTotalStakedE8sSeed = function(value) { + return jspb.Message.setProto3IntField(this, 28, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay} + * optional uint64 total_staked_e8s_ect = 29; + * @return {number} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay; - return proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.deserializeBinaryFromReader(msg, reader); +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getTotalStakedE8sEct = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 29, 0)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay} + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setAdditionalDissolveDelaySeconds(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setTotalStakedE8sEct = function(value) { + return jspb.Message.setProto3IntField(this, 29, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional uint64 total_staked_maturity_e8s_equivalent_seed = 30; + * @return {number} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getTotalStakedMaturityE8sEquivalentSeed = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 30, 0)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAdditionalDissolveDelaySeconds(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setTotalStakedMaturityE8sEquivalentSeed = function(value) { + return jspb.Message.setProto3IntField(this, 30, value); }; /** - * optional uint32 additional_dissolve_delay_seconds = 1; + * optional uint64 total_staked_maturity_e8s_equivalent_ect = 31; * @return {number} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.prototype.getAdditionalDissolveDelaySeconds = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getTotalStakedMaturityE8sEquivalentEct = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 31, 0)); }; /** * @param {number} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay} returns this + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.prototype.setAdditionalDissolveDelaySeconds = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.setTotalStakedMaturityE8sEquivalentEct = function(value) { + return jspb.Message.setProto3IntField(this, 31, value); }; +/** + * map dissolving_neurons_e8s_buckets_seed = 32; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getDissolvingNeuronsE8sBucketsSeedMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 32, opt_noLazyCreate, + 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} + * Clears values from the map. The map will be non-null. + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.clearDissolvingNeuronsE8sBucketsSeedMap = function() { + this.getDissolvingNeuronsE8sBucketsSeedMap().clear(); + return 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.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * map dissolving_neurons_e8s_buckets_ect = 33; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.toObject = function(includeInstance, msg) { - var f, obj = { +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getDissolvingNeuronsE8sBucketsEctMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 33, opt_noLazyCreate, + null)); +}; - }; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.clearDissolvingNeuronsE8sBucketsEctMap = function() { + this.getDissolvingNeuronsE8sBucketsEctMap().clear(); + return this; }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving} + * map not_dissolving_neurons_e8s_buckets_seed = 34; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving; - return proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.deserializeBinaryFromReader(msg, reader); +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getNotDissolvingNeuronsE8sBucketsSeedMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 34, opt_noLazyCreate, + null)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving} + * Clears values from the map. The map will be non-null. + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.clearNotDissolvingNeuronsE8sBucketsSeedMap = function() { + this.getNotDissolvingNeuronsE8sBucketsSeedMap().clear(); + return this; }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * map not_dissolving_neurons_e8s_buckets_ect = 35; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.getNotDissolvingNeuronsE8sBucketsEctMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 35, opt_noLazyCreate, + null)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears values from the map. The map will be non-null. + * @return {!proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.serializeBinaryToWriter = function(message, writer) { - var f = undefined; +proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics.prototype.clearNotDissolvingNeuronsE8sBucketsEctMap = function() { + this.getNotDissolvingNeuronsE8sBucketsEctMap().clear(); + return this; }; @@ -1269,8 +30928,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.toObject(opt_includeInstance, this); }; @@ -1279,13 +30938,15 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.prototype.toObject = f * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.toObject = function(includeInstance, msg) { var f, obj = { - + proposerId: (f = msg.getProposerId()) && nns_common_pb.NeuronId.toObject(includeInstance, f), + caller: (f = msg.getCaller()) && base_types_pb.PrincipalId.toObject(includeInstance, f), + proposal: (f = msg.getProposal()) && proto.ic_nns_governance.pb.v1.Proposal.toObject(includeInstance, f) }; if (includeInstance) { @@ -1299,29 +30960,44 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.toObject = function(in /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving} + * @return {!proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.deserializeBinary = function(bytes) { +proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving; - return proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal; + return proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving} + * @return {!proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { + case 1: + var value = new nns_common_pb.NeuronId; + reader.readMessage(value,nns_common_pb.NeuronId.deserializeBinaryFromReader); + msg.setProposerId(value); + break; + case 2: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setCaller(value); + break; + case 3: + var value = new proto.ic_nns_governance.pb.v1.Proposal; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.Proposal.deserializeBinaryFromReader); + msg.setProposal(value); + break; default: reader.skipField(); break; @@ -1335,9 +31011,9 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.deserializeBinaryFromR * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1345,154 +31021,138 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.prototype.serializeBin /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving} message + * @param {!proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.serializeBinaryToWriter = function(message, writer) { var f = undefined; + f = message.getProposerId(); + if (f != null) { + writer.writeMessage( + 1, + f, + nns_common_pb.NeuronId.serializeBinaryToWriter + ); + } + f = message.getCaller(); + if (f != null) { + writer.writeMessage( + 2, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = message.getProposal(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.ic_nns_governance.pb.v1.Proposal.serializeBinaryToWriter + ); + } }; +/** + * optional ic_nns_common.pb.v1.NeuronId proposer_id = 1; + * @return {?proto.ic_nns_common.pb.v1.NeuronId} + */ +proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.prototype.getProposerId = function() { + return /** @type{?proto.ic_nns_common.pb.v1.NeuronId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.NeuronId, 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.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.toObject(opt_includeInstance, this); + * @param {?proto.ic_nns_common.pb.v1.NeuronId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal} returns this +*/ +proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.prototype.setProposerId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * 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.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.toObject = function(includeInstance, msg) { - var f, obj = { - newHotKey: (f = msg.getNewHotKey()) && base_types_pb.PrincipalId.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.prototype.clearProposerId = function() { + return this.setProposerId(undefined); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey} + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey; - return proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.deserializeBinaryFromReader(msg, reader); +proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.prototype.hasProposerId = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey} + * optional ic_base_types.pb.v1.PrincipalId caller = 2; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new base_types_pb.PrincipalId; - reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); - msg.setNewHotKey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.prototype.getCaller = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 2)); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal} returns this +*/ +proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.prototype.setCaller = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.prototype.clearCaller = function() { + return this.setCaller(undefined); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNewHotKey(); - if (f != null) { - writer.writeMessage( - 1, - f, - base_types_pb.PrincipalId.serializeBinaryToWriter - ); - } +proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.prototype.hasCaller = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * optional ic_base_types.pb.v1.PrincipalId new_hot_key = 1; - * @return {?proto.ic_base_types.pb.v1.PrincipalId} + * optional Proposal proposal = 3; + * @return {?proto.ic_nns_governance.pb.v1.Proposal} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.prototype.getNewHotKey = function() { - return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( - jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 1)); +proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.prototype.getProposal = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.Proposal} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.Proposal, 3)); }; /** - * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey} returns this + * @param {?proto.ic_nns_governance.pb.v1.Proposal|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.prototype.setNewHotKey = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.prototype.setProposal = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey} returns this + * @return {!proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.prototype.clearNewHotKey = function() { - return this.setNewHotKey(undefined); +proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.prototype.clearProposal = function() { + return this.setProposal(undefined); }; @@ -1500,12 +31160,37 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.prototype.clearNewHotKey = * Returns whether this field is set. * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.prototype.hasNewHotKey = function() { - return jspb.Message.getField(this, 1) != null; +proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal.prototype.hasProposal = function() { + return jspb.Message.getField(this, 3) != null; }; +/** + * 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.ic_nns_governance.pb.v1.Governance.Migration.oneofGroups_ = [[3]]; + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.Governance.Migration.ProgressCase = { + PROGRESS_NOT_SET: 0, + LAST_NEURON_ID: 3 +}; + +/** + * @return {proto.ic_nns_governance.pb.v1.Governance.Migration.ProgressCase} + */ +proto.ic_nns_governance.pb.v1.Governance.Migration.prototype.getProgressCase = function() { + return /** @type {proto.ic_nns_governance.pb.v1.Governance.Migration.ProgressCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.Governance.Migration.oneofGroups_[0])); +}; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -1521,8 +31206,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.Governance.Migration.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.Governance.Migration.toObject(opt_includeInstance, this); }; @@ -1531,13 +31216,15 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.prototype.toObject = fun * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.Governance.Migration} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.Governance.Migration.toObject = function(includeInstance, msg) { var f, obj = { - hotKeyToRemove: (f = msg.getHotKeyToRemove()) && base_types_pb.PrincipalId.toObject(includeInstance, f) + status: jspb.Message.getFieldWithDefault(msg, 1, 0), + failureReason: jspb.Message.getFieldWithDefault(msg, 2, ""), + lastNeuronId: (f = msg.getLastNeuronId()) && nns_common_pb.NeuronId.toObject(includeInstance, f) }; if (includeInstance) { @@ -1551,23 +31238,23 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.toObject = function(incl /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey} + * @return {!proto.ic_nns_governance.pb.v1.Governance.Migration} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.deserializeBinary = function(bytes) { +proto.ic_nns_governance.pb.v1.Governance.Migration.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey; - return proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_nns_governance.pb.v1.Governance.Migration; + return proto.ic_nns_governance.pb.v1.Governance.Migration.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.Governance.Migration} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey} + * @return {!proto.ic_nns_governance.pb.v1.Governance.Migration} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_nns_governance.pb.v1.Governance.Migration.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1575,9 +31262,17 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.deserializeBinaryFromRea var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new base_types_pb.PrincipalId; - reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); - msg.setHotKeyToRemove(value); + var value = /** @type {!proto.ic_nns_governance.pb.v1.Governance.Migration.MigrationStatus} */ (reader.readEnum()); + msg.setStatus(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setFailureReason(value); + break; + case 3: + var value = new nns_common_pb.NeuronId; + reader.readMessage(value,nns_common_pb.NeuronId.deserializeBinaryFromReader); + msg.setLastNeuronId(value); break; default: reader.skipField(); @@ -1592,9 +31287,9 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.deserializeBinaryFromRea * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.Governance.Migration.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.Governance.Migration.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1602,48 +31297,71 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.prototype.serializeBinar /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey} message + * @param {!proto.ic_nns_governance.pb.v1.Governance.Migration} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.Governance.Migration.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getHotKeyToRemove(); + f = /** @type {!proto.ic_nns_governance.pb.v1.Governance.Migration.MigrationStatus} */ (jspb.Message.getField(message, 1)); if (f != null) { - writer.writeMessage( + writer.writeEnum( 1, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } + f = message.getLastNeuronId(); + if (f != null) { + writer.writeMessage( + 3, f, - base_types_pb.PrincipalId.serializeBinaryToWriter + nns_common_pb.NeuronId.serializeBinaryToWriter ); } }; /** - * optional ic_base_types.pb.v1.PrincipalId hot_key_to_remove = 1; - * @return {?proto.ic_base_types.pb.v1.PrincipalId} + * @enum {number} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.prototype.getHotKeyToRemove = function() { - return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( - jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 1)); +proto.ic_nns_governance.pb.v1.Governance.Migration.MigrationStatus = { + MIGRATION_STATUS_UNSPECIFIED: 0, + MIGRATION_STATUS_IN_PROGRESS: 1, + MIGRATION_STATUS_SUCCEEDED: 2, + MIGRATION_STATUS_FAILED: 3 +}; + +/** + * optional MigrationStatus status = 1; + * @return {!proto.ic_nns_governance.pb.v1.Governance.Migration.MigrationStatus} + */ +proto.ic_nns_governance.pb.v1.Governance.Migration.prototype.getStatus = function() { + return /** @type {!proto.ic_nns_governance.pb.v1.Governance.Migration.MigrationStatus} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey} returns this -*/ -proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.prototype.setHotKeyToRemove = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * @param {!proto.ic_nns_governance.pb.v1.Governance.Migration.MigrationStatus} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.Migration} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.Migration.prototype.setStatus = function(value) { + return jspb.Message.setField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey} returns this + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance.Migration} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.prototype.clearHotKeyToRemove = function() { - return this.setHotKeyToRemove(undefined); +proto.ic_nns_governance.pb.v1.Governance.Migration.prototype.clearStatus = function() { + return jspb.Message.setField(this, 1, undefined); }; @@ -1651,44 +31369,87 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.prototype.clearHotKeyToR * Returns whether this field is set. * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.prototype.hasHotKeyToRemove = function() { +proto.ic_nns_governance.pb.v1.Governance.Migration.prototype.hasStatus = function() { return jspb.Message.getField(this, 1) != null; }; +/** + * optional string failure_reason = 2; + * @return {string} + */ +proto.ic_nns_governance.pb.v1.Governance.Migration.prototype.getFailureReason = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + /** - * 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 + * @param {string} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.Migration} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.oneofGroups_ = [[1,2,3,4,5,7]]; +proto.ic_nns_governance.pb.v1.Governance.Migration.prototype.setFailureReason = function(value) { + return jspb.Message.setField(this, 2, value); +}; + /** - * @enum {number} + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance.Migration} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.OperationCase = { - OPERATION_NOT_SET: 0, - INCREASE_DISSOLVE_DELAY: 1, - START_DISSOLVING: 2, - STOP_DISSOLVING: 3, - ADD_HOT_KEY: 4, - REMOVE_HOT_KEY: 5, - JOIN_COMMUNITY_FUND: 7 +proto.ic_nns_governance.pb.v1.Governance.Migration.prototype.clearFailureReason = function() { + return jspb.Message.setField(this, 2, undefined); }; + /** - * @return {proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.OperationCase} + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.getOperationCase = function() { - return /** @type {proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.OperationCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.oneofGroups_[0])); +proto.ic_nns_governance.pb.v1.Governance.Migration.prototype.hasFailureReason = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional ic_nns_common.pb.v1.NeuronId last_neuron_id = 3; + * @return {?proto.ic_nns_common.pb.v1.NeuronId} + */ +proto.ic_nns_governance.pb.v1.Governance.Migration.prototype.getLastNeuronId = function() { + return /** @type{?proto.ic_nns_common.pb.v1.NeuronId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.NeuronId, 3)); +}; + + +/** + * @param {?proto.ic_nns_common.pb.v1.NeuronId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.Migration} returns this +*/ +proto.ic_nns_governance.pb.v1.Governance.Migration.prototype.setLastNeuronId = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.ic_nns_governance.pb.v1.Governance.Migration.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance.Migration} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.Migration.prototype.clearLastNeuronId = function() { + return this.setLastNeuronId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Governance.Migration.prototype.hasLastNeuronId = function() { + return jspb.Message.getField(this, 3) != null; }; + + if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -1702,8 +31463,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.Governance.Migrations.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.Governance.Migrations.toObject(opt_includeInstance, this); }; @@ -1712,18 +31473,14 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.toObject = functi * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.Governance.Migrations} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.Governance.Migrations.toObject = function(includeInstance, msg) { var f, obj = { - increaseDissolveDelay: (f = msg.getIncreaseDissolveDelay()) && proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.toObject(includeInstance, f), - startDissolving: (f = msg.getStartDissolving()) && proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.toObject(includeInstance, f), - stopDissolving: (f = msg.getStopDissolving()) && proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.toObject(includeInstance, f), - addHotKey: (f = msg.getAddHotKey()) && proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.toObject(includeInstance, f), - removeHotKey: (f = msg.getRemoveHotKey()) && proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.toObject(includeInstance, f), - joinCommunityFund: (f = msg.getJoinCommunityFund()) && proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.toObject(includeInstance, f) + neuronIndexesMigration: (f = msg.getNeuronIndexesMigration()) && proto.ic_nns_governance.pb.v1.Governance.Migration.toObject(includeInstance, f), + copyInactiveNeuronsToStableMemoryMigration: (f = msg.getCopyInactiveNeuronsToStableMemoryMigration()) && proto.ic_nns_governance.pb.v1.Governance.Migration.toObject(includeInstance, f) }; if (includeInstance) { @@ -1737,58 +31494,38 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.toObject = function(include /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} + * @return {!proto.ic_nns_governance.pb.v1.Governance.Migrations} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.deserializeBinary = function(bytes) { +proto.ic_nns_governance.pb.v1.Governance.Migrations.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.Configure; - return proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_nns_governance.pb.v1.Governance.Migrations; + return proto.ic_nns_governance.pb.v1.Governance.Migrations.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.Governance.Migrations} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} - */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.deserializeBinaryFromReader); - msg.setIncreaseDissolveDelay(value); - break; - case 2: - var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.deserializeBinaryFromReader); - msg.setStartDissolving(value); - break; - case 3: - var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.deserializeBinaryFromReader); - msg.setStopDissolving(value); - break; - case 4: - var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.deserializeBinaryFromReader); - msg.setAddHotKey(value); + * @return {!proto.ic_nns_governance.pb.v1.Governance.Migrations} + */ +proto.ic_nns_governance.pb.v1.Governance.Migrations.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { break; - case 5: - var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.deserializeBinaryFromReader); - msg.setRemoveHotKey(value); + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_nns_governance.pb.v1.Governance.Migration; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.Governance.Migration.deserializeBinaryFromReader); + msg.setNeuronIndexesMigration(value); break; - case 7: - var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.deserializeBinaryFromReader); - msg.setJoinCommunityFund(value); + case 2: + var value = new proto.ic_nns_governance.pb.v1.Governance.Migration; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.Governance.Migration.deserializeBinaryFromReader); + msg.setCopyInactiveNeuronsToStableMemoryMigration(value); break; default: reader.skipField(); @@ -1803,9 +31540,9 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.deserializeBinaryFromReader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.Governance.Migrations.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.Governance.Migrations.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1813,88 +31550,56 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.serializeBinary = /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} message + * @param {!proto.ic_nns_governance.pb.v1.Governance.Migrations} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.Governance.Migrations.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getIncreaseDissolveDelay(); + f = message.getNeuronIndexesMigration(); if (f != null) { writer.writeMessage( 1, f, - proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay.serializeBinaryToWriter + proto.ic_nns_governance.pb.v1.Governance.Migration.serializeBinaryToWriter ); } - f = message.getStartDissolving(); + f = message.getCopyInactiveNeuronsToStableMemoryMigration(); if (f != null) { writer.writeMessage( 2, f, - proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving.serializeBinaryToWriter - ); - } - f = message.getStopDissolving(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving.serializeBinaryToWriter - ); - } - f = message.getAddHotKey(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey.serializeBinaryToWriter - ); - } - f = message.getRemoveHotKey(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey.serializeBinaryToWriter - ); - } - f = message.getJoinCommunityFund(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.serializeBinaryToWriter + proto.ic_nns_governance.pb.v1.Governance.Migration.serializeBinaryToWriter ); } }; /** - * optional IncreaseDissolveDelay increase_dissolve_delay = 1; - * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay} + * optional Migration neuron_indexes_migration = 1; + * @return {?proto.ic_nns_governance.pb.v1.Governance.Migration} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.getIncreaseDissolveDelay = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay, 1)); +proto.ic_nns_governance.pb.v1.Governance.Migrations.prototype.getNeuronIndexesMigration = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.Governance.Migration} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.Governance.Migration, 1)); }; /** - * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.IncreaseDissolveDelay|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this + * @param {?proto.ic_nns_governance.pb.v1.Governance.Migration|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.Migrations} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.setIncreaseDissolveDelay = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.oneofGroups_[0], value); +proto.ic_nns_governance.pb.v1.Governance.Migrations.prototype.setNeuronIndexesMigration = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this + * @return {!proto.ic_nns_governance.pb.v1.Governance.Migrations} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.clearIncreaseDissolveDelay = function() { - return this.setIncreaseDissolveDelay(undefined); +proto.ic_nns_governance.pb.v1.Governance.Migrations.prototype.clearNeuronIndexesMigration = function() { + return this.setNeuronIndexesMigration(undefined); }; @@ -1902,36 +31607,36 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.clearIncreaseDiss * Returns whether this field is set. * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.hasIncreaseDissolveDelay = function() { +proto.ic_nns_governance.pb.v1.Governance.Migrations.prototype.hasNeuronIndexesMigration = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional StartDissolving start_dissolving = 2; - * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving} + * optional Migration copy_inactive_neurons_to_stable_memory_migration = 2; + * @return {?proto.ic_nns_governance.pb.v1.Governance.Migration} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.getStartDissolving = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving, 2)); +proto.ic_nns_governance.pb.v1.Governance.Migrations.prototype.getCopyInactiveNeuronsToStableMemoryMigration = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.Governance.Migration} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.Governance.Migration, 2)); }; /** - * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.StartDissolving|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this + * @param {?proto.ic_nns_governance.pb.v1.Governance.Migration|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.Migrations} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.setStartDissolving = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.oneofGroups_[0], value); +proto.ic_nns_governance.pb.v1.Governance.Migrations.prototype.setCopyInactiveNeuronsToStableMemoryMigration = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this + * @return {!proto.ic_nns_governance.pb.v1.Governance.Migrations} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.clearStartDissolving = function() { - return this.setStartDissolving(undefined); +proto.ic_nns_governance.pb.v1.Governance.Migrations.prototype.clearCopyInactiveNeuronsToStableMemoryMigration = function() { + return this.setCopyInactiveNeuronsToStableMemoryMigration(undefined); }; @@ -1939,159 +31644,129 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.clearStartDissolv * Returns whether this field is set. * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.hasStartDissolving = function() { +proto.ic_nns_governance.pb.v1.Governance.Migrations.prototype.hasCopyInactiveNeuronsToStableMemoryMigration = function() { return jspb.Message.getField(this, 2) != null; }; -/** - * optional StopDissolving stop_dissolving = 3; - * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving} - */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.getStopDissolving = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving, 3)); -}; - - -/** - * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.StopDissolving|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this -*/ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.setStopDissolving = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this - */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.clearStopDissolving = function() { - return this.setStopDissolving(undefined); -}; - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.hasStopDissolving = function() { - return jspb.Message.getField(this, 3) != null; -}; +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional AddHotKey add_hot_key = 4; - * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey} + * 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.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.getAddHotKey = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey, 4)); -}; - - -/** - * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.AddHotKey|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this -*/ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.setAddHotKey = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.oneofGroups_[0], value); +proto.ic_nns_governance.pb.v1.Governance.FollowersMap.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.Governance.FollowersMap.toObject(opt_includeInstance, this); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns 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.ic_nns_governance.pb.v1.Governance.FollowersMap} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.clearAddHotKey = function() { - return this.setAddHotKey(undefined); -}; - +proto.ic_nns_governance.pb.v1.Governance.FollowersMap.toObject = function(includeInstance, msg) { + var f, obj = { + followersMapMap: (f = msg.getFollowersMapMap()) ? f.toObject(includeInstance, proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers.toObject) : [] + }; -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.hasAddHotKey = function() { - return jspb.Message.getField(this, 4) != null; + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional RemoveHotKey remove_hot_key = 5; - * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_nns_governance.pb.v1.Governance.FollowersMap} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.getRemoveHotKey = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey, 5)); -}; - - -/** - * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.RemoveHotKey|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this -*/ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.setRemoveHotKey = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.oneofGroups_[0], value); +proto.ic_nns_governance.pb.v1.Governance.FollowersMap.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.Governance.FollowersMap; + return proto.ic_nns_governance.pb.v1.Governance.FollowersMap.deserializeBinaryFromReader(msg, reader); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.Governance.FollowersMap} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.Governance.FollowersMap} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.clearRemoveHotKey = function() { - return this.setRemoveHotKey(undefined); +proto.ic_nns_governance.pb.v1.Governance.FollowersMap.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = msg.getFollowersMapMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readFixed64, jspb.BinaryReader.prototype.readMessage, proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers.deserializeBinaryFromReader, 0, new proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers()); + }); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * Returns whether this field is set. - * @return {boolean} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.hasRemoveHotKey = function() { - return jspb.Message.getField(this, 5) != null; +proto.ic_nns_governance.pb.v1.Governance.FollowersMap.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.Governance.FollowersMap.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * optional JoinCommunityFund join_community_fund = 7; - * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.Governance.FollowersMap} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.getJoinCommunityFund = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund, 7)); -}; - - -/** - * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this -*/ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.setJoinCommunityFund = function(value) { - return jspb.Message.setOneofWrapperField(this, 7, proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.oneofGroups_[0], value); +proto.ic_nns_governance.pb.v1.Governance.FollowersMap.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getFollowersMapMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeFixed64, jspb.BinaryWriter.prototype.writeMessage, proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers.serializeBinaryToWriter); + } }; -/** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} returns this - */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.clearJoinCommunityFund = function() { - return this.setJoinCommunityFund(undefined); -}; - /** - * Returns whether this field is set. - * @return {boolean} - */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Configure.prototype.hasJoinCommunityFund = function() { - return jspb.Message.getField(this, 7) != null; -}; - - + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers.repeatedFields_ = [1]; @@ -2108,8 +31783,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers.toObject(opt_includeInstance, this); }; @@ -2118,15 +31793,14 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.toObject = function(o * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers.toObject = function(includeInstance, msg) { var f, obj = { - newController: (f = msg.getNewController()) && base_types_pb.PrincipalId.toObject(includeInstance, f), - nonce: jspb.Message.getFieldWithDefault(msg, 2, 0), - percentageToSpawn: jspb.Message.getFieldWithDefault(msg, 3, 0) + followersList: jspb.Message.toObjectList(msg.getFollowersList(), + nns_common_pb.NeuronId.toObject, includeInstance) }; if (includeInstance) { @@ -2140,23 +31814,23 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} + * @return {!proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.deserializeBinary = function(bytes) { +proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn; - return proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers; + return proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} + * @return {!proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2164,17 +31838,9 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.deserializeBinaryFromReader = f var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new base_types_pb.PrincipalId; - reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); - msg.setNewController(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setNonce(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPercentageToSpawn(value); + var value = new nns_common_pb.NeuronId; + reader.readMessage(value,nns_common_pb.NeuronId.deserializeBinaryFromReader); + msg.addFollowers(value); break; default: reader.skipField(); @@ -2189,9 +31855,9 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2199,429 +31865,404 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.serializeBinary = fun /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} message + * @param {!proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getNewController(); - if (f != null) { - writer.writeMessage( + f = message.getFollowersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 1, f, - base_types_pb.PrincipalId.serializeBinaryToWriter - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 2)); - if (f != null) { - writer.writeUint64( - 2, - f - ); - } - f = /** @type {number} */ (jspb.Message.getField(message, 3)); - if (f != null) { - writer.writeUint32( - 3, - f + nns_common_pb.NeuronId.serializeBinaryToWriter ); } }; /** - * optional ic_base_types.pb.v1.PrincipalId new_controller = 1; - * @return {?proto.ic_base_types.pb.v1.PrincipalId} + * repeated ic_nns_common.pb.v1.NeuronId followers = 1; + * @return {!Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.getNewController = function() { - return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( - jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 1)); +proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers.prototype.getFollowersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, nns_common_pb.NeuronId, 1)); }; /** - * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} returns this + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.setNewController = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers.prototype.setFollowersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} returns this + * @param {!proto.ic_nns_common.pb.v1.NeuronId=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_nns_common.pb.v1.NeuronId} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.clearNewController = function() { - return this.setNewController(undefined); +proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers.prototype.addFollowers = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ic_nns_common.pb.v1.NeuronId, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.hasNewController = function() { - return jspb.Message.getField(this, 1) != null; +proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers.prototype.clearFollowersList = function() { + return this.setFollowersList([]); }; /** - * optional uint64 nonce = 2; - * @return {number} + * map followers_map = 1; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.getNonce = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.ic_nns_governance.pb.v1.Governance.FollowersMap.prototype.getFollowersMapMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 1, opt_noLazyCreate, + proto.ic_nns_governance.pb.v1.Governance.FollowersMap.Followers)); }; /** - * @param {number} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} returns this + * Clears values from the map. The map will be non-null. + * @return {!proto.ic_nns_governance.pb.v1.Governance.FollowersMap} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.setNonce = function(value) { - return jspb.Message.setField(this, 2, value); +proto.ic_nns_governance.pb.v1.Governance.FollowersMap.prototype.clearFollowersMapMap = function() { + this.getFollowersMapMap().clear(); + return this; }; /** - * Clears the field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} returns this + * map neurons = 1; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.clearNonce = function() { - return jspb.Message.setField(this, 2, undefined); +proto.ic_nns_governance.pb.v1.Governance.prototype.getNeuronsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 1, opt_noLazyCreate, + proto.ic_nns_governance.pb.v1.Neuron)); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears values from the map. The map will be non-null. + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.hasNonce = function() { - return jspb.Message.getField(this, 2) != null; +proto.ic_nns_governance.pb.v1.Governance.prototype.clearNeuronsMap = function() { + this.getNeuronsMap().clear(); + return this; }; /** - * optional uint32 percentage_to_spawn = 3; - * @return {number} + * map proposals = 2; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.getPercentageToSpawn = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +proto.ic_nns_governance.pb.v1.Governance.prototype.getProposalsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 2, opt_noLazyCreate, + proto.ic_nns_governance.pb.v1.ProposalData)); }; /** - * @param {number} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} returns this + * Clears values from the map. The map will be non-null. + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.setPercentageToSpawn = function(value) { - return jspb.Message.setField(this, 3, value); +proto.ic_nns_governance.pb.v1.Governance.prototype.clearProposalsMap = function() { + this.getProposalsMap().clear(); + return this; }; /** - * Clears the field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} returns this + * repeated NeuronStakeTransfer to_claim_transfers = 3; + * @return {!Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.clearPercentageToSpawn = function() { - return jspb.Message.setField(this, 3, undefined); +proto.ic_nns_governance.pb.v1.Governance.prototype.getToClaimTransfersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ic_nns_governance.pb.v1.NeuronStakeTransfer, 3)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this +*/ +proto.ic_nns_governance.pb.v1.Governance.prototype.setToClaimTransfersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn.prototype.hasPercentageToSpawn = function() { - return jspb.Message.getField(this, 3) != null; +proto.ic_nns_governance.pb.v1.Governance.prototype.addToClaimTransfers = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ic_nns_governance.pb.v1.NeuronStakeTransfer, opt_index); }; +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.prototype.clearToClaimTransfersList = function() { + return this.setToClaimTransfersList([]); +}; + +/** + * optional uint64 wait_for_quiet_threshold_seconds = 5; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.prototype.getWaitForQuietThresholdSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 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} + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.Governance.prototype.setWaitForQuietThresholdSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 5, value); }; /** - * 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.ic_nns_governance.pb.v1.ManageNeuron.Disburse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional NetworkEconomics economics = 8; + * @return {?proto.ic_nns_governance.pb.v1.NetworkEconomics} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.toObject = function(includeInstance, msg) { - var f, obj = { - amount: (f = msg.getAmount()) && proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.toObject(includeInstance, f), - toAccount: (f = msg.getToAccount()) && ledger_pb.AccountIdentifier.toObject(includeInstance, f) - }; +proto.ic_nns_governance.pb.v1.Governance.prototype.getEconomics = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.NetworkEconomics} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.NetworkEconomics, 8)); +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * @param {?proto.ic_nns_governance.pb.v1.NetworkEconomics|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this +*/ +proto.ic_nns_governance.pb.v1.Governance.prototype.setEconomics = function(value) { + return jspb.Message.setWrapperField(this, 8, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse} + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse; - return proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.deserializeBinaryFromReader(msg, reader); +proto.ic_nns_governance.pb.v1.Governance.prototype.clearEconomics = function() { + return this.setEconomics(undefined); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse} + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.deserializeBinaryFromReader); - msg.setAmount(value); - break; - case 2: - var value = new ledger_pb.AccountIdentifier; - reader.readMessage(value,ledger_pb.AccountIdentifier.deserializeBinaryFromReader); - msg.setToAccount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.ic_nns_governance.pb.v1.Governance.prototype.hasEconomics = function() { + return jspb.Message.getField(this, 8) != null; }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional RewardEvent latest_reward_event = 9; + * @return {?proto.ic_nns_governance.pb.v1.RewardEvent} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.ic_nns_governance.pb.v1.Governance.prototype.getLatestRewardEvent = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.RewardEvent} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.RewardEvent, 9)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {?proto.ic_nns_governance.pb.v1.RewardEvent|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this +*/ +proto.ic_nns_governance.pb.v1.Governance.prototype.setLatestRewardEvent = function(value) { + return jspb.Message.setWrapperField(this, 9, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAmount(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.serializeBinaryToWriter - ); - } - f = message.getToAccount(); - if (f != null) { - writer.writeMessage( - 2, - f, - ledger_pb.AccountIdentifier.serializeBinaryToWriter - ); - } +proto.ic_nns_governance.pb.v1.Governance.prototype.clearLatestRewardEvent = function() { + return this.setLatestRewardEvent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Governance.prototype.hasLatestRewardEvent = function() { + return jspb.Message.getField(this, 9) != null; +}; + + +/** + * map in_flight_commands = 10; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.ic_nns_governance.pb.v1.Governance.prototype.getInFlightCommandsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 10, opt_noLazyCreate, + proto.ic_nns_governance.pb.v1.Governance.NeuronInFlightCommand)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.prototype.clearInFlightCommandsMap = function() { + this.getInFlightCommandsMap().clear(); + return this; }; +/** + * optional uint64 genesis_timestamp_seconds = 11; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.prototype.getGenesisTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 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} + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.Governance.prototype.setGenesisTimestampSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 11, value); }; /** - * 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.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * repeated NodeProvider node_providers = 12; + * @return {!Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.toObject = function(includeInstance, msg) { - var f, obj = { - e8s: jspb.Message.getFieldWithDefault(msg, 1, "0") - }; +proto.ic_nns_governance.pb.v1.Governance.prototype.getNodeProvidersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ic_nns_governance.pb.v1.NodeProvider, 12)); +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this +*/ +proto.ic_nns_governance.pb.v1.Governance.prototype.setNodeProvidersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 12, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount} + * @param {!proto.ic_nns_governance.pb.v1.NodeProvider=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_nns_governance.pb.v1.NodeProvider} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount; - return proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.deserializeBinaryFromReader(msg, reader); +proto.ic_nns_governance.pb.v1.Governance.prototype.addNodeProviders = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.ic_nns_governance.pb.v1.NodeProvider, opt_index); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount} + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setE8s(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.ic_nns_governance.pb.v1.Governance.prototype.clearNodeProvidersList = function() { + return this.setNodeProvidersList([]); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * map default_followees = 13; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.ic_nns_governance.pb.v1.Governance.prototype.getDefaultFolloweesMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 13, opt_noLazyCreate, + proto.ic_nns_governance.pb.v1.Neuron.Followees)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears values from the map. The map will be non-null. + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getE8s(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } +proto.ic_nns_governance.pb.v1.Governance.prototype.clearDefaultFolloweesMap = function() { + this.getDefaultFolloweesMap().clear(); + return this; }; /** - * optional uint64 e8s = 1; - * @return {string} + * optional uint64 short_voting_period_seconds = 14; + * @return {number} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.prototype.getE8s = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.ic_nns_governance.pb.v1.Governance.prototype.getShortVotingPeriodSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); }; /** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount} returns this + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount.prototype.setE8s = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.ic_nns_governance.pb.v1.Governance.prototype.setShortVotingPeriodSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 14, value); }; /** - * optional Amount amount = 1; - * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount} + * optional uint64 neuron_management_voting_period_seconds = 25; + * @return {number} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.prototype.getAmount = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount, 1)); +proto.ic_nns_governance.pb.v1.Governance.prototype.getNeuronManagementVotingPeriodSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 25, 0)); }; /** - * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.Amount|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse} returns this -*/ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.prototype.setAmount = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.prototype.setNeuronManagementVotingPeriodSeconds = function(value) { + return jspb.Message.setField(this, 25, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse} returns this + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.prototype.clearAmount = function() { - return this.setAmount(undefined); +proto.ic_nns_governance.pb.v1.Governance.prototype.clearNeuronManagementVotingPeriodSeconds = function() { + return jspb.Message.setField(this, 25, undefined); }; @@ -2629,36 +32270,36 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.prototype.clearAmount = func * Returns whether this field is set. * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.prototype.hasAmount = function() { - return jspb.Message.getField(this, 1) != null; +proto.ic_nns_governance.pb.v1.Governance.prototype.hasNeuronManagementVotingPeriodSeconds = function() { + return jspb.Message.getField(this, 25) != null; }; /** - * optional ic_ledger.pb.v1.AccountIdentifier to_account = 2; - * @return {?proto.ic_ledger.pb.v1.AccountIdentifier} + * optional GovernanceCachedMetrics metrics = 15; + * @return {?proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.prototype.getToAccount = function() { - return /** @type{?proto.ic_ledger.pb.v1.AccountIdentifier} */ ( - jspb.Message.getWrapperField(this, ledger_pb.AccountIdentifier, 2)); +proto.ic_nns_governance.pb.v1.Governance.prototype.getMetrics = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics, 15)); }; /** - * @param {?proto.ic_ledger.pb.v1.AccountIdentifier|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse} returns this + * @param {?proto.ic_nns_governance.pb.v1.Governance.GovernanceCachedMetrics|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.prototype.setToAccount = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.ic_nns_governance.pb.v1.Governance.prototype.setMetrics = function(value) { + return jspb.Message.setWrapperField(this, 15, value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse} returns this + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.prototype.clearToAccount = function() { - return this.setToAccount(undefined); +proto.ic_nns_governance.pb.v1.Governance.prototype.clearMetrics = function() { + return this.setMetrics(undefined); }; @@ -2666,352 +32307,278 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.prototype.clearToAccount = f * Returns whether this field is set. * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse.prototype.hasToAccount = function() { - return jspb.Message.getField(this, 2) != null; +proto.ic_nns_governance.pb.v1.Governance.prototype.hasMetrics = function() { + return jspb.Message.getField(this, 15) != null; }; - /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * optional MostRecentMonthlyNodeProviderRewards most_recent_monthly_node_provider_rewards = 16; + * @return {?proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.repeatedFields_ = [2]; +proto.ic_nns_governance.pb.v1.Governance.prototype.getMostRecentMonthlyNodeProviderRewards = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards, 16)); +}; + +/** + * @param {?proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this +*/ +proto.ic_nns_governance.pb.v1.Governance.prototype.setMostRecentMonthlyNodeProviderRewards = function(value) { + return jspb.Message.setWrapperField(this, 16, 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} + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.Governance.prototype.clearMostRecentMonthlyNodeProviderRewards = function() { + return this.setMostRecentMonthlyNodeProviderRewards(undefined); }; /** - * 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.ic_nns_governance.pb.v1.ManageNeuron.Follow} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.toObject = function(includeInstance, msg) { - var f, obj = { - topic: jspb.Message.getFieldWithDefault(msg, 1, 0), - followeesList: jspb.Message.toObjectList(msg.getFolloweesList(), - base_types_pb.NeuronId.toObject, includeInstance) - }; +proto.ic_nns_governance.pb.v1.Governance.prototype.hasMostRecentMonthlyNodeProviderRewards = function() { + return jspb.Message.getField(this, 16) != null; +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * optional int32 cached_daily_maturity_modulation_basis_points = 17; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.Governance.prototype.getCachedDailyMaturityModulationBasisPoints = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Follow} + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.Follow; - return proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.deserializeBinaryFromReader(msg, reader); +proto.ic_nns_governance.pb.v1.Governance.prototype.setCachedDailyMaturityModulationBasisPoints = function(value) { + return jspb.Message.setField(this, 17, value); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Follow} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Follow} + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.ic_nns_governance.pb.v1.Topic} */ (reader.readEnum()); - msg.setTopic(value); - break; - case 2: - var value = new base_types_pb.NeuronId; - reader.readMessage(value,base_types_pb.NeuronId.deserializeBinaryFromReader); - msg.addFollowees(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.ic_nns_governance.pb.v1.Governance.prototype.clearCachedDailyMaturityModulationBasisPoints = function() { + return jspb.Message.setField(this, 17, undefined); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.ic_nns_governance.pb.v1.Governance.prototype.hasCachedDailyMaturityModulationBasisPoints = function() { + return jspb.Message.getField(this, 17) != null; }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Follow} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional uint64 maturity_modulation_last_updated_at_timestamp_seconds = 18; + * @return {number} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTopic(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getFolloweesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - base_types_pb.NeuronId.serializeBinaryToWriter - ); - } +proto.ic_nns_governance.pb.v1.Governance.prototype.getMaturityModulationLastUpdatedAtTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.prototype.setMaturityModulationLastUpdatedAtTimestampSeconds = function(value) { + return jspb.Message.setField(this, 18, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.prototype.clearMaturityModulationLastUpdatedAtTimestampSeconds = function() { + return jspb.Message.setField(this, 18, undefined); }; /** - * optional Topic topic = 1; - * @return {!proto.ic_nns_governance.pb.v1.Topic} + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.prototype.getTopic = function() { - return /** @type {!proto.ic_nns_governance.pb.v1.Topic} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.ic_nns_governance.pb.v1.Governance.prototype.hasMaturityModulationLastUpdatedAtTimestampSeconds = function() { + return jspb.Message.getField(this, 18) != null; }; /** - * @param {!proto.ic_nns_governance.pb.v1.Topic} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Follow} returns this + * optional bool spawning_neurons = 19; + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.prototype.setTopic = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); +proto.ic_nns_governance.pb.v1.Governance.prototype.getSpawningNeurons = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 19, false)); }; /** - * repeated ic_base_types.pb.v1.NeuronId followees = 2; - * @return {!Array} + * @param {boolean} value + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.prototype.getFolloweesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, base_types_pb.NeuronId, 2)); +proto.ic_nns_governance.pb.v1.Governance.prototype.setSpawningNeurons = function(value) { + return jspb.Message.setField(this, 19, value); }; /** - * @param {!Array} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Follow} returns this -*/ -proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.prototype.setFolloweesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.prototype.clearSpawningNeurons = function() { + return jspb.Message.setField(this, 19, undefined); }; /** - * @param {!proto.ic_base_types.pb.v1.NeuronId=} opt_value - * @param {number=} opt_index - * @return {!proto.ic_base_types.pb.v1.NeuronId} + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.prototype.addFollowees = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.ic_base_types.pb.v1.NeuronId, opt_index); +proto.ic_nns_governance.pb.v1.Governance.prototype.hasSpawningNeurons = function() { + return jspb.Message.getField(this, 19) != null; }; /** - * Clears the list making it empty but non-null. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Follow} returns this + * optional MakingSnsProposal making_sns_proposal = 20; + * @return {?proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Follow.prototype.clearFolloweesList = function() { - return this.setFolloweesList([]); +proto.ic_nns_governance.pb.v1.Governance.prototype.getMakingSnsProposal = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal, 20)); }; +/** + * @param {?proto.ic_nns_governance.pb.v1.Governance.MakingSnsProposal|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this +*/ +proto.ic_nns_governance.pb.v1.Governance.prototype.setMakingSnsProposal = function(value) { + return jspb.Message.setWrapperField(this, 20, value); +}; + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this + */ +proto.ic_nns_governance.pb.v1.Governance.prototype.clearMakingSnsProposal = function() { + return this.setMakingSnsProposal(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} + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.Governance.prototype.hasMakingSnsProposal = function() { + return jspb.Message.getField(this, 20) != null; }; /** - * 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.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * optional Migrations migrations = 21; + * @return {?proto.ic_nns_governance.pb.v1.Governance.Migrations} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.toObject = function(includeInstance, msg) { - var f, obj = { - proposal: (f = msg.getProposal()) && base_types_pb.ProposalId.toObject(includeInstance, f), - vote: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; +proto.ic_nns_governance.pb.v1.Governance.prototype.getMigrations = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.Governance.Migrations} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.Governance.Migrations, 21)); +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * @param {?proto.ic_nns_governance.pb.v1.Governance.Migrations|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this +*/ +proto.ic_nns_governance.pb.v1.Governance.prototype.setMigrations = function(value) { + return jspb.Message.setWrapperField(this, 21, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote} + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote; - return proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.deserializeBinaryFromReader(msg, reader); +proto.ic_nns_governance.pb.v1.Governance.prototype.clearMigrations = function() { + return this.setMigrations(undefined); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote} + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new base_types_pb.ProposalId; - reader.readMessage(value,base_types_pb.ProposalId.deserializeBinaryFromReader); - msg.setProposal(value); - break; - case 2: - var value = /** @type {!proto.ic_nns_governance.pb.v1.Vote} */ (reader.readEnum()); - msg.setVote(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.ic_nns_governance.pb.v1.Governance.prototype.hasMigrations = function() { + return jspb.Message.getField(this, 21) != null; }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * map topic_followee_index = 22; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.ic_nns_governance.pb.v1.Governance.prototype.getTopicFolloweeIndexMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 22, opt_noLazyCreate, + proto.ic_nns_governance.pb.v1.Governance.FollowersMap)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears values from the map. The map will be non-null. + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProposal(); - if (f != null) { - writer.writeMessage( - 1, - f, - base_types_pb.ProposalId.serializeBinaryToWriter - ); - } - f = message.getVote(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } +proto.ic_nns_governance.pb.v1.Governance.prototype.clearTopicFolloweeIndexMap = function() { + this.getTopicFolloweeIndexMap().clear(); + return this; }; /** - * optional ic_base_types.pb.v1.ProposalId proposal = 1; - * @return {?proto.ic_base_types.pb.v1.ProposalId} + * optional XdrConversionRate xdr_conversion_rate = 26; + * @return {?proto.ic_nns_governance.pb.v1.XdrConversionRate} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.prototype.getProposal = function() { - return /** @type{?proto.ic_base_types.pb.v1.ProposalId} */ ( - jspb.Message.getWrapperField(this, base_types_pb.ProposalId, 1)); +proto.ic_nns_governance.pb.v1.Governance.prototype.getXdrConversionRate = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.XdrConversionRate} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.XdrConversionRate, 26)); }; /** - * @param {?proto.ic_base_types.pb.v1.ProposalId|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote} returns this + * @param {?proto.ic_nns_governance.pb.v1.XdrConversionRate|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.prototype.setProposal = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.ic_nns_governance.pb.v1.Governance.prototype.setXdrConversionRate = function(value) { + return jspb.Message.setWrapperField(this, 26, value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote} returns this + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.prototype.clearProposal = function() { - return this.setProposal(undefined); +proto.ic_nns_governance.pb.v1.Governance.prototype.clearXdrConversionRate = function() { + return this.setXdrConversionRate(undefined); }; @@ -3019,26 +32586,45 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.prototype.clearProposal * Returns whether this field is set. * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.prototype.hasProposal = function() { - return jspb.Message.getField(this, 1) != null; +proto.ic_nns_governance.pb.v1.Governance.prototype.hasXdrConversionRate = function() { + return jspb.Message.getField(this, 26) != null; }; /** - * optional Vote vote = 2; - * @return {!proto.ic_nns_governance.pb.v1.Vote} + * optional RestoreAgingSummary restore_aging_summary = 27; + * @return {?proto.ic_nns_governance.pb.v1.RestoreAgingSummary} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.prototype.getVote = function() { - return /** @type {!proto.ic_nns_governance.pb.v1.Vote} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.ic_nns_governance.pb.v1.Governance.prototype.getRestoreAgingSummary = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.RestoreAgingSummary} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.RestoreAgingSummary, 27)); }; /** - * @param {!proto.ic_nns_governance.pb.v1.Vote} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote} returns this + * @param {?proto.ic_nns_governance.pb.v1.RestoreAgingSummary|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this +*/ +proto.ic_nns_governance.pb.v1.Governance.prototype.setRestoreAgingSummary = function(value) { + return jspb.Message.setWrapperField(this, 27, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.Governance} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote.prototype.setVote = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); +proto.ic_nns_governance.pb.v1.Governance.prototype.clearRestoreAgingSummary = function() { + return this.setRestoreAgingSummary(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.Governance.prototype.hasRestoreAgingSummary = function() { + return jspb.Message.getField(this, 27) != null; }; @@ -3058,8 +32644,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.XdrConversionRate.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.XdrConversionRate.toObject(opt_includeInstance, this); }; @@ -3068,13 +32654,14 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.prototype.toObject = function(o * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Merge} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.XdrConversionRate} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.XdrConversionRate.toObject = function(includeInstance, msg) { var f, obj = { - sourceNeuronId: (f = msg.getSourceNeuronId()) && base_types_pb.NeuronId.toObject(includeInstance, f) + timestampSeconds: jspb.Message.getFieldWithDefault(msg, 1, 0), + xdrPermyriadPerIcp: jspb.Message.getFieldWithDefault(msg, 2, 0) }; if (includeInstance) { @@ -3088,23 +32675,23 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Merge} + * @return {!proto.ic_nns_governance.pb.v1.XdrConversionRate} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.deserializeBinary = function(bytes) { +proto.ic_nns_governance.pb.v1.XdrConversionRate.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.Merge; - return proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_nns_governance.pb.v1.XdrConversionRate; + return proto.ic_nns_governance.pb.v1.XdrConversionRate.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Merge} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.XdrConversionRate} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Merge} + * @return {!proto.ic_nns_governance.pb.v1.XdrConversionRate} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_nns_governance.pb.v1.XdrConversionRate.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3112,9 +32699,12 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.deserializeBinaryFromReader = f var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new base_types_pb.NeuronId; - reader.readMessage(value,base_types_pb.NeuronId.deserializeBinaryFromReader); - msg.setSourceNeuronId(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setTimestampSeconds(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setXdrPermyriadPerIcp(value); break; default: reader.skipField(); @@ -3129,9 +32719,9 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.XdrConversionRate.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.XdrConversionRate.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3139,48 +32729,53 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.prototype.serializeBinary = fun /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.Merge} message + * @param {!proto.ic_nns_governance.pb.v1.XdrConversionRate} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.XdrConversionRate.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getSourceNeuronId(); + f = /** @type {number} */ (jspb.Message.getField(message, 1)); if (f != null) { - writer.writeMessage( + writer.writeUint64( 1, - f, - base_types_pb.NeuronId.serializeBinaryToWriter + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeUint64( + 2, + f ); } }; /** - * optional ic_base_types.pb.v1.NeuronId source_neuron_id = 1; - * @return {?proto.ic_base_types.pb.v1.NeuronId} + * optional uint64 timestamp_seconds = 1; + * @return {number} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.prototype.getSourceNeuronId = function() { - return /** @type{?proto.ic_base_types.pb.v1.NeuronId} */ ( - jspb.Message.getWrapperField(this, base_types_pb.NeuronId, 1)); +proto.ic_nns_governance.pb.v1.XdrConversionRate.prototype.getTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {?proto.ic_base_types.pb.v1.NeuronId|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Merge} returns this -*/ -proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.prototype.setSourceNeuronId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.XdrConversionRate} returns this + */ +proto.ic_nns_governance.pb.v1.XdrConversionRate.prototype.setTimestampSeconds = function(value) { + return jspb.Message.setField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.Merge} returns this + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.XdrConversionRate} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.prototype.clearSourceNeuronId = function() { - return this.setSourceNeuronId(undefined); +proto.ic_nns_governance.pb.v1.XdrConversionRate.prototype.clearTimestampSeconds = function() { + return jspb.Message.setField(this, 1, undefined); }; @@ -3188,11 +32783,54 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.prototype.clearSourceNeuronId = * Returns whether this field is set. * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.Merge.prototype.hasSourceNeuronId = function() { +proto.ic_nns_governance.pb.v1.XdrConversionRate.prototype.hasTimestampSeconds = function() { return jspb.Message.getField(this, 1) != null; }; +/** + * optional uint64 xdr_permyriad_per_icp = 2; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.XdrConversionRate.prototype.getXdrPermyriadPerIcp = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.XdrConversionRate} returns this + */ +proto.ic_nns_governance.pb.v1.XdrConversionRate.prototype.setXdrPermyriadPerIcp = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.XdrConversionRate} returns this + */ +proto.ic_nns_governance.pb.v1.XdrConversionRate.prototype.clearXdrPermyriadPerIcp = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.XdrConversionRate.prototype.hasXdrPermyriadPerIcp = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_nns_governance.pb.v1.ListProposalInfo.repeatedFields_ = [3,4,5]; @@ -3208,9 +32846,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} - */ -proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.toObject(opt_includeInstance, this); + */ +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ListProposalInfo.toObject(opt_includeInstance, this); }; @@ -3219,13 +32857,19 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.prototype.toObject = fu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.ListProposalInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.ListProposalInfo.toObject = function(includeInstance, msg) { var f, obj = { - percentageToMerge: jspb.Message.getFieldWithDefault(msg, 1, 0) + limit: jspb.Message.getFieldWithDefault(msg, 1, 0), + beforeProposal: (f = msg.getBeforeProposal()) && nns_common_pb.ProposalId.toObject(includeInstance, f), + excludeTopicList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, + includeRewardStatusList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f, + includeStatusList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, + includeAllManageNeuronProposals: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), + omitLargeFields: jspb.Message.getBooleanFieldWithDefault(msg, 7, false) }; if (includeInstance) { @@ -3239,23 +32883,23 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.toObject = function(inc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity} + * @return {!proto.ic_nns_governance.pb.v1.ListProposalInfo} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.deserializeBinary = function(bytes) { +proto.ic_nns_governance.pb.v1.ListProposalInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity; - return proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_nns_governance.pb.v1.ListProposalInfo; + return proto.ic_nns_governance.pb.v1.ListProposalInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.ListProposalInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity} + * @return {!proto.ic_nns_governance.pb.v1.ListProposalInfo} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_nns_governance.pb.v1.ListProposalInfo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3264,7 +32908,38 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.deserializeBinaryFromRe switch (field) { case 1: var value = /** @type {number} */ (reader.readUint32()); - msg.setPercentageToMerge(value); + msg.setLimit(value); + break; + case 2: + var value = new nns_common_pb.ProposalId; + reader.readMessage(value,nns_common_pb.ProposalId.deserializeBinaryFromReader); + msg.setBeforeProposal(value); + break; + case 3: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]); + for (var i = 0; i < values.length; i++) { + msg.addExcludeTopic(values[i]); + } + break; + case 4: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]); + for (var i = 0; i < values.length; i++) { + msg.addIncludeRewardStatus(values[i]); + } + break; + case 5: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]); + for (var i = 0; i < values.length; i++) { + msg.addIncludeStatus(values[i]); + } + break; + case 6: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIncludeAllManageNeuronProposals(value); + break; + case 7: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setOmitLargeFields(value); break; default: reader.skipField(); @@ -3279,9 +32954,9 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.deserializeBinaryFromRe * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.ListProposalInfo.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3289,263 +32964,255 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.prototype.serializeBina /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity} message + * @param {!proto.ic_nns_governance.pb.v1.ListProposalInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.ListProposalInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getPercentageToMerge(); + f = message.getLimit(); if (f !== 0) { writer.writeUint32( 1, f ); } + f = message.getBeforeProposal(); + if (f != null) { + writer.writeMessage( + 2, + f, + nns_common_pb.ProposalId.serializeBinaryToWriter + ); + } + f = message.getExcludeTopicList(); + if (f.length > 0) { + writer.writePackedEnum( + 3, + f + ); + } + f = message.getIncludeRewardStatusList(); + if (f.length > 0) { + writer.writePackedEnum( + 4, + f + ); + } + f = message.getIncludeStatusList(); + if (f.length > 0) { + writer.writePackedEnum( + 5, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeBool( + 6, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 7)); + if (f != null) { + writer.writeBool( + 7, + f + ); + } }; /** - * optional uint32 percentage_to_merge = 1; + * optional uint32 limit = 1; * @return {number} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.prototype.getPercentageToMerge = function() { +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.getLimit = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity} returns this + * @return {!proto.ic_nns_governance.pb.v1.ListProposalInfo} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity.prototype.setPercentageToMerge = function(value) { +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.setLimit = 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} + * optional ic_nns_common.pb.v1.ProposalId before_proposal = 2; + * @return {?proto.ic_nns_common.pb.v1.ProposalId} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.getBeforeProposal = function() { + return /** @type{?proto.ic_nns_common.pb.v1.ProposalId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.ProposalId, 2)); }; /** - * 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.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + * @param {?proto.ic_nns_common.pb.v1.ProposalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ListProposalInfo} returns this +*/ +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.setBeforeProposal = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund} + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ListProposalInfo} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund; - return proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.deserializeBinaryFromReader(msg, reader); +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.clearBeforeProposal = function() { + return this.setBeforeProposal(undefined); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund} + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.hasBeforeProposal = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * repeated Topic exclude_topic = 3; + * @return {!Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.getExcludeTopicList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.ListProposalInfo} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.JoinCommunityFund.serializeBinaryToWriter = function(message, writer) { - var f = undefined; +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.setExcludeTopicList = function(value) { + return jspb.Message.setField(this, 3, value || []); }; /** - * optional ic_base_types.pb.v1.NeuronId id = 1; - * @return {?proto.ic_base_types.pb.v1.NeuronId} + * @param {!proto.ic_nns_governance.pb.v1.Topic} value + * @param {number=} opt_index + * @return {!proto.ic_nns_governance.pb.v1.ListProposalInfo} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getId = function() { - return /** @type{?proto.ic_base_types.pb.v1.NeuronId} */ ( - jspb.Message.getWrapperField(this, base_types_pb.NeuronId, 1)); +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.addExcludeTopic = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); }; /** - * @param {?proto.ic_base_types.pb.v1.NeuronId|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this -*/ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.ListProposalInfo} returns this + */ +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.clearExcludeTopicList = function() { + return this.setExcludeTopicList([]); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + * repeated ProposalRewardStatus include_reward_status = 4; + * @return {!Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearId = function() { - return this.setId(undefined); +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.getIncludeRewardStatusList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.ListProposalInfo} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasId = function() { - return jspb.Message.getField(this, 1) != null; +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.setIncludeRewardStatusList = function(value) { + return jspb.Message.setField(this, 4, value || []); }; /** - * optional bytes subaccount = 11; - * @return {!(string|Uint8Array)} + * @param {!proto.ic_nns_governance.pb.v1.ProposalRewardStatus} value + * @param {number=} opt_index + * @return {!proto.ic_nns_governance.pb.v1.ListProposalInfo} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getSubaccount = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 11, "")); +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.addIncludeRewardStatus = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); }; /** - * optional bytes subaccount = 11; - * This is a type-conversion wrapper around `getSubaccount()` - * @return {string} + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.ListProposalInfo} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getSubaccount_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSubaccount())); +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.clearIncludeRewardStatusList = function() { + return this.setIncludeRewardStatusList([]); }; /** - * optional bytes subaccount = 11; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSubaccount()` - * @return {!Uint8Array} + * repeated ProposalStatus include_status = 5; + * @return {!Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getSubaccount_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSubaccount())); +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.getIncludeStatusList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 5)); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.ListProposalInfo} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setSubaccount = function(value) { - return jspb.Message.setOneofField(this, 11, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[0], value); +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.setIncludeStatusList = function(value) { + return jspb.Message.setField(this, 5, value || []); }; /** - * Clears the field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + * @param {!proto.ic_nns_governance.pb.v1.ProposalStatus} value + * @param {number=} opt_index + * @return {!proto.ic_nns_governance.pb.v1.ListProposalInfo} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearSubaccount = function() { - return jspb.Message.setOneofField(this, 11, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[0], undefined); +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.addIncludeStatus = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 5, value, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.ListProposalInfo} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasSubaccount = function() { - return jspb.Message.getField(this, 11) != null; +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.clearIncludeStatusList = function() { + return this.setIncludeStatusList([]); }; /** - * optional ic_base_types.pb.v1.NeuronId neuron_id = 12; - * @return {?proto.ic_base_types.pb.v1.NeuronId} + * optional bool include_all_manage_neuron_proposals = 6; + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getNeuronId = function() { - return /** @type{?proto.ic_base_types.pb.v1.NeuronId} */ ( - jspb.Message.getWrapperField(this, base_types_pb.NeuronId, 12)); +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.getIncludeAllManageNeuronProposals = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); }; /** - * @param {?proto.ic_base_types.pb.v1.NeuronId|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this -*/ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setNeuronId = function(value) { - return jspb.Message.setOneofWrapperField(this, 12, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[0], value); + * @param {boolean} value + * @return {!proto.ic_nns_governance.pb.v1.ListProposalInfo} returns this + */ +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.setIncludeAllManageNeuronProposals = function(value) { + return jspb.Message.setField(this, 6, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ListProposalInfo} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearNeuronId = function() { - return this.setNeuronId(undefined); +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.clearIncludeAllManageNeuronProposals = function() { + return jspb.Message.setField(this, 6, undefined); }; @@ -3553,36 +33220,35 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearNeuronId = function() * Returns whether this field is set. * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasNeuronId = function() { - return jspb.Message.getField(this, 12) != null; +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.hasIncludeAllManageNeuronProposals = function() { + return jspb.Message.getField(this, 6) != null; }; /** - * optional Configure configure = 2; - * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} + * optional bool omit_large_fields = 7; + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getConfigure = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.Configure} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.Configure, 2)); +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.getOmitLargeFields = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); }; /** - * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.Configure|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this -*/ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setConfigure = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[1], value); + * @param {boolean} value + * @return {!proto.ic_nns_governance.pb.v1.ListProposalInfo} returns this + */ +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.setOmitLargeFields = function(value) { + return jspb.Message.setField(this, 7, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ListProposalInfo} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearConfigure = function() { - return this.setConfigure(undefined); +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.clearOmitLargeFields = function() { + return jspb.Message.setField(this, 7, undefined); }; @@ -3590,265 +33256,366 @@ proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearConfigure = function() * Returns whether this field is set. * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasConfigure = function() { - return jspb.Message.getField(this, 2) != null; +proto.ic_nns_governance.pb.v1.ListProposalInfo.prototype.hasOmitLargeFields = function() { + return jspb.Message.getField(this, 7) != null; }; -/** - * optional Disburse disburse = 3; - * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse} - */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getDisburse = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse, 3)); -}; - /** - * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.Disburse|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this -*/ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setDisburse = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[1], value); -}; + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_nns_governance.pb.v1.ListProposalInfoResponse.repeatedFields_ = [1]; + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + * 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.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearDisburse = function() { - return this.setDisburse(undefined); +proto.ic_nns_governance.pb.v1.ListProposalInfoResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ListProposalInfoResponse.toObject(opt_includeInstance, this); }; /** - * Returns whether this field is set. - * @return {boolean} + * 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.ic_nns_governance.pb.v1.ListProposalInfoResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasDisburse = function() { - return jspb.Message.getField(this, 3) != null; +proto.ic_nns_governance.pb.v1.ListProposalInfoResponse.toObject = function(includeInstance, msg) { + var f, obj = { + proposalInfoList: jspb.Message.toObjectList(msg.getProposalInfoList(), + proto.ic_nns_governance.pb.v1.ProposalInfo.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional Spawn spawn = 4; - * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_nns_governance.pb.v1.ListProposalInfoResponse} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getSpawn = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn, 4)); +proto.ic_nns_governance.pb.v1.ListProposalInfoResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ListProposalInfoResponse; + return proto.ic_nns_governance.pb.v1.ListProposalInfoResponse.deserializeBinaryFromReader(msg, reader); }; /** - * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.Spawn|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this -*/ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setSpawn = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[1], value); + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ListProposalInfoResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ListProposalInfoResponse} + */ +proto.ic_nns_governance.pb.v1.ListProposalInfoResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_nns_governance.pb.v1.ProposalInfo; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.ProposalInfo.deserializeBinaryFromReader); + msg.addProposalInfo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearSpawn = function() { - return this.setSpawn(undefined); +proto.ic_nns_governance.pb.v1.ListProposalInfoResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ListProposalInfoResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Returns whether this field is set. - * @return {boolean} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ListProposalInfoResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasSpawn = function() { - return jspb.Message.getField(this, 4) != null; +proto.ic_nns_governance.pb.v1.ListProposalInfoResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getProposalInfoList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.ic_nns_governance.pb.v1.ProposalInfo.serializeBinaryToWriter + ); + } }; /** - * optional Follow follow = 5; - * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.Follow} + * repeated ProposalInfo proposal_info = 1; + * @return {!Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getFollow = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.Follow} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.Follow, 5)); +proto.ic_nns_governance.pb.v1.ListProposalInfoResponse.prototype.getProposalInfoList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ic_nns_governance.pb.v1.ProposalInfo, 1)); }; /** - * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.Follow|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.ListProposalInfoResponse} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setFollow = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[1], value); +proto.ic_nns_governance.pb.v1.ListProposalInfoResponse.prototype.setProposalInfoList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + * @param {!proto.ic_nns_governance.pb.v1.ProposalInfo=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_nns_governance.pb.v1.ProposalInfo} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearFollow = function() { - return this.setFollow(undefined); +proto.ic_nns_governance.pb.v1.ListProposalInfoResponse.prototype.addProposalInfo = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ic_nns_governance.pb.v1.ProposalInfo, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.ListProposalInfoResponse} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasFollow = function() { - return jspb.Message.getField(this, 5) != null; +proto.ic_nns_governance.pb.v1.ListProposalInfoResponse.prototype.clearProposalInfoList = function() { + return this.setProposalInfoList([]); }; + /** - * optional RegisterVote register_vote = 7; - * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote} + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getRegisterVote = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote, 7)); -}; +proto.ic_nns_governance.pb.v1.ListNeurons.repeatedFields_ = [1]; + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.RegisterVote|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this -*/ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setRegisterVote = function(value) { - return jspb.Message.setOneofWrapperField(this, 7, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[1], value); + * 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.ic_nns_governance.pb.v1.ListNeurons.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ListNeurons.toObject(opt_includeInstance, this); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns 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.ic_nns_governance.pb.v1.ListNeurons} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearRegisterVote = function() { - return this.setRegisterVote(undefined); +proto.ic_nns_governance.pb.v1.ListNeurons.toObject = function(includeInstance, msg) { + var f, obj = { + neuronIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, + includeNeuronsReadableByCaller: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * Returns whether this field is set. - * @return {boolean} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_nns_governance.pb.v1.ListNeurons} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasRegisterVote = function() { - return jspb.Message.getField(this, 7) != null; +proto.ic_nns_governance.pb.v1.ListNeurons.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.ListNeurons; + return proto.ic_nns_governance.pb.v1.ListNeurons.deserializeBinaryFromReader(msg, reader); }; /** - * optional MergeMaturity merge_maturity = 13; - * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.ListNeurons} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.ListNeurons} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getMergeMaturity = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity, 13)); +proto.ic_nns_governance.pb.v1.ListNeurons.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFixed64() : [reader.readFixed64()]); + for (var i = 0; i < values.length; i++) { + msg.addNeuronIds(values[i]); + } + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIncludeNeuronsReadableByCaller(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.MergeMaturity|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this -*/ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setMergeMaturity = function(value) { - return jspb.Message.setOneofWrapperField(this, 13, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[1], value); + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_nns_governance.pb.v1.ListNeurons.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.ListNeurons.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.ListNeurons} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearMergeMaturity = function() { - return this.setMergeMaturity(undefined); +proto.ic_nns_governance.pb.v1.ListNeurons.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNeuronIdsList(); + if (f.length > 0) { + writer.writePackedFixed64( + 1, + f + ); + } + f = message.getIncludeNeuronsReadableByCaller(); + if (f) { + writer.writeBool( + 2, + f + ); + } }; /** - * Returns whether this field is set. - * @return {boolean} + * repeated fixed64 neuron_ids = 1; + * @return {!Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasMergeMaturity = function() { - return jspb.Message.getField(this, 13) != null; +proto.ic_nns_governance.pb.v1.ListNeurons.prototype.getNeuronIdsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); }; /** - * optional Merge merge = 14; - * @return {?proto.ic_nns_governance.pb.v1.ManageNeuron.Merge} + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.ListNeurons} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.getMerge = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuron.Merge} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuron.Merge, 14)); +proto.ic_nns_governance.pb.v1.ListNeurons.prototype.setNeuronIdsList = function(value) { + return jspb.Message.setField(this, 1, value || []); }; /** - * @param {?proto.ic_nns_governance.pb.v1.ManageNeuron.Merge|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this -*/ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.setMerge = function(value) { - return jspb.Message.setOneofWrapperField(this, 14, proto.ic_nns_governance.pb.v1.ManageNeuron.oneofGroups_[1], value); + * @param {number} value + * @param {number=} opt_index + * @return {!proto.ic_nns_governance.pb.v1.ListNeurons} returns this + */ +proto.ic_nns_governance.pb.v1.ListNeurons.prototype.addNeuronIds = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuron} returns this + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.ListNeurons} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.clearMerge = function() { - return this.setMerge(undefined); +proto.ic_nns_governance.pb.v1.ListNeurons.prototype.clearNeuronIdsList = function() { + return this.setNeuronIdsList([]); }; /** - * Returns whether this field is set. + * optional bool include_neurons_readable_by_caller = 2; * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuron.prototype.hasMerge = function() { - return jspb.Message.getField(this, 14) != null; +proto.ic_nns_governance.pb.v1.ListNeurons.prototype.getIncludeNeuronsReadableByCaller = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; - -/** - * 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.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_ = [[1,2,3,4,5,7,11,12]]; - /** - * @enum {number} + * @param {boolean} value + * @return {!proto.ic_nns_governance.pb.v1.ListNeurons} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.CommandCase = { - COMMAND_NOT_SET: 0, - ERROR: 1, - CONFIGURE: 2, - DISBURSE: 3, - SPAWN: 4, - FOLLOW: 5, - REGISTER_VOTE: 7, - MERGE_MATURITY: 11, - MERGE: 12 +proto.ic_nns_governance.pb.v1.ListNeurons.prototype.setIncludeNeuronsReadableByCaller = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); }; + + /** - * @return {proto.ic_nns_governance.pb.v1.ManageNeuronResponse.CommandCase} + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getCommandCase = function() { - return /** @type {proto.ic_nns_governance.pb.v1.ManageNeuronResponse.CommandCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_[0])); -}; +proto.ic_nns_governance.pb.v1.ListNeuronsResponse.repeatedFields_ = [2]; @@ -3865,8 +33632,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.ListNeuronsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ListNeuronsResponse.toObject(opt_includeInstance, this); }; @@ -3875,20 +33642,15 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.toObject = function * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.ListNeuronsResponse.toObject = function(includeInstance, msg) { var f, obj = { - error: (f = msg.getError()) && proto.ic_nns_governance.pb.v1.GovernanceError.toObject(includeInstance, f), - configure: (f = msg.getConfigure()) && proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.toObject(includeInstance, f), - disburse: (f = msg.getDisburse()) && proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.toObject(includeInstance, f), - spawn: (f = msg.getSpawn()) && proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.toObject(includeInstance, f), - follow: (f = msg.getFollow()) && proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.toObject(includeInstance, f), - registerVote: (f = msg.getRegisterVote()) && proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.toObject(includeInstance, f), - mergeMaturity: (f = msg.getMergeMaturity()) && proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.toObject(includeInstance, f), - merge: (f = msg.getMerge()) && proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.toObject(includeInstance, f) + neuronInfosMap: (f = msg.getNeuronInfosMap()) ? f.toObject(includeInstance, proto.ic_nns_governance.pb.v1.NeuronInfo.toObject) : [], + fullNeuronsList: jspb.Message.toObjectList(msg.getFullNeuronsList(), + proto.ic_nns_governance.pb.v1.Neuron.toObject, includeInstance) }; if (includeInstance) { @@ -3902,23 +33664,23 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.toObject = function(includeIn /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} + * @return {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.deserializeBinary = function(bytes) { +proto.ic_nns_governance.pb.v1.ListNeuronsResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse; - return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_nns_governance.pb.v1.ListNeuronsResponse; + return proto.ic_nns_governance.pb.v1.ListNeuronsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} + * @return {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_nns_governance.pb.v1.ListNeuronsResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3926,44 +33688,15 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.deserializeBinaryFromReader = var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.ic_nns_governance.pb.v1.GovernanceError; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.GovernanceError.deserializeBinaryFromReader); - msg.setError(value); + var value = msg.getNeuronInfosMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readFixed64, jspb.BinaryReader.prototype.readMessage, proto.ic_nns_governance.pb.v1.NeuronInfo.deserializeBinaryFromReader, 0, new proto.ic_nns_governance.pb.v1.NeuronInfo()); + }); break; case 2: - var value = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.deserializeBinaryFromReader); - msg.setConfigure(value); - break; - case 3: - var value = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.deserializeBinaryFromReader); - msg.setDisburse(value); - break; - case 4: - var value = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.deserializeBinaryFromReader); - msg.setSpawn(value); - break; - case 5: - var value = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.deserializeBinaryFromReader); - msg.setFollow(value); - break; - case 7: - var value = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.deserializeBinaryFromReader); - msg.setRegisterVote(value); - break; - case 11: - var value = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.deserializeBinaryFromReader); - msg.setMergeMaturity(value); - break; - case 12: - var value = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.deserializeBinaryFromReader); - msg.setMerge(value); + var value = new proto.ic_nns_governance.pb.v1.Neuron; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.Neuron.deserializeBinaryFromReader); + msg.addFullNeurons(value); break; default: reader.skipField(); @@ -3978,9 +33711,9 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.ListNeuronsResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.ListNeuronsResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3988,79 +33721,95 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.serializeBinary = f /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} message + * @param {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.ListNeuronsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getError(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.ic_nns_governance.pb.v1.GovernanceError.serializeBinaryToWriter - ); + f = message.getNeuronInfosMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeFixed64, jspb.BinaryWriter.prototype.writeMessage, proto.ic_nns_governance.pb.v1.NeuronInfo.serializeBinaryToWriter); } - f = message.getConfigure(); - if (f != null) { - writer.writeMessage( + f = message.getFullNeuronsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 2, f, - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.serializeBinaryToWriter - ); - } - f = message.getDisburse(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.serializeBinaryToWriter - ); - } - f = message.getSpawn(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.serializeBinaryToWriter - ); - } - f = message.getFollow(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.serializeBinaryToWriter - ); - } - f = message.getRegisterVote(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.serializeBinaryToWriter - ); - } - f = message.getMergeMaturity(); - if (f != null) { - writer.writeMessage( - 11, - f, - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.serializeBinaryToWriter - ); - } - f = message.getMerge(); - if (f != null) { - writer.writeMessage( - 12, - f, - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.serializeBinaryToWriter + proto.ic_nns_governance.pb.v1.Neuron.serializeBinaryToWriter ); } }; +/** + * map neuron_infos = 1; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.ic_nns_governance.pb.v1.ListNeuronsResponse.prototype.getNeuronInfosMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 1, opt_noLazyCreate, + proto.ic_nns_governance.pb.v1.NeuronInfo)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ListNeuronsResponse.prototype.clearNeuronInfosMap = function() { + this.getNeuronInfosMap().clear(); + return this; +}; + + +/** + * repeated Neuron full_neurons = 2; + * @return {!Array} + */ +proto.ic_nns_governance.pb.v1.ListNeuronsResponse.prototype.getFullNeuronsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ic_nns_governance.pb.v1.Neuron, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ListNeuronsResponse.prototype.setFullNeuronsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.Neuron=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_nns_governance.pb.v1.Neuron} + */ +proto.ic_nns_governance.pb.v1.ListNeuronsResponse.prototype.addFullNeurons = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.ic_nns_governance.pb.v1.Neuron, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ListNeuronsResponse.prototype.clearFullNeuronsList = function() { + return this.setFullNeuronsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse.repeatedFields_ = [1]; @@ -4077,8 +33826,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse.toObject(opt_includeInstance, this); }; @@ -4087,13 +33836,14 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.prototype.t * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse.toObject = function(includeInstance, msg) { var f, obj = { - + knownNeuronsList: jspb.Message.toObjectList(msg.getKnownNeuronsList(), + proto.ic_nns_governance.pb.v1.KnownNeuron.toObject, includeInstance) }; if (includeInstance) { @@ -4107,29 +33857,34 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.toObject = /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse} + * @return {!proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.deserializeBinary = function(bytes) { +proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse; - return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse; + return proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse} + * @return {!proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { + case 1: + var value = new proto.ic_nns_governance.pb.v1.KnownNeuron; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.KnownNeuron.deserializeBinaryFromReader); + msg.addKnownNeurons(value); + break; default: reader.skipField(); break; @@ -4143,9 +33898,9 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.deserialize * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4153,16 +33908,69 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.prototype.s /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse} message + * @param {!proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; + f = message.getKnownNeuronsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.ic_nns_governance.pb.v1.KnownNeuron.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated KnownNeuron known_neurons = 1; + * @return {!Array} + */ +proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse.prototype.getKnownNeuronsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ic_nns_governance.pb.v1.KnownNeuron, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse.prototype.setKnownNeuronsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.KnownNeuron=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_nns_governance.pb.v1.KnownNeuron} + */ +proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse.prototype.addKnownNeurons = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ic_nns_governance.pb.v1.KnownNeuron, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ListKnownNeuronsResponse.prototype.clearKnownNeuronsList = function() { + return this.setKnownNeuronsList([]); }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse.repeatedFields_ = [1]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -4178,8 +33986,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse.toObject(opt_includeInstance, this); }; @@ -4188,13 +33996,14 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.prototype.to * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse.toObject = function(includeInstance, msg) { var f, obj = { - transferBlockHeight: jspb.Message.getFieldWithDefault(msg, 1, "0") + nodeProvidersList: jspb.Message.toObjectList(msg.getNodeProvidersList(), + proto.ic_nns_governance.pb.v1.NodeProvider.toObject, includeInstance) }; if (includeInstance) { @@ -4208,23 +34017,23 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.toObject = f /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse} + * @return {!proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.deserializeBinary = function(bytes) { +proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse; - return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse; + return proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse} + * @return {!proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -4232,8 +34041,9 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.deserializeB var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setTransferBlockHeight(value); + var value = new proto.ic_nns_governance.pb.v1.NodeProvider; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.NodeProvider.deserializeBinaryFromReader); + msg.addNodeProviders(value); break; default: reader.skipField(); @@ -4248,9 +34058,9 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.deserializeB * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4258,37 +34068,58 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.prototype.se /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse} message + * @param {!proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getTransferBlockHeight(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( + f = message.getNodeProvidersList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 1, - f + f, + proto.ic_nns_governance.pb.v1.NodeProvider.serializeBinaryToWriter ); } }; /** - * optional uint64 transfer_block_height = 1; - * @return {string} + * repeated NodeProvider node_providers = 1; + * @return {!Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.prototype.getTransferBlockHeight = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse.prototype.getNodeProvidersList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ic_nns_governance.pb.v1.NodeProvider, 1)); }; /** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse} returns this + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse.prototype.setNodeProvidersList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.NodeProvider=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_nns_governance.pb.v1.NodeProvider} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse.prototype.setTransferBlockHeight = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse.prototype.addNodeProviders = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ic_nns_governance.pb.v1.NodeProvider, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ListNodeProvidersResponse.prototype.clearNodeProvidersList = function() { + return this.setNodeProvidersList([]); }; @@ -4308,8 +34139,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount.toObject(opt_includeInstance, this); }; @@ -4318,13 +34149,14 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.prototype.toObj * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount.toObject = function(includeInstance, msg) { var f, obj = { - createdNeuronId: (f = msg.getCreatedNeuronId()) && base_types_pb.NeuronId.toObject(includeInstance, f) + controller: (f = msg.getController()) && base_types_pb.PrincipalId.toObject(includeInstance, f), + memo: jspb.Message.getFieldWithDefault(msg, 2, 0) }; if (includeInstance) { @@ -4338,23 +34170,23 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.toObject = func /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse} + * @return {!proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.deserializeBinary = function(bytes) { +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse; - return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount; + return proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse} + * @return {!proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -4362,9 +34194,13 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.deserializeBina var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new base_types_pb.NeuronId; - reader.readMessage(value,base_types_pb.NeuronId.deserializeBinaryFromReader); - msg.setCreatedNeuronId(value); + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setController(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMemo(value); break; default: reader.skipField(); @@ -4379,9 +34215,9 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.deserializeBina * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4389,48 +34225,55 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.prototype.seria /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse} message + * @param {!proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getCreatedNeuronId(); + f = message.getController(); if (f != null) { writer.writeMessage( 1, f, - base_types_pb.NeuronId.serializeBinaryToWriter + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = message.getMemo(); + if (f !== 0) { + writer.writeUint64( + 2, + f ); } }; /** - * optional ic_base_types.pb.v1.NeuronId created_neuron_id = 1; - * @return {?proto.ic_base_types.pb.v1.NeuronId} + * optional ic_base_types.pb.v1.PrincipalId controller = 1; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.prototype.getCreatedNeuronId = function() { - return /** @type{?proto.ic_base_types.pb.v1.NeuronId} */ ( - jspb.Message.getWrapperField(this, base_types_pb.NeuronId, 1)); +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount.prototype.getController = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 1)); }; /** - * @param {?proto.ic_base_types.pb.v1.NeuronId|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse} returns this + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.prototype.setCreatedNeuronId = function(value) { +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount.prototype.setController = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse} returns this + * @return {!proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.prototype.clearCreatedNeuronId = function() { - return this.setCreatedNeuronId(undefined); +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount.prototype.clearController = function() { + return this.setController(undefined); }; @@ -4438,11 +34281,55 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.prototype.clear * Returns whether this field is set. * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse.prototype.hasCreatedNeuronId = function() { +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount.prototype.hasController = function() { return jspb.Message.getField(this, 1) != null; }; +/** + * optional uint64 memo = 2; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount.prototype.getMemo = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount} returns this + */ +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccount.prototype.setMemo = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + + +/** + * 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.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.oneofGroups_ = [[1,2]]; + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.ResultCase = { + RESULT_NOT_SET: 0, + ERROR: 1, + NEURON_ID: 2 +}; + +/** + * @return {proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.ResultCase} + */ +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.prototype.getResultCase = function() { + return /** @type {proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.ResultCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.oneofGroups_[0])); +}; @@ -4459,8 +34346,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.toObject(opt_includeInstance, this); }; @@ -4469,14 +34356,14 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.prototy * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.toObject = function(includeInstance, msg) { var f, obj = { - mergedMaturityE8s: jspb.Message.getFieldWithDefault(msg, 1, "0"), - newStakeE8s: jspb.Message.getFieldWithDefault(msg, 2, "0") + error: (f = msg.getError()) && proto.ic_nns_governance.pb.v1.GovernanceError.toObject(includeInstance, f), + neuronId: (f = msg.getNeuronId()) && nns_common_pb.NeuronId.toObject(includeInstance, f) }; if (includeInstance) { @@ -4490,23 +34377,23 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.toObjec /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse} + * @return {!proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.deserializeBinary = function(bytes) { +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse; - return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse; + return proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse} + * @return {!proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -4514,12 +34401,14 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.deseria var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setMergedMaturityE8s(value); + var value = new proto.ic_nns_governance.pb.v1.GovernanceError; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.GovernanceError.deserializeBinaryFromReader); + msg.setError(value); break; case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setNewStakeE8s(value); + var value = new nns_common_pb.NeuronId; + reader.readMessage(value,nns_common_pb.NeuronId.deserializeBinaryFromReader); + msg.setNeuronId(value); break; default: reader.skipField(); @@ -4534,9 +34423,9 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.deseria * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4544,66 +34433,113 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.prototy /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse} message + * @param {!proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getMergedMaturityE8s(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( + f = message.getError(); + if (f != null) { + writer.writeMessage( 1, - f + f, + proto.ic_nns_governance.pb.v1.GovernanceError.serializeBinaryToWriter ); } - f = message.getNewStakeE8s(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( + f = message.getNeuronId(); + if (f != null) { + writer.writeMessage( 2, - f + f, + nns_common_pb.NeuronId.serializeBinaryToWriter ); } }; /** - * optional uint64 merged_maturity_e8s = 1; - * @return {string} + * optional GovernanceError error = 1; + * @return {?proto.ic_nns_governance.pb.v1.GovernanceError} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.prototype.getMergedMaturityE8s = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.prototype.getError = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.GovernanceError} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.GovernanceError, 1)); }; /** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse} returns this + * @param {?proto.ic_nns_governance.pb.v1.GovernanceError|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.prototype.setError = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.prototype.setMergedMaturityE8s = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.prototype.clearError = function() { + return this.setError(undefined); }; /** - * optional uint64 new_stake_e8s = 2; - * @return {string} + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.prototype.getNewStakeE8s = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse} returns this + * optional ic_nns_common.pb.v1.NeuronId neuron_id = 2; + * @return {?proto.ic_nns_common.pb.v1.NeuronId} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse.prototype.setNewStakeE8s = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.prototype.getNeuronId = function() { + return /** @type{?proto.ic_nns_common.pb.v1.NeuronId} */ ( + jspb.Message.getWrapperField(this, nns_common_pb.NeuronId, 2)); +}; + + +/** + * @param {?proto.ic_nns_common.pb.v1.NeuronId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.prototype.setNeuronId = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse} returns this + */ +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.prototype.clearNeuronId = function() { + return this.setNeuronId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.ClaimOrRefreshNeuronFromAccountResponse.prototype.hasNeuronId = function() { + return jspb.Message.getField(this, 2) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards.repeatedFields_ = [2]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -4619,8 +34555,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards.toObject(opt_includeInstance, this); }; @@ -4629,13 +34565,15 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.prototype.toOb * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards.toObject = function(includeInstance, msg) { var f, obj = { - + timestamp: jspb.Message.getFieldWithDefault(msg, 1, 0), + rewardsList: jspb.Message.toObjectList(msg.getRewardsList(), + proto.ic_nns_governance.pb.v1.RewardNodeProvider.toObject, includeInstance) }; if (includeInstance) { @@ -4649,29 +34587,38 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.toObject = fun /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse} + * @return {!proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.deserializeBinary = function(bytes) { +proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse; - return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards; + return proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse} + * @return {!proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTimestamp(value); + break; + case 2: + var value = new proto.ic_nns_governance.pb.v1.RewardNodeProvider; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.RewardNodeProvider.deserializeBinaryFromReader); + msg.addRewards(value); + break; default: reader.skipField(); break; @@ -4685,9 +34632,9 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.deserializeBin * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4695,16 +34642,113 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.prototype.seri /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse} message + * @param {!proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards.serializeBinaryToWriter = function(message, writer) { var f = undefined; + f = message.getTimestamp(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getRewardsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.ic_nns_governance.pb.v1.RewardNodeProvider.serializeBinaryToWriter + ); + } +}; + + +/** + * optional uint64 timestamp = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards.prototype.getTimestamp = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards} returns this + */ +proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards.prototype.setTimestamp = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * repeated RewardNodeProvider rewards = 2; + * @return {!Array} + */ +proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards.prototype.getRewardsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ic_nns_governance.pb.v1.RewardNodeProvider, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards} returns this +*/ +proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards.prototype.setRewardsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.RewardNodeProvider=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_nns_governance.pb.v1.RewardNodeProvider} + */ +proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards.prototype.addRewards = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.ic_nns_governance.pb.v1.RewardNodeProvider, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards} returns this + */ +proto.ic_nns_governance.pb.v1.MostRecentMonthlyNodeProviderRewards.prototype.clearRewardsList = function() { + return this.setRewardsList([]); }; +/** + * 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.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.oneofGroups_ = [[2,3]]; + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.ResultCase = { + RESULT_NOT_SET: 0, + COMMITTED: 2, + ABORTED: 3 +}; + +/** + * @return {proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.ResultCase} + */ +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.prototype.getResultCase = function() { + return /** @type {proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.ResultCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.oneofGroups_[0])); +}; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -4720,8 +34764,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.toObject(opt_includeInstance, this); }; @@ -4730,13 +34774,15 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.prototyp * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.toObject = function(includeInstance, msg) { var f, obj = { - + openSnsTokenSwapProposalId: jspb.Message.getFieldWithDefault(msg, 1, 0), + committed: (f = msg.getCommitted()) && proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.toObject(includeInstance, f), + aborted: (f = msg.getAborted()) && proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted.toObject(includeInstance, f) }; if (includeInstance) { @@ -4750,29 +34796,43 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.toObject /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse} + * @return {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.deserializeBinary = function(bytes) { +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse; - return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation; + return proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse} + * @return {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setOpenSnsTokenSwapProposalId(value); + break; + case 2: + var value = new proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.deserializeBinaryFromReader); + msg.setCommitted(value); + break; + case 3: + var value = new proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted.deserializeBinaryFromReader); + msg.setAborted(value); + break; default: reader.skipField(); break; @@ -4786,9 +34846,9 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.deserial * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4796,12 +34856,35 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.prototyp /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse} message + * @param {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.serializeBinaryToWriter = function(message, writer) { var f = undefined; + f = /** @type {number} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeUint64( + 1, + f + ); + } + f = message.getCommitted(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.serializeBinaryToWriter + ); + } + f = message.getAborted(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted.serializeBinaryToWriter + ); + } }; @@ -4821,8 +34904,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.toObject(opt_includeInstance, this); }; @@ -4831,13 +34914,15 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.prototype.toObj * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.toObject = function(includeInstance, msg) { var f, obj = { - + snsGovernanceCanisterId: (f = msg.getSnsGovernanceCanisterId()) && base_types_pb.PrincipalId.toObject(includeInstance, f), + totalDirectContributionIcpE8s: jspb.Message.getFieldWithDefault(msg, 2, 0), + totalNeuronsFundContributionIcpE8s: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -4851,29 +34936,42 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.toObject = func /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse} + * @return {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.deserializeBinary = function(bytes) { +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse; - return proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed; + return proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse} + * @return {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { + case 1: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setSnsGovernanceCanisterId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalDirectContributionIcpE8s(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalNeuronsFundContributionIcpE8s(value); + break; default: reader.skipField(); break; @@ -4887,9 +34985,9 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.deserializeBina * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4897,40 +34995,62 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.prototype.seria /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse} message + * @param {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.serializeBinaryToWriter = function(message, writer) { var f = undefined; + f = message.getSnsGovernanceCanisterId(); + if (f != null) { + writer.writeMessage( + 1, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeUint64( + 2, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeUint64( + 3, + f + ); + } }; /** - * optional GovernanceError error = 1; - * @return {?proto.ic_nns_governance.pb.v1.GovernanceError} + * optional ic_base_types.pb.v1.PrincipalId sns_governance_canister_id = 1; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getError = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.GovernanceError} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.GovernanceError, 1)); +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.prototype.getSnsGovernanceCanisterId = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 1)); }; /** - * @param {?proto.ic_nns_governance.pb.v1.GovernanceError|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.setError = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_[0], value); +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.prototype.setSnsGovernanceCanisterId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + * @return {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearError = function() { - return this.setError(undefined); +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.prototype.clearSnsGovernanceCanisterId = function() { + return this.setSnsGovernanceCanisterId(undefined); }; @@ -4938,110 +35058,208 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearError = functi * Returns whether this field is set. * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.hasError = function() { +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.prototype.hasSnsGovernanceCanisterId = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional ConfigureResponse configure = 2; - * @return {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse} + * optional uint64 total_direct_contribution_icp_e8s = 2; + * @return {number} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getConfigure = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse, 2)); +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.prototype.getTotalDirectContributionIcpE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed} returns this + */ +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.prototype.setTotalDirectContributionIcpE8s = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed} returns this + */ +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.prototype.clearTotalDirectContributionIcpE8s = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.prototype.hasTotalDirectContributionIcpE8s = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional uint64 total_neurons_fund_contribution_icp_e8s = 3; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.prototype.getTotalNeuronsFundContributionIcpE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed} returns this + */ +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.prototype.setTotalNeuronsFundContributionIcpE8s = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed} returns this + */ +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.prototype.clearTotalNeuronsFundContributionIcpE8s = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed.prototype.hasTotalNeuronsFundContributionIcpE8s = function() { + return jspb.Message.getField(this, 3) != null; }; -/** - * @param {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.ConfigureResponse|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this -*/ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.setConfigure = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_[0], value); -}; + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + * 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.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearConfigure = function() { - return this.setConfigure(undefined); +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted.toObject(opt_includeInstance, this); }; /** - * Returns whether this field is set. - * @return {boolean} + * 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.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.hasConfigure = function() { - return jspb.Message.getField(this, 2) != null; +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional DisburseResponse disburse = 3; - * @return {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getDisburse = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse, 3)); +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted; + return proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted.deserializeBinaryFromReader(msg, reader); }; /** - * @param {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.DisburseResponse|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this -*/ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.setDisburse = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_[0], value); + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted} + */ +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearDisburse = function() { - return this.setDisburse(undefined); +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Returns whether this field is set. - * @return {boolean} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.hasDisburse = function() { - return jspb.Message.getField(this, 3) != null; +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted.serializeBinaryToWriter = function(message, writer) { + var f = undefined; }; /** - * optional SpawnResponse spawn = 4; - * @return {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse} + * optional uint64 open_sns_token_swap_proposal_id = 1; + * @return {number} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getSpawn = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse, 4)); +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.prototype.getOpenSnsTokenSwapProposalId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.SpawnResponse|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this -*/ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.setSpawn = function(value) { - return jspb.Message.setOneofWrapperField(this, 4, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_[0], value); + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation} returns this + */ +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.prototype.setOpenSnsTokenSwapProposalId = function(value) { + return jspb.Message.setField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearSpawn = function() { - return this.setSpawn(undefined); +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.prototype.clearOpenSnsTokenSwapProposalId = function() { + return jspb.Message.setField(this, 1, undefined); }; @@ -5049,36 +35267,36 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearSpawn = functi * Returns whether this field is set. * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.hasSpawn = function() { - return jspb.Message.getField(this, 4) != null; +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.prototype.hasOpenSnsTokenSwapProposalId = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional FollowResponse follow = 5; - * @return {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse} + * optional Committed committed = 2; + * @return {?proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getFollow = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse, 5)); +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.prototype.getCommitted = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed, 2)); }; /** - * @param {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.FollowResponse|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + * @param {?proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Committed|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.setFollow = function(value) { - return jspb.Message.setOneofWrapperField(this, 5, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_[0], value); +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.prototype.setCommitted = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + * @return {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearFollow = function() { - return this.setFollow(undefined); +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.prototype.clearCommitted = function() { + return this.setCommitted(undefined); }; @@ -5086,36 +35304,36 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearFollow = funct * Returns whether this field is set. * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.hasFollow = function() { - return jspb.Message.getField(this, 5) != null; +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.prototype.hasCommitted = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * optional RegisterVoteResponse register_vote = 7; - * @return {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse} + * optional Aborted aborted = 3; + * @return {?proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getRegisterVote = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse, 7)); +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.prototype.getAborted = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted, 3)); }; /** - * @param {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.RegisterVoteResponse|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + * @param {?proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.Aborted|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.setRegisterVote = function(value) { - return jspb.Message.setOneofWrapperField(this, 7, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_[0], value); +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.prototype.setAborted = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + * @return {!proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation} returns this */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearRegisterVote = function() { - return this.setRegisterVote(undefined); +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.prototype.clearAborted = function() { + return this.setAborted(undefined); }; @@ -5123,82 +35341,174 @@ proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearRegisterVote = * Returns whether this field is set. * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.hasRegisterVote = function() { - return jspb.Message.getField(this, 7) != null; +proto.ic_nns_governance.pb.v1.SettleCommunityFundParticipation.prototype.hasAborted = function() { + return jspb.Message.getField(this, 3) != null; }; + /** - * optional MergeMaturityResponse merge_maturity = 11; - * @return {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse} + * 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.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getMergeMaturity = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse, 11)); -}; +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.oneofGroups_ = [[2,3]]; +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.ResultCase = { + RESULT_NOT_SET: 0, + COMMITTED: 2, + ABORTED: 3 +}; /** - * @param {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeMaturityResponse|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this -*/ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.setMergeMaturity = function(value) { - return jspb.Message.setOneofWrapperField(this, 11, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_[0], value); + * @return {proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.ResultCase} + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.prototype.getResultCase = function() { + return /** @type {proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.ResultCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.oneofGroups_[0])); }; + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + * 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.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearMergeMaturity = function() { - return this.setMergeMaturity(undefined); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.toObject(opt_includeInstance, this); }; /** - * Returns whether this field is set. - * @return {boolean} + * 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.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.hasMergeMaturity = function() { - return jspb.Message.getField(this, 11) != null; +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.toObject = function(includeInstance, msg) { + var f, obj = { + nnsProposalId: jspb.Message.getFieldWithDefault(msg, 1, 0), + committed: (f = msg.getCommitted()) && proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.toObject(includeInstance, f), + aborted: (f = msg.getAborted()) && proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional MergeResponse merge = 12; - * @return {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.getMerge = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse, 12)); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest; + return proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.deserializeBinaryFromReader(msg, reader); }; /** - * @param {?proto.ic_nns_governance.pb.v1.ManageNeuronResponse.MergeResponse|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this -*/ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.setMerge = function(value) { - return jspb.Message.setOneofWrapperField(this, 12, proto.ic_nns_governance.pb.v1.ManageNeuronResponse.oneofGroups_[0], value); + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest} + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setNnsProposalId(value); + break; + case 2: + var value = new proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.deserializeBinaryFromReader); + msg.setCommitted(value); + break; + case 3: + var value = new proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted.deserializeBinaryFromReader); + msg.setAborted(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ManageNeuronResponse} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.clearMerge = function() { - return this.setMerge(undefined); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Returns whether this field is set. - * @return {boolean} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ManageNeuronResponse.prototype.hasMerge = function() { - return jspb.Message.getField(this, 12) != null; +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {number} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeUint64( + 1, + f + ); + } + f = message.getCommitted(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.serializeBinaryToWriter + ); + } + f = message.getAborted(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted.serializeBinaryToWriter + ); + } }; @@ -5218,8 +35528,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_nns_governance.pb.v1.GovernanceError.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.GovernanceError.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.toObject(opt_includeInstance, this); }; @@ -5228,14 +35538,15 @@ proto.ic_nns_governance.pb.v1.GovernanceError.prototype.toObject = function(opt_ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.GovernanceError} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.GovernanceError.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.toObject = function(includeInstance, msg) { var f, obj = { - errorType: jspb.Message.getFieldWithDefault(msg, 1, 0), - errorMessage: jspb.Message.getFieldWithDefault(msg, 2, "") + snsGovernanceCanisterId: (f = msg.getSnsGovernanceCanisterId()) && base_types_pb.PrincipalId.toObject(includeInstance, f), + totalDirectParticipationIcpE8s: jspb.Message.getFieldWithDefault(msg, 2, 0), + totalNeuronsFundParticipationIcpE8s: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -5249,23 +35560,23 @@ proto.ic_nns_governance.pb.v1.GovernanceError.toObject = function(includeInstanc /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.GovernanceError} + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed} */ -proto.ic_nns_governance.pb.v1.GovernanceError.deserializeBinary = function(bytes) { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.GovernanceError; - return proto.ic_nns_governance.pb.v1.GovernanceError.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed; + return proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.GovernanceError} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.GovernanceError} + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed} */ -proto.ic_nns_governance.pb.v1.GovernanceError.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5273,12 +35584,17 @@ proto.ic_nns_governance.pb.v1.GovernanceError.deserializeBinaryFromReader = func var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!proto.ic_nns_governance.pb.v1.GovernanceError.ErrorType} */ (reader.readEnum()); - msg.setErrorType(value); + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setSnsGovernanceCanisterId(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setErrorMessage(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalDirectParticipationIcpE8s(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTotalNeuronsFundParticipationIcpE8s(value); break; default: reader.skipField(); @@ -5293,9 +35609,9 @@ proto.ic_nns_governance.pb.v1.GovernanceError.deserializeBinaryFromReader = func * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.GovernanceError.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.GovernanceError.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5303,96 +35619,146 @@ proto.ic_nns_governance.pb.v1.GovernanceError.prototype.serializeBinary = functi /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.GovernanceError} message + * @param {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.GovernanceError.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getErrorType(); - if (f !== 0.0) { - writer.writeEnum( + f = message.getSnsGovernanceCanisterId(); + if (f != null) { + writer.writeMessage( 1, - f + f, + base_types_pb.PrincipalId.serializeBinaryToWriter ); } - f = message.getErrorMessage(); - if (f.length > 0) { - writer.writeString( + f = /** @type {number} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeUint64( 2, f ); } + f = /** @type {number} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeUint64( + 3, + f + ); + } }; /** - * @enum {number} + * optional ic_base_types.pb.v1.PrincipalId sns_governance_canister_id = 1; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} */ -proto.ic_nns_governance.pb.v1.GovernanceError.ErrorType = { - ERROR_TYPE_UNSPECIFIED: 0, - ERROR_TYPE_OK: 1, - ERROR_TYPE_UNAVAILABLE: 2, - ERROR_TYPE_NOT_AUTHORIZED: 3, - ERROR_TYPE_NOT_FOUND: 4, - ERROR_TYPE_INVALID_COMMAND: 5, - ERROR_TYPE_REQUIRES_NOT_DISSOLVING: 6, - ERROR_TYPE_REQUIRES_DISSOLVING: 7, - ERROR_TYPE_REQUIRES_DISSOLVED: 8, - ERROR_TYPE_HOT_KEY: 9, - ERROR_TYPE_RESOURCE_EXHAUSTED: 10, - ERROR_TYPE_PRECONDITION_FAILED: 11, - ERROR_TYPE_EXTERNAL: 12, - ERROR_TYPE_LEDGER_UPDATE_ONGOING: 13, - ERROR_TYPE_INSUFFICIENT_FUNDS: 14, - ERROR_TYPE_INVALID_PRINCIPAL: 15, - ERROR_TYPE_INVALID_PROPOSAL: 16, - ERROR_TYPE_ALREADY_JOINED_COMMUNITY_FUND: 17 +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.prototype.getSnsGovernanceCanisterId = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 1)); }; + /** - * optional ErrorType error_type = 1; - * @return {!proto.ic_nns_governance.pb.v1.GovernanceError.ErrorType} + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed} returns this +*/ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.prototype.setSnsGovernanceCanisterId = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed} returns this */ -proto.ic_nns_governance.pb.v1.GovernanceError.prototype.getErrorType = function() { - return /** @type {!proto.ic_nns_governance.pb.v1.GovernanceError.ErrorType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.prototype.clearSnsGovernanceCanisterId = function() { + return this.setSnsGovernanceCanisterId(undefined); }; /** - * @param {!proto.ic_nns_governance.pb.v1.GovernanceError.ErrorType} value - * @return {!proto.ic_nns_governance.pb.v1.GovernanceError} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.GovernanceError.prototype.setErrorType = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.prototype.hasSnsGovernanceCanisterId = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional string error_message = 2; - * @return {string} + * optional uint64 total_direct_participation_icp_e8s = 2; + * @return {number} */ -proto.ic_nns_governance.pb.v1.GovernanceError.prototype.getErrorMessage = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.prototype.getTotalDirectParticipationIcpE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.GovernanceError} returns this + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed} returns this */ -proto.ic_nns_governance.pb.v1.GovernanceError.prototype.setErrorMessage = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.prototype.setTotalDirectParticipationIcpE8s = function(value) { + return jspb.Message.setField(this, 2, value); }; +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed} returns this + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.prototype.clearTotalDirectParticipationIcpE8s = function() { + return jspb.Message.setField(this, 2, undefined); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ListNeurons.repeatedFields_ = [1]; +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.prototype.hasTotalDirectParticipationIcpE8s = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional uint64 total_neurons_fund_participation_icp_e8s = 3; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.prototype.getTotalNeuronsFundParticipationIcpE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed} returns this + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.prototype.setTotalNeuronsFundParticipationIcpE8s = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed} returns this + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.prototype.clearTotalNeuronsFundParticipationIcpE8s = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed.prototype.hasTotalNeuronsFundParticipationIcpE8s = function() { + return jspb.Message.getField(this, 3) != null; +}; + + @@ -5409,8 +35775,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_nns_governance.pb.v1.ListNeurons.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ListNeurons.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted.toObject(opt_includeInstance, this); }; @@ -5419,14 +35785,13 @@ proto.ic_nns_governance.pb.v1.ListNeurons.prototype.toObject = function(opt_incl * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.ListNeurons} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ListNeurons.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted.toObject = function(includeInstance, msg) { var f, obj = { - neuronIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, - includeNeuronsReadableByCaller: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) + }; if (includeInstance) { @@ -5440,39 +35805,29 @@ proto.ic_nns_governance.pb.v1.ListNeurons.toObject = function(includeInstance, m /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ListNeurons} + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted} */ -proto.ic_nns_governance.pb.v1.ListNeurons.deserializeBinary = function(bytes) { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ListNeurons; - return proto.ic_nns_governance.pb.v1.ListNeurons.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted; + return proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ListNeurons} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ListNeurons} + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted} */ -proto.ic_nns_governance.pb.v1.ListNeurons.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 1: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedFixed64String() : [reader.readFixed64String()]); - for (var i = 0; i < values.length; i++) { - msg.addNeuronIds(values[i]); - } - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIncludeNeuronsReadableByCaller(value); - break; default: reader.skipField(); break; @@ -5486,9 +35841,9 @@ proto.ic_nns_governance.pb.v1.ListNeurons.deserializeBinaryFromReader = function * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.ListNeurons.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ListNeurons.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5496,91 +35851,151 @@ proto.ic_nns_governance.pb.v1.ListNeurons.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ListNeurons} message + * @param {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ListNeurons.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getNeuronIdsList(); - if (f.length > 0) { - writer.writePackedFixed64String( - 1, - f - ); - } - f = message.getIncludeNeuronsReadableByCaller(); - if (f) { - writer.writeBool( - 2, - f - ); - } }; /** - * repeated fixed64 neuron_ids = 1; - * @return {!Array} + * optional uint64 nns_proposal_id = 1; + * @return {number} */ -proto.ic_nns_governance.pb.v1.ListNeurons.prototype.getNeuronIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.prototype.getNnsProposalId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {!Array} value - * @return {!proto.ic_nns_governance.pb.v1.ListNeurons} returns this + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest} returns this */ -proto.ic_nns_governance.pb.v1.ListNeurons.prototype.setNeuronIdsList = function(value) { - return jspb.Message.setField(this, 1, value || []); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.prototype.setNnsProposalId = function(value) { + return jspb.Message.setField(this, 1, value); }; /** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.ic_nns_governance.pb.v1.ListNeurons} returns this + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest} returns this */ -proto.ic_nns_governance.pb.v1.ListNeurons.prototype.addNeuronIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.prototype.clearNnsProposalId = function() { + return jspb.Message.setField(this, 1, undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.ic_nns_governance.pb.v1.ListNeurons} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ListNeurons.prototype.clearNeuronIdsList = function() { - return this.setNeuronIdsList([]); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.prototype.hasNnsProposalId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Committed committed = 2; + * @return {?proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed} + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.prototype.getCommitted = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed, 2)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Committed|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest} returns this +*/ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.prototype.setCommitted = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest} returns this + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.prototype.clearCommitted = function() { + return this.setCommitted(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.prototype.hasCommitted = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional Aborted aborted = 3; + * @return {?proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted} + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.prototype.getAborted = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted, 3)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.Aborted|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest} returns this +*/ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.prototype.setAborted = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.oneofGroups_[0], value); }; /** - * optional bool include_neurons_readable_by_caller = 2; - * @return {boolean} + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest} returns this */ -proto.ic_nns_governance.pb.v1.ListNeurons.prototype.getIncludeNeuronsReadableByCaller = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.prototype.clearAborted = function() { + return this.setAborted(undefined); }; /** - * @param {boolean} value - * @return {!proto.ic_nns_governance.pb.v1.ListNeurons} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ListNeurons.prototype.setIncludeNeuronsReadableByCaller = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationRequest.prototype.hasAborted = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * List of repeated fields within this message type. - * @private {!Array} + * 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.ic_nns_governance.pb.v1.ListNeuronsResponse.repeatedFields_ = [1,2]; +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.oneofGroups_ = [[1,2]]; + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.ResultCase = { + RESULT_NOT_SET: 0, + ERR: 1, + OK: 2 +}; + +/** + * @return {proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.ResultCase} + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.prototype.getResultCase = function() { + return /** @type {proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.ResultCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.oneofGroups_[0])); +}; @@ -5597,8 +36012,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ListNeuronsResponse.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.toObject(opt_includeInstance, this); }; @@ -5607,16 +36022,14 @@ proto.ic_nns_governance.pb.v1.ListNeuronsResponse.prototype.toObject = function( * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.toObject = function(includeInstance, msg) { var f, obj = { - neuronIdsList: jspb.Message.toObjectList(msg.getNeuronIdsList(), - proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.toObject, includeInstance), - fullNeuronsList: jspb.Message.toObjectList(msg.getFullNeuronsList(), - proto.ic_nns_governance.pb.v1.Neuron.toObject, includeInstance) + err: (f = msg.getErr()) && proto.ic_nns_governance.pb.v1.GovernanceError.toObject(includeInstance, f), + ok: (f = msg.getOk()) && proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok.toObject(includeInstance, f) }; if (includeInstance) { @@ -5630,23 +36043,23 @@ proto.ic_nns_governance.pb.v1.ListNeuronsResponse.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse} + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse} */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.deserializeBinary = function(bytes) { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ListNeuronsResponse; - return proto.ic_nns_governance.pb.v1.ListNeuronsResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse; + return proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse} + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse} */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5654,14 +36067,14 @@ proto.ic_nns_governance.pb.v1.ListNeuronsResponse.deserializeBinaryFromReader = var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.deserializeBinaryFromReader); - msg.addNeuronIds(value); + var value = new proto.ic_nns_governance.pb.v1.GovernanceError; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.GovernanceError.deserializeBinaryFromReader); + msg.setErr(value); break; case 2: - var value = new proto.ic_nns_governance.pb.v1.Neuron; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.Neuron.deserializeBinaryFromReader); - msg.addFullNeurons(value); + var value = new proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok.deserializeBinaryFromReader); + msg.setOk(value); break; default: reader.skipField(); @@ -5676,9 +36089,9 @@ proto.ic_nns_governance.pb.v1.ListNeuronsResponse.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ListNeuronsResponse.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5686,26 +36099,26 @@ proto.ic_nns_governance.pb.v1.ListNeuronsResponse.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse} message + * @param {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getNeuronIdsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getErr(); + if (f != null) { + writer.writeMessage( 1, f, - proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.serializeBinaryToWriter + proto.ic_nns_governance.pb.v1.GovernanceError.serializeBinaryToWriter ); } - f = message.getFullNeuronsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getOk(); + if (f != null) { + writer.writeMessage( 2, f, - proto.ic_nns_governance.pb.v1.Neuron.serializeBinaryToWriter + proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok.serializeBinaryToWriter ); } }; @@ -5727,8 +36140,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.toObject(opt_includeInstance, this); }; @@ -5737,14 +36150,16 @@ proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.prototype.toObj * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.toObject = function(includeInstance, msg) { var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, "0"), - value: (f = msg.getValue()) && proto.ic_nns_governance.pb.v1.NeuronInfo.toObject(includeInstance, f) + nnsNeuronId: jspb.Message.getFieldWithDefault(msg, 1, 0), + amountIcpE8s: jspb.Message.getFieldWithDefault(msg, 2, 0), + hotkeyPrincipal: jspb.Message.getFieldWithDefault(msg, 3, ""), + isCapped: jspb.Message.getBooleanFieldWithDefault(msg, 4, false) }; if (includeInstance) { @@ -5758,23 +36173,23 @@ proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.toObject = func /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry} + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron} */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.deserializeBinary = function(bytes) { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry; - return proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron; + return proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry} + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron} */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5782,13 +36197,20 @@ proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.deserializeBina var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readFixed64String()); - msg.setKey(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setNnsNeuronId(value); break; case 2: - var value = new proto.ic_nns_governance.pb.v1.NeuronInfo; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.NeuronInfo.deserializeBinaryFromReader); - msg.setValue(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setAmountIcpE8s(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setHotkeyPrincipal(value); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIsCapped(value); break; default: reader.skipField(); @@ -5803,9 +36225,9 @@ proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.deserializeBina * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5813,73 +36235,103 @@ proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.prototype.seria /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry} message + * @param {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getKey(); - if (parseInt(f, 10) !== 0) { - writer.writeFixed64String( + f = /** @type {number} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeUint64( 1, f ); } - f = message.getValue(); + f = /** @type {number} */ (jspb.Message.getField(message, 2)); if (f != null) { - writer.writeMessage( + writer.writeUint64( 2, - f, - proto.ic_nns_governance.pb.v1.NeuronInfo.serializeBinaryToWriter + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString( + 3, + f + ); + } + f = /** @type {boolean} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeBool( + 4, + f ); } }; /** - * optional fixed64 key = 1; - * @return {string} + * optional uint64 nns_neuron_id = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.prototype.getNnsNeuronId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron} returns this */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.prototype.setNnsNeuronId = function(value) { + return jspb.Message.setField(this, 1, value); }; /** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry} returns this + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron} returns this */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.prototype.setKey = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.prototype.clearNnsNeuronId = function() { + return jspb.Message.setField(this, 1, undefined); }; /** - * optional NeuronInfo value = 2; - * @return {?proto.ic_nns_governance.pb.v1.NeuronInfo} + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.prototype.getValue = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.NeuronInfo} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.NeuronInfo, 2)); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.prototype.hasNnsNeuronId = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * @param {?proto.ic_nns_governance.pb.v1.NeuronInfo|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry} returns this -*/ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.prototype.setValue = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * optional uint64 amount_icp_e8s = 2; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.prototype.getAmountIcpE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry} returns this + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.prototype.setAmountIcpE8s = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron} returns this */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.prototype.clearValue = function() { - return this.setValue(undefined); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.prototype.clearAmountIcpE8s = function() { + return jspb.Message.setField(this, 2, undefined); }; @@ -5887,88 +36339,91 @@ proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.prototype.clear * Returns whether this field is set. * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry.prototype.hasValue = function() { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.prototype.hasAmountIcpE8s = function() { return jspb.Message.getField(this, 2) != null; }; /** - * repeated NeuronMapEntry neuron_ids = 1; - * @return {!Array} + * optional string hotkey_principal = 3; + * @return {string} */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.prototype.getNeuronIdsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry, 1)); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.prototype.getHotkeyPrincipal = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** - * @param {!Array} value - * @return {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse} returns this -*/ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.prototype.setNeuronIdsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); + * @param {string} value + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.prototype.setHotkeyPrincipal = function(value) { + return jspb.Message.setField(this, 3, value); }; /** - * @param {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry} + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron} returns this */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.prototype.addNeuronIds = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ic_nns_governance.pb.v1.ListNeuronsResponse.NeuronMapEntry, opt_index); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.prototype.clearHotkeyPrincipal = function() { + return jspb.Message.setField(this, 3, undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.prototype.clearNeuronIdsList = function() { - return this.setNeuronIdsList([]); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.prototype.hasHotkeyPrincipal = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * repeated Neuron full_neurons = 2; - * @return {!Array} + * optional bool is_capped = 4; + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.prototype.getFullNeuronsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.ic_nns_governance.pb.v1.Neuron, 2)); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.prototype.getIsCapped = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; /** - * @param {!Array} value - * @return {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse} returns this -*/ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.prototype.setFullNeuronsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); + * @param {boolean} value + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron} returns this + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.prototype.setIsCapped = function(value) { + return jspb.Message.setField(this, 4, value); }; /** - * @param {!proto.ic_nns_governance.pb.v1.Neuron=} opt_value - * @param {number=} opt_index - * @return {!proto.ic_nns_governance.pb.v1.Neuron} + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron} returns this */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.prototype.addFullNeurons = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.ic_nns_governance.pb.v1.Neuron, opt_index); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.prototype.clearIsCapped = function() { + return jspb.Message.setField(this, 4, undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.ic_nns_governance.pb.v1.ListNeuronsResponse} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.ListNeuronsResponse.prototype.clearFullNeuronsList = function() { - return this.setFullNeuronsList([]); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.prototype.hasIsCapped = function() { + return jspb.Message.getField(this, 4) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok.repeatedFields_ = [1]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -5984,8 +36439,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_nns_governance.pb.v1.BallotInfo.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.BallotInfo.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok.toObject(opt_includeInstance, this); }; @@ -5994,14 +36449,14 @@ proto.ic_nns_governance.pb.v1.BallotInfo.prototype.toObject = function(opt_inclu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.BallotInfo} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.BallotInfo.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok.toObject = function(includeInstance, msg) { var f, obj = { - proposalId: (f = msg.getProposalId()) && base_types_pb.ProposalId.toObject(includeInstance, f), - vote: jspb.Message.getFieldWithDefault(msg, 2, 0) + neuronsFundNeuronPortionsList: jspb.Message.toObjectList(msg.getNeuronsFundNeuronPortionsList(), + proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.toObject, includeInstance) }; if (includeInstance) { @@ -6015,23 +36470,23 @@ proto.ic_nns_governance.pb.v1.BallotInfo.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.BallotInfo} + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok} */ -proto.ic_nns_governance.pb.v1.BallotInfo.deserializeBinary = function(bytes) { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.BallotInfo; - return proto.ic_nns_governance.pb.v1.BallotInfo.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok; + return proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.BallotInfo} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.BallotInfo} + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok} */ -proto.ic_nns_governance.pb.v1.BallotInfo.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6039,13 +36494,9 @@ proto.ic_nns_governance.pb.v1.BallotInfo.deserializeBinaryFromReader = function( var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new base_types_pb.ProposalId; - reader.readMessage(value,base_types_pb.ProposalId.deserializeBinaryFromReader); - msg.setProposalId(value); - break; - case 2: - var value = /** @type {!proto.ic_nns_governance.pb.v1.Vote} */ (reader.readEnum()); - msg.setVote(value); + var value = new proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.deserializeBinaryFromReader); + msg.addNeuronsFundNeuronPortions(value); break; default: reader.skipField(); @@ -6060,9 +36511,9 @@ proto.ic_nns_governance.pb.v1.BallotInfo.deserializeBinaryFromReader = function( * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.BallotInfo.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.BallotInfo.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6070,55 +36521,123 @@ proto.ic_nns_governance.pb.v1.BallotInfo.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.BallotInfo} message + * @param {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.BallotInfo.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getProposalId(); - if (f != null) { - writer.writeMessage( + f = message.getNeuronsFundNeuronPortionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 1, f, - base_types_pb.ProposalId.serializeBinaryToWriter - ); - } - f = message.getVote(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f + proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron.serializeBinaryToWriter ); } }; /** - * optional ic_base_types.pb.v1.ProposalId proposal_id = 1; - * @return {?proto.ic_base_types.pb.v1.ProposalId} + * repeated NeuronsFundNeuron neurons_fund_neuron_portions = 1; + * @return {!Array} + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok.prototype.getNeuronsFundNeuronPortionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok} returns this +*/ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok.prototype.setNeuronsFundNeuronPortionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron} + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok.prototype.addNeuronsFundNeuronPortions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.NeuronsFundNeuron, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok} returns this + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok.prototype.clearNeuronsFundNeuronPortionsList = function() { + return this.setNeuronsFundNeuronPortionsList([]); +}; + + +/** + * optional GovernanceError err = 1; + * @return {?proto.ic_nns_governance.pb.v1.GovernanceError} + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.prototype.getErr = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.GovernanceError} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.GovernanceError, 1)); +}; + + +/** + * @param {?proto.ic_nns_governance.pb.v1.GovernanceError|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse} returns this +*/ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.prototype.setErr = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse} returns this + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.prototype.clearErr = function() { + return this.setErr(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.prototype.hasErr = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Ok ok = 2; + * @return {?proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok} */ -proto.ic_nns_governance.pb.v1.BallotInfo.prototype.getProposalId = function() { - return /** @type{?proto.ic_base_types.pb.v1.ProposalId} */ ( - jspb.Message.getWrapperField(this, base_types_pb.ProposalId, 1)); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.prototype.getOk = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok, 2)); }; /** - * @param {?proto.ic_base_types.pb.v1.ProposalId|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.BallotInfo} returns this + * @param {?proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.Ok|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse} returns this */ -proto.ic_nns_governance.pb.v1.BallotInfo.prototype.setProposalId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.prototype.setOk = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.BallotInfo} returns this + * @return {!proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse} returns this */ -proto.ic_nns_governance.pb.v1.BallotInfo.prototype.clearProposalId = function() { - return this.setProposalId(undefined); +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.prototype.clearOk = function() { + return this.setOk(undefined); }; @@ -6126,36 +36645,37 @@ proto.ic_nns_governance.pb.v1.BallotInfo.prototype.clearProposalId = function() * Returns whether this field is set. * @return {boolean} */ -proto.ic_nns_governance.pb.v1.BallotInfo.prototype.hasProposalId = function() { - return jspb.Message.getField(this, 1) != null; +proto.ic_nns_governance.pb.v1.SettleNeuronsFundParticipationResponse.prototype.hasOk = function() { + return jspb.Message.getField(this, 2) != null; }; + /** - * optional Vote vote = 2; - * @return {!proto.ic_nns_governance.pb.v1.Vote} + * 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.ic_nns_governance.pb.v1.BallotInfo.prototype.getVote = function() { - return /** @type {!proto.ic_nns_governance.pb.v1.Vote} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - +proto.ic_nns_governance.pb.v1.AuditEvent.oneofGroups_ = [[2,3]]; /** - * @param {!proto.ic_nns_governance.pb.v1.Vote} value - * @return {!proto.ic_nns_governance.pb.v1.BallotInfo} returns this + * @enum {number} */ -proto.ic_nns_governance.pb.v1.BallotInfo.prototype.setVote = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); +proto.ic_nns_governance.pb.v1.AuditEvent.PayloadCase = { + PAYLOAD_NOT_SET: 0, + RESET_AGING: 2, + RESTORE_AGING: 3 }; - - /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * @return {proto.ic_nns_governance.pb.v1.AuditEvent.PayloadCase} */ -proto.ic_nns_governance.pb.v1.NeuronInfo.repeatedFields_ = [5]; +proto.ic_nns_governance.pb.v1.AuditEvent.prototype.getPayloadCase = function() { + return /** @type {proto.ic_nns_governance.pb.v1.AuditEvent.PayloadCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.AuditEvent.oneofGroups_[0])); +}; @@ -6172,8 +36692,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.NeuronInfo.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.AuditEvent.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.AuditEvent.toObject(opt_includeInstance, this); }; @@ -6182,19 +36702,15 @@ proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.toObject = function(opt_inclu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.NeuronInfo} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.AuditEvent} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.NeuronInfo.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.AuditEvent.toObject = function(includeInstance, msg) { var f, obj = { - retrievedAtTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 1, "0"), - ageSeconds: jspb.Message.getFieldWithDefault(msg, 3, "0"), - dissolveDelaySeconds: jspb.Message.getFieldWithDefault(msg, 4, "0"), - recentBallotsList: jspb.Message.toObjectList(msg.getRecentBallotsList(), - proto.ic_nns_governance.pb.v1.BallotInfo.toObject, includeInstance), - votingPower: jspb.Message.getFieldWithDefault(msg, 6, "0"), - createdTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 7, "0") + timestampSeconds: jspb.Message.getFieldWithDefault(msg, 1, 0), + resetAging: (f = msg.getResetAging()) && proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.toObject(includeInstance, f), + restoreAging: (f = msg.getRestoreAging()) && proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.toObject(includeInstance, f) }; if (includeInstance) { @@ -6208,23 +36724,23 @@ proto.ic_nns_governance.pb.v1.NeuronInfo.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent} */ -proto.ic_nns_governance.pb.v1.NeuronInfo.deserializeBinary = function(bytes) { +proto.ic_nns_governance.pb.v1.AuditEvent.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.NeuronInfo; - return proto.ic_nns_governance.pb.v1.NeuronInfo.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_nns_governance.pb.v1.AuditEvent; + return proto.ic_nns_governance.pb.v1.AuditEvent.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.NeuronInfo} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.AuditEvent} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent} */ -proto.ic_nns_governance.pb.v1.NeuronInfo.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_nns_governance.pb.v1.AuditEvent.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6232,29 +36748,18 @@ proto.ic_nns_governance.pb.v1.NeuronInfo.deserializeBinaryFromReader = function( var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setRetrievedAtTimestampSeconds(value); - break; - case 3: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setAgeSeconds(value); - break; - case 4: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setDissolveDelaySeconds(value); - break; - case 5: - var value = new proto.ic_nns_governance.pb.v1.BallotInfo; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.BallotInfo.deserializeBinaryFromReader); - msg.addRecentBallots(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setTimestampSeconds(value); break; - case 6: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setVotingPower(value); + case 2: + var value = new proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.deserializeBinaryFromReader); + msg.setResetAging(value); break; - case 7: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setCreatedTimestampSeconds(value); + case 3: + var value = new proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.deserializeBinaryFromReader); + msg.setRestoreAging(value); break; default: reader.skipField(); @@ -6269,9 +36774,9 @@ proto.ic_nns_governance.pb.v1.NeuronInfo.deserializeBinaryFromReader = function( * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.AuditEvent.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.NeuronInfo.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.AuditEvent.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6279,193 +36784,38 @@ proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.NeuronInfo} message + * @param {!proto.ic_nns_governance.pb.v1.AuditEvent} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.NeuronInfo.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.AuditEvent.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getRetrievedAtTimestampSeconds(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( + f = message.getTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( 1, f ); } - f = message.getAgeSeconds(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 3, - f - ); - } - f = message.getDissolveDelaySeconds(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 4, - f - ); - } - f = message.getRecentBallotsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, + f = message.getResetAging(); + if (f != null) { + writer.writeMessage( + 2, f, - proto.ic_nns_governance.pb.v1.BallotInfo.serializeBinaryToWriter - ); - } - f = message.getVotingPower(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 6, - f + proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.serializeBinaryToWriter ); } - f = message.getCreatedTimestampSeconds(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 7, - f + f = message.getRestoreAging(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.serializeBinaryToWriter ); } }; -/** - * optional uint64 retrieved_at_timestamp_seconds = 1; - * @return {string} - */ -proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.getRetrievedAtTimestampSeconds = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} returns this - */ -proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.setRetrievedAtTimestampSeconds = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional uint64 age_seconds = 3; - * @return {string} - */ -proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.getAgeSeconds = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} returns this - */ -proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.setAgeSeconds = function(value) { - return jspb.Message.setProto3StringIntField(this, 3, value); -}; - - -/** - * optional uint64 dissolve_delay_seconds = 4; - * @return {string} - */ -proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.getDissolveDelaySeconds = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} returns this - */ -proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.setDissolveDelaySeconds = function(value) { - return jspb.Message.setProto3StringIntField(this, 4, value); -}; - - -/** - * repeated BallotInfo recent_ballots = 5; - * @return {!Array} - */ -proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.getRecentBallotsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.ic_nns_governance.pb.v1.BallotInfo, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} returns this -*/ -proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.setRecentBallotsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.ic_nns_governance.pb.v1.BallotInfo=} opt_value - * @param {number=} opt_index - * @return {!proto.ic_nns_governance.pb.v1.BallotInfo} - */ -proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.addRecentBallots = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.ic_nns_governance.pb.v1.BallotInfo, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} returns this - */ -proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.clearRecentBallotsList = function() { - return this.setRecentBallotsList([]); -}; - - -/** - * optional uint64 voting_power = 6; - * @return {string} - */ -proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.getVotingPower = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} returns this - */ -proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.setVotingPower = function(value) { - return jspb.Message.setProto3StringIntField(this, 6, value); -}; - - -/** - * optional uint64 created_timestamp_seconds = 7; - * @return {string} - */ -proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.getCreatedTimestampSeconds = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.NeuronInfo} returns this - */ -proto.ic_nns_governance.pb.v1.NeuronInfo.prototype.setCreatedTimestampSeconds = function(value) { - return jspb.Message.setProto3StringIntField(this, 7, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.ic_nns_governance.pb.v1.Neuron.repeatedFields_ = [4,12]; /** * Oneof group definitions for this message. Each group defines the field @@ -6475,22 +36825,22 @@ proto.ic_nns_governance.pb.v1.Neuron.repeatedFields_ = [4,12]; * @private {!Array>} * @const */ -proto.ic_nns_governance.pb.v1.Neuron.oneofGroups_ = [[9,10]]; +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.oneofGroups_ = [[4,5]]; /** * @enum {number} */ -proto.ic_nns_governance.pb.v1.Neuron.DissolveStateCase = { - DISSOLVE_STATE_NOT_SET: 0, - WHEN_DISSOLVED_TIMESTAMP_SECONDS: 9, - DISSOLVE_DELAY_SECONDS: 10 +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.NeuronDissolveStateCase = { + NEURON_DISSOLVE_STATE_NOT_SET: 0, + WHEN_DISSOLVED_TIMESTAMP_SECONDS: 4, + DISSOLVE_DELAY_SECONDS: 5 }; /** - * @return {proto.ic_nns_governance.pb.v1.Neuron.DissolveStateCase} + * @return {proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.NeuronDissolveStateCase} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.getDissolveStateCase = function() { - return /** @type {proto.ic_nns_governance.pb.v1.Neuron.DissolveStateCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.Neuron.oneofGroups_[0])); +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.prototype.getNeuronDissolveStateCase = function() { + return /** @type {proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.NeuronDissolveStateCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.oneofGroups_[0])); }; @@ -6508,8 +36858,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.Neuron.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.toObject(opt_includeInstance, this); }; @@ -6518,31 +36868,18 @@ proto.ic_nns_governance.pb.v1.Neuron.prototype.toObject = function(opt_includeIn * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.Neuron} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.Neuron.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.toObject = function(includeInstance, msg) { var f, obj = { - id: (f = msg.getId()) && base_types_pb.NeuronId.toObject(includeInstance, f), - account: msg.getAccount_asB64(), - controller: (f = msg.getController()) && base_types_pb.PrincipalId.toObject(includeInstance, f), - hotKeysList: jspb.Message.toObjectList(msg.getHotKeysList(), - base_types_pb.PrincipalId.toObject, includeInstance), - cachedNeuronStakeE8s: jspb.Message.getFieldWithDefault(msg, 5, "0"), - neuronFeesE8s: jspb.Message.getFieldWithDefault(msg, 6, "0"), - createdTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 7, "0"), - agingSinceTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 8, "0"), - spawnAtTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 19, "0"), - whenDissolvedTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 9, "0"), - dissolveDelaySeconds: jspb.Message.getFieldWithDefault(msg, 10, "0"), - followeesMap: (f = msg.getFolloweesMap()) ? f.toObject(includeInstance, proto.ic_nns_governance.pb.v1.Neuron.Followees.toObject) : [], - recentBallotsList: jspb.Message.toObjectList(msg.getRecentBallotsList(), - proto.ic_nns_governance.pb.v1.BallotInfo.toObject, includeInstance), - kycVerified: jspb.Message.getBooleanFieldWithDefault(msg, 13, false), - transfer: (f = msg.getTransfer()) && proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.toObject(includeInstance, f), - maturityE8sEquivalent: jspb.Message.getFieldWithDefault(msg, 15, "0"), - notForProfit: jspb.Message.getBooleanFieldWithDefault(msg, 16, false) + neuronId: jspb.Message.getFieldWithDefault(msg, 1, 0), + previousAgingSinceTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 2, 0), + newAgingSinceTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 3, 0), + whenDissolvedTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 4, 0), + dissolveDelaySeconds: jspb.Message.getFieldWithDefault(msg, 5, 0), + neuronStakeE8s: jspb.Message.getFieldWithDefault(msg, 6, 0) }; if (includeInstance) { @@ -6556,23 +36893,23 @@ proto.ic_nns_governance.pb.v1.Neuron.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.Neuron} + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging} */ -proto.ic_nns_governance.pb.v1.Neuron.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.Neuron; - return proto.ic_nns_governance.pb.v1.Neuron.deserializeBinaryFromReader(msg, reader); +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging; + return proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.Neuron} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.Neuron} + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging} */ -proto.ic_nns_governance.pb.v1.Neuron.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6580,79 +36917,28 @@ proto.ic_nns_governance.pb.v1.Neuron.deserializeBinaryFromReader = function(msg, var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new base_types_pb.NeuronId; - reader.readMessage(value,base_types_pb.NeuronId.deserializeBinaryFromReader); - msg.setId(value); + var value = /** @type {number} */ (reader.readFixed64()); + msg.setNeuronId(value); break; case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setAccount(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setPreviousAgingSinceTimestampSeconds(value); break; case 3: - var value = new base_types_pb.PrincipalId; - reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); - msg.setController(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setNewAgingSinceTimestampSeconds(value); break; case 4: - var value = new base_types_pb.PrincipalId; - reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); - msg.addHotKeys(value); - break; - case 5: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setCachedNeuronStakeE8s(value); - break; - case 6: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setNeuronFeesE8s(value); - break; - case 7: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setCreatedTimestampSeconds(value); - break; - case 8: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setAgingSinceTimestampSeconds(value); - break; - case 19: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setSpawnAtTimestampSeconds(value); - break; - case 9: - var value = /** @type {string} */ (reader.readUint64String()); + var value = /** @type {number} */ (reader.readUint64()); msg.setWhenDissolvedTimestampSeconds(value); break; - case 10: - var value = /** @type {string} */ (reader.readUint64String()); + case 5: + var value = /** @type {number} */ (reader.readUint64()); msg.setDissolveDelaySeconds(value); break; - case 11: - var value = msg.getFolloweesMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readInt32, jspb.BinaryReader.prototype.readMessage, proto.ic_nns_governance.pb.v1.Neuron.Followees.deserializeBinaryFromReader, 0, new proto.ic_nns_governance.pb.v1.Neuron.Followees()); - }); - break; - case 12: - var value = new proto.ic_nns_governance.pb.v1.BallotInfo; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.BallotInfo.deserializeBinaryFromReader); - msg.addRecentBallots(value); - break; - case 13: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setKycVerified(value); - break; - case 14: - var value = new proto.ic_nns_governance.pb.v1.NeuronStakeTransfer; - reader.readMessage(value,proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.deserializeBinaryFromReader); - msg.setTransfer(value); - break; - case 15: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setMaturityE8sEquivalent(value); - break; - case 16: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setNotForProfit(value); + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setNeuronStakeE8s(value); break; default: reader.skipField(); @@ -6667,9 +36953,9 @@ proto.ic_nns_governance.pb.v1.Neuron.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.Neuron.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6677,143 +36963,227 @@ proto.ic_nns_governance.pb.v1.Neuron.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.Neuron} message + * @param {!proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.Neuron.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); - if (f != null) { - writer.writeMessage( + f = message.getNeuronId(); + if (f !== 0) { + writer.writeFixed64( 1, - f, - base_types_pb.NeuronId.serializeBinaryToWriter + f ); } - f = message.getAccount_asU8(); - if (f.length > 0) { - writer.writeBytes( + f = message.getPreviousAgingSinceTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( 2, f ); } - f = message.getController(); - if (f != null) { - writer.writeMessage( + f = message.getNewAgingSinceTimestampSeconds(); + if (f !== 0) { + writer.writeUint64( 3, - f, - base_types_pb.PrincipalId.serializeBinaryToWriter - ); - } - f = message.getHotKeysList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - base_types_pb.PrincipalId.serializeBinaryToWriter - ); - } - f = message.getCachedNeuronStakeE8s(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 5, - f - ); - } - f = message.getNeuronFeesE8s(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 6, - f - ); - } - f = message.getCreatedTimestampSeconds(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 7, - f - ); - } - f = message.getAgingSinceTimestampSeconds(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 8, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 19)); - if (f != null) { - writer.writeUint64String( - 19, - f - ); - } - f = /** @type {string} */ (jspb.Message.getField(message, 9)); - if (f != null) { - writer.writeUint64String( - 9, f ); } - f = /** @type {string} */ (jspb.Message.getField(message, 10)); + f = /** @type {number} */ (jspb.Message.getField(message, 4)); if (f != null) { - writer.writeUint64String( - 10, - f - ); - } - f = message.getFolloweesMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(11, writer, jspb.BinaryWriter.prototype.writeInt32, jspb.BinaryWriter.prototype.writeMessage, proto.ic_nns_governance.pb.v1.Neuron.Followees.serializeBinaryToWriter); - } - f = message.getRecentBallotsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 12, - f, - proto.ic_nns_governance.pb.v1.BallotInfo.serializeBinaryToWriter - ); - } - f = message.getKycVerified(); - if (f) { - writer.writeBool( - 13, + writer.writeUint64( + 4, f ); } - f = message.getTransfer(); + f = /** @type {number} */ (jspb.Message.getField(message, 5)); if (f != null) { - writer.writeMessage( - 14, - f, - proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.serializeBinaryToWriter - ); - } - f = message.getMaturityE8sEquivalent(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 15, + writer.writeUint64( + 5, f ); } - f = message.getNotForProfit(); - if (f) { - writer.writeBool( - 16, + f = message.getNeuronStakeE8s(); + if (f !== 0) { + writer.writeUint64( + 6, f ); } }; +/** + * optional fixed64 neuron_id = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.prototype.getNeuronId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging} returns this + */ +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.prototype.setNeuronId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint64 previous_aging_since_timestamp_seconds = 2; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.prototype.getPreviousAgingSinceTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging} returns this + */ +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.prototype.setPreviousAgingSinceTimestampSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional uint64 new_aging_since_timestamp_seconds = 3; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.prototype.getNewAgingSinceTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging} returns this + */ +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.prototype.setNewAgingSinceTimestampSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional uint64 when_dissolved_timestamp_seconds = 4; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.prototype.getWhenDissolvedTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging} returns this + */ +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.prototype.setWhenDissolvedTimestampSeconds = function(value) { + return jspb.Message.setOneofField(this, 4, proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging} returns this + */ +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.prototype.clearWhenDissolvedTimestampSeconds = function() { + return jspb.Message.setOneofField(this, 4, proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.prototype.hasWhenDissolvedTimestampSeconds = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional uint64 dissolve_delay_seconds = 5; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.prototype.getDissolveDelaySeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging} returns this + */ +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.prototype.setDissolveDelaySeconds = function(value) { + return jspb.Message.setOneofField(this, 5, proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging} returns this + */ +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.prototype.clearDissolveDelaySeconds = function() { + return jspb.Message.setOneofField(this, 5, proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.prototype.hasDissolveDelaySeconds = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional uint64 neuron_stake_e8s = 6; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.prototype.getNeuronStakeE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging} returns this + */ +proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging.prototype.setNeuronStakeE8s = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + + +/** + * 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.ic_nns_governance.pb.v1.Neuron.Followees.repeatedFields_ = [1]; +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.oneofGroups_ = [[4,5]]; + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.NeuronDissolveStateCase = { + NEURON_DISSOLVE_STATE_NOT_SET: 0, + WHEN_DISSOLVED_TIMESTAMP_SECONDS: 4, + DISSOLVE_DELAY_SECONDS: 5 +}; + +/** + * @return {proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.NeuronDissolveStateCase} + */ +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.getNeuronDissolveStateCase = function() { + return /** @type {proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.NeuronDissolveStateCase} */(jspb.Message.computeOneofCase(this, proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.oneofGroups_[0])); +}; @@ -6830,8 +37200,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_nns_governance.pb.v1.Neuron.Followees.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.Neuron.Followees.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.toObject(opt_includeInstance, this); }; @@ -6840,14 +37210,18 @@ proto.ic_nns_governance.pb.v1.Neuron.Followees.prototype.toObject = function(opt * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.Neuron.Followees} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.Neuron.Followees.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.toObject = function(includeInstance, msg) { var f, obj = { - followeesList: jspb.Message.toObjectList(msg.getFolloweesList(), - base_types_pb.NeuronId.toObject, includeInstance) + neuronId: jspb.Message.getFieldWithDefault(msg, 1, 0), + previousAgingSinceTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 2, 0), + newAgingSinceTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 3, 0), + whenDissolvedTimestampSeconds: jspb.Message.getFieldWithDefault(msg, 4, 0), + dissolveDelaySeconds: jspb.Message.getFieldWithDefault(msg, 5, 0), + neuronStakeE8s: jspb.Message.getFieldWithDefault(msg, 6, 0) }; if (includeInstance) { @@ -6861,23 +37235,23 @@ proto.ic_nns_governance.pb.v1.Neuron.Followees.toObject = function(includeInstan /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.Neuron.Followees} + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging} */ -proto.ic_nns_governance.pb.v1.Neuron.Followees.deserializeBinary = function(bytes) { +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.Neuron.Followees; - return proto.ic_nns_governance.pb.v1.Neuron.Followees.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging; + return proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.Neuron.Followees} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.Neuron.Followees} + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging} */ -proto.ic_nns_governance.pb.v1.Neuron.Followees.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6885,9 +37259,28 @@ proto.ic_nns_governance.pb.v1.Neuron.Followees.deserializeBinaryFromReader = fun var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new base_types_pb.NeuronId; - reader.readMessage(value,base_types_pb.NeuronId.deserializeBinaryFromReader); - msg.addFollowees(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setNeuronId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setPreviousAgingSinceTimestampSeconds(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint64()); + msg.setNewAgingSinceTimestampSeconds(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint64()); + msg.setWhenDissolvedTimestampSeconds(value); + break; + case 5: + var value = /** @type {number} */ (reader.readUint64()); + msg.setDissolveDelaySeconds(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setNeuronStakeE8s(value); break; default: reader.skipField(); @@ -6902,9 +37295,9 @@ proto.ic_nns_governance.pb.v1.Neuron.Followees.deserializeBinaryFromReader = fun * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.Neuron.Followees.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.Neuron.Followees.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6912,311 +37305,189 @@ proto.ic_nns_governance.pb.v1.Neuron.Followees.prototype.serializeBinary = funct /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.Neuron.Followees} message + * @param {!proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.Neuron.Followees.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getFolloweesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = /** @type {number} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeUint64( 1, - f, - base_types_pb.NeuronId.serializeBinaryToWriter + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeUint64( + 2, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeUint64( + 3, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeUint64( + 4, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeUint64( + 5, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 6)); + if (f != null) { + writer.writeUint64( + 6, + f ); } }; /** - * repeated ic_base_types.pb.v1.NeuronId followees = 1; - * @return {!Array} - */ -proto.ic_nns_governance.pb.v1.Neuron.Followees.prototype.getFolloweesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, base_types_pb.NeuronId, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.ic_nns_governance.pb.v1.Neuron.Followees} returns this -*/ -proto.ic_nns_governance.pb.v1.Neuron.Followees.prototype.setFolloweesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.ic_base_types.pb.v1.NeuronId=} opt_value - * @param {number=} opt_index - * @return {!proto.ic_base_types.pb.v1.NeuronId} - */ -proto.ic_nns_governance.pb.v1.Neuron.Followees.prototype.addFollowees = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ic_base_types.pb.v1.NeuronId, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.ic_nns_governance.pb.v1.Neuron.Followees} returns this - */ -proto.ic_nns_governance.pb.v1.Neuron.Followees.prototype.clearFolloweesList = function() { - return this.setFolloweesList([]); -}; - - -/** - * optional ic_base_types.pb.v1.NeuronId id = 1; - * @return {?proto.ic_base_types.pb.v1.NeuronId} - */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.getId = function() { - return /** @type{?proto.ic_base_types.pb.v1.NeuronId} */ ( - jspb.Message.getWrapperField(this, base_types_pb.NeuronId, 1)); -}; - - -/** - * @param {?proto.ic_base_types.pb.v1.NeuronId|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this -*/ -proto.ic_nns_governance.pb.v1.Neuron.prototype.setId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this - */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.clearId = function() { - return this.setId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.hasId = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional bytes account = 2; - * @return {!(string|Uint8Array)} - */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.getAccount = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes account = 2; - * This is a type-conversion wrapper around `getAccount()` - * @return {string} - */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.getAccount_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getAccount())); -}; - - -/** - * optional bytes account = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getAccount()` - * @return {!Uint8Array} - */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.getAccount_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getAccount())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this - */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.setAccount = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional ic_base_types.pb.v1.PrincipalId controller = 3; - * @return {?proto.ic_base_types.pb.v1.PrincipalId} - */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.getController = function() { - return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( - jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 3)); -}; - - -/** - * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this -*/ -proto.ic_nns_governance.pb.v1.Neuron.prototype.setController = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this - */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.clearController = function() { - return this.setController(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.hasController = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * repeated ic_base_types.pb.v1.PrincipalId hot_keys = 4; - * @return {!Array} - */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.getHotKeysList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, base_types_pb.PrincipalId, 4)); + * optional uint64 neuron_id = 1; + * @return {number} + */ +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.getNeuronId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {!Array} value - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this -*/ -proto.ic_nns_governance.pb.v1.Neuron.prototype.setHotKeysList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging} returns this + */ +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.setNeuronId = function(value) { + return jspb.Message.setField(this, 1, value); }; /** - * @param {!proto.ic_base_types.pb.v1.PrincipalId=} opt_value - * @param {number=} opt_index - * @return {!proto.ic_base_types.pb.v1.PrincipalId} + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging} returns this */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.addHotKeys = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.ic_base_types.pb.v1.PrincipalId, opt_index); +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.clearNeuronId = function() { + return jspb.Message.setField(this, 1, undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.clearHotKeysList = function() { - return this.setHotKeysList([]); +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.hasNeuronId = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional uint64 cached_neuron_stake_e8s = 5; - * @return {string} + * optional uint64 previous_aging_since_timestamp_seconds = 2; + * @return {number} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.getCachedNeuronStakeE8s = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.getPreviousAgingSinceTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging} returns this */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.setCachedNeuronStakeE8s = function(value) { - return jspb.Message.setProto3StringIntField(this, 5, value); +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.setPreviousAgingSinceTimestampSeconds = function(value) { + return jspb.Message.setField(this, 2, value); }; /** - * optional uint64 neuron_fees_e8s = 6; - * @return {string} + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging} returns this */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.getNeuronFeesE8s = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.clearPreviousAgingSinceTimestampSeconds = function() { + return jspb.Message.setField(this, 2, undefined); }; /** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.setNeuronFeesE8s = function(value) { - return jspb.Message.setProto3StringIntField(this, 6, value); +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.hasPreviousAgingSinceTimestampSeconds = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * optional uint64 created_timestamp_seconds = 7; - * @return {string} + * optional uint64 new_aging_since_timestamp_seconds = 3; + * @return {number} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.getCreatedTimestampSeconds = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "0")); +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.getNewAgingSinceTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging} returns this */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.setCreatedTimestampSeconds = function(value) { - return jspb.Message.setProto3StringIntField(this, 7, value); +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.setNewAgingSinceTimestampSeconds = function(value) { + return jspb.Message.setField(this, 3, value); }; /** - * optional uint64 aging_since_timestamp_seconds = 8; - * @return {string} + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging} returns this */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.getAgingSinceTimestampSeconds = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0")); +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.clearNewAgingSinceTimestampSeconds = function() { + return jspb.Message.setField(this, 3, undefined); }; /** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.setAgingSinceTimestampSeconds = function(value) { - return jspb.Message.setProto3StringIntField(this, 8, value); +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.hasNewAgingSinceTimestampSeconds = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * optional uint64 spawn_at_timestamp_seconds = 19; - * @return {string} + * optional uint64 when_dissolved_timestamp_seconds = 4; + * @return {number} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.getSpawnAtTimestampSeconds = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, "0")); +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.getWhenDissolvedTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging} returns this */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.setSpawnAtTimestampSeconds = function(value) { - return jspb.Message.setField(this, 19, value); +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.setWhenDissolvedTimestampSeconds = function(value) { + return jspb.Message.setOneofField(this, 4, proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.oneofGroups_[0], value); }; /** * Clears the field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging} returns this */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.clearSpawnAtTimestampSeconds = function() { - return jspb.Message.setField(this, 19, undefined); +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.clearWhenDissolvedTimestampSeconds = function() { + return jspb.Message.setOneofField(this, 4, proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.oneofGroups_[0], undefined); }; @@ -7224,35 +37495,35 @@ proto.ic_nns_governance.pb.v1.Neuron.prototype.clearSpawnAtTimestampSeconds = fu * Returns whether this field is set. * @return {boolean} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.hasSpawnAtTimestampSeconds = function() { - return jspb.Message.getField(this, 19) != null; +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.hasWhenDissolvedTimestampSeconds = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * optional uint64 when_dissolved_timestamp_seconds = 9; - * @return {string} + * optional uint64 dissolve_delay_seconds = 5; + * @return {number} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.getWhenDissolvedTimestampSeconds = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "0")); +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.getDissolveDelaySeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging} returns this */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.setWhenDissolvedTimestampSeconds = function(value) { - return jspb.Message.setOneofField(this, 9, proto.ic_nns_governance.pb.v1.Neuron.oneofGroups_[0], value); +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.setDissolveDelaySeconds = function(value) { + return jspb.Message.setOneofField(this, 5, proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.oneofGroups_[0], value); }; /** * Clears the field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging} returns this */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.clearWhenDissolvedTimestampSeconds = function() { - return jspb.Message.setOneofField(this, 9, proto.ic_nns_governance.pb.v1.Neuron.oneofGroups_[0], undefined); +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.clearDissolveDelaySeconds = function() { + return jspb.Message.setOneofField(this, 5, proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.oneofGroups_[0], undefined); }; @@ -7260,35 +37531,35 @@ proto.ic_nns_governance.pb.v1.Neuron.prototype.clearWhenDissolvedTimestampSecond * Returns whether this field is set. * @return {boolean} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.hasWhenDissolvedTimestampSeconds = function() { - return jspb.Message.getField(this, 9) != null; +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.hasDissolveDelaySeconds = function() { + return jspb.Message.getField(this, 5) != null; }; /** - * optional uint64 dissolve_delay_seconds = 10; - * @return {string} + * optional uint64 neuron_stake_e8s = 6; + * @return {number} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.getDissolveDelaySeconds = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "0")); +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.getNeuronStakeE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; /** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging} returns this */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.setDissolveDelaySeconds = function(value) { - return jspb.Message.setOneofField(this, 10, proto.ic_nns_governance.pb.v1.Neuron.oneofGroups_[0], value); +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.setNeuronStakeE8s = function(value) { + return jspb.Message.setField(this, 6, value); }; /** * Clears the field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging} returns this */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.clearDissolveDelaySeconds = function() { - return jspb.Message.setOneofField(this, 10, proto.ic_nns_governance.pb.v1.Neuron.oneofGroups_[0], undefined); +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.clearNeuronStakeE8s = function() { + return jspb.Message.setField(this, 6, undefined); }; @@ -7296,165 +37567,252 @@ proto.ic_nns_governance.pb.v1.Neuron.prototype.clearDissolveDelaySeconds = funct * Returns whether this field is set. * @return {boolean} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.hasDissolveDelaySeconds = function() { - return jspb.Message.getField(this, 10) != null; +proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging.prototype.hasNeuronStakeE8s = function() { + return jspb.Message.getField(this, 6) != null; }; /** - * map followees = 11; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} + * optional uint64 timestamp_seconds = 1; + * @return {number} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.getFolloweesMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 11, opt_noLazyCreate, - proto.ic_nns_governance.pb.v1.Neuron.Followees)); +proto.ic_nns_governance.pb.v1.AuditEvent.prototype.getTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * Clears values from the map. The map will be non-null. - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent} returns this */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.clearFolloweesMap = function() { - this.getFolloweesMap().clear(); - return this;}; +proto.ic_nns_governance.pb.v1.AuditEvent.prototype.setTimestampSeconds = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; /** - * repeated BallotInfo recent_ballots = 12; - * @return {!Array} + * optional ResetAging reset_aging = 2; + * @return {?proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.getRecentBallotsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.ic_nns_governance.pb.v1.BallotInfo, 12)); +proto.ic_nns_governance.pb.v1.AuditEvent.prototype.getResetAging = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging, 2)); }; /** - * @param {!Array} value - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + * @param {?proto.ic_nns_governance.pb.v1.AuditEvent.ResetAging|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent} returns this */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.setRecentBallotsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 12, value); +proto.ic_nns_governance.pb.v1.AuditEvent.prototype.setResetAging = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.ic_nns_governance.pb.v1.AuditEvent.oneofGroups_[0], value); }; /** - * @param {!proto.ic_nns_governance.pb.v1.BallotInfo=} opt_value - * @param {number=} opt_index - * @return {!proto.ic_nns_governance.pb.v1.BallotInfo} + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent} returns this */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.addRecentBallots = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.ic_nns_governance.pb.v1.BallotInfo, opt_index); +proto.ic_nns_governance.pb.v1.AuditEvent.prototype.clearResetAging = function() { + return this.setResetAging(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.clearRecentBallotsList = function() { - return this.setRecentBallotsList([]); +proto.ic_nns_governance.pb.v1.AuditEvent.prototype.hasResetAging = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * optional bool kyc_verified = 13; - * @return {boolean} + * optional RestoreAging restore_aging = 3; + * @return {?proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.getKycVerified = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false)); +proto.ic_nns_governance.pb.v1.AuditEvent.prototype.getRestoreAging = function() { + return /** @type{?proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging} */ ( + jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging, 3)); }; /** - * @param {boolean} value - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + * @param {?proto.ic_nns_governance.pb.v1.AuditEvent.RestoreAging|undefined} value + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent} returns this +*/ +proto.ic_nns_governance.pb.v1.AuditEvent.prototype.setRestoreAging = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.ic_nns_governance.pb.v1.AuditEvent.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.AuditEvent} returns this */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.setKycVerified = function(value) { - return jspb.Message.setProto3BooleanField(this, 13, value); +proto.ic_nns_governance.pb.v1.AuditEvent.prototype.clearRestoreAging = function() { + return this.setRestoreAging(undefined); }; /** - * optional NeuronStakeTransfer transfer = 14; - * @return {?proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.getTransfer = function() { - return /** @type{?proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} */ ( - jspb.Message.getWrapperField(this, proto.ic_nns_governance.pb.v1.NeuronStakeTransfer, 14)); +proto.ic_nns_governance.pb.v1.AuditEvent.prototype.hasRestoreAging = function() { + return jspb.Message.getField(this, 3) != null; }; + /** - * @param {?proto.ic_nns_governance.pb.v1.NeuronStakeTransfer|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this -*/ -proto.ic_nns_governance.pb.v1.Neuron.prototype.setTransfer = function(value) { - return jspb.Message.setWrapperField(this, 14, value); + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.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.ic_nns_governance.pb.v1.RestoreAgingSummary.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.RestoreAgingSummary.toObject(opt_includeInstance, this); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns 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.ic_nns_governance.pb.v1.RestoreAgingSummary} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.clearTransfer = function() { - return this.setTransfer(undefined); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.toObject = function(includeInstance, msg) { + var f, obj = { + timestampSeconds: jspb.Message.getFieldWithDefault(msg, 1, 0), + groupsList: jspb.Message.toObjectList(msg.getGroupsList(), + proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * Returns whether this field is set. - * @return {boolean} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.hasTransfer = function() { - return jspb.Message.getField(this, 14) != null; +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_nns_governance.pb.v1.RestoreAgingSummary; + return proto.ic_nns_governance.pb.v1.RestoreAgingSummary.deserializeBinaryFromReader(msg, reader); }; /** - * optional uint64 maturity_e8s_equivalent = 15; - * @return {string} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.getMaturityE8sEquivalent = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "0")); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setTimestampSeconds(value); + break; + case 2: + var value = new proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup; + reader.readMessage(value,proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.deserializeBinaryFromReader); + msg.addGroups(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.setMaturityE8sEquivalent = function(value) { - return jspb.Message.setProto3StringIntField(this, 15, value); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_nns_governance.pb.v1.RestoreAgingSummary.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * optional bool not_for_profit = 16; - * @return {boolean} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.getNotForProfit = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 16, false)); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {number} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeUint64( + 1, + f + ); + } + f = message.getGroupsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.serializeBinaryToWriter + ); + } }; /** - * @param {boolean} value - * @return {!proto.ic_nns_governance.pb.v1.Neuron} returns this + * @enum {number} */ -proto.ic_nns_governance.pb.v1.Neuron.prototype.setNotForProfit = function(value) { - return jspb.Message.setProto3BooleanField(this, 16, value); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.NeuronGroupType = { + NEURON_GROUP_TYPE_UNSPECIFIED: 0, + NEURON_GROUP_TYPE_NOT_PRE_AGING: 1, + NEURON_GROUP_TYPE_DISSOLVING_OR_DISSOLVED: 2, + NEURON_GROUP_TYPE_STAKE_CHANGED: 3, + NEURON_GROUP_TYPE_STAKE_SAME_AGING_CHANGED: 4, + NEURON_GROUP_TYPE_STAKE_SAME_AGING_SAME: 5 }; - if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. @@ -7468,8 +37826,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.toObject = function(opt_includeInstance) { - return proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.toObject(opt_includeInstance, this); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.prototype.toObject = function(opt_includeInstance) { + return proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.toObject(opt_includeInstance, this); }; @@ -7478,19 +37836,16 @@ proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.toObject = function( * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} msg The msg instance to transform. + * @param {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.toObject = function(includeInstance, msg) { +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.toObject = function(includeInstance, msg) { var f, obj = { - transferTimestamp: jspb.Message.getFieldWithDefault(msg, 1, "0"), - from: (f = msg.getFrom()) && base_types_pb.PrincipalId.toObject(includeInstance, f), - fromSubaccount: msg.getFromSubaccount_asB64(), - toSubaccount: msg.getToSubaccount_asB64(), - neuronStakeE8s: jspb.Message.getFieldWithDefault(msg, 5, "0"), - blockHeight: jspb.Message.getFieldWithDefault(msg, 6, "0"), - memo: jspb.Message.getFieldWithDefault(msg, 7, "0") + groupType: jspb.Message.getFieldWithDefault(msg, 1, 0), + count: jspb.Message.getFieldWithDefault(msg, 2, 0), + previousTotalStakeE8s: jspb.Message.getFieldWithDefault(msg, 3, 0), + currentTotalStakeE8s: jspb.Message.getFieldWithDefault(msg, 4, 0) }; if (includeInstance) { @@ -7504,23 +37859,23 @@ proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.toObject = function(includeIns /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} + * @return {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup} */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.deserializeBinary = function(bytes) { +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_nns_governance.pb.v1.NeuronStakeTransfer; - return proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup; + return proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} msg The message object to deserialize into. + * @param {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} + * @return {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup} */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7528,33 +37883,20 @@ proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.deserializeBinaryFromReader = var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setTransferTimestamp(value); + var value = /** @type {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary.NeuronGroupType} */ (reader.readEnum()); + msg.setGroupType(value); break; case 2: - var value = new base_types_pb.PrincipalId; - reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); - msg.setFrom(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setCount(value); break; case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setFromSubaccount(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setPreviousTotalStakeE8s(value); break; case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setToSubaccount(value); - break; - case 5: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setNeuronStakeE8s(value); - break; - case 6: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setBlockHeight(value); - break; - case 7: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setMemo(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setCurrentTotalStakeE8s(value); break; default: reader.skipField(); @@ -7569,9 +37911,9 @@ proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.deserializeBinaryFromReader = * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.serializeBinary = function() { +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.serializeBinaryToWriter(this, writer); + proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7579,108 +37921,85 @@ proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.serializeBinary = fu /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} message + * @param {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.serializeBinaryToWriter = function(message, writer) { +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getTransferTimestamp(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( + f = message.getGroupType(); + if (f !== 0.0) { + writer.writeEnum( 1, f ); } - f = message.getFrom(); + f = /** @type {number} */ (jspb.Message.getField(message, 2)); if (f != null) { - writer.writeMessage( + writer.writeUint64( 2, - f, - base_types_pb.PrincipalId.serializeBinaryToWriter + f ); } - f = message.getFromSubaccount_asU8(); - if (f.length > 0) { - writer.writeBytes( + f = /** @type {number} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeUint64( 3, f ); } - f = message.getToSubaccount_asU8(); - if (f.length > 0) { - writer.writeBytes( + f = /** @type {number} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeUint64( 4, f ); } - f = message.getNeuronStakeE8s(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 5, - f - ); - } - f = message.getBlockHeight(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 6, - f - ); - } - f = message.getMemo(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 7, - f - ); - } }; /** - * optional uint64 transfer_timestamp = 1; - * @return {string} + * optional NeuronGroupType group_type = 1; + * @return {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary.NeuronGroupType} */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.getTransferTimestamp = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.prototype.getGroupType = function() { + return /** @type {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary.NeuronGroupType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} returns this + * @param {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary.NeuronGroupType} value + * @return {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup} returns this */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.setTransferTimestamp = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.prototype.setGroupType = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); }; /** - * optional ic_base_types.pb.v1.PrincipalId from = 2; - * @return {?proto.ic_base_types.pb.v1.PrincipalId} + * optional uint64 count = 2; + * @return {number} */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.getFrom = function() { - return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( - jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 2)); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.prototype.getCount = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value - * @return {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} returns this -*/ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.setFrom = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup} returns this + */ +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.prototype.setCount = function(value) { + return jspb.Message.setField(this, 2, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} returns this + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup} returns this */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.clearFrom = function() { - return this.setFrom(undefined); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.prototype.clearCount = function() { + return jspb.Message.setField(this, 2, undefined); }; @@ -7688,158 +38007,157 @@ proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.clearFrom = function * Returns whether this field is set. * @return {boolean} */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.hasFrom = function() { +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.prototype.hasCount = function() { return jspb.Message.getField(this, 2) != null; }; /** - * optional bytes from_subaccount = 3; - * @return {!(string|Uint8Array)} + * optional uint64 previous_total_stake_e8s = 3; + * @return {number} */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.getFromSubaccount = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.prototype.getPreviousTotalStakeE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** - * optional bytes from_subaccount = 3; - * This is a type-conversion wrapper around `getFromSubaccount()` - * @return {string} + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup} returns this */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.getFromSubaccount_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getFromSubaccount())); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.prototype.setPreviousTotalStakeE8s = function(value) { + return jspb.Message.setField(this, 3, value); }; /** - * optional bytes from_subaccount = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getFromSubaccount()` - * @return {!Uint8Array} + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup} returns this */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.getFromSubaccount_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getFromSubaccount())); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.prototype.clearPreviousTotalStakeE8s = function() { + return jspb.Message.setField(this, 3, undefined); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.setFromSubaccount = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.prototype.hasPreviousTotalStakeE8s = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * optional bytes to_subaccount = 4; - * @return {!(string|Uint8Array)} + * optional uint64 current_total_stake_e8s = 4; + * @return {number} */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.getToSubaccount = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.prototype.getCurrentTotalStakeE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** - * optional bytes to_subaccount = 4; - * This is a type-conversion wrapper around `getToSubaccount()` - * @return {string} + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup} returns this */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.getToSubaccount_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getToSubaccount())); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.prototype.setCurrentTotalStakeE8s = function(value) { + return jspb.Message.setField(this, 4, value); }; /** - * optional bytes to_subaccount = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getToSubaccount()` - * @return {!Uint8Array} + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup} returns this */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.getToSubaccount_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getToSubaccount())); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.prototype.clearCurrentTotalStakeE8s = function() { + return jspb.Message.setField(this, 4, undefined); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.setToSubaccount = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup.prototype.hasCurrentTotalStakeE8s = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * optional uint64 neuron_stake_e8s = 5; - * @return {string} + * optional uint64 timestamp_seconds = 1; + * @return {number} */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.getNeuronStakeE8s = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "0")); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.prototype.getTimestampSeconds = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} returns this + * @param {number} value + * @return {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary} returns this */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.setNeuronStakeE8s = function(value) { - return jspb.Message.setProto3StringIntField(this, 5, value); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.prototype.setTimestampSeconds = function(value) { + return jspb.Message.setField(this, 1, value); }; /** - * optional uint64 block_height = 6; - * @return {string} + * Clears the field making it undefined. + * @return {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary} returns this */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.getBlockHeight = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "0")); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.prototype.clearTimestampSeconds = function() { + return jspb.Message.setField(this, 1, undefined); }; /** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.setBlockHeight = function(value) { - return jspb.Message.setProto3StringIntField(this, 6, value); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.prototype.hasTimestampSeconds = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional uint64 memo = 7; - * @return {string} + * repeated RestoreAgingNeuronGroup groups = 2; + * @return {!Array} */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.getMemo = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "0")); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.prototype.getGroupsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup, 2)); }; /** - * @param {string} value - * @return {!proto.ic_nns_governance.pb.v1.NeuronStakeTransfer} returns this + * @param {!Array} value + * @return {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary} returns this +*/ +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.prototype.setGroupsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup} */ -proto.ic_nns_governance.pb.v1.NeuronStakeTransfer.prototype.setMemo = function(value) { - return jspb.Message.setProto3StringIntField(this, 7, value); +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.prototype.addGroups = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.ic_nns_governance.pb.v1.RestoreAgingSummary.RestoreAgingNeuronGroup, opt_index); }; /** - * @enum {number} + * Clears the list making it empty but non-null. + * @return {!proto.ic_nns_governance.pb.v1.RestoreAgingSummary} returns this */ -proto.ic_nns_governance.pb.v1.Vote = { - VOTE_UNSPECIFIED: 0, - VOTE_YES: 1, - VOTE_NO: 2 +proto.ic_nns_governance.pb.v1.RestoreAgingSummary.prototype.clearGroupsList = function() { + return this.setGroupsList([]); }; + /** * @enum {number} */ @@ -7855,11 +38173,119 @@ proto.ic_nns_governance.pb.v1.Topic = { TOPIC_NETWORK_CANISTER_MANAGEMENT: 8, TOPIC_KYC: 9, TOPIC_NODE_PROVIDER_REWARDS: 10, - TOPIC_SNS_DECENTRALIZATION_SALE: 11, - TOPIC_SUBNET_REPLICA_VERSION_MANAGEMENT: 12, - TOPIC_REPLICA_VERSION_MANAGEMENT: 13, + TOPIC_IC_OS_VERSION_DEPLOYMENT: 12, + TOPIC_IC_OS_VERSION_ELECTION: 13, TOPIC_SNS_AND_COMMUNITY_FUND: 14, TOPIC_API_BOUNDARY_NODE_MANAGEMENT: 15 }; +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.NeuronState = { + NEURON_STATE_UNSPECIFIED: 0, + NEURON_STATE_NOT_DISSOLVING: 1, + NEURON_STATE_DISSOLVING: 2, + NEURON_STATE_DISSOLVED: 3, + NEURON_STATE_SPAWNING: 4 +}; + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.NeuronType = { + NEURON_TYPE_UNSPECIFIED: 0, + NEURON_TYPE_SEED: 1, + NEURON_TYPE_ECT: 2 +}; + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.Vote = { + VOTE_UNSPECIFIED: 0, + VOTE_YES: 1, + VOTE_NO: 2 +}; + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.NnsFunction = { + NNS_FUNCTION_UNSPECIFIED: 0, + NNS_FUNCTION_CREATE_SUBNET: 1, + NNS_FUNCTION_ADD_NODE_TO_SUBNET: 2, + NNS_FUNCTION_NNS_CANISTER_INSTALL: 3, + NNS_FUNCTION_NNS_CANISTER_UPGRADE: 4, + NNS_FUNCTION_BLESS_REPLICA_VERSION: 5, + NNS_FUNCTION_RECOVER_SUBNET: 6, + NNS_FUNCTION_UPDATE_CONFIG_OF_SUBNET: 7, + NNS_FUNCTION_ASSIGN_NOID: 8, + NNS_FUNCTION_NNS_ROOT_UPGRADE: 9, + NNS_FUNCTION_ICP_XDR_CONVERSION_RATE: 10, + NNS_FUNCTION_DEPLOY_GUESTOS_TO_ALL_SUBNET_NODES: 11, + NNS_FUNCTION_CLEAR_PROVISIONAL_WHITELIST: 12, + NNS_FUNCTION_REMOVE_NODES_FROM_SUBNET: 13, + NNS_FUNCTION_SET_AUTHORIZED_SUBNETWORKS: 14, + NNS_FUNCTION_SET_FIREWALL_CONFIG: 15, + NNS_FUNCTION_UPDATE_NODE_OPERATOR_CONFIG: 16, + NNS_FUNCTION_STOP_OR_START_NNS_CANISTER: 17, + NNS_FUNCTION_REMOVE_NODES: 18, + NNS_FUNCTION_UNINSTALL_CODE: 19, + NNS_FUNCTION_UPDATE_NODE_REWARDS_TABLE: 20, + NNS_FUNCTION_ADD_OR_REMOVE_DATA_CENTERS: 21, + NNS_FUNCTION_UPDATE_UNASSIGNED_NODES_CONFIG: 22, + NNS_FUNCTION_REMOVE_NODE_OPERATORS: 23, + NNS_FUNCTION_REROUTE_CANISTER_RANGES: 24, + NNS_FUNCTION_ADD_FIREWALL_RULES: 25, + NNS_FUNCTION_REMOVE_FIREWALL_RULES: 26, + NNS_FUNCTION_UPDATE_FIREWALL_RULES: 27, + NNS_FUNCTION_PREPARE_CANISTER_MIGRATION: 28, + NNS_FUNCTION_COMPLETE_CANISTER_MIGRATION: 29, + NNS_FUNCTION_ADD_SNS_WASM: 30, + NNS_FUNCTION_CHANGE_SUBNET_MEMBERSHIP: 31, + NNS_FUNCTION_UPDATE_SUBNET_TYPE: 32, + NNS_FUNCTION_CHANGE_SUBNET_TYPE_ASSIGNMENT: 33, + NNS_FUNCTION_UPDATE_SNS_WASM_SNS_SUBNET_IDS: 34, + NNS_FUNCTION_UPDATE_ALLOWED_PRINCIPALS: 35, + NNS_FUNCTION_RETIRE_REPLICA_VERSION: 36, + NNS_FUNCTION_INSERT_SNS_WASM_UPGRADE_PATH_ENTRIES: 37, + NNS_FUNCTION_REVISE_ELECTED_GUESTOS_VERSIONS: 38, + NNS_FUNCTION_BITCOIN_SET_CONFIG: 39, + NNS_FUNCTION_UPDATE_ELECTED_HOSTOS_VERSIONS: 40, + NNS_FUNCTION_UPDATE_NODES_HOSTOS_VERSION: 41, + NNS_FUNCTION_HARD_RESET_NNS_ROOT_TO_VERSION: 42, + NNS_FUNCTION_ADD_API_BOUNDARY_NODES: 43, + NNS_FUNCTION_REMOVE_API_BOUNDARY_NODES: 44, + NNS_FUNCTION_UPDATE_API_BOUNDARY_NODES_VERSION: 46, + NNS_FUNCTION_DEPLOY_GUESTOS_TO_SOME_API_BOUNDARY_NODES: 47, + NNS_FUNCTION_DEPLOY_GUESTOS_TO_ALL_UNASSIGNED_NODES: 48, + NNS_FUNCTION_UPDATE_SSH_READONLY_ACCESS_FOR_ALL_UNASSIGNED_NODES: 49, + NNS_FUNCTION_REVISE_ELECTED_HOSTOS_VERSIONS: 50, + NNS_FUNCTION_DEPLOY_HOSTOS_TO_SOME_NODES: 51 +}; + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.ProposalStatus = { + PROPOSAL_STATUS_UNSPECIFIED: 0, + PROPOSAL_STATUS_OPEN: 1, + PROPOSAL_STATUS_REJECTED: 2, + PROPOSAL_STATUS_ADOPTED: 3, + PROPOSAL_STATUS_EXECUTED: 4, + PROPOSAL_STATUS_FAILED: 5 +}; + +/** + * @enum {number} + */ +proto.ic_nns_governance.pb.v1.ProposalRewardStatus = { + PROPOSAL_REWARD_STATUS_UNSPECIFIED: 0, + PROPOSAL_REWARD_STATUS_ACCEPT_VOTES: 1, + PROPOSAL_REWARD_STATUS_READY_TO_SETTLE: 2, + PROPOSAL_REWARD_STATUS_SETTLED: 3, + PROPOSAL_REWARD_STATUS_INELIGIBLE: 4 +}; + goog.object.extend(exports, proto.ic_nns_governance.pb.v1); diff --git a/packages/nns-proto/proto/ledger.proto b/packages/nns-proto/proto/ledger.proto index b9aeab998..d125ef2de 100644 --- a/packages/nns-proto/proto/ledger.proto +++ b/packages/nns-proto/proto/ledger.proto @@ -1,3 +1,4 @@ +// -*- c-basic-offset: 2 -*- syntax = "proto3"; package ic_ledger.pb.v1; @@ -12,42 +13,52 @@ import "base_types.proto"; // ** LEDGER CANISTER ENDPOINTS +// Initialise the ledger canister +message LedgerInit { + AccountIdentifier minting_account = 1; + repeated Account initial_values = 2; + ic_base_types.pb.v1.PrincipalId archive_canister = 3; + uint32 max_message_size_bytes = 4; +} + +// The format of values serialized to/from the stable memory during and upgrade +message LedgerUpgrade {} + // Make a payment message SendRequest { option (ic_base_types.pb.v1.tui_signed_message) = true; - Memo memo = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; - Payment payment = 2 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; - ICPTs max_fee = 3 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; + Memo memo = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; + Payment payment = 2 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; + Tokens max_fee = 3 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; Subaccount from_subaccount = 4 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; - AccountIdentifier to = 5 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; - BlockHeight created_at = 6; + AccountIdentifier to = 5 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; + BlockIndex created_at = 6; TimeStamp created_at_time = 7; } message SendResponse { - BlockHeight resulting_height = 1; + BlockIndex resulting_height = 1; } -// Notify a canister that it has recieved a payment +// Notify a canister that it has received a payment message NotifyRequest { option (ic_base_types.pb.v1.tui_signed_message) = true; - BlockHeight block_height = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; - ICPTs max_fee = 2 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; - Subaccount from_subaccount = 3 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; + BlockIndex block_height = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; + Tokens max_fee = 2 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; + Subaccount from_subaccount = 3 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; ic_base_types.pb.v1.PrincipalId to_canister = 4 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; - Subaccount to_subaccount = 5 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; + Subaccount to_subaccount = 5 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; } -message NotifyResponse { -} +message NotifyResponse {} message TransactionNotificationRequest { ic_base_types.pb.v1.PrincipalId from = 1; Subaccount from_subaccount = 2; ic_base_types.pb.v1.PrincipalId to = 3; Subaccount to_subaccount = 4; - BlockHeight block_height = 5; - ICPTs amount = 6; + BlockIndex block_height = 5; + Tokens amount = 6; Memo memo = 7; } @@ -64,67 +75,64 @@ message CyclesNotificationResponse { } // Get the balance of an account -message AccountBalanceRequest { +message AccountBalanceRequest { AccountIdentifier account = 1; } message AccountBalanceResponse { - ICPTs balance = 1; + Tokens balance = 1; } // Get the length of the chain with a certification -message TipOfChainRequest { -} +message TipOfChainRequest {} message TipOfChainResponse { Certification certification = 1; - BlockHeight chain_length = 2; + BlockIndex chain_length = 2; } -// // How many ICPTs are there not in the minting account -// message TotalSupplyRequest { -// } +// How many Tokens are there not in the minting account +message TotalSupplyRequest {} -// message TotalSupplyResponse { -// ICPTs total_supply = 1; -// } +message TotalSupplyResponse { + Tokens total_supply = 1; +} -// // Archive any blocks older than this -// message LedgerArchiveRequest { -// TimeStamp timestamp = 1; -// } +// Archive any blocks older than this +message LedgerArchiveRequest { + TimeStamp timestamp = 1; +} // * Shared Endpoints * -// // Get a single block -// message BlockRequest { -// uint64 block_height = 1 [jstype = JS_STRING]; -// } +// Get a single block +message BlockRequest { + uint64 block_height = 1; +} message EncodedBlock { bytes block = 1; } -// message BlockResponse { -// oneof block_content { -// EncodedBlock block = 1; -// ic_base_types.pb.v1.PrincipalId canister_id = 2; -// } -// } +message BlockResponse { + oneof block_content { + EncodedBlock block = 1; + ic_base_types.pb.v1.PrincipalId canister_id = 2; + } +} // Get a set of blocks message GetBlocksRequest { - uint64 start = 1 [jstype = JS_STRING]; - uint64 length = 2 [jstype = JS_STRING]; + uint64 start = 1; + uint64 length = 2; } message Refund { - BlockHeight refund = 2; + BlockIndex refund = 2; string error = 3; } -message ToppedUp { -} +message ToppedUp {} message EncodedBlocks { repeated EncodedBlock blocks = 1; @@ -137,74 +145,65 @@ message GetBlocksResponse { } } -// // Iterate through blocks -// message IterBlocksRequest { -// uint64 start = 1 [jstype = JS_STRING]; -// uint64 length = 2 [jstype = JS_STRING]; -// } - -// message IterBlocksResponse { -// repeated EncodedBlock blocks = 1; -// } +// Iterate through blocks +message IterBlocksRequest { + uint64 start = 1; + uint64 length = 2; +} -// message ArchiveIndexEntry { -// uint64 height_from = 1 [jstype = JS_STRING]; -// uint64 height_to = 2 [jstype = JS_STRING]; -// ic_base_types.pb.v1.PrincipalId canister_id = 3; -// } +message IterBlocksResponse { + repeated EncodedBlock blocks = 1; +} -// message ArchiveIndexResponse { -// repeated ArchiveIndexEntry entries = 1; -// } +message ArchiveIndexEntry { + uint64 height_from = 1; + uint64 height_to = 2; + ic_base_types.pb.v1.PrincipalId canister_id = 3; +} +message ArchiveIndexResponse { + repeated ArchiveIndexEntry entries = 1; +} // ** ARCHIVE CANISTER ENDPOINTS ** -// -// // * Archive canister * -// // Init the archive canister -// message ArchiveInit { -// uint32 node_max_memory_size_bytes = 1; -// uint32 max_message_size_bytes = 2; -// } -// -// -// // Add blocks to the archive canister -// message ArchiveAddRequest { -// repeated Block blocks = 1; -// } -// -// message ArchiveAddResponse { -// } -// -// -// // Fetch a list of all of the archive nodes -// message GetNodesRequest { -// } -// -// message GetNodesResponse { -// repeated ic_base_types.pb.v1.PrincipalId nodes = 1; -// } +// * Archive canister * +// Init the archive canister +message ArchiveInit { + uint32 node_max_memory_size_bytes = 1; + uint32 max_message_size_bytes = 2; +} + +// Add blocks to the archive canister +message ArchiveAddRequest { + repeated Block blocks = 1; +} + +message ArchiveAddResponse {} + +// Fetch a list of all of the archive nodes +message GetNodesRequest {} + +message GetNodesResponse { + repeated ic_base_types.pb.v1.PrincipalId nodes = 1; +} // ** BASIC TYPES ** -message ICPTs { +message Tokens { option (ic_base_types.pb.v1.tui_signed_message) = true; - uint64 e8s = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true, jstype = JS_STRING]; - + uint64 e8s = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; } message Payment { option (ic_base_types.pb.v1.tui_signed_message) = true; - ICPTs receiver_gets = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; - + Tokens receiver_gets = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; } -message BlockHeight { +message BlockIndex { option (ic_base_types.pb.v1.tui_signed_message) = true; - uint64 height = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true, jstype = JS_STRING]; + uint64 height = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; } - // This is the message Block { Hash parent_hash = 1; @@ -218,7 +217,7 @@ message Hash { message Account { AccountIdentifier identifier = 1; - ICPTs balance = 2; + Tokens balance = 2; } message Transaction { @@ -228,50 +227,89 @@ message Transaction { Send send = 3; } Memo memo = 4; - BlockHeight created_at = 5; // obsolete + Icrc1Memo icrc1_memo = 7; + BlockIndex created_at = 5; // obsolete TimeStamp created_at_time = 6; } message Send { + // The meaning of the [from] field depends on the transaction type: + // - Transfer: [from] is the source account. + // - TransferFrom: [from] is the approver. + // - Approve: [from] is the approver. AccountIdentifier from = 1; + // The meaning of the [to] field depends on the transaction type: + // - Transfer: [to] is the destination account. + // - TransferFrom: [to] is the destination account. + // - Approve: [to] is the default account id of the approved principal. AccountIdentifier to = 2; - ICPTs amount = 3; - ICPTs max_fee = 4; + // If the transaction type is Approve, the amount must be zero. + Tokens amount = 3; + Tokens max_fee = 4; + + // We represent metadata of new operation types as submessages for + // backward compatibility with old clients. + oneof extension { + Approve approve = 5; + TransferFrom transfer_from = 6; + } +} + +message TransferFrom { + // The default account id of the principal who sent the transaction. + AccountIdentifier spender = 1; +} + +message Approve { + Tokens allowance = 1; + TimeStamp expires_at = 2; + Tokens expected_allowance = 3; } message Mint { AccountIdentifier to = 2; - ICPTs amount = 3; + Tokens amount = 3; } message Burn { AccountIdentifier from = 1; - ICPTs amount = 3; + Tokens amount = 3; + AccountIdentifier spender = 4; } - message AccountIdentifier { option (ic_base_types.pb.v1.tui_signed_message) = true; - bytes hash = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; - + // Can contain either: + // * the 32 byte identifier (4 byte checksum + 28 byte hash) + // * the 28 byte hash + bytes hash = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; } message Subaccount { option (ic_base_types.pb.v1.tui_signed_message) = true; bytes sub_account = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; - } message Memo { option (ic_base_types.pb.v1.tui_signed_message) = true; - uint64 memo = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true, jstype = JS_STRING]; + uint64 memo = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; +} +message Icrc1Memo { + option (ic_base_types.pb.v1.tui_signed_message) = true; + bytes memo = 1 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; } message TimeStamp { - uint64 timestamp_nanos = 1 [jstype = JS_STRING]; + uint64 timestamp_nanos = 1; } message Certification { bytes certification = 1; } + +message TransferFeeRequest {} + +message TransferFeeResponse { + Tokens transfer_fee = 1; +} diff --git a/packages/nns-proto/proto/ledger_pb.d.ts b/packages/nns-proto/proto/ledger_pb.d.ts index e88e0215a..07db3b9c8 100644 --- a/packages/nns-proto/proto/ledger_pb.d.ts +++ b/packages/nns-proto/proto/ledger_pb.d.ts @@ -4,6 +4,60 @@ import * as jspb from "google-protobuf"; import * as base_types_pb from "./base_types_pb"; +export class LedgerInit extends jspb.Message { + hasMintingAccount(): boolean; + clearMintingAccount(): void; + getMintingAccount(): AccountIdentifier | undefined; + setMintingAccount(value?: AccountIdentifier): void; + + clearInitialValuesList(): void; + getInitialValuesList(): Array; + setInitialValuesList(value: Array): void; + addInitialValues(value?: Account, index?: number): Account; + + hasArchiveCanister(): boolean; + clearArchiveCanister(): void; + getArchiveCanister(): base_types_pb.PrincipalId | undefined; + setArchiveCanister(value?: base_types_pb.PrincipalId): void; + + getMaxMessageSizeBytes(): number; + setMaxMessageSizeBytes(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LedgerInit.AsObject; + static toObject(includeInstance: boolean, msg: LedgerInit): LedgerInit.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: LedgerInit, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LedgerInit; + static deserializeBinaryFromReader(message: LedgerInit, reader: jspb.BinaryReader): LedgerInit; +} + +export namespace LedgerInit { + export type AsObject = { + mintingAccount?: AccountIdentifier.AsObject, + initialValuesList: Array, + archiveCanister?: base_types_pb.PrincipalId.AsObject, + maxMessageSizeBytes: number, + } +} + +export class LedgerUpgrade extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LedgerUpgrade.AsObject; + static toObject(includeInstance: boolean, msg: LedgerUpgrade): LedgerUpgrade.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: LedgerUpgrade, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LedgerUpgrade; + static deserializeBinaryFromReader(message: LedgerUpgrade, reader: jspb.BinaryReader): LedgerUpgrade; +} + +export namespace LedgerUpgrade { + export type AsObject = { + } +} + export class SendRequest extends jspb.Message { hasMemo(): boolean; clearMemo(): void; @@ -17,8 +71,8 @@ export class SendRequest extends jspb.Message { hasMaxFee(): boolean; clearMaxFee(): void; - getMaxFee(): ICPTs | undefined; - setMaxFee(value?: ICPTs): void; + getMaxFee(): Tokens | undefined; + setMaxFee(value?: Tokens): void; hasFromSubaccount(): boolean; clearFromSubaccount(): void; @@ -32,8 +86,8 @@ export class SendRequest extends jspb.Message { hasCreatedAt(): boolean; clearCreatedAt(): void; - getCreatedAt(): BlockHeight | undefined; - setCreatedAt(value?: BlockHeight): void; + getCreatedAt(): BlockIndex | undefined; + setCreatedAt(value?: BlockIndex): void; hasCreatedAtTime(): boolean; clearCreatedAtTime(): void; @@ -54,10 +108,10 @@ export namespace SendRequest { export type AsObject = { memo?: Memo.AsObject, payment?: Payment.AsObject, - maxFee?: ICPTs.AsObject, + maxFee?: Tokens.AsObject, fromSubaccount?: Subaccount.AsObject, to?: AccountIdentifier.AsObject, - createdAt?: BlockHeight.AsObject, + createdAt?: BlockIndex.AsObject, createdAtTime?: TimeStamp.AsObject, } } @@ -65,8 +119,8 @@ export namespace SendRequest { export class SendResponse extends jspb.Message { hasResultingHeight(): boolean; clearResultingHeight(): void; - getResultingHeight(): BlockHeight | undefined; - setResultingHeight(value?: BlockHeight): void; + getResultingHeight(): BlockIndex | undefined; + setResultingHeight(value?: BlockIndex): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): SendResponse.AsObject; @@ -80,20 +134,20 @@ export class SendResponse extends jspb.Message { export namespace SendResponse { export type AsObject = { - resultingHeight?: BlockHeight.AsObject, + resultingHeight?: BlockIndex.AsObject, } } export class NotifyRequest extends jspb.Message { hasBlockHeight(): boolean; clearBlockHeight(): void; - getBlockHeight(): BlockHeight | undefined; - setBlockHeight(value?: BlockHeight): void; + getBlockHeight(): BlockIndex | undefined; + setBlockHeight(value?: BlockIndex): void; hasMaxFee(): boolean; clearMaxFee(): void; - getMaxFee(): ICPTs | undefined; - setMaxFee(value?: ICPTs): void; + getMaxFee(): Tokens | undefined; + setMaxFee(value?: Tokens): void; hasFromSubaccount(): boolean; clearFromSubaccount(): void; @@ -122,8 +176,8 @@ export class NotifyRequest extends jspb.Message { export namespace NotifyRequest { export type AsObject = { - blockHeight?: BlockHeight.AsObject, - maxFee?: ICPTs.AsObject, + blockHeight?: BlockIndex.AsObject, + maxFee?: Tokens.AsObject, fromSubaccount?: Subaccount.AsObject, toCanister?: base_types_pb.PrincipalId.AsObject, toSubaccount?: Subaccount.AsObject, @@ -169,13 +223,13 @@ export class TransactionNotificationRequest extends jspb.Message { hasBlockHeight(): boolean; clearBlockHeight(): void; - getBlockHeight(): BlockHeight | undefined; - setBlockHeight(value?: BlockHeight): void; + getBlockHeight(): BlockIndex | undefined; + setBlockHeight(value?: BlockIndex): void; hasAmount(): boolean; clearAmount(): void; - getAmount(): ICPTs | undefined; - setAmount(value?: ICPTs): void; + getAmount(): Tokens | undefined; + setAmount(value?: Tokens): void; hasMemo(): boolean; clearMemo(): void; @@ -198,8 +252,8 @@ export namespace TransactionNotificationRequest { fromSubaccount?: Subaccount.AsObject, to?: base_types_pb.PrincipalId.AsObject, toSubaccount?: Subaccount.AsObject, - blockHeight?: BlockHeight.AsObject, - amount?: ICPTs.AsObject, + blockHeight?: BlockIndex.AsObject, + amount?: Tokens.AsObject, memo?: Memo.AsObject, } } @@ -293,8 +347,8 @@ export namespace AccountBalanceRequest { export class AccountBalanceResponse extends jspb.Message { hasBalance(): boolean; clearBalance(): void; - getBalance(): ICPTs | undefined; - setBalance(value?: ICPTs): void; + getBalance(): Tokens | undefined; + setBalance(value?: Tokens): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): AccountBalanceResponse.AsObject; @@ -308,7 +362,7 @@ export class AccountBalanceResponse extends jspb.Message { export namespace AccountBalanceResponse { export type AsObject = { - balance?: ICPTs.AsObject, + balance?: Tokens.AsObject, } } @@ -336,8 +390,8 @@ export class TipOfChainResponse extends jspb.Message { hasChainLength(): boolean; clearChainLength(): void; - getChainLength(): BlockHeight | undefined; - setChainLength(value?: BlockHeight): void; + getChainLength(): BlockIndex | undefined; + setChainLength(value?: BlockIndex): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TipOfChainResponse.AsObject; @@ -352,7 +406,87 @@ export class TipOfChainResponse extends jspb.Message { export namespace TipOfChainResponse { export type AsObject = { certification?: Certification.AsObject, - chainLength?: BlockHeight.AsObject, + chainLength?: BlockIndex.AsObject, + } +} + +export class TotalSupplyRequest extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TotalSupplyRequest.AsObject; + static toObject(includeInstance: boolean, msg: TotalSupplyRequest): TotalSupplyRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TotalSupplyRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TotalSupplyRequest; + static deserializeBinaryFromReader(message: TotalSupplyRequest, reader: jspb.BinaryReader): TotalSupplyRequest; +} + +export namespace TotalSupplyRequest { + export type AsObject = { + } +} + +export class TotalSupplyResponse extends jspb.Message { + hasTotalSupply(): boolean; + clearTotalSupply(): void; + getTotalSupply(): Tokens | undefined; + setTotalSupply(value?: Tokens): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TotalSupplyResponse.AsObject; + static toObject(includeInstance: boolean, msg: TotalSupplyResponse): TotalSupplyResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TotalSupplyResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TotalSupplyResponse; + static deserializeBinaryFromReader(message: TotalSupplyResponse, reader: jspb.BinaryReader): TotalSupplyResponse; +} + +export namespace TotalSupplyResponse { + export type AsObject = { + totalSupply?: Tokens.AsObject, + } +} + +export class LedgerArchiveRequest extends jspb.Message { + hasTimestamp(): boolean; + clearTimestamp(): void; + getTimestamp(): TimeStamp | undefined; + setTimestamp(value?: TimeStamp): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LedgerArchiveRequest.AsObject; + static toObject(includeInstance: boolean, msg: LedgerArchiveRequest): LedgerArchiveRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: LedgerArchiveRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LedgerArchiveRequest; + static deserializeBinaryFromReader(message: LedgerArchiveRequest, reader: jspb.BinaryReader): LedgerArchiveRequest; +} + +export namespace LedgerArchiveRequest { + export type AsObject = { + timestamp?: TimeStamp.AsObject, + } +} + +export class BlockRequest extends jspb.Message { + getBlockHeight(): number; + setBlockHeight(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BlockRequest.AsObject; + static toObject(includeInstance: boolean, msg: BlockRequest): BlockRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: BlockRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BlockRequest; + static deserializeBinaryFromReader(message: BlockRequest, reader: jspb.BinaryReader): BlockRequest; +} + +export namespace BlockRequest { + export type AsObject = { + blockHeight: number, } } @@ -378,12 +512,47 @@ export namespace EncodedBlock { } } +export class BlockResponse extends jspb.Message { + hasBlock(): boolean; + clearBlock(): void; + getBlock(): EncodedBlock | undefined; + setBlock(value?: EncodedBlock): void; + + hasCanisterId(): boolean; + clearCanisterId(): void; + getCanisterId(): base_types_pb.PrincipalId | undefined; + setCanisterId(value?: base_types_pb.PrincipalId): void; + + getBlockContentCase(): BlockResponse.BlockContentCase; + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BlockResponse.AsObject; + static toObject(includeInstance: boolean, msg: BlockResponse): BlockResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: BlockResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BlockResponse; + static deserializeBinaryFromReader(message: BlockResponse, reader: jspb.BinaryReader): BlockResponse; +} + +export namespace BlockResponse { + export type AsObject = { + block?: EncodedBlock.AsObject, + canisterId?: base_types_pb.PrincipalId.AsObject, + } + + export enum BlockContentCase { + BLOCK_CONTENT_NOT_SET = 0, + BLOCK = 1, + CANISTER_ID = 2, + } +} + export class GetBlocksRequest extends jspb.Message { - getStart(): string; - setStart(value: string): void; + getStart(): number; + setStart(value: number): void; - getLength(): string; - setLength(value: string): void; + getLength(): number; + setLength(value: number): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): GetBlocksRequest.AsObject; @@ -397,16 +566,16 @@ export class GetBlocksRequest extends jspb.Message { export namespace GetBlocksRequest { export type AsObject = { - start: string, - length: string, + start: number, + length: number, } } export class Refund extends jspb.Message { hasRefund(): boolean; clearRefund(): void; - getRefund(): BlockHeight | undefined; - setRefund(value?: BlockHeight): void; + getRefund(): BlockIndex | undefined; + setRefund(value?: BlockIndex): void; getError(): string; setError(value: string): void; @@ -423,7 +592,7 @@ export class Refund extends jspb.Message { export namespace Refund { export type AsObject = { - refund?: BlockHeight.AsObject, + refund?: BlockIndex.AsObject, error: string, } } @@ -501,31 +670,229 @@ export namespace GetBlocksResponse { } } -export class ICPTs extends jspb.Message { - getE8s(): string; - setE8s(value: string): void; +export class IterBlocksRequest extends jspb.Message { + getStart(): number; + setStart(value: number): void; + + getLength(): number; + setLength(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): IterBlocksRequest.AsObject; + static toObject(includeInstance: boolean, msg: IterBlocksRequest): IterBlocksRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: IterBlocksRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): IterBlocksRequest; + static deserializeBinaryFromReader(message: IterBlocksRequest, reader: jspb.BinaryReader): IterBlocksRequest; +} + +export namespace IterBlocksRequest { + export type AsObject = { + start: number, + length: number, + } +} + +export class IterBlocksResponse extends jspb.Message { + clearBlocksList(): void; + getBlocksList(): Array; + setBlocksList(value: Array): void; + addBlocks(value?: EncodedBlock, index?: number): EncodedBlock; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): IterBlocksResponse.AsObject; + static toObject(includeInstance: boolean, msg: IterBlocksResponse): IterBlocksResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: IterBlocksResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): IterBlocksResponse; + static deserializeBinaryFromReader(message: IterBlocksResponse, reader: jspb.BinaryReader): IterBlocksResponse; +} + +export namespace IterBlocksResponse { + export type AsObject = { + blocksList: Array, + } +} + +export class ArchiveIndexEntry extends jspb.Message { + getHeightFrom(): number; + setHeightFrom(value: number): void; + + getHeightTo(): number; + setHeightTo(value: number): void; + + hasCanisterId(): boolean; + clearCanisterId(): void; + getCanisterId(): base_types_pb.PrincipalId | undefined; + setCanisterId(value?: base_types_pb.PrincipalId): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ArchiveIndexEntry.AsObject; + static toObject(includeInstance: boolean, msg: ArchiveIndexEntry): ArchiveIndexEntry.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ArchiveIndexEntry, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ArchiveIndexEntry; + static deserializeBinaryFromReader(message: ArchiveIndexEntry, reader: jspb.BinaryReader): ArchiveIndexEntry; +} + +export namespace ArchiveIndexEntry { + export type AsObject = { + heightFrom: number, + heightTo: number, + canisterId?: base_types_pb.PrincipalId.AsObject, + } +} + +export class ArchiveIndexResponse extends jspb.Message { + clearEntriesList(): void; + getEntriesList(): Array; + setEntriesList(value: Array): void; + addEntries(value?: ArchiveIndexEntry, index?: number): ArchiveIndexEntry; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ICPTs.AsObject; - static toObject(includeInstance: boolean, msg: ICPTs): ICPTs.AsObject; + toObject(includeInstance?: boolean): ArchiveIndexResponse.AsObject; + static toObject(includeInstance: boolean, msg: ArchiveIndexResponse): ArchiveIndexResponse.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ICPTs, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ICPTs; - static deserializeBinaryFromReader(message: ICPTs, reader: jspb.BinaryReader): ICPTs; + static serializeBinaryToWriter(message: ArchiveIndexResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ArchiveIndexResponse; + static deserializeBinaryFromReader(message: ArchiveIndexResponse, reader: jspb.BinaryReader): ArchiveIndexResponse; } -export namespace ICPTs { +export namespace ArchiveIndexResponse { export type AsObject = { - e8s: string, + entriesList: Array, + } +} + +export class ArchiveInit extends jspb.Message { + getNodeMaxMemorySizeBytes(): number; + setNodeMaxMemorySizeBytes(value: number): void; + + getMaxMessageSizeBytes(): number; + setMaxMessageSizeBytes(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ArchiveInit.AsObject; + static toObject(includeInstance: boolean, msg: ArchiveInit): ArchiveInit.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ArchiveInit, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ArchiveInit; + static deserializeBinaryFromReader(message: ArchiveInit, reader: jspb.BinaryReader): ArchiveInit; +} + +export namespace ArchiveInit { + export type AsObject = { + nodeMaxMemorySizeBytes: number, + maxMessageSizeBytes: number, + } +} + +export class ArchiveAddRequest extends jspb.Message { + clearBlocksList(): void; + getBlocksList(): Array; + setBlocksList(value: Array): void; + addBlocks(value?: Block, index?: number): Block; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ArchiveAddRequest.AsObject; + static toObject(includeInstance: boolean, msg: ArchiveAddRequest): ArchiveAddRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ArchiveAddRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ArchiveAddRequest; + static deserializeBinaryFromReader(message: ArchiveAddRequest, reader: jspb.BinaryReader): ArchiveAddRequest; +} + +export namespace ArchiveAddRequest { + export type AsObject = { + blocksList: Array, + } +} + +export class ArchiveAddResponse extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ArchiveAddResponse.AsObject; + static toObject(includeInstance: boolean, msg: ArchiveAddResponse): ArchiveAddResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ArchiveAddResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ArchiveAddResponse; + static deserializeBinaryFromReader(message: ArchiveAddResponse, reader: jspb.BinaryReader): ArchiveAddResponse; +} + +export namespace ArchiveAddResponse { + export type AsObject = { + } +} + +export class GetNodesRequest extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetNodesRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetNodesRequest): GetNodesRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetNodesRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetNodesRequest; + static deserializeBinaryFromReader(message: GetNodesRequest, reader: jspb.BinaryReader): GetNodesRequest; +} + +export namespace GetNodesRequest { + export type AsObject = { + } +} + +export class GetNodesResponse extends jspb.Message { + clearNodesList(): void; + getNodesList(): Array; + setNodesList(value: Array): void; + addNodes(value?: base_types_pb.PrincipalId, index?: number): base_types_pb.PrincipalId; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetNodesResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetNodesResponse): GetNodesResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetNodesResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetNodesResponse; + static deserializeBinaryFromReader(message: GetNodesResponse, reader: jspb.BinaryReader): GetNodesResponse; +} + +export namespace GetNodesResponse { + export type AsObject = { + nodesList: Array, + } +} + +export class Tokens extends jspb.Message { + getE8s(): number; + setE8s(value: number): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Tokens.AsObject; + static toObject(includeInstance: boolean, msg: Tokens): Tokens.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Tokens, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Tokens; + static deserializeBinaryFromReader(message: Tokens, reader: jspb.BinaryReader): Tokens; +} + +export namespace Tokens { + export type AsObject = { + e8s: number, } } export class Payment extends jspb.Message { hasReceiverGets(): boolean; clearReceiverGets(): void; - getReceiverGets(): ICPTs | undefined; - setReceiverGets(value?: ICPTs): void; + getReceiverGets(): Tokens | undefined; + setReceiverGets(value?: Tokens): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Payment.AsObject; @@ -539,27 +906,27 @@ export class Payment extends jspb.Message { export namespace Payment { export type AsObject = { - receiverGets?: ICPTs.AsObject, + receiverGets?: Tokens.AsObject, } } -export class BlockHeight extends jspb.Message { - getHeight(): string; - setHeight(value: string): void; +export class BlockIndex extends jspb.Message { + getHeight(): number; + setHeight(value: number): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BlockHeight.AsObject; - static toObject(includeInstance: boolean, msg: BlockHeight): BlockHeight.AsObject; + toObject(includeInstance?: boolean): BlockIndex.AsObject; + static toObject(includeInstance: boolean, msg: BlockIndex): BlockIndex.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BlockHeight, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BlockHeight; - static deserializeBinaryFromReader(message: BlockHeight, reader: jspb.BinaryReader): BlockHeight; + static serializeBinaryToWriter(message: BlockIndex, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BlockIndex; + static deserializeBinaryFromReader(message: BlockIndex, reader: jspb.BinaryReader): BlockIndex; } -export namespace BlockHeight { +export namespace BlockIndex { export type AsObject = { - height: string, + height: number, } } @@ -627,8 +994,8 @@ export class Account extends jspb.Message { hasBalance(): boolean; clearBalance(): void; - getBalance(): ICPTs | undefined; - setBalance(value?: ICPTs): void; + getBalance(): Tokens | undefined; + setBalance(value?: Tokens): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Account.AsObject; @@ -643,7 +1010,7 @@ export class Account extends jspb.Message { export namespace Account { export type AsObject = { identifier?: AccountIdentifier.AsObject, - balance?: ICPTs.AsObject, + balance?: Tokens.AsObject, } } @@ -668,10 +1035,15 @@ export class Transaction extends jspb.Message { getMemo(): Memo | undefined; setMemo(value?: Memo): void; + hasIcrc1Memo(): boolean; + clearIcrc1Memo(): void; + getIcrc1Memo(): Icrc1Memo | undefined; + setIcrc1Memo(value?: Icrc1Memo): void; + hasCreatedAt(): boolean; clearCreatedAt(): void; - getCreatedAt(): BlockHeight | undefined; - setCreatedAt(value?: BlockHeight): void; + getCreatedAt(): BlockIndex | undefined; + setCreatedAt(value?: BlockIndex): void; hasCreatedAtTime(): boolean; clearCreatedAtTime(): void; @@ -695,7 +1067,8 @@ export namespace Transaction { mint?: Mint.AsObject, send?: Send.AsObject, memo?: Memo.AsObject, - createdAt?: BlockHeight.AsObject, + icrc1Memo?: Icrc1Memo.AsObject, + createdAt?: BlockIndex.AsObject, createdAtTime?: TimeStamp.AsObject, } @@ -720,14 +1093,25 @@ export class Send extends jspb.Message { hasAmount(): boolean; clearAmount(): void; - getAmount(): ICPTs | undefined; - setAmount(value?: ICPTs): void; + getAmount(): Tokens | undefined; + setAmount(value?: Tokens): void; hasMaxFee(): boolean; clearMaxFee(): void; - getMaxFee(): ICPTs | undefined; - setMaxFee(value?: ICPTs): void; + getMaxFee(): Tokens | undefined; + setMaxFee(value?: Tokens): void; + + hasApprove(): boolean; + clearApprove(): void; + getApprove(): Approve | undefined; + setApprove(value?: Approve): void; + + hasTransferFrom(): boolean; + clearTransferFrom(): void; + getTransferFrom(): TransferFrom | undefined; + setTransferFrom(value?: TransferFrom): void; + getExtensionCase(): Send.ExtensionCase; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Send.AsObject; static toObject(includeInstance: boolean, msg: Send): Send.AsObject; @@ -742,8 +1126,72 @@ export namespace Send { export type AsObject = { from?: AccountIdentifier.AsObject, to?: AccountIdentifier.AsObject, - amount?: ICPTs.AsObject, - maxFee?: ICPTs.AsObject, + amount?: Tokens.AsObject, + maxFee?: Tokens.AsObject, + approve?: Approve.AsObject, + transferFrom?: TransferFrom.AsObject, + } + + export enum ExtensionCase { + EXTENSION_NOT_SET = 0, + APPROVE = 5, + TRANSFER_FROM = 6, + } +} + +export class TransferFrom extends jspb.Message { + hasSpender(): boolean; + clearSpender(): void; + getSpender(): AccountIdentifier | undefined; + setSpender(value?: AccountIdentifier): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TransferFrom.AsObject; + static toObject(includeInstance: boolean, msg: TransferFrom): TransferFrom.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TransferFrom, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TransferFrom; + static deserializeBinaryFromReader(message: TransferFrom, reader: jspb.BinaryReader): TransferFrom; +} + +export namespace TransferFrom { + export type AsObject = { + spender?: AccountIdentifier.AsObject, + } +} + +export class Approve extends jspb.Message { + hasAllowance(): boolean; + clearAllowance(): void; + getAllowance(): Tokens | undefined; + setAllowance(value?: Tokens): void; + + hasExpiresAt(): boolean; + clearExpiresAt(): void; + getExpiresAt(): TimeStamp | undefined; + setExpiresAt(value?: TimeStamp): void; + + hasExpectedAllowance(): boolean; + clearExpectedAllowance(): void; + getExpectedAllowance(): Tokens | undefined; + setExpectedAllowance(value?: Tokens): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Approve.AsObject; + static toObject(includeInstance: boolean, msg: Approve): Approve.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Approve, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Approve; + static deserializeBinaryFromReader(message: Approve, reader: jspb.BinaryReader): Approve; +} + +export namespace Approve { + export type AsObject = { + allowance?: Tokens.AsObject, + expiresAt?: TimeStamp.AsObject, + expectedAllowance?: Tokens.AsObject, } } @@ -755,8 +1203,8 @@ export class Mint extends jspb.Message { hasAmount(): boolean; clearAmount(): void; - getAmount(): ICPTs | undefined; - setAmount(value?: ICPTs): void; + getAmount(): Tokens | undefined; + setAmount(value?: Tokens): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Mint.AsObject; @@ -771,7 +1219,7 @@ export class Mint extends jspb.Message { export namespace Mint { export type AsObject = { to?: AccountIdentifier.AsObject, - amount?: ICPTs.AsObject, + amount?: Tokens.AsObject, } } @@ -783,8 +1231,13 @@ export class Burn extends jspb.Message { hasAmount(): boolean; clearAmount(): void; - getAmount(): ICPTs | undefined; - setAmount(value?: ICPTs): void; + getAmount(): Tokens | undefined; + setAmount(value?: Tokens): void; + + hasSpender(): boolean; + clearSpender(): void; + getSpender(): AccountIdentifier | undefined; + setSpender(value?: AccountIdentifier): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Burn.AsObject; @@ -799,7 +1252,8 @@ export class Burn extends jspb.Message { export namespace Burn { export type AsObject = { from?: AccountIdentifier.AsObject, - amount?: ICPTs.AsObject, + amount?: Tokens.AsObject, + spender?: AccountIdentifier.AsObject, } } @@ -848,8 +1302,8 @@ export namespace Subaccount { } export class Memo extends jspb.Message { - getMemo(): string; - setMemo(value: string): void; + getMemo(): number; + setMemo(value: number): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Memo.AsObject; @@ -863,13 +1317,35 @@ export class Memo extends jspb.Message { export namespace Memo { export type AsObject = { - memo: string, + memo: number, + } +} + +export class Icrc1Memo extends jspb.Message { + getMemo(): Uint8Array | string; + getMemo_asU8(): Uint8Array; + getMemo_asB64(): string; + setMemo(value: Uint8Array | string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Icrc1Memo.AsObject; + static toObject(includeInstance: boolean, msg: Icrc1Memo): Icrc1Memo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Icrc1Memo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Icrc1Memo; + static deserializeBinaryFromReader(message: Icrc1Memo, reader: jspb.BinaryReader): Icrc1Memo; +} + +export namespace Icrc1Memo { + export type AsObject = { + memo: Uint8Array | string, } } export class TimeStamp extends jspb.Message { - getTimestampNanos(): string; - setTimestampNanos(value: string): void; + getTimestampNanos(): number; + setTimestampNanos(value: number): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): TimeStamp.AsObject; @@ -883,7 +1359,7 @@ export class TimeStamp extends jspb.Message { export namespace TimeStamp { export type AsObject = { - timestampNanos: string, + timestampNanos: number, } } @@ -909,3 +1385,41 @@ export namespace Certification { } } +export class TransferFeeRequest extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TransferFeeRequest.AsObject; + static toObject(includeInstance: boolean, msg: TransferFeeRequest): TransferFeeRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TransferFeeRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TransferFeeRequest; + static deserializeBinaryFromReader(message: TransferFeeRequest, reader: jspb.BinaryReader): TransferFeeRequest; +} + +export namespace TransferFeeRequest { + export type AsObject = { + } +} + +export class TransferFeeResponse extends jspb.Message { + hasTransferFee(): boolean; + clearTransferFee(): void; + getTransferFee(): Tokens | undefined; + setTransferFee(value?: Tokens): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TransferFeeResponse.AsObject; + static toObject(includeInstance: boolean, msg: TransferFeeResponse): TransferFeeResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TransferFeeResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TransferFeeResponse; + static deserializeBinaryFromReader(message: TransferFeeResponse, reader: jspb.BinaryReader): TransferFeeResponse; +} + +export namespace TransferFeeResponse { + export type AsObject = { + transferFee?: Tokens.AsObject, + } +} + diff --git a/packages/nns-proto/proto/ledger_pb.js b/packages/nns-proto/proto/ledger_pb.js index 2db9f174c..6e19ea487 100644 --- a/packages/nns-proto/proto/ledger_pb.js +++ b/packages/nns-proto/proto/ledger_pb.js @@ -13,13 +13,13 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); var base_types_pb = require('./base_types_pb.js'); goog.object.extend(proto, base_types_pb); @@ -27,8 +27,17 @@ goog.exportSymbol('proto.ic_ledger.pb.v1.Account', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.AccountBalanceRequest', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.AccountBalanceResponse', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.AccountIdentifier', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.Approve', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.ArchiveAddRequest', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.ArchiveAddResponse', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.ArchiveIndexEntry', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.ArchiveIndexResponse', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.ArchiveInit', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.Block', null, global); -goog.exportSymbol('proto.ic_ledger.pb.v1.BlockHeight', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.BlockIndex', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.BlockRequest', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.BlockResponse', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.BlockResponse.BlockContentCase', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.Burn', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.Certification', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.CyclesNotificationResponse', null, global); @@ -38,8 +47,15 @@ goog.exportSymbol('proto.ic_ledger.pb.v1.EncodedBlocks', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.GetBlocksRequest', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.GetBlocksResponse', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.GetBlocksResponse.GetBlocksContentCase', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.GetNodesRequest', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.GetNodesResponse', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.Hash', null, global); -goog.exportSymbol('proto.ic_ledger.pb.v1.ICPTs', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.Icrc1Memo', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.IterBlocksRequest', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.IterBlocksResponse', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.LedgerArchiveRequest', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.LedgerInit', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.LedgerUpgrade', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.Memo', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.Mint', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.NotifyRequest', null, global); @@ -47,17 +63,66 @@ goog.exportSymbol('proto.ic_ledger.pb.v1.NotifyResponse', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.Payment', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.Refund', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.Send', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.Send.ExtensionCase', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.SendRequest', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.SendResponse', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.Subaccount', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.TimeStamp', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.TipOfChainRequest', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.TipOfChainResponse', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.Tokens', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.ToppedUp', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.TotalSupplyRequest', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.TotalSupplyResponse', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.Transaction', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.Transaction.TransferCase', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.TransactionNotificationRequest', null, global); goog.exportSymbol('proto.ic_ledger.pb.v1.TransactionNotificationResponse', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.TransferFeeRequest', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.TransferFeeResponse', null, global); +goog.exportSymbol('proto.ic_ledger.pb.v1.TransferFrom', 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.ic_ledger.pb.v1.LedgerInit = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_ledger.pb.v1.LedgerInit.repeatedFields_, null); +}; +goog.inherits(proto.ic_ledger.pb.v1.LedgerInit, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_ledger.pb.v1.LedgerInit.displayName = 'proto.ic_ledger.pb.v1.LedgerInit'; +} +/** + * 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.ic_ledger.pb.v1.LedgerUpgrade = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_ledger.pb.v1.LedgerUpgrade, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_ledger.pb.v1.LedgerUpgrade.displayName = 'proto.ic_ledger.pb.v1.LedgerUpgrade'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -289,6 +354,90 @@ if (goog.DEBUG && !COMPILED) { */ proto.ic_ledger.pb.v1.TipOfChainResponse.displayName = 'proto.ic_ledger.pb.v1.TipOfChainResponse'; } +/** + * 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.ic_ledger.pb.v1.TotalSupplyRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_ledger.pb.v1.TotalSupplyRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_ledger.pb.v1.TotalSupplyRequest.displayName = 'proto.ic_ledger.pb.v1.TotalSupplyRequest'; +} +/** + * 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.ic_ledger.pb.v1.TotalSupplyResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_ledger.pb.v1.TotalSupplyResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_ledger.pb.v1.TotalSupplyResponse.displayName = 'proto.ic_ledger.pb.v1.TotalSupplyResponse'; +} +/** + * 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.ic_ledger.pb.v1.LedgerArchiveRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_ledger.pb.v1.LedgerArchiveRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_ledger.pb.v1.LedgerArchiveRequest.displayName = 'proto.ic_ledger.pb.v1.LedgerArchiveRequest'; +} +/** + * 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.ic_ledger.pb.v1.BlockRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_ledger.pb.v1.BlockRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_ledger.pb.v1.BlockRequest.displayName = 'proto.ic_ledger.pb.v1.BlockRequest'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -310,6 +459,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.ic_ledger.pb.v1.EncodedBlock.displayName = 'proto.ic_ledger.pb.v1.EncodedBlock'; } +/** + * 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.ic_ledger.pb.v1.BlockResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_ledger.pb.v1.BlockResponse.oneofGroups_); +}; +goog.inherits(proto.ic_ledger.pb.v1.BlockResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_ledger.pb.v1.BlockResponse.displayName = 'proto.ic_ledger.pb.v1.BlockResponse'; +} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -425,16 +595,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_ledger.pb.v1.ICPTs = function(opt_data) { +proto.ic_ledger.pb.v1.IterBlocksRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_ledger.pb.v1.ICPTs, jspb.Message); +goog.inherits(proto.ic_ledger.pb.v1.IterBlocksRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_ledger.pb.v1.ICPTs.displayName = 'proto.ic_ledger.pb.v1.ICPTs'; + proto.ic_ledger.pb.v1.IterBlocksRequest.displayName = 'proto.ic_ledger.pb.v1.IterBlocksRequest'; } /** * Generated by JsPbCodeGenerator. @@ -446,16 +616,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_ledger.pb.v1.Payment = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.ic_ledger.pb.v1.IterBlocksResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_ledger.pb.v1.IterBlocksResponse.repeatedFields_, null); }; -goog.inherits(proto.ic_ledger.pb.v1.Payment, jspb.Message); +goog.inherits(proto.ic_ledger.pb.v1.IterBlocksResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_ledger.pb.v1.Payment.displayName = 'proto.ic_ledger.pb.v1.Payment'; + proto.ic_ledger.pb.v1.IterBlocksResponse.displayName = 'proto.ic_ledger.pb.v1.IterBlocksResponse'; } /** * Generated by JsPbCodeGenerator. @@ -467,16 +637,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_ledger.pb.v1.BlockHeight = function(opt_data) { +proto.ic_ledger.pb.v1.ArchiveIndexEntry = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_ledger.pb.v1.BlockHeight, jspb.Message); +goog.inherits(proto.ic_ledger.pb.v1.ArchiveIndexEntry, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_ledger.pb.v1.BlockHeight.displayName = 'proto.ic_ledger.pb.v1.BlockHeight'; + proto.ic_ledger.pb.v1.ArchiveIndexEntry.displayName = 'proto.ic_ledger.pb.v1.ArchiveIndexEntry'; } /** * Generated by JsPbCodeGenerator. @@ -488,16 +658,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_ledger.pb.v1.Block = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.ic_ledger.pb.v1.ArchiveIndexResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_ledger.pb.v1.ArchiveIndexResponse.repeatedFields_, null); }; -goog.inherits(proto.ic_ledger.pb.v1.Block, jspb.Message); +goog.inherits(proto.ic_ledger.pb.v1.ArchiveIndexResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_ledger.pb.v1.Block.displayName = 'proto.ic_ledger.pb.v1.Block'; + proto.ic_ledger.pb.v1.ArchiveIndexResponse.displayName = 'proto.ic_ledger.pb.v1.ArchiveIndexResponse'; } /** * Generated by JsPbCodeGenerator. @@ -509,16 +679,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_ledger.pb.v1.Hash = function(opt_data) { +proto.ic_ledger.pb.v1.ArchiveInit = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_ledger.pb.v1.Hash, jspb.Message); +goog.inherits(proto.ic_ledger.pb.v1.ArchiveInit, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_ledger.pb.v1.Hash.displayName = 'proto.ic_ledger.pb.v1.Hash'; + proto.ic_ledger.pb.v1.ArchiveInit.displayName = 'proto.ic_ledger.pb.v1.ArchiveInit'; } /** * Generated by JsPbCodeGenerator. @@ -530,16 +700,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_ledger.pb.v1.Account = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.ic_ledger.pb.v1.ArchiveAddRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_ledger.pb.v1.ArchiveAddRequest.repeatedFields_, null); }; -goog.inherits(proto.ic_ledger.pb.v1.Account, jspb.Message); +goog.inherits(proto.ic_ledger.pb.v1.ArchiveAddRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_ledger.pb.v1.Account.displayName = 'proto.ic_ledger.pb.v1.Account'; + proto.ic_ledger.pb.v1.ArchiveAddRequest.displayName = 'proto.ic_ledger.pb.v1.ArchiveAddRequest'; } /** * Generated by JsPbCodeGenerator. @@ -551,16 +721,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_ledger.pb.v1.Transaction = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_ledger.pb.v1.Transaction.oneofGroups_); +proto.ic_ledger.pb.v1.ArchiveAddResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_ledger.pb.v1.Transaction, jspb.Message); +goog.inherits(proto.ic_ledger.pb.v1.ArchiveAddResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_ledger.pb.v1.Transaction.displayName = 'proto.ic_ledger.pb.v1.Transaction'; + proto.ic_ledger.pb.v1.ArchiveAddResponse.displayName = 'proto.ic_ledger.pb.v1.ArchiveAddResponse'; } /** * Generated by JsPbCodeGenerator. @@ -572,16 +742,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_ledger.pb.v1.Send = function(opt_data) { +proto.ic_ledger.pb.v1.GetNodesRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_ledger.pb.v1.Send, jspb.Message); +goog.inherits(proto.ic_ledger.pb.v1.GetNodesRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_ledger.pb.v1.Send.displayName = 'proto.ic_ledger.pb.v1.Send'; + proto.ic_ledger.pb.v1.GetNodesRequest.displayName = 'proto.ic_ledger.pb.v1.GetNodesRequest'; } /** * Generated by JsPbCodeGenerator. @@ -593,16 +763,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_ledger.pb.v1.Mint = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); +proto.ic_ledger.pb.v1.GetNodesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.ic_ledger.pb.v1.GetNodesResponse.repeatedFields_, null); }; -goog.inherits(proto.ic_ledger.pb.v1.Mint, jspb.Message); +goog.inherits(proto.ic_ledger.pb.v1.GetNodesResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_ledger.pb.v1.Mint.displayName = 'proto.ic_ledger.pb.v1.Mint'; + proto.ic_ledger.pb.v1.GetNodesResponse.displayName = 'proto.ic_ledger.pb.v1.GetNodesResponse'; } /** * Generated by JsPbCodeGenerator. @@ -614,16 +784,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_ledger.pb.v1.Burn = function(opt_data) { +proto.ic_ledger.pb.v1.Tokens = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_ledger.pb.v1.Burn, jspb.Message); +goog.inherits(proto.ic_ledger.pb.v1.Tokens, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_ledger.pb.v1.Burn.displayName = 'proto.ic_ledger.pb.v1.Burn'; + proto.ic_ledger.pb.v1.Tokens.displayName = 'proto.ic_ledger.pb.v1.Tokens'; } /** * Generated by JsPbCodeGenerator. @@ -635,16 +805,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_ledger.pb.v1.AccountIdentifier = function(opt_data) { +proto.ic_ledger.pb.v1.Payment = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_ledger.pb.v1.AccountIdentifier, jspb.Message); +goog.inherits(proto.ic_ledger.pb.v1.Payment, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_ledger.pb.v1.AccountIdentifier.displayName = 'proto.ic_ledger.pb.v1.AccountIdentifier'; + proto.ic_ledger.pb.v1.Payment.displayName = 'proto.ic_ledger.pb.v1.Payment'; } /** * Generated by JsPbCodeGenerator. @@ -656,16 +826,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_ledger.pb.v1.Subaccount = function(opt_data) { +proto.ic_ledger.pb.v1.BlockIndex = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_ledger.pb.v1.Subaccount, jspb.Message); +goog.inherits(proto.ic_ledger.pb.v1.BlockIndex, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_ledger.pb.v1.Subaccount.displayName = 'proto.ic_ledger.pb.v1.Subaccount'; + proto.ic_ledger.pb.v1.BlockIndex.displayName = 'proto.ic_ledger.pb.v1.BlockIndex'; } /** * Generated by JsPbCodeGenerator. @@ -677,16 +847,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_ledger.pb.v1.Memo = function(opt_data) { +proto.ic_ledger.pb.v1.Block = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_ledger.pb.v1.Memo, jspb.Message); +goog.inherits(proto.ic_ledger.pb.v1.Block, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_ledger.pb.v1.Memo.displayName = 'proto.ic_ledger.pb.v1.Memo'; + proto.ic_ledger.pb.v1.Block.displayName = 'proto.ic_ledger.pb.v1.Block'; } /** * Generated by JsPbCodeGenerator. @@ -698,16 +868,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_ledger.pb.v1.TimeStamp = function(opt_data) { +proto.ic_ledger.pb.v1.Hash = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_ledger.pb.v1.TimeStamp, jspb.Message); +goog.inherits(proto.ic_ledger.pb.v1.Hash, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_ledger.pb.v1.TimeStamp.displayName = 'proto.ic_ledger.pb.v1.TimeStamp'; + proto.ic_ledger.pb.v1.Hash.displayName = 'proto.ic_ledger.pb.v1.Hash'; } /** * Generated by JsPbCodeGenerator. @@ -719,86 +889,3579 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.ic_ledger.pb.v1.Certification = function(opt_data) { +proto.ic_ledger.pb.v1.Account = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.ic_ledger.pb.v1.Certification, jspb.Message); +goog.inherits(proto.ic_ledger.pb.v1.Account, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.ic_ledger.pb.v1.Certification.displayName = 'proto.ic_ledger.pb.v1.Certification'; + proto.ic_ledger.pb.v1.Account.displayName = 'proto.ic_ledger.pb.v1.Account'; } - - - -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} + * 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.ic_ledger.pb.v1.SendRequest.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.SendRequest.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.Transaction = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_ledger.pb.v1.Transaction.oneofGroups_); }; - - +goog.inherits(proto.ic_ledger.pb.v1.Transaction, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_ledger.pb.v1.Transaction.displayName = 'proto.ic_ledger.pb.v1.Transaction'; +} /** - * 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.ic_ledger.pb.v1.SendRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * 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.ic_ledger.pb.v1.SendRequest.toObject = function(includeInstance, msg) { - var f, obj = { - memo: (f = msg.getMemo()) && proto.ic_ledger.pb.v1.Memo.toObject(includeInstance, f), - payment: (f = msg.getPayment()) && proto.ic_ledger.pb.v1.Payment.toObject(includeInstance, f), - maxFee: (f = msg.getMaxFee()) && proto.ic_ledger.pb.v1.ICPTs.toObject(includeInstance, f), - fromSubaccount: (f = msg.getFromSubaccount()) && proto.ic_ledger.pb.v1.Subaccount.toObject(includeInstance, f), - to: (f = msg.getTo()) && proto.ic_ledger.pb.v1.AccountIdentifier.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && proto.ic_ledger.pb.v1.BlockHeight.toObject(includeInstance, f), - createdAtTime: (f = msg.getCreatedAtTime()) && proto.ic_ledger.pb.v1.TimeStamp.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.ic_ledger.pb.v1.Send = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ic_ledger.pb.v1.Send.oneofGroups_); }; +goog.inherits(proto.ic_ledger.pb.v1.Send, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_ledger.pb.v1.Send.displayName = 'proto.ic_ledger.pb.v1.Send'; } - - /** - * Deserializes binary data (in protobuf wire format). + * 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.ic_ledger.pb.v1.TransferFrom = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_ledger.pb.v1.TransferFrom, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_ledger.pb.v1.TransferFrom.displayName = 'proto.ic_ledger.pb.v1.TransferFrom'; +} +/** + * 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.ic_ledger.pb.v1.Approve = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_ledger.pb.v1.Approve, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_ledger.pb.v1.Approve.displayName = 'proto.ic_ledger.pb.v1.Approve'; +} +/** + * 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.ic_ledger.pb.v1.Mint = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_ledger.pb.v1.Mint, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_ledger.pb.v1.Mint.displayName = 'proto.ic_ledger.pb.v1.Mint'; +} +/** + * 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.ic_ledger.pb.v1.Burn = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_ledger.pb.v1.Burn, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_ledger.pb.v1.Burn.displayName = 'proto.ic_ledger.pb.v1.Burn'; +} +/** + * 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.ic_ledger.pb.v1.AccountIdentifier = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_ledger.pb.v1.AccountIdentifier, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_ledger.pb.v1.AccountIdentifier.displayName = 'proto.ic_ledger.pb.v1.AccountIdentifier'; +} +/** + * 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.ic_ledger.pb.v1.Subaccount = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_ledger.pb.v1.Subaccount, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_ledger.pb.v1.Subaccount.displayName = 'proto.ic_ledger.pb.v1.Subaccount'; +} +/** + * 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.ic_ledger.pb.v1.Memo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_ledger.pb.v1.Memo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_ledger.pb.v1.Memo.displayName = 'proto.ic_ledger.pb.v1.Memo'; +} +/** + * 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.ic_ledger.pb.v1.Icrc1Memo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_ledger.pb.v1.Icrc1Memo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_ledger.pb.v1.Icrc1Memo.displayName = 'proto.ic_ledger.pb.v1.Icrc1Memo'; +} +/** + * 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.ic_ledger.pb.v1.TimeStamp = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_ledger.pb.v1.TimeStamp, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_ledger.pb.v1.TimeStamp.displayName = 'proto.ic_ledger.pb.v1.TimeStamp'; +} +/** + * 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.ic_ledger.pb.v1.Certification = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_ledger.pb.v1.Certification, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_ledger.pb.v1.Certification.displayName = 'proto.ic_ledger.pb.v1.Certification'; +} +/** + * 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.ic_ledger.pb.v1.TransferFeeRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_ledger.pb.v1.TransferFeeRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_ledger.pb.v1.TransferFeeRequest.displayName = 'proto.ic_ledger.pb.v1.TransferFeeRequest'; +} +/** + * 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.ic_ledger.pb.v1.TransferFeeResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.ic_ledger.pb.v1.TransferFeeResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.ic_ledger.pb.v1.TransferFeeResponse.displayName = 'proto.ic_ledger.pb.v1.TransferFeeResponse'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_ledger.pb.v1.LedgerInit.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.ic_ledger.pb.v1.LedgerInit.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.LedgerInit.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.ic_ledger.pb.v1.LedgerInit} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.LedgerInit.toObject = function(includeInstance, msg) { + var f, obj = { + mintingAccount: (f = msg.getMintingAccount()) && proto.ic_ledger.pb.v1.AccountIdentifier.toObject(includeInstance, f), + initialValuesList: jspb.Message.toObjectList(msg.getInitialValuesList(), + proto.ic_ledger.pb.v1.Account.toObject, includeInstance), + archiveCanister: (f = msg.getArchiveCanister()) && base_types_pb.PrincipalId.toObject(includeInstance, f), + maxMessageSizeBytes: jspb.Message.getFieldWithDefault(msg, 4, 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.ic_ledger.pb.v1.LedgerInit} + */ +proto.ic_ledger.pb.v1.LedgerInit.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.LedgerInit; + return proto.ic_ledger.pb.v1.LedgerInit.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.LedgerInit} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.LedgerInit} + */ +proto.ic_ledger.pb.v1.LedgerInit.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_ledger.pb.v1.AccountIdentifier; + reader.readMessage(value,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader); + msg.setMintingAccount(value); + break; + case 2: + var value = new proto.ic_ledger.pb.v1.Account; + reader.readMessage(value,proto.ic_ledger.pb.v1.Account.deserializeBinaryFromReader); + msg.addInitialValues(value); + break; + case 3: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setArchiveCanister(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint32()); + msg.setMaxMessageSizeBytes(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_ledger.pb.v1.LedgerInit.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.LedgerInit.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.LedgerInit} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.LedgerInit.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMintingAccount(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter + ); + } + f = message.getInitialValuesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.ic_ledger.pb.v1.Account.serializeBinaryToWriter + ); + } + f = message.getArchiveCanister(); + if (f != null) { + writer.writeMessage( + 3, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = message.getMaxMessageSizeBytes(); + if (f !== 0) { + writer.writeUint32( + 4, + f + ); + } +}; + + +/** + * optional AccountIdentifier minting_account = 1; + * @return {?proto.ic_ledger.pb.v1.AccountIdentifier} + */ +proto.ic_ledger.pb.v1.LedgerInit.prototype.getMintingAccount = function() { + return /** @type{?proto.ic_ledger.pb.v1.AccountIdentifier} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.AccountIdentifier, 1)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.AccountIdentifier|undefined} value + * @return {!proto.ic_ledger.pb.v1.LedgerInit} returns this +*/ +proto.ic_ledger.pb.v1.LedgerInit.prototype.setMintingAccount = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.LedgerInit} returns this + */ +proto.ic_ledger.pb.v1.LedgerInit.prototype.clearMintingAccount = function() { + return this.setMintingAccount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.LedgerInit.prototype.hasMintingAccount = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated Account initial_values = 2; + * @return {!Array} + */ +proto.ic_ledger.pb.v1.LedgerInit.prototype.getInitialValuesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ic_ledger.pb.v1.Account, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.ic_ledger.pb.v1.LedgerInit} returns this +*/ +proto.ic_ledger.pb.v1.LedgerInit.prototype.setInitialValuesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.ic_ledger.pb.v1.Account=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_ledger.pb.v1.Account} + */ +proto.ic_ledger.pb.v1.LedgerInit.prototype.addInitialValues = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.ic_ledger.pb.v1.Account, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.ic_ledger.pb.v1.LedgerInit} returns this + */ +proto.ic_ledger.pb.v1.LedgerInit.prototype.clearInitialValuesList = function() { + return this.setInitialValuesList([]); +}; + + +/** + * optional ic_base_types.pb.v1.PrincipalId archive_canister = 3; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_ledger.pb.v1.LedgerInit.prototype.getArchiveCanister = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 3)); +}; + + +/** + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_ledger.pb.v1.LedgerInit} returns this +*/ +proto.ic_ledger.pb.v1.LedgerInit.prototype.setArchiveCanister = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.LedgerInit} returns this + */ +proto.ic_ledger.pb.v1.LedgerInit.prototype.clearArchiveCanister = function() { + return this.setArchiveCanister(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.LedgerInit.prototype.hasArchiveCanister = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional uint32 max_message_size_bytes = 4; + * @return {number} + */ +proto.ic_ledger.pb.v1.LedgerInit.prototype.getMaxMessageSizeBytes = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.ic_ledger.pb.v1.LedgerInit} returns this + */ +proto.ic_ledger.pb.v1.LedgerInit.prototype.setMaxMessageSizeBytes = function(value) { + return jspb.Message.setProto3IntField(this, 4, 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.ic_ledger.pb.v1.LedgerUpgrade.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.LedgerUpgrade.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.ic_ledger.pb.v1.LedgerUpgrade} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.LedgerUpgrade.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.ic_ledger.pb.v1.LedgerUpgrade} + */ +proto.ic_ledger.pb.v1.LedgerUpgrade.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.LedgerUpgrade; + return proto.ic_ledger.pb.v1.LedgerUpgrade.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.LedgerUpgrade} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.LedgerUpgrade} + */ +proto.ic_ledger.pb.v1.LedgerUpgrade.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.ic_ledger.pb.v1.LedgerUpgrade.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.LedgerUpgrade.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.LedgerUpgrade} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.LedgerUpgrade.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.ic_ledger.pb.v1.SendRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.SendRequest.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.ic_ledger.pb.v1.SendRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.SendRequest.toObject = function(includeInstance, msg) { + var f, obj = { + memo: (f = msg.getMemo()) && proto.ic_ledger.pb.v1.Memo.toObject(includeInstance, f), + payment: (f = msg.getPayment()) && proto.ic_ledger.pb.v1.Payment.toObject(includeInstance, f), + maxFee: (f = msg.getMaxFee()) && proto.ic_ledger.pb.v1.Tokens.toObject(includeInstance, f), + fromSubaccount: (f = msg.getFromSubaccount()) && proto.ic_ledger.pb.v1.Subaccount.toObject(includeInstance, f), + to: (f = msg.getTo()) && proto.ic_ledger.pb.v1.AccountIdentifier.toObject(includeInstance, f), + createdAt: (f = msg.getCreatedAt()) && proto.ic_ledger.pb.v1.BlockIndex.toObject(includeInstance, f), + createdAtTime: (f = msg.getCreatedAtTime()) && proto.ic_ledger.pb.v1.TimeStamp.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.ic_ledger.pb.v1.SendRequest} + */ +proto.ic_ledger.pb.v1.SendRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.SendRequest; + return proto.ic_ledger.pb.v1.SendRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.SendRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.SendRequest} + */ +proto.ic_ledger.pb.v1.SendRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_ledger.pb.v1.Memo; + reader.readMessage(value,proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader); + msg.setMemo(value); + break; + case 2: + var value = new proto.ic_ledger.pb.v1.Payment; + reader.readMessage(value,proto.ic_ledger.pb.v1.Payment.deserializeBinaryFromReader); + msg.setPayment(value); + break; + case 3: + var value = new proto.ic_ledger.pb.v1.Tokens; + reader.readMessage(value,proto.ic_ledger.pb.v1.Tokens.deserializeBinaryFromReader); + msg.setMaxFee(value); + break; + case 4: + var value = new proto.ic_ledger.pb.v1.Subaccount; + reader.readMessage(value,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader); + msg.setFromSubaccount(value); + break; + case 5: + var value = new proto.ic_ledger.pb.v1.AccountIdentifier; + reader.readMessage(value,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader); + msg.setTo(value); + break; + case 6: + var value = new proto.ic_ledger.pb.v1.BlockIndex; + reader.readMessage(value,proto.ic_ledger.pb.v1.BlockIndex.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 7: + var value = new proto.ic_ledger.pb.v1.TimeStamp; + reader.readMessage(value,proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader); + msg.setCreatedAtTime(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_ledger.pb.v1.SendRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.SendRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.SendRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.SendRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getMemo(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter + ); + } + f = message.getPayment(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_ledger.pb.v1.Payment.serializeBinaryToWriter + ); + } + f = message.getMaxFee(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.ic_ledger.pb.v1.Tokens.serializeBinaryToWriter + ); + } + f = message.getFromSubaccount(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter + ); + } + f = message.getTo(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter + ); + } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.ic_ledger.pb.v1.BlockIndex.serializeBinaryToWriter + ); + } + f = message.getCreatedAtTime(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Memo memo = 1; + * @return {?proto.ic_ledger.pb.v1.Memo} + */ +proto.ic_ledger.pb.v1.SendRequest.prototype.getMemo = function() { + return /** @type{?proto.ic_ledger.pb.v1.Memo} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Memo, 1)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.Memo|undefined} value + * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this +*/ +proto.ic_ledger.pb.v1.SendRequest.prototype.setMemo = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this + */ +proto.ic_ledger.pb.v1.SendRequest.prototype.clearMemo = function() { + return this.setMemo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.SendRequest.prototype.hasMemo = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Payment payment = 2; + * @return {?proto.ic_ledger.pb.v1.Payment} + */ +proto.ic_ledger.pb.v1.SendRequest.prototype.getPayment = function() { + return /** @type{?proto.ic_ledger.pb.v1.Payment} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Payment, 2)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.Payment|undefined} value + * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this +*/ +proto.ic_ledger.pb.v1.SendRequest.prototype.setPayment = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this + */ +proto.ic_ledger.pb.v1.SendRequest.prototype.clearPayment = function() { + return this.setPayment(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.SendRequest.prototype.hasPayment = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional Tokens max_fee = 3; + * @return {?proto.ic_ledger.pb.v1.Tokens} + */ +proto.ic_ledger.pb.v1.SendRequest.prototype.getMaxFee = function() { + return /** @type{?proto.ic_ledger.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Tokens, 3)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.Tokens|undefined} value + * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this +*/ +proto.ic_ledger.pb.v1.SendRequest.prototype.setMaxFee = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this + */ +proto.ic_ledger.pb.v1.SendRequest.prototype.clearMaxFee = function() { + return this.setMaxFee(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.SendRequest.prototype.hasMaxFee = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional Subaccount from_subaccount = 4; + * @return {?proto.ic_ledger.pb.v1.Subaccount} + */ +proto.ic_ledger.pb.v1.SendRequest.prototype.getFromSubaccount = function() { + return /** @type{?proto.ic_ledger.pb.v1.Subaccount} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Subaccount, 4)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.Subaccount|undefined} value + * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this +*/ +proto.ic_ledger.pb.v1.SendRequest.prototype.setFromSubaccount = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this + */ +proto.ic_ledger.pb.v1.SendRequest.prototype.clearFromSubaccount = function() { + return this.setFromSubaccount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.SendRequest.prototype.hasFromSubaccount = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional AccountIdentifier to = 5; + * @return {?proto.ic_ledger.pb.v1.AccountIdentifier} + */ +proto.ic_ledger.pb.v1.SendRequest.prototype.getTo = function() { + return /** @type{?proto.ic_ledger.pb.v1.AccountIdentifier} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.AccountIdentifier, 5)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.AccountIdentifier|undefined} value + * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this +*/ +proto.ic_ledger.pb.v1.SendRequest.prototype.setTo = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this + */ +proto.ic_ledger.pb.v1.SendRequest.prototype.clearTo = function() { + return this.setTo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.SendRequest.prototype.hasTo = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional BlockIndex created_at = 6; + * @return {?proto.ic_ledger.pb.v1.BlockIndex} + */ +proto.ic_ledger.pb.v1.SendRequest.prototype.getCreatedAt = function() { + return /** @type{?proto.ic_ledger.pb.v1.BlockIndex} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.BlockIndex, 6)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.BlockIndex|undefined} value + * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this +*/ +proto.ic_ledger.pb.v1.SendRequest.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this + */ +proto.ic_ledger.pb.v1.SendRequest.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.SendRequest.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional TimeStamp created_at_time = 7; + * @return {?proto.ic_ledger.pb.v1.TimeStamp} + */ +proto.ic_ledger.pb.v1.SendRequest.prototype.getCreatedAtTime = function() { + return /** @type{?proto.ic_ledger.pb.v1.TimeStamp} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.TimeStamp, 7)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.TimeStamp|undefined} value + * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this +*/ +proto.ic_ledger.pb.v1.SendRequest.prototype.setCreatedAtTime = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this + */ +proto.ic_ledger.pb.v1.SendRequest.prototype.clearCreatedAtTime = function() { + return this.setCreatedAtTime(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.SendRequest.prototype.hasCreatedAtTime = function() { + return jspb.Message.getField(this, 7) != 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.ic_ledger.pb.v1.SendResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.SendResponse.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.ic_ledger.pb.v1.SendResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.SendResponse.toObject = function(includeInstance, msg) { + var f, obj = { + resultingHeight: (f = msg.getResultingHeight()) && proto.ic_ledger.pb.v1.BlockIndex.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.ic_ledger.pb.v1.SendResponse} + */ +proto.ic_ledger.pb.v1.SendResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.SendResponse; + return proto.ic_ledger.pb.v1.SendResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.SendResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.SendResponse} + */ +proto.ic_ledger.pb.v1.SendResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_ledger.pb.v1.BlockIndex; + reader.readMessage(value,proto.ic_ledger.pb.v1.BlockIndex.deserializeBinaryFromReader); + msg.setResultingHeight(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_ledger.pb.v1.SendResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.SendResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.SendResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.SendResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getResultingHeight(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_ledger.pb.v1.BlockIndex.serializeBinaryToWriter + ); + } +}; + + +/** + * optional BlockIndex resulting_height = 1; + * @return {?proto.ic_ledger.pb.v1.BlockIndex} + */ +proto.ic_ledger.pb.v1.SendResponse.prototype.getResultingHeight = function() { + return /** @type{?proto.ic_ledger.pb.v1.BlockIndex} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.BlockIndex, 1)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.BlockIndex|undefined} value + * @return {!proto.ic_ledger.pb.v1.SendResponse} returns this +*/ +proto.ic_ledger.pb.v1.SendResponse.prototype.setResultingHeight = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.SendResponse} returns this + */ +proto.ic_ledger.pb.v1.SendResponse.prototype.clearResultingHeight = function() { + return this.setResultingHeight(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.SendResponse.prototype.hasResultingHeight = 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.ic_ledger.pb.v1.NotifyRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.NotifyRequest.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.ic_ledger.pb.v1.NotifyRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.NotifyRequest.toObject = function(includeInstance, msg) { + var f, obj = { + blockHeight: (f = msg.getBlockHeight()) && proto.ic_ledger.pb.v1.BlockIndex.toObject(includeInstance, f), + maxFee: (f = msg.getMaxFee()) && proto.ic_ledger.pb.v1.Tokens.toObject(includeInstance, f), + fromSubaccount: (f = msg.getFromSubaccount()) && proto.ic_ledger.pb.v1.Subaccount.toObject(includeInstance, f), + toCanister: (f = msg.getToCanister()) && base_types_pb.PrincipalId.toObject(includeInstance, f), + toSubaccount: (f = msg.getToSubaccount()) && proto.ic_ledger.pb.v1.Subaccount.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.ic_ledger.pb.v1.NotifyRequest} + */ +proto.ic_ledger.pb.v1.NotifyRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.NotifyRequest; + return proto.ic_ledger.pb.v1.NotifyRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.NotifyRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.NotifyRequest} + */ +proto.ic_ledger.pb.v1.NotifyRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_ledger.pb.v1.BlockIndex; + reader.readMessage(value,proto.ic_ledger.pb.v1.BlockIndex.deserializeBinaryFromReader); + msg.setBlockHeight(value); + break; + case 2: + var value = new proto.ic_ledger.pb.v1.Tokens; + reader.readMessage(value,proto.ic_ledger.pb.v1.Tokens.deserializeBinaryFromReader); + msg.setMaxFee(value); + break; + case 3: + var value = new proto.ic_ledger.pb.v1.Subaccount; + reader.readMessage(value,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader); + msg.setFromSubaccount(value); + break; + case 4: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setToCanister(value); + break; + case 5: + var value = new proto.ic_ledger.pb.v1.Subaccount; + reader.readMessage(value,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader); + msg.setToSubaccount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_ledger.pb.v1.NotifyRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.NotifyRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.NotifyRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.NotifyRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBlockHeight(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_ledger.pb.v1.BlockIndex.serializeBinaryToWriter + ); + } + f = message.getMaxFee(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_ledger.pb.v1.Tokens.serializeBinaryToWriter + ); + } + f = message.getFromSubaccount(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter + ); + } + f = message.getToCanister(); + if (f != null) { + writer.writeMessage( + 4, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = message.getToSubaccount(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter + ); + } +}; + + +/** + * optional BlockIndex block_height = 1; + * @return {?proto.ic_ledger.pb.v1.BlockIndex} + */ +proto.ic_ledger.pb.v1.NotifyRequest.prototype.getBlockHeight = function() { + return /** @type{?proto.ic_ledger.pb.v1.BlockIndex} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.BlockIndex, 1)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.BlockIndex|undefined} value + * @return {!proto.ic_ledger.pb.v1.NotifyRequest} returns this +*/ +proto.ic_ledger.pb.v1.NotifyRequest.prototype.setBlockHeight = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.NotifyRequest} returns this + */ +proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearBlockHeight = function() { + return this.setBlockHeight(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasBlockHeight = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Tokens max_fee = 2; + * @return {?proto.ic_ledger.pb.v1.Tokens} + */ +proto.ic_ledger.pb.v1.NotifyRequest.prototype.getMaxFee = function() { + return /** @type{?proto.ic_ledger.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Tokens, 2)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.Tokens|undefined} value + * @return {!proto.ic_ledger.pb.v1.NotifyRequest} returns this +*/ +proto.ic_ledger.pb.v1.NotifyRequest.prototype.setMaxFee = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.NotifyRequest} returns this + */ +proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearMaxFee = function() { + return this.setMaxFee(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasMaxFee = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional Subaccount from_subaccount = 3; + * @return {?proto.ic_ledger.pb.v1.Subaccount} + */ +proto.ic_ledger.pb.v1.NotifyRequest.prototype.getFromSubaccount = function() { + return /** @type{?proto.ic_ledger.pb.v1.Subaccount} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Subaccount, 3)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.Subaccount|undefined} value + * @return {!proto.ic_ledger.pb.v1.NotifyRequest} returns this +*/ +proto.ic_ledger.pb.v1.NotifyRequest.prototype.setFromSubaccount = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.NotifyRequest} returns this + */ +proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearFromSubaccount = function() { + return this.setFromSubaccount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasFromSubaccount = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional ic_base_types.pb.v1.PrincipalId to_canister = 4; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_ledger.pb.v1.NotifyRequest.prototype.getToCanister = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 4)); +}; + + +/** + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_ledger.pb.v1.NotifyRequest} returns this +*/ +proto.ic_ledger.pb.v1.NotifyRequest.prototype.setToCanister = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.NotifyRequest} returns this + */ +proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearToCanister = function() { + return this.setToCanister(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasToCanister = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional Subaccount to_subaccount = 5; + * @return {?proto.ic_ledger.pb.v1.Subaccount} + */ +proto.ic_ledger.pb.v1.NotifyRequest.prototype.getToSubaccount = function() { + return /** @type{?proto.ic_ledger.pb.v1.Subaccount} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Subaccount, 5)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.Subaccount|undefined} value + * @return {!proto.ic_ledger.pb.v1.NotifyRequest} returns this +*/ +proto.ic_ledger.pb.v1.NotifyRequest.prototype.setToSubaccount = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.NotifyRequest} returns this + */ +proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearToSubaccount = function() { + return this.setToSubaccount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasToSubaccount = function() { + return jspb.Message.getField(this, 5) != 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.ic_ledger.pb.v1.NotifyResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.NotifyResponse.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.ic_ledger.pb.v1.NotifyResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.NotifyResponse.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.ic_ledger.pb.v1.NotifyResponse} + */ +proto.ic_ledger.pb.v1.NotifyResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.NotifyResponse; + return proto.ic_ledger.pb.v1.NotifyResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.NotifyResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.NotifyResponse} + */ +proto.ic_ledger.pb.v1.NotifyResponse.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.ic_ledger.pb.v1.NotifyResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.NotifyResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.NotifyResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.NotifyResponse.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.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.TransactionNotificationRequest.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.ic_ledger.pb.v1.TransactionNotificationRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.toObject = function(includeInstance, msg) { + var f, obj = { + from: (f = msg.getFrom()) && base_types_pb.PrincipalId.toObject(includeInstance, f), + fromSubaccount: (f = msg.getFromSubaccount()) && proto.ic_ledger.pb.v1.Subaccount.toObject(includeInstance, f), + to: (f = msg.getTo()) && base_types_pb.PrincipalId.toObject(includeInstance, f), + toSubaccount: (f = msg.getToSubaccount()) && proto.ic_ledger.pb.v1.Subaccount.toObject(includeInstance, f), + blockHeight: (f = msg.getBlockHeight()) && proto.ic_ledger.pb.v1.BlockIndex.toObject(includeInstance, f), + amount: (f = msg.getAmount()) && proto.ic_ledger.pb.v1.Tokens.toObject(includeInstance, f), + memo: (f = msg.getMemo()) && proto.ic_ledger.pb.v1.Memo.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.ic_ledger.pb.v1.TransactionNotificationRequest} + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.TransactionNotificationRequest; + return proto.ic_ledger.pb.v1.TransactionNotificationRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setFrom(value); + break; + case 2: + var value = new proto.ic_ledger.pb.v1.Subaccount; + reader.readMessage(value,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader); + msg.setFromSubaccount(value); + break; + case 3: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setTo(value); + break; + case 4: + var value = new proto.ic_ledger.pb.v1.Subaccount; + reader.readMessage(value,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader); + msg.setToSubaccount(value); + break; + case 5: + var value = new proto.ic_ledger.pb.v1.BlockIndex; + reader.readMessage(value,proto.ic_ledger.pb.v1.BlockIndex.deserializeBinaryFromReader); + msg.setBlockHeight(value); + break; + case 6: + var value = new proto.ic_ledger.pb.v1.Tokens; + reader.readMessage(value,proto.ic_ledger.pb.v1.Tokens.deserializeBinaryFromReader); + msg.setAmount(value); + break; + case 7: + var value = new proto.ic_ledger.pb.v1.Memo; + reader.readMessage(value,proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader); + msg.setMemo(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.TransactionNotificationRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getFrom(); + if (f != null) { + writer.writeMessage( + 1, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = message.getFromSubaccount(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter + ); + } + f = message.getTo(); + if (f != null) { + writer.writeMessage( + 3, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = message.getToSubaccount(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter + ); + } + f = message.getBlockHeight(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.ic_ledger.pb.v1.BlockIndex.serializeBinaryToWriter + ); + } + f = message.getAmount(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.ic_ledger.pb.v1.Tokens.serializeBinaryToWriter + ); + } + f = message.getMemo(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_base_types.pb.v1.PrincipalId from = 1; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getFrom = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 1)); +}; + + +/** + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this +*/ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setFrom = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearFrom = function() { + return this.setFrom(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasFrom = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Subaccount from_subaccount = 2; + * @return {?proto.ic_ledger.pb.v1.Subaccount} + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getFromSubaccount = function() { + return /** @type{?proto.ic_ledger.pb.v1.Subaccount} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Subaccount, 2)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.Subaccount|undefined} value + * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this +*/ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setFromSubaccount = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearFromSubaccount = function() { + return this.setFromSubaccount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasFromSubaccount = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional ic_base_types.pb.v1.PrincipalId to = 3; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getTo = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 3)); +}; + + +/** + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this +*/ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setTo = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearTo = function() { + return this.setTo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasTo = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional Subaccount to_subaccount = 4; + * @return {?proto.ic_ledger.pb.v1.Subaccount} + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getToSubaccount = function() { + return /** @type{?proto.ic_ledger.pb.v1.Subaccount} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Subaccount, 4)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.Subaccount|undefined} value + * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this +*/ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setToSubaccount = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearToSubaccount = function() { + return this.setToSubaccount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasToSubaccount = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional BlockIndex block_height = 5; + * @return {?proto.ic_ledger.pb.v1.BlockIndex} + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getBlockHeight = function() { + return /** @type{?proto.ic_ledger.pb.v1.BlockIndex} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.BlockIndex, 5)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.BlockIndex|undefined} value + * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this +*/ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setBlockHeight = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearBlockHeight = function() { + return this.setBlockHeight(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasBlockHeight = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional Tokens amount = 6; + * @return {?proto.ic_ledger.pb.v1.Tokens} + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getAmount = function() { + return /** @type{?proto.ic_ledger.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Tokens, 6)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.Tokens|undefined} value + * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this +*/ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setAmount = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearAmount = function() { + return this.setAmount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasAmount = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional Memo memo = 7; + * @return {?proto.ic_ledger.pb.v1.Memo} + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getMemo = function() { + return /** @type{?proto.ic_ledger.pb.v1.Memo} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Memo, 7)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.Memo|undefined} value + * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this +*/ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setMemo = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearMemo = function() { + return this.setMemo(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasMemo = function() { + return jspb.Message.getField(this, 7) != 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.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.TransactionNotificationResponse.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.ic_ledger.pb.v1.TransactionNotificationResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.TransactionNotificationResponse.toObject = function(includeInstance, msg) { + var f, obj = { + response: msg.getResponse_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.ic_ledger.pb.v1.TransactionNotificationResponse} + */ +proto.ic_ledger.pb.v1.TransactionNotificationResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.TransactionNotificationResponse; + return proto.ic_ledger.pb.v1.TransactionNotificationResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.TransactionNotificationResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.TransactionNotificationResponse} + */ +proto.ic_ledger.pb.v1.TransactionNotificationResponse.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.setResponse(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.TransactionNotificationResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.TransactionNotificationResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.TransactionNotificationResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getResponse_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } +}; + + +/** + * optional bytes response = 1; + * @return {!(string|Uint8Array)} + */ +proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.getResponse = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes response = 1; + * This is a type-conversion wrapper around `getResponse()` + * @return {string} + */ +proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.getResponse_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getResponse())); +}; + + +/** + * optional bytes response = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getResponse()` + * @return {!Uint8Array} + */ +proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.getResponse_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getResponse())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.ic_ledger.pb.v1.TransactionNotificationResponse} returns this + */ +proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.setResponse = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); +}; + + + +/** + * 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.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_ = [[1,2,3]]; + +/** + * @enum {number} + */ +proto.ic_ledger.pb.v1.CyclesNotificationResponse.ResponseCase = { + RESPONSE_NOT_SET: 0, + CREATED_CANISTER_ID: 1, + REFUND: 2, + TOPPED_UP: 3 +}; + +/** + * @return {proto.ic_ledger.pb.v1.CyclesNotificationResponse.ResponseCase} + */ +proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.getResponseCase = function() { + return /** @type {proto.ic_ledger.pb.v1.CyclesNotificationResponse.ResponseCase} */(jspb.Message.computeOneofCase(this, proto.ic_ledger.pb.v1.CyclesNotificationResponse.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.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.CyclesNotificationResponse.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.ic_ledger.pb.v1.CyclesNotificationResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.CyclesNotificationResponse.toObject = function(includeInstance, msg) { + var f, obj = { + createdCanisterId: (f = msg.getCreatedCanisterId()) && base_types_pb.PrincipalId.toObject(includeInstance, f), + refund: (f = msg.getRefund()) && proto.ic_ledger.pb.v1.Refund.toObject(includeInstance, f), + toppedUp: (f = msg.getToppedUp()) && proto.ic_ledger.pb.v1.ToppedUp.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.ic_ledger.pb.v1.CyclesNotificationResponse} + */ +proto.ic_ledger.pb.v1.CyclesNotificationResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.CyclesNotificationResponse; + return proto.ic_ledger.pb.v1.CyclesNotificationResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.CyclesNotificationResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.CyclesNotificationResponse} + */ +proto.ic_ledger.pb.v1.CyclesNotificationResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setCreatedCanisterId(value); + break; + case 2: + var value = new proto.ic_ledger.pb.v1.Refund; + reader.readMessage(value,proto.ic_ledger.pb.v1.Refund.deserializeBinaryFromReader); + msg.setRefund(value); + break; + case 3: + var value = new proto.ic_ledger.pb.v1.ToppedUp; + reader.readMessage(value,proto.ic_ledger.pb.v1.ToppedUp.deserializeBinaryFromReader); + msg.setToppedUp(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.CyclesNotificationResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.CyclesNotificationResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.CyclesNotificationResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCreatedCanisterId(); + if (f != null) { + writer.writeMessage( + 1, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } + f = message.getRefund(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_ledger.pb.v1.Refund.serializeBinaryToWriter + ); + } + f = message.getToppedUp(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.ic_ledger.pb.v1.ToppedUp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional ic_base_types.pb.v1.PrincipalId created_canister_id = 1; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} + */ +proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.getCreatedCanisterId = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 1)); +}; + + +/** + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_ledger.pb.v1.CyclesNotificationResponse} returns this +*/ +proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.setCreatedCanisterId = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.CyclesNotificationResponse} returns this + */ +proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.clearCreatedCanisterId = function() { + return this.setCreatedCanisterId(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.hasCreatedCanisterId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Refund refund = 2; + * @return {?proto.ic_ledger.pb.v1.Refund} + */ +proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.getRefund = function() { + return /** @type{?proto.ic_ledger.pb.v1.Refund} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Refund, 2)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.Refund|undefined} value + * @return {!proto.ic_ledger.pb.v1.CyclesNotificationResponse} returns this +*/ +proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.setRefund = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.CyclesNotificationResponse} returns this + */ +proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.clearRefund = function() { + return this.setRefund(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.hasRefund = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional ToppedUp topped_up = 3; + * @return {?proto.ic_ledger.pb.v1.ToppedUp} + */ +proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.getToppedUp = function() { + return /** @type{?proto.ic_ledger.pb.v1.ToppedUp} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.ToppedUp, 3)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.ToppedUp|undefined} value + * @return {!proto.ic_ledger.pb.v1.CyclesNotificationResponse} returns this +*/ +proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.setToppedUp = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.CyclesNotificationResponse} returns this + */ +proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.clearToppedUp = function() { + return this.setToppedUp(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.hasToppedUp = function() { + return jspb.Message.getField(this, 3) != 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.ic_ledger.pb.v1.AccountBalanceRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.AccountBalanceRequest.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.ic_ledger.pb.v1.AccountBalanceRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.AccountBalanceRequest.toObject = function(includeInstance, msg) { + var f, obj = { + account: (f = msg.getAccount()) && proto.ic_ledger.pb.v1.AccountIdentifier.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.ic_ledger.pb.v1.AccountBalanceRequest} + */ +proto.ic_ledger.pb.v1.AccountBalanceRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.AccountBalanceRequest; + return proto.ic_ledger.pb.v1.AccountBalanceRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.AccountBalanceRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.AccountBalanceRequest} + */ +proto.ic_ledger.pb.v1.AccountBalanceRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_ledger.pb.v1.AccountIdentifier; + reader.readMessage(value,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader); + msg.setAccount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.AccountBalanceRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.AccountBalanceRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.AccountBalanceRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAccount(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter + ); + } +}; + + +/** + * optional AccountIdentifier account = 1; + * @return {?proto.ic_ledger.pb.v1.AccountIdentifier} + */ +proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.getAccount = function() { + return /** @type{?proto.ic_ledger.pb.v1.AccountIdentifier} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.AccountIdentifier, 1)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.AccountIdentifier|undefined} value + * @return {!proto.ic_ledger.pb.v1.AccountBalanceRequest} returns this +*/ +proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.setAccount = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.AccountBalanceRequest} returns this + */ +proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.clearAccount = function() { + return this.setAccount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.hasAccount = 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.ic_ledger.pb.v1.AccountBalanceResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.AccountBalanceResponse.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.ic_ledger.pb.v1.AccountBalanceResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.AccountBalanceResponse.toObject = function(includeInstance, msg) { + var f, obj = { + balance: (f = msg.getBalance()) && proto.ic_ledger.pb.v1.Tokens.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.ic_ledger.pb.v1.AccountBalanceResponse} + */ +proto.ic_ledger.pb.v1.AccountBalanceResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.AccountBalanceResponse; + return proto.ic_ledger.pb.v1.AccountBalanceResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.AccountBalanceResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.AccountBalanceResponse} + */ +proto.ic_ledger.pb.v1.AccountBalanceResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_ledger.pb.v1.Tokens; + reader.readMessage(value,proto.ic_ledger.pb.v1.Tokens.deserializeBinaryFromReader); + msg.setBalance(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.AccountBalanceResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.AccountBalanceResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.AccountBalanceResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBalance(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_ledger.pb.v1.Tokens.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Tokens balance = 1; + * @return {?proto.ic_ledger.pb.v1.Tokens} + */ +proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.getBalance = function() { + return /** @type{?proto.ic_ledger.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Tokens, 1)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.Tokens|undefined} value + * @return {!proto.ic_ledger.pb.v1.AccountBalanceResponse} returns this +*/ +proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.setBalance = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.AccountBalanceResponse} returns this + */ +proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.clearBalance = function() { + return this.setBalance(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.hasBalance = 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.ic_ledger.pb.v1.TipOfChainRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.TipOfChainRequest.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.ic_ledger.pb.v1.TipOfChainRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.TipOfChainRequest.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.ic_ledger.pb.v1.TipOfChainRequest} + */ +proto.ic_ledger.pb.v1.TipOfChainRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.TipOfChainRequest; + return proto.ic_ledger.pb.v1.TipOfChainRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.TipOfChainRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.TipOfChainRequest} + */ +proto.ic_ledger.pb.v1.TipOfChainRequest.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.ic_ledger.pb.v1.TipOfChainRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.TipOfChainRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.TipOfChainRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.TipOfChainRequest.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.ic_ledger.pb.v1.TipOfChainResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.TipOfChainResponse.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.ic_ledger.pb.v1.TipOfChainResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.TipOfChainResponse.toObject = function(includeInstance, msg) { + var f, obj = { + certification: (f = msg.getCertification()) && proto.ic_ledger.pb.v1.Certification.toObject(includeInstance, f), + chainLength: (f = msg.getChainLength()) && proto.ic_ledger.pb.v1.BlockIndex.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.ic_ledger.pb.v1.TipOfChainResponse} + */ +proto.ic_ledger.pb.v1.TipOfChainResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.TipOfChainResponse; + return proto.ic_ledger.pb.v1.TipOfChainResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.TipOfChainResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.TipOfChainResponse} + */ +proto.ic_ledger.pb.v1.TipOfChainResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_ledger.pb.v1.Certification; + reader.readMessage(value,proto.ic_ledger.pb.v1.Certification.deserializeBinaryFromReader); + msg.setCertification(value); + break; + case 2: + var value = new proto.ic_ledger.pb.v1.BlockIndex; + reader.readMessage(value,proto.ic_ledger.pb.v1.BlockIndex.deserializeBinaryFromReader); + msg.setChainLength(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.TipOfChainResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.TipOfChainResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.TipOfChainResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCertification(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_ledger.pb.v1.Certification.serializeBinaryToWriter + ); + } + f = message.getChainLength(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_ledger.pb.v1.BlockIndex.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Certification certification = 1; + * @return {?proto.ic_ledger.pb.v1.Certification} + */ +proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.getCertification = function() { + return /** @type{?proto.ic_ledger.pb.v1.Certification} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Certification, 1)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.Certification|undefined} value + * @return {!proto.ic_ledger.pb.v1.TipOfChainResponse} returns this +*/ +proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.setCertification = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.TipOfChainResponse} returns this + */ +proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.clearCertification = function() { + return this.setCertification(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.hasCertification = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional BlockIndex chain_length = 2; + * @return {?proto.ic_ledger.pb.v1.BlockIndex} + */ +proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.getChainLength = function() { + return /** @type{?proto.ic_ledger.pb.v1.BlockIndex} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.BlockIndex, 2)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.BlockIndex|undefined} value + * @return {!proto.ic_ledger.pb.v1.TipOfChainResponse} returns this +*/ +proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.setChainLength = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.TipOfChainResponse} returns this + */ +proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.clearChainLength = function() { + return this.setChainLength(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.hasChainLength = function() { + return jspb.Message.getField(this, 2) != 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.ic_ledger.pb.v1.TotalSupplyRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.TotalSupplyRequest.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.ic_ledger.pb.v1.TotalSupplyRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.TotalSupplyRequest.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.ic_ledger.pb.v1.TotalSupplyRequest} + */ +proto.ic_ledger.pb.v1.TotalSupplyRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.TotalSupplyRequest; + return proto.ic_ledger.pb.v1.TotalSupplyRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.TotalSupplyRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.TotalSupplyRequest} + */ +proto.ic_ledger.pb.v1.TotalSupplyRequest.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.ic_ledger.pb.v1.TotalSupplyRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.TotalSupplyRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.TotalSupplyRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.TotalSupplyRequest.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.ic_ledger.pb.v1.TotalSupplyResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.TotalSupplyResponse.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.ic_ledger.pb.v1.TotalSupplyResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.TotalSupplyResponse.toObject = function(includeInstance, msg) { + var f, obj = { + totalSupply: (f = msg.getTotalSupply()) && proto.ic_ledger.pb.v1.Tokens.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.ic_ledger.pb.v1.TotalSupplyResponse} + */ +proto.ic_ledger.pb.v1.TotalSupplyResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.TotalSupplyResponse; + return proto.ic_ledger.pb.v1.TotalSupplyResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.TotalSupplyResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.TotalSupplyResponse} + */ +proto.ic_ledger.pb.v1.TotalSupplyResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_ledger.pb.v1.Tokens; + reader.readMessage(value,proto.ic_ledger.pb.v1.Tokens.deserializeBinaryFromReader); + msg.setTotalSupply(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_ledger.pb.v1.TotalSupplyResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.TotalSupplyResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.TotalSupplyResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.TotalSupplyResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTotalSupply(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_ledger.pb.v1.Tokens.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Tokens total_supply = 1; + * @return {?proto.ic_ledger.pb.v1.Tokens} + */ +proto.ic_ledger.pb.v1.TotalSupplyResponse.prototype.getTotalSupply = function() { + return /** @type{?proto.ic_ledger.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Tokens, 1)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.Tokens|undefined} value + * @return {!proto.ic_ledger.pb.v1.TotalSupplyResponse} returns this +*/ +proto.ic_ledger.pb.v1.TotalSupplyResponse.prototype.setTotalSupply = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.TotalSupplyResponse} returns this + */ +proto.ic_ledger.pb.v1.TotalSupplyResponse.prototype.clearTotalSupply = function() { + return this.setTotalSupply(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.TotalSupplyResponse.prototype.hasTotalSupply = 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.ic_ledger.pb.v1.LedgerArchiveRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.LedgerArchiveRequest.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.ic_ledger.pb.v1.LedgerArchiveRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.LedgerArchiveRequest.toObject = function(includeInstance, msg) { + var f, obj = { + timestamp: (f = msg.getTimestamp()) && proto.ic_ledger.pb.v1.TimeStamp.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.ic_ledger.pb.v1.SendRequest} + * @return {!proto.ic_ledger.pb.v1.LedgerArchiveRequest} */ -proto.ic_ledger.pb.v1.SendRequest.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.LedgerArchiveRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.SendRequest; - return proto.ic_ledger.pb.v1.SendRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.LedgerArchiveRequest; + return proto.ic_ledger.pb.v1.LedgerArchiveRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.SendRequest} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.LedgerArchiveRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.SendRequest} + * @return {!proto.ic_ledger.pb.v1.LedgerArchiveRequest} */ -proto.ic_ledger.pb.v1.SendRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.LedgerArchiveRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -806,39 +4469,9 @@ proto.ic_ledger.pb.v1.SendRequest.deserializeBinaryFromReader = function(msg, re var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.ic_ledger.pb.v1.Memo; - reader.readMessage(value,proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader); - msg.setMemo(value); - break; - case 2: - var value = new proto.ic_ledger.pb.v1.Payment; - reader.readMessage(value,proto.ic_ledger.pb.v1.Payment.deserializeBinaryFromReader); - msg.setPayment(value); - break; - case 3: - var value = new proto.ic_ledger.pb.v1.ICPTs; - reader.readMessage(value,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader); - msg.setMaxFee(value); - break; - case 4: - var value = new proto.ic_ledger.pb.v1.Subaccount; - reader.readMessage(value,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader); - msg.setFromSubaccount(value); - break; - case 5: - var value = new proto.ic_ledger.pb.v1.AccountIdentifier; - reader.readMessage(value,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader); - msg.setTo(value); - break; - case 6: - var value = new proto.ic_ledger.pb.v1.BlockHeight; - reader.readMessage(value,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader); - msg.setCreatedAt(value); - break; - case 7: var value = new proto.ic_ledger.pb.v1.TimeStamp; reader.readMessage(value,proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader); - msg.setCreatedAtTime(value); + msg.setTimestamp(value); break; default: reader.skipField(); @@ -853,9 +4486,9 @@ proto.ic_ledger.pb.v1.SendRequest.deserializeBinaryFromReader = function(msg, re * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.SendRequest.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.LedgerArchiveRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.SendRequest.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.LedgerArchiveRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -863,281 +4496,523 @@ proto.ic_ledger.pb.v1.SendRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.SendRequest} message + * @param {!proto.ic_ledger.pb.v1.LedgerArchiveRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.SendRequest.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.LedgerArchiveRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getMemo(); + f = message.getTimestamp(); if (f != null) { writer.writeMessage( 1, f, - proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter - ); - } - f = message.getPayment(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.ic_ledger.pb.v1.Payment.serializeBinaryToWriter - ); - } - f = message.getMaxFee(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter - ); - } - f = message.getFromSubaccount(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter + proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter ); } - f = message.getTo(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter - ); +}; + + +/** + * optional TimeStamp timestamp = 1; + * @return {?proto.ic_ledger.pb.v1.TimeStamp} + */ +proto.ic_ledger.pb.v1.LedgerArchiveRequest.prototype.getTimestamp = function() { + return /** @type{?proto.ic_ledger.pb.v1.TimeStamp} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.TimeStamp, 1)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.TimeStamp|undefined} value + * @return {!proto.ic_ledger.pb.v1.LedgerArchiveRequest} returns this +*/ +proto.ic_ledger.pb.v1.LedgerArchiveRequest.prototype.setTimestamp = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.LedgerArchiveRequest} returns this + */ +proto.ic_ledger.pb.v1.LedgerArchiveRequest.prototype.clearTimestamp = function() { + return this.setTimestamp(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.LedgerArchiveRequest.prototype.hasTimestamp = 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.ic_ledger.pb.v1.BlockRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.BlockRequest.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.ic_ledger.pb.v1.BlockRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.BlockRequest.toObject = function(includeInstance, msg) { + var f, obj = { + blockHeight: jspb.Message.getFieldWithDefault(msg, 1, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter - ); + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_ledger.pb.v1.BlockRequest} + */ +proto.ic_ledger.pb.v1.BlockRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.BlockRequest; + return proto.ic_ledger.pb.v1.BlockRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.BlockRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.BlockRequest} + */ +proto.ic_ledger.pb.v1.BlockRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setBlockHeight(value); + break; + default: + reader.skipField(); + break; + } } - f = message.getCreatedAtTime(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_ledger.pb.v1.BlockRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.BlockRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.BlockRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.BlockRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBlockHeight(); + if (f !== 0) { + writer.writeUint64( + 1, + f ); } }; /** - * optional Memo memo = 1; - * @return {?proto.ic_ledger.pb.v1.Memo} + * optional uint64 block_height = 1; + * @return {number} */ -proto.ic_ledger.pb.v1.SendRequest.prototype.getMemo = function() { - return /** @type{?proto.ic_ledger.pb.v1.Memo} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Memo, 1)); +proto.ic_ledger.pb.v1.BlockRequest.prototype.getBlockHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {?proto.ic_ledger.pb.v1.Memo|undefined} value - * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this -*/ -proto.ic_ledger.pb.v1.SendRequest.prototype.setMemo = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * @param {number} value + * @return {!proto.ic_ledger.pb.v1.BlockRequest} returns this + */ +proto.ic_ledger.pb.v1.BlockRequest.prototype.setBlockHeight = 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.ic_ledger.pb.v1.EncodedBlock.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.EncodedBlock.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.ic_ledger.pb.v1.EncodedBlock} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.EncodedBlock.toObject = function(includeInstance, msg) { + var f, obj = { + block: msg.getBlock_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_ledger.pb.v1.EncodedBlock} */ -proto.ic_ledger.pb.v1.SendRequest.prototype.clearMemo = function() { - return this.setMemo(undefined); +proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.EncodedBlock; + return proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinaryFromReader(msg, reader); }; /** - * Returns whether this field is set. - * @return {boolean} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.EncodedBlock} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.EncodedBlock} */ -proto.ic_ledger.pb.v1.SendRequest.prototype.hasMemo = function() { - return jspb.Message.getField(this, 1) != null; +proto.ic_ledger.pb.v1.EncodedBlock.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.setBlock(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional Payment payment = 2; - * @return {?proto.ic_ledger.pb.v1.Payment} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.SendRequest.prototype.getPayment = function() { - return /** @type{?proto.ic_ledger.pb.v1.Payment} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Payment, 2)); +proto.ic_ledger.pb.v1.EncodedBlock.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.EncodedBlock.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {?proto.ic_ledger.pb.v1.Payment|undefined} value - * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this -*/ -proto.ic_ledger.pb.v1.SendRequest.prototype.setPayment = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.EncodedBlock} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.EncodedBlock.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBlock_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this + * optional bytes block = 1; + * @return {!(string|Uint8Array)} */ -proto.ic_ledger.pb.v1.SendRequest.prototype.clearPayment = function() { - return this.setPayment(undefined); +proto.ic_ledger.pb.v1.EncodedBlock.prototype.getBlock = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * Returns whether this field is set. - * @return {boolean} + * optional bytes block = 1; + * This is a type-conversion wrapper around `getBlock()` + * @return {string} */ -proto.ic_ledger.pb.v1.SendRequest.prototype.hasPayment = function() { - return jspb.Message.getField(this, 2) != null; +proto.ic_ledger.pb.v1.EncodedBlock.prototype.getBlock_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getBlock())); }; /** - * optional ICPTs max_fee = 3; - * @return {?proto.ic_ledger.pb.v1.ICPTs} + * optional bytes block = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getBlock()` + * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.SendRequest.prototype.getMaxFee = function() { - return /** @type{?proto.ic_ledger.pb.v1.ICPTs} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.ICPTs, 3)); +proto.ic_ledger.pb.v1.EncodedBlock.prototype.getBlock_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getBlock())); }; /** - * @param {?proto.ic_ledger.pb.v1.ICPTs|undefined} value - * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this -*/ -proto.ic_ledger.pb.v1.SendRequest.prototype.setMaxFee = function(value) { - return jspb.Message.setWrapperField(this, 3, value); + * @param {!(string|Uint8Array)} value + * @return {!proto.ic_ledger.pb.v1.EncodedBlock} returns this + */ +proto.ic_ledger.pb.v1.EncodedBlock.prototype.setBlock = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); }; + /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this + * 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.ic_ledger.pb.v1.SendRequest.prototype.clearMaxFee = function() { - return this.setMaxFee(undefined); -}; - +proto.ic_ledger.pb.v1.BlockResponse.oneofGroups_ = [[1,2]]; /** - * Returns whether this field is set. - * @return {boolean} + * @enum {number} */ -proto.ic_ledger.pb.v1.SendRequest.prototype.hasMaxFee = function() { - return jspb.Message.getField(this, 3) != null; +proto.ic_ledger.pb.v1.BlockResponse.BlockContentCase = { + BLOCK_CONTENT_NOT_SET: 0, + BLOCK: 1, + CANISTER_ID: 2 }; - /** - * optional Subaccount from_subaccount = 4; - * @return {?proto.ic_ledger.pb.v1.Subaccount} + * @return {proto.ic_ledger.pb.v1.BlockResponse.BlockContentCase} */ -proto.ic_ledger.pb.v1.SendRequest.prototype.getFromSubaccount = function() { - return /** @type{?proto.ic_ledger.pb.v1.Subaccount} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Subaccount, 4)); +proto.ic_ledger.pb.v1.BlockResponse.prototype.getBlockContentCase = function() { + return /** @type {proto.ic_ledger.pb.v1.BlockResponse.BlockContentCase} */(jspb.Message.computeOneofCase(this, proto.ic_ledger.pb.v1.BlockResponse.oneofGroups_[0])); }; -/** - * @param {?proto.ic_ledger.pb.v1.Subaccount|undefined} value - * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this -*/ -proto.ic_ledger.pb.v1.SendRequest.prototype.setFromSubaccount = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this + * 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.ic_ledger.pb.v1.SendRequest.prototype.clearFromSubaccount = function() { - return this.setFromSubaccount(undefined); +proto.ic_ledger.pb.v1.BlockResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.BlockResponse.toObject(opt_includeInstance, this); }; /** - * Returns whether this field is set. - * @return {boolean} + * 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.ic_ledger.pb.v1.BlockResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.SendRequest.prototype.hasFromSubaccount = function() { - return jspb.Message.getField(this, 4) != null; +proto.ic_ledger.pb.v1.BlockResponse.toObject = function(includeInstance, msg) { + var f, obj = { + block: (f = msg.getBlock()) && proto.ic_ledger.pb.v1.EncodedBlock.toObject(includeInstance, f), + canisterId: (f = msg.getCanisterId()) && base_types_pb.PrincipalId.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional AccountIdentifier to = 5; - * @return {?proto.ic_ledger.pb.v1.AccountIdentifier} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_ledger.pb.v1.BlockResponse} */ -proto.ic_ledger.pb.v1.SendRequest.prototype.getTo = function() { - return /** @type{?proto.ic_ledger.pb.v1.AccountIdentifier} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.AccountIdentifier, 5)); +proto.ic_ledger.pb.v1.BlockResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.BlockResponse; + return proto.ic_ledger.pb.v1.BlockResponse.deserializeBinaryFromReader(msg, reader); }; /** - * @param {?proto.ic_ledger.pb.v1.AccountIdentifier|undefined} value - * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this -*/ -proto.ic_ledger.pb.v1.SendRequest.prototype.setTo = function(value) { - return jspb.Message.setWrapperField(this, 5, value); + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.BlockResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.BlockResponse} + */ +proto.ic_ledger.pb.v1.BlockResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_ledger.pb.v1.EncodedBlock; + reader.readMessage(value,proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinaryFromReader); + msg.setBlock(value); + break; + case 2: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setCanisterId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.SendRequest.prototype.clearTo = function() { - return this.setTo(undefined); +proto.ic_ledger.pb.v1.BlockResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.BlockResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Returns whether this field is set. - * @return {boolean} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.BlockResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.SendRequest.prototype.hasTo = function() { - return jspb.Message.getField(this, 5) != null; +proto.ic_ledger.pb.v1.BlockResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBlock(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_ledger.pb.v1.EncodedBlock.serializeBinaryToWriter + ); + } + f = message.getCanisterId(); + if (f != null) { + writer.writeMessage( + 2, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } }; /** - * optional BlockHeight created_at = 6; - * @return {?proto.ic_ledger.pb.v1.BlockHeight} + * optional EncodedBlock block = 1; + * @return {?proto.ic_ledger.pb.v1.EncodedBlock} */ -proto.ic_ledger.pb.v1.SendRequest.prototype.getCreatedAt = function() { - return /** @type{?proto.ic_ledger.pb.v1.BlockHeight} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.BlockHeight, 6)); +proto.ic_ledger.pb.v1.BlockResponse.prototype.getBlock = function() { + return /** @type{?proto.ic_ledger.pb.v1.EncodedBlock} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.EncodedBlock, 1)); }; /** - * @param {?proto.ic_ledger.pb.v1.BlockHeight|undefined} value - * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this + * @param {?proto.ic_ledger.pb.v1.EncodedBlock|undefined} value + * @return {!proto.ic_ledger.pb.v1.BlockResponse} returns this */ -proto.ic_ledger.pb.v1.SendRequest.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 6, value); +proto.ic_ledger.pb.v1.BlockResponse.prototype.setBlock = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.ic_ledger.pb.v1.BlockResponse.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this + * @return {!proto.ic_ledger.pb.v1.BlockResponse} returns this */ -proto.ic_ledger.pb.v1.SendRequest.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); +proto.ic_ledger.pb.v1.BlockResponse.prototype.clearBlock = function() { + return this.setBlock(undefined); }; @@ -1145,36 +5020,36 @@ proto.ic_ledger.pb.v1.SendRequest.prototype.clearCreatedAt = function() { * Returns whether this field is set. * @return {boolean} */ -proto.ic_ledger.pb.v1.SendRequest.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 6) != null; +proto.ic_ledger.pb.v1.BlockResponse.prototype.hasBlock = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional TimeStamp created_at_time = 7; - * @return {?proto.ic_ledger.pb.v1.TimeStamp} + * optional ic_base_types.pb.v1.PrincipalId canister_id = 2; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} */ -proto.ic_ledger.pb.v1.SendRequest.prototype.getCreatedAtTime = function() { - return /** @type{?proto.ic_ledger.pb.v1.TimeStamp} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.TimeStamp, 7)); +proto.ic_ledger.pb.v1.BlockResponse.prototype.getCanisterId = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 2)); }; /** - * @param {?proto.ic_ledger.pb.v1.TimeStamp|undefined} value - * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_ledger.pb.v1.BlockResponse} returns this */ -proto.ic_ledger.pb.v1.SendRequest.prototype.setCreatedAtTime = function(value) { - return jspb.Message.setWrapperField(this, 7, value); +proto.ic_ledger.pb.v1.BlockResponse.prototype.setCanisterId = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.ic_ledger.pb.v1.BlockResponse.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.SendRequest} returns this + * @return {!proto.ic_ledger.pb.v1.BlockResponse} returns this */ -proto.ic_ledger.pb.v1.SendRequest.prototype.clearCreatedAtTime = function() { - return this.setCreatedAtTime(undefined); +proto.ic_ledger.pb.v1.BlockResponse.prototype.clearCanisterId = function() { + return this.setCanisterId(undefined); }; @@ -1182,8 +5057,8 @@ proto.ic_ledger.pb.v1.SendRequest.prototype.clearCreatedAtTime = function() { * Returns whether this field is set. * @return {boolean} */ -proto.ic_ledger.pb.v1.SendRequest.prototype.hasCreatedAtTime = function() { - return jspb.Message.getField(this, 7) != null; +proto.ic_ledger.pb.v1.BlockResponse.prototype.hasCanisterId = function() { + return jspb.Message.getField(this, 2) != null; }; @@ -1203,8 +5078,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.SendResponse.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.SendResponse.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.GetBlocksRequest.toObject(opt_includeInstance, this); }; @@ -1213,13 +5088,14 @@ proto.ic_ledger.pb.v1.SendResponse.prototype.toObject = function(opt_includeInst * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.SendResponse} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.GetBlocksRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.SendResponse.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.GetBlocksRequest.toObject = function(includeInstance, msg) { var f, obj = { - resultingHeight: (f = msg.getResultingHeight()) && proto.ic_ledger.pb.v1.BlockHeight.toObject(includeInstance, f) + start: jspb.Message.getFieldWithDefault(msg, 1, 0), + length: jspb.Message.getFieldWithDefault(msg, 2, 0) }; if (includeInstance) { @@ -1233,23 +5109,23 @@ proto.ic_ledger.pb.v1.SendResponse.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.SendResponse} + * @return {!proto.ic_ledger.pb.v1.GetBlocksRequest} */ -proto.ic_ledger.pb.v1.SendResponse.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.GetBlocksRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.SendResponse; - return proto.ic_ledger.pb.v1.SendResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.GetBlocksRequest; + return proto.ic_ledger.pb.v1.GetBlocksRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.SendResponse} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.GetBlocksRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.SendResponse} + * @return {!proto.ic_ledger.pb.v1.GetBlocksRequest} */ -proto.ic_ledger.pb.v1.SendResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.GetBlocksRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1257,9 +5133,12 @@ proto.ic_ledger.pb.v1.SendResponse.deserializeBinaryFromReader = function(msg, r var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.ic_ledger.pb.v1.BlockHeight; - reader.readMessage(value,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader); - msg.setResultingHeight(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setStart(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setLength(value); break; default: reader.skipField(); @@ -1274,9 +5153,9 @@ proto.ic_ledger.pb.v1.SendResponse.deserializeBinaryFromReader = function(msg, r * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.SendResponse.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.SendResponse.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.GetBlocksRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1284,57 +5163,62 @@ proto.ic_ledger.pb.v1.SendResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.SendResponse} message + * @param {!proto.ic_ledger.pb.v1.GetBlocksRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.SendResponse.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.GetBlocksRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getResultingHeight(); - if (f != null) { - writer.writeMessage( + f = message.getStart(); + if (f !== 0) { + writer.writeUint64( 1, - f, - proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter + f + ); + } + f = message.getLength(); + if (f !== 0) { + writer.writeUint64( + 2, + f ); } }; /** - * optional BlockHeight resulting_height = 1; - * @return {?proto.ic_ledger.pb.v1.BlockHeight} + * optional uint64 start = 1; + * @return {number} */ -proto.ic_ledger.pb.v1.SendResponse.prototype.getResultingHeight = function() { - return /** @type{?proto.ic_ledger.pb.v1.BlockHeight} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.BlockHeight, 1)); +proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.getStart = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {?proto.ic_ledger.pb.v1.BlockHeight|undefined} value - * @return {!proto.ic_ledger.pb.v1.SendResponse} returns this -*/ -proto.ic_ledger.pb.v1.SendResponse.prototype.setResultingHeight = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * @param {number} value + * @return {!proto.ic_ledger.pb.v1.GetBlocksRequest} returns this + */ +proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.setStart = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.SendResponse} returns this + * optional uint64 length = 2; + * @return {number} */ -proto.ic_ledger.pb.v1.SendResponse.prototype.clearResultingHeight = function() { - return this.setResultingHeight(undefined); +proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.getLength = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {number} value + * @return {!proto.ic_ledger.pb.v1.GetBlocksRequest} returns this */ -proto.ic_ledger.pb.v1.SendResponse.prototype.hasResultingHeight = function() { - return jspb.Message.getField(this, 1) != null; +proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.setLength = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; @@ -1354,8 +5238,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.NotifyRequest.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.NotifyRequest.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.Refund.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.Refund.toObject(opt_includeInstance, this); }; @@ -1364,17 +5248,14 @@ proto.ic_ledger.pb.v1.NotifyRequest.prototype.toObject = function(opt_includeIns * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.NotifyRequest} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.Refund} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.NotifyRequest.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.Refund.toObject = function(includeInstance, msg) { var f, obj = { - blockHeight: (f = msg.getBlockHeight()) && proto.ic_ledger.pb.v1.BlockHeight.toObject(includeInstance, f), - maxFee: (f = msg.getMaxFee()) && proto.ic_ledger.pb.v1.ICPTs.toObject(includeInstance, f), - fromSubaccount: (f = msg.getFromSubaccount()) && proto.ic_ledger.pb.v1.Subaccount.toObject(includeInstance, f), - toCanister: (f = msg.getToCanister()) && base_types_pb.PrincipalId.toObject(includeInstance, f), - toSubaccount: (f = msg.getToSubaccount()) && proto.ic_ledger.pb.v1.Subaccount.toObject(includeInstance, f) + refund: (f = msg.getRefund()) && proto.ic_ledger.pb.v1.BlockIndex.toObject(includeInstance, f), + error: jspb.Message.getFieldWithDefault(msg, 3, "") }; if (includeInstance) { @@ -1388,53 +5269,37 @@ proto.ic_ledger.pb.v1.NotifyRequest.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.NotifyRequest} + * @return {!proto.ic_ledger.pb.v1.Refund} */ -proto.ic_ledger.pb.v1.NotifyRequest.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.Refund.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.NotifyRequest; - return proto.ic_ledger.pb.v1.NotifyRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.Refund; + return proto.ic_ledger.pb.v1.Refund.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.NotifyRequest} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.Refund} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.NotifyRequest} + * @return {!proto.ic_ledger.pb.v1.Refund} */ -proto.ic_ledger.pb.v1.NotifyRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.Refund.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 1: - var value = new proto.ic_ledger.pb.v1.BlockHeight; - reader.readMessage(value,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader); - msg.setBlockHeight(value); - break; case 2: - var value = new proto.ic_ledger.pb.v1.ICPTs; - reader.readMessage(value,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader); - msg.setMaxFee(value); + var value = new proto.ic_ledger.pb.v1.BlockIndex; + reader.readMessage(value,proto.ic_ledger.pb.v1.BlockIndex.deserializeBinaryFromReader); + msg.setRefund(value); break; case 3: - var value = new proto.ic_ledger.pb.v1.Subaccount; - reader.readMessage(value,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader); - msg.setFromSubaccount(value); - break; - case 4: - var value = new base_types_pb.PrincipalId; - reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); - msg.setToCanister(value); - break; - case 5: - var value = new proto.ic_ledger.pb.v1.Subaccount; - reader.readMessage(value,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader); - msg.setToSubaccount(value); + var value = /** @type {string} */ (reader.readString()); + msg.setError(value); break; default: reader.skipField(); @@ -1449,9 +5314,9 @@ proto.ic_ledger.pb.v1.NotifyRequest.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.NotifyRequest.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.Refund.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.NotifyRequest.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.Refund.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1459,240 +5324,372 @@ proto.ic_ledger.pb.v1.NotifyRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.NotifyRequest} message + * @param {!proto.ic_ledger.pb.v1.Refund} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.NotifyRequest.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.Refund.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getBlockHeight(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter - ); - } - f = message.getMaxFee(); + f = message.getRefund(); if (f != null) { writer.writeMessage( 2, f, - proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter + proto.ic_ledger.pb.v1.BlockIndex.serializeBinaryToWriter ); } - f = message.getFromSubaccount(); - if (f != null) { - writer.writeMessage( + f = message.getError(); + if (f.length > 0) { + writer.writeString( 3, - f, - proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter - ); - } - f = message.getToCanister(); - if (f != null) { - writer.writeMessage( - 4, - f, - base_types_pb.PrincipalId.serializeBinaryToWriter + f ); } - f = message.getToSubaccount(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter - ); +}; + + +/** + * optional BlockIndex refund = 2; + * @return {?proto.ic_ledger.pb.v1.BlockIndex} + */ +proto.ic_ledger.pb.v1.Refund.prototype.getRefund = function() { + return /** @type{?proto.ic_ledger.pb.v1.BlockIndex} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.BlockIndex, 2)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.BlockIndex|undefined} value + * @return {!proto.ic_ledger.pb.v1.Refund} returns this +*/ +proto.ic_ledger.pb.v1.Refund.prototype.setRefund = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.Refund} returns this + */ +proto.ic_ledger.pb.v1.Refund.prototype.clearRefund = function() { + return this.setRefund(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.Refund.prototype.hasRefund = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string error = 3; + * @return {string} + */ +proto.ic_ledger.pb.v1.Refund.prototype.getError = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ic_ledger.pb.v1.Refund} returns this + */ +proto.ic_ledger.pb.v1.Refund.prototype.setError = function(value) { + return jspb.Message.setProto3StringField(this, 3, 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.ic_ledger.pb.v1.ToppedUp.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.ToppedUp.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.ic_ledger.pb.v1.ToppedUp} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.ToppedUp.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; } + return obj; }; +} /** - * optional BlockHeight block_height = 1; - * @return {?proto.ic_ledger.pb.v1.BlockHeight} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_ledger.pb.v1.ToppedUp} */ -proto.ic_ledger.pb.v1.NotifyRequest.prototype.getBlockHeight = function() { - return /** @type{?proto.ic_ledger.pb.v1.BlockHeight} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.BlockHeight, 1)); +proto.ic_ledger.pb.v1.ToppedUp.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.ToppedUp; + return proto.ic_ledger.pb.v1.ToppedUp.deserializeBinaryFromReader(msg, reader); }; /** - * @param {?proto.ic_ledger.pb.v1.BlockHeight|undefined} value - * @return {!proto.ic_ledger.pb.v1.NotifyRequest} returns this -*/ -proto.ic_ledger.pb.v1.NotifyRequest.prototype.setBlockHeight = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.ToppedUp} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.ToppedUp} + */ +proto.ic_ledger.pb.v1.ToppedUp.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.NotifyRequest} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearBlockHeight = function() { - return this.setBlockHeight(undefined); +proto.ic_ledger.pb.v1.ToppedUp.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.ToppedUp.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Returns whether this field is set. - * @return {boolean} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.ToppedUp} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasBlockHeight = function() { - return jspb.Message.getField(this, 1) != null; +proto.ic_ledger.pb.v1.ToppedUp.serializeBinaryToWriter = function(message, writer) { + var f = undefined; }; + /** - * optional ICPTs max_fee = 2; - * @return {?proto.ic_ledger.pb.v1.ICPTs} + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.ic_ledger.pb.v1.NotifyRequest.prototype.getMaxFee = function() { - return /** @type{?proto.ic_ledger.pb.v1.ICPTs} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.ICPTs, 2)); -}; - +proto.ic_ledger.pb.v1.EncodedBlocks.repeatedFields_ = [1]; -/** - * @param {?proto.ic_ledger.pb.v1.ICPTs|undefined} value - * @return {!proto.ic_ledger.pb.v1.NotifyRequest} returns this -*/ -proto.ic_ledger.pb.v1.NotifyRequest.prototype.setMaxFee = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.NotifyRequest} returns this + * 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.ic_ledger.pb.v1.NotifyRequest.prototype.clearMaxFee = function() { - return this.setMaxFee(undefined); +proto.ic_ledger.pb.v1.EncodedBlocks.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.EncodedBlocks.toObject(opt_includeInstance, this); }; /** - * Returns whether this field is set. - * @return {boolean} + * 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.ic_ledger.pb.v1.EncodedBlocks} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasMaxFee = function() { - return jspb.Message.getField(this, 2) != null; +proto.ic_ledger.pb.v1.EncodedBlocks.toObject = function(includeInstance, msg) { + var f, obj = { + blocksList: jspb.Message.toObjectList(msg.getBlocksList(), + proto.ic_ledger.pb.v1.EncodedBlock.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional Subaccount from_subaccount = 3; - * @return {?proto.ic_ledger.pb.v1.Subaccount} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_ledger.pb.v1.EncodedBlocks} */ -proto.ic_ledger.pb.v1.NotifyRequest.prototype.getFromSubaccount = function() { - return /** @type{?proto.ic_ledger.pb.v1.Subaccount} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Subaccount, 3)); +proto.ic_ledger.pb.v1.EncodedBlocks.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.EncodedBlocks; + return proto.ic_ledger.pb.v1.EncodedBlocks.deserializeBinaryFromReader(msg, reader); }; /** - * @param {?proto.ic_ledger.pb.v1.Subaccount|undefined} value - * @return {!proto.ic_ledger.pb.v1.NotifyRequest} returns this -*/ -proto.ic_ledger.pb.v1.NotifyRequest.prototype.setFromSubaccount = function(value) { - return jspb.Message.setWrapperField(this, 3, value); + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.EncodedBlocks} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.EncodedBlocks} + */ +proto.ic_ledger.pb.v1.EncodedBlocks.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_ledger.pb.v1.EncodedBlock; + reader.readMessage(value,proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinaryFromReader); + msg.addBlocks(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.NotifyRequest} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearFromSubaccount = function() { - return this.setFromSubaccount(undefined); +proto.ic_ledger.pb.v1.EncodedBlocks.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.EncodedBlocks.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Returns whether this field is set. - * @return {boolean} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.EncodedBlocks} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasFromSubaccount = function() { - return jspb.Message.getField(this, 3) != null; +proto.ic_ledger.pb.v1.EncodedBlocks.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBlocksList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.ic_ledger.pb.v1.EncodedBlock.serializeBinaryToWriter + ); + } }; /** - * optional ic_base_types.pb.v1.PrincipalId to_canister = 4; - * @return {?proto.ic_base_types.pb.v1.PrincipalId} + * repeated EncodedBlock blocks = 1; + * @return {!Array} */ -proto.ic_ledger.pb.v1.NotifyRequest.prototype.getToCanister = function() { - return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( - jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 4)); +proto.ic_ledger.pb.v1.EncodedBlocks.prototype.getBlocksList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ic_ledger.pb.v1.EncodedBlock, 1)); }; /** - * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value - * @return {!proto.ic_ledger.pb.v1.NotifyRequest} returns this + * @param {!Array} value + * @return {!proto.ic_ledger.pb.v1.EncodedBlocks} returns this */ -proto.ic_ledger.pb.v1.NotifyRequest.prototype.setToCanister = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.NotifyRequest} returns this - */ -proto.ic_ledger.pb.v1.NotifyRequest.prototype.clearToCanister = function() { - return this.setToCanister(undefined); +proto.ic_ledger.pb.v1.EncodedBlocks.prototype.setBlocksList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {!proto.ic_ledger.pb.v1.EncodedBlock=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_ledger.pb.v1.EncodedBlock} */ -proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasToCanister = function() { - return jspb.Message.getField(this, 4) != null; +proto.ic_ledger.pb.v1.EncodedBlocks.prototype.addBlocks = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ic_ledger.pb.v1.EncodedBlock, opt_index); }; /** - * optional Subaccount to_subaccount = 5; - * @return {?proto.ic_ledger.pb.v1.Subaccount} + * Clears the list making it empty but non-null. + * @return {!proto.ic_ledger.pb.v1.EncodedBlocks} returns this */ -proto.ic_ledger.pb.v1.NotifyRequest.prototype.getToSubaccount = function() { - return /** @type{?proto.ic_ledger.pb.v1.Subaccount} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Subaccount, 5)); +proto.ic_ledger.pb.v1.EncodedBlocks.prototype.clearBlocksList = function() { + return this.setBlocksList([]); }; -/** - * @param {?proto.ic_ledger.pb.v1.Subaccount|undefined} value - * @return {!proto.ic_ledger.pb.v1.NotifyRequest} returns this -*/ -proto.ic_ledger.pb.v1.NotifyRequest.prototype.setToSubaccount = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.NotifyRequest} returns this + * 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.ic_ledger.pb.v1.NotifyRequest.prototype.clearToSubaccount = function() { - return this.setToSubaccount(undefined); -}; - +proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_ = [[1,2]]; /** - * Returns whether this field is set. - * @return {boolean} + * @enum {number} */ -proto.ic_ledger.pb.v1.NotifyRequest.prototype.hasToSubaccount = function() { - return jspb.Message.getField(this, 5) != null; +proto.ic_ledger.pb.v1.GetBlocksResponse.GetBlocksContentCase = { + GET_BLOCKS_CONTENT_NOT_SET: 0, + BLOCKS: 1, + ERROR: 2 }; - +/** + * @return {proto.ic_ledger.pb.v1.GetBlocksResponse.GetBlocksContentCase} + */ +proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.getGetBlocksContentCase = function() { + return /** @type {proto.ic_ledger.pb.v1.GetBlocksResponse.GetBlocksContentCase} */(jspb.Message.computeOneofCase(this, proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_[0])); +}; @@ -1709,8 +5706,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.NotifyResponse.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.NotifyResponse.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.GetBlocksResponse.toObject(opt_includeInstance, this); }; @@ -1719,13 +5716,14 @@ proto.ic_ledger.pb.v1.NotifyResponse.prototype.toObject = function(opt_includeIn * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.NotifyResponse} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.GetBlocksResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.NotifyResponse.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.GetBlocksResponse.toObject = function(includeInstance, msg) { var f, obj = { - + blocks: (f = msg.getBlocks()) && proto.ic_ledger.pb.v1.EncodedBlocks.toObject(includeInstance, f), + error: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -1739,29 +5737,38 @@ proto.ic_ledger.pb.v1.NotifyResponse.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.NotifyResponse} + * @return {!proto.ic_ledger.pb.v1.GetBlocksResponse} */ -proto.ic_ledger.pb.v1.NotifyResponse.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.GetBlocksResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.NotifyResponse; - return proto.ic_ledger.pb.v1.NotifyResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.GetBlocksResponse; + return proto.ic_ledger.pb.v1.GetBlocksResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.NotifyResponse} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.GetBlocksResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.NotifyResponse} + * @return {!proto.ic_ledger.pb.v1.GetBlocksResponse} */ -proto.ic_ledger.pb.v1.NotifyResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.GetBlocksResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { + case 1: + var value = new proto.ic_ledger.pb.v1.EncodedBlocks; + reader.readMessage(value,proto.ic_ledger.pb.v1.EncodedBlocks.deserializeBinaryFromReader); + msg.setBlocks(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setError(value); + break; default: reader.skipField(); break; @@ -1775,9 +5782,9 @@ proto.ic_ledger.pb.v1.NotifyResponse.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.NotifyResponse.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.NotifyResponse.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.GetBlocksResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1785,12 +5792,100 @@ proto.ic_ledger.pb.v1.NotifyResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.NotifyResponse} message + * @param {!proto.ic_ledger.pb.v1.GetBlocksResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.NotifyResponse.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.GetBlocksResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; + f = message.getBlocks(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_ledger.pb.v1.EncodedBlocks.serializeBinaryToWriter + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional EncodedBlocks blocks = 1; + * @return {?proto.ic_ledger.pb.v1.EncodedBlocks} + */ +proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.getBlocks = function() { + return /** @type{?proto.ic_ledger.pb.v1.EncodedBlocks} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.EncodedBlocks, 1)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.EncodedBlocks|undefined} value + * @return {!proto.ic_ledger.pb.v1.GetBlocksResponse} returns this +*/ +proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.setBlocks = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.GetBlocksResponse} returns this + */ +proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.clearBlocks = function() { + return this.setBlocks(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.hasBlocks = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string error = 2; + * @return {string} + */ +proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.getError = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.ic_ledger.pb.v1.GetBlocksResponse} returns this + */ +proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.setError = function(value) { + return jspb.Message.setOneofField(this, 2, proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.ic_ledger.pb.v1.GetBlocksResponse} returns this + */ +proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.clearError = function() { + return jspb.Message.setOneofField(this, 2, proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.hasError = function() { + return jspb.Message.getField(this, 2) != null; }; @@ -1810,8 +5905,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.TransactionNotificationRequest.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.IterBlocksRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.IterBlocksRequest.toObject(opt_includeInstance, this); }; @@ -1820,19 +5915,14 @@ proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.toObject = functi * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.IterBlocksRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.IterBlocksRequest.toObject = function(includeInstance, msg) { var f, obj = { - from: (f = msg.getFrom()) && base_types_pb.PrincipalId.toObject(includeInstance, f), - fromSubaccount: (f = msg.getFromSubaccount()) && proto.ic_ledger.pb.v1.Subaccount.toObject(includeInstance, f), - to: (f = msg.getTo()) && base_types_pb.PrincipalId.toObject(includeInstance, f), - toSubaccount: (f = msg.getToSubaccount()) && proto.ic_ledger.pb.v1.Subaccount.toObject(includeInstance, f), - blockHeight: (f = msg.getBlockHeight()) && proto.ic_ledger.pb.v1.BlockHeight.toObject(includeInstance, f), - amount: (f = msg.getAmount()) && proto.ic_ledger.pb.v1.ICPTs.toObject(includeInstance, f), - memo: (f = msg.getMemo()) && proto.ic_ledger.pb.v1.Memo.toObject(includeInstance, f) + start: jspb.Message.getFieldWithDefault(msg, 1, 0), + length: jspb.Message.getFieldWithDefault(msg, 2, 0) }; if (includeInstance) { @@ -1846,23 +5936,23 @@ proto.ic_ledger.pb.v1.TransactionNotificationRequest.toObject = function(include /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} + * @return {!proto.ic_ledger.pb.v1.IterBlocksRequest} */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.IterBlocksRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.TransactionNotificationRequest; - return proto.ic_ledger.pb.v1.TransactionNotificationRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.IterBlocksRequest; + return proto.ic_ledger.pb.v1.IterBlocksRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.IterBlocksRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} + * @return {!proto.ic_ledger.pb.v1.IterBlocksRequest} */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.IterBlocksRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1870,39 +5960,12 @@ proto.ic_ledger.pb.v1.TransactionNotificationRequest.deserializeBinaryFromReader var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new base_types_pb.PrincipalId; - reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); - msg.setFrom(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setStart(value); break; case 2: - var value = new proto.ic_ledger.pb.v1.Subaccount; - reader.readMessage(value,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader); - msg.setFromSubaccount(value); - break; - case 3: - var value = new base_types_pb.PrincipalId; - reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); - msg.setTo(value); - break; - case 4: - var value = new proto.ic_ledger.pb.v1.Subaccount; - reader.readMessage(value,proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader); - msg.setToSubaccount(value); - break; - case 5: - var value = new proto.ic_ledger.pb.v1.BlockHeight; - reader.readMessage(value,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader); - msg.setBlockHeight(value); - break; - case 6: - var value = new proto.ic_ledger.pb.v1.ICPTs; - reader.readMessage(value,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader); - msg.setAmount(value); - break; - case 7: - var value = new proto.ic_ledger.pb.v1.Memo; - reader.readMessage(value,proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader); - msg.setMemo(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setLength(value); break; default: reader.skipField(); @@ -1917,9 +5980,9 @@ proto.ic_ledger.pb.v1.TransactionNotificationRequest.deserializeBinaryFromReader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.IterBlocksRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.TransactionNotificationRequest.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.IterBlocksRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1927,318 +5990,424 @@ proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.serializeBinary = /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} message + * @param {!proto.ic_ledger.pb.v1.IterBlocksRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.IterBlocksRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getFrom(); - if (f != null) { - writer.writeMessage( + f = message.getStart(); + if (f !== 0) { + writer.writeUint64( 1, - f, - base_types_pb.PrincipalId.serializeBinaryToWriter + f ); } - f = message.getFromSubaccount(); - if (f != null) { - writer.writeMessage( + f = message.getLength(); + if (f !== 0) { + writer.writeUint64( 2, - f, - proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter - ); - } - f = message.getTo(); - if (f != null) { - writer.writeMessage( - 3, - f, - base_types_pb.PrincipalId.serializeBinaryToWriter - ); - } - f = message.getToSubaccount(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter - ); - } - f = message.getBlockHeight(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter - ); - } - f = message.getAmount(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter - ); - } - f = message.getMemo(); - if (f != null) { - writer.writeMessage( - 7, - f, - proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter + f ); } }; /** - * optional ic_base_types.pb.v1.PrincipalId from = 1; - * @return {?proto.ic_base_types.pb.v1.PrincipalId} + * optional uint64 start = 1; + * @return {number} */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getFrom = function() { - return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( - jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 1)); +proto.ic_ledger.pb.v1.IterBlocksRequest.prototype.getStart = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value - * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this -*/ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setFrom = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + * @param {number} value + * @return {!proto.ic_ledger.pb.v1.IterBlocksRequest} returns this + */ +proto.ic_ledger.pb.v1.IterBlocksRequest.prototype.setStart = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional uint64 length = 2; + * @return {number} + */ +proto.ic_ledger.pb.v1.IterBlocksRequest.prototype.getLength = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this + * @param {number} value + * @return {!proto.ic_ledger.pb.v1.IterBlocksRequest} returns this */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearFrom = function() { - return this.setFrom(undefined); +proto.ic_ledger.pb.v1.IterBlocksRequest.prototype.setLength = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; + /** - * Returns whether this field is set. - * @return {boolean} + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasFrom = function() { - return jspb.Message.getField(this, 1) != null; -}; +proto.ic_ledger.pb.v1.IterBlocksResponse.repeatedFields_ = [1]; + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional Subaccount from_subaccount = 2; - * @return {?proto.ic_ledger.pb.v1.Subaccount} + * 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.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getFromSubaccount = function() { - return /** @type{?proto.ic_ledger.pb.v1.Subaccount} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Subaccount, 2)); +proto.ic_ledger.pb.v1.IterBlocksResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.IterBlocksResponse.toObject(opt_includeInstance, this); }; /** - * @param {?proto.ic_ledger.pb.v1.Subaccount|undefined} value - * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this -*/ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setFromSubaccount = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * 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.ic_ledger.pb.v1.IterBlocksResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.IterBlocksResponse.toObject = function(includeInstance, msg) { + var f, obj = { + blocksList: jspb.Message.toObjectList(msg.getBlocksList(), + proto.ic_ledger.pb.v1.EncodedBlock.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_ledger.pb.v1.IterBlocksResponse} */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearFromSubaccount = function() { - return this.setFromSubaccount(undefined); +proto.ic_ledger.pb.v1.IterBlocksResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.IterBlocksResponse; + return proto.ic_ledger.pb.v1.IterBlocksResponse.deserializeBinaryFromReader(msg, reader); }; /** - * Returns whether this field is set. - * @return {boolean} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.IterBlocksResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.IterBlocksResponse} */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasFromSubaccount = function() { - return jspb.Message.getField(this, 2) != null; +proto.ic_ledger.pb.v1.IterBlocksResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_ledger.pb.v1.EncodedBlock; + reader.readMessage(value,proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinaryFromReader); + msg.addBlocks(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional ic_base_types.pb.v1.PrincipalId to = 3; - * @return {?proto.ic_base_types.pb.v1.PrincipalId} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getTo = function() { - return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( - jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 3)); +proto.ic_ledger.pb.v1.IterBlocksResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.IterBlocksResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value - * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this -*/ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setTo = function(value) { - return jspb.Message.setWrapperField(this, 3, value); + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.IterBlocksResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.IterBlocksResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getBlocksList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.ic_ledger.pb.v1.EncodedBlock.serializeBinaryToWriter + ); + } }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this + * repeated EncodedBlock blocks = 1; + * @return {!Array} */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearTo = function() { - return this.setTo(undefined); +proto.ic_ledger.pb.v1.IterBlocksResponse.prototype.getBlocksList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ic_ledger.pb.v1.EncodedBlock, 1)); }; /** - * Returns whether this field is set. - * @return {boolean} - */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasTo = function() { - return jspb.Message.getField(this, 3) != null; + * @param {!Array} value + * @return {!proto.ic_ledger.pb.v1.IterBlocksResponse} returns this +*/ +proto.ic_ledger.pb.v1.IterBlocksResponse.prototype.setBlocksList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * optional Subaccount to_subaccount = 4; - * @return {?proto.ic_ledger.pb.v1.Subaccount} + * @param {!proto.ic_ledger.pb.v1.EncodedBlock=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_ledger.pb.v1.EncodedBlock} */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getToSubaccount = function() { - return /** @type{?proto.ic_ledger.pb.v1.Subaccount} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Subaccount, 4)); +proto.ic_ledger.pb.v1.IterBlocksResponse.prototype.addBlocks = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ic_ledger.pb.v1.EncodedBlock, opt_index); }; /** - * @param {?proto.ic_ledger.pb.v1.Subaccount|undefined} value - * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this -*/ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setToSubaccount = function(value) { - return jspb.Message.setWrapperField(this, 4, value); + * Clears the list making it empty but non-null. + * @return {!proto.ic_ledger.pb.v1.IterBlocksResponse} returns this + */ +proto.ic_ledger.pb.v1.IterBlocksResponse.prototype.clearBlocksList = function() { + return this.setBlocksList([]); }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this + * 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.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearToSubaccount = function() { - return this.setToSubaccount(undefined); +proto.ic_ledger.pb.v1.ArchiveIndexEntry.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.ArchiveIndexEntry.toObject(opt_includeInstance, this); }; /** - * Returns whether this field is set. - * @return {boolean} + * 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.ic_ledger.pb.v1.ArchiveIndexEntry} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasToSubaccount = function() { - return jspb.Message.getField(this, 4) != null; +proto.ic_ledger.pb.v1.ArchiveIndexEntry.toObject = function(includeInstance, msg) { + var f, obj = { + heightFrom: jspb.Message.getFieldWithDefault(msg, 1, 0), + heightTo: jspb.Message.getFieldWithDefault(msg, 2, 0), + canisterId: (f = msg.getCanisterId()) && base_types_pb.PrincipalId.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * optional BlockHeight block_height = 5; - * @return {?proto.ic_ledger.pb.v1.BlockHeight} + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_ledger.pb.v1.ArchiveIndexEntry} */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getBlockHeight = function() { - return /** @type{?proto.ic_ledger.pb.v1.BlockHeight} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.BlockHeight, 5)); +proto.ic_ledger.pb.v1.ArchiveIndexEntry.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.ArchiveIndexEntry; + return proto.ic_ledger.pb.v1.ArchiveIndexEntry.deserializeBinaryFromReader(msg, reader); }; /** - * @param {?proto.ic_ledger.pb.v1.BlockHeight|undefined} value - * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this -*/ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setBlockHeight = function(value) { - return jspb.Message.setWrapperField(this, 5, value); + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.ArchiveIndexEntry} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.ArchiveIndexEntry} + */ +proto.ic_ledger.pb.v1.ArchiveIndexEntry.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setHeightFrom(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setHeightTo(value); + break; + case 3: + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.setCanisterId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearBlockHeight = function() { - return this.setBlockHeight(undefined); +proto.ic_ledger.pb.v1.ArchiveIndexEntry.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.ArchiveIndexEntry.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * Returns whether this field is set. - * @return {boolean} + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.ArchiveIndexEntry} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasBlockHeight = function() { - return jspb.Message.getField(this, 5) != null; +proto.ic_ledger.pb.v1.ArchiveIndexEntry.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHeightFrom(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getHeightTo(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } + f = message.getCanisterId(); + if (f != null) { + writer.writeMessage( + 3, + f, + base_types_pb.PrincipalId.serializeBinaryToWriter + ); + } }; /** - * optional ICPTs amount = 6; - * @return {?proto.ic_ledger.pb.v1.ICPTs} + * optional uint64 height_from = 1; + * @return {number} */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getAmount = function() { - return /** @type{?proto.ic_ledger.pb.v1.ICPTs} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.ICPTs, 6)); +proto.ic_ledger.pb.v1.ArchiveIndexEntry.prototype.getHeightFrom = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {?proto.ic_ledger.pb.v1.ICPTs|undefined} value - * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this -*/ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setAmount = function(value) { - return jspb.Message.setWrapperField(this, 6, value); + * @param {number} value + * @return {!proto.ic_ledger.pb.v1.ArchiveIndexEntry} returns this + */ +proto.ic_ledger.pb.v1.ArchiveIndexEntry.prototype.setHeightFrom = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this - */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearAmount = function() { - return this.setAmount(undefined); + * optional uint64 height_to = 2; + * @return {number} + */ +proto.ic_ledger.pb.v1.ArchiveIndexEntry.prototype.getHeightTo = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {number} value + * @return {!proto.ic_ledger.pb.v1.ArchiveIndexEntry} returns this */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasAmount = function() { - return jspb.Message.getField(this, 6) != null; +proto.ic_ledger.pb.v1.ArchiveIndexEntry.prototype.setHeightTo = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; /** - * optional Memo memo = 7; - * @return {?proto.ic_ledger.pb.v1.Memo} + * optional ic_base_types.pb.v1.PrincipalId canister_id = 3; + * @return {?proto.ic_base_types.pb.v1.PrincipalId} */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.getMemo = function() { - return /** @type{?proto.ic_ledger.pb.v1.Memo} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Memo, 7)); +proto.ic_ledger.pb.v1.ArchiveIndexEntry.prototype.getCanisterId = function() { + return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( + jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 3)); }; /** - * @param {?proto.ic_ledger.pb.v1.Memo|undefined} value - * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this + * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value + * @return {!proto.ic_ledger.pb.v1.ArchiveIndexEntry} returns this */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.setMemo = function(value) { - return jspb.Message.setWrapperField(this, 7, value); +proto.ic_ledger.pb.v1.ArchiveIndexEntry.prototype.setCanisterId = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.TransactionNotificationRequest} returns this + * @return {!proto.ic_ledger.pb.v1.ArchiveIndexEntry} returns this */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearMemo = function() { - return this.setMemo(undefined); +proto.ic_ledger.pb.v1.ArchiveIndexEntry.prototype.clearCanisterId = function() { + return this.setCanisterId(undefined); }; @@ -2246,12 +6415,19 @@ proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.clearMemo = funct * Returns whether this field is set. * @return {boolean} */ -proto.ic_ledger.pb.v1.TransactionNotificationRequest.prototype.hasMemo = function() { - return jspb.Message.getField(this, 7) != null; +proto.ic_ledger.pb.v1.ArchiveIndexEntry.prototype.hasCanisterId = function() { + return jspb.Message.getField(this, 3) != null; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_ledger.pb.v1.ArchiveIndexResponse.repeatedFields_ = [1]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -2267,8 +6443,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.TransactionNotificationResponse.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.ArchiveIndexResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.ArchiveIndexResponse.toObject(opt_includeInstance, this); }; @@ -2277,13 +6453,14 @@ proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.toObject = funct * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.TransactionNotificationResponse} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.ArchiveIndexResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.TransactionNotificationResponse.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.ArchiveIndexResponse.toObject = function(includeInstance, msg) { var f, obj = { - response: msg.getResponse_asB64() + entriesList: jspb.Message.toObjectList(msg.getEntriesList(), + proto.ic_ledger.pb.v1.ArchiveIndexEntry.toObject, includeInstance) }; if (includeInstance) { @@ -2297,23 +6474,23 @@ proto.ic_ledger.pb.v1.TransactionNotificationResponse.toObject = function(includ /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.TransactionNotificationResponse} + * @return {!proto.ic_ledger.pb.v1.ArchiveIndexResponse} */ -proto.ic_ledger.pb.v1.TransactionNotificationResponse.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.ArchiveIndexResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.TransactionNotificationResponse; - return proto.ic_ledger.pb.v1.TransactionNotificationResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.ArchiveIndexResponse; + return proto.ic_ledger.pb.v1.ArchiveIndexResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.TransactionNotificationResponse} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.ArchiveIndexResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.TransactionNotificationResponse} + * @return {!proto.ic_ledger.pb.v1.ArchiveIndexResponse} */ -proto.ic_ledger.pb.v1.TransactionNotificationResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.ArchiveIndexResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2321,8 +6498,9 @@ proto.ic_ledger.pb.v1.TransactionNotificationResponse.deserializeBinaryFromReade var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setResponse(value); + var value = new proto.ic_ledger.pb.v1.ArchiveIndexEntry; + reader.readMessage(value,proto.ic_ledger.pb.v1.ArchiveIndexEntry.deserializeBinaryFromReader); + msg.addEntries(value); break; default: reader.skipField(); @@ -2337,9 +6515,9 @@ proto.ic_ledger.pb.v1.TransactionNotificationResponse.deserializeBinaryFromReade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.ArchiveIndexResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.TransactionNotificationResponse.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.ArchiveIndexResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2347,92 +6525,62 @@ proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.serializeBinary /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.TransactionNotificationResponse} message + * @param {!proto.ic_ledger.pb.v1.ArchiveIndexResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.TransactionNotificationResponse.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.ArchiveIndexResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getResponse_asU8(); + f = message.getEntriesList(); if (f.length > 0) { - writer.writeBytes( + writer.writeRepeatedMessage( 1, - f + f, + proto.ic_ledger.pb.v1.ArchiveIndexEntry.serializeBinaryToWriter ); } }; /** - * optional bytes response = 1; - * @return {!(string|Uint8Array)} + * repeated ArchiveIndexEntry entries = 1; + * @return {!Array} */ -proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.getResponse = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.ic_ledger.pb.v1.ArchiveIndexResponse.prototype.getEntriesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ic_ledger.pb.v1.ArchiveIndexEntry, 1)); }; /** - * optional bytes response = 1; - * This is a type-conversion wrapper around `getResponse()` - * @return {string} - */ -proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.getResponse_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getResponse())); + * @param {!Array} value + * @return {!proto.ic_ledger.pb.v1.ArchiveIndexResponse} returns this +*/ +proto.ic_ledger.pb.v1.ArchiveIndexResponse.prototype.setEntriesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * optional bytes response = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getResponse()` - * @return {!Uint8Array} + * @param {!proto.ic_ledger.pb.v1.ArchiveIndexEntry=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_ledger.pb.v1.ArchiveIndexEntry} */ -proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.getResponse_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getResponse())); +proto.ic_ledger.pb.v1.ArchiveIndexResponse.prototype.addEntries = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ic_ledger.pb.v1.ArchiveIndexEntry, opt_index); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.ic_ledger.pb.v1.TransactionNotificationResponse} returns this + * Clears the list making it empty but non-null. + * @return {!proto.ic_ledger.pb.v1.ArchiveIndexResponse} returns this */ -proto.ic_ledger.pb.v1.TransactionNotificationResponse.prototype.setResponse = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); +proto.ic_ledger.pb.v1.ArchiveIndexResponse.prototype.clearEntriesList = function() { + return this.setEntriesList([]); }; -/** - * 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.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_ = [[1,2,3]]; - -/** - * @enum {number} - */ -proto.ic_ledger.pb.v1.CyclesNotificationResponse.ResponseCase = { - RESPONSE_NOT_SET: 0, - CREATED_CANISTER_ID: 1, - REFUND: 2, - TOPPED_UP: 3 -}; - -/** - * @return {proto.ic_ledger.pb.v1.CyclesNotificationResponse.ResponseCase} - */ -proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.getResponseCase = function() { - return /** @type {proto.ic_ledger.pb.v1.CyclesNotificationResponse.ResponseCase} */(jspb.Message.computeOneofCase(this, proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_[0])); -}; - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -2448,8 +6596,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.CyclesNotificationResponse.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.ArchiveInit.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.ArchiveInit.toObject(opt_includeInstance, this); }; @@ -2458,15 +6606,14 @@ proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.toObject = function(o * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.CyclesNotificationResponse} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.ArchiveInit} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.CyclesNotificationResponse.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.ArchiveInit.toObject = function(includeInstance, msg) { var f, obj = { - createdCanisterId: (f = msg.getCreatedCanisterId()) && base_types_pb.PrincipalId.toObject(includeInstance, f), - refund: (f = msg.getRefund()) && proto.ic_ledger.pb.v1.Refund.toObject(includeInstance, f), - toppedUp: (f = msg.getToppedUp()) && proto.ic_ledger.pb.v1.ToppedUp.toObject(includeInstance, f) + nodeMaxMemorySizeBytes: jspb.Message.getFieldWithDefault(msg, 1, 0), + maxMessageSizeBytes: jspb.Message.getFieldWithDefault(msg, 2, 0) }; if (includeInstance) { @@ -2480,23 +6627,23 @@ proto.ic_ledger.pb.v1.CyclesNotificationResponse.toObject = function(includeInst /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.CyclesNotificationResponse} + * @return {!proto.ic_ledger.pb.v1.ArchiveInit} */ -proto.ic_ledger.pb.v1.CyclesNotificationResponse.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.ArchiveInit.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.CyclesNotificationResponse; - return proto.ic_ledger.pb.v1.CyclesNotificationResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.ArchiveInit; + return proto.ic_ledger.pb.v1.ArchiveInit.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.CyclesNotificationResponse} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.ArchiveInit} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.CyclesNotificationResponse} + * @return {!proto.ic_ledger.pb.v1.ArchiveInit} */ -proto.ic_ledger.pb.v1.CyclesNotificationResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.ArchiveInit.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2504,19 +6651,12 @@ proto.ic_ledger.pb.v1.CyclesNotificationResponse.deserializeBinaryFromReader = f var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new base_types_pb.PrincipalId; - reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); - msg.setCreatedCanisterId(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setNodeMaxMemorySizeBytes(value); break; case 2: - var value = new proto.ic_ledger.pb.v1.Refund; - reader.readMessage(value,proto.ic_ledger.pb.v1.Refund.deserializeBinaryFromReader); - msg.setRefund(value); - break; - case 3: - var value = new proto.ic_ledger.pb.v1.ToppedUp; - reader.readMessage(value,proto.ic_ledger.pb.v1.ToppedUp.deserializeBinaryFromReader); - msg.setToppedUp(value); + var value = /** @type {number} */ (reader.readUint32()); + msg.setMaxMessageSizeBytes(value); break; default: reader.skipField(); @@ -2531,9 +6671,9 @@ proto.ic_ledger.pb.v1.CyclesNotificationResponse.deserializeBinaryFromReader = f * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.ArchiveInit.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.CyclesNotificationResponse.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.ArchiveInit.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2541,150 +6681,72 @@ proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.serializeBinary = fun /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.CyclesNotificationResponse} message + * @param {!proto.ic_ledger.pb.v1.ArchiveInit} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.CyclesNotificationResponse.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.ArchiveInit.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getCreatedCanisterId(); - if (f != null) { - writer.writeMessage( + f = message.getNodeMaxMemorySizeBytes(); + if (f !== 0) { + writer.writeUint32( 1, - f, - base_types_pb.PrincipalId.serializeBinaryToWriter + f ); } - f = message.getRefund(); - if (f != null) { - writer.writeMessage( + f = message.getMaxMessageSizeBytes(); + if (f !== 0) { + writer.writeUint32( 2, - f, - proto.ic_ledger.pb.v1.Refund.serializeBinaryToWriter - ); - } - f = message.getToppedUp(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.ic_ledger.pb.v1.ToppedUp.serializeBinaryToWriter + f ); } }; /** - * optional ic_base_types.pb.v1.PrincipalId created_canister_id = 1; - * @return {?proto.ic_base_types.pb.v1.PrincipalId} - */ -proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.getCreatedCanisterId = function() { - return /** @type{?proto.ic_base_types.pb.v1.PrincipalId} */ ( - jspb.Message.getWrapperField(this, base_types_pb.PrincipalId, 1)); -}; - - -/** - * @param {?proto.ic_base_types.pb.v1.PrincipalId|undefined} value - * @return {!proto.ic_ledger.pb.v1.CyclesNotificationResponse} returns this -*/ -proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.setCreatedCanisterId = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.CyclesNotificationResponse} returns this - */ -proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.clearCreatedCanisterId = function() { - return this.setCreatedCanisterId(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.hasCreatedCanisterId = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Refund refund = 2; - * @return {?proto.ic_ledger.pb.v1.Refund} + * optional uint32 node_max_memory_size_bytes = 1; + * @return {number} */ -proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.getRefund = function() { - return /** @type{?proto.ic_ledger.pb.v1.Refund} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Refund, 2)); -}; - - -/** - * @param {?proto.ic_ledger.pb.v1.Refund|undefined} value - * @return {!proto.ic_ledger.pb.v1.CyclesNotificationResponse} returns this -*/ -proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.setRefund = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_[0], value); +proto.ic_ledger.pb.v1.ArchiveInit.prototype.getNodeMaxMemorySizeBytes = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.CyclesNotificationResponse} returns this + * @param {number} value + * @return {!proto.ic_ledger.pb.v1.ArchiveInit} returns this */ -proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.clearRefund = function() { - return this.setRefund(undefined); +proto.ic_ledger.pb.v1.ArchiveInit.prototype.setNodeMaxMemorySizeBytes = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; /** - * Returns whether this field is set. - * @return {boolean} + * optional uint32 max_message_size_bytes = 2; + * @return {number} */ -proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.hasRefund = function() { - return jspb.Message.getField(this, 2) != null; +proto.ic_ledger.pb.v1.ArchiveInit.prototype.getMaxMessageSizeBytes = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** - * optional ToppedUp topped_up = 3; - * @return {?proto.ic_ledger.pb.v1.ToppedUp} + * @param {number} value + * @return {!proto.ic_ledger.pb.v1.ArchiveInit} returns this */ -proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.getToppedUp = function() { - return /** @type{?proto.ic_ledger.pb.v1.ToppedUp} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.ToppedUp, 3)); -}; - - -/** - * @param {?proto.ic_ledger.pb.v1.ToppedUp|undefined} value - * @return {!proto.ic_ledger.pb.v1.CyclesNotificationResponse} returns this -*/ -proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.setToppedUp = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.ic_ledger.pb.v1.CyclesNotificationResponse.oneofGroups_[0], value); +proto.ic_ledger.pb.v1.ArchiveInit.prototype.setMaxMessageSizeBytes = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.CyclesNotificationResponse} returns this - */ -proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.clearToppedUp = function() { - return this.setToppedUp(undefined); -}; - /** - * Returns whether this field is set. - * @return {boolean} + * List of repeated fields within this message type. + * @private {!Array} + * @const */ -proto.ic_ledger.pb.v1.CyclesNotificationResponse.prototype.hasToppedUp = function() { - return jspb.Message.getField(this, 3) != null; -}; - - +proto.ic_ledger.pb.v1.ArchiveAddRequest.repeatedFields_ = [1]; @@ -2701,8 +6763,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.AccountBalanceRequest.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.ArchiveAddRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.ArchiveAddRequest.toObject(opt_includeInstance, this); }; @@ -2711,13 +6773,14 @@ proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.toObject = function(opt_in * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.AccountBalanceRequest} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.ArchiveAddRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.AccountBalanceRequest.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.ArchiveAddRequest.toObject = function(includeInstance, msg) { var f, obj = { - account: (f = msg.getAccount()) && proto.ic_ledger.pb.v1.AccountIdentifier.toObject(includeInstance, f) + blocksList: jspb.Message.toObjectList(msg.getBlocksList(), + proto.ic_ledger.pb.v1.Block.toObject, includeInstance) }; if (includeInstance) { @@ -2731,23 +6794,23 @@ proto.ic_ledger.pb.v1.AccountBalanceRequest.toObject = function(includeInstance, /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.AccountBalanceRequest} + * @return {!proto.ic_ledger.pb.v1.ArchiveAddRequest} */ -proto.ic_ledger.pb.v1.AccountBalanceRequest.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.ArchiveAddRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.AccountBalanceRequest; - return proto.ic_ledger.pb.v1.AccountBalanceRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.ArchiveAddRequest; + return proto.ic_ledger.pb.v1.ArchiveAddRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.AccountBalanceRequest} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.ArchiveAddRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.AccountBalanceRequest} + * @return {!proto.ic_ledger.pb.v1.ArchiveAddRequest} */ -proto.ic_ledger.pb.v1.AccountBalanceRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.ArchiveAddRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -2755,9 +6818,9 @@ proto.ic_ledger.pb.v1.AccountBalanceRequest.deserializeBinaryFromReader = functi var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.ic_ledger.pb.v1.AccountIdentifier; - reader.readMessage(value,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader); - msg.setAccount(value); + var value = new proto.ic_ledger.pb.v1.Block; + reader.readMessage(value,proto.ic_ledger.pb.v1.Block.deserializeBinaryFromReader); + msg.addBlocks(value); break; default: reader.skipField(); @@ -2772,9 +6835,9 @@ proto.ic_ledger.pb.v1.AccountBalanceRequest.deserializeBinaryFromReader = functi * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.ArchiveAddRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.AccountBalanceRequest.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.ArchiveAddRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2782,57 +6845,58 @@ proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.serializeBinary = function /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.AccountBalanceRequest} message + * @param {!proto.ic_ledger.pb.v1.ArchiveAddRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.AccountBalanceRequest.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.ArchiveAddRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getAccount(); - if (f != null) { - writer.writeMessage( + f = message.getBlocksList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 1, f, - proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter + proto.ic_ledger.pb.v1.Block.serializeBinaryToWriter ); } }; /** - * optional AccountIdentifier account = 1; - * @return {?proto.ic_ledger.pb.v1.AccountIdentifier} + * repeated Block blocks = 1; + * @return {!Array} */ -proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.getAccount = function() { - return /** @type{?proto.ic_ledger.pb.v1.AccountIdentifier} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.AccountIdentifier, 1)); +proto.ic_ledger.pb.v1.ArchiveAddRequest.prototype.getBlocksList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.ic_ledger.pb.v1.Block, 1)); }; /** - * @param {?proto.ic_ledger.pb.v1.AccountIdentifier|undefined} value - * @return {!proto.ic_ledger.pb.v1.AccountBalanceRequest} returns this + * @param {!Array} value + * @return {!proto.ic_ledger.pb.v1.ArchiveAddRequest} returns this */ -proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.setAccount = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.ic_ledger.pb.v1.ArchiveAddRequest.prototype.setBlocksList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.AccountBalanceRequest} returns this + * @param {!proto.ic_ledger.pb.v1.Block=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_ledger.pb.v1.Block} */ -proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.clearAccount = function() { - return this.setAccount(undefined); +proto.ic_ledger.pb.v1.ArchiveAddRequest.prototype.addBlocks = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ic_ledger.pb.v1.Block, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.ic_ledger.pb.v1.ArchiveAddRequest} returns this */ -proto.ic_ledger.pb.v1.AccountBalanceRequest.prototype.hasAccount = function() { - return jspb.Message.getField(this, 1) != null; +proto.ic_ledger.pb.v1.ArchiveAddRequest.prototype.clearBlocksList = function() { + return this.setBlocksList([]); }; @@ -2852,8 +6916,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.AccountBalanceResponse.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.ArchiveAddResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.ArchiveAddResponse.toObject(opt_includeInstance, this); }; @@ -2862,13 +6926,13 @@ proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.toObject = function(opt_i * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.AccountBalanceResponse} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.ArchiveAddResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.AccountBalanceResponse.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.ArchiveAddResponse.toObject = function(includeInstance, msg) { var f, obj = { - balance: (f = msg.getBalance()) && proto.ic_ledger.pb.v1.ICPTs.toObject(includeInstance, f) + }; if (includeInstance) { @@ -2882,34 +6946,29 @@ proto.ic_ledger.pb.v1.AccountBalanceResponse.toObject = function(includeInstance /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.AccountBalanceResponse} + * @return {!proto.ic_ledger.pb.v1.ArchiveAddResponse} */ -proto.ic_ledger.pb.v1.AccountBalanceResponse.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.ArchiveAddResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.AccountBalanceResponse; - return proto.ic_ledger.pb.v1.AccountBalanceResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.ArchiveAddResponse; + return proto.ic_ledger.pb.v1.ArchiveAddResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.AccountBalanceResponse} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.ArchiveAddResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.AccountBalanceResponse} + * @return {!proto.ic_ledger.pb.v1.ArchiveAddResponse} */ -proto.ic_ledger.pb.v1.AccountBalanceResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.ArchiveAddResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 1: - var value = new proto.ic_ledger.pb.v1.ICPTs; - reader.readMessage(value,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader); - msg.setBalance(value); - break; default: reader.skipField(); break; @@ -2923,9 +6982,9 @@ proto.ic_ledger.pb.v1.AccountBalanceResponse.deserializeBinaryFromReader = funct * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.ArchiveAddResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.AccountBalanceResponse.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.ArchiveAddResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -2933,57 +6992,12 @@ proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.serializeBinary = functio /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.AccountBalanceResponse} message + * @param {!proto.ic_ledger.pb.v1.ArchiveAddResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.AccountBalanceResponse.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.ArchiveAddResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getBalance(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ICPTs balance = 1; - * @return {?proto.ic_ledger.pb.v1.ICPTs} - */ -proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.getBalance = function() { - return /** @type{?proto.ic_ledger.pb.v1.ICPTs} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.ICPTs, 1)); -}; - - -/** - * @param {?proto.ic_ledger.pb.v1.ICPTs|undefined} value - * @return {!proto.ic_ledger.pb.v1.AccountBalanceResponse} returns this -*/ -proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.setBalance = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.AccountBalanceResponse} returns this - */ -proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.clearBalance = function() { - return this.setBalance(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.ic_ledger.pb.v1.AccountBalanceResponse.prototype.hasBalance = function() { - return jspb.Message.getField(this, 1) != null; }; @@ -3003,8 +7017,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.TipOfChainRequest.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.TipOfChainRequest.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.GetNodesRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.GetNodesRequest.toObject(opt_includeInstance, this); }; @@ -3013,11 +7027,11 @@ proto.ic_ledger.pb.v1.TipOfChainRequest.prototype.toObject = function(opt_includ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.TipOfChainRequest} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.GetNodesRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.TipOfChainRequest.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.GetNodesRequest.toObject = function(includeInstance, msg) { var f, obj = { }; @@ -3033,23 +7047,23 @@ proto.ic_ledger.pb.v1.TipOfChainRequest.toObject = function(includeInstance, msg /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.TipOfChainRequest} + * @return {!proto.ic_ledger.pb.v1.GetNodesRequest} */ -proto.ic_ledger.pb.v1.TipOfChainRequest.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.GetNodesRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.TipOfChainRequest; - return proto.ic_ledger.pb.v1.TipOfChainRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.GetNodesRequest; + return proto.ic_ledger.pb.v1.GetNodesRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.TipOfChainRequest} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.GetNodesRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.TipOfChainRequest} + * @return {!proto.ic_ledger.pb.v1.GetNodesRequest} */ -proto.ic_ledger.pb.v1.TipOfChainRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.GetNodesRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3069,9 +7083,9 @@ proto.ic_ledger.pb.v1.TipOfChainRequest.deserializeBinaryFromReader = function(m * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.TipOfChainRequest.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.GetNodesRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.TipOfChainRequest.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.GetNodesRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3079,16 +7093,23 @@ proto.ic_ledger.pb.v1.TipOfChainRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.TipOfChainRequest} message + * @param {!proto.ic_ledger.pb.v1.GetNodesRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.TipOfChainRequest.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.GetNodesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.ic_ledger.pb.v1.GetNodesResponse.repeatedFields_ = [1]; + if (jspb.Message.GENERATE_TO_OBJECT) { @@ -3104,8 +7125,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.TipOfChainResponse.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.GetNodesResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.GetNodesResponse.toObject(opt_includeInstance, this); }; @@ -3114,14 +7135,14 @@ proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.toObject = function(opt_inclu * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.TipOfChainResponse} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.GetNodesResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.TipOfChainResponse.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.GetNodesResponse.toObject = function(includeInstance, msg) { var f, obj = { - certification: (f = msg.getCertification()) && proto.ic_ledger.pb.v1.Certification.toObject(includeInstance, f), - chainLength: (f = msg.getChainLength()) && proto.ic_ledger.pb.v1.BlockHeight.toObject(includeInstance, f) + nodesList: jspb.Message.toObjectList(msg.getNodesList(), + base_types_pb.PrincipalId.toObject, includeInstance) }; if (includeInstance) { @@ -3135,23 +7156,23 @@ proto.ic_ledger.pb.v1.TipOfChainResponse.toObject = function(includeInstance, ms /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.TipOfChainResponse} + * @return {!proto.ic_ledger.pb.v1.GetNodesResponse} */ -proto.ic_ledger.pb.v1.TipOfChainResponse.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.GetNodesResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.TipOfChainResponse; - return proto.ic_ledger.pb.v1.TipOfChainResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.GetNodesResponse; + return proto.ic_ledger.pb.v1.GetNodesResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.TipOfChainResponse} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.GetNodesResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.TipOfChainResponse} + * @return {!proto.ic_ledger.pb.v1.GetNodesResponse} */ -proto.ic_ledger.pb.v1.TipOfChainResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.GetNodesResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3159,14 +7180,9 @@ proto.ic_ledger.pb.v1.TipOfChainResponse.deserializeBinaryFromReader = function( var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.ic_ledger.pb.v1.Certification; - reader.readMessage(value,proto.ic_ledger.pb.v1.Certification.deserializeBinaryFromReader); - msg.setCertification(value); - break; - case 2: - var value = new proto.ic_ledger.pb.v1.BlockHeight; - reader.readMessage(value,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader); - msg.setChainLength(value); + var value = new base_types_pb.PrincipalId; + reader.readMessage(value,base_types_pb.PrincipalId.deserializeBinaryFromReader); + msg.addNodes(value); break; default: reader.skipField(); @@ -3181,9 +7197,9 @@ proto.ic_ledger.pb.v1.TipOfChainResponse.deserializeBinaryFromReader = function( * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.GetNodesResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.TipOfChainResponse.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.GetNodesResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3191,102 +7207,188 @@ proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.serializeBinary = function() /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.TipOfChainResponse} message + * @param {!proto.ic_ledger.pb.v1.GetNodesResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.TipOfChainResponse.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.GetNodesResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getCertification(); - if (f != null) { - writer.writeMessage( + f = message.getNodesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( 1, f, - proto.ic_ledger.pb.v1.Certification.serializeBinaryToWriter - ); - } - f = message.getChainLength(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter + base_types_pb.PrincipalId.serializeBinaryToWriter ); } }; /** - * optional Certification certification = 1; - * @return {?proto.ic_ledger.pb.v1.Certification} + * repeated ic_base_types.pb.v1.PrincipalId nodes = 1; + * @return {!Array} */ -proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.getCertification = function() { - return /** @type{?proto.ic_ledger.pb.v1.Certification} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Certification, 1)); +proto.ic_ledger.pb.v1.GetNodesResponse.prototype.getNodesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, base_types_pb.PrincipalId, 1)); }; /** - * @param {?proto.ic_ledger.pb.v1.Certification|undefined} value - * @return {!proto.ic_ledger.pb.v1.TipOfChainResponse} returns this + * @param {!Array} value + * @return {!proto.ic_ledger.pb.v1.GetNodesResponse} returns this */ -proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.setCertification = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.ic_ledger.pb.v1.GetNodesResponse.prototype.setNodesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.TipOfChainResponse} returns this + * @param {!proto.ic_base_types.pb.v1.PrincipalId=} opt_value + * @param {number=} opt_index + * @return {!proto.ic_base_types.pb.v1.PrincipalId} */ -proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.clearCertification = function() { - return this.setCertification(undefined); +proto.ic_ledger.pb.v1.GetNodesResponse.prototype.addNodes = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ic_base_types.pb.v1.PrincipalId, opt_index); }; /** - * Returns whether this field is set. - * @return {boolean} + * Clears the list making it empty but non-null. + * @return {!proto.ic_ledger.pb.v1.GetNodesResponse} returns this */ -proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.hasCertification = function() { - return jspb.Message.getField(this, 1) != null; +proto.ic_ledger.pb.v1.GetNodesResponse.prototype.clearNodesList = function() { + return this.setNodesList([]); +}; + + + + + +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.ic_ledger.pb.v1.Tokens.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.Tokens.toObject(opt_includeInstance, this); }; /** - * optional BlockHeight chain_length = 2; - * @return {?proto.ic_ledger.pb.v1.BlockHeight} + * 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.ic_ledger.pb.v1.Tokens} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.getChainLength = function() { - return /** @type{?proto.ic_ledger.pb.v1.BlockHeight} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.BlockHeight, 2)); +proto.ic_ledger.pb.v1.Tokens.toObject = function(includeInstance, msg) { + var f, obj = { + e8s: jspb.Message.getFieldWithDefault(msg, 1, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * @param {?proto.ic_ledger.pb.v1.BlockHeight|undefined} value - * @return {!proto.ic_ledger.pb.v1.TipOfChainResponse} returns this -*/ -proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.setChainLength = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_ledger.pb.v1.Tokens} + */ +proto.ic_ledger.pb.v1.Tokens.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.Tokens; + return proto.ic_ledger.pb.v1.Tokens.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.Tokens} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.Tokens} + */ +proto.ic_ledger.pb.v1.Tokens.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setE8s(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_ledger.pb.v1.Tokens.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.Tokens.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.Tokens} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.Tokens.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getE8s(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.TipOfChainResponse} returns this + * optional uint64 e8s = 1; + * @return {number} */ -proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.clearChainLength = function() { - return this.setChainLength(undefined); +proto.ic_ledger.pb.v1.Tokens.prototype.getE8s = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {number} value + * @return {!proto.ic_ledger.pb.v1.Tokens} returns this */ -proto.ic_ledger.pb.v1.TipOfChainResponse.prototype.hasChainLength = function() { - return jspb.Message.getField(this, 2) != null; +proto.ic_ledger.pb.v1.Tokens.prototype.setE8s = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; @@ -3306,8 +7408,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.EncodedBlock.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.EncodedBlock.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.Payment.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.Payment.toObject(opt_includeInstance, this); }; @@ -3316,13 +7418,13 @@ proto.ic_ledger.pb.v1.EncodedBlock.prototype.toObject = function(opt_includeInst * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.EncodedBlock} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.Payment} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.EncodedBlock.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.Payment.toObject = function(includeInstance, msg) { var f, obj = { - block: msg.getBlock_asB64() + receiverGets: (f = msg.getReceiverGets()) && proto.ic_ledger.pb.v1.Tokens.toObject(includeInstance, f) }; if (includeInstance) { @@ -3336,23 +7438,23 @@ proto.ic_ledger.pb.v1.EncodedBlock.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.EncodedBlock} + * @return {!proto.ic_ledger.pb.v1.Payment} */ -proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.Payment.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.EncodedBlock; - return proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.Payment; + return proto.ic_ledger.pb.v1.Payment.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.EncodedBlock} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.Payment} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.EncodedBlock} + * @return {!proto.ic_ledger.pb.v1.Payment} */ -proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.Payment.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3360,8 +7462,9 @@ proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinaryFromReader = function(msg, r var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setBlock(value); + var value = new proto.ic_ledger.pb.v1.Tokens; + reader.readMessage(value,proto.ic_ledger.pb.v1.Tokens.deserializeBinaryFromReader); + msg.setReceiverGets(value); break; default: reader.skipField(); @@ -3376,9 +7479,9 @@ proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinaryFromReader = function(msg, r * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.EncodedBlock.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.Payment.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.EncodedBlock.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.Payment.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3386,61 +7489,57 @@ proto.ic_ledger.pb.v1.EncodedBlock.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.EncodedBlock} message + * @param {!proto.ic_ledger.pb.v1.Payment} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.EncodedBlock.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.Payment.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getBlock_asU8(); - if (f.length > 0) { - writer.writeBytes( + f = message.getReceiverGets(); + if (f != null) { + writer.writeMessage( 1, - f + f, + proto.ic_ledger.pb.v1.Tokens.serializeBinaryToWriter ); } }; /** - * optional bytes block = 1; - * @return {!(string|Uint8Array)} + * optional Tokens receiver_gets = 1; + * @return {?proto.ic_ledger.pb.v1.Tokens} */ -proto.ic_ledger.pb.v1.EncodedBlock.prototype.getBlock = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.ic_ledger.pb.v1.Payment.prototype.getReceiverGets = function() { + return /** @type{?proto.ic_ledger.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Tokens, 1)); }; /** - * optional bytes block = 1; - * This is a type-conversion wrapper around `getBlock()` - * @return {string} - */ -proto.ic_ledger.pb.v1.EncodedBlock.prototype.getBlock_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getBlock())); + * @param {?proto.ic_ledger.pb.v1.Tokens|undefined} value + * @return {!proto.ic_ledger.pb.v1.Payment} returns this +*/ +proto.ic_ledger.pb.v1.Payment.prototype.setReceiverGets = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * optional bytes block = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getBlock()` - * @return {!Uint8Array} + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.Payment} returns this */ -proto.ic_ledger.pb.v1.EncodedBlock.prototype.getBlock_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getBlock())); +proto.ic_ledger.pb.v1.Payment.prototype.clearReceiverGets = function() { + return this.setReceiverGets(undefined); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.ic_ledger.pb.v1.EncodedBlock} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_ledger.pb.v1.EncodedBlock.prototype.setBlock = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); +proto.ic_ledger.pb.v1.Payment.prototype.hasReceiverGets = function() { + return jspb.Message.getField(this, 1) != null; }; @@ -3460,8 +7559,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.GetBlocksRequest.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.BlockIndex.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.BlockIndex.toObject(opt_includeInstance, this); }; @@ -3470,14 +7569,13 @@ proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.toObject = function(opt_include * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.GetBlocksRequest} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.BlockIndex} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.GetBlocksRequest.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.BlockIndex.toObject = function(includeInstance, msg) { var f, obj = { - start: jspb.Message.getFieldWithDefault(msg, 1, "0"), - length: jspb.Message.getFieldWithDefault(msg, 2, "0") + height: jspb.Message.getFieldWithDefault(msg, 1, 0) }; if (includeInstance) { @@ -3491,23 +7589,23 @@ proto.ic_ledger.pb.v1.GetBlocksRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.GetBlocksRequest} + * @return {!proto.ic_ledger.pb.v1.BlockIndex} */ -proto.ic_ledger.pb.v1.GetBlocksRequest.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.BlockIndex.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.GetBlocksRequest; - return proto.ic_ledger.pb.v1.GetBlocksRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.BlockIndex; + return proto.ic_ledger.pb.v1.BlockIndex.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.GetBlocksRequest} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.BlockIndex} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.GetBlocksRequest} + * @return {!proto.ic_ledger.pb.v1.BlockIndex} */ -proto.ic_ledger.pb.v1.GetBlocksRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.BlockIndex.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3515,12 +7613,8 @@ proto.ic_ledger.pb.v1.GetBlocksRequest.deserializeBinaryFromReader = function(ms var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setStart(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setLength(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setHeight(value); break; default: reader.skipField(); @@ -3535,9 +7629,9 @@ proto.ic_ledger.pb.v1.GetBlocksRequest.deserializeBinaryFromReader = function(ms * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.BlockIndex.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.GetBlocksRequest.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.BlockIndex.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3545,62 +7639,37 @@ proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.GetBlocksRequest} message + * @param {!proto.ic_ledger.pb.v1.BlockIndex} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.GetBlocksRequest.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.BlockIndex.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getStart(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( + f = message.getHeight(); + if (f !== 0) { + writer.writeUint64( 1, f ); } - f = message.getLength(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } -}; - - -/** - * optional uint64 start = 1; - * @return {string} - */ -proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.getStart = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.ic_ledger.pb.v1.GetBlocksRequest} returns this - */ -proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.setStart = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); }; /** - * optional uint64 length = 2; - * @return {string} + * optional uint64 height = 1; + * @return {number} */ -proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.getLength = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +proto.ic_ledger.pb.v1.BlockIndex.prototype.getHeight = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {string} value - * @return {!proto.ic_ledger.pb.v1.GetBlocksRequest} returns this + * @param {number} value + * @return {!proto.ic_ledger.pb.v1.BlockIndex} returns this */ -proto.ic_ledger.pb.v1.GetBlocksRequest.prototype.setLength = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); +proto.ic_ledger.pb.v1.BlockIndex.prototype.setHeight = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; @@ -3620,8 +7689,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.Refund.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.Refund.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.Block.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.Block.toObject(opt_includeInstance, this); }; @@ -3630,14 +7699,15 @@ proto.ic_ledger.pb.v1.Refund.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.Refund} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.Block} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.Refund.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.Block.toObject = function(includeInstance, msg) { var f, obj = { - refund: (f = msg.getRefund()) && proto.ic_ledger.pb.v1.BlockHeight.toObject(includeInstance, f), - error: jspb.Message.getFieldWithDefault(msg, 3, "") + parentHash: (f = msg.getParentHash()) && proto.ic_ledger.pb.v1.Hash.toObject(includeInstance, f), + timestamp: (f = msg.getTimestamp()) && proto.ic_ledger.pb.v1.TimeStamp.toObject(includeInstance, f), + transaction: (f = msg.getTransaction()) && proto.ic_ledger.pb.v1.Transaction.toObject(includeInstance, f) }; if (includeInstance) { @@ -3651,37 +7721,43 @@ proto.ic_ledger.pb.v1.Refund.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.Refund} + * @return {!proto.ic_ledger.pb.v1.Block} */ -proto.ic_ledger.pb.v1.Refund.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.Block.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.Refund; - return proto.ic_ledger.pb.v1.Refund.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.Block; + return proto.ic_ledger.pb.v1.Block.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.Refund} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.Block} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.Refund} + * @return {!proto.ic_ledger.pb.v1.Block} */ -proto.ic_ledger.pb.v1.Refund.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.Block.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { + case 1: + var value = new proto.ic_ledger.pb.v1.Hash; + reader.readMessage(value,proto.ic_ledger.pb.v1.Hash.deserializeBinaryFromReader); + msg.setParentHash(value); + break; case 2: - var value = new proto.ic_ledger.pb.v1.BlockHeight; - reader.readMessage(value,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader); - msg.setRefund(value); + var value = new proto.ic_ledger.pb.v1.TimeStamp; + reader.readMessage(value,proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader); + msg.setTimestamp(value); break; case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setError(value); + var value = new proto.ic_ledger.pb.v1.Transaction; + reader.readMessage(value,proto.ic_ledger.pb.v1.Transaction.deserializeBinaryFromReader); + msg.setTransaction(value); break; default: reader.skipField(); @@ -3696,65 +7772,111 @@ proto.ic_ledger.pb.v1.Refund.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.Refund.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.Block.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.Refund.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.Block.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.Refund} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.Block} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.Block.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getParentHash(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.ic_ledger.pb.v1.Hash.serializeBinaryToWriter + ); + } + f = message.getTimestamp(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter + ); + } + f = message.getTransaction(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.ic_ledger.pb.v1.Transaction.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Hash parent_hash = 1; + * @return {?proto.ic_ledger.pb.v1.Hash} + */ +proto.ic_ledger.pb.v1.Block.prototype.getParentHash = function() { + return /** @type{?proto.ic_ledger.pb.v1.Hash} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Hash, 1)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.Hash|undefined} value + * @return {!proto.ic_ledger.pb.v1.Block} returns this +*/ +proto.ic_ledger.pb.v1.Block.prototype.setParentHash = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.Block} returns this + */ +proto.ic_ledger.pb.v1.Block.prototype.clearParentHash = function() { + return this.setParentHash(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_ledger.pb.v1.Refund.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRefund(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter - ); - } - f = message.getError(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } +proto.ic_ledger.pb.v1.Block.prototype.hasParentHash = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * optional BlockHeight refund = 2; - * @return {?proto.ic_ledger.pb.v1.BlockHeight} + * optional TimeStamp timestamp = 2; + * @return {?proto.ic_ledger.pb.v1.TimeStamp} */ -proto.ic_ledger.pb.v1.Refund.prototype.getRefund = function() { - return /** @type{?proto.ic_ledger.pb.v1.BlockHeight} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.BlockHeight, 2)); +proto.ic_ledger.pb.v1.Block.prototype.getTimestamp = function() { + return /** @type{?proto.ic_ledger.pb.v1.TimeStamp} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.TimeStamp, 2)); }; /** - * @param {?proto.ic_ledger.pb.v1.BlockHeight|undefined} value - * @return {!proto.ic_ledger.pb.v1.Refund} returns this + * @param {?proto.ic_ledger.pb.v1.TimeStamp|undefined} value + * @return {!proto.ic_ledger.pb.v1.Block} returns this */ -proto.ic_ledger.pb.v1.Refund.prototype.setRefund = function(value) { +proto.ic_ledger.pb.v1.Block.prototype.setTimestamp = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.Refund} returns this + * @return {!proto.ic_ledger.pb.v1.Block} returns this */ -proto.ic_ledger.pb.v1.Refund.prototype.clearRefund = function() { - return this.setRefund(undefined); +proto.ic_ledger.pb.v1.Block.prototype.clearTimestamp = function() { + return this.setTimestamp(undefined); }; @@ -3762,26 +7884,45 @@ proto.ic_ledger.pb.v1.Refund.prototype.clearRefund = function() { * Returns whether this field is set. * @return {boolean} */ -proto.ic_ledger.pb.v1.Refund.prototype.hasRefund = function() { +proto.ic_ledger.pb.v1.Block.prototype.hasTimestamp = function() { return jspb.Message.getField(this, 2) != null; }; /** - * optional string error = 3; - * @return {string} + * optional Transaction transaction = 3; + * @return {?proto.ic_ledger.pb.v1.Transaction} */ -proto.ic_ledger.pb.v1.Refund.prototype.getError = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +proto.ic_ledger.pb.v1.Block.prototype.getTransaction = function() { + return /** @type{?proto.ic_ledger.pb.v1.Transaction} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Transaction, 3)); }; /** - * @param {string} value - * @return {!proto.ic_ledger.pb.v1.Refund} returns this + * @param {?proto.ic_ledger.pb.v1.Transaction|undefined} value + * @return {!proto.ic_ledger.pb.v1.Block} returns this +*/ +proto.ic_ledger.pb.v1.Block.prototype.setTransaction = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.Block} returns this */ -proto.ic_ledger.pb.v1.Refund.prototype.setError = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); +proto.ic_ledger.pb.v1.Block.prototype.clearTransaction = function() { + return this.setTransaction(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.Block.prototype.hasTransaction = function() { + return jspb.Message.getField(this, 3) != null; }; @@ -3801,8 +7942,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.ToppedUp.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.ToppedUp.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.Hash.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.Hash.toObject(opt_includeInstance, this); }; @@ -3811,13 +7952,13 @@ proto.ic_ledger.pb.v1.ToppedUp.prototype.toObject = function(opt_includeInstance * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.ToppedUp} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.Hash} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.ToppedUp.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.Hash.toObject = function(includeInstance, msg) { var f, obj = { - + hash: msg.getHash_asB64() }; if (includeInstance) { @@ -3831,29 +7972,33 @@ proto.ic_ledger.pb.v1.ToppedUp.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.ToppedUp} + * @return {!proto.ic_ledger.pb.v1.Hash} */ -proto.ic_ledger.pb.v1.ToppedUp.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.Hash.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.ToppedUp; - return proto.ic_ledger.pb.v1.ToppedUp.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.Hash; + return proto.ic_ledger.pb.v1.Hash.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.ToppedUp} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.Hash} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.ToppedUp} + * @return {!proto.ic_ledger.pb.v1.Hash} */ -proto.ic_ledger.pb.v1.ToppedUp.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.Hash.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.setHash(value); + break; default: reader.skipField(); break; @@ -3867,9 +8012,9 @@ proto.ic_ledger.pb.v1.ToppedUp.deserializeBinaryFromReader = function(msg, reade * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.ToppedUp.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.Hash.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.ToppedUp.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.Hash.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3877,22 +8022,64 @@ proto.ic_ledger.pb.v1.ToppedUp.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.ToppedUp} message + * @param {!proto.ic_ledger.pb.v1.Hash} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.ToppedUp.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.Hash.serializeBinaryToWriter = function(message, writer) { var f = undefined; + f = message.getHash_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } +}; + + +/** + * optional bytes hash = 1; + * @return {!(string|Uint8Array)} + */ +proto.ic_ledger.pb.v1.Hash.prototype.getHash = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; +/** + * optional bytes hash = 1; + * This is a type-conversion wrapper around `getHash()` + * @return {string} + */ +proto.ic_ledger.pb.v1.Hash.prototype.getHash_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getHash())); +}; + /** - * List of repeated fields within this message type. - * @private {!Array} - * @const + * optional bytes hash = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getHash()` + * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.EncodedBlocks.repeatedFields_ = [1]; +proto.ic_ledger.pb.v1.Hash.prototype.getHash_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getHash())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.ic_ledger.pb.v1.Hash} returns this + */ +proto.ic_ledger.pb.v1.Hash.prototype.setHash = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); +}; + + @@ -3909,8 +8096,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.EncodedBlocks.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.EncodedBlocks.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.Account.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.Account.toObject(opt_includeInstance, this); }; @@ -3919,14 +8106,14 @@ proto.ic_ledger.pb.v1.EncodedBlocks.prototype.toObject = function(opt_includeIns * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.EncodedBlocks} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.Account} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.EncodedBlocks.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.Account.toObject = function(includeInstance, msg) { var f, obj = { - blocksList: jspb.Message.toObjectList(msg.getBlocksList(), - proto.ic_ledger.pb.v1.EncodedBlock.toObject, includeInstance) + identifier: (f = msg.getIdentifier()) && proto.ic_ledger.pb.v1.AccountIdentifier.toObject(includeInstance, f), + balance: (f = msg.getBalance()) && proto.ic_ledger.pb.v1.Tokens.toObject(includeInstance, f) }; if (includeInstance) { @@ -3940,23 +8127,23 @@ proto.ic_ledger.pb.v1.EncodedBlocks.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.EncodedBlocks} + * @return {!proto.ic_ledger.pb.v1.Account} */ -proto.ic_ledger.pb.v1.EncodedBlocks.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.Account.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.EncodedBlocks; - return proto.ic_ledger.pb.v1.EncodedBlocks.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.Account; + return proto.ic_ledger.pb.v1.Account.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.EncodedBlocks} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.Account} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.EncodedBlocks} + * @return {!proto.ic_ledger.pb.v1.Account} */ -proto.ic_ledger.pb.v1.EncodedBlocks.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.Account.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -3964,9 +8151,14 @@ proto.ic_ledger.pb.v1.EncodedBlocks.deserializeBinaryFromReader = function(msg, var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.ic_ledger.pb.v1.EncodedBlock; - reader.readMessage(value,proto.ic_ledger.pb.v1.EncodedBlock.deserializeBinaryFromReader); - msg.addBlocks(value); + var value = new proto.ic_ledger.pb.v1.AccountIdentifier; + reader.readMessage(value,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader); + msg.setIdentifier(value); + break; + case 2: + var value = new proto.ic_ledger.pb.v1.Tokens; + reader.readMessage(value,proto.ic_ledger.pb.v1.Tokens.deserializeBinaryFromReader); + msg.setBalance(value); break; default: reader.skipField(); @@ -3981,9 +8173,9 @@ proto.ic_ledger.pb.v1.EncodedBlocks.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.EncodedBlocks.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.Account.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.EncodedBlocks.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.Account.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -3991,58 +8183,102 @@ proto.ic_ledger.pb.v1.EncodedBlocks.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.EncodedBlocks} message + * @param {!proto.ic_ledger.pb.v1.Account} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.EncodedBlocks.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.Account.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getBlocksList(); - if (f.length > 0) { - writer.writeRepeatedMessage( + f = message.getIdentifier(); + if (f != null) { + writer.writeMessage( 1, f, - proto.ic_ledger.pb.v1.EncodedBlock.serializeBinaryToWriter + proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter ); } + f = message.getBalance(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_ledger.pb.v1.Tokens.serializeBinaryToWriter + ); + } +}; + + +/** + * optional AccountIdentifier identifier = 1; + * @return {?proto.ic_ledger.pb.v1.AccountIdentifier} + */ +proto.ic_ledger.pb.v1.Account.prototype.getIdentifier = function() { + return /** @type{?proto.ic_ledger.pb.v1.AccountIdentifier} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.AccountIdentifier, 1)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.AccountIdentifier|undefined} value + * @return {!proto.ic_ledger.pb.v1.Account} returns this +*/ +proto.ic_ledger.pb.v1.Account.prototype.setIdentifier = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.Account} returns this + */ +proto.ic_ledger.pb.v1.Account.prototype.clearIdentifier = function() { + return this.setIdentifier(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.ic_ledger.pb.v1.Account.prototype.hasIdentifier = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * repeated EncodedBlock blocks = 1; - * @return {!Array} + * optional Tokens balance = 2; + * @return {?proto.ic_ledger.pb.v1.Tokens} */ -proto.ic_ledger.pb.v1.EncodedBlocks.prototype.getBlocksList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.ic_ledger.pb.v1.EncodedBlock, 1)); +proto.ic_ledger.pb.v1.Account.prototype.getBalance = function() { + return /** @type{?proto.ic_ledger.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Tokens, 2)); }; /** - * @param {!Array} value - * @return {!proto.ic_ledger.pb.v1.EncodedBlocks} returns this + * @param {?proto.ic_ledger.pb.v1.Tokens|undefined} value + * @return {!proto.ic_ledger.pb.v1.Account} returns this */ -proto.ic_ledger.pb.v1.EncodedBlocks.prototype.setBlocksList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); +proto.ic_ledger.pb.v1.Account.prototype.setBalance = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** - * @param {!proto.ic_ledger.pb.v1.EncodedBlock=} opt_value - * @param {number=} opt_index - * @return {!proto.ic_ledger.pb.v1.EncodedBlock} + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.Account} returns this */ -proto.ic_ledger.pb.v1.EncodedBlocks.prototype.addBlocks = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ic_ledger.pb.v1.EncodedBlock, opt_index); +proto.ic_ledger.pb.v1.Account.prototype.clearBalance = function() { + return this.setBalance(undefined); }; /** - * Clears the list making it empty but non-null. - * @return {!proto.ic_ledger.pb.v1.EncodedBlocks} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_ledger.pb.v1.EncodedBlocks.prototype.clearBlocksList = function() { - return this.setBlocksList([]); +proto.ic_ledger.pb.v1.Account.prototype.hasBalance = function() { + return jspb.Message.getField(this, 2) != null; }; @@ -4055,22 +8291,23 @@ proto.ic_ledger.pb.v1.EncodedBlocks.prototype.clearBlocksList = function() { * @private {!Array>} * @const */ -proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_ = [[1,2]]; +proto.ic_ledger.pb.v1.Transaction.oneofGroups_ = [[1,2,3]]; /** * @enum {number} */ -proto.ic_ledger.pb.v1.GetBlocksResponse.GetBlocksContentCase = { - GET_BLOCKS_CONTENT_NOT_SET: 0, - BLOCKS: 1, - ERROR: 2 +proto.ic_ledger.pb.v1.Transaction.TransferCase = { + TRANSFER_NOT_SET: 0, + BURN: 1, + MINT: 2, + SEND: 3 }; /** - * @return {proto.ic_ledger.pb.v1.GetBlocksResponse.GetBlocksContentCase} + * @return {proto.ic_ledger.pb.v1.Transaction.TransferCase} */ -proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.getGetBlocksContentCase = function() { - return /** @type {proto.ic_ledger.pb.v1.GetBlocksResponse.GetBlocksContentCase} */(jspb.Message.computeOneofCase(this, proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_[0])); +proto.ic_ledger.pb.v1.Transaction.prototype.getTransferCase = function() { + return /** @type {proto.ic_ledger.pb.v1.Transaction.TransferCase} */(jspb.Message.computeOneofCase(this, proto.ic_ledger.pb.v1.Transaction.oneofGroups_[0])); }; @@ -4088,8 +8325,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.GetBlocksResponse.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.Transaction.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.Transaction.toObject(opt_includeInstance, this); }; @@ -4098,14 +8335,19 @@ proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.toObject = function(opt_includ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.GetBlocksResponse} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.Transaction} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.GetBlocksResponse.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.Transaction.toObject = function(includeInstance, msg) { var f, obj = { - blocks: (f = msg.getBlocks()) && proto.ic_ledger.pb.v1.EncodedBlocks.toObject(includeInstance, f), - error: jspb.Message.getFieldWithDefault(msg, 2, "") + burn: (f = msg.getBurn()) && proto.ic_ledger.pb.v1.Burn.toObject(includeInstance, f), + mint: (f = msg.getMint()) && proto.ic_ledger.pb.v1.Mint.toObject(includeInstance, f), + send: (f = msg.getSend()) && proto.ic_ledger.pb.v1.Send.toObject(includeInstance, f), + memo: (f = msg.getMemo()) && proto.ic_ledger.pb.v1.Memo.toObject(includeInstance, f), + icrc1Memo: (f = msg.getIcrc1Memo()) && proto.ic_ledger.pb.v1.Icrc1Memo.toObject(includeInstance, f), + createdAt: (f = msg.getCreatedAt()) && proto.ic_ledger.pb.v1.BlockIndex.toObject(includeInstance, f), + createdAtTime: (f = msg.getCreatedAtTime()) && proto.ic_ledger.pb.v1.TimeStamp.toObject(includeInstance, f) }; if (includeInstance) { @@ -4119,23 +8361,23 @@ proto.ic_ledger.pb.v1.GetBlocksResponse.toObject = function(includeInstance, msg /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.GetBlocksResponse} + * @return {!proto.ic_ledger.pb.v1.Transaction} */ -proto.ic_ledger.pb.v1.GetBlocksResponse.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.Transaction.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.GetBlocksResponse; - return proto.ic_ledger.pb.v1.GetBlocksResponse.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.Transaction; + return proto.ic_ledger.pb.v1.Transaction.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.GetBlocksResponse} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.Transaction} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.GetBlocksResponse} + * @return {!proto.ic_ledger.pb.v1.Transaction} */ -proto.ic_ledger.pb.v1.GetBlocksResponse.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.Transaction.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -4143,13 +8385,39 @@ proto.ic_ledger.pb.v1.GetBlocksResponse.deserializeBinaryFromReader = function(m var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.ic_ledger.pb.v1.EncodedBlocks; - reader.readMessage(value,proto.ic_ledger.pb.v1.EncodedBlocks.deserializeBinaryFromReader); - msg.setBlocks(value); + var value = new proto.ic_ledger.pb.v1.Burn; + reader.readMessage(value,proto.ic_ledger.pb.v1.Burn.deserializeBinaryFromReader); + msg.setBurn(value); break; case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setError(value); + var value = new proto.ic_ledger.pb.v1.Mint; + reader.readMessage(value,proto.ic_ledger.pb.v1.Mint.deserializeBinaryFromReader); + msg.setMint(value); + break; + case 3: + var value = new proto.ic_ledger.pb.v1.Send; + reader.readMessage(value,proto.ic_ledger.pb.v1.Send.deserializeBinaryFromReader); + msg.setSend(value); + break; + case 4: + var value = new proto.ic_ledger.pb.v1.Memo; + reader.readMessage(value,proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader); + msg.setMemo(value); + break; + case 7: + var value = new proto.ic_ledger.pb.v1.Icrc1Memo; + reader.readMessage(value,proto.ic_ledger.pb.v1.Icrc1Memo.deserializeBinaryFromReader); + msg.setIcrc1Memo(value); + break; + case 5: + var value = new proto.ic_ledger.pb.v1.BlockIndex; + reader.readMessage(value,proto.ic_ledger.pb.v1.BlockIndex.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 6: + var value = new proto.ic_ledger.pb.v1.TimeStamp; + reader.readMessage(value,proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader); + msg.setCreatedAtTime(value); break; default: reader.skipField(); @@ -4164,9 +8432,9 @@ proto.ic_ledger.pb.v1.GetBlocksResponse.deserializeBinaryFromReader = function(m * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.Transaction.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.GetBlocksResponse.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.Transaction.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4174,372 +8442,244 @@ proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.GetBlocksResponse} message + * @param {!proto.ic_ledger.pb.v1.Transaction} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.GetBlocksResponse.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.Transaction.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getBlocks(); + f = message.getBurn(); if (f != null) { writer.writeMessage( 1, f, - proto.ic_ledger.pb.v1.EncodedBlocks.serializeBinaryToWriter + proto.ic_ledger.pb.v1.Burn.serializeBinaryToWriter ); } - f = /** @type {string} */ (jspb.Message.getField(message, 2)); + f = message.getMint(); if (f != null) { - writer.writeString( + writer.writeMessage( 2, - f + f, + proto.ic_ledger.pb.v1.Mint.serializeBinaryToWriter + ); + } + f = message.getSend(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.ic_ledger.pb.v1.Send.serializeBinaryToWriter + ); + } + f = message.getMemo(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter + ); + } + f = message.getIcrc1Memo(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.ic_ledger.pb.v1.Icrc1Memo.serializeBinaryToWriter + ); + } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.ic_ledger.pb.v1.BlockIndex.serializeBinaryToWriter + ); + } + f = message.getCreatedAtTime(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter ); } }; /** - * optional EncodedBlocks blocks = 1; - * @return {?proto.ic_ledger.pb.v1.EncodedBlocks} - */ -proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.getBlocks = function() { - return /** @type{?proto.ic_ledger.pb.v1.EncodedBlocks} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.EncodedBlocks, 1)); -}; - - -/** - * @param {?proto.ic_ledger.pb.v1.EncodedBlocks|undefined} value - * @return {!proto.ic_ledger.pb.v1.GetBlocksResponse} returns this -*/ -proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.setBlocks = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.GetBlocksResponse} returns this - */ -proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.clearBlocks = function() { - return this.setBlocks(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.hasBlocks = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional string error = 2; - * @return {string} - */ -proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.getError = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.ic_ledger.pb.v1.GetBlocksResponse} returns this - */ -proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.setError = function(value) { - return jspb.Message.setOneofField(this, 2, proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_[0], value); -}; - - -/** - * Clears the field making it undefined. - * @return {!proto.ic_ledger.pb.v1.GetBlocksResponse} returns this - */ -proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.clearError = function() { - return jspb.Message.setOneofField(this, 2, proto.ic_ledger.pb.v1.GetBlocksResponse.oneofGroups_[0], undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.ic_ledger.pb.v1.GetBlocksResponse.prototype.hasError = function() { - return jspb.Message.getField(this, 2) != 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} + * optional Burn burn = 1; + * @return {?proto.ic_ledger.pb.v1.Burn} */ -proto.ic_ledger.pb.v1.ICPTs.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.ICPTs.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.Transaction.prototype.getBurn = function() { + return /** @type{?proto.ic_ledger.pb.v1.Burn} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Burn, 1)); }; /** - * 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.ic_ledger.pb.v1.ICPTs} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ic_ledger.pb.v1.ICPTs.toObject = function(includeInstance, msg) { - var f, obj = { - e8s: jspb.Message.getFieldWithDefault(msg, 1, "0") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + * @param {?proto.ic_ledger.pb.v1.Burn|undefined} value + * @return {!proto.ic_ledger.pb.v1.Transaction} returns this +*/ +proto.ic_ledger.pb.v1.Transaction.prototype.setBurn = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.ic_ledger.pb.v1.Transaction.oneofGroups_[0], value); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.ICPTs} + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.Transaction} returns this */ -proto.ic_ledger.pb.v1.ICPTs.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.ICPTs; - return proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader(msg, reader); +proto.ic_ledger.pb.v1.Transaction.prototype.clearBurn = function() { + return this.setBurn(undefined); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.ICPTs} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.ICPTs} + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setE8s(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.ic_ledger.pb.v1.Transaction.prototype.hasBurn = function() { + return jspb.Message.getField(this, 1) != null; }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * optional Mint mint = 2; + * @return {?proto.ic_ledger.pb.v1.Mint} */ -proto.ic_ledger.pb.v1.ICPTs.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.ic_ledger.pb.v1.Transaction.prototype.getMint = function() { + return /** @type{?proto.ic_ledger.pb.v1.Mint} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Mint, 2)); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.ICPTs} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getE8s(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } + * @param {?proto.ic_ledger.pb.v1.Mint|undefined} value + * @return {!proto.ic_ledger.pb.v1.Transaction} returns this +*/ +proto.ic_ledger.pb.v1.Transaction.prototype.setMint = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.ic_ledger.pb.v1.Transaction.oneofGroups_[0], value); }; /** - * optional uint64 e8s = 1; - * @return {string} + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.Transaction} returns this */ -proto.ic_ledger.pb.v1.ICPTs.prototype.getE8s = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.ic_ledger.pb.v1.Transaction.prototype.clearMint = function() { + return this.setMint(undefined); }; /** - * @param {string} value - * @return {!proto.ic_ledger.pb.v1.ICPTs} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_ledger.pb.v1.ICPTs.prototype.setE8s = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.ic_ledger.pb.v1.Transaction.prototype.hasMint = function() { + return jspb.Message.getField(this, 2) != null; }; +/** + * optional Send send = 3; + * @return {?proto.ic_ledger.pb.v1.Send} + */ +proto.ic_ledger.pb.v1.Transaction.prototype.getSend = function() { + return /** @type{?proto.ic_ledger.pb.v1.Send} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Send, 3)); +}; + +/** + * @param {?proto.ic_ledger.pb.v1.Send|undefined} value + * @return {!proto.ic_ledger.pb.v1.Transaction} returns this +*/ +proto.ic_ledger.pb.v1.Transaction.prototype.setSend = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.ic_ledger.pb.v1.Transaction.oneofGroups_[0], 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} + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.Transaction} returns this */ -proto.ic_ledger.pb.v1.Payment.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.Payment.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.Transaction.prototype.clearSend = function() { + return this.setSend(undefined); }; /** - * 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.ic_ledger.pb.v1.Payment} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_ledger.pb.v1.Payment.toObject = function(includeInstance, msg) { - var f, obj = { - receiverGets: (f = msg.getReceiverGets()) && proto.ic_ledger.pb.v1.ICPTs.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.ic_ledger.pb.v1.Transaction.prototype.hasSend = function() { + return jspb.Message.getField(this, 3) != null; }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.Payment} + * optional Memo memo = 4; + * @return {?proto.ic_ledger.pb.v1.Memo} */ -proto.ic_ledger.pb.v1.Payment.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.Payment; - return proto.ic_ledger.pb.v1.Payment.deserializeBinaryFromReader(msg, reader); +proto.ic_ledger.pb.v1.Transaction.prototype.getMemo = function() { + return /** @type{?proto.ic_ledger.pb.v1.Memo} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Memo, 4)); }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.Payment} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.Payment} - */ -proto.ic_ledger.pb.v1.Payment.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.ic_ledger.pb.v1.ICPTs; - reader.readMessage(value,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader); - msg.setReceiverGets(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; + * @param {?proto.ic_ledger.pb.v1.Memo|undefined} value + * @return {!proto.ic_ledger.pb.v1.Transaction} returns this +*/ +proto.ic_ledger.pb.v1.Transaction.prototype.setMemo = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.Transaction} returns this */ -proto.ic_ledger.pb.v1.Payment.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.Payment.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); +proto.ic_ledger.pb.v1.Transaction.prototype.clearMemo = function() { + return this.setMemo(undefined); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.Payment} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_ledger.pb.v1.Payment.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getReceiverGets(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter - ); - } +proto.ic_ledger.pb.v1.Transaction.prototype.hasMemo = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * optional ICPTs receiver_gets = 1; - * @return {?proto.ic_ledger.pb.v1.ICPTs} + * optional Icrc1Memo icrc1_memo = 7; + * @return {?proto.ic_ledger.pb.v1.Icrc1Memo} */ -proto.ic_ledger.pb.v1.Payment.prototype.getReceiverGets = function() { - return /** @type{?proto.ic_ledger.pb.v1.ICPTs} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.ICPTs, 1)); +proto.ic_ledger.pb.v1.Transaction.prototype.getIcrc1Memo = function() { + return /** @type{?proto.ic_ledger.pb.v1.Icrc1Memo} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Icrc1Memo, 7)); }; /** - * @param {?proto.ic_ledger.pb.v1.ICPTs|undefined} value - * @return {!proto.ic_ledger.pb.v1.Payment} returns this + * @param {?proto.ic_ledger.pb.v1.Icrc1Memo|undefined} value + * @return {!proto.ic_ledger.pb.v1.Transaction} returns this */ -proto.ic_ledger.pb.v1.Payment.prototype.setReceiverGets = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +proto.ic_ledger.pb.v1.Transaction.prototype.setIcrc1Memo = function(value) { + return jspb.Message.setWrapperField(this, 7, value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.Payment} returns this + * @return {!proto.ic_ledger.pb.v1.Transaction} returns this */ -proto.ic_ledger.pb.v1.Payment.prototype.clearReceiverGets = function() { - return this.setReceiverGets(undefined); +proto.ic_ledger.pb.v1.Transaction.prototype.clearIcrc1Memo = function() { + return this.setIcrc1Memo(undefined); }; @@ -4547,141 +8687,111 @@ proto.ic_ledger.pb.v1.Payment.prototype.clearReceiverGets = function() { * Returns whether this field is set. * @return {boolean} */ -proto.ic_ledger.pb.v1.Payment.prototype.hasReceiverGets = function() { - return jspb.Message.getField(this, 1) != null; +proto.ic_ledger.pb.v1.Transaction.prototype.hasIcrc1Memo = function() { + return jspb.Message.getField(this, 7) != 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} + * optional BlockIndex created_at = 5; + * @return {?proto.ic_ledger.pb.v1.BlockIndex} */ -proto.ic_ledger.pb.v1.BlockHeight.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.BlockHeight.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.Transaction.prototype.getCreatedAt = function() { + return /** @type{?proto.ic_ledger.pb.v1.BlockIndex} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.BlockIndex, 5)); }; /** - * 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.ic_ledger.pb.v1.BlockHeight} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.ic_ledger.pb.v1.BlockHeight.toObject = function(includeInstance, msg) { - var f, obj = { - height: jspb.Message.getFieldWithDefault(msg, 1, "0") - }; + * @param {?proto.ic_ledger.pb.v1.BlockIndex|undefined} value + * @return {!proto.ic_ledger.pb.v1.Transaction} returns this +*/ +proto.ic_ledger.pb.v1.Transaction.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.Transaction} returns this + */ +proto.ic_ledger.pb.v1.Transaction.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.BlockHeight} + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_ledger.pb.v1.BlockHeight.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.BlockHeight; - return proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader(msg, reader); +proto.ic_ledger.pb.v1.Transaction.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 5) != null; }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.BlockHeight} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.BlockHeight} + * optional TimeStamp created_at_time = 6; + * @return {?proto.ic_ledger.pb.v1.TimeStamp} */ -proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setHeight(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.ic_ledger.pb.v1.Transaction.prototype.getCreatedAtTime = function() { + return /** @type{?proto.ic_ledger.pb.v1.TimeStamp} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.TimeStamp, 6)); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.ic_ledger.pb.v1.BlockHeight.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); + * @param {?proto.ic_ledger.pb.v1.TimeStamp|undefined} value + * @return {!proto.ic_ledger.pb.v1.Transaction} returns this +*/ +proto.ic_ledger.pb.v1.Transaction.prototype.setCreatedAtTime = function(value) { + return jspb.Message.setWrapperField(this, 6, value); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.BlockHeight} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.Transaction} returns this */ -proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHeight(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } +proto.ic_ledger.pb.v1.Transaction.prototype.clearCreatedAtTime = function() { + return this.setCreatedAtTime(undefined); }; /** - * optional uint64 height = 1; - * @return {string} + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_ledger.pb.v1.BlockHeight.prototype.getHeight = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.ic_ledger.pb.v1.Transaction.prototype.hasCreatedAtTime = function() { + return jspb.Message.getField(this, 6) != null; }; + /** - * @param {string} value - * @return {!proto.ic_ledger.pb.v1.BlockHeight} returns this + * 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.ic_ledger.pb.v1.BlockHeight.prototype.setHeight = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; +proto.ic_ledger.pb.v1.Send.oneofGroups_ = [[5,6]]; +/** + * @enum {number} + */ +proto.ic_ledger.pb.v1.Send.ExtensionCase = { + EXTENSION_NOT_SET: 0, + APPROVE: 5, + TRANSFER_FROM: 6 +}; +/** + * @return {proto.ic_ledger.pb.v1.Send.ExtensionCase} + */ +proto.ic_ledger.pb.v1.Send.prototype.getExtensionCase = function() { + return /** @type {proto.ic_ledger.pb.v1.Send.ExtensionCase} */(jspb.Message.computeOneofCase(this, proto.ic_ledger.pb.v1.Send.oneofGroups_[0])); +}; @@ -4698,8 +8808,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.Block.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.Block.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.Send.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.Send.toObject(opt_includeInstance, this); }; @@ -4708,15 +8818,18 @@ proto.ic_ledger.pb.v1.Block.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.Block} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.Send} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.Block.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.Send.toObject = function(includeInstance, msg) { var f, obj = { - parentHash: (f = msg.getParentHash()) && proto.ic_ledger.pb.v1.Hash.toObject(includeInstance, f), - timestamp: (f = msg.getTimestamp()) && proto.ic_ledger.pb.v1.TimeStamp.toObject(includeInstance, f), - transaction: (f = msg.getTransaction()) && proto.ic_ledger.pb.v1.Transaction.toObject(includeInstance, f) + from: (f = msg.getFrom()) && proto.ic_ledger.pb.v1.AccountIdentifier.toObject(includeInstance, f), + to: (f = msg.getTo()) && proto.ic_ledger.pb.v1.AccountIdentifier.toObject(includeInstance, f), + amount: (f = msg.getAmount()) && proto.ic_ledger.pb.v1.Tokens.toObject(includeInstance, f), + maxFee: (f = msg.getMaxFee()) && proto.ic_ledger.pb.v1.Tokens.toObject(includeInstance, f), + approve: (f = msg.getApprove()) && proto.ic_ledger.pb.v1.Approve.toObject(includeInstance, f), + transferFrom: (f = msg.getTransferFrom()) && proto.ic_ledger.pb.v1.TransferFrom.toObject(includeInstance, f) }; if (includeInstance) { @@ -4730,23 +8843,23 @@ proto.ic_ledger.pb.v1.Block.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.Block} + * @return {!proto.ic_ledger.pb.v1.Send} */ -proto.ic_ledger.pb.v1.Block.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.Send.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.Block; - return proto.ic_ledger.pb.v1.Block.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.Send; + return proto.ic_ledger.pb.v1.Send.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.Block} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.Send} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.Block} + * @return {!proto.ic_ledger.pb.v1.Send} */ -proto.ic_ledger.pb.v1.Block.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.Send.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -4754,19 +8867,34 @@ proto.ic_ledger.pb.v1.Block.deserializeBinaryFromReader = function(msg, reader) var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.ic_ledger.pb.v1.Hash; - reader.readMessage(value,proto.ic_ledger.pb.v1.Hash.deserializeBinaryFromReader); - msg.setParentHash(value); + var value = new proto.ic_ledger.pb.v1.AccountIdentifier; + reader.readMessage(value,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader); + msg.setFrom(value); break; case 2: - var value = new proto.ic_ledger.pb.v1.TimeStamp; - reader.readMessage(value,proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader); - msg.setTimestamp(value); + var value = new proto.ic_ledger.pb.v1.AccountIdentifier; + reader.readMessage(value,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader); + msg.setTo(value); break; case 3: - var value = new proto.ic_ledger.pb.v1.Transaction; - reader.readMessage(value,proto.ic_ledger.pb.v1.Transaction.deserializeBinaryFromReader); - msg.setTransaction(value); + var value = new proto.ic_ledger.pb.v1.Tokens; + reader.readMessage(value,proto.ic_ledger.pb.v1.Tokens.deserializeBinaryFromReader); + msg.setAmount(value); + break; + case 4: + var value = new proto.ic_ledger.pb.v1.Tokens; + reader.readMessage(value,proto.ic_ledger.pb.v1.Tokens.deserializeBinaryFromReader); + msg.setMaxFee(value); + break; + case 5: + var value = new proto.ic_ledger.pb.v1.Approve; + reader.readMessage(value,proto.ic_ledger.pb.v1.Approve.deserializeBinaryFromReader); + msg.setApprove(value); + break; + case 6: + var value = new proto.ic_ledger.pb.v1.TransferFrom; + reader.readMessage(value,proto.ic_ledger.pb.v1.TransferFrom.deserializeBinaryFromReader); + msg.setTransferFrom(value); break; default: reader.skipField(); @@ -4781,9 +8909,9 @@ proto.ic_ledger.pb.v1.Block.deserializeBinaryFromReader = function(msg, reader) * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.Block.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.Send.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.Block.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.Send.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -4791,64 +8919,88 @@ proto.ic_ledger.pb.v1.Block.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.Block} message + * @param {!proto.ic_ledger.pb.v1.Send} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.Block.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.Send.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getParentHash(); + f = message.getFrom(); if (f != null) { writer.writeMessage( 1, f, - proto.ic_ledger.pb.v1.Hash.serializeBinaryToWriter + proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter ); } - f = message.getTimestamp(); + f = message.getTo(); if (f != null) { writer.writeMessage( 2, f, - proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter + proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter ); } - f = message.getTransaction(); + f = message.getAmount(); if (f != null) { writer.writeMessage( 3, f, - proto.ic_ledger.pb.v1.Transaction.serializeBinaryToWriter + proto.ic_ledger.pb.v1.Tokens.serializeBinaryToWriter + ); + } + f = message.getMaxFee(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.ic_ledger.pb.v1.Tokens.serializeBinaryToWriter + ); + } + f = message.getApprove(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.ic_ledger.pb.v1.Approve.serializeBinaryToWriter + ); + } + f = message.getTransferFrom(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.ic_ledger.pb.v1.TransferFrom.serializeBinaryToWriter ); } }; /** - * optional Hash parent_hash = 1; - * @return {?proto.ic_ledger.pb.v1.Hash} + * optional AccountIdentifier from = 1; + * @return {?proto.ic_ledger.pb.v1.AccountIdentifier} */ -proto.ic_ledger.pb.v1.Block.prototype.getParentHash = function() { - return /** @type{?proto.ic_ledger.pb.v1.Hash} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Hash, 1)); +proto.ic_ledger.pb.v1.Send.prototype.getFrom = function() { + return /** @type{?proto.ic_ledger.pb.v1.AccountIdentifier} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.AccountIdentifier, 1)); }; /** - * @param {?proto.ic_ledger.pb.v1.Hash|undefined} value - * @return {!proto.ic_ledger.pb.v1.Block} returns this + * @param {?proto.ic_ledger.pb.v1.AccountIdentifier|undefined} value + * @return {!proto.ic_ledger.pb.v1.Send} returns this */ -proto.ic_ledger.pb.v1.Block.prototype.setParentHash = function(value) { +proto.ic_ledger.pb.v1.Send.prototype.setFrom = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.Block} returns this + * @return {!proto.ic_ledger.pb.v1.Send} returns this */ -proto.ic_ledger.pb.v1.Block.prototype.clearParentHash = function() { - return this.setParentHash(undefined); +proto.ic_ledger.pb.v1.Send.prototype.clearFrom = function() { + return this.setFrom(undefined); }; @@ -4856,36 +9008,36 @@ proto.ic_ledger.pb.v1.Block.prototype.clearParentHash = function() { * Returns whether this field is set. * @return {boolean} */ -proto.ic_ledger.pb.v1.Block.prototype.hasParentHash = function() { +proto.ic_ledger.pb.v1.Send.prototype.hasFrom = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional TimeStamp timestamp = 2; - * @return {?proto.ic_ledger.pb.v1.TimeStamp} + * optional AccountIdentifier to = 2; + * @return {?proto.ic_ledger.pb.v1.AccountIdentifier} */ -proto.ic_ledger.pb.v1.Block.prototype.getTimestamp = function() { - return /** @type{?proto.ic_ledger.pb.v1.TimeStamp} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.TimeStamp, 2)); +proto.ic_ledger.pb.v1.Send.prototype.getTo = function() { + return /** @type{?proto.ic_ledger.pb.v1.AccountIdentifier} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.AccountIdentifier, 2)); }; /** - * @param {?proto.ic_ledger.pb.v1.TimeStamp|undefined} value - * @return {!proto.ic_ledger.pb.v1.Block} returns this + * @param {?proto.ic_ledger.pb.v1.AccountIdentifier|undefined} value + * @return {!proto.ic_ledger.pb.v1.Send} returns this */ -proto.ic_ledger.pb.v1.Block.prototype.setTimestamp = function(value) { +proto.ic_ledger.pb.v1.Send.prototype.setTo = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.Block} returns this + * @return {!proto.ic_ledger.pb.v1.Send} returns this */ -proto.ic_ledger.pb.v1.Block.prototype.clearTimestamp = function() { - return this.setTimestamp(undefined); +proto.ic_ledger.pb.v1.Send.prototype.clearTo = function() { + return this.setTo(undefined); }; @@ -4893,36 +9045,36 @@ proto.ic_ledger.pb.v1.Block.prototype.clearTimestamp = function() { * Returns whether this field is set. * @return {boolean} */ -proto.ic_ledger.pb.v1.Block.prototype.hasTimestamp = function() { +proto.ic_ledger.pb.v1.Send.prototype.hasTo = function() { return jspb.Message.getField(this, 2) != null; }; /** - * optional Transaction transaction = 3; - * @return {?proto.ic_ledger.pb.v1.Transaction} + * optional Tokens amount = 3; + * @return {?proto.ic_ledger.pb.v1.Tokens} */ -proto.ic_ledger.pb.v1.Block.prototype.getTransaction = function() { - return /** @type{?proto.ic_ledger.pb.v1.Transaction} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Transaction, 3)); +proto.ic_ledger.pb.v1.Send.prototype.getAmount = function() { + return /** @type{?proto.ic_ledger.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Tokens, 3)); }; /** - * @param {?proto.ic_ledger.pb.v1.Transaction|undefined} value - * @return {!proto.ic_ledger.pb.v1.Block} returns this + * @param {?proto.ic_ledger.pb.v1.Tokens|undefined} value + * @return {!proto.ic_ledger.pb.v1.Send} returns this */ -proto.ic_ledger.pb.v1.Block.prototype.setTransaction = function(value) { +proto.ic_ledger.pb.v1.Send.prototype.setAmount = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.Block} returns this + * @return {!proto.ic_ledger.pb.v1.Send} returns this */ -proto.ic_ledger.pb.v1.Block.prototype.clearTransaction = function() { - return this.setTransaction(undefined); +proto.ic_ledger.pb.v1.Send.prototype.clearAmount = function() { + return this.setAmount(undefined); }; @@ -4930,162 +9082,119 @@ proto.ic_ledger.pb.v1.Block.prototype.clearTransaction = function() { * Returns whether this field is set. * @return {boolean} */ -proto.ic_ledger.pb.v1.Block.prototype.hasTransaction = function() { +proto.ic_ledger.pb.v1.Send.prototype.hasAmount = function() { return jspb.Message.getField(this, 3) != 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} + * optional Tokens max_fee = 4; + * @return {?proto.ic_ledger.pb.v1.Tokens} */ -proto.ic_ledger.pb.v1.Hash.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.Hash.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.Send.prototype.getMaxFee = function() { + return /** @type{?proto.ic_ledger.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Tokens, 4)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.Tokens|undefined} value + * @return {!proto.ic_ledger.pb.v1.Send} returns this +*/ +proto.ic_ledger.pb.v1.Send.prototype.setMaxFee = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** - * 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.ic_ledger.pb.v1.Hash} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.Send} returns this */ -proto.ic_ledger.pb.v1.Hash.toObject = function(includeInstance, msg) { - var f, obj = { - hash: msg.getHash_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; +proto.ic_ledger.pb.v1.Send.prototype.clearMaxFee = function() { + return this.setMaxFee(undefined); }; -} /** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.Hash} + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_ledger.pb.v1.Hash.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.Hash; - return proto.ic_ledger.pb.v1.Hash.deserializeBinaryFromReader(msg, reader); +proto.ic_ledger.pb.v1.Send.prototype.hasMaxFee = function() { + return jspb.Message.getField(this, 4) != null; }; /** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.Hash} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.Hash} + * optional Approve approve = 5; + * @return {?proto.ic_ledger.pb.v1.Approve} */ -proto.ic_ledger.pb.v1.Hash.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.setHash(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; +proto.ic_ledger.pb.v1.Send.prototype.getApprove = function() { + return /** @type{?proto.ic_ledger.pb.v1.Approve} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Approve, 5)); }; /** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.ic_ledger.pb.v1.Hash.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.Hash.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); + * @param {?proto.ic_ledger.pb.v1.Approve|undefined} value + * @return {!proto.ic_ledger.pb.v1.Send} returns this +*/ +proto.ic_ledger.pb.v1.Send.prototype.setApprove = function(value) { + return jspb.Message.setOneofWrapperField(this, 5, proto.ic_ledger.pb.v1.Send.oneofGroups_[0], value); }; /** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.Hash} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.Send} returns this */ -proto.ic_ledger.pb.v1.Hash.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHash_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } +proto.ic_ledger.pb.v1.Send.prototype.clearApprove = function() { + return this.setApprove(undefined); }; /** - * optional bytes hash = 1; - * @return {!(string|Uint8Array)} + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_ledger.pb.v1.Hash.prototype.getHash = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.ic_ledger.pb.v1.Send.prototype.hasApprove = function() { + return jspb.Message.getField(this, 5) != null; }; /** - * optional bytes hash = 1; - * This is a type-conversion wrapper around `getHash()` - * @return {string} + * optional TransferFrom transfer_from = 6; + * @return {?proto.ic_ledger.pb.v1.TransferFrom} */ -proto.ic_ledger.pb.v1.Hash.prototype.getHash_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getHash())); +proto.ic_ledger.pb.v1.Send.prototype.getTransferFrom = function() { + return /** @type{?proto.ic_ledger.pb.v1.TransferFrom} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.TransferFrom, 6)); }; /** - * optional bytes hash = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getHash()` - * @return {!Uint8Array} + * @param {?proto.ic_ledger.pb.v1.TransferFrom|undefined} value + * @return {!proto.ic_ledger.pb.v1.Send} returns this +*/ +proto.ic_ledger.pb.v1.Send.prototype.setTransferFrom = function(value) { + return jspb.Message.setOneofWrapperField(this, 6, proto.ic_ledger.pb.v1.Send.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.Send} returns this */ -proto.ic_ledger.pb.v1.Hash.prototype.getHash_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getHash())); +proto.ic_ledger.pb.v1.Send.prototype.clearTransferFrom = function() { + return this.setTransferFrom(undefined); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.ic_ledger.pb.v1.Hash} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_ledger.pb.v1.Hash.prototype.setHash = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); +proto.ic_ledger.pb.v1.Send.prototype.hasTransferFrom = function() { + return jspb.Message.getField(this, 6) != null; }; @@ -5105,8 +9214,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.Account.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.Account.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.TransferFrom.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.TransferFrom.toObject(opt_includeInstance, this); }; @@ -5115,14 +9224,13 @@ proto.ic_ledger.pb.v1.Account.prototype.toObject = function(opt_includeInstance) * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.Account} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.TransferFrom} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.Account.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.TransferFrom.toObject = function(includeInstance, msg) { var f, obj = { - identifier: (f = msg.getIdentifier()) && proto.ic_ledger.pb.v1.AccountIdentifier.toObject(includeInstance, f), - balance: (f = msg.getBalance()) && proto.ic_ledger.pb.v1.ICPTs.toObject(includeInstance, f) + spender: (f = msg.getSpender()) && proto.ic_ledger.pb.v1.AccountIdentifier.toObject(includeInstance, f) }; if (includeInstance) { @@ -5136,23 +9244,23 @@ proto.ic_ledger.pb.v1.Account.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.Account} + * @return {!proto.ic_ledger.pb.v1.TransferFrom} */ -proto.ic_ledger.pb.v1.Account.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.TransferFrom.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.Account; - return proto.ic_ledger.pb.v1.Account.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.TransferFrom; + return proto.ic_ledger.pb.v1.TransferFrom.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.Account} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.TransferFrom} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.Account} + * @return {!proto.ic_ledger.pb.v1.TransferFrom} */ -proto.ic_ledger.pb.v1.Account.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.TransferFrom.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5162,12 +9270,7 @@ proto.ic_ledger.pb.v1.Account.deserializeBinaryFromReader = function(msg, reader case 1: var value = new proto.ic_ledger.pb.v1.AccountIdentifier; reader.readMessage(value,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader); - msg.setIdentifier(value); - break; - case 2: - var value = new proto.ic_ledger.pb.v1.ICPTs; - reader.readMessage(value,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader); - msg.setBalance(value); + msg.setSpender(value); break; default: reader.skipField(); @@ -5182,9 +9285,9 @@ proto.ic_ledger.pb.v1.Account.deserializeBinaryFromReader = function(msg, reader * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.Account.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.TransferFrom.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.Account.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.TransferFrom.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5192,13 +9295,13 @@ proto.ic_ledger.pb.v1.Account.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.Account} message + * @param {!proto.ic_ledger.pb.v1.TransferFrom} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.Account.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.TransferFrom.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getIdentifier(); + f = message.getSpender(); if (f != null) { writer.writeMessage( 1, @@ -5206,22 +9309,14 @@ proto.ic_ledger.pb.v1.Account.serializeBinaryToWriter = function(message, writer proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter ); } - f = message.getBalance(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter - ); - } }; /** - * optional AccountIdentifier identifier = 1; + * optional AccountIdentifier spender = 1; * @return {?proto.ic_ledger.pb.v1.AccountIdentifier} */ -proto.ic_ledger.pb.v1.Account.prototype.getIdentifier = function() { +proto.ic_ledger.pb.v1.TransferFrom.prototype.getSpender = function() { return /** @type{?proto.ic_ledger.pb.v1.AccountIdentifier} */ ( jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.AccountIdentifier, 1)); }; @@ -5229,19 +9324,19 @@ proto.ic_ledger.pb.v1.Account.prototype.getIdentifier = function() { /** * @param {?proto.ic_ledger.pb.v1.AccountIdentifier|undefined} value - * @return {!proto.ic_ledger.pb.v1.Account} returns this + * @return {!proto.ic_ledger.pb.v1.TransferFrom} returns this */ -proto.ic_ledger.pb.v1.Account.prototype.setIdentifier = function(value) { +proto.ic_ledger.pb.v1.TransferFrom.prototype.setSpender = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.Account} returns this + * @return {!proto.ic_ledger.pb.v1.TransferFrom} returns this */ -proto.ic_ledger.pb.v1.Account.prototype.clearIdentifier = function() { - return this.setIdentifier(undefined); +proto.ic_ledger.pb.v1.TransferFrom.prototype.clearSpender = function() { + return this.setSpender(undefined); }; @@ -5249,75 +9344,11 @@ proto.ic_ledger.pb.v1.Account.prototype.clearIdentifier = function() { * Returns whether this field is set. * @return {boolean} */ -proto.ic_ledger.pb.v1.Account.prototype.hasIdentifier = function() { +proto.ic_ledger.pb.v1.TransferFrom.prototype.hasSpender = function() { return jspb.Message.getField(this, 1) != null; }; -/** - * optional ICPTs balance = 2; - * @return {?proto.ic_ledger.pb.v1.ICPTs} - */ -proto.ic_ledger.pb.v1.Account.prototype.getBalance = function() { - return /** @type{?proto.ic_ledger.pb.v1.ICPTs} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.ICPTs, 2)); -}; - - -/** - * @param {?proto.ic_ledger.pb.v1.ICPTs|undefined} value - * @return {!proto.ic_ledger.pb.v1.Account} returns this -*/ -proto.ic_ledger.pb.v1.Account.prototype.setBalance = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.Account} returns this - */ -proto.ic_ledger.pb.v1.Account.prototype.clearBalance = function() { - return this.setBalance(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.ic_ledger.pb.v1.Account.prototype.hasBalance = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * 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.ic_ledger.pb.v1.Transaction.oneofGroups_ = [[1,2,3]]; - -/** - * @enum {number} - */ -proto.ic_ledger.pb.v1.Transaction.TransferCase = { - TRANSFER_NOT_SET: 0, - BURN: 1, - MINT: 2, - SEND: 3 -}; - -/** - * @return {proto.ic_ledger.pb.v1.Transaction.TransferCase} - */ -proto.ic_ledger.pb.v1.Transaction.prototype.getTransferCase = function() { - return /** @type {proto.ic_ledger.pb.v1.Transaction.TransferCase} */(jspb.Message.computeOneofCase(this, proto.ic_ledger.pb.v1.Transaction.oneofGroups_[0])); -}; @@ -5334,8 +9365,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.Transaction.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.Transaction.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.Approve.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.Approve.toObject(opt_includeInstance, this); }; @@ -5344,18 +9375,15 @@ proto.ic_ledger.pb.v1.Transaction.prototype.toObject = function(opt_includeInsta * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.Transaction} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.Approve} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.Transaction.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.Approve.toObject = function(includeInstance, msg) { var f, obj = { - burn: (f = msg.getBurn()) && proto.ic_ledger.pb.v1.Burn.toObject(includeInstance, f), - mint: (f = msg.getMint()) && proto.ic_ledger.pb.v1.Mint.toObject(includeInstance, f), - send: (f = msg.getSend()) && proto.ic_ledger.pb.v1.Send.toObject(includeInstance, f), - memo: (f = msg.getMemo()) && proto.ic_ledger.pb.v1.Memo.toObject(includeInstance, f), - createdAt: (f = msg.getCreatedAt()) && proto.ic_ledger.pb.v1.BlockHeight.toObject(includeInstance, f), - createdAtTime: (f = msg.getCreatedAtTime()) && proto.ic_ledger.pb.v1.TimeStamp.toObject(includeInstance, f) + allowance: (f = msg.getAllowance()) && proto.ic_ledger.pb.v1.Tokens.toObject(includeInstance, f), + expiresAt: (f = msg.getExpiresAt()) && proto.ic_ledger.pb.v1.TimeStamp.toObject(includeInstance, f), + expectedAllowance: (f = msg.getExpectedAllowance()) && proto.ic_ledger.pb.v1.Tokens.toObject(includeInstance, f) }; if (includeInstance) { @@ -5369,58 +9397,43 @@ proto.ic_ledger.pb.v1.Transaction.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.Transaction} + * @return {!proto.ic_ledger.pb.v1.Approve} */ -proto.ic_ledger.pb.v1.Transaction.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.Approve.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.Transaction; - return proto.ic_ledger.pb.v1.Transaction.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.Approve; + return proto.ic_ledger.pb.v1.Approve.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.Transaction} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.Approve} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.Transaction} + * @return {!proto.ic_ledger.pb.v1.Approve} */ -proto.ic_ledger.pb.v1.Transaction.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.Approve.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.ic_ledger.pb.v1.Burn; - reader.readMessage(value,proto.ic_ledger.pb.v1.Burn.deserializeBinaryFromReader); - msg.setBurn(value); - break; - case 2: - var value = new proto.ic_ledger.pb.v1.Mint; - reader.readMessage(value,proto.ic_ledger.pb.v1.Mint.deserializeBinaryFromReader); - msg.setMint(value); - break; - case 3: - var value = new proto.ic_ledger.pb.v1.Send; - reader.readMessage(value,proto.ic_ledger.pb.v1.Send.deserializeBinaryFromReader); - msg.setSend(value); - break; - case 4: - var value = new proto.ic_ledger.pb.v1.Memo; - reader.readMessage(value,proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader); - msg.setMemo(value); - break; - case 5: - var value = new proto.ic_ledger.pb.v1.BlockHeight; - reader.readMessage(value,proto.ic_ledger.pb.v1.BlockHeight.deserializeBinaryFromReader); - msg.setCreatedAt(value); + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.ic_ledger.pb.v1.Tokens; + reader.readMessage(value,proto.ic_ledger.pb.v1.Tokens.deserializeBinaryFromReader); + msg.setAllowance(value); break; - case 6: + case 2: var value = new proto.ic_ledger.pb.v1.TimeStamp; reader.readMessage(value,proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader); - msg.setCreatedAtTime(value); + msg.setExpiresAt(value); + break; + case 3: + var value = new proto.ic_ledger.pb.v1.Tokens; + reader.readMessage(value,proto.ic_ledger.pb.v1.Tokens.deserializeBinaryFromReader); + msg.setExpectedAllowance(value); break; default: reader.skipField(); @@ -5435,9 +9448,9 @@ proto.ic_ledger.pb.v1.Transaction.deserializeBinaryFromReader = function(msg, re * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.Transaction.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.Approve.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.Transaction.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.Approve.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5445,88 +9458,64 @@ proto.ic_ledger.pb.v1.Transaction.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.Transaction} message + * @param {!proto.ic_ledger.pb.v1.Approve} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.Transaction.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.Approve.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getBurn(); + f = message.getAllowance(); if (f != null) { writer.writeMessage( 1, f, - proto.ic_ledger.pb.v1.Burn.serializeBinaryToWriter + proto.ic_ledger.pb.v1.Tokens.serializeBinaryToWriter ); } - f = message.getMint(); + f = message.getExpiresAt(); if (f != null) { writer.writeMessage( 2, f, - proto.ic_ledger.pb.v1.Mint.serializeBinaryToWriter + proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter ); } - f = message.getSend(); + f = message.getExpectedAllowance(); if (f != null) { writer.writeMessage( 3, f, - proto.ic_ledger.pb.v1.Send.serializeBinaryToWriter - ); - } - f = message.getMemo(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter - ); - } - f = message.getCreatedAt(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.ic_ledger.pb.v1.BlockHeight.serializeBinaryToWriter - ); - } - f = message.getCreatedAtTime(); - if (f != null) { - writer.writeMessage( - 6, - f, - proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter + proto.ic_ledger.pb.v1.Tokens.serializeBinaryToWriter ); } }; /** - * optional Burn burn = 1; - * @return {?proto.ic_ledger.pb.v1.Burn} + * optional Tokens allowance = 1; + * @return {?proto.ic_ledger.pb.v1.Tokens} */ -proto.ic_ledger.pb.v1.Transaction.prototype.getBurn = function() { - return /** @type{?proto.ic_ledger.pb.v1.Burn} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Burn, 1)); +proto.ic_ledger.pb.v1.Approve.prototype.getAllowance = function() { + return /** @type{?proto.ic_ledger.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Tokens, 1)); }; /** - * @param {?proto.ic_ledger.pb.v1.Burn|undefined} value - * @return {!proto.ic_ledger.pb.v1.Transaction} returns this + * @param {?proto.ic_ledger.pb.v1.Tokens|undefined} value + * @return {!proto.ic_ledger.pb.v1.Approve} returns this */ -proto.ic_ledger.pb.v1.Transaction.prototype.setBurn = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.ic_ledger.pb.v1.Transaction.oneofGroups_[0], value); +proto.ic_ledger.pb.v1.Approve.prototype.setAllowance = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.Transaction} returns this + * @return {!proto.ic_ledger.pb.v1.Approve} returns this */ -proto.ic_ledger.pb.v1.Transaction.prototype.clearBurn = function() { - return this.setBurn(undefined); +proto.ic_ledger.pb.v1.Approve.prototype.clearAllowance = function() { + return this.setAllowance(undefined); }; @@ -5534,36 +9523,36 @@ proto.ic_ledger.pb.v1.Transaction.prototype.clearBurn = function() { * Returns whether this field is set. * @return {boolean} */ -proto.ic_ledger.pb.v1.Transaction.prototype.hasBurn = function() { +proto.ic_ledger.pb.v1.Approve.prototype.hasAllowance = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional Mint mint = 2; - * @return {?proto.ic_ledger.pb.v1.Mint} + * optional TimeStamp expires_at = 2; + * @return {?proto.ic_ledger.pb.v1.TimeStamp} */ -proto.ic_ledger.pb.v1.Transaction.prototype.getMint = function() { - return /** @type{?proto.ic_ledger.pb.v1.Mint} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Mint, 2)); +proto.ic_ledger.pb.v1.Approve.prototype.getExpiresAt = function() { + return /** @type{?proto.ic_ledger.pb.v1.TimeStamp} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.TimeStamp, 2)); }; /** - * @param {?proto.ic_ledger.pb.v1.Mint|undefined} value - * @return {!proto.ic_ledger.pb.v1.Transaction} returns this + * @param {?proto.ic_ledger.pb.v1.TimeStamp|undefined} value + * @return {!proto.ic_ledger.pb.v1.Approve} returns this */ -proto.ic_ledger.pb.v1.Transaction.prototype.setMint = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.ic_ledger.pb.v1.Transaction.oneofGroups_[0], value); +proto.ic_ledger.pb.v1.Approve.prototype.setExpiresAt = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.Transaction} returns this + * @return {!proto.ic_ledger.pb.v1.Approve} returns this */ -proto.ic_ledger.pb.v1.Transaction.prototype.clearMint = function() { - return this.setMint(undefined); +proto.ic_ledger.pb.v1.Approve.prototype.clearExpiresAt = function() { + return this.setExpiresAt(undefined); }; @@ -5571,36 +9560,36 @@ proto.ic_ledger.pb.v1.Transaction.prototype.clearMint = function() { * Returns whether this field is set. * @return {boolean} */ -proto.ic_ledger.pb.v1.Transaction.prototype.hasMint = function() { +proto.ic_ledger.pb.v1.Approve.prototype.hasExpiresAt = function() { return jspb.Message.getField(this, 2) != null; }; /** - * optional Send send = 3; - * @return {?proto.ic_ledger.pb.v1.Send} + * optional Tokens expected_allowance = 3; + * @return {?proto.ic_ledger.pb.v1.Tokens} */ -proto.ic_ledger.pb.v1.Transaction.prototype.getSend = function() { - return /** @type{?proto.ic_ledger.pb.v1.Send} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Send, 3)); +proto.ic_ledger.pb.v1.Approve.prototype.getExpectedAllowance = function() { + return /** @type{?proto.ic_ledger.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Tokens, 3)); }; /** - * @param {?proto.ic_ledger.pb.v1.Send|undefined} value - * @return {!proto.ic_ledger.pb.v1.Transaction} returns this + * @param {?proto.ic_ledger.pb.v1.Tokens|undefined} value + * @return {!proto.ic_ledger.pb.v1.Approve} returns this */ -proto.ic_ledger.pb.v1.Transaction.prototype.setSend = function(value) { - return jspb.Message.setOneofWrapperField(this, 3, proto.ic_ledger.pb.v1.Transaction.oneofGroups_[0], value); +proto.ic_ledger.pb.v1.Approve.prototype.setExpectedAllowance = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.Transaction} returns this + * @return {!proto.ic_ledger.pb.v1.Approve} returns this */ -proto.ic_ledger.pb.v1.Transaction.prototype.clearSend = function() { - return this.setSend(undefined); +proto.ic_ledger.pb.v1.Approve.prototype.clearExpectedAllowance = function() { + return this.setExpectedAllowance(undefined); }; @@ -5608,73 +9597,164 @@ proto.ic_ledger.pb.v1.Transaction.prototype.clearSend = function() { * Returns whether this field is set. * @return {boolean} */ -proto.ic_ledger.pb.v1.Transaction.prototype.hasSend = function() { +proto.ic_ledger.pb.v1.Approve.prototype.hasExpectedAllowance = function() { return jspb.Message.getField(this, 3) != null; }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional Memo memo = 4; - * @return {?proto.ic_ledger.pb.v1.Memo} + * 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.ic_ledger.pb.v1.Transaction.prototype.getMemo = function() { - return /** @type{?proto.ic_ledger.pb.v1.Memo} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Memo, 4)); +proto.ic_ledger.pb.v1.Mint.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.Mint.toObject(opt_includeInstance, this); }; /** - * @param {?proto.ic_ledger.pb.v1.Memo|undefined} value - * @return {!proto.ic_ledger.pb.v1.Transaction} returns this -*/ -proto.ic_ledger.pb.v1.Transaction.prototype.setMemo = function(value) { - return jspb.Message.setWrapperField(this, 4, value); + * 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.ic_ledger.pb.v1.Mint} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.Mint.toObject = function(includeInstance, msg) { + var f, obj = { + to: (f = msg.getTo()) && proto.ic_ledger.pb.v1.AccountIdentifier.toObject(includeInstance, f), + amount: (f = msg.getAmount()) && proto.ic_ledger.pb.v1.Tokens.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.Transaction} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_ledger.pb.v1.Mint} */ -proto.ic_ledger.pb.v1.Transaction.prototype.clearMemo = function() { - return this.setMemo(undefined); +proto.ic_ledger.pb.v1.Mint.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.Mint; + return proto.ic_ledger.pb.v1.Mint.deserializeBinaryFromReader(msg, reader); }; /** - * Returns whether this field is set. - * @return {boolean} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.Mint} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.Mint} */ -proto.ic_ledger.pb.v1.Transaction.prototype.hasMemo = function() { - return jspb.Message.getField(this, 4) != null; +proto.ic_ledger.pb.v1.Mint.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 2: + var value = new proto.ic_ledger.pb.v1.AccountIdentifier; + reader.readMessage(value,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader); + msg.setTo(value); + break; + case 3: + var value = new proto.ic_ledger.pb.v1.Tokens; + reader.readMessage(value,proto.ic_ledger.pb.v1.Tokens.deserializeBinaryFromReader); + msg.setAmount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; }; /** - * optional BlockHeight created_at = 5; - * @return {?proto.ic_ledger.pb.v1.BlockHeight} + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.Transaction.prototype.getCreatedAt = function() { - return /** @type{?proto.ic_ledger.pb.v1.BlockHeight} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.BlockHeight, 5)); +proto.ic_ledger.pb.v1.Mint.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.Mint.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); }; /** - * @param {?proto.ic_ledger.pb.v1.BlockHeight|undefined} value - * @return {!proto.ic_ledger.pb.v1.Transaction} returns this + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.Mint} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.Mint.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTo(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter + ); + } + f = message.getAmount(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.ic_ledger.pb.v1.Tokens.serializeBinaryToWriter + ); + } +}; + + +/** + * optional AccountIdentifier to = 2; + * @return {?proto.ic_ledger.pb.v1.AccountIdentifier} + */ +proto.ic_ledger.pb.v1.Mint.prototype.getTo = function() { + return /** @type{?proto.ic_ledger.pb.v1.AccountIdentifier} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.AccountIdentifier, 2)); +}; + + +/** + * @param {?proto.ic_ledger.pb.v1.AccountIdentifier|undefined} value + * @return {!proto.ic_ledger.pb.v1.Mint} returns this */ -proto.ic_ledger.pb.v1.Transaction.prototype.setCreatedAt = function(value) { - return jspb.Message.setWrapperField(this, 5, value); +proto.ic_ledger.pb.v1.Mint.prototype.setTo = function(value) { + return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.Transaction} returns this + * @return {!proto.ic_ledger.pb.v1.Mint} returns this */ -proto.ic_ledger.pb.v1.Transaction.prototype.clearCreatedAt = function() { - return this.setCreatedAt(undefined); +proto.ic_ledger.pb.v1.Mint.prototype.clearTo = function() { + return this.setTo(undefined); }; @@ -5682,36 +9762,36 @@ proto.ic_ledger.pb.v1.Transaction.prototype.clearCreatedAt = function() { * Returns whether this field is set. * @return {boolean} */ -proto.ic_ledger.pb.v1.Transaction.prototype.hasCreatedAt = function() { - return jspb.Message.getField(this, 5) != null; +proto.ic_ledger.pb.v1.Mint.prototype.hasTo = function() { + return jspb.Message.getField(this, 2) != null; }; /** - * optional TimeStamp created_at_time = 6; - * @return {?proto.ic_ledger.pb.v1.TimeStamp} + * optional Tokens amount = 3; + * @return {?proto.ic_ledger.pb.v1.Tokens} */ -proto.ic_ledger.pb.v1.Transaction.prototype.getCreatedAtTime = function() { - return /** @type{?proto.ic_ledger.pb.v1.TimeStamp} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.TimeStamp, 6)); +proto.ic_ledger.pb.v1.Mint.prototype.getAmount = function() { + return /** @type{?proto.ic_ledger.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Tokens, 3)); }; /** - * @param {?proto.ic_ledger.pb.v1.TimeStamp|undefined} value - * @return {!proto.ic_ledger.pb.v1.Transaction} returns this + * @param {?proto.ic_ledger.pb.v1.Tokens|undefined} value + * @return {!proto.ic_ledger.pb.v1.Mint} returns this */ -proto.ic_ledger.pb.v1.Transaction.prototype.setCreatedAtTime = function(value) { - return jspb.Message.setWrapperField(this, 6, value); +proto.ic_ledger.pb.v1.Mint.prototype.setAmount = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.Transaction} returns this + * @return {!proto.ic_ledger.pb.v1.Mint} returns this */ -proto.ic_ledger.pb.v1.Transaction.prototype.clearCreatedAtTime = function() { - return this.setCreatedAtTime(undefined); +proto.ic_ledger.pb.v1.Mint.prototype.clearAmount = function() { + return this.setAmount(undefined); }; @@ -5719,8 +9799,8 @@ proto.ic_ledger.pb.v1.Transaction.prototype.clearCreatedAtTime = function() { * Returns whether this field is set. * @return {boolean} */ -proto.ic_ledger.pb.v1.Transaction.prototype.hasCreatedAtTime = function() { - return jspb.Message.getField(this, 6) != null; +proto.ic_ledger.pb.v1.Mint.prototype.hasAmount = function() { + return jspb.Message.getField(this, 3) != null; }; @@ -5740,8 +9820,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.Send.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.Send.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.Burn.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.Burn.toObject(opt_includeInstance, this); }; @@ -5750,16 +9830,15 @@ proto.ic_ledger.pb.v1.Send.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.Send} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.Burn} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.Send.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.Burn.toObject = function(includeInstance, msg) { var f, obj = { from: (f = msg.getFrom()) && proto.ic_ledger.pb.v1.AccountIdentifier.toObject(includeInstance, f), - to: (f = msg.getTo()) && proto.ic_ledger.pb.v1.AccountIdentifier.toObject(includeInstance, f), - amount: (f = msg.getAmount()) && proto.ic_ledger.pb.v1.ICPTs.toObject(includeInstance, f), - maxFee: (f = msg.getMaxFee()) && proto.ic_ledger.pb.v1.ICPTs.toObject(includeInstance, f) + amount: (f = msg.getAmount()) && proto.ic_ledger.pb.v1.Tokens.toObject(includeInstance, f), + spender: (f = msg.getSpender()) && proto.ic_ledger.pb.v1.AccountIdentifier.toObject(includeInstance, f) }; if (includeInstance) { @@ -5773,23 +9852,23 @@ proto.ic_ledger.pb.v1.Send.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.Send} + * @return {!proto.ic_ledger.pb.v1.Burn} */ -proto.ic_ledger.pb.v1.Send.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.Burn.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.Send; - return proto.ic_ledger.pb.v1.Send.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.Burn; + return proto.ic_ledger.pb.v1.Burn.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.Send} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.Burn} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.Send} + * @return {!proto.ic_ledger.pb.v1.Burn} */ -proto.ic_ledger.pb.v1.Send.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.Burn.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -5801,20 +9880,15 @@ proto.ic_ledger.pb.v1.Send.deserializeBinaryFromReader = function(msg, reader) { reader.readMessage(value,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader); msg.setFrom(value); break; - case 2: - var value = new proto.ic_ledger.pb.v1.AccountIdentifier; - reader.readMessage(value,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader); - msg.setTo(value); - break; case 3: - var value = new proto.ic_ledger.pb.v1.ICPTs; - reader.readMessage(value,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader); + var value = new proto.ic_ledger.pb.v1.Tokens; + reader.readMessage(value,proto.ic_ledger.pb.v1.Tokens.deserializeBinaryFromReader); msg.setAmount(value); break; case 4: - var value = new proto.ic_ledger.pb.v1.ICPTs; - reader.readMessage(value,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader); - msg.setMaxFee(value); + var value = new proto.ic_ledger.pb.v1.AccountIdentifier; + reader.readMessage(value,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader); + msg.setSpender(value); break; default: reader.skipField(); @@ -5829,9 +9903,9 @@ proto.ic_ledger.pb.v1.Send.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.Send.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.Burn.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.Send.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.Burn.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -5839,11 +9913,11 @@ proto.ic_ledger.pb.v1.Send.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.Send} message + * @param {!proto.ic_ledger.pb.v1.Burn} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.Send.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.Burn.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getFrom(); if (f != null) { @@ -5853,28 +9927,20 @@ proto.ic_ledger.pb.v1.Send.serializeBinaryToWriter = function(message, writer) { proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter ); } - f = message.getTo(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter - ); - } f = message.getAmount(); if (f != null) { writer.writeMessage( 3, f, - proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter + proto.ic_ledger.pb.v1.Tokens.serializeBinaryToWriter ); } - f = message.getMaxFee(); + f = message.getSpender(); if (f != null) { writer.writeMessage( 4, f, - proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter + proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter ); } }; @@ -5884,7 +9950,7 @@ proto.ic_ledger.pb.v1.Send.serializeBinaryToWriter = function(message, writer) { * optional AccountIdentifier from = 1; * @return {?proto.ic_ledger.pb.v1.AccountIdentifier} */ -proto.ic_ledger.pb.v1.Send.prototype.getFrom = function() { +proto.ic_ledger.pb.v1.Burn.prototype.getFrom = function() { return /** @type{?proto.ic_ledger.pb.v1.AccountIdentifier} */ ( jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.AccountIdentifier, 1)); }; @@ -5892,18 +9958,18 @@ proto.ic_ledger.pb.v1.Send.prototype.getFrom = function() { /** * @param {?proto.ic_ledger.pb.v1.AccountIdentifier|undefined} value - * @return {!proto.ic_ledger.pb.v1.Send} returns this + * @return {!proto.ic_ledger.pb.v1.Burn} returns this */ -proto.ic_ledger.pb.v1.Send.prototype.setFrom = function(value) { +proto.ic_ledger.pb.v1.Burn.prototype.setFrom = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.Send} returns this + * @return {!proto.ic_ledger.pb.v1.Burn} returns this */ -proto.ic_ledger.pb.v1.Send.prototype.clearFrom = function() { +proto.ic_ledger.pb.v1.Burn.prototype.clearFrom = function() { return this.setFrom(undefined); }; @@ -5912,36 +9978,36 @@ proto.ic_ledger.pb.v1.Send.prototype.clearFrom = function() { * Returns whether this field is set. * @return {boolean} */ -proto.ic_ledger.pb.v1.Send.prototype.hasFrom = function() { +proto.ic_ledger.pb.v1.Burn.prototype.hasFrom = function() { return jspb.Message.getField(this, 1) != null; }; /** - * optional AccountIdentifier to = 2; - * @return {?proto.ic_ledger.pb.v1.AccountIdentifier} + * optional Tokens amount = 3; + * @return {?proto.ic_ledger.pb.v1.Tokens} */ -proto.ic_ledger.pb.v1.Send.prototype.getTo = function() { - return /** @type{?proto.ic_ledger.pb.v1.AccountIdentifier} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.AccountIdentifier, 2)); +proto.ic_ledger.pb.v1.Burn.prototype.getAmount = function() { + return /** @type{?proto.ic_ledger.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Tokens, 3)); }; /** - * @param {?proto.ic_ledger.pb.v1.AccountIdentifier|undefined} value - * @return {!proto.ic_ledger.pb.v1.Send} returns this + * @param {?proto.ic_ledger.pb.v1.Tokens|undefined} value + * @return {!proto.ic_ledger.pb.v1.Burn} returns this */ -proto.ic_ledger.pb.v1.Send.prototype.setTo = function(value) { - return jspb.Message.setWrapperField(this, 2, value); +proto.ic_ledger.pb.v1.Burn.prototype.setAmount = function(value) { + return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.Send} returns this + * @return {!proto.ic_ledger.pb.v1.Burn} returns this */ -proto.ic_ledger.pb.v1.Send.prototype.clearTo = function() { - return this.setTo(undefined); +proto.ic_ledger.pb.v1.Burn.prototype.clearAmount = function() { + return this.setAmount(undefined); }; @@ -5949,36 +10015,36 @@ proto.ic_ledger.pb.v1.Send.prototype.clearTo = function() { * Returns whether this field is set. * @return {boolean} */ -proto.ic_ledger.pb.v1.Send.prototype.hasTo = function() { - return jspb.Message.getField(this, 2) != null; +proto.ic_ledger.pb.v1.Burn.prototype.hasAmount = function() { + return jspb.Message.getField(this, 3) != null; }; /** - * optional ICPTs amount = 3; - * @return {?proto.ic_ledger.pb.v1.ICPTs} + * optional AccountIdentifier spender = 4; + * @return {?proto.ic_ledger.pb.v1.AccountIdentifier} */ -proto.ic_ledger.pb.v1.Send.prototype.getAmount = function() { - return /** @type{?proto.ic_ledger.pb.v1.ICPTs} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.ICPTs, 3)); +proto.ic_ledger.pb.v1.Burn.prototype.getSpender = function() { + return /** @type{?proto.ic_ledger.pb.v1.AccountIdentifier} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.AccountIdentifier, 4)); }; /** - * @param {?proto.ic_ledger.pb.v1.ICPTs|undefined} value - * @return {!proto.ic_ledger.pb.v1.Send} returns this + * @param {?proto.ic_ledger.pb.v1.AccountIdentifier|undefined} value + * @return {!proto.ic_ledger.pb.v1.Burn} returns this */ -proto.ic_ledger.pb.v1.Send.prototype.setAmount = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.ic_ledger.pb.v1.Burn.prototype.setSpender = function(value) { + return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.Send} returns this + * @return {!proto.ic_ledger.pb.v1.Burn} returns this */ -proto.ic_ledger.pb.v1.Send.prototype.clearAmount = function() { - return this.setAmount(undefined); +proto.ic_ledger.pb.v1.Burn.prototype.clearSpender = function() { + return this.setSpender(undefined); }; @@ -5986,45 +10052,162 @@ proto.ic_ledger.pb.v1.Send.prototype.clearAmount = function() { * Returns whether this field is set. * @return {boolean} */ -proto.ic_ledger.pb.v1.Send.prototype.hasAmount = function() { - return jspb.Message.getField(this, 3) != null; +proto.ic_ledger.pb.v1.Burn.prototype.hasSpender = function() { + return jspb.Message.getField(this, 4) != null; }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { /** - * optional ICPTs max_fee = 4; - * @return {?proto.ic_ledger.pb.v1.ICPTs} + * 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.ic_ledger.pb.v1.Send.prototype.getMaxFee = function() { - return /** @type{?proto.ic_ledger.pb.v1.ICPTs} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.ICPTs, 4)); +proto.ic_ledger.pb.v1.AccountIdentifier.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.AccountIdentifier.toObject(opt_includeInstance, this); }; /** - * @param {?proto.ic_ledger.pb.v1.ICPTs|undefined} value - * @return {!proto.ic_ledger.pb.v1.Send} returns this -*/ -proto.ic_ledger.pb.v1.Send.prototype.setMaxFee = function(value) { - return jspb.Message.setWrapperField(this, 4, value); + * 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.ic_ledger.pb.v1.AccountIdentifier} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.AccountIdentifier.toObject = function(includeInstance, msg) { + var f, obj = { + hash: msg.getHash_asB64() + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; }; +} /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.Send} returns this + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.ic_ledger.pb.v1.AccountIdentifier} */ -proto.ic_ledger.pb.v1.Send.prototype.clearMaxFee = function() { - return this.setMaxFee(undefined); +proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.ic_ledger.pb.v1.AccountIdentifier; + return proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader(msg, reader); }; /** - * Returns whether this field is set. - * @return {boolean} + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.ic_ledger.pb.v1.AccountIdentifier} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.ic_ledger.pb.v1.AccountIdentifier} */ -proto.ic_ledger.pb.v1.Send.prototype.hasMaxFee = function() { - return jspb.Message.getField(this, 4) != null; +proto.ic_ledger.pb.v1.AccountIdentifier.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.setHash(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.ic_ledger.pb.v1.AccountIdentifier.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.ic_ledger.pb.v1.AccountIdentifier} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getHash_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } +}; + + +/** + * optional bytes hash = 1; + * @return {!(string|Uint8Array)} + */ +proto.ic_ledger.pb.v1.AccountIdentifier.prototype.getHash = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes hash = 1; + * This is a type-conversion wrapper around `getHash()` + * @return {string} + */ +proto.ic_ledger.pb.v1.AccountIdentifier.prototype.getHash_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getHash())); +}; + + +/** + * optional bytes hash = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getHash()` + * @return {!Uint8Array} + */ +proto.ic_ledger.pb.v1.AccountIdentifier.prototype.getHash_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getHash())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.ic_ledger.pb.v1.AccountIdentifier} returns this + */ +proto.ic_ledger.pb.v1.AccountIdentifier.prototype.setHash = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -6044,8 +10227,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.Mint.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.Mint.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.Subaccount.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.Subaccount.toObject(opt_includeInstance, this); }; @@ -6054,14 +10237,13 @@ proto.ic_ledger.pb.v1.Mint.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.Mint} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.Subaccount} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.Mint.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.Subaccount.toObject = function(includeInstance, msg) { var f, obj = { - to: (f = msg.getTo()) && proto.ic_ledger.pb.v1.AccountIdentifier.toObject(includeInstance, f), - amount: (f = msg.getAmount()) && proto.ic_ledger.pb.v1.ICPTs.toObject(includeInstance, f) + subAccount: msg.getSubAccount_asB64() }; if (includeInstance) { @@ -6075,38 +10257,32 @@ proto.ic_ledger.pb.v1.Mint.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.Mint} + * @return {!proto.ic_ledger.pb.v1.Subaccount} */ -proto.ic_ledger.pb.v1.Mint.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.Subaccount.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.Mint; - return proto.ic_ledger.pb.v1.Mint.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.Subaccount; + return proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.Mint} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.Subaccount} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.Mint} + * @return {!proto.ic_ledger.pb.v1.Subaccount} */ -proto.ic_ledger.pb.v1.Mint.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 2: - var value = new proto.ic_ledger.pb.v1.AccountIdentifier; - reader.readMessage(value,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader); - msg.setTo(value); - break; - case 3: - var value = new proto.ic_ledger.pb.v1.ICPTs; - reader.readMessage(value,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader); - msg.setAmount(value); + case 1: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setSubAccount(value); break; default: reader.skipField(); @@ -6121,9 +10297,9 @@ proto.ic_ledger.pb.v1.Mint.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.Mint.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.Subaccount.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.Mint.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6131,102 +10307,61 @@ proto.ic_ledger.pb.v1.Mint.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.Mint} message + * @param {!proto.ic_ledger.pb.v1.Subaccount} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.Mint.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getTo(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter - ); - } - f = message.getAmount(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter + f = message.getSubAccount_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f ); } }; /** - * optional AccountIdentifier to = 2; - * @return {?proto.ic_ledger.pb.v1.AccountIdentifier} - */ -proto.ic_ledger.pb.v1.Mint.prototype.getTo = function() { - return /** @type{?proto.ic_ledger.pb.v1.AccountIdentifier} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.AccountIdentifier, 2)); -}; - - -/** - * @param {?proto.ic_ledger.pb.v1.AccountIdentifier|undefined} value - * @return {!proto.ic_ledger.pb.v1.Mint} returns this -*/ -proto.ic_ledger.pb.v1.Mint.prototype.setTo = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.Mint} returns this - */ -proto.ic_ledger.pb.v1.Mint.prototype.clearTo = function() { - return this.setTo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} + * optional bytes sub_account = 1; + * @return {!(string|Uint8Array)} */ -proto.ic_ledger.pb.v1.Mint.prototype.hasTo = function() { - return jspb.Message.getField(this, 2) != null; +proto.ic_ledger.pb.v1.Subaccount.prototype.getSubAccount = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * optional ICPTs amount = 3; - * @return {?proto.ic_ledger.pb.v1.ICPTs} + * optional bytes sub_account = 1; + * This is a type-conversion wrapper around `getSubAccount()` + * @return {string} */ -proto.ic_ledger.pb.v1.Mint.prototype.getAmount = function() { - return /** @type{?proto.ic_ledger.pb.v1.ICPTs} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.ICPTs, 3)); -}; - - -/** - * @param {?proto.ic_ledger.pb.v1.ICPTs|undefined} value - * @return {!proto.ic_ledger.pb.v1.Mint} returns this -*/ -proto.ic_ledger.pb.v1.Mint.prototype.setAmount = function(value) { - return jspb.Message.setWrapperField(this, 3, value); +proto.ic_ledger.pb.v1.Subaccount.prototype.getSubAccount_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getSubAccount())); }; /** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.Mint} returns this + * optional bytes sub_account = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getSubAccount()` + * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.Mint.prototype.clearAmount = function() { - return this.setAmount(undefined); +proto.ic_ledger.pb.v1.Subaccount.prototype.getSubAccount_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSubAccount())); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {!(string|Uint8Array)} value + * @return {!proto.ic_ledger.pb.v1.Subaccount} returns this */ -proto.ic_ledger.pb.v1.Mint.prototype.hasAmount = function() { - return jspb.Message.getField(this, 3) != null; +proto.ic_ledger.pb.v1.Subaccount.prototype.setSubAccount = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -6246,8 +10381,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.Burn.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.Burn.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.Memo.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.Memo.toObject(opt_includeInstance, this); }; @@ -6256,14 +10391,13 @@ proto.ic_ledger.pb.v1.Burn.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.Burn} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.Memo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.Burn.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.Memo.toObject = function(includeInstance, msg) { var f, obj = { - from: (f = msg.getFrom()) && proto.ic_ledger.pb.v1.AccountIdentifier.toObject(includeInstance, f), - amount: (f = msg.getAmount()) && proto.ic_ledger.pb.v1.ICPTs.toObject(includeInstance, f) + memo: jspb.Message.getFieldWithDefault(msg, 1, 0) }; if (includeInstance) { @@ -6277,23 +10411,23 @@ proto.ic_ledger.pb.v1.Burn.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.Burn} + * @return {!proto.ic_ledger.pb.v1.Memo} */ -proto.ic_ledger.pb.v1.Burn.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.Memo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.Burn; - return proto.ic_ledger.pb.v1.Burn.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.Memo; + return proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.Burn} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.Memo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.Burn} + * @return {!proto.ic_ledger.pb.v1.Memo} */ -proto.ic_ledger.pb.v1.Burn.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6301,14 +10435,8 @@ proto.ic_ledger.pb.v1.Burn.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = new proto.ic_ledger.pb.v1.AccountIdentifier; - reader.readMessage(value,proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader); - msg.setFrom(value); - break; - case 3: - var value = new proto.ic_ledger.pb.v1.ICPTs; - reader.readMessage(value,proto.ic_ledger.pb.v1.ICPTs.deserializeBinaryFromReader); - msg.setAmount(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setMemo(value); break; default: reader.skipField(); @@ -6323,9 +10451,9 @@ proto.ic_ledger.pb.v1.Burn.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.Burn.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.Memo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.Burn.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6333,102 +10461,37 @@ proto.ic_ledger.pb.v1.Burn.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.Burn} message + * @param {!proto.ic_ledger.pb.v1.Memo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.Burn.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getFrom(); - if (f != null) { - writer.writeMessage( + f = message.getMemo(); + if (f !== 0) { + writer.writeUint64( 1, - f, - proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter - ); - } - f = message.getAmount(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.ic_ledger.pb.v1.ICPTs.serializeBinaryToWriter + f ); } }; /** - * optional AccountIdentifier from = 1; - * @return {?proto.ic_ledger.pb.v1.AccountIdentifier} - */ -proto.ic_ledger.pb.v1.Burn.prototype.getFrom = function() { - return /** @type{?proto.ic_ledger.pb.v1.AccountIdentifier} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.AccountIdentifier, 1)); -}; - - -/** - * @param {?proto.ic_ledger.pb.v1.AccountIdentifier|undefined} value - * @return {!proto.ic_ledger.pb.v1.Burn} returns this -*/ -proto.ic_ledger.pb.v1.Burn.prototype.setFrom = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.Burn} returns this - */ -proto.ic_ledger.pb.v1.Burn.prototype.clearFrom = function() { - return this.setFrom(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.ic_ledger.pb.v1.Burn.prototype.hasFrom = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional ICPTs amount = 3; - * @return {?proto.ic_ledger.pb.v1.ICPTs} - */ -proto.ic_ledger.pb.v1.Burn.prototype.getAmount = function() { - return /** @type{?proto.ic_ledger.pb.v1.ICPTs} */ ( - jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.ICPTs, 3)); -}; - - -/** - * @param {?proto.ic_ledger.pb.v1.ICPTs|undefined} value - * @return {!proto.ic_ledger.pb.v1.Burn} returns this -*/ -proto.ic_ledger.pb.v1.Burn.prototype.setAmount = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.ic_ledger.pb.v1.Burn} returns this + * optional uint64 memo = 1; + * @return {number} */ -proto.ic_ledger.pb.v1.Burn.prototype.clearAmount = function() { - return this.setAmount(undefined); +proto.ic_ledger.pb.v1.Memo.prototype.getMemo = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * Returns whether this field is set. - * @return {boolean} + * @param {number} value + * @return {!proto.ic_ledger.pb.v1.Memo} returns this */ -proto.ic_ledger.pb.v1.Burn.prototype.hasAmount = function() { - return jspb.Message.getField(this, 3) != null; +proto.ic_ledger.pb.v1.Memo.prototype.setMemo = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; @@ -6448,8 +10511,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.AccountIdentifier.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.AccountIdentifier.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.Icrc1Memo.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.Icrc1Memo.toObject(opt_includeInstance, this); }; @@ -6458,13 +10521,13 @@ proto.ic_ledger.pb.v1.AccountIdentifier.prototype.toObject = function(opt_includ * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.AccountIdentifier} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.Icrc1Memo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.AccountIdentifier.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.Icrc1Memo.toObject = function(includeInstance, msg) { var f, obj = { - hash: msg.getHash_asB64() + memo: msg.getMemo_asB64() }; if (includeInstance) { @@ -6478,23 +10541,23 @@ proto.ic_ledger.pb.v1.AccountIdentifier.toObject = function(includeInstance, msg /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.AccountIdentifier} + * @return {!proto.ic_ledger.pb.v1.Icrc1Memo} */ -proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.Icrc1Memo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.AccountIdentifier; - return proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.Icrc1Memo; + return proto.ic_ledger.pb.v1.Icrc1Memo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.AccountIdentifier} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.Icrc1Memo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.AccountIdentifier} + * @return {!proto.ic_ledger.pb.v1.Icrc1Memo} */ -proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.Icrc1Memo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6503,7 +10566,7 @@ proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader = function(m switch (field) { case 1: var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setHash(value); + msg.setMemo(value); break; default: reader.skipField(); @@ -6518,9 +10581,9 @@ proto.ic_ledger.pb.v1.AccountIdentifier.deserializeBinaryFromReader = function(m * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.AccountIdentifier.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.Icrc1Memo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.Icrc1Memo.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6528,13 +10591,13 @@ proto.ic_ledger.pb.v1.AccountIdentifier.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.AccountIdentifier} message + * @param {!proto.ic_ledger.pb.v1.Icrc1Memo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.Icrc1Memo.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getHash_asU8(); + f = message.getMemo_asU8(); if (f.length > 0) { writer.writeBytes( 1, @@ -6545,43 +10608,43 @@ proto.ic_ledger.pb.v1.AccountIdentifier.serializeBinaryToWriter = function(messa /** - * optional bytes hash = 1; + * optional bytes memo = 1; * @return {!(string|Uint8Array)} */ -proto.ic_ledger.pb.v1.AccountIdentifier.prototype.getHash = function() { +proto.ic_ledger.pb.v1.Icrc1Memo.prototype.getMemo = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * optional bytes hash = 1; - * This is a type-conversion wrapper around `getHash()` + * optional bytes memo = 1; + * This is a type-conversion wrapper around `getMemo()` * @return {string} */ -proto.ic_ledger.pb.v1.AccountIdentifier.prototype.getHash_asB64 = function() { +proto.ic_ledger.pb.v1.Icrc1Memo.prototype.getMemo_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getHash())); + this.getMemo())); }; /** - * optional bytes hash = 1; + * optional bytes memo = 1; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getHash()` + * This is a type-conversion wrapper around `getMemo()` * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.AccountIdentifier.prototype.getHash_asU8 = function() { +proto.ic_ledger.pb.v1.Icrc1Memo.prototype.getMemo_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getHash())); + this.getMemo())); }; /** * @param {!(string|Uint8Array)} value - * @return {!proto.ic_ledger.pb.v1.AccountIdentifier} returns this + * @return {!proto.ic_ledger.pb.v1.Icrc1Memo} returns this */ -proto.ic_ledger.pb.v1.AccountIdentifier.prototype.setHash = function(value) { +proto.ic_ledger.pb.v1.Icrc1Memo.prototype.setMemo = function(value) { return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -6602,8 +10665,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.Subaccount.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.Subaccount.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.TimeStamp.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.TimeStamp.toObject(opt_includeInstance, this); }; @@ -6612,13 +10675,13 @@ proto.ic_ledger.pb.v1.Subaccount.prototype.toObject = function(opt_includeInstan * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.Subaccount} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.TimeStamp} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.Subaccount.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.TimeStamp.toObject = function(includeInstance, msg) { var f, obj = { - subAccount: msg.getSubAccount_asB64() + timestampNanos: jspb.Message.getFieldWithDefault(msg, 1, 0) }; if (includeInstance) { @@ -6632,23 +10695,23 @@ proto.ic_ledger.pb.v1.Subaccount.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.Subaccount} + * @return {!proto.ic_ledger.pb.v1.TimeStamp} */ -proto.ic_ledger.pb.v1.Subaccount.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.TimeStamp.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.Subaccount; - return proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.TimeStamp; + return proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.Subaccount} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.TimeStamp} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.Subaccount} + * @return {!proto.ic_ledger.pb.v1.TimeStamp} */ -proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6656,8 +10719,8 @@ proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader = function(msg, rea var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSubAccount(value); + var value = /** @type {number} */ (reader.readUint64()); + msg.setTimestampNanos(value); break; default: reader.skipField(); @@ -6672,9 +10735,9 @@ proto.ic_ledger.pb.v1.Subaccount.deserializeBinaryFromReader = function(msg, rea * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.Subaccount.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.TimeStamp.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6682,15 +10745,15 @@ proto.ic_ledger.pb.v1.Subaccount.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.Subaccount} message + * @param {!proto.ic_ledger.pb.v1.TimeStamp} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getSubAccount_asU8(); - if (f.length > 0) { - writer.writeBytes( + f = message.getTimestampNanos(); + if (f !== 0) { + writer.writeUint64( 1, f ); @@ -6699,44 +10762,20 @@ proto.ic_ledger.pb.v1.Subaccount.serializeBinaryToWriter = function(message, wri /** - * optional bytes sub_account = 1; - * @return {!(string|Uint8Array)} - */ -proto.ic_ledger.pb.v1.Subaccount.prototype.getSubAccount = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes sub_account = 1; - * This is a type-conversion wrapper around `getSubAccount()` - * @return {string} - */ -proto.ic_ledger.pb.v1.Subaccount.prototype.getSubAccount_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSubAccount())); -}; - - -/** - * optional bytes sub_account = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSubAccount()` - * @return {!Uint8Array} + * optional uint64 timestamp_nanos = 1; + * @return {number} */ -proto.ic_ledger.pb.v1.Subaccount.prototype.getSubAccount_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSubAccount())); +proto.ic_ledger.pb.v1.TimeStamp.prototype.getTimestampNanos = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.ic_ledger.pb.v1.Subaccount} returns this + * @param {number} value + * @return {!proto.ic_ledger.pb.v1.TimeStamp} returns this */ -proto.ic_ledger.pb.v1.Subaccount.prototype.setSubAccount = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); +proto.ic_ledger.pb.v1.TimeStamp.prototype.setTimestampNanos = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); }; @@ -6756,8 +10795,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.Memo.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.Memo.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.Certification.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.Certification.toObject(opt_includeInstance, this); }; @@ -6766,13 +10805,13 @@ proto.ic_ledger.pb.v1.Memo.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.Memo} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.Certification} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.Memo.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.Certification.toObject = function(includeInstance, msg) { var f, obj = { - memo: jspb.Message.getFieldWithDefault(msg, 1, "0") + certification: msg.getCertification_asB64() }; if (includeInstance) { @@ -6786,23 +10825,23 @@ proto.ic_ledger.pb.v1.Memo.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.Memo} + * @return {!proto.ic_ledger.pb.v1.Certification} */ -proto.ic_ledger.pb.v1.Memo.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.Certification.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.Memo; - return proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.Certification; + return proto.ic_ledger.pb.v1.Certification.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.Memo} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.Certification} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.Memo} + * @return {!proto.ic_ledger.pb.v1.Certification} */ -proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.Certification.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -6810,8 +10849,8 @@ proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setMemo(value); + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setCertification(value); break; default: reader.skipField(); @@ -6826,9 +10865,9 @@ proto.ic_ledger.pb.v1.Memo.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.Memo.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.Certification.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.Certification.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6836,15 +10875,15 @@ proto.ic_ledger.pb.v1.Memo.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.Memo} message + * @param {!proto.ic_ledger.pb.v1.Certification} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.Certification.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getMemo(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( + f = message.getCertification_asU8(); + if (f.length > 0) { + writer.writeBytes( 1, f ); @@ -6853,20 +10892,44 @@ proto.ic_ledger.pb.v1.Memo.serializeBinaryToWriter = function(message, writer) { /** - * optional uint64 memo = 1; + * optional bytes certification = 1; + * @return {!(string|Uint8Array)} + */ +proto.ic_ledger.pb.v1.Certification.prototype.getCertification = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes certification = 1; + * This is a type-conversion wrapper around `getCertification()` * @return {string} */ -proto.ic_ledger.pb.v1.Memo.prototype.getMemo = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +proto.ic_ledger.pb.v1.Certification.prototype.getCertification_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getCertification())); }; /** - * @param {string} value - * @return {!proto.ic_ledger.pb.v1.Memo} returns this + * optional bytes certification = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getCertification()` + * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.Memo.prototype.setMemo = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); +proto.ic_ledger.pb.v1.Certification.prototype.getCertification_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getCertification())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.ic_ledger.pb.v1.Certification} returns this + */ +proto.ic_ledger.pb.v1.Certification.prototype.setCertification = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -6886,8 +10949,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.TimeStamp.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.TimeStamp.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.TransferFeeRequest.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.TransferFeeRequest.toObject(opt_includeInstance, this); }; @@ -6896,13 +10959,13 @@ proto.ic_ledger.pb.v1.TimeStamp.prototype.toObject = function(opt_includeInstanc * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.TimeStamp} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.TransferFeeRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.TimeStamp.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.TransferFeeRequest.toObject = function(includeInstance, msg) { var f, obj = { - timestampNanos: jspb.Message.getFieldWithDefault(msg, 1, "0") + }; if (includeInstance) { @@ -6916,33 +10979,29 @@ proto.ic_ledger.pb.v1.TimeStamp.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.TimeStamp} + * @return {!proto.ic_ledger.pb.v1.TransferFeeRequest} */ -proto.ic_ledger.pb.v1.TimeStamp.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.TransferFeeRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.TimeStamp; - return proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.TransferFeeRequest; + return proto.ic_ledger.pb.v1.TransferFeeRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.TimeStamp} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.TransferFeeRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.TimeStamp} + * @return {!proto.ic_ledger.pb.v1.TransferFeeRequest} */ -proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.TransferFeeRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setTimestampNanos(value); - break; default: reader.skipField(); break; @@ -6956,9 +11015,9 @@ proto.ic_ledger.pb.v1.TimeStamp.deserializeBinaryFromReader = function(msg, read * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.TimeStamp.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.TransferFeeRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.TransferFeeRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -6966,37 +11025,12 @@ proto.ic_ledger.pb.v1.TimeStamp.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.TimeStamp} message + * @param {!proto.ic_ledger.pb.v1.TransferFeeRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.TimeStamp.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.TransferFeeRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getTimestampNanos(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } -}; - - -/** - * optional uint64 timestamp_nanos = 1; - * @return {string} - */ -proto.ic_ledger.pb.v1.TimeStamp.prototype.getTimestampNanos = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.ic_ledger.pb.v1.TimeStamp} returns this - */ -proto.ic_ledger.pb.v1.TimeStamp.prototype.setTimestampNanos = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); }; @@ -7016,8 +11050,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.ic_ledger.pb.v1.Certification.prototype.toObject = function(opt_includeInstance) { - return proto.ic_ledger.pb.v1.Certification.toObject(opt_includeInstance, this); +proto.ic_ledger.pb.v1.TransferFeeResponse.prototype.toObject = function(opt_includeInstance) { + return proto.ic_ledger.pb.v1.TransferFeeResponse.toObject(opt_includeInstance, this); }; @@ -7026,13 +11060,13 @@ proto.ic_ledger.pb.v1.Certification.prototype.toObject = function(opt_includeIns * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.ic_ledger.pb.v1.Certification} msg The msg instance to transform. + * @param {!proto.ic_ledger.pb.v1.TransferFeeResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.Certification.toObject = function(includeInstance, msg) { +proto.ic_ledger.pb.v1.TransferFeeResponse.toObject = function(includeInstance, msg) { var f, obj = { - certification: msg.getCertification_asB64() + transferFee: (f = msg.getTransferFee()) && proto.ic_ledger.pb.v1.Tokens.toObject(includeInstance, f) }; if (includeInstance) { @@ -7046,23 +11080,23 @@ proto.ic_ledger.pb.v1.Certification.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.ic_ledger.pb.v1.Certification} + * @return {!proto.ic_ledger.pb.v1.TransferFeeResponse} */ -proto.ic_ledger.pb.v1.Certification.deserializeBinary = function(bytes) { +proto.ic_ledger.pb.v1.TransferFeeResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.ic_ledger.pb.v1.Certification; - return proto.ic_ledger.pb.v1.Certification.deserializeBinaryFromReader(msg, reader); + var msg = new proto.ic_ledger.pb.v1.TransferFeeResponse; + return proto.ic_ledger.pb.v1.TransferFeeResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.ic_ledger.pb.v1.Certification} msg The message object to deserialize into. + * @param {!proto.ic_ledger.pb.v1.TransferFeeResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.ic_ledger.pb.v1.Certification} + * @return {!proto.ic_ledger.pb.v1.TransferFeeResponse} */ -proto.ic_ledger.pb.v1.Certification.deserializeBinaryFromReader = function(msg, reader) { +proto.ic_ledger.pb.v1.TransferFeeResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -7070,8 +11104,9 @@ proto.ic_ledger.pb.v1.Certification.deserializeBinaryFromReader = function(msg, var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setCertification(value); + var value = new proto.ic_ledger.pb.v1.Tokens; + reader.readMessage(value,proto.ic_ledger.pb.v1.Tokens.deserializeBinaryFromReader); + msg.setTransferFee(value); break; default: reader.skipField(); @@ -7086,9 +11121,9 @@ proto.ic_ledger.pb.v1.Certification.deserializeBinaryFromReader = function(msg, * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.ic_ledger.pb.v1.Certification.prototype.serializeBinary = function() { +proto.ic_ledger.pb.v1.TransferFeeResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.ic_ledger.pb.v1.Certification.serializeBinaryToWriter(this, writer); + proto.ic_ledger.pb.v1.TransferFeeResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -7096,61 +11131,57 @@ proto.ic_ledger.pb.v1.Certification.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.ic_ledger.pb.v1.Certification} message + * @param {!proto.ic_ledger.pb.v1.TransferFeeResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.ic_ledger.pb.v1.Certification.serializeBinaryToWriter = function(message, writer) { +proto.ic_ledger.pb.v1.TransferFeeResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getCertification_asU8(); - if (f.length > 0) { - writer.writeBytes( + f = message.getTransferFee(); + if (f != null) { + writer.writeMessage( 1, - f + f, + proto.ic_ledger.pb.v1.Tokens.serializeBinaryToWriter ); } }; /** - * optional bytes certification = 1; - * @return {!(string|Uint8Array)} + * optional Tokens transfer_fee = 1; + * @return {?proto.ic_ledger.pb.v1.Tokens} */ -proto.ic_ledger.pb.v1.Certification.prototype.getCertification = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +proto.ic_ledger.pb.v1.TransferFeeResponse.prototype.getTransferFee = function() { + return /** @type{?proto.ic_ledger.pb.v1.Tokens} */ ( + jspb.Message.getWrapperField(this, proto.ic_ledger.pb.v1.Tokens, 1)); }; /** - * optional bytes certification = 1; - * This is a type-conversion wrapper around `getCertification()` - * @return {string} - */ -proto.ic_ledger.pb.v1.Certification.prototype.getCertification_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getCertification())); + * @param {?proto.ic_ledger.pb.v1.Tokens|undefined} value + * @return {!proto.ic_ledger.pb.v1.TransferFeeResponse} returns this +*/ +proto.ic_ledger.pb.v1.TransferFeeResponse.prototype.setTransferFee = function(value) { + return jspb.Message.setWrapperField(this, 1, value); }; /** - * optional bytes certification = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getCertification()` - * @return {!Uint8Array} + * Clears the message field making it undefined. + * @return {!proto.ic_ledger.pb.v1.TransferFeeResponse} returns this */ -proto.ic_ledger.pb.v1.Certification.prototype.getCertification_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getCertification())); +proto.ic_ledger.pb.v1.TransferFeeResponse.prototype.clearTransferFee = function() { + return this.setTransferFee(undefined); }; /** - * @param {!(string|Uint8Array)} value - * @return {!proto.ic_ledger.pb.v1.Certification} returns this + * Returns whether this field is set. + * @return {boolean} */ -proto.ic_ledger.pb.v1.Certification.prototype.setCertification = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); +proto.ic_ledger.pb.v1.TransferFeeResponse.prototype.hasTransferFee = function() { + return jspb.Message.getField(this, 1) != null; }; diff --git a/packages/nns-proto/proto/nervous_system.proto b/packages/nns-proto/proto/nervous_system.proto new file mode 100644 index 000000000..f16353770 --- /dev/null +++ b/packages/nns-proto/proto/nervous_system.proto @@ -0,0 +1,51 @@ +syntax = "proto3"; + +package ic_nervous_system.pb.v1; + +import "base_types.proto"; + +message Duration { + optional uint64 seconds = 1; +} + +message GlobalTimeOfDay { + optional uint64 seconds_after_utc_midnight = 1; +} + +message Tokens { + optional uint64 e8s = 1; +} + +message Image { + // A data URI of a png. E.g. + // data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAD0lEQVQIHQEEAPv/AAD/DwIRAQ8HgT3GAAAAAElFTkSuQmCC + // ^ 1 pixel containing the color #00FF0F. + optional string base64_encoding = 1; +} + +message Percentage { + optional uint64 basis_points = 1; +} + +// A Canister that will be transferred to an SNS. +message Canister { + // The id of the canister. + optional ic_base_types.pb.v1.PrincipalId id = 1; +} + +// Represents a set of countries. To be used in country-specific configurations, +// e.g., to restrict the geography of an SNS swap. +message Countries { + // ISO 3166-1 alpha-2 codes + repeated string iso_codes = 1; +} + +// Features: +// 1. Sign ('+' is optional). +// 2. Smallest positive value: 10^-28. +// 3. 96 bits of significand. +// 4. Decimal point character: '.' (dot/period). +message Decimal { + // E.g. "3.14". + optional string human_readable = 1; +} diff --git a/packages/nns-proto/proto/nns_common.proto b/packages/nns-proto/proto/nns_common.proto new file mode 100644 index 000000000..741fffc46 --- /dev/null +++ b/packages/nns-proto/proto/nns_common.proto @@ -0,0 +1,20 @@ +syntax = "proto3"; + +package ic_nns_common.pb.v1; + +import "base_types.proto"; + +// A container for a NeuronId blob, which uniquely identifies +// a Neuron. +message NeuronId { + option (ic_base_types.pb.v1.tui_signed_message) = true; + // bytes serialized_id = 1; + reserved 1; + reserved 'serialized_id'; + uint64 id = 2 [(ic_base_types.pb.v1.tui_signed_display_q2_2021) = true]; +} + +// The id of a specific proposal. +message ProposalId { + uint64 id = 1; +} diff --git a/packages/nns-proto/proto/swap.proto b/packages/nns-proto/proto/swap.proto new file mode 100644 index 000000000..6768bb159 --- /dev/null +++ b/packages/nns-proto/proto/swap.proto @@ -0,0 +1,1547 @@ +// This file contains the Protobuf definitions for the `swap` canister +// which can be used for an initial token swap (a.k.a. token swap or +// single price auction) to decentralise an application running on the +// Internet Computer, turning it into a decentralized application or +// "dapp". See the documentation of the `Swap` message for a high +// level overview. + +syntax = "proto3"; + +package ic_sns_swap.pb.v1; + +import "base_types.proto"; +import "nervous_system.proto"; + +// Lifecycle states of the swap canister. The details of their meanings +// are provided in the documentation of the `Swap` message. +enum Lifecycle { + // The canister is incorrectly configured. Not a real lifecycle state. + LIFECYCLE_UNSPECIFIED = 0; + // In PENDING state, the canister is correctly initialized. Once SNS + // tokens have been transferred to the swap canister's account on + // the SNS ledger, a call to `open` with valid parameters will start + // the swap. + LIFECYCLE_PENDING = 1; + // In ADOPTED state, the proposal to start the decentralization swap + // has been adopted, and the swap will be automatically opened after a delay. + // In the legacy (non-one-proposal) flow, the swap delay is specified by + // params.sale_delay_seconds. In the one-proposal flow, the swap delay is + // specified by `init.swap_start_timestamp_seconds`. + LIFECYCLE_ADOPTED = 5; + // In OPEN state, prospective buyers can register for the token + // swap. The swap will be committed when the target (max) ICP has + // been reached or the swap's due date/time occurs, whichever + // happens first. + LIFECYCLE_OPEN = 2; + // In COMMITTED state the token price has been determined; on a call to + // finalize`, buyers receive their SNS neurons and the SNS governance canister + // receives the ICP. + LIFECYCLE_COMMITTED = 3; + // In ABORTED state the token swap has been aborted, e.g., because the due + // date/time occurred before the minimum (reserve) amount of ICP has been + // retrieved. On a call to `finalize`, participants get their ICP refunded. + LIFECYCLE_ABORTED = 4; +} + +// The `swap` canister smart contract is used to perform a type of +// single-price auction (SNS/ICP) of one token type SNS for another token +// type ICP (this is typically ICP, but can be treated as a variable) at a +// specific date/time in the future. +// +// Such a single-price auction is typically used to decentralize an SNS, +// i.e., to ensure that a sufficient number of governance tokens of the +// SNS are distributed among different participants. +// +// State (lifecycle) diagram for the swap canister's state. +// +// ```text +// sufficient_participation +// && (swap_due || icp_target_reached) +// PENDING -------------------> ADOPTED ---------------------> OPEN -----------------------------------------> COMMITTED +// Swap receives a request The opening delay | | +// from NNS governance to has elapsed | not sufficient_participation | +// schedule opening | && (swap_due || icp_target_reached) | +// v v +// ABORTED ---------------------------------------> +// ``` +// +// Here `sufficient_participation` means that the minimum number of +// participants `min_participants` has been reached, each contributing +// between `min_participant_icp_e8s` and `max_participant_icp_e8s`, and +// their total contributions add up to at least `min_icp_e8s` and at most +// `max_icp_e8s`. +// +// `icp_target_reached` means that the total amount of ICP contributed is +// equal to `max_icp_e8s`. (The total amount of ICP contributed should +// never be greater than `max_icp_e8s`.) +// +// +// The dramatis personae of the `swap` canister are as follows: +// +// - The swap canister itself. +// +// - The NNS governance canister - which is the only principal that can open +// the swap. +// +// - The governance canister of the SNS to be decentralized. +// +// - The ledger canister of the SNS, i.e., the ledger of the token type +// being sold. +// +// - The ICP ledger canister, or more generally of the base currency of +// the auction. +// +// - The root canister of the SNS to control aspects of the SNS not +// controlled by the SNS governance canister. +// +// When the swap canister is initialized, it must be configured with +// the canister IDs of the other participant canisters. +// +// The next step is to provide SNS tokens for the swap. This normally +// happens when the canister is in the PENDING state, and the amount +// is validated in the call to `open`. +// +// The request to open the swap has to originate from the NNS governance +// canister. The request specifies the parameters of the swap, i.e., the +// date/time at which the token swap will take place, the minimal number +// of participants, the minimum number of base tokens (ICP) of each +// participant, as well as the minimum and maximum number (reserve and +// target) of base tokens (ICP) of the swap. +// +// Step 0. The canister is created, specifying the initialization +// parameters, which are henceforth fixed for the lifetime of the +// canister. +// +// Step 1 (State PENDING). The swap canister is loaded with the right +// amount of SNS tokens. A call to `open` will then transition the +// canister to the OPEN state. +// +// Step 2a. (State ADOPTED). The field `params` is received as an argument +// to the call to `open` and is henceforth immutable. The amount of +// SNS token is verified against the SNS ledger. The swap will be +// opened after an optional delay. The transition to OPEN happens +// automatically (on the canister heartbeat) when the delay elapses. +// +// Step 2a. (State OPEN). The delay has elapsed and the swap is open +// for participants who can enter into the auction with a number of ICP +// tokens until either the target amount has been reached or the +// auction is due, i.e., the date/time of the auction has been +// reached. The transition to COMMITTED or ABORTED happens +// automatically (on the canister heartbeat) when the necessary +// conditions are fulfilled. +// +// Step 3a. (State COMMITTED). Tokens are allocated to participants at +// a single clearing price, i.e., the number of SNS tokens being +// offered divided by the total number of ICP tokens contributed to +// the swap. In this state, a call to `finalize` will create SNS +// neurons for each participant and transfer ICP to the SNS governance +// canister. The call to `finalize` does not happen automatically +// (i.e., on the canister heartbeat) so that there is a caller to +// respond to with potential errors. +// +// Step 3b. (State ABORTED). If the parameters of the swap have not +// been satisfied before the due date/time, the swap is aborted and +// the ICP tokens transferred back to their respective owners. The +// swap can also be aborted early if it is determined that the +// swap cannot possibly succeed, e.g., because the ICP ceiling has +// been reached and the minimum number of participants has not been. +// +// The `swap` canister can be deleted when all tokens registered with the +// `swap` canister have been disbursed to their rightful owners. +// +// The logic of this canister is based on the following principles. +// +// * Message fields are never removed. +// +// * Integer and enum fields can only have their values increase (with +// one exception, viz., the timestamp field for the start of a +// transfer is reset if the transfer fails). +// +// Data flow for the Neurons' Fund. +// +// - A SNS is created. +// - Proposal to open a decentralization swap for the SNS is submitted to +// the NNS. +// - ProposalToOpenDecentralizationSale +// - The Neurons' Fund investment amount +// - The parameters of the decentralization swap (`Params`). +// - Call to open swap: +// - Parameters +// - Neurons' Fund investments +// - NNS Proposal ID of the NNS proposal to open the swap. +// - On accept of proposal to open decentralization swap: +// - Compute the maturity contribution of each Neurons' Fund neuron and deduct +// this amount from the Neurons' Fund neuron. +// - The swap is informed about the corresponding amount of ICP +// (`CfParticipant`) in the call to open. +// - Call back to NNS governance after the swap is committed or aborted: +// - On committed swap: +// - Ask the NNS to mint the right amount of ICP for the SNS corresponding +// to the Neurons' Fund investment (the NNS governance canister keeps +// track of the total). +// - On aborted swap: +// - Send the information about Neurons' Fund participants +// (`CfParticipant`) back to NNS governance which will return it to +// the corresponding neurons. Assign the control of the dapp (now under +// the SNS control) back to the specified principals. +// - On reject of proposal to open decentralization swap: +// - Assign the control of the dapp (now under the SNS control) back to the +// specified principals. +message Swap { + reserved "state"; + reserved 2; + + reserved "cf_minting"; + reserved 8; + + // The current lifecycle of the swap. + Lifecycle lifecycle = 3; + + // Specified on creation. That is, always specified and immutable. + Init init = 1; + + // Specified in the transition from PENDING to OPEN and immutable + // thereafter. + Params params = 4; + + // Neurons' Fund participation. Specified in the transition from + // PENDING to OPEN and immutable thereafter. + repeated CfParticipant cf_participants = 5; + + // Empty in the PENDING state. In the OPEN state, new buyers can be + // added and existing buyers can increase their bids. In the + // COMMITTED and ABORTED states, the amount cannot be modified, and + // the transfer timestamps are filled in. + // + // The key is the textual representation of the buyer's principal + // and the value represents the bid. + map buyers = 6; + + // When the swap is committed, this field is initialized according + // to the outcome of the swap. + repeated SnsNeuronRecipe neuron_recipes = 7; + + // Gets set to whatever value is in the corresponding field of OpenRequest + // (that field is required at the application level). + optional uint64 open_sns_token_swap_proposal_id = 9; + + // A lock stored in Swap state. If set to true, then a finalize_swap + // call is in progress. In that case, new finalize_swap calls return + // immediately without doing any real work. + // + // The implementation of the lock should result in the lock being + // released when the finalize_swap method returns. If + // a lock is not released, upgrades of the Swap canister can + // release the lock in the post upgrade hook. + optional bool finalize_swap_in_progress = 10; + + // The timestamp for the actual opening of the swap, with an optional delay + // (specified via params.sale_delay_seconds) after the adoption of the swap + // proposal. Gets set when NNS calls `open` upon the adoption of + // the swap proposal. + optional uint64 decentralization_sale_open_timestamp_seconds = 11; + + // The timestamp for the actual termination of the swap (committed or aborted). + optional uint64 decentralization_swap_termination_timestamp_seconds = 21; + + // This ticket id counter keeps track of the latest ticket id. Whenever a new + // ticket is created this counter is incremented. It ensures that ticket ids + // are unique. The ticket IDs are sequential and next_ticket_id is assigned to + // a users new ticket upon successfully requesting a new ticket. It is + // incremented after a user requests a new ticket successfully. + optional uint64 next_ticket_id = 12; + + // The last time the purge_old_tickets routine was completed. + optional uint64 purge_old_tickets_last_completion_timestamp_nanoseconds = 13; + + // The next principal bytes that should be checked by the next + // running purge_old_tickets routine. + optional bytes purge_old_tickets_next_principal = 14; + + // Set to true when auto-finalization is attempted. Prevents auto-finalization + // from being attempted more than once. + optional bool already_tried_to_auto_finalize = 17; + + // Set when auto-finalization finishes. Calling finalize manually has no effect + // on this parameter. + optional FinalizeSwapResponse auto_finalize_swap_response = 18; + + // Amount of contributions from direct participants committed to this SNS so far. + optional uint64 direct_participation_icp_e8s = 19; + + // Amount of contributions from the Neurons' Fund committed to this SNS so far. + optional uint64 neurons_fund_participation_icp_e8s = 20; +} + +// The initialisation data of the canister. Always specified on +// canister creation, and cannot be modified afterwards. +// +// If the initialization parameters are incorrect, the swap will +// immediately be aborted. +message Init { + reserved 5, 7 to 10; + // The canister ID of the NNS governance canister. This is the only + // principal that can open the swap. + string nns_governance_canister_id = 1; + + // The canister ID of the governance canister of the SNS that this + // token swap pertains to. + string sns_governance_canister_id = 2; + + // The ledger canister of the SNS. + string sns_ledger_canister_id = 3; + + // The ledger canister for the base token, typically ICP. The base + // token is typically ICP, but this assumption is not used anywhere, + // so, in principle, any token type can be used as base token. + string icp_ledger_canister_id = 4; + + // Analogous to `sns_governance_canister_id`, but for the "root" + // canister instead of the governance canister. + string sns_root_canister_id = 12; + + // If the swap is aborted, control of the canister(s) should be set to these + // principals. Must not be empty. + repeated string fallback_controller_principal_ids = 11; + + // Same as SNS ledger. Must hold the same value as SNS ledger. Whether the + // values match is not checked. If they don't match things will break. + optional uint64 transaction_fee_e8s = 13; + + // Same as SNS governance. Must hold the same value as SNS governance. Whether + // the values match is not checked. If they don't match things will break. + optional uint64 neuron_minimum_stake_e8s = 14; + + // An optional text that swap participants should confirm before they may + // participate in the swap. If the field is set, its value should be plain + // text with at least 1 and at most 1,000 characters. + optional string confirmation_text = 15; + + // An optional set of countries that should not participate in the swap. + optional ic_nervous_system.pb.v1.Countries restricted_countries = 16; + + // The minimum number of buyers that must participate for the swap + // to take place. Must be greater than zero. + optional uint32 min_participants = 17; + + // The total number of ICP that is required for this token swap to + // take place. This number divided by the number of SNS tokens being + // offered gives the seller's reserve price for the swap, i.e., the + // minimum number of ICP per SNS tokens that the seller of SNS + // tokens is willing to accept. If this amount is not achieved, the + // swap will be aborted (instead of committed) when the due date/time + // occurs. Must be smaller than or equal to `max_icp_e8s`. + optional uint64 min_icp_e8s = 18; + + // The number of ICP that is "targeted" by this token swap. If this + // amount is achieved with sufficient participation, the swap will be + // triggered immediately, without waiting for the due date + // (`end_timestamp_seconds`). This means that an investor knows the minimum + // number of SNS tokens received per invested ICP. If this amount is achieved + // without reaching sufficient_participation, the swap will abort without + // waiting for the due date. Must be at least + // `min_participants * min_participant_icp_e8s` + optional uint64 max_icp_e8s = 19; + + // The total number of ICP that is required to be "directly contributed" + // for this token swap to take place. This number divided by the number of SNS tokens being + // offered gives the seller's reserve price for the swap, i.e., the + // minimum number of ICP per SNS tokens that the seller of SNS + // tokens is willing to accept. If this amount is not achieved, the + // swap will be aborted (instead of committed) when the due date/time + // occurs. Must be smaller than or equal to `max_icp_e8s`. + optional uint64 min_direct_participation_icp_e8s = 30; + + // The number of ICP that is "targeted" by this token swap. If this + // amount is achieved with sufficient participation, the swap will be + // triggered immediately, without waiting for the due date + // (`end_timestamp_seconds`). This means that an investor knows the minimum + // number of SNS tokens received per invested ICP. If this amount is achieved + // without reaching sufficient_participation, the swap will abort without + // waiting for the due date. Must be at least + // `min_participants * min_participant_icp_e8s`. + optional uint64 max_direct_participation_icp_e8s = 31; + + // The minimum amount of ICP that each buyer must contribute to + // participate. Must be greater than zero. + optional uint64 min_participant_icp_e8s = 20; + + // The maximum amount of ICP that each buyer can contribute. Must be + // greater than or equal to `min_participant_icp_e8s` and less than + // or equal to `max_icp_e8s`. Can effectively be disabled by + // setting it to `max_icp_e8s`. + optional uint64 max_participant_icp_e8s = 21; + + // The date/time when the swap should start. + optional uint64 swap_start_timestamp_seconds = 22; + + // The date/time when the swap is due, i.e., it will automatically + // end and commit or abort depending on whether the parameters have + // been fulfilled. + optional uint64 swap_due_timestamp_seconds = 23; + + // The number of tokens (of `init.sns_ledger_canister_id`) that are + // being offered. The tokens are held in escrow for the SNS + // governance canister. + // + // Invariant for the OPEN state: + // ```text + // state.sns_token_e8s <= token_ledger.balance_of() + // ``` + optional uint64 sns_token_e8s = 24; + + // The construction parameters for the basket of neurons created for all + // investors in the decentralization swap. Each investor, whether via + // the Neurons' Fund or direct, will receive `count` Neurons with + // increasing dissolve delays. The total number of Tokens swapped for + // by the investor will be evenly distributed across the basket. This is + // effectively a vesting schedule to ensure there is a gradual release of + // SNS Tokens available to all investors instead of being liquid immediately. + // See `NeuronBasketConstructionParameters` for more details on how + // the basket is configured. + optional NeuronBasketConstructionParameters neuron_basket_construction_parameters = 25; + + // The ID of the NNS proposal submitted to launch this SNS decentralization + // swap. + optional uint64 nns_proposal_id = 26; + + // The Neurons' Fund participants of this SNS decentralization swap. + optional NeuronsFundParticipants neurons_fund_participants = 27; + + // Controls whether swap finalization should be attempted automatically in the + // canister heartbeat. If set to false, `finalize_swap` must be called + // manually. Note: it is safe to call `finalize_swap` multiple times + // (regardless of the value of this field). + optional bool should_auto_finalize = 28; + + // Constraints for the Neurons' Fund participation in this swap. + optional NeuronsFundParticipationConstraints neurons_fund_participation_constraints = 29; + + // Whether Neurons' Fund participation is requested. + optional bool neurons_fund_participation = 32; +} + +// Constraints for the Neurons' Fund participation in an SNS swap. +message NeuronsFundParticipationConstraints { + // The Neurons' Fund will not participate in this swap unless the direct + // contributions reach this threshold (in ICP e8s). + optional uint64 min_direct_participation_threshold_icp_e8s = 1; + + // Maximum amount (in ICP e8s) of contributions from the Neurons' Fund to this swap. + optional uint64 max_neurons_fund_participation_icp_e8s = 2; + + // List of intervals in which the given linear coefficients apply for scaling the + // ideal Neurons' Fund participation amount (down) to the effective Neurons' Fund + // participation amount. + repeated LinearScalingCoefficient coefficient_intervals = 3; + + // The function used in the implementation of Matched Funding for mapping amounts of direct + // participation to "ideal" Neurons' Fund participation amounts. The value needs to be adjusted + // to a potentially smaller value due to SNS-specific participation constraints and + // the configuration of the Neurons' Fund at the time of the CreateServiceNervousSystem proposal + // execution. + optional IdealMatchedParticipationFunction ideal_matched_participation_function = 4; +} + +// This function is called "ideal" because it serves as the guideline that the Neurons' Fund will +// try to follow, but may deviate from in order to satisfy SNS-specific participation constraints +// while allocating its overall participation amount among its neurons' maturity. In contrast, +// The "effective" matched participation function `crate::neurons_fund::MatchedParticipationFunction` +// is computed *based* on this one. +// TODO(NNS1-1589): Until the Jira ticket gets solved, this definition needs to be synchronized with +// that from nns/governance/proto/ic_nns_governance/pb/v1/governance.proto. +message IdealMatchedParticipationFunction { + // The encoding of the "ideal" matched participation function is defined in `crate::neurons_fund`. + // In the future, we could change this message to represent full abstract syntactic trees + // comprised of elementary mathematical operators, with literals and variables as tree leaves. + optional string serialized_representation = 1; +} + +// Some Neurons' Fund neurons might be too small, and some might be too large to participate in a +// given SNS swap. This causes the need to adjust Neurons' Fund participation from an "ideal" amount +// to an "effective" amount. +// * The ideal-participation of the Neurons' Fund refers to the value dictated by some curve that +// specifies how direct contributions should be matched with Neurons' Fund maturity. +// * The effective-participation of the Neurons' Fund refers to the value that the NNS Governance +// can actually allocate, given (1) the configuration of the Neurons' Fund at the time of +// execution of the corresponding CreateServiceNervousSystem proposal and (2) the amount of direct +// participation. +// +// This structure represents the coefficients of a linear transformation used for +// mapping the Neurons' Fund ideal-participation to effective-participation on a given +// linear (semi-open) interval. Say we have the following function for matching direct +// participants' contributions: `f: ICP e8s -> ICP e8s`; then the *ideal* Neuron's Fund +// participation amount corresponding to the direct participation of `x` ICP e8s is +// `f(x)`, while the Neuron's Fund *effective* participation amount is: +// ``` +// g(x) = (c.slope_numerator / c.slope_denominator) * f(x) + c.intercept +// ``` +// where `c: LinearScalingCoefficient` with +// `c.from_direct_participation_icp_e8s <= x < c.to_direct_participation_icp_e8s`. +// Note that we represent the slope as a rational number (as opposed to floating point), +// enabling equality comparison between two instances of this structure. +message LinearScalingCoefficient { + // (Included) lower bound on the amount of direct participation (in ICP e8s) at which + // these coefficients apply. + optional uint64 from_direct_participation_icp_e8s = 1; + // (Excluded) upper bound on the amount of direct participation (in ICP e8s) at which + // these coefficients apply. + optional uint64 to_direct_participation_icp_e8s = 2; + // Numerator or the slope of the linear transformation. + optional uint64 slope_numerator = 3; + // Denominator or the slope of the linear transformation. + optional uint64 slope_denominator = 4; + // Intercept of the linear transformation (in ICP e8s). + optional uint64 intercept_icp_e8s = 5; +} + +// Represents multiple Neurons' Fund participants. +message NeuronsFundParticipants { + repeated CfParticipant cf_participants = 1; +} + +// Represents one NNS neuron from the Neurons' Fund participating in this swap. +message CfNeuron { + // The NNS neuron ID of the participating neuron. + fixed64 nns_neuron_id = 1; + // The amount of ICP that the Neurons' Fund invests associated + // with this neuron. + uint64 amount_icp_e8s = 2; + + // Idempotency flag indicating whether the neuron recipes have been created for + // the CfNeuron. When set to true, it signifies that the action of creating neuron + // recipes has been performed on this structure. If the action is retried, this flag + // can be checked to avoid duplicate operations. + optional bool has_created_neuron_recipes = 3; +} + +// Represents a Neurons' Fund participant, possibly with several neurons. +message CfParticipant { + // The principal that can vote on behalf of these Neurons' Fund neurons. + string hotkey_principal = 1; + // Information about the participating neurons. Must not be empty. + repeated CfNeuron cf_neurons = 2; +} + +// The construction parameters for the basket of neurons created for all +// investors in the decentralization swap. +message NeuronBasketConstructionParameters { + // The number of neurons each investor will receive after the + // decentralization swap. The total tokens swapped for will be + // evenly distributed across the `count` neurons. + uint64 count = 1; + + // The amount of additional time it takes for the next neuron to dissolve. + uint64 dissolve_delay_interval_seconds = 2; +} + +// The parameters of the swap, provided in the call to `open`. Cannot +// be modified after the call to `open`. +message Params { + // The minimum number of buyers that must participate for the swap + // to take place. Must be greater than zero. + uint32 min_participants = 1; + + // The total number of ICP that is required for this token swap to + // take place. This number divided by the number of SNS tokens being + // offered gives the seller's reserve price for the swap, i.e., the + // minimum number of ICP per SNS tokens that the seller of SNS + // tokens is willing to accept. If this amount is not achieved, the + // swap will be aborted (instead of committed) when the due date/time + // occurs. Must be smaller than or equal to `max_icp_e8s`. + uint64 min_icp_e8s = 2; + + // The number of ICP that is "targeted" by this token swap. If this + // amount is achieved with sufficient participation, the swap will be + // triggered immediately, without waiting for the due date + // (`end_timestamp_seconds`). This means that an investor knows the minimum + // number of SNS tokens received per invested ICP. If this amount is achieved + // without reaching sufficient_participation, the swap will abort without + // waiting for the due date. Must be at least + // `min_participants * min_participant_icp_e8s`. + uint64 max_icp_e8s = 3; + + // The total number of ICP that is required for this token swap to + // take place. This number divided by the number of SNS tokens being + // offered gives the seller's reserve price for the swap, i.e., the + // minimum number of ICP per SNS tokens that the seller of SNS + // tokens is willing to accept. If this amount is not achieved, the + // swap will be aborted (instead of committed) when the due date/time + // occurs. Must be smaller than or equal to `max_icp_e8s`. + optional uint64 min_direct_participation_icp_e8s = 10; + + // The number of ICP that is "targeted" by this token swap. If this + // amount is achieved with sufficient participation, the swap will be + // triggered immediately, without waiting for the due date + // (`end_timestamp_seconds`). This means that an investor knows the minimum + // number of SNS tokens received per invested ICP. If this amount is achieved + // without reaching sufficient_participation, the swap will abort without + // waiting for the due date. Must be at least + // `min_participants * min_participant_icp_e8s`. + optional uint64 max_direct_participation_icp_e8s = 11; + + // The minimum amount of ICP that each buyer must contribute to + // participate. Must be greater than zero. + uint64 min_participant_icp_e8s = 4; + + // The maximum amount of ICP that each buyer can contribute. Must be + // greater than or equal to `min_participant_icp_e8s` and less than + // or equal to `max_icp_e8s`. Can effectively be disabled by + // setting it to `max_icp_e8s`. + uint64 max_participant_icp_e8s = 5; + + // The date/time when the swap is due, i.e., it will automatically + // end and commit or abort depending on whether the parameters have + // been fulfilled. + uint64 swap_due_timestamp_seconds = 6; + + // The number of tokens (of `init.sns_ledger_canister_id`) that are + // being offered. The tokens are held in escrow for the SNS + // governance canister. + // + // Invariant for the OPEN state: + // ```text + // state.sns_token_e8s <= token_ledger.balance_of() + // ``` + uint64 sns_token_e8s = 7; + + // The construction parameters for the basket of neurons created for all + // investors in the decentralization swap. Each investor, whether via + // the Neurons' Fund or direct, will receive `count` Neurons with + // increasing dissolve delays. The total number of Tokens swapped for + // by the investor will be evenly distributed across the basket. This is + // effectively a vesting schedule to ensure there is a gradual release of + // SNS Tokens available to all investors instead of being liquid immediately. + // See `NeuronBasketConstructionParameters` for more details on how + // the basket is configured. + NeuronBasketConstructionParameters neuron_basket_construction_parameters = 8; + + // An optional delay, so that the actual swap does not get opened immediately + // after the adoption of the swap proposal. + optional uint64 sale_delay_seconds = 9; +} + +message TransferableAmount { + // The amount in e8s equivalent that the participant committed to the Swap, + // which is held by the swap canister until the swap is committed or aborted. + uint64 amount_e8s = 1; + + // When the transfer to refund or commit funds starts. + uint64 transfer_start_timestamp_seconds = 2; + + // When the transfer to refund or commit succeeds. + uint64 transfer_success_timestamp_seconds = 3; + + // The amount that was successfully transferred when swap commits or aborts + // (minus fees). + optional uint64 amount_transferred_e8s = 4; + + // The fee charged when transferring from the swap canister; + optional uint64 transfer_fee_paid_e8s = 5; +} + +message BuyerState { + reserved 1 to 4; + // The amount of ICP accepted from this buyer. ICP is accepted by + // first making a ledger transfer and then calling the method + // `refresh_buyer_token_e8s`. + // + // Can only be set when a buyer state record for a new buyer is + // created, which can only happen when the lifecycle state is + // `Open`. Must be at least `min_participant_icp_e8s`, and at most + // `max_participant_icp_e8s`. + // + // Invariant between canisters in the OPEN state: + // + // ```text + // icp.amount_e8 <= icp_ledger.balance_of(subaccount(swap_canister, P)), + // ``` + // + // where `P` is the principal ID associated with this buyer's state. + // + // ownership + // * PENDING - a `BuyerState` cannot exist + // * OPEN - owned by the buyer, cannot be transferred out + // * COMMITTED - owned by the SNS governance canister, can be transferred out + // * ABORTED - owned by the buyer, can be transferred out + TransferableAmount icp = 5; + + // Idempotency flag indicating whether the neuron recipes have been created for + // the BuyerState. When set to true, it signifies that the action of creating neuron + // recipes has been performed on this structure. If the action is retried, this flag + // can be checked to avoid duplicate operations. + optional bool has_created_neuron_recipes = 6; +} + +// Information about a direct investor. +message DirectInvestment { + string buyer_principal = 1; +} + +// Information about a Neurons' Fund investment. The NNS Governance +// canister is the controller of these neurons. +message CfInvestment { + string hotkey_principal = 1; + fixed64 nns_neuron_id = 2; +} + +message TimeWindow { + uint64 start_timestamp_seconds = 1; + uint64 end_timestamp_seconds = 2; +} + +message SnsNeuronRecipe { + TransferableAmount sns = 1; + oneof investor { + DirectInvestment direct = 2; + CfInvestment community_fund = 3; + } + // Attributes of the Neuron to be created from the SnsNeuronRecipe + NeuronAttributes neuron_attributes = 4; + + // Attributes of the Neuron to be created from the SnsNeuronRecipe + message NeuronAttributes { + // The memo to be used when calculating the Neuron's staking account + // in the SNS Ledger. + // See `nervous_system_common::compute_neuron_staking_subaccount`. + // The memo is used along with the a principal_id of the "controller" of + // the neuron. In the case of the decentralization sale, that will either be + // the PrincipalId of NNS Governance canister for Neurons' Fund investors, + // or the PrincipalId of the direct investor. + uint64 memo = 1; + + // The dissolve delay in seconds that the Neuron will be created with. + uint64 dissolve_delay_seconds = 2; + + // The list of NeuronIds that the created Neuron will follow on all SNS + // proposal actions known to governance at the time. Additional followees + // and following relations can be added after neuron creation. + // + // TODO[NNS1-1589] Due to the dependency cycle, the `swap` canister's + // protobuf cannot directly depend on SNS Governance NeuronId type. + // The followees NeuronId's are of a duplicated type, which is converted to + // SNS governance NeuronId at the time. + // of claiming. + repeated NeuronId followees = 3; + } + + // The status of the SnsNeuronRecipe's creation within SNS Governance. This + // field is used as a journal between calls of `finalize`. + optional ClaimedStatus claimed_status = 5; + + // The various statuses of creation that a SnsNeuronRecipe can have in an SNS. + enum ClaimedStatus { + // Unused, here for PB lint purposes. + CLAIMED_STATUS_UNSPECIFIED = 0; + + // The Neuron is pending creation and can be claimed in SNS Governance. + CLAIMED_STATUS_PENDING = 1; + + // The Neuron has been created successfully in SNS Governance. + CLAIMED_STATUS_SUCCESS = 2; + + // The Neuron has previously failed to be created in SNS Governance, but can + // be retried in the future. + CLAIMED_STATUS_FAILED = 3; + + // The Neuron is invalid and was not created in SNS Governance. This neuron + // cannot be retried without manual intervention to update its + // `NeuronParameters`. + CLAIMED_STATUS_INVALID = 4; + } +} + +// +// === Request/Response Messages +// + +message OpenRequest { + // The parameters of the swap. + Params params = 1; + // Neurons' Fund participation. + repeated CfParticipant cf_participants = 2; + // The ID of the proposal whose execution consists of calling this method. + optional uint64 open_sns_token_swap_proposal_id = 3; +} + +message OpenResponse {} + +message GetCanisterStatusRequest {} + +// TODO: introduce a limits on the number of buyers to include? +message GetStateRequest {} +message GetStateResponse { + Swap swap = 1; + DerivedState derived = 2; +} + +message GetBuyerStateRequest { + // The principal_id of the user who's buyer state is being queried for. + ic_base_types.pb.v1.PrincipalId principal_id = 1; +} + +message GetBuyerStateResponse { + BuyerState buyer_state = 1; +} + +message GetBuyersTotalRequest {} + +message GetBuyersTotalResponse { + // The total amount of ICP deposited by buyers. + uint64 buyers_total = 1; +} + +message DerivedState { + uint64 buyer_total_icp_e8s = 1; + // Current number of non-Neurons' Fund swap participants + optional uint64 direct_participant_count = 3; + // Current number of Neurons' Fund swap participants. In particular, it's the + // number of unique controllers of the neurons participating + // in the Neurons' Fund. + optional uint64 cf_participant_count = 4; + // Current number of Neurons' Fund neurons participating in the swap + // May be greater than cf_participant_count if multiple neurons in + // the Neurons' Fund have the same controller. + optional uint64 cf_neuron_count = 5; + // Current approximate rate SNS tokens per ICP. Note that this should not be used for super + // precise financial accounting, because this is floating point. + float sns_tokens_per_icp = 2; + // Current amount of contributions from direct swap participants. + optional uint64 direct_participation_icp_e8s = 6; + // Current amount that the Neurons' Fund promises to participate with if the swap were to + // successfully finalize now. Until the swap's success criterium is satisfied, this value is + // merely a progress indicator. + optional uint64 neurons_fund_participation_icp_e8s = 7; +} + +message SetOpenTimeWindowRequest { + // Duration must be between 1 and 90 days. The TimeWindow's + // end time but be greater than or equal to the TimeWindow's + // start time. + TimeWindow open_time_window = 1; +} + +// Response if setting the open time window succeeded. +message SetOpenTimeWindowResponse {} + +// Informs the swap canister that a buyer has sent funds to participate in the +// swap. +// +// Only in lifecycle state `open`. +message RefreshBuyerTokensRequest { + // If not specified, the caller is used. + string buyer = 1; + + // To accept the swap participation confirmation, a participant should send + // the confirmation text via refresh_buyer_tokens, matching the text set + // during SNS initialization. + optional string confirmation_text = 2; +} +message RefreshBuyerTokensResponse { + uint64 icp_accepted_participation_e8s = 1; + uint64 icp_ledger_account_balance_e8s = 2; +} + +// Once a swap is committed or aborted, the tokens need to be +// distributed, and, if the swap was committed, neurons created. +message FinalizeSwapRequest {} + +// Response from the `finalize_swap` canister API. +message FinalizeSwapResponse { + SweepResult sweep_icp_result = 1; + + SweepResult sweep_sns_result = 2; + + SweepResult claim_neuron_result = 3; + + SetModeCallResult set_mode_call_result = 4; + + SetDappControllersCallResult set_dapp_controllers_call_result = 5; + + SettleCommunityFundParticipationResult settle_community_fund_participation_result = 6; + + SweepResult create_sns_neuron_recipes_result = 8; + + SettleNeuronsFundParticipationResult settle_neurons_fund_participation_result = 9; + + // Explains what (if anything) went wrong. + optional string error_message = 7; +} + +message SweepResult { + // Success means that on this call to finalize, the item in the + // sweep succeeded. + uint32 success = 1; + + // Failure means that on this call to finalize, the item in the + // sweep failed but may be successful in the future. + uint32 failure = 2; + + // Skipped means that on a previous call to finalize, the item + // in the sweep was successful. + uint32 skipped = 3; + + // Invalid means that on this call and all future calls to finalize, + // this item will not be successful, and will need intervention to + // succeed. + uint32 invalid = 4; + + // Global_failures does not map to individual items in the sweep, but + // number of global failures encountered in the sweep. + uint32 global_failures = 5; +} + +// Analogous to Rust type Result. +message SetModeCallResult { + oneof possibility { + SetModeResult ok = 1; + CanisterCallError err = 2; + } + + message SetModeResult {} +} + +// Request struct for the method restore_dapp_controllers. +message RestoreDappControllersRequest {} + +// Response of the method restore_dapp_controllers. +// Analogous to Rust type Result. +message RestoreDappControllersResponse { + oneof possibility { + // TODO(NNS1-1589): Uncomment. + // ic_sns_root.pb.v1. + SetDappControllersResponse ok = 1; + CanisterCallError err = 2; + } +} + +// Analogous to Rust type Result. +message SetDappControllersCallResult { + oneof possibility { + // TODO(NNS1-1589): Uncomment. + // ic_sns_root.pb.v1. + SetDappControllersResponse ok = 1; + CanisterCallError err = 2; + } +} + +message SettleCommunityFundParticipationResult { + message Response { + // Can be blank. + GovernanceError governance_error = 1; + } + + oneof possibility { + Response ok = 1; + CanisterCallError err = 2; + } +} + +// The result from settling the neurons' fund participation in finalization. +message SettleNeuronsFundParticipationResult { + // The successful branch of the result. On subsequent attempts to settle + // neurons fund participation (for example: due to some later stage of + // finalization failing and a manual retry is invoked), this branch + // will be set with the results of the original successful attempt. + message Ok { + optional uint64 neurons_fund_participation_icp_e8s = 1; + optional uint64 neurons_fund_neurons_count = 2; + } + + // The failure branch of the result. This message can be set for a + // number of reasons not limited to + // - invalid state + // - replica errors + // - canister errors + // + // While some of these errors are transient and can immediately retried, + // others require manual intervention. The error messages and logs of the + // canister should provide enough context to debug. + message Error { + optional string message = 1; + } + + oneof possibility { + Ok ok = 1; + Error err = 2; + } +} + +// TODO(NNS1-1589): Delete these copied definitions. + +// BEGIN NNS1-1589 HACKS + +// Change control of the listed canisters to the listed principal id. +// Copy of the type in root.proto. TODO(NNS1-1589) +message SetDappControllersRequest { + message CanisterIds { + repeated ic_base_types.pb.v1.PrincipalId canister_ids = 1; + } + optional CanisterIds canister_ids = 1; + + repeated ic_base_types.pb.v1.PrincipalId controller_principal_ids = 2; +} + +message SetDappControllersResponse { + message FailedUpdate { + ic_base_types.pb.v1.PrincipalId dapp_canister_id = 1; + CanisterCallError err = 2; + } + repeated FailedUpdate failed_updates = 1; +} + +// Copied from nns governance.proto. +message GovernanceError { + enum ErrorType { + ERROR_TYPE_UNSPECIFIED = 0; + // The operation was successfully completed. + ERROR_TYPE_OK = 1; + // This operation is not available, e.g., not implemented. + ERROR_TYPE_UNAVAILABLE = 2; + // The caller is not authorized to perform this operation. + ERROR_TYPE_NOT_AUTHORIZED = 3; + // Some entity required for the operation (for example, a neuron) was + // not found. + ERROR_TYPE_NOT_FOUND = 4; + // The command was missing or invalid. This is a permanent error. + ERROR_TYPE_INVALID_COMMAND = 5; + // The neuron is dissolving or dissolved and the operation requires it to + // be not dissolving (that is, having a non-zero dissolve delay that is + // accumulating age). + ERROR_TYPE_REQUIRES_NOT_DISSOLVING = 6; + // The neuron is not dissolving or dissolved and the operation requires + // it to be dissolving (that is, having a non-zero dissolve delay with + // zero age that is not accumulating). + ERROR_TYPE_REQUIRES_DISSOLVING = 7; + // The neuron is not dissolving and not dissolved and the operation + // requires it to be dissolved (that is, having a dissolve delay of zero + // and an age of zero). + ERROR_TYPE_REQUIRES_DISSOLVED = 8; + // When adding or removing a hot key: the key to add was already + // present or the key to remove was not present or the key to add + // was invalid or adding another hot key would bring the total + // number of the maximum number of allowed hot keys per neuron. + ERROR_TYPE_HOT_KEY = 9; + // Some canister side resource is exhausted, so this operation cannot be + // performed. + ERROR_TYPE_RESOURCE_EXHAUSTED = 10; + // Some precondition for executing this method was not met (e.g. the + // neuron's dissolve time is too short). There could be a change in the + // state of the system such that the operation becomes allowed (e.g. the + // owner of the neuron increases its dissolve delay). + ERROR_TYPE_PRECONDITION_FAILED = 11; + // Executing this method failed for some reason external to the + // governance canister. + ERROR_TYPE_EXTERNAL = 12; + // A neuron has an ongoing ledger update and thus can't be + // changed. + ERROR_TYPE_LEDGER_UPDATE_ONGOING = 13; + // There wasn't enough funds to perform the operation. + ERROR_TYPE_INSUFFICIENT_FUNDS = 14; + // The principal provided was invalid. + ERROR_TYPE_INVALID_PRINCIPAL = 15; + // The proposal is defective in some way (e.g. title is too long). If the + // same proposal is submitted again without modification, it will be + // rejected regardless of changes in the system's state (e.g. increasing + // the neuron's dissolve delay will not make the proposal acceptable). + ERROR_TYPE_INVALID_PROPOSAL = 16; + // The neuron attempted to join the Neurons' Fund while already + // a member. + ERROR_TYPE_ALREADY_JOINED_COMMUNITY_FUND = 17; + // The neuron attempted to leave the Neurons' Fund but is not a member. + ERROR_TYPE_NOT_IN_THE_COMMUNITY_FUND = 18; + } + + ErrorType error_type = 1; + string error_message = 2; +} + +// Copied from nns governance.proto. +message SettleCommunityFundParticipation { + // The caller's principal ID must match the value in the + // target_swap_canister_id field in the proposal (more precisely, in the + // OpenSnsTokenSwap). + optional uint64 open_sns_token_swap_proposal_id = 1; + + // Each of the possibilities here corresponds to one of two ways that a swap + // can terminate. See also sns_swap_pb::Lifecycle::is_terminal. + oneof result { + Committed committed = 2; + Aborted aborted = 3; + } + + // When this happens, ICP needs to be minted, and sent to the SNS governance + // canister's main account on the ICP Ledger. As with Aborted, the amount of + // ICP that needs to be minted can be deduced from the ProposalData's + // cf_participants field. + message Committed { + // This is where the minted ICP will be sent. In principal, this could be + // fetched using the swap canister's get_state method. + ic_base_types.pb.v1.PrincipalId sns_governance_canister_id = 1; + // Total amount of contributions from direct swap participants. + optional uint64 total_direct_contribution_icp_e8s = 2; + // Total amount of contributions from the Neuron's Fund. + // TODO[NNS1-2570]: Ensure this field is set. + optional uint64 total_neurons_fund_contribution_icp_e8s = 3; + } + + // When this happens, maturity needs to be restored to Neurons' Fund neurons. + // The amounts to be refunded can be found in the ProposalData's + // `cf_participants` field. + message Aborted {} +} + +// Request to settle the Neurons' Fund participation in this SNS Swap. +// +// When a swap ends, the Swap canister notifies the Neurons' Fund of the swap's ultimate result, +// which can be either `Committed` or `Aborted`. Note that currently, the Neurons' Fund is managed +// by the NNS Governance canister. +// * If the result is `Committed`: +// - Neurons' Fund computes the "effective" participation amount for each of its neurons (as per +// the Matched Funding rules). This computation is based on the total direct participation +// amount, which is thus a field of `Committed`. +// - Neurons' Fund converts the "effective" amount of maturity into ICP by: +// - Requesting the ICP Ledger to mint an appropriate amount of ICP tokens and sending them +// to the SNS treasury. +// - Refunding whatever maturity is left over (the maximum possible maturity is reserved by +// the Neurons' Fund before the swap begins). +// - Neurons' Fund returns the Neurons' Fund participants back to the Swap canister +// (see SettleNeuronsFundParticipationResponse). +// - The Swap canister then creates SNS neurons for the Neurons' Fund participants. +// * If the result is Aborted, the Neurons' Fund is refunded for all maturity reserved for this SNS. +// +// This design assumes trust between the Neurons' Fund and the SNS Swap canisters. In the one hand, +// the Swap trusts that the Neurons' Fund sends the correct amount of ICP to the SNS treasury, +// and that the Neurons' Fund allocates its participants following the Matched Funding rules. On the +// other hand, the Neurons' Fund trusts that the Swap will indeed create appropriate SNS neurons +// for the Neurons' Fund participants. +// +// The justification for this trust assumption is as follows. The Neurons' Fund can be trusted as +// it is controlled by the NNS. The SNS Swap can be trusted as it is (1) deployed by SNS-W, which is +// also part of the NNS and (2) upgraded via an NNS proposal (unlike all other SNS canisters). +// +// This request may be submitted only by the Swap canister of an SNS instance created by +// a CreateServiceNervousSystem proposal. +// +// TODO(NNS1-1589): Until the Jira ticket gets solved, changes here need to be +// manually propagated to (sns) swap.proto. +message SettleNeuronsFundParticipationRequest { + // Proposal ID of the CreateServiceNervousSystem proposal that created this SNS instance. + optional uint64 nns_proposal_id = 1; + + // Each of the possibilities here corresponds to one of two ways that a swap can terminate. + // See also sns_swap_pb::Lifecycle::is_terminal. + oneof result { + Committed committed = 2; + Aborted aborted = 3; + } + + // When this happens, the NNS Governance needs to do several things: + // (1) Compute the effective amount of ICP per neuron of the Neurons' Fund as a function of + // `total_direct_participation_icp_e8s`. The overall Neurons' Fund participation should + // equal `total_neurons_fund_contribution_icp_e8s`. + // (2) Mint (via the ICP Ledger) and sent to the SNS governance the amount of + // `total_neurons_fund_contribution_icp_e8s`. + // (3) Respond to this request with `SettleNeuronsFundParticipationResponse`, providing + // the set of `NeuronsFundParticipant`s with the effective amount of ICP per neuron, + // as computed in step (1). + // (4) Refund each neuron of the Neurons' Fund with (reserved - effective) amount of ICP. + // Effective amounts depend on `total_direct_participation_icp_e8s` and the participation limits + // of a particular SNS instance, namely, each participation must be between + // `min_participant_icp_e8s` and `max_participant_icp_e8s`. + // - If a neuron of the Neurons' Fund has less than `min_participant_icp_e8s` worth of maturity, + // then it is ineligible to participate. + // - If a neuron of the Neurons' Fund has more than `max_participant_icp_e8s` worth of maturity, + // then its participation amount is limited to `max_participant_icp_e8s`. + // Reserved amounts are computed as the minimal upper bound on the effective amounts, i.e., when + // the value `total_direct_participation_icp_e8s` reaches its theoretical maximum. + message Committed { + // This is where the minted ICP will be sent. + ic_base_types.pb.v1.PrincipalId sns_governance_canister_id = 1; + // Total amount of participation from direct swap participants. + optional uint64 total_direct_participation_icp_e8s = 2; + // Total amount of participation from the Neurons' Fund. + // TODO[NNS1-2570]: Ensure this field is set. + optional uint64 total_neurons_fund_participation_icp_e8s = 3; + } + + // When this happens, all priorly reserved maturity for this SNS instance needs to be restored to + // the Neurons' Fund neurons. + message Aborted {} +} + +// Handling the Neurons' Fund and transferring some of its maturity to an SNS treasury is +// thus the responsibility of the NNS Governance. When a swap succeeds, a Swap canister should send +// a `settle_neurons_fund_participation` request to the NNS Governance, specifying its `result` +// field as `committed`. The NNS Governance then computes the ultimate distribution of maturity in +// the Neurons' Fund. However, this distribution also needs to be made available to the SNS Swap +// that will use this information to create SNS neurons of an appropriate size for each +// Neurons' Fund (as well as direct) participant. That is why in the `committed` case, +// the NNS Governance should populate the `neurons_fund_participants` field, while in the `aborted` +// case it should be empty. +// +// TODO(NNS1-1589): Until the Jira ticket gets solved, changes here need to be +// manually propagated to (sns) swap.proto. +message SettleNeuronsFundParticipationResponse { + // Represents one NNS neuron from the Neurons' Fund participating in this swap. + message NeuronsFundNeuron { + // The NNS neuron ID of the participating neuron. + optional uint64 nns_neuron_id = 1; + // The amount of Neurons' Fund participation associated with this neuron. + optional uint64 amount_icp_e8s = 2; + // The principal that can vote on behalf of this neuron. + optional string hotkey_principal = 3; + // Whether the amount maturity amount of Neurons' Fund participation associated with this neuron + // has been capped to reflect the maximum participation amount for this SNS swap. + optional bool is_capped = 4; + } + + // Request was completed successfully. + message Ok { + repeated NeuronsFundNeuron neurons_fund_neuron_portions = 1; + } + + oneof result { + GovernanceError err = 1; + Ok ok = 2; + } +} + +// The id of a specific neuron, which equals the neuron's subaccount on +// the ledger canister (the account that holds the neuron's staked tokens). +message NeuronId { + bytes id = 1; +} + +// END NNS1-1589 HACKS + +message CanisterCallError { + optional int32 code = 1; + string description = 2; +} + +// Request a refund of tokens that were sent to the canister in +// error. The refund is always on the ICP ledger, from this canister's +// subaccount of the caller to the account of the caller. +message ErrorRefundIcpRequest { + // Principal who originally sent the funds to us, and is now asking for any + // unaccepted balance to be returned. + ic_base_types.pb.v1.PrincipalId source_principal_id = 1; +} + +message ErrorRefundIcpResponse { + // Request was completed successfully. + message Ok { + // The ledger transfer went through at this block height. + optional uint64 block_height = 1; + } + + // Request was not successful, and no funds were transferred. + message Err { + enum Type { + TYPE_UNSPECIFIED = 0; + + // There is something wrong with the request. If repeated, the request + // will always be rejected. + TYPE_INVALID_REQUEST = 1; + + // Most likely, the canister is in the wrong Lifecycle. More generally, + // the system is not yet in a state where the request can be fulfilled, + // but it might enter a suitable state later. In this case, the same + // request might be accepted later. + TYPE_PRECONDITION = 2; + + // Most likely, a request to the ledger failed, in which case, it can be + // assumed that no funds were transferred. In general, this is caused by + // something outside this canister, which usually means some other + // canister (such as ledger). + TYPE_EXTERNAL = 3; + } + + optional Type error_type = 1; + optional string description = 2; + } + + oneof result { + Ok ok = 1; + Err err = 2; + } +} + +// Request struct for the method `get_lifecycle` +message GetLifecycleRequest {} + +// Response struct for the method `get_lifecycle` +message GetLifecycleResponse { + optional Lifecycle lifecycle = 1; + optional uint64 decentralization_sale_open_timestamp_seconds = 2; + optional uint64 decentralization_swap_termination_timestamp_seconds = 3; +} + +message GetAutoFinalizationStatusRequest {} + +message GetAutoFinalizationStatusResponse { + // Reflects whether auto-finalization has been enabled via in the init + // parameters (`should_auto_finalize`). + optional bool is_auto_finalize_enabled = 1; + + // True if and only if auto-finalization has been started. + optional bool has_auto_finalize_been_attempted = 2; + + // Will be populated with the FinalizeSwapResponse once auto-finalization has + // completed. + optional FinalizeSwapResponse auto_finalize_swap_response = 3; +} + +// Request struct for the method `get_init` +message GetInitRequest {} + +// Response struct for the method `get_init` +message GetInitResponse { + optional Init init = 1; +} + +// Request struct for the method `get_derived_state` +message GetDerivedStateRequest {} + +// Response struct for the method `get_derived_state` +message GetDerivedStateResponse { + optional uint64 buyer_total_icp_e8s = 1; + // Current number of non-Neurons' Fund swap participants + optional uint64 direct_participant_count = 3; + // Current number of Neurons' Fund swap participants. In particular, it's the + // number of unique controllers of the neurons participating + // in the Neurons' Fund. + optional uint64 cf_participant_count = 4; + // Current number of Neurons' Fund neurons participating in the swap + // May be greater than cf_participant_count if multiple neurons in + // the Neurons' Fund have the same controller. + optional uint64 cf_neuron_count = 5; + optional double sns_tokens_per_icp = 2; + // Current amount of contributions from direct swap participants. + optional uint64 direct_participation_icp_e8s = 6; + // Current amount of contributions from the Neurons' Fund. + optional uint64 neurons_fund_participation_icp_e8s = 7; +} + +// ICRC-1 Account. See https://github.com/dfinity/ICRC-1/tree/main/standards/ICRC-1 +message ICRC1Account { + ic_base_types.pb.v1.PrincipalId owner = 1; + optional bytes subaccount = 2; +} + +// A device for ensuring that retrying (direct) participation does not result +// in multiple participation. Basically, this records a user's intent to +// participate BEFORE moving any funds. +// +// How this is used: before any money is sent, a user's agent must first look +// for an existing ticket. If one does not exist, then, a new one is created +// for the current participation that is now being attempted (for +// the first time). +// +// If there is already a ticket, then the new participation must be aborted. +// The surprise existence of the ticket indicates that there is a pending +// participation. In this case the user's agent must attempt to perform the same +// participation as stated in the ticket before doing anything else. +message Ticket { + // Unique ID of the ticket + uint64 ticket_id = 1; + + // The account of the ticket. + // + // account.owner is the owner of this ticket. + ICRC1Account account = 2; + + // The user-set amount of the ticket in ICP e8s + uint64 amount_icp_e8s = 3; + + // The timestamp of creation of this ticket + uint64 creation_time = 4; +} + +// Request struct for the method `get_open_ticket` +message GetOpenTicketRequest {} + +// Response struct for the method `get_open_ticket` +message GetOpenTicketResponse { + // Request was completed successfully. + message Ok { + // If there is an open swap ticket for the caller then this field + // contains it. + optional Ticket ticket = 1; + } + + // Request was not successful, and no ticket was created. + message Err { + enum Type { + TYPE_UNSPECIFIED = 0; + + TYPE_SALE_NOT_OPEN = 1; + + TYPE_SALE_CLOSED = 2; + } + + optional Type error_type = 1; + } + + oneof result { + Ok ok = 1; + Err err = 2; + } +} + +// Request struct for the method `new_sale_ticket` +message NewSaleTicketRequest { + // The user-set amount of the ticket in ICP e8s + uint64 amount_icp_e8s = 1; + + // The subaccount of the caller to be used for the ticket + optional bytes subaccount = 2; +} + +// Response struct for the method `new_sale_ticket` +message NewSaleTicketResponse { + // Request was completed successfully. + message Ok { + // The created ticket. + Ticket ticket = 1; + } + + // Request was not successful, and no ticket was created. + message Err { + message InvalidUserAmount { + uint64 min_amount_icp_e8s_included = 1; + uint64 max_amount_icp_e8s_included = 2; + } + + enum Type { + TYPE_UNSPECIFIED = 0; + + TYPE_SALE_NOT_OPEN = 1; + + TYPE_SALE_CLOSED = 2; + + // There is already an open ticket associated with the caller. + // + // When this is the `error_type`, then the field existing_ticket + // is set and contains the ticket itself. + TYPE_TICKET_EXISTS = 3; + + // The amount sent by the user is not within the Swap parameters. + // + // When this is the `error_type`, then the field invalid_user_amount + // is set and describes minimum and maximum amounts. + TYPE_INVALID_USER_AMOUNT = 4; + + // The specified subaccount is not a valid subaccount + // (length != 32 bytes). + TYPE_INVALID_SUBACCOUNT = 5; + + // The specified principal is forbidden from creating tickets. + TYPE_INVALID_PRINCIPAL = 6; + } + + Type error_type = 1; + + // When `error_type` is `INVALID_USER_AMOUNT` then this field + // describes the minimum and maximum amounts. + optional InvalidUserAmount invalid_user_amount = 2; + + // When `error_type` is `TICKET_EXISTS` then this field + // contains the ticket that already exists. + optional Ticket existing_ticket = 3; + } + + oneof result { + Ok ok = 1; + Err err = 2; + } +} + +// Request struct for the method `list_direct_participants`. This method +// paginates over all direct participants in the decentralization swap. +// Direct participants are participants who did not participate via the +// Neurons' Fund. +message ListDirectParticipantsRequest { + // The limit of the number of Participants returned in each page, in range + // [0, 30,000]. + // If no value, or a value outside of this range is requested, 30,000 will be + // used. + optional uint32 limit = 1; + + // Skip the first `offset` elements when constructing the response. + optional uint32 offset = 2; +} + +// Response struct for the method `list_direct_participants`. +message ListDirectParticipantsResponse { + // The list of Participants returned from the invocation of + // `list_direct_participants`. + // The list is a page of all the buyers in the Swap canister at the time of + // the method call. The size of the page is equal to either: + // - the max page size (30,000), + // - the corresponding `ListDirectParticipantsRequest.limit`, + // - the remaining Participants, if there are fewer than `limit` participants + // left. + // + // Pagination through the entire list of participants is complete if + // len(participants) < `ListDirectParticipantsRequest.limit`. + repeated Participant participants = 1; +} + +// A direct Participant in the decentralization swap. +message Participant { + // The PrincipalId of the participant. + ic_base_types.pb.v1.PrincipalId participant_id = 1; + + // The BuyerState of the participant, which includes the + // amount of participation in e8s of a Token, and the transfer + // status of those tokens. + BuyerState participation = 2; +} + +// Request struct for the method `get_sale_parameters`. +message GetSaleParametersRequest {} + +// Response struct for the method `get_sale_parameters`. +message GetSaleParametersResponse { + Params params = 1; +} + +// Request struct for the method `list_community_fund_participants`. +message ListCommunityFundParticipantsRequest { + // The maximum number of elements that will be in the response. + // This is capped at 10_000. + optional uint32 limit = 1; + // Skip the first `offset` elements when constructing the response + optional uint64 offset = 2; +} + +// Response struct for the method `list_community_fund_participants`. +message ListCommunityFundParticipantsResponse { + repeated CfParticipant cf_participants = 1; +} + +// Request for the method `list_sns_neuron_recipes` +message ListSnsNeuronRecipesRequest { + // The maximum number of elements that will be in the response. + // This is capped at 10_000. + optional uint32 limit = 1; + // Skip the first `offset` elements when constructing the response + optional uint64 offset = 2; +} + +// Response for the method `list_sns_neuron_recipes` +message ListSnsNeuronRecipesResponse { + repeated SnsNeuronRecipe sns_neuron_recipes = 1; +} + +// Request struct for the method `notify_payment_failure` +message NotifyPaymentFailureRequest {} + +// Response for the method `notify_payment_failure` +// Returns the ticket if a ticket was found for the caller and the ticket +// was removed successfully. Returns None if no ticket was found for the caller. +message NotifyPaymentFailureResponse { + optional Ticket ticket = 1; +} diff --git a/scripts/update_proto.sh b/scripts/update_proto.sh index dbb8d3585..751dcf0f3 100755 --- a/scripts/update_proto.sh +++ b/scripts/update_proto.sh @@ -7,6 +7,20 @@ protoc \ --proto_path="./packages/nns-proto/" \ ./packages/nns-proto/proto/base_types.proto +protoc \ + --plugin="protoc-gen-ts=./node_modules/.bin/protoc-gen-ts" \ + --ts_out="./packages/nns-proto/" \ + --js_out="import_style=commonjs,binary:./packages/nns-proto/" \ + --proto_path="./packages/nns-proto/" \ + ./packages/nns-proto/proto/nervous_system.proto + +protoc \ + --plugin="protoc-gen-ts=./node_modules/.bin/protoc-gen-ts" \ + --ts_out="./packages/nns-proto/" \ + --js_out="import_style=commonjs,binary:./packages/nns-proto/" \ + --proto_path="./packages/nns-proto/" \ + ./packages/nns-proto/proto/nns_common.proto + protoc \ --plugin="protoc-gen-ts=./node_modules/.bin/protoc-gen-ts" \ --ts_out="./packages/nns-proto/proto/" \