From 5d8e1e4de06b048adb1f535a8d63890f2b315de9 Mon Sep 17 00:00:00 2001 From: Quint Daenen Date: Mon, 3 Jun 2024 20:39:45 +0200 Subject: [PATCH] Remove generated Motoko files. --- gen/generator.go | 275 ---- gen/templates/actor_mo.gotmpl | 12 - gen/templates/types_mo.gotmpl | 6 - ic/assetstorage/actor.mo | 115 -- ic/assetstorage/types.mo | 35 - ic/cmc/actor.mo | 31 - ic/cmc/types.mo | 29 - ic/governance/actor.mo | 91 -- ic/governance/types.mo | 149 -- ic/ic/actor.mo | 88 -- ic/ic/agent.go | 50 +- ic/ic/types.mo | 64 - ic/ic_test.go | 10 +- ic/icparchive/actor.mo | 13 - ic/icparchive/types.mo | 16 - ic/icpledger/actor.mo | 82 - ic/icpledger/agent.go | 88 ++ ic/icpledger/types.mo | 54 - ic/icrc1/actor.mo | 37 - ic/icrc1/types.mo | 10 - ic/registry/actor.mo | 142 -- ic/registry/agent.go | 136 +- ic/registry/types.mo | 62 - ic/sns/agent.go | 22 + ic/sns/ledger/agent.go | 2 +- ic/sns/testdata/did/sns.did | 5 + ic/testdata/actor.mo | 4 + ic/testdata/did/ic.did | 24 + ic/testdata/did/registry.did | 72 +- ic/testdata/gen.go | 17 - ic/wallet/actor.mo | 106 -- ic/wallet/types.mo | 29 - registry/proto/v1/local.pb.go | 155 +- registry/proto/v1/node.pb.go | 6 +- registry/proto/v1/operator.pb.go | 108 +- registry/proto/v1/registry.pb.go | 106 +- registry/proto/v1/subnet.pb.go | 2422 ++++++++++++++--------------- registry/proto/v1/transport.pb.go | 1 - 38 files changed, 1712 insertions(+), 2962 deletions(-) delete mode 100644 gen/templates/actor_mo.gotmpl delete mode 100644 gen/templates/types_mo.gotmpl delete mode 100755 ic/assetstorage/actor.mo delete mode 100755 ic/assetstorage/types.mo delete mode 100755 ic/cmc/actor.mo delete mode 100755 ic/cmc/types.mo delete mode 100755 ic/governance/actor.mo delete mode 100755 ic/governance/types.mo delete mode 100755 ic/ic/actor.mo delete mode 100755 ic/ic/types.mo delete mode 100755 ic/icparchive/actor.mo delete mode 100755 ic/icparchive/types.mo delete mode 100755 ic/icpledger/actor.mo delete mode 100755 ic/icpledger/types.mo delete mode 100755 ic/icrc1/actor.mo delete mode 100755 ic/icrc1/types.mo delete mode 100755 ic/registry/actor.mo delete mode 100755 ic/registry/types.mo create mode 100644 ic/testdata/actor.mo delete mode 100755 ic/wallet/actor.mo delete mode 100755 ic/wallet/types.mo diff --git a/gen/generator.go b/gen/generator.go index 616b3a3..71fab88 100644 --- a/gen/generator.go +++ b/gen/generator.go @@ -6,10 +6,8 @@ import ( "fmt" "github.com/aviate-labs/agent-go/candid" "github.com/aviate-labs/agent-go/candid/did" - "github.com/aviate-labs/agent-go/candid/idl" "io" "io/fs" - "math/rand" "strings" "text/template" ) @@ -169,268 +167,12 @@ func (g *Generator) Generate() ([]byte, error) { return io.ReadAll(&tmpl) } -func (g *Generator) GenerateActor() ([]byte, error) { - definitions := make(map[string]did.Data) - for _, definition := range g.ServiceDescription.Definitions { - switch definition := definition.(type) { - case did.Type: - definitions[definition.Id] = definition.Data - } - } - - var methods []actorArgsMethod - for _, service := range g.ServiceDescription.Services { - for _, method := range service.Methods { - name := rawName(method.Name) - f := method.Func - - var argumentTypes []agentArgsMethodArgument - for i, t := range f.ArgTypes { - argumentTypes = append(argumentTypes, agentArgsMethodArgument{ - Name: fmt.Sprintf("_arg%d", i), - Type: g.dataToMotokoString(t.Data), - }) - } - - var returnTypes []string - for _, t := range f.ResTypes { - returnTypes = append(returnTypes, g.dataToMotokoString(t.Data)) - } - - r := rand.NewSource(idl.Hash(g.CanisterName).Int64()) - var returnValues []string - for _, t := range f.ResTypes { - returnValues = append(returnValues, g.dataToMotokoReturnValue(r, definitions, t.Data)) - } - - typ := "shared" - if f.Annotation != nil && *f.Annotation == did.AnnQuery { - typ = "query" - } - - methods = append(methods, actorArgsMethod{ - Name: name, - Type: typ, - ArgumentTypes: argumentTypes, - ReturnTypes: returnTypes, - ReturnValues: returnValues, - }) - } - } - t, ok := templates["actor_mo"] - if !ok { - return nil, fmt.Errorf("template not found") - } - var tmpl bytes.Buffer - if err := t.Execute(&tmpl, actorArgs{ - CanisterName: g.CanisterName, - Methods: methods, - }); err != nil { - return nil, err - } - return io.ReadAll(&tmpl) -} - -func (g *Generator) GenerateActorTypes() ([]byte, error) { - var definitions []agentArgsDefinition - for _, definition := range g.ServiceDescription.Definitions { - switch definition := definition.(type) { - case did.Type: - definitions = append(definitions, agentArgsDefinition{ - Name: funcName("", definition.Id), - Type: g.dataToMotokoString(definition.Data), - }) - } - } - t, ok := templates["types_mo"] - if !ok { - return nil, fmt.Errorf("template not found") - } - var tmpl bytes.Buffer - if err := t.Execute(&tmpl, actorTypesArgs{ - Definitions: definitions, - }); err != nil { - return nil, err - } - return io.ReadAll(&tmpl) -} - // Indirect sets the generator to generate indirect calls. func (g *Generator) Indirect() *Generator { g.indirect = true return g } -func (g *Generator) dataToMotokoReturnValue(s rand.Source, definitions map[string]did.Data, data did.Data) string { - r := rand.New(s) - switch t := data.(type) { - case did.DataId: - return g.dataToMotokoReturnValue(s, definitions, definitions[string(t)]) - case did.Blob: - var b [32]byte - r.Read(b[:]) - return fmt.Sprintf("\"x%02X\"", b) - case did.Func: - return "{ /* func */ }" - case did.Principal: - var b [32]byte - r.Read(b[:]) - return fmt.Sprintf("principalOfBlob(\"x%02X\")", b[:]) - case did.Primitive: - switch t { - case "null": - return "()" - case "bool": - return fmt.Sprintf("%t", r.Int()%2 == 0) - case "nat", "int": - return fmt.Sprintf("%d", r.Uint64()) - case "nat8": - return fmt.Sprintf("%d", r.Uint64()%0xFF) - case "nat16": - return fmt.Sprintf("%d", r.Uint64()%0xFFFF) - case "nat32": - return fmt.Sprintf("%d", r.Uint64()%0xFFFFFFFF) - case "nat64": - return fmt.Sprintf("%d", r.Uint64()%0xFFFFFFFFFFFFFFFF) - case "text": - return fmt.Sprintf("\"%d\"", r.Uint64()) - } - case did.Vector: - n := r.Int() % 10 - var values []string - for i := 0; i < n; i++ { - values = append(values, g.dataToMotokoReturnValue(s, definitions, t.Data)) - } - return fmt.Sprintf("[ %s ]", strings.Join(values, ", ")) - case did.Record: - var tuple bool - var fields []string - for _, v := range t { - if v.Name != nil { - var data string - if v.NameData != nil { - data = g.dataToMotokoReturnValue(s, definitions, definitions[*v.NameData]) - } else { - data = g.dataToMotokoReturnValue(s, definitions, *v.Data) - } - fields = append(fields, fmt.Sprintf("%s = %s", *v.Name, data)) - } else { - tuple = true - break - } - } - if !tuple { - return fmt.Sprintf("{ %s }", strings.Join(fields, "; ")) - } - - var values []string - for _, field := range t { - if field.Data != nil { - values = append(values, g.dataToMotokoReturnValue(s, definitions, *field.Data)) - } else { - values = append(values, g.dataToMotokoReturnValue(s, definitions, definitions[*field.NameData])) - } - } - return fmt.Sprintf("( %s )", strings.Join(values, ", ")) - case did.Variant: - r := s.Int63() % int64(len(t)) - field := t[r] - if field.Data != nil { - return fmt.Sprintf("#%s(%s)", *field.Name, g.dataToMotokoReturnValue(s, definitions, *field.Data)) - } - if field.Name != nil { - return fmt.Sprintf("#%s(%s)", *field.Name, g.dataToMotokoReturnValue(s, definitions, definitions[*field.NameData])) - } - if data := definitions[*field.NameData]; data != nil { - return fmt.Sprintf("#%s(%s)", *field.NameData, g.dataToMotokoReturnValue(s, definitions, definitions[*field.NameData])) - } - return fmt.Sprintf("#%s", *field.NameData) - case did.Optional: - return fmt.Sprintf("?%s", g.dataToMotokoReturnValue(s, definitions, t.Data)) - } - return fmt.Sprintf("%q # %q", "UNKNOWN", data) -} - -func (g *Generator) dataToMotokoString(data did.Data) string { - switch t := data.(type) { - case did.Blob: - return "Blob" - case did.Func: - return "{ /* func */ }" - case did.Record: - var fields []string - for _, v := range t { - if v.Name != nil { - var data string - if v.NameData != nil { - data = fmt.Sprintf("T.%s", funcName("", *v.NameData)) - } else { - data = g.dataToMotokoString(*v.Data) - } - fields = append(fields, fmt.Sprintf("%s : %s", *v.Name, data)) - } else { - if v.NameData != nil { - fields = append(fields, fmt.Sprintf("T.%s", funcName("", *v.NameData))) - } else { - fields = append(fields, g.dataToMotokoString(*v.Data)) - } - } - } - var isTuple bool - for _, f := range fields { - if !strings.Contains(f, ":") { - isTuple = true - break - } - } - if isTuple { - return fmt.Sprintf("(%s)", strings.Join(fields, ", ")) - } - return fmt.Sprintf("{ %s }", strings.Join(fields, "; ")) - case did.Variant: - var variants []string - for _, v := range t { - if v.Name != nil { - var data string - if v.NameData != nil { - data = fmt.Sprintf("T.%s", funcName("", *v.NameData)) - } else { - data = g.dataToMotokoString(*v.Data) - } - variants = append(variants, fmt.Sprintf("#%s : %s", *v.Name, data)) - } else { - variants = append(variants, fmt.Sprintf("#%s", *v.NameData)) - } - } - return fmt.Sprintf("{ %s }", strings.Join(variants, "; ")) - case did.Vector: - return fmt.Sprintf("[%s]", g.dataToMotokoString(t.Data)) - case did.Optional: - return fmt.Sprintf("?%s", g.dataToMotokoString(t.Data)) - case did.Primitive: - switch t { - case "nat", "nat8", "nat16", "nat32", "nat64": - return strings.ReplaceAll(data.String(), "nat", "Nat") - case "int", "int8", "int16", "int32", "int64": - return strings.ReplaceAll(data.String(), "int", "Int") - case "text": - return "Text" - case "bool": - return "Bool" - case "null": - return "()" - default: - return t.String() - } - case did.Principal: - return "Principal" - case did.DataId: - return fmt.Sprintf("T.%s", funcName("", string(t))) - default: - panic(fmt.Sprintf("unknown type: %T", t)) - } -} - func (g *Generator) dataToString(prefix string, data did.Data) string { switch t := data.(type) { case did.Blob: @@ -578,23 +320,6 @@ func (g *Generator) dataToString(prefix string, data did.Data) string { } } -type actorArgs struct { - CanisterName string - Methods []actorArgsMethod -} - -type actorArgsMethod struct { - Name string - Type string - ArgumentTypes []agentArgsMethodArgument - ReturnTypes []string - ReturnValues []string -} - -type actorTypesArgs struct { - Definitions []agentArgsDefinition -} - type agentArgs struct { AgentName string CanisterName string diff --git a/gen/templates/actor_mo.gotmpl b/gen/templates/actor_mo.gotmpl deleted file mode 100644 index 1fb1b53..0000000 --- a/gen/templates/actor_mo.gotmpl +++ /dev/null @@ -1,12 +0,0 @@ -// Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go. -import T "types"; - -import { principalOfBlob } = "mo:⛔"; - -actor class _{{ .CanisterName }}() : async actor {} { -{{- range .Methods }} - public {{ .Type}} func {{ .Name }}({{ range $i, $e := .ArgumentTypes }}{{ if $i }}, {{ end }}{{ $e.Name }} : {{ $e.Type }}{{ end }}) : async ({{ range $i, $e := .ReturnTypes }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}) { - ({{ range $i, $e := .ReturnValues }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}) - }; -{{- end }} -} diff --git a/gen/templates/types_mo.gotmpl b/gen/templates/types_mo.gotmpl deleted file mode 100644 index 2059b64..0000000 --- a/gen/templates/types_mo.gotmpl +++ /dev/null @@ -1,6 +0,0 @@ -// Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go. -module T { -{{- range .Definitions }} - public type {{ .Name }} = {{ .Type }}; -{{- end }} -}; diff --git a/ic/assetstorage/actor.mo b/ic/assetstorage/actor.mo deleted file mode 100755 index eb164d4..0000000 --- a/ic/assetstorage/actor.mo +++ /dev/null @@ -1,115 +0,0 @@ -// Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go. -import T "types"; - -import { principalOfBlob } = "mo:⛔"; - -actor class _assetstorage() : async actor {} { - public query func api_version() : async (Nat16) { - (37567) - }; - public query func get(_arg0 : { key : T.Key; accept_encodings : [Text] }) : async ({ content : Blob; content_type : Text; content_encoding : Text; sha256 : ?Blob; total_length : Nat }) { - ({ content = "xD29BA3285331F6C7F0D655473EECC726ACDC040F58EA6EB25E7F29AF0D9A0D1C"; content_type = "16783008128760111668"; content_encoding = "17950520798700563169"; sha256 = ?"x9CB2427F6FE653F6B62FBA96D8F1E12A8E56D5C2F78BFBBC1AA2123F3F351627"; total_length = 6026846697888358752 }) - }; - public query func get_chunk(_arg0 : { key : T.Key; content_encoding : Text; index : Nat; sha256 : ?Blob }) : async ({ content : Blob }) { - ({ content = "xD29BA3285331F6C7F0D655473EECC726ACDC040F58EA6EB25E7F29AF0D9A0D1C" }) - }; - public query func list(_arg0 : { }) : async ([{ key : T.Key; content_type : Text; encodings : [{ content_encoding : Text; sha256 : ?Blob; length : Nat; modified : T.Time }] }]) { - ([ { key = "10947193270334582983"; content_type = "14796593089282320071"; encodings = [ ] }, { key = "5581137331052452365"; content_type = "16783008128760111668"; encodings = [ { content_encoding = "12417521964141425308"; sha256 = ?"xF6B62FBA96D8F1E12A8E56D5C2F78BFBBC1AA2123F3F351627CDA4F460215FDF"; length = 6761596587761439523; modified = 10710614497258299314 } ] }, { key = "15136801312447304127"; content_type = "162152548071980469"; encodings = [ { content_encoding = "14077209220119134463"; sha256 = ?"xD3C55B521FA7E06E7250741B34B1DAA9B202CC3344785BC76BE335FD22FFB6C9"; length = 2084077193164783305; modified = 13391675440417614532 }, { content_encoding = "14968975491899110795"; sha256 = ?"x37C657F58FE763E151AE30313D91840FE735F3F6150AB1E806425DC06D370BF7"; length = 2352680325195863822; modified = 14128014930335967750 } ] }, { key = "3746323425543278841"; content_type = "8821984346850239251"; encodings = [ { content_encoding = "14462736655647055063"; sha256 = ?"xCFA664CF571B6486A80528C4DCAE1D1930B6D8706B4A7C18EE44C91F412FFD02"; length = 9929700925399154573; modified = 11088767165576575891 }, { content_encoding = "15046035820075230567"; sha256 = ?"x33CFD8BFE7A383ECAFF6D1758A17DAC3846F3083D3C758209A80969C406C0F9F"; length = 12055834449873493410; modified = 31796421242169405 }, { content_encoding = "11447805667579589575"; sha256 = ?"x36DB7871DEFE2A16CB43D7DBFF5C07226CA4A775F57295BA54EBD1D035949200"; length = 13617578955253855046; modified = 1594180888861903055 }, { content_encoding = "6239237605257051267"; sha256 = ?"x0A83E5B901801DC34B34B974BCC4F911C2DF37312B004FA56633078D52F45C95"; length = 6564397865503231339; modified = 17571980052175681961 }, { content_encoding = "14305891745011577671"; sha256 = ?"x121F7F91E31B2A591C27E24EA90A3729479AB9B9E9641D8A87074BFCDD4CA2E2"; length = 14483061483814533662; modified = 8636116459066836694 }, { content_encoding = "14155040766310771050"; sha256 = ?"xC8AB4E4984A709FFAE8CBE87BB5CE7F2DC81E2E7A27D7CB3A63FD6926CE2A6D0"; length = 5638244237989845542; modified = 11216713222199587111 }, { content_encoding = "11823872115486408554"; sha256 = ?"x950831FCD6D2699AF9998BFD7C850E5037142EB4093ABEF26890C5411F599E8D"; length = 9533094216574500419; modified = 16489285970588961804 }, { content_encoding = "10490462624386304549"; sha256 = ?"xEC5265FA86B9FDF91D5FC6B39FEC4535B8F2C60CE39721211ABDC925F8CC7C94"; length = 13758130762095906934; modified = 1365263110879385157 }, { content_encoding = "112410521269379018"; sha256 = ?"x8A2CF08ABE41AB318D2ED03D6B4D526C85BF2F14CDECB0C89BEEA288B3AAE000"; length = 14746017119238981010; modified = 5692415230495667644 } ] } ]) - }; - public query func certified_tree(_arg0 : { }) : async ({ certificate : Blob; tree : Blob }) { - ({ certificate = "xD29BA3285331F6C7F0D655473EECC726ACDC040F58EA6EB25E7F29AF0D9A0D1C"; tree = "x34623D11F938E9E1EACE7B8F0F1D9CB2427F6FE653F6B62FBA96D8F1E12A8E56" }) - }; - public shared func create_batch(_arg0 : { }) : async ({ batch_id : T.BatchId }) { - ({ batch_id = 11310281747421436882 }) - }; - public shared func create_chunk(_arg0 : { batch_id : T.BatchId; content : Blob }) : async ({ chunk_id : T.ChunkId }) { - ({ chunk_id = 11310281747421436882 }) - }; - public shared func commit_batch(_arg0 : T.CommitBatchArguments) : async () { - () - }; - public shared func propose_commit_batch(_arg0 : T.CommitBatchArguments) : async () { - () - }; - public shared func commit_proposed_batch(_arg0 : T.CommitProposedBatchArguments) : async () { - () - }; - public shared func compute_evidence(_arg0 : T.ComputeEvidenceArguments) : async (?Blob) { - (?"xD29BA3285331F6C7F0D655473EECC726ACDC040F58EA6EB25E7F29AF0D9A0D1C") - }; - public shared func delete_batch(_arg0 : T.DeleteBatchArguments) : async () { - () - }; - public shared func create_asset(_arg0 : T.CreateAssetArguments) : async () { - () - }; - public shared func set_asset_content(_arg0 : T.SetAssetContentArguments) : async () { - () - }; - public shared func unset_asset_content(_arg0 : T.UnsetAssetContentArguments) : async () { - () - }; - public shared func delete_asset(_arg0 : T.DeleteAssetArguments) : async () { - () - }; - public shared func clear(_arg0 : T.ClearArguments) : async () { - () - }; - public shared func store(_arg0 : { key : T.Key; content_type : Text; content_encoding : Text; content : Blob; sha256 : ?Blob }) : async () { - () - }; - public query func http_request(_arg0 : T.HttpRequest) : async (T.HttpResponse) { - ({ status_code = 37567; headers = [ ( "14796593089282320071", "10425597289412325098" ), ( "5581137331052452365", "16783008128760111668" ), ( "17950520798700563169", "12417521964141425308" ), ( "5040047599884678902", "14841545318558739169" ), ( "11042565298778340235", "7634908469330851135" ) ]; body = "x60215FDF23A9A3239303A84504D6B2DF3A5323BFA3BF91167098B810B53D4123"; streaming_strategy = ?#Callback({ callback = { /* func */ }; token = { key = "14077209220119134463"; content_encoding = "3666113849647154643"; index = 10714402281011311214; sha256 = ?"xDAA9B202CC3344785BC76BE335FD22FFB6C97165F2C97E144F2A21ECC42A6A65" } }) }) - }; - public query func http_request_streaming_callback(_arg0 : T.StreamingCallbackToken) : async (?T.StreamingCallbackHttpResponse) { - (?{ body = "xD29BA3285331F6C7F0D655473EECC726ACDC040F58EA6EB25E7F29AF0D9A0D1C"; token = ?{ key = "16783008128760111668"; content_encoding = "17950520798700563169"; index = 12417521964141425308; sha256 = ?"xF6B62FBA96D8F1E12A8E56D5C2F78BFBBC1AA2123F3F351627CDA4F460215FDF" } }) - }; - public shared func authorize(_arg0 : Principal) : async () { - () - }; - public shared func deauthorize(_arg0 : Principal) : async () { - () - }; - public shared func list_authorized() : async ([Principal]) { - ([ principalOfBlob("xC7F0D655473EECC726ACDC040F58EA6EB25E7F29AF0D9A0D1CD52E7434623D11"), principalOfBlob("xE1EACE7B8F0F1D9CB2427F6FE653F6B62FBA96D8F1E12A8E56D5C2F78BFBBC1A"), principalOfBlob("x3F351627CDA4F460215FDF23A9A3239303A84504D6B2DF3A5323BFA3BF911670"), principalOfBlob("xB53D4123E21440C05493AA5C742BFF000E92334B5CD3C55B521FA7E06E725074") ]) - }; - public shared func grant_permission(_arg0 : T.GrantPermission) : async () { - () - }; - public shared func revoke_permission(_arg0 : T.RevokePermission) : async () { - () - }; - public shared func list_permitted(_arg0 : T.ListPermitted) : async ([Principal]) { - ([ principalOfBlob("xC7F0D655473EECC726ACDC040F58EA6EB25E7F29AF0D9A0D1CD52E7434623D11"), principalOfBlob("xE1EACE7B8F0F1D9CB2427F6FE653F6B62FBA96D8F1E12A8E56D5C2F78BFBBC1A"), principalOfBlob("x3F351627CDA4F460215FDF23A9A3239303A84504D6B2DF3A5323BFA3BF911670"), principalOfBlob("xB53D4123E21440C05493AA5C742BFF000E92334B5CD3C55B521FA7E06E725074") ]) - }; - public shared func take_ownership() : async () { - () - }; - public query func get_asset_properties(_arg0 : T.Key) : async ({ max_age : ?Nat64; headers : ?[T.HeaderField]; allow_raw_access : ?Bool; is_aliased : ?Bool }) { - ({ max_age = ?11310281747421436882; headers = ?[ ( "14796593089282320071", "10425597289412325098" ), ( "5581137331052452365", "16783008128760111668" ), ( "17950520798700563169", "12417521964141425308" ), ( "5040047599884678902", "14841545318558739169" ), ( "11042565298778340235", "7634908469330851135" ) ]; allow_raw_access = ?true; is_aliased = ?false }) - }; - public shared func set_asset_properties(_arg0 : T.SetAssetPropertiesArguments) : async () { - () - }; - public shared func get_configuration() : async (T.ConfigurationResponse) { - ({ max_batches = ?11310281747421436882; max_chunks = ?10947193270334582983; max_bytes = ?14796593089282320071 }) - }; - public shared func configure(_arg0 : T.ConfigureArguments) : async () { - () - }; - public shared func validate_grant_permission(_arg0 : T.GrantPermission) : async (T.ValidationResult) { - (#Ok("10947193270334582983")) - }; - public shared func validate_revoke_permission(_arg0 : T.RevokePermission) : async (T.ValidationResult) { - (#Ok("10947193270334582983")) - }; - public shared func validate_take_ownership() : async (T.ValidationResult) { - (#Ok("10947193270334582983")) - }; - public shared func validate_commit_proposed_batch(_arg0 : T.CommitProposedBatchArguments) : async (T.ValidationResult) { - (#Ok("10947193270334582983")) - }; - public shared func validate_configure(_arg0 : T.ConfigureArguments) : async (T.ValidationResult) { - (#Ok("10947193270334582983")) - }; -} diff --git a/ic/assetstorage/types.mo b/ic/assetstorage/types.mo deleted file mode 100755 index 366c65f..0000000 --- a/ic/assetstorage/types.mo +++ /dev/null @@ -1,35 +0,0 @@ -// Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go. -module T { - public type BatchId = Nat; - public type ChunkId = Nat; - public type Key = Text; - public type Time = Int; - public type CreateAssetArguments = { key : T.Key; content_type : Text; max_age : ?Nat64; headers : ?[T.HeaderField]; enable_aliasing : ?Bool; allow_raw_access : ?Bool }; - public type SetAssetContentArguments = { key : T.Key; content_encoding : Text; chunk_ids : [T.ChunkId]; sha256 : ?Blob }; - public type UnsetAssetContentArguments = { key : T.Key; content_encoding : Text }; - public type DeleteAssetArguments = { key : T.Key }; - public type ClearArguments = { }; - public type BatchOperationKind = { #CreateAsset : T.CreateAssetArguments; #SetAssetContent : T.SetAssetContentArguments; #SetAssetProperties : T.SetAssetPropertiesArguments; #UnsetAssetContent : T.UnsetAssetContentArguments; #DeleteAsset : T.DeleteAssetArguments; #Clear : T.ClearArguments }; - public type CommitBatchArguments = { batch_id : T.BatchId; operations : [T.BatchOperationKind] }; - public type CommitProposedBatchArguments = { batch_id : T.BatchId; evidence : Blob }; - public type ComputeEvidenceArguments = { batch_id : T.BatchId; max_iterations : ?Nat16 }; - public type DeleteBatchArguments = { batch_id : T.BatchId }; - public type HeaderField = (Text, Text); - public type HttpRequest = { method : Text; url : Text; headers : [T.HeaderField]; body : Blob; certificate_version : ?Nat16 }; - public type HttpResponse = { status_code : Nat16; headers : [T.HeaderField]; body : Blob; streaming_strategy : ?T.StreamingStrategy }; - public type StreamingCallbackHttpResponse = { body : Blob; token : ?T.StreamingCallbackToken }; - public type StreamingCallbackToken = { key : T.Key; content_encoding : Text; index : Nat; sha256 : ?Blob }; - public type StreamingStrategy = { #Callback : { callback : { /* func */ }; token : T.StreamingCallbackToken } }; - public type SetAssetPropertiesArguments = { key : T.Key; max_age : ??Nat64; headers : ??[T.HeaderField]; allow_raw_access : ??Bool; is_aliased : ??Bool }; - public type ConfigurationResponse = { max_batches : ?Nat64; max_chunks : ?Nat64; max_bytes : ?Nat64 }; - public type ConfigureArguments = { max_batches : ??Nat64; max_chunks : ??Nat64; max_bytes : ??Nat64 }; - public type Permission = { #Commit; #ManagePermissions; #Prepare }; - public type GrantPermission = { to_principal : Principal; permission : T.Permission }; - public type RevokePermission = { of_principal : Principal; permission : T.Permission }; - public type ListPermitted = { permission : T.Permission }; - public type ValidationResult = { #Ok : Text; #Err : Text }; - public type AssetCanisterArgs = { #Init : T.InitArgs; #Upgrade : T.UpgradeArgs }; - public type InitArgs = { }; - public type UpgradeArgs = { set_permissions : ?T.SetPermissions }; - public type SetPermissions = { prepare : [Principal]; commit : [Principal]; manage_permissions : [Principal] }; -}; diff --git a/ic/cmc/actor.mo b/ic/cmc/actor.mo deleted file mode 100755 index 2cd1013..0000000 --- a/ic/cmc/actor.mo +++ /dev/null @@ -1,31 +0,0 @@ -// Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go. -import T "types"; - -import { principalOfBlob } = "mo:⛔"; - -actor class _cmc() : async actor {} { - public shared func notify_top_up(_arg0 : T.NotifyTopUpArg) : async (T.NotifyTopUpResult) { - (#Ok(13928505266879913405)) - }; - public shared func create_canister(_arg0 : T.CreateCanisterArg) : async (T.CreateCanisterResult) { - (#Ok(principalOfBlob("xBDDD886CBEFD4B2A492BD37EED100C4A92C2724DFDEEA442723ED5975AE7B291"))) - }; - public shared func notify_create_canister(_arg0 : T.NotifyCreateCanisterArg) : async (T.NotifyCreateCanisterResult) { - (#Ok(principalOfBlob("xBDDD886CBEFD4B2A492BD37EED100C4A92C2724DFDEEA442723ED5975AE7B291"))) - }; - public shared func notify_mint_cycles(_arg0 : T.NotifyMintCyclesArg) : async (T.NotifyMintCyclesResult) { - (#Ok({ block_index = 13928505266879913405; minted = 17010356921542854954; balance = 9294670361248549388 })) - }; - public query func get_icp_xdr_conversion_rate() : async (T.IcpXdrConversionRateResponse) { - ({ data = { timestamp_seconds = 7869213255852361324; xdr_permyriad_per_icp = 13928505266879913405 }; hash_tree = "x2A492BD37EED100C4A92C2724DFDEEA442723ED5975AE7B29122E0DDF194DD7E"; certificate = "x5528C3C9A6BA5F6F214EDB0ADC761D7824266830A884EE0F1DD3A30544A705F3" }) - }; - public query func get_subnet_types_to_subnets() : async (T.SubnetTypesToSubnetsResponse) { - ({ data = [ ( "13928505266879913405", [ principalOfBlob("x0C4A92C2724DFDEEA442723ED5975AE7B29122E0DDF194DD7EA9FD965528C3C9"), principalOfBlob("x6F214EDB0ADC761D7824266830A884EE0F1DD3A30544A705F333F71702C7A660"), principalOfBlob("x951AC7ABA75404FF9F4FAA7D514C6DECB06637E868B117928E31FF4B3AF537E5"), principalOfBlob("x5560FF1A52DD6373BFBDD2A9248390071788F3C08BB33ED100CEF45D83C58237"), principalOfBlob("x7DF7405C7D3A4E4CABBE52B063DD16C97B3ADC25E4DCF546CF04F19365EFF436"), principalOfBlob("x42B7DFC7DFEC782917263A657D0DE6693F5C99FDE433CA01705CF05DD2070AE9") ] ), ( "4079598243291951032", [ principalOfBlob("xB9A37D98C2FAE8511AE12915936EAEEE9E788F297C09E28F0ADF120B0A296CEB"), principalOfBlob("xC2A3628B06F9DBA38FB72ED9EA2FA0155AA8C3454A0B6B7D243B879C0D565FF3"), principalOfBlob("xF96C562E9C04CE4151D4C6724C48A5DA0BDA2E89A4E3D812E5053A5878CF966B"), principalOfBlob("x7074BD42188B8EA0EA45A26782C1685E4ABFD47263EE88B87F20F20BDD7AC948"), principalOfBlob("xA589BEB48C3C69E8E292102556CA5C2482A9F277195ACF93DDE4EA792EF32DDD") ] ), ( "3237536108921815135", [ ] ), ( "2209486570766690869", [ principalOfBlob("x7A1A00D7528980DC4B5D2C61CD124CB667E538083C45AC24323A6B09F1937EBD"), principalOfBlob("x9784DDD5730BBE38F428F80C9C5075CB27A3C3C5B515DC9FEC1E1D8143D3F6D3"), principalOfBlob("x35AACBAB8D6525C9414CD74467FBE7DD91F2B774B08AEBE215950A3D06E2FC3C"), principalOfBlob("xBEBAA72E4D2773DBE87344D3B07940517CCF45A7E25F9D25DB14CCCF80D0129B"), principalOfBlob("x99C6BD7932FCCCD5EDDBD6FC58A31F4AE5BEA0F9682A1272F34D9CBB4554471B") ] ) ] }) - }; - public query func get_principals_authorized_to_create_canisters_to_subnets() : async (T.PrincipalsAuthorizedToCreateCanistersToSubnetsResponse) { - ({ data = [ ( principalOfBlob("xBDDD886CBEFD4B2A492BD37EED100C4A92C2724DFDEEA442723ED5975AE7B291"), [ principalOfBlob("x5528C3C9A6BA5F6F214EDB0ADC761D7824266830A884EE0F1DD3A30544A705F3"), principalOfBlob("x02C7A660C5031A951AC7ABA75404FF9F4FAA7D514C6DECB06637E868B117928E"), principalOfBlob("x3AF537E5E30DF75560FF1A52DD6373BFBDD2A9248390071788F3C08BB33ED100"), principalOfBlob("x83C5823797B1967DF7405C7D3A4E4CABBE52B063DD16C97B3ADC25E4DCF546CF"), principalOfBlob("x65EFF436342DBA42B7DFC7DFEC782917263A657D0DE6693F5C99FDE433CA0170"), principalOfBlob("xD2070AE9151649B86FB9D5FCA49D87F65495F07A5DB9A37D98C2FAE8511AE129"), principalOfBlob("xAEEE9E788F297C09E28F0ADF120B0A296CEB9768F9C2A3628B06F9DBA38FB72E"), principalOfBlob("xA0155AA8C3454A0B6B7D243B879C0D565FF39B5FDAF96C562E9C04CE4151D4C6"), principalOfBlob("xA5DA0BDA2E89A4E3D812E5053A5878CF966B1A3EB47074BD42188B8EA0EA45A2") ] ), ( principalOfBlob("x685E4ABFD47263EE88B87F20F20BDD7AC948F85DF4A589BEB48C3C69E8E29210"), [ ] ), ( principalOfBlob("x5ACF93DDE4EA792EF32DDDF70D885F00C917F009EED039CC572B0356356A8B6A"), [ principalOfBlob("x7A1A00D7528980DC4B5D2C61CD124CB667E538083C45AC24323A6B09F1937EBD"), principalOfBlob("x9784DDD5730BBE38F428F80C9C5075CB27A3C3C5B515DC9FEC1E1D8143D3F6D3"), principalOfBlob("x35AACBAB8D6525C9414CD74467FBE7DD91F2B774B08AEBE215950A3D06E2FC3C"), principalOfBlob("xBEBAA72E4D2773DBE87344D3B07940517CCF45A7E25F9D25DB14CCCF80D0129B"), principalOfBlob("x99C6BD7932FCCCD5EDDBD6FC58A31F4AE5BEA0F9682A1272F34D9CBB4554471B") ] ), ( principalOfBlob("x25F4954F66910C12C6201C0CD32C59492FF31E3544840193875EC7073105AE3F"), [ principalOfBlob("xC11657DECEFB18CEE05F4EDE503F8CBF9BD011FB329862CD92D54E0711AD9BE7") ] ) ] }) - }; - public query func get_build_metadata() : async (Text) { - ("7869213255852361324") - }; -} diff --git a/ic/cmc/types.mo b/ic/cmc/types.mo deleted file mode 100755 index b91a685..0000000 --- a/ic/cmc/types.mo +++ /dev/null @@ -1,29 +0,0 @@ -// Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go. -module T { - public type Cycles = Nat; - public type BlockIndex = Nat64; - public type LogVisibility = { #controllers; #public }; - public type CanisterSettings = { controller : ?Principal; controllers : ?[Principal]; compute_allocation : ?Nat; memory_allocation : ?Nat; freezing_threshold : ?Nat; reserved_cycles_limit : ?Nat; log_visibility : ?T.LogVisibility; wasm_memory_limit : ?Nat }; - public type Subaccount = ?Blob; - public type Memo = ?Blob; - public type NotifyTopUpArg = { block_index : T.BlockIndex; canister_id : Principal }; - public type SubnetSelection = { #Subnet : { subnet : Principal }; #Filter : T.SubnetFilter }; - public type SubnetFilter = { subnet_type : ?Text }; - public type CreateCanisterArg = { settings : ?T.CanisterSettings; subnet_type : ?Text; subnet_selection : ?T.SubnetSelection }; - public type NotifyCreateCanisterArg = { block_index : T.BlockIndex; controller : Principal; subnet_type : ?Text; subnet_selection : ?T.SubnetSelection; settings : ?T.CanisterSettings }; - public type CreateCanisterError = { #Refunded : { refund_amount : Nat; create_error : Text }; #RefundFailed : { create_error : Text; refund_error : Text } }; - public type NotifyError = { #Refunded : { reason : Text; block_index : ?T.BlockIndex }; #Processing; #TransactionTooOld : T.BlockIndex; #InvalidTransaction : Text; #Other : { error_code : Nat64; error_message : Text } }; - public type NotifyTopUpResult = { #Ok : T.Cycles; #Err : T.NotifyError }; - public type CreateCanisterResult = { #Ok : Principal; #Err : T.CreateCanisterError }; - public type NotifyCreateCanisterResult = { #Ok : Principal; #Err : T.NotifyError }; - public type IcpXdrConversionRate = { timestamp_seconds : Nat64; xdr_permyriad_per_icp : Nat64 }; - public type IcpXdrConversionRateResponse = { data : T.IcpXdrConversionRate; hash_tree : Blob; certificate : Blob }; - public type SubnetTypesToSubnetsResponse = { data : [(Text, [Principal])] }; - public type PrincipalsAuthorizedToCreateCanistersToSubnetsResponse = { data : [(Principal, [Principal])] }; - public type AccountIdentifier = Text; - public type ExchangeRateCanister = { #Set : Principal; #Unset }; - public type CyclesCanisterInitPayload = { ledger_canister_id : ?Principal; governance_canister_id : ?Principal; minting_account_id : ?T.AccountIdentifier; last_purged_notification : ?Nat64; exchange_rate_canister : ?T.ExchangeRateCanister; cycles_ledger_canister_id : ?Principal }; - public type NotifyMintCyclesArg = { block_index : T.BlockIndex; to_subaccount : T.Subaccount; deposit_memo : T.Memo }; - public type NotifyMintCyclesResult = { #Ok : T.NotifyMintCyclesSuccess; #Err : T.NotifyError }; - public type NotifyMintCyclesSuccess = { block_index : Nat; minted : Nat; balance : Nat }; -}; diff --git a/ic/governance/actor.mo b/ic/governance/actor.mo deleted file mode 100755 index 76cdd6e..0000000 --- a/ic/governance/actor.mo +++ /dev/null @@ -1,91 +0,0 @@ -// Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go. -import T "types"; - -import { principalOfBlob } = "mo:⛔"; - -actor class _governance() : async actor {} { - public shared func claim_gtc_neurons(_arg0 : Principal, _arg1 : [T.NeuronId]) : async (T.Result) { - (#Err({ error_message = "1907006715546714179"; error_type = "UNKNOWN" # "int32" })) - }; - public shared func claim_or_refresh_neuron_from_account(_arg0 : T.ClaimOrRefreshNeuronFromAccount) : async (T.ClaimOrRefreshNeuronFromAccountResponse) { - ({ result = ?#NeuronId({ id = 1907006715546714179 }) }) - }; - public query func get_build_metadata() : async (Text) { - ("691703608542329411") - }; - public query func get_full_neuron(_arg0 : Nat64) : async (T.Result2) { - (#Err({ error_message = "1907006715546714179"; error_type = "UNKNOWN" # "int32" })) - }; - public query func get_full_neuron_by_id_or_subaccount(_arg0 : T.NeuronIdOrSubaccount) : async (T.Result2) { - (#Err({ error_message = "1907006715546714179"; error_type = "UNKNOWN" # "int32" })) - }; - public query func get_latest_reward_event() : async (T.RewardEvent) { - ({ rounds_since_last_distribution = ?691703608542329411; day_after_genesis = 1907006715546714179; actual_timestamp_seconds = 15493554583224738855; total_available_e8s_equivalent = 16687275400884993694; latest_round_available_e8s_equivalent = ?13368615419590941112; distributed_e8s_equivalent = 1961299418913621123; settled_proposals = [ { id = 16877987628876162418 }, { id = 6686602144653530707 }, { id = 2492298073262282947 }, { id = 12591018229732761422 }, { id = 9339131201452454247 }, { id = 2076642980582058783 }, { id = 659621366998512483 }, { id = 11049456158696049473 } ] }) - }; - public query func get_metrics() : async (T.Result3) { - (#Err({ error_message = "1907006715546714179"; error_type = "UNKNOWN" # "int32" })) - }; - public shared func get_monthly_node_provider_rewards() : async (T.Result4) { - (#Err({ error_message = "1907006715546714179"; error_type = "UNKNOWN" # "int32" })) - }; - public query func get_most_recent_monthly_node_provider_rewards() : async (?T.MostRecentMonthlyNodeProviderRewards) { - (?{ timestamp = 691703608542329411; rewards = [ { node_provider = ?{ id = ?principalOfBlob("x27643C19CE29049E3EDD6A901C95B81987E7E4DC8683C4861A6EEF374A5BFFCB"); reward_account = ?{ hash = "x72E5993653A83A535670323995CBC3583093E46B964E5FB0AF5E48BC673157CD" } }; reward_mode = ?#RewardToAccount({ to_account = ?{ hash = "x63333472237227418B5474D58D57232B0E585102CE218172444ED8C3B00CE96E" } }); amount_e8s = 2927777721278784320 }, { node_provider = ?{ id = ?principalOfBlob("xDD49B3A1EFA90F74B6EE9AE45E306B002F73CAD5E5075A8F1ACD2F58796744B7"); reward_account = ?{ hash = "x53AC87C3BA2C2862749BC146F73CEE09E26FE080B457BBAA64896EAE3BB8086C" } }; reward_mode = ?#RewardToAccount({ to_account = ?{ hash = "xA14781BF48B04DA37F9E44099FB04223967517184AF314BA18C8055D07A23162" } }); amount_e8s = 11777596687229746164 }, { node_provider = ?{ id = ?principalOfBlob("x580DF9E989BB9865AA02D5BD91315008872364D1934EEED60CFC6E29C1AC0162"); reward_account = ?{ hash = "x4F12D5BCD0DD849DBE302CA7F395B4F83CFDBE600FBE5070251AB749CDDA7CC9" } }; reward_mode = ?#RewardToNeuron({ dissolve_delay_seconds = 3927154977654170402 }); amount_e8s = 11955146476040597506 }, { node_provider = ?{ id = ?principalOfBlob("x03CE4AC9DB607D163C5E128AB01333BA69460344BA77117B427EC40CB4A5B665"); reward_account = ?{ hash = "x85FC8FE9670D294B132C495DF5310EDC52BC4C5B563D01831A595B33006C21C2" } }; reward_mode = ?#RewardToNeuron({ dissolve_delay_seconds = 15492832952175108436 }); amount_e8s = 14104442902222393556 }, { node_provider = ?{ id = ?principalOfBlob("x7D07B59BAD048044E400C7700249D0845B80AAE8FFC17A73FA1463DEDD315281"); reward_account = ?{ hash = "x95C2250CE6344F42B6394DC722B38B7459C59B4474878B5AAD738B6259269623" } }; reward_mode = ?#RewardToAccount({ to_account = ?{ hash = "x0029CA504AE169BB216BA4B6C0FD4B8575BB6CAC5707170B03CAD68837D600C5" } }); amount_e8s = 11310933019421498059 }, { node_provider = ?{ id = ?principalOfBlob("x5F74BB9D0452A4DDE6F9AC2C5C80285B464BB273C4903657FE665A5CBB3BBA89"); reward_account = ?{ hash = "x9A32F1E59F6500D8994DC38613B42F320D1D11A30CBB057DE6FA4EF78246A84C" } }; reward_mode = ?#RewardToAccount({ to_account = ?{ hash = "xCEB77313EE4A33BB12F81BE872B0F114A048ACC4FE4175092ED02876488A6F90" } }); amount_e8s = 4064996737592769371 }, { node_provider = ?{ id = ?principalOfBlob("xA6A57BFC526EB8D9872B36FAE628DB28AAC68C326F21F07EB61EBEA9D168CF23"); reward_account = ?{ hash = "x88FF4FB1FBDA4259C01BD9777D2340E2162EC7D9467846A779FFB90E5E771810" } }; reward_mode = ?#RewardToNeuron({ dissolve_delay_seconds = 7839736976628908613 }); amount_e8s = 17094947752472683678 }, { node_provider = ?{ id = ?principalOfBlob("x75767530F73F082FA0D54A85DE9E557EC1AD28B8294D1967E99A2B0B638F108D"); reward_account = ?{ hash = "xFB8921B116B384B141DC1B23542562B2A2F76BD1DC961785026BC2BC8FA33E9C" } }; reward_mode = ?#RewardToAccount({ to_account = ?{ hash = "xF847D88923E2995843426A088DD6964CF19B5D56E4A4B42F6E4230F20BCDB7E6" } }); amount_e8s = 12872200050853029013 }, { node_provider = ?{ id = ?principalOfBlob("x4BFE5BC8920BFEDBB8D1D51B7D81F8AEBE31D95C75A438D5FD7BAB0A6CC402CB"); reward_account = ?{ hash = "x58E06A37AFDF4365856E04179BD475988030BFB44E9AF8BC1577E6AF6D58AA2D" } }; reward_mode = ?#RewardToNeuron({ dissolve_delay_seconds = 6976459939909333935 }); amount_e8s = 3749970680998070576 } ] }) - }; - public query func get_network_economics_parameters() : async (T.NetworkEconomics) { - ({ neuron_minimum_stake_e8s = 691703608542329411; max_proposals_to_keep_per_topic = 585714884; neuron_management_fee_per_proposal_e8s = 15493554583224738855; reject_cost_e8s = 16687275400884993694; transaction_fee_e8s = 13368615419590941112; neuron_spawn_dissolve_delay_seconds = 1961299418913621123; minimum_icp_xdr_rate = 8319634114298731338; maximum_node_provider_rewards_e8s = 16877987628876162418; neurons_fund_economics = ?{ maximum_icp_xdr_rate = ?{ basis_points = ?6686602144653530707 }; neurons_fund_matched_funding_curve_coefficients = ?{ contribution_threshold_xdr = ?{ human_readable = ?"2492298073262282947" }; one_third_participation_milestone_xdr = ?{ human_readable = ?"12591018229732761422" }; full_participation_milestone_xdr = ?{ human_readable = ?"9339131201452454247" } }; max_theoretical_neurons_fund_participation_amount_xdr = ?{ human_readable = ?"2076642980582058783" }; minimum_icp_xdr_rate = ?{ basis_points = ?659621366998512483 } } }) - }; - public query func get_neuron_ids() : async ([Nat64]) { - ([ 1907006715546714179 ]) - }; - public query func get_neuron_info(_arg0 : Nat64) : async (T.Result5) { - (#Err({ error_message = "1907006715546714179"; error_type = "UNKNOWN" # "int32" })) - }; - public query func get_neuron_info_by_id_or_subaccount(_arg0 : T.NeuronIdOrSubaccount) : async (T.Result5) { - (#Err({ error_message = "1907006715546714179"; error_type = "UNKNOWN" # "int32" })) - }; - public query func get_neurons_fund_audit_info(_arg0 : T.GetNeuronsFundAuditInfoRequest) : async (T.GetNeuronsFundAuditInfoResponse) { - ({ result = ?#Err({ error_message = "1907006715546714179"; error_type = "UNKNOWN" # "int32" }) }) - }; - public query func get_node_provider_by_caller(_arg0 : ()) : async (T.Result7) { - (#Err({ error_message = "1907006715546714179"; error_type = "UNKNOWN" # "int32" })) - }; - public query func get_pending_proposals() : async ([T.ProposalInfo]) { - ([ { id = ?{ id = 1907006715546714179 }; status = "UNKNOWN" # "int32"; topic = "UNKNOWN" # "int32"; failure_reason = ?{ error_message = "15493554583224738855"; error_type = "UNKNOWN" # "int32" }; ballots = [ ( 13368615419590941112, { vote = "UNKNOWN" # "int32"; voting_power = 1961299418913621123 } ), ( 8319634114298731338, { vote = "UNKNOWN" # "int32"; voting_power = 16877987628876162418 } ), ( 6686602144653530707, { vote = "UNKNOWN" # "int32"; voting_power = 2492298073262282947 } ), ( 12591018229732761422, { vote = "UNKNOWN" # "int32"; voting_power = 9339131201452454247 } ), ( 2076642980582058783, { vote = "UNKNOWN" # "int32"; voting_power = 659621366998512483 } ), ( 11049456158696049473, { vote = "UNKNOWN" # "int32"; voting_power = 11154855875436227363 } ) ]; proposal_timestamp_seconds = 12737262001801298209; reward_event_round = 12458059574603746480; deadline_timestamp_seconds = ?2927777721278784320; failed_timestamp_seconds = 12902718304114919901; reject_cost_e8s = 12191348527236822644; derived_proposal_information = ?{ swap_background_information = ?{ ledger_index_canister_summary = ?{ status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?2442593438410932331; controllers = [ principalOfBlob("x796744B72478AB53AC87C3BA2C2862749BC146F73CEE09E26FE080B457BBAA64"), principalOfBlob("x3BB8086C60F0173907A1C0CA0853A14781BF48B04DA37F9E44099FB042239675"), principalOfBlob("xF314BA18C8055D07A2316283F453F47B2562C96D72580DF9E989BB9865AA02D5"), principalOfBlob("x5008872364D1934EEED60CFC6E29C1AC01622066744F12D5BCD0DD849DBE302C"), principalOfBlob("xB4F83CFDBE600FBE5070251AB749CDDA7CC9254A1BB6566DC5A62A5122E3FB2C"), principalOfBlob("x02B029FE6036E903CE4AC9DB607D163C5E128AB01333BA69460344BA77117B42"), principalOfBlob("xB4A5B665F0F07785FC8FE9670D294B132C495DF5310EDC52BC4C5B563D01831A"), principalOfBlob("x006C21C2653321F8DB3A8090E04D5421DD467C9901D4D0BE4D170CBD7D07B59B"), principalOfBlob("x44E400C7700249D0845B80AAE8FFC17A73FA1463DEDD315281B7B26695C2250C") ]; memory_size = ?11075234148023645762; cycles = ?8751695411709310091; idle_cycles_burned_per_day = ?15520120594818042759; module_hash = "x59269623C4F2132B5665BAE777340029CA504AE169BB216BA4B6C0FD4B8575BB" }; canister_id = ?principalOfBlob("x07170B03CAD68837D600C54C388FCBDADA3CA781F85F74BB9D0452A4DDE6F9AC") }; fallback_controller_principal_ids = [ principalOfBlob("x903657FE665A5CBB3BBA89E0EEF99A32F1E59F6500D8994DC38613B42F320D1D"), principalOfBlob("xBB057DE6FA4EF78246A84C8F29458BB3120BF3D5A3CEB77313EE4A33BB12F81B"), principalOfBlob("xF114A048ACC4FE4175092ED02876488A6F90DE98785BBB56DDFEC469A6A57BFC"), principalOfBlob("xD9872B36FAE628DB28AAC68C326F21F07EB61EBEA9D168CF23FA3C0588FF4FB1"), principalOfBlob("x59C01BD9777D2340E2162EC7D9467846A779FFB90E5E7718103D5944489393E5"), principalOfBlob("x450276583E57CC9E24FF6F68743D75767530F73F082FA0D54A85DE9E557EC1AD") ]; ledger_archive_canister_summaries = [ { status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?12552520182419984227; controllers = [ principalOfBlob("xB141DC1B23542562B2A2F76BD1DC961785026BC2BC8FA33E9C4A9FA099591280"), principalOfBlob("xF847D88923E2995843426A088DD6964CF19B5D56E4A4B42F6E4230F20BCDB7E6"), principalOfBlob("x9524DC14BF3DA34BFE5BC8920BFEDBB8D1D51B7D81F8AEBE31D95C75A438D5FD") ]; memory_size = ?16335788060816098412; cycles = ?3910214845129744472; idle_cycles_burned_per_day = ?16200744282719421797; module_hash = "x75988030BFB44E9AF8BC1577E6AF6D58AA2D730A0F8E9F019C3C12D3AFF3093C" }; canister_id = ?principalOfBlob("x3009055777920A1F4A5A075F0A6D3566C1087B096EE7006DD7AF26E6F55C3112") } ]; ledger_canister_summary = ?{ status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?4465671418507840855; controllers = [ principalOfBlob("xEA62CFEDA9B5D8D1176B3C1AD75BAD8BDC31EFFC0FA2E97A3A0BAF3C8995CD4E"), principalOfBlob("xAA1836F9C23DB5783AD136120AAE39C8FF25FBD126B0D83AA0E4E4AB6A4EBC0F"), principalOfBlob("xCA35119F54E2FC6B926C5A8D006F2193516C596150341FE0E79988E13F3DF0FA"), principalOfBlob("xAFBFCB4BCA25D29476190C4069A7EB7B974D564244A24BB4117DB36B22FFF4B9"), principalOfBlob("x073A0DB919E430CF5BA11B79FC879875F89F32720057BE518D6855E75A73CDA2"), principalOfBlob("xC57124FF42D1D4A59CA216275ABF2F3DC23C21291AE6DC57B814688984879296"), principalOfBlob("xBBE39F0B11670A49ED2DD4E1DDF5E43A6C8E23C9CE95D182BD2746C2A40293BD"), principalOfBlob("x3EF0951B7AE2567673E0DA8ECAD492E6EBC368C60ABA9FC17F039946138458FF") ]; memory_size = ?15154465751892058566; cycles = ?15443892870670433778; idle_cycles_burned_per_day = ?10988271528707275741; module_hash = "x66EC46D091183200DBEAD3B2BB61CBE4A6151B5CAC6136BCF1469F7FC9B5239B" }; canister_id = ?principalOfBlob("x6A50ED11A44CCA62E89E980927AABB4EAD3C107A69FF439F42F72B52467EED6D") }; swap_canister_summary = ?{ status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?18296606480723259690; controllers = [ principalOfBlob("x23B3FCFB345C30F861416824C2745E786D1864928ACB882F0F476ABF28E1F424"), principalOfBlob("x544E5A84480EAB1EAAC3F4F406DCC0A8C7F4E697D479F779E0A552E0FD3D3FEE"), principalOfBlob("xDB2B09DF1FEBF65434322E77D526D0D4EC0EE21865E281F4FF16127A97E69583"), principalOfBlob("x6132A8D8B464328D0E336B2A5D439F89179C91E024AABD33A095D1C0A5E91534"), principalOfBlob("x5404CA76860EBDDC164E0F71509C098F121DEDE192E37981B600C48E432C43F6"), principalOfBlob("x5D87276897FAE9D03B58118D571285BEFC07DB74449414BCCC486B01A657C6B0"), principalOfBlob("x340EE6AF4A490ABE44C411C47CBA89E86D01B993AC6859A308687C37730771B9"), principalOfBlob("x00C5660F0CF45BDE2791A9F5B4D95E6D463AB9878A5A73BBF8AF58ACF73EE770") ]; memory_size = ?14301844175297951673; cycles = ?16567729542106230591; idle_cycles_burned_per_day = ?16564543755708648300; module_hash = "xA3E6F7CE93A32C368CBC0C6BB1066A28F224F7671C1F7AEBCF3E1B31EBEADB6B" }; canister_id = ?principalOfBlob("xAFB9D2EF376C47E7EDF2B7E50E57EFA446558CC1CD65637A52CCFAF877B3FC30") }; governance_canister_summary = ?{ status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?4182138913221577685; controllers = [ principalOfBlob("xFA9EEBC8C96E56BD883B451001E13E323CEDC0A55F7B07224722398A70A620F6"), principalOfBlob("x8BDD1323A3F851F57F6C08B2DDDCCE7161FC922C2E2F33609A29E3E54E1D17CC"), principalOfBlob("x5AB977BF177968A3F168EFD7E1F4E360AC03B541C51F60525457310749585530"), principalOfBlob("xB661D899B6E81FD13DA52469941100D89A8C63C0AD95DA7EF0146CE6F171D7C7"), principalOfBlob("xEF22074BFFE5407906D510E2FDD6331EEEFC7560EF6B20E2DB89E92564431CCE"), principalOfBlob("xD5434CAF512981578DFA81A86927993C000C7028468E86C3260724A9A49FBAF8"), principalOfBlob("xF1176645FA7A486B2F0E9D2B1D43D3B40026D21957F26B84778CD8920C4FCA82"), principalOfBlob("xE73062C6507977EBF6310C2BBB023EAF035A92612E12DCEB905830C1E46C4E20"), principalOfBlob("xCF47D5A4E266E102FEB6CC8D2B51D6BA7F2969D586F06D15BB6AE5A2D5B63504") ]; memory_size = ?11915313668719021798; cycles = ?4442454642918859644; idle_cycles_burned_per_day = ?5893745729409764979; module_hash = "x5355175B16C478BA0905F111EBE059DD5E4B9A2EAEA2C1CB1A528AE5A445299C" }; canister_id = ?principalOfBlob("x02B224DAC3E338EF9F2FBE97ED3C09A5AD4928937D68376A99C6678FE828C726") }; root_canister_summary = ?{ status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?11203704715994117571; controllers = [ principalOfBlob("x85E9DBF7A0973D2875A66395B30C925FBC3394DE0803104285CFCDF0534933BB") ]; memory_size = ?1838789555050525802; cycles = ?4397925236712483636; idle_cycles_burned_per_day = ?14921440742524096108; module_hash = "x63510258B4CF3D42D26C667B40A1BD0DDAD5C558B931017FCE80366697BBAE1E" }; canister_id = ?principalOfBlob("x292E72C2538FB19928CE78DFA8D3A8D9BEC11238056F777B8969DC2CDF1C9713") }; dapp_canister_summaries = [ { status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?8482880577030986967; controllers = [ principalOfBlob("x441CBDC71686FE044A0DAFA1A3CFAE862ACD9233086678CC61889D2158A1D782"), principalOfBlob("x0D9E035CA10652DD062DAE0B8449A40EE0A4385CD6D063B616478F2C7F148EB8"), principalOfBlob("xCF0A141EDCB541CE68FACC76A79F0F76155886DD9B82D3E10BB243AEFBE08728"), principalOfBlob("xF5D50D69A0AA084599D3B76C59AAD0B5055E5DD85DD0C2C31D2BF14DF8F406EA"), principalOfBlob("xB5C7DB3A5A6802231B2245B0DE845C69F2DF3828FFD46F551422EEF14056EACB"), principalOfBlob("x61A10B2D3DEB24683B9A30D9FE564AC378DA54FBD07ACCB273B47A8778E17DA0"), principalOfBlob("x8608102333014F68590F6F4B47AA3A3B7FD1BB4F5B02D04DA3B5701C40F3CA17") ]; memory_size = ?729504357304895965; cycles = ?17807503602939906083; idle_cycles_burned_per_day = ?3214297893300422084; module_hash = "x90608BCEF057E116A4A7F36D044124DA4C7C44E660B312E0C0C28F55E50177AB" }; canister_id = ?principalOfBlob("x1E4D9191EDD6BE68E0E4AE09C1CEE8830A8B4C5300E113810C9958E8518C434C") }, { status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?8254137509381059906; controllers = [ principalOfBlob("xF95F8CEBE926A8CDF69687D758E365CE450E04A30D69FE7B647D5447BF469182"), principalOfBlob("x29E33AF8065D275189256774365D25A3DD59439FF7ABC6078DC51C9DB1F3DC50"), principalOfBlob("xC11C42CB42E78FECF4F2A65C172859EEBF3172A1912522124325DEFF7EED1DE5"), principalOfBlob("x1AE1C03199A76C7360F86887403805BF898923AAAD86B4D54B96A53BB707E842"), principalOfBlob("x03CBB46F5737D0D9DF4083AA614A4B3F2188710DA554261AF9A11926A7CB7913") ]; memory_size = ?15649185720120279181; cycles = ?9634679177880222075; idle_cycles_burned_per_day = ?6066099896213364828; module_hash = "x762C054122CABDE7A0544379DCF939698C883461A7247CDB357EEEF39732BBFE" }; canister_id = ?principalOfBlob("x3A6B7E038C28FFCB48A1893A09BDF29C2E691EBF151EB4BB423E0B41DB0497CC") }, { status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?12775742613039668435; controllers = [ principalOfBlob("x304A5AB833188D0BE99A70965E3F0B2E9723BCB0126AAA66085B398F6B6DE5B5") ]; memory_size = ?3101364785074010955; cycles = ?1232342300511980494; idle_cycles_burned_per_day = ?2263582805460746081; module_hash = "x796239BD27D560BA42B07E2D49CC616DA567A1BD0CFD4307423020F8803F5DF2" }; canister_id = ?principalOfBlob("xB395CC65AFF074FC339D21384EA6E8A5FE936D5C077247D7353B4D49F7951960") }, { status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?15069324533246124248; controllers = [ ]; memory_size = ?12258784977834942227; cycles = ?3736417075396975816; idle_cycles_burned_per_day = ?6185966150266433863; module_hash = "x2F66E4FABB33EB7BBF5E007B74003B653277724625BEEDCC872D546434F6DBF0" }; canister_id = ?principalOfBlob("x8CE66C4782C707C56C69D90E140B39B64C975EF2BBAF8E6C8C5DA09F20543F90") }, { status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?1583108365236200177; controllers = [ principalOfBlob("x4429BD484D2B886F9BBC105E40A30F889F5B655B8F76F44F8CE7A5FB49E844F6"), principalOfBlob("x19B43FFB573B18CDAFE9F563527253D328DA8E50F52C9839C57C0F0A5B669533"), principalOfBlob("x32959613AE1798E2F052309A472B9F802A714BA1B3943F90778C06D6DECBF456"), principalOfBlob("xAF544C75BEF44AB43B92563BB360E1FAEDDDED74BBB3B24B3969CCAAA44A884C"), principalOfBlob("xCA677266E85BC4AF1A08F230429D012C387C1CE67F67BC2EF2B68C013C1AC8CB"), principalOfBlob("xB8EC30F60B84F4C04F18B332A16B54E7328105F02426E832BCB9E1833792D3A0"), principalOfBlob("x9FC3045980FC13DD50516B8D19E86AE8E717DD7E9C64A3E066014364DAB512A6"), principalOfBlob("x2ECD96AFE552AA97EF9A0B5EB9CC8B0FCED8CC721CCD1A1EEB9335CD60412E01") ]; memory_size = ?14009985417011783676; cycles = ?432880929575849823; idle_cycles_burned_per_day = ?11055027654840189840; module_hash = "xAE4C8D4F0A5934EB946D98C1D8A68E9E64D5B0A3E6D72E38175E005560CDEA3F" }; canister_id = ?principalOfBlob("x29F5EA90E0151FE0CA55BCFEB01AF4C01A68D061C3EAD0DA7867119BB34AC340") } ] } }; latest_tally = ?{ no = 11320058956692584983; yes = 5502931723434008696; total = 1744715679854108155; timestamp_seconds = 2418021757549954461 }; reward_status = "UNKNOWN" # "int32"; decided_timestamp_seconds = 3725396257322059100; proposal = ?{ url = "695703797238195719"; title = ?"17466133503906431124"; action = ?#ExecuteNnsFunction({ nns_function = "UNKNOWN" # "int32"; payload = "x64B47CF3D2F4CA05F81439E5CB9B4E1D2A31AD04C5894916E28E4C750B7FED6C" }); summary = "12120695327075681384" }; proposer = ?{ id = 9508889665824686452 }; executed_timestamp_seconds = 3526838991561705357 } ]) - }; - public query func get_proposal_info(_arg0 : Nat64) : async (?T.ProposalInfo) { - (?{ id = ?{ id = 691703608542329411 }; status = "UNKNOWN" # "int32"; topic = "UNKNOWN" # "int32"; failure_reason = ?{ error_message = "1907006715546714179"; error_type = "UNKNOWN" # "int32" }; ballots = [ ( 16687275400884993694, { vote = "UNKNOWN" # "int32"; voting_power = 13368615419590941112 } ), ( 1961299418913621123, { vote = "UNKNOWN" # "int32"; voting_power = 8319634114298731338 } ), ( 16877987628876162418, { vote = "UNKNOWN" # "int32"; voting_power = 6686602144653530707 } ), ( 2492298073262282947, { vote = "UNKNOWN" # "int32"; voting_power = 12591018229732761422 } ), ( 9339131201452454247, { vote = "UNKNOWN" # "int32"; voting_power = 2076642980582058783 } ), ( 659621366998512483, { vote = "UNKNOWN" # "int32"; voting_power = 11049456158696049473 } ), ( 11154855875436227363, { vote = "UNKNOWN" # "int32"; voting_power = 12737262001801298209 } ) ]; proposal_timestamp_seconds = 12458059574603746480; reward_event_round = 2927777721278784320; deadline_timestamp_seconds = ?12902718304114919901; failed_timestamp_seconds = 12191348527236822644; reject_cost_e8s = 2442593438410932331; derived_proposal_information = ?{ swap_background_information = ?{ ledger_index_canister_summary = ?{ status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?8887906422576077319; controllers = [ principalOfBlob("x53AC87C3BA2C2862749BC146F73CEE09E26FE080B457BBAA64896EAE3BB8086C"), principalOfBlob("x3907A1C0CA0853A14781BF48B04DA37F9E44099FB04223967517184AF314BA18"), principalOfBlob("x07A2316283F453F47B2562C96D72580DF9E989BB9865AA02D5BD913150088723") ]; memory_size = ?18170176200429203022; cycles = ?12859015125318872257; idle_cycles_burned_per_day = ?6018178890664841807; module_hash = "x9DBE302CA7F395B4F83CFDBE600FBE5070251AB749CDDA7CC9254A1BB6566DC5" }; canister_id = ?principalOfBlob("x22E3FB2CA50E8002B029FE6036E903CE4AC9DB607D163C5E128AB01333BA6946") }; fallback_controller_principal_ids = [ principalOfBlob("xB4A5B665F0F07785FC8FE9670D294B132C495DF5310EDC52BC4C5B563D01831A") ]; ledger_archive_canister_summaries = [ { status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?7443852670344551416; controllers = [ principalOfBlob("xD4D0BE4D170CBD7D07B59BAD048044E400C7700249D0845B80AAE8FFC17A73FA"), principalOfBlob("xDD315281B7B26695C2250CE6344F42B6394DC722B38B7459C59B4474878B5AAD"), principalOfBlob("x59269623C4F2132B5665BAE777340029CA504AE169BB216BA4B6C0FD4B8575BB"), principalOfBlob("x07170B03CAD68837D600C54C388FCBDADA3CA781F85F74BB9D0452A4DDE6F9AC"), principalOfBlob("x285B464BB273C4903657FE665A5CBB3BBA89E0EEF99A32F1E59F6500D8994DC3"), principalOfBlob("x2F320D1D11A30CBB057DE6FA4EF78246A84C8F29458BB3120BF3D5A3CEB77313"), principalOfBlob("xBB12F81BE872B0F114A048ACC4FE4175092ED02876488A6F90DE98785BBB56DD"), principalOfBlob("xA6A57BFC526EB8D9872B36FAE628DB28AAC68C326F21F07EB61EBEA9D168CF23") ]; memory_size = ?13061242643874316168; cycles = ?3612869279778324569; idle_cycles_burned_per_day = ?12485906466426249792; module_hash = "x7846A779FFB90E5E7718103D5944489393E511D449450276583E57CC9E24FF6F" }; canister_id = ?principalOfBlob("x75767530F73F082FA0D54A85DE9E557EC1AD28B8294D1967E99A2B0B638F108D") }, { status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?8107802139216153083; controllers = [ principalOfBlob("x62B2A2F76BD1DC961785026BC2BC8FA33E9C4A9FA0995912805A2980F847D889"), principalOfBlob("x5843426A088DD6964CF19B5D56E4A4B42F6E4230F20BCDB7E6F06BB69524DC14"), principalOfBlob("x4BFE5BC8920BFEDBB8D1D51B7D81F8AEBE31D95C75A438D5FD7BAB0A6CC402CB"), principalOfBlob("x58E06A37AFDF4365856E04179BD475988030BFB44E9AF8BC1577E6AF6D58AA2D"), principalOfBlob("x8E9F019C3C12D3AFF3093C5A5DD13009055777920A1F4A5A075F0A6D3566C108") ]; memory_size = ?1866221632267026663; cycles = ?17751827028471012597; idle_cycles_burned_per_day = ?4465671418507840855; module_hash = "x90800D8A0117A3EA62CFEDA9B5D8D1176B3C1AD75BAD8BDC31EFFC0FA2E97A3A" }; canister_id = ?principalOfBlob("x8995CD4E8933E4AA1836F9C23DB5783AD136120AAE39C8FF25FBD126B0D83AA0") } ]; ledger_canister_summary = ?{ status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?9149507503094779498; controllers = [ principalOfBlob("x6B926C5A8D006F2193516C596150341FE0E79988E13F3DF0FA3C05A2AFBFCB4B"), principalOfBlob("x9476190C4069A7EB7B974D564244A24BB4117DB36B22FFF4B9147F97073A0DB9"), principalOfBlob("xCF5BA11B79FC879875F89F32720057BE518D6855E75A73CDA2C954A2C57124FF"), principalOfBlob("xA59CA216275ABF2F3DC23C21291AE6DC57B814688984879296B47906BBE39F0B") ]; memory_size = ?17435085494431903049; cycles = ?13677090272921271012; idle_cycles_burned_per_day = ?1063489598509994389; module_hash = "xA40293BD03F3853EF0951B7AE2567673E0DA8ECAD492E6EBC368C60ABA9FC17F" }; canister_id = ?principalOfBlob("x138458FFED4490C661593E4F7A4FF2BD7F99BDBA53DDBB22ACBC2E7E66EC46D0") }; swap_canister_summary = ?{ status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?17393389612615523072; controllers = [ principalOfBlob("x6136BCF1469F7FC9B5239B3C4CDB6A50ED11A44CCA62E89E980927AABB4EAD3C"), principalOfBlob("xFF439F42F72B52467EED6DB3F95E2AB19E96A79AEA54D3EBD59B37EF23B3FCFB"), principalOfBlob("xF861416824C2745E786D1864928ACB882F0F476ABF28E1F4245EA248544E5A84") ]; memory_size = ?17716042683316939294; cycles = ?9571442126274144448; idle_cycles_burned_per_day = ?12745277817847674745; module_hash = "xFD3D3FEE685590DB2B09DF1FEBF65434322E77D526D0D4EC0EE21865E281F4FF" }; canister_id = ?principalOfBlob("x97E695831CEB6F6132A8D8B464328D0E336B2A5D439F89179C91E024AABD33A0") }; governance_canister_summary = ?{ status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?8076481036572551589; controllers = [ principalOfBlob("xDC164E0F71509C098F121DEDE192E37981B600C48E432C43F642BE1F5D872768"), principalOfBlob("xD03B58118D571285BEFC07DB74449414BCCC486B01A657C6B006861E340EE6AF"), principalOfBlob("xBE44C411C47CBA89E86D01B993AC6859A308687C37730771B9BC464300C5660F"), principalOfBlob("xDE2791A9F5B4D95E6D463AB9878A5A73BBF8AF58ACF73EE7708E8F44B9B79FC5"), principalOfBlob("x3FAFFC2B3D66EC6CCB6D79C814E1A3E6F7CE93A32C368CBC0C6BB1066A28F224"), principalOfBlob("x1F7AEBCF3E1B31EBEADB6B59E322AFB9D2EF376C47E7EDF2B7E50E57EFA44655") ]; memory_size = ?10374317497111962469; cycles = ?14568160938616992631; idle_cycles_burned_per_day = ?4182138913221577685; module_hash = "x6F41EE0E178784FA9EEBC8C96E56BD883B451001E13E323CEDC0A55F7B072247" }; canister_id = ?principalOfBlob("x70A620F68199248BDD1323A3F851F57F6C08B2DDDCCE7161FC922C2E2F33609A") }; root_canister_summary = ?{ status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?16484703489043668302; controllers = [ ]; memory_size = ?14624562207529693603; cycles = ?8630376506631938275; idle_cycles_burned_per_day = ?2524040367311052831; module_hash = "x49585530B8ACC0B661D899B6E81FD13DA52469941100D89A8C63C0AD95DA7EF0" }; canister_id = ?principalOfBlob("xF171D7C7781F97EF22074BFFE5407906D510E2FDD6331EEEFC7560EF6B20E2DB") }; dapp_canister_summaries = [ { status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?1621622771640189909; controllers = [ principalOfBlob("x993C000C7028468E86C3260724A9A49FBAF8A1DA58F1176645FA7A486B2F0E9D"), principalOfBlob("xD3B40026D21957F26B84778CD8920C4FCA820AA53BE73062C6507977EBF6310C"), principalOfBlob("x3EAF035A92612E12DCEB905830C1E46C4E20020378CF47D5A4E266E102FEB6CC"), principalOfBlob("xD6BA7F2969D586F06D15BB6AE5A2D5B6350431A711E68E5AD3A6B25B7CA3F6E9"), principalOfBlob("x73CEF1B583CACA5355175B16C478BA0905F111EBE059DD5E4B9A2EAEA2C1CB1A") ]; memory_size = ?5690267324002157988; cycles = ?1817452879961960962; idle_cycles_burned_per_day = ?3980317406675312623; module_hash = "x09A5AD4928937D68376A99C6678FE828C726F0A4E2C3B53255148E7B91EED999" }; canister_id = ?principalOfBlob("x85E9DBF7A0973D2875A66395B30C925FBC3394DE0803104285CFCDF0534933BB") }, { status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?1838789555050525802; controllers = [ principalOfBlob("x6C8E30534C9B1363510258B4CF3D42D26C667B40A1BD0DDAD5C558B931017FCE"), principalOfBlob("x97BBAE1E81346B292E72C2538FB19928CE78DFA8D3A8D9BEC11238056F777B89"), principalOfBlob("xDF1C971399D961D543EBFA655415D71CFEC9F03EB9E3FC6A253F9BD7441CBDC7"), principalOfBlob("x044A0DAFA1A3CFAE862ACD9233086678CC61889D2158A1D782E0BC1A0D9E035C"), principalOfBlob("xDD062DAE0B8449A40EE0A4385CD6D063B616478F2C7F148EB8808138CF0A141E"), principalOfBlob("xCE68FACC76A79F0F76155886DD9B82D3E10BB243AEFBE08728CC81CAF5D50D69") ]; memory_size = ?3434655989298862405; cycles = ?2908718829872199120; idle_cycles_burned_per_day = ?1391033027412607696; module_hash = "xF8F406EA8C6367B5C7DB3A5A6802231B2245B0DE845C69F2DF3828FFD46F5514" }; canister_id = ?principalOfBlob("x4056EACBD2051161A10B2D3DEB24683B9A30D9FE564AC378DA54FBD07ACCB273") }, { status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?9395760086799737208; controllers = [ ]; memory_size = ?4731672747817523560; cycles = ?13068126411837881146; idle_cycles_burned_per_day = ?5988785529927094274; module_hash = "x40F3CA17F9A875DD09420F59B81F23C8B8BD2DF620C4457564E77A9B90608BCE" }; canister_id = ?principalOfBlob("x16A4A7F36D044124DA4C7C44E660B312E0C0C28F55E50177ABE2BC6B1E4D9191") }, { status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?11371238356490182760; controllers = [ principalOfBlob("xE113810C9958E8518C434C4FFBDF42B5E21D55968CCB74651A5663C3F95F8CEB"), principalOfBlob("xCDF69687D758E365CE450E04A30D69FE7B647D5447BF469182966D2D29E33AF8") ]; memory_size = ?4637923064836098385; cycles = ?14625333426528297765; idle_cycles_burned_per_day = ?3863275690153985707; module_hash = "xB1F3DC508E9102C11C42CB42E78FECF4F2A65C172859EEBF3172A19125221243" }; canister_id = ?principalOfBlob("x7EED1DE58AFFAE1AE1C03199A76C7360F86887403805BF898923AAAD86B4D54B") } ] } }; latest_tally = ?{ no = 2283243304741504951; yes = 1427701930552249091; total = 5497313680133513177; timestamp_seconds = 6027238457571622731 }; reward_status = "UNKNOWN" # "int32"; decided_timestamp_seconds = 12476688001136207444; proposal = ?{ url = "15858948384669420455"; title = ?"15649185720120279181"; action = ?#RewardNodeProvider({ node_provider = ?{ id = ?principalOfBlob("x5CE0D44DB71D2F762C054122CABDE7A0544379DCF939698C883461A7247CDB35"); reward_account = ?{ hash = "x9732BBFE82BF533A6B7E038C28FFCB48A1893A09BDF29C2E691EBF151EB4BB42" } }; reward_mode = ?#RewardToAccount({ to_account = ?{ hash = "xD3DC0CC0378E4C91F6DDF99A4A23304A5AB833188D0BE99A70965E3F0B2E9723" } }); amount_e8s = 2634387370180782698 }); summary = "8344054194166394219" }; proposer = ?{ id = 3101364785074010955 }; executed_timestamp_seconds = 1232342300511980494 }) - }; - public query func get_restore_aging_summary() : async (T.RestoreAgingSummary) { - ({ groups = [ { count = ?1907006715546714179; previous_total_stake_e8s = ?15493554583224738855; current_total_stake_e8s = ?16687275400884993694; group_type = "UNKNOWN" # "int32" } ]; timestamp_seconds = ?13368615419590941112 }) - }; - public query func list_known_neurons() : async (T.ListKnownNeuronsResponse) { - ({ known_neurons = [ { id = ?{ id = 1907006715546714179 }; known_neuron_data = ?{ name = "15493554583224738855"; description = ?"16687275400884993694" } } ] }) - }; - public query func list_neurons(_arg0 : T.ListNeurons) : async (T.ListNeuronsResponse) { - ({ neuron_infos = [ ( 1907006715546714179, { dissolve_delay_seconds = 15493554583224738855; recent_ballots = [ { vote = "UNKNOWN" # "int32"; proposal_id = ?{ id = 13368615419590941112 } }, { vote = "UNKNOWN" # "int32"; proposal_id = ?{ id = 1961299418913621123 } }, { vote = "UNKNOWN" # "int32"; proposal_id = ?{ id = 8319634114298731338 } }, { vote = "UNKNOWN" # "int32"; proposal_id = ?{ id = 16877987628876162418 } }, { vote = "UNKNOWN" # "int32"; proposal_id = ?{ id = 6686602144653530707 } }, { vote = "UNKNOWN" # "int32"; proposal_id = ?{ id = 2492298073262282947 } } ]; neuron_type = ?"UNKNOWN" # "int32"; created_timestamp_seconds = 12591018229732761422; state = "UNKNOWN" # "int32"; stake_e8s = 9339131201452454247; joined_community_fund_timestamp_seconds = ?2076642980582058783; retrieved_at_timestamp_seconds = 659621366998512483; known_neuron_data = ?{ name = "11049456158696049473"; description = ?"11154855875436227363" }; voting_power = 12737262001801298209; age_seconds = 12458059574603746480 } ) ]; full_neurons = [ ] }) - }; - public query func list_node_providers() : async (T.ListNodeProvidersResponse) { - ({ node_providers = [ { id = ?principalOfBlob("x43407208810C7727643C19CE29049E3EDD6A901C95B81987E7E4DC8683C4861A"); reward_account = ?{ hash = "x4A5BFFCB25477572E5993653A83A535670323995CBC3583093E46B964E5FB0AF" } } ] }) - }; - public query func list_proposals(_arg0 : T.ListProposalInfo) : async (T.ListProposalInfoResponse) { - ({ proposal_info = [ { id = ?{ id = 1907006715546714179 }; status = "UNKNOWN" # "int32"; topic = "UNKNOWN" # "int32"; failure_reason = ?{ error_message = "15493554583224738855"; error_type = "UNKNOWN" # "int32" }; ballots = [ ( 13368615419590941112, { vote = "UNKNOWN" # "int32"; voting_power = 1961299418913621123 } ), ( 8319634114298731338, { vote = "UNKNOWN" # "int32"; voting_power = 16877987628876162418 } ), ( 6686602144653530707, { vote = "UNKNOWN" # "int32"; voting_power = 2492298073262282947 } ), ( 12591018229732761422, { vote = "UNKNOWN" # "int32"; voting_power = 9339131201452454247 } ), ( 2076642980582058783, { vote = "UNKNOWN" # "int32"; voting_power = 659621366998512483 } ), ( 11049456158696049473, { vote = "UNKNOWN" # "int32"; voting_power = 11154855875436227363 } ) ]; proposal_timestamp_seconds = 12737262001801298209; reward_event_round = 12458059574603746480; deadline_timestamp_seconds = ?2927777721278784320; failed_timestamp_seconds = 12902718304114919901; reject_cost_e8s = 12191348527236822644; derived_proposal_information = ?{ swap_background_information = ?{ ledger_index_canister_summary = ?{ status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?2442593438410932331; controllers = [ principalOfBlob("x796744B72478AB53AC87C3BA2C2862749BC146F73CEE09E26FE080B457BBAA64"), principalOfBlob("x3BB8086C60F0173907A1C0CA0853A14781BF48B04DA37F9E44099FB042239675"), principalOfBlob("xF314BA18C8055D07A2316283F453F47B2562C96D72580DF9E989BB9865AA02D5"), principalOfBlob("x5008872364D1934EEED60CFC6E29C1AC01622066744F12D5BCD0DD849DBE302C"), principalOfBlob("xB4F83CFDBE600FBE5070251AB749CDDA7CC9254A1BB6566DC5A62A5122E3FB2C"), principalOfBlob("x02B029FE6036E903CE4AC9DB607D163C5E128AB01333BA69460344BA77117B42"), principalOfBlob("xB4A5B665F0F07785FC8FE9670D294B132C495DF5310EDC52BC4C5B563D01831A"), principalOfBlob("x006C21C2653321F8DB3A8090E04D5421DD467C9901D4D0BE4D170CBD7D07B59B"), principalOfBlob("x44E400C7700249D0845B80AAE8FFC17A73FA1463DEDD315281B7B26695C2250C") ]; memory_size = ?11075234148023645762; cycles = ?8751695411709310091; idle_cycles_burned_per_day = ?15520120594818042759; module_hash = "x59269623C4F2132B5665BAE777340029CA504AE169BB216BA4B6C0FD4B8575BB" }; canister_id = ?principalOfBlob("x07170B03CAD68837D600C54C388FCBDADA3CA781F85F74BB9D0452A4DDE6F9AC") }; fallback_controller_principal_ids = [ principalOfBlob("x903657FE665A5CBB3BBA89E0EEF99A32F1E59F6500D8994DC38613B42F320D1D"), principalOfBlob("xBB057DE6FA4EF78246A84C8F29458BB3120BF3D5A3CEB77313EE4A33BB12F81B"), principalOfBlob("xF114A048ACC4FE4175092ED02876488A6F90DE98785BBB56DDFEC469A6A57BFC"), principalOfBlob("xD9872B36FAE628DB28AAC68C326F21F07EB61EBEA9D168CF23FA3C0588FF4FB1"), principalOfBlob("x59C01BD9777D2340E2162EC7D9467846A779FFB90E5E7718103D5944489393E5"), principalOfBlob("x450276583E57CC9E24FF6F68743D75767530F73F082FA0D54A85DE9E557EC1AD") ]; ledger_archive_canister_summaries = [ { status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?12552520182419984227; controllers = [ principalOfBlob("xB141DC1B23542562B2A2F76BD1DC961785026BC2BC8FA33E9C4A9FA099591280"), principalOfBlob("xF847D88923E2995843426A088DD6964CF19B5D56E4A4B42F6E4230F20BCDB7E6"), principalOfBlob("x9524DC14BF3DA34BFE5BC8920BFEDBB8D1D51B7D81F8AEBE31D95C75A438D5FD") ]; memory_size = ?16335788060816098412; cycles = ?3910214845129744472; idle_cycles_burned_per_day = ?16200744282719421797; module_hash = "x75988030BFB44E9AF8BC1577E6AF6D58AA2D730A0F8E9F019C3C12D3AFF3093C" }; canister_id = ?principalOfBlob("x3009055777920A1F4A5A075F0A6D3566C1087B096EE7006DD7AF26E6F55C3112") } ]; ledger_canister_summary = ?{ status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?4465671418507840855; controllers = [ principalOfBlob("xEA62CFEDA9B5D8D1176B3C1AD75BAD8BDC31EFFC0FA2E97A3A0BAF3C8995CD4E"), principalOfBlob("xAA1836F9C23DB5783AD136120AAE39C8FF25FBD126B0D83AA0E4E4AB6A4EBC0F"), principalOfBlob("xCA35119F54E2FC6B926C5A8D006F2193516C596150341FE0E79988E13F3DF0FA"), principalOfBlob("xAFBFCB4BCA25D29476190C4069A7EB7B974D564244A24BB4117DB36B22FFF4B9"), principalOfBlob("x073A0DB919E430CF5BA11B79FC879875F89F32720057BE518D6855E75A73CDA2"), principalOfBlob("xC57124FF42D1D4A59CA216275ABF2F3DC23C21291AE6DC57B814688984879296"), principalOfBlob("xBBE39F0B11670A49ED2DD4E1DDF5E43A6C8E23C9CE95D182BD2746C2A40293BD"), principalOfBlob("x3EF0951B7AE2567673E0DA8ECAD492E6EBC368C60ABA9FC17F039946138458FF") ]; memory_size = ?15154465751892058566; cycles = ?15443892870670433778; idle_cycles_burned_per_day = ?10988271528707275741; module_hash = "x66EC46D091183200DBEAD3B2BB61CBE4A6151B5CAC6136BCF1469F7FC9B5239B" }; canister_id = ?principalOfBlob("x6A50ED11A44CCA62E89E980927AABB4EAD3C107A69FF439F42F72B52467EED6D") }; swap_canister_summary = ?{ status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?18296606480723259690; controllers = [ principalOfBlob("x23B3FCFB345C30F861416824C2745E786D1864928ACB882F0F476ABF28E1F424"), principalOfBlob("x544E5A84480EAB1EAAC3F4F406DCC0A8C7F4E697D479F779E0A552E0FD3D3FEE"), principalOfBlob("xDB2B09DF1FEBF65434322E77D526D0D4EC0EE21865E281F4FF16127A97E69583"), principalOfBlob("x6132A8D8B464328D0E336B2A5D439F89179C91E024AABD33A095D1C0A5E91534"), principalOfBlob("x5404CA76860EBDDC164E0F71509C098F121DEDE192E37981B600C48E432C43F6"), principalOfBlob("x5D87276897FAE9D03B58118D571285BEFC07DB74449414BCCC486B01A657C6B0"), principalOfBlob("x340EE6AF4A490ABE44C411C47CBA89E86D01B993AC6859A308687C37730771B9"), principalOfBlob("x00C5660F0CF45BDE2791A9F5B4D95E6D463AB9878A5A73BBF8AF58ACF73EE770") ]; memory_size = ?14301844175297951673; cycles = ?16567729542106230591; idle_cycles_burned_per_day = ?16564543755708648300; module_hash = "xA3E6F7CE93A32C368CBC0C6BB1066A28F224F7671C1F7AEBCF3E1B31EBEADB6B" }; canister_id = ?principalOfBlob("xAFB9D2EF376C47E7EDF2B7E50E57EFA446558CC1CD65637A52CCFAF877B3FC30") }; governance_canister_summary = ?{ status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?4182138913221577685; controllers = [ principalOfBlob("xFA9EEBC8C96E56BD883B451001E13E323CEDC0A55F7B07224722398A70A620F6"), principalOfBlob("x8BDD1323A3F851F57F6C08B2DDDCCE7161FC922C2E2F33609A29E3E54E1D17CC"), principalOfBlob("x5AB977BF177968A3F168EFD7E1F4E360AC03B541C51F60525457310749585530"), principalOfBlob("xB661D899B6E81FD13DA52469941100D89A8C63C0AD95DA7EF0146CE6F171D7C7"), principalOfBlob("xEF22074BFFE5407906D510E2FDD6331EEEFC7560EF6B20E2DB89E92564431CCE"), principalOfBlob("xD5434CAF512981578DFA81A86927993C000C7028468E86C3260724A9A49FBAF8"), principalOfBlob("xF1176645FA7A486B2F0E9D2B1D43D3B40026D21957F26B84778CD8920C4FCA82"), principalOfBlob("xE73062C6507977EBF6310C2BBB023EAF035A92612E12DCEB905830C1E46C4E20"), principalOfBlob("xCF47D5A4E266E102FEB6CC8D2B51D6BA7F2969D586F06D15BB6AE5A2D5B63504") ]; memory_size = ?11915313668719021798; cycles = ?4442454642918859644; idle_cycles_burned_per_day = ?5893745729409764979; module_hash = "x5355175B16C478BA0905F111EBE059DD5E4B9A2EAEA2C1CB1A528AE5A445299C" }; canister_id = ?principalOfBlob("x02B224DAC3E338EF9F2FBE97ED3C09A5AD4928937D68376A99C6678FE828C726") }; root_canister_summary = ?{ status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?11203704715994117571; controllers = [ principalOfBlob("x85E9DBF7A0973D2875A66395B30C925FBC3394DE0803104285CFCDF0534933BB") ]; memory_size = ?1838789555050525802; cycles = ?4397925236712483636; idle_cycles_burned_per_day = ?14921440742524096108; module_hash = "x63510258B4CF3D42D26C667B40A1BD0DDAD5C558B931017FCE80366697BBAE1E" }; canister_id = ?principalOfBlob("x292E72C2538FB19928CE78DFA8D3A8D9BEC11238056F777B8969DC2CDF1C9713") }; dapp_canister_summaries = [ { status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?8482880577030986967; controllers = [ principalOfBlob("x441CBDC71686FE044A0DAFA1A3CFAE862ACD9233086678CC61889D2158A1D782"), principalOfBlob("x0D9E035CA10652DD062DAE0B8449A40EE0A4385CD6D063B616478F2C7F148EB8"), principalOfBlob("xCF0A141EDCB541CE68FACC76A79F0F76155886DD9B82D3E10BB243AEFBE08728"), principalOfBlob("xF5D50D69A0AA084599D3B76C59AAD0B5055E5DD85DD0C2C31D2BF14DF8F406EA"), principalOfBlob("xB5C7DB3A5A6802231B2245B0DE845C69F2DF3828FFD46F551422EEF14056EACB"), principalOfBlob("x61A10B2D3DEB24683B9A30D9FE564AC378DA54FBD07ACCB273B47A8778E17DA0"), principalOfBlob("x8608102333014F68590F6F4B47AA3A3B7FD1BB4F5B02D04DA3B5701C40F3CA17") ]; memory_size = ?729504357304895965; cycles = ?17807503602939906083; idle_cycles_burned_per_day = ?3214297893300422084; module_hash = "x90608BCEF057E116A4A7F36D044124DA4C7C44E660B312E0C0C28F55E50177AB" }; canister_id = ?principalOfBlob("x1E4D9191EDD6BE68E0E4AE09C1CEE8830A8B4C5300E113810C9958E8518C434C") }, { status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?8254137509381059906; controllers = [ principalOfBlob("xF95F8CEBE926A8CDF69687D758E365CE450E04A30D69FE7B647D5447BF469182"), principalOfBlob("x29E33AF8065D275189256774365D25A3DD59439FF7ABC6078DC51C9DB1F3DC50"), principalOfBlob("xC11C42CB42E78FECF4F2A65C172859EEBF3172A1912522124325DEFF7EED1DE5"), principalOfBlob("x1AE1C03199A76C7360F86887403805BF898923AAAD86B4D54B96A53BB707E842"), principalOfBlob("x03CBB46F5737D0D9DF4083AA614A4B3F2188710DA554261AF9A11926A7CB7913") ]; memory_size = ?15649185720120279181; cycles = ?9634679177880222075; idle_cycles_burned_per_day = ?6066099896213364828; module_hash = "x762C054122CABDE7A0544379DCF939698C883461A7247CDB357EEEF39732BBFE" }; canister_id = ?principalOfBlob("x3A6B7E038C28FFCB48A1893A09BDF29C2E691EBF151EB4BB423E0B41DB0497CC") }, { status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?12775742613039668435; controllers = [ principalOfBlob("x304A5AB833188D0BE99A70965E3F0B2E9723BCB0126AAA66085B398F6B6DE5B5") ]; memory_size = ?3101364785074010955; cycles = ?1232342300511980494; idle_cycles_burned_per_day = ?2263582805460746081; module_hash = "x796239BD27D560BA42B07E2D49CC616DA567A1BD0CFD4307423020F8803F5DF2" }; canister_id = ?principalOfBlob("xB395CC65AFF074FC339D21384EA6E8A5FE936D5C077247D7353B4D49F7951960") }, { status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?15069324533246124248; controllers = [ ]; memory_size = ?12258784977834942227; cycles = ?3736417075396975816; idle_cycles_burned_per_day = ?6185966150266433863; module_hash = "x2F66E4FABB33EB7BBF5E007B74003B653277724625BEEDCC872D546434F6DBF0" }; canister_id = ?principalOfBlob("x8CE66C4782C707C56C69D90E140B39B64C975EF2BBAF8E6C8C5DA09F20543F90") }, { status = ?{ status = ?"UNKNOWN" # "int32"; freezing_threshold = ?1583108365236200177; controllers = [ principalOfBlob("x4429BD484D2B886F9BBC105E40A30F889F5B655B8F76F44F8CE7A5FB49E844F6"), principalOfBlob("x19B43FFB573B18CDAFE9F563527253D328DA8E50F52C9839C57C0F0A5B669533"), principalOfBlob("x32959613AE1798E2F052309A472B9F802A714BA1B3943F90778C06D6DECBF456"), principalOfBlob("xAF544C75BEF44AB43B92563BB360E1FAEDDDED74BBB3B24B3969CCAAA44A884C"), principalOfBlob("xCA677266E85BC4AF1A08F230429D012C387C1CE67F67BC2EF2B68C013C1AC8CB"), principalOfBlob("xB8EC30F60B84F4C04F18B332A16B54E7328105F02426E832BCB9E1833792D3A0"), principalOfBlob("x9FC3045980FC13DD50516B8D19E86AE8E717DD7E9C64A3E066014364DAB512A6"), principalOfBlob("x2ECD96AFE552AA97EF9A0B5EB9CC8B0FCED8CC721CCD1A1EEB9335CD60412E01") ]; memory_size = ?14009985417011783676; cycles = ?432880929575849823; idle_cycles_burned_per_day = ?11055027654840189840; module_hash = "xAE4C8D4F0A5934EB946D98C1D8A68E9E64D5B0A3E6D72E38175E005560CDEA3F" }; canister_id = ?principalOfBlob("x29F5EA90E0151FE0CA55BCFEB01AF4C01A68D061C3EAD0DA7867119BB34AC340") } ] } }; latest_tally = ?{ no = 11320058956692584983; yes = 5502931723434008696; total = 1744715679854108155; timestamp_seconds = 2418021757549954461 }; reward_status = "UNKNOWN" # "int32"; decided_timestamp_seconds = 3725396257322059100; proposal = ?{ url = "695703797238195719"; title = ?"17466133503906431124"; action = ?#ExecuteNnsFunction({ nns_function = "UNKNOWN" # "int32"; payload = "x64B47CF3D2F4CA05F81439E5CB9B4E1D2A31AD04C5894916E28E4C750B7FED6C" }); summary = "12120695327075681384" }; proposer = ?{ id = 9508889665824686452 }; executed_timestamp_seconds = 3526838991561705357 } ] }) - }; - public shared func manage_neuron(_arg0 : T.ManageNeuron) : async (T.ManageNeuronResponse) { - ({ command = ?#Split({ created_neuron_id = ?{ id = 1907006715546714179 } }) }) - }; - public shared func settle_community_fund_participation(_arg0 : T.SettleCommunityFundParticipation) : async (T.Result) { - (#Err({ error_message = "1907006715546714179"; error_type = "UNKNOWN" # "int32" })) - }; - public shared func settle_neurons_fund_participation(_arg0 : T.SettleNeuronsFundParticipationRequest) : async (T.SettleNeuronsFundParticipationResponse) { - ({ result = ?#Err({ error_message = "1907006715546714179"; error_type = "UNKNOWN" # "int32" }) }) - }; - public shared func simulate_manage_neuron(_arg0 : T.ManageNeuron) : async (T.ManageNeuronResponse) { - ({ command = ?#Split({ created_neuron_id = ?{ id = 1907006715546714179 } }) }) - }; - public shared func transfer_gtc_neuron(_arg0 : T.NeuronId, _arg1 : T.NeuronId) : async (T.Result) { - (#Err({ error_message = "1907006715546714179"; error_type = "UNKNOWN" # "int32" })) - }; - public shared func update_node_provider(_arg0 : T.UpdateNodeProvider) : async (T.Result) { - (#Err({ error_message = "1907006715546714179"; error_type = "UNKNOWN" # "int32" })) - }; -} diff --git a/ic/governance/types.mo b/ic/governance/types.mo deleted file mode 100755 index 7719d44..0000000 --- a/ic/governance/types.mo +++ /dev/null @@ -1,149 +0,0 @@ -// Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go. -module T { - public type AccountIdentifier = { hash : Blob }; - public type Action = { #RegisterKnownNeuron : T.KnownNeuron; #ManageNeuron : T.ManageNeuron; #CreateServiceNervousSystem : T.CreateServiceNervousSystem; #ExecuteNnsFunction : T.ExecuteNnsFunction; #RewardNodeProvider : T.RewardNodeProvider; #OpenSnsTokenSwap : T.OpenSnsTokenSwap; #SetSnsTokenSwapOpenTimeWindow : T.SetSnsTokenSwapOpenTimeWindow; #SetDefaultFollowees : T.SetDefaultFollowees; #RewardNodeProviders : T.RewardNodeProviders; #ManageNetworkEconomics : T.NetworkEconomics; #ApproveGenesisKyc : T.ApproveGenesisKyc; #AddOrRemoveNodeProvider : T.AddOrRemoveNodeProvider; #Motion : T.Motion }; - public type AddHotKey = { new_hot_key : ?Principal }; - public type AddOrRemoveNodeProvider = { change : ?T.Change }; - public type Amount = { e8s : Nat64 }; - public type ApproveGenesisKyc = { principals : [Principal] }; - public type Ballot = { vote : Int32; voting_power : Nat64 }; - public type BallotInfo = { vote : Int32; proposal_id : ?T.NeuronId }; - public type By = { #NeuronIdOrSubaccount : { }; #MemoAndController : T.ClaimOrRefreshNeuronFromAccount; #Memo : Nat64 }; - public type Canister = { id : ?Principal }; - public type CanisterStatusResultV2 = { status : ?Int32; freezing_threshold : ?Nat64; controllers : [Principal]; memory_size : ?Nat64; cycles : ?Nat64; idle_cycles_burned_per_day : ?Nat64; module_hash : Blob }; - public type CanisterSummary = { status : ?T.CanisterStatusResultV2; canister_id : ?Principal }; - public type CfNeuron = { has_created_neuron_recipes : ?Bool; nns_neuron_id : Nat64; amount_icp_e8s : Nat64 }; - public type CfParticipant = { hotkey_principal : Text; cf_neurons : [T.CfNeuron] }; - public type Change = { #ToRemove : T.NodeProvider; #ToAdd : T.NodeProvider }; - public type ChangeAutoStakeMaturity = { requested_setting_for_auto_stake_maturity : Bool }; - public type ClaimOrRefresh = { by : ?T.By }; - public type ClaimOrRefreshNeuronFromAccount = { controller : ?Principal; memo : Nat64 }; - public type ClaimOrRefreshNeuronFromAccountResponse = { result : ?T.Result1 }; - public type ClaimOrRefreshResponse = { refreshed_neuron_id : ?T.NeuronId }; - public type Command = { #Spawn : T.Spawn; #Split : T.Split; #Follow : T.Follow; #ClaimOrRefresh : T.ClaimOrRefresh; #Configure : T.Configure; #RegisterVote : T.RegisterVote; #Merge : T.Merge; #DisburseToNeuron : T.DisburseToNeuron; #MakeProposal : T.Proposal; #StakeMaturity : T.StakeMaturity; #MergeMaturity : T.MergeMaturity; #Disburse : T.Disburse }; - public type Command1 = { #Error : T.GovernanceError; #Spawn : T.SpawnResponse; #Split : T.SpawnResponse; #Follow : { }; #ClaimOrRefresh : T.ClaimOrRefreshResponse; #Configure : { }; #RegisterVote : { }; #Merge : T.MergeResponse; #DisburseToNeuron : T.SpawnResponse; #MakeProposal : T.MakeProposalResponse; #StakeMaturity : T.StakeMaturityResponse; #MergeMaturity : T.MergeMaturityResponse; #Disburse : T.DisburseResponse }; - public type Command2 = { #Spawn : T.NeuronId; #Split : T.Split; #Configure : T.Configure; #Merge : T.Merge; #DisburseToNeuron : T.DisburseToNeuron; #SyncCommand : { }; #ClaimOrRefreshNeuron : T.ClaimOrRefresh; #MergeMaturity : T.MergeMaturity; #Disburse : T.Disburse }; - public type Committed = { total_direct_contribution_icp_e8s : ?Nat64; total_neurons_fund_contribution_icp_e8s : ?Nat64; sns_governance_canister_id : ?Principal }; - public type Committed1 = { total_direct_participation_icp_e8s : ?Nat64; total_neurons_fund_participation_icp_e8s : ?Nat64; sns_governance_canister_id : ?Principal }; - public type Configure = { operation : ?T.Operation }; - public type Countries = { iso_codes : [Text] }; - public type CreateServiceNervousSystem = { url : ?Text; governance_parameters : ?T.GovernanceParameters; fallback_controller_principal_ids : [Principal]; logo : ?T.Image; name : ?Text; ledger_parameters : ?T.LedgerParameters; description : ?Text; dapp_canisters : [T.Canister]; swap_parameters : ?T.SwapParameters; initial_token_distribution : ?T.InitialTokenDistribution }; - public type Decimal = { human_readable : ?Text }; - public type DerivedProposalInformation = { swap_background_information : ?T.SwapBackgroundInformation }; - public type DeveloperDistribution = { developer_neurons : [T.NeuronDistribution] }; - public type Disburse = { to_account : ?T.AccountIdentifier; amount : ?T.Amount }; - public type DisburseResponse = { transfer_block_height : Nat64 }; - public type DisburseToNeuron = { dissolve_delay_seconds : Nat64; kyc_verified : Bool; amount_e8s : Nat64; new_controller : ?Principal; nonce : Nat64 }; - public type DissolveState = { #DissolveDelaySeconds : Nat64; #WhenDissolvedTimestampSeconds : Nat64 }; - public type Duration = { seconds : ?Nat64 }; - public type ExecuteNnsFunction = { nns_function : Int32; payload : Blob }; - public type Follow = { topic : Int32; followees : [T.NeuronId] }; - public type Followees = { followees : [T.NeuronId] }; - public type Followers = { followers : [T.NeuronId] }; - public type FollowersMap = { followers_map : [(Nat64, T.Followers)] }; - public type GetNeuronsFundAuditInfoRequest = { nns_proposal_id : ?T.NeuronId }; - public type GetNeuronsFundAuditInfoResponse = { result : ?T.Result6 }; - public type GlobalTimeOfDay = { seconds_after_utc_midnight : ?Nat64 }; - public type Governance = { default_followees : [(Int32, T.Followees)]; making_sns_proposal : ?T.MakingSnsProposal; most_recent_monthly_node_provider_rewards : ?T.MostRecentMonthlyNodeProviderRewards; maturity_modulation_last_updated_at_timestamp_seconds : ?Nat64; wait_for_quiet_threshold_seconds : Nat64; metrics : ?T.GovernanceCachedMetrics; neuron_management_voting_period_seconds : ?Nat64; node_providers : [T.NodeProvider]; cached_daily_maturity_modulation_basis_points : ?Int32; economics : ?T.NetworkEconomics; restore_aging_summary : ?T.RestoreAgingSummary; spawning_neurons : ?Bool; latest_reward_event : ?T.RewardEvent; to_claim_transfers : [T.NeuronStakeTransfer]; short_voting_period_seconds : Nat64; topic_followee_index : [(Int32, T.FollowersMap)]; migrations : ?T.Migrations; proposals : [(Nat64, T.ProposalData)]; xdr_conversion_rate : ?T.XdrConversionRate; in_flight_commands : [(Nat64, T.NeuronInFlightCommand)]; neurons : [(Nat64, T.Neuron)]; genesis_timestamp_seconds : Nat64 }; - public type GovernanceCachedMetrics = { total_maturity_e8s_equivalent : Nat64; not_dissolving_neurons_e8s_buckets : [(Nat64, float64)]; dissolving_neurons_staked_maturity_e8s_equivalent_sum : Nat64; garbage_collectable_neurons_count : Nat64; dissolving_neurons_staked_maturity_e8s_equivalent_buckets : [(Nat64, float64)]; neurons_with_invalid_stake_count : Nat64; not_dissolving_neurons_count_buckets : [(Nat64, Nat64)]; ect_neuron_count : Nat64; total_supply_icp : Nat64; neurons_with_less_than_6_months_dissolve_delay_count : Nat64; dissolved_neurons_count : Nat64; community_fund_total_maturity_e8s_equivalent : Nat64; total_staked_e8s_seed : Nat64; total_staked_maturity_e8s_equivalent_ect : Nat64; total_staked_e8s : Nat64; not_dissolving_neurons_count : Nat64; total_locked_e8s : Nat64; neurons_fund_total_active_neurons : Nat64; total_staked_maturity_e8s_equivalent : Nat64; not_dissolving_neurons_e8s_buckets_ect : [(Nat64, float64)]; total_staked_e8s_ect : Nat64; not_dissolving_neurons_staked_maturity_e8s_equivalent_sum : Nat64; dissolved_neurons_e8s : Nat64; dissolving_neurons_e8s_buckets_seed : [(Nat64, float64)]; neurons_with_less_than_6_months_dissolve_delay_e8s : Nat64; not_dissolving_neurons_staked_maturity_e8s_equivalent_buckets : [(Nat64, float64)]; dissolving_neurons_count_buckets : [(Nat64, Nat64)]; dissolving_neurons_e8s_buckets_ect : [(Nat64, float64)]; dissolving_neurons_count : Nat64; dissolving_neurons_e8s_buckets : [(Nat64, float64)]; total_staked_maturity_e8s_equivalent_seed : Nat64; community_fund_total_staked_e8s : Nat64; not_dissolving_neurons_e8s_buckets_seed : [(Nat64, float64)]; timestamp_seconds : Nat64; seed_neuron_count : Nat64 }; - public type GovernanceError = { error_message : Text; error_type : Int32 }; - public type GovernanceParameters = { neuron_maximum_dissolve_delay_bonus : ?T.Percentage; neuron_maximum_age_for_age_bonus : ?T.Duration; neuron_maximum_dissolve_delay : ?T.Duration; neuron_minimum_dissolve_delay_to_vote : ?T.Duration; neuron_maximum_age_bonus : ?T.Percentage; neuron_minimum_stake : ?T.Tokens; proposal_wait_for_quiet_deadline_increase : ?T.Duration; proposal_initial_voting_period : ?T.Duration; proposal_rejection_fee : ?T.Tokens; voting_reward_parameters : ?T.VotingRewardParameters }; - public type IdealMatchedParticipationFunction = { serialized_representation : ?Text }; - public type Image = { base64_encoding : ?Text }; - public type IncreaseDissolveDelay = { additional_dissolve_delay_seconds : Nat32 }; - public type InitialTokenDistribution = { treasury_distribution : ?T.SwapDistribution; developer_distribution : ?T.DeveloperDistribution; swap_distribution : ?T.SwapDistribution }; - public type KnownNeuron = { id : ?T.NeuronId; known_neuron_data : ?T.KnownNeuronData }; - public type KnownNeuronData = { name : Text; description : ?Text }; - public type LedgerParameters = { transaction_fee : ?T.Tokens; token_symbol : ?Text; token_logo : ?T.Image; token_name : ?Text }; - public type ListKnownNeuronsResponse = { known_neurons : [T.KnownNeuron] }; - public type ListNeurons = { neuron_ids : [Nat64]; include_neurons_readable_by_caller : Bool }; - public type ListNeuronsResponse = { neuron_infos : [(Nat64, T.NeuronInfo)]; full_neurons : [T.Neuron] }; - public type ListNodeProvidersResponse = { node_providers : [T.NodeProvider] }; - public type ListProposalInfo = { include_reward_status : [Int32]; omit_large_fields : ?Bool; before_proposal : ?T.NeuronId; limit : Nat32; exclude_topic : [Int32]; include_all_manage_neuron_proposals : ?Bool; include_status : [Int32] }; - public type ListProposalInfoResponse = { proposal_info : [T.ProposalInfo] }; - public type MakeProposalResponse = { message : ?Text; proposal_id : ?T.NeuronId }; - public type MakingSnsProposal = { proposal : ?T.Proposal; caller : ?Principal; proposer_id : ?T.NeuronId }; - public type ManageNeuron = { id : ?T.NeuronId; command : ?T.Command; neuron_id_or_subaccount : ?T.NeuronIdOrSubaccount }; - public type ManageNeuronResponse = { command : ?T.Command1 }; - public type Merge = { source_neuron_id : ?T.NeuronId }; - public type MergeMaturity = { percentage_to_merge : Nat32 }; - public type MergeMaturityResponse = { merged_maturity_e8s : Nat64; new_stake_e8s : Nat64 }; - public type MergeResponse = { target_neuron : ?T.Neuron; source_neuron : ?T.Neuron; target_neuron_info : ?T.NeuronInfo; source_neuron_info : ?T.NeuronInfo }; - public type Migration = { status : ?Int32; failure_reason : ?Text; progress : ?T.Progress }; - public type Migrations = { neuron_indexes_migration : ?T.Migration; copy_inactive_neurons_to_stable_memory_migration : ?T.Migration }; - public type MostRecentMonthlyNodeProviderRewards = { timestamp : Nat64; rewards : [T.RewardNodeProvider] }; - public type Motion = { motion_text : Text }; - public type NetworkEconomics = { neuron_minimum_stake_e8s : Nat64; max_proposals_to_keep_per_topic : Nat32; neuron_management_fee_per_proposal_e8s : Nat64; reject_cost_e8s : Nat64; transaction_fee_e8s : Nat64; neuron_spawn_dissolve_delay_seconds : Nat64; minimum_icp_xdr_rate : Nat64; maximum_node_provider_rewards_e8s : Nat64; neurons_fund_economics : ?T.NeuronsFundEconomics }; - public type Neuron = { id : ?T.NeuronId; staked_maturity_e8s_equivalent : ?Nat64; controller : ?Principal; recent_ballots : [T.BallotInfo]; kyc_verified : Bool; neuron_type : ?Int32; not_for_profit : Bool; maturity_e8s_equivalent : Nat64; cached_neuron_stake_e8s : Nat64; created_timestamp_seconds : Nat64; auto_stake_maturity : ?Bool; aging_since_timestamp_seconds : Nat64; hot_keys : [Principal]; account : Blob; joined_community_fund_timestamp_seconds : ?Nat64; dissolve_state : ?T.DissolveState; followees : [(Int32, T.Followees)]; neuron_fees_e8s : Nat64; transfer : ?T.NeuronStakeTransfer; known_neuron_data : ?T.KnownNeuronData; spawn_at_timestamp_seconds : ?Nat64 }; - public type NeuronBasketConstructionParameters = { dissolve_delay_interval : ?T.Duration; count : ?Nat64 }; - public type NeuronBasketConstructionParameters1 = { dissolve_delay_interval_seconds : Nat64; count : Nat64 }; - public type NeuronDistribution = { controller : ?Principal; dissolve_delay : ?T.Duration; memo : ?Nat64; vesting_period : ?T.Duration; stake : ?T.Tokens }; - public type NeuronId = { id : Nat64 }; - public type NeuronIdOrSubaccount = { #Subaccount : Blob; #NeuronId : T.NeuronId }; - public type NeuronInFlightCommand = { command : ?T.Command2; timestamp : Nat64 }; - public type NeuronInfo = { dissolve_delay_seconds : Nat64; recent_ballots : [T.BallotInfo]; neuron_type : ?Int32; created_timestamp_seconds : Nat64; state : Int32; stake_e8s : Nat64; joined_community_fund_timestamp_seconds : ?Nat64; retrieved_at_timestamp_seconds : Nat64; known_neuron_data : ?T.KnownNeuronData; voting_power : Nat64; age_seconds : Nat64 }; - public type NeuronStakeTransfer = { to_subaccount : Blob; neuron_stake_e8s : Nat64; from : ?Principal; memo : Nat64; from_subaccount : Blob; transfer_timestamp : Nat64; block_height : Nat64 }; - public type NeuronsFundAuditInfo = { final_neurons_fund_participation : ?T.NeuronsFundParticipation; initial_neurons_fund_participation : ?T.NeuronsFundParticipation; neurons_fund_refunds : ?T.NeuronsFundSnapshot }; - public type NeuronsFundData = { final_neurons_fund_participation : ?T.NeuronsFundParticipation; initial_neurons_fund_participation : ?T.NeuronsFundParticipation; neurons_fund_refunds : ?T.NeuronsFundSnapshot }; - public type NeuronsFundEconomics = { maximum_icp_xdr_rate : ?T.Percentage; neurons_fund_matched_funding_curve_coefficients : ?T.NeuronsFundMatchedFundingCurveCoefficients; max_theoretical_neurons_fund_participation_amount_xdr : ?T.Decimal; minimum_icp_xdr_rate : ?T.Percentage }; - public type NeuronsFundMatchedFundingCurveCoefficients = { contribution_threshold_xdr : ?T.Decimal; one_third_participation_milestone_xdr : ?T.Decimal; full_participation_milestone_xdr : ?T.Decimal }; - public type NeuronsFundNeuron = { hotkey_principal : ?Text; is_capped : ?Bool; nns_neuron_id : ?Nat64; amount_icp_e8s : ?Nat64 }; - public type NeuronsFundNeuronPortion = { hotkey_principal : ?Principal; is_capped : ?Bool; maturity_equivalent_icp_e8s : ?Nat64; nns_neuron_id : ?T.NeuronId; amount_icp_e8s : ?Nat64 }; - public type NeuronsFundParticipation = { total_maturity_equivalent_icp_e8s : ?Nat64; intended_neurons_fund_participation_icp_e8s : ?Nat64; direct_participation_icp_e8s : ?Nat64; swap_participation_limits : ?T.SwapParticipationLimits; max_neurons_fund_swap_participation_icp_e8s : ?Nat64; neurons_fund_reserves : ?T.NeuronsFundSnapshot; ideal_matched_participation_function : ?T.IdealMatchedParticipationFunction; allocated_neurons_fund_participation_icp_e8s : ?Nat64 }; - public type NeuronsFundSnapshot = { neurons_fund_neuron_portions : [T.NeuronsFundNeuronPortion] }; - public type NodeProvider = { id : ?Principal; reward_account : ?T.AccountIdentifier }; - public type Ok = { neurons_fund_audit_info : ?T.NeuronsFundAuditInfo }; - public type Ok1 = { neurons_fund_neuron_portions : [T.NeuronsFundNeuron] }; - public type OpenSnsTokenSwap = { community_fund_investment_e8s : ?Nat64; target_swap_canister_id : ?Principal; params : ?T.Params }; - public type Operation = { #RemoveHotKey : T.RemoveHotKey; #AddHotKey : T.AddHotKey; #ChangeAutoStakeMaturity : T.ChangeAutoStakeMaturity; #StopDissolving : { }; #StartDissolving : { }; #IncreaseDissolveDelay : T.IncreaseDissolveDelay; #JoinCommunityFund : { }; #LeaveCommunityFund : { }; #SetDissolveTimestamp : T.SetDissolveTimestamp }; - public type Params = { min_participant_icp_e8s : Nat64; neuron_basket_construction_parameters : ?T.NeuronBasketConstructionParameters1; max_icp_e8s : Nat64; swap_due_timestamp_seconds : Nat64; min_participants : Nat32; sns_token_e8s : Nat64; sale_delay_seconds : ?Nat64; max_participant_icp_e8s : Nat64; min_direct_participation_icp_e8s : ?Nat64; min_icp_e8s : Nat64; max_direct_participation_icp_e8s : ?Nat64 }; - public type Percentage = { basis_points : ?Nat64 }; - public type Progress = { #LastNeuronId : T.NeuronId }; - public type Proposal = { url : Text; title : ?Text; action : ?T.Action; summary : Text }; - public type ProposalData = { id : ?T.NeuronId; failure_reason : ?T.GovernanceError; cf_participants : [T.CfParticipant]; ballots : [(Nat64, T.Ballot)]; proposal_timestamp_seconds : Nat64; reward_event_round : Nat64; failed_timestamp_seconds : Nat64; neurons_fund_data : ?T.NeuronsFundData; reject_cost_e8s : Nat64; derived_proposal_information : ?T.DerivedProposalInformation; latest_tally : ?T.Tally; sns_token_swap_lifecycle : ?Int32; decided_timestamp_seconds : Nat64; proposal : ?T.Proposal; proposer : ?T.NeuronId; wait_for_quiet_state : ?T.WaitForQuietState; executed_timestamp_seconds : Nat64; original_total_community_fund_maturity_e8s_equivalent : ?Nat64 }; - public type ProposalInfo = { id : ?T.NeuronId; status : Int32; topic : Int32; failure_reason : ?T.GovernanceError; ballots : [(Nat64, T.Ballot)]; proposal_timestamp_seconds : Nat64; reward_event_round : Nat64; deadline_timestamp_seconds : ?Nat64; failed_timestamp_seconds : Nat64; reject_cost_e8s : Nat64; derived_proposal_information : ?T.DerivedProposalInformation; latest_tally : ?T.Tally; reward_status : Int32; decided_timestamp_seconds : Nat64; proposal : ?T.Proposal; proposer : ?T.NeuronId; executed_timestamp_seconds : Nat64 }; - public type RegisterVote = { vote : Int32; proposal : ?T.NeuronId }; - public type RemoveHotKey = { hot_key_to_remove : ?Principal }; - public type RestoreAgingNeuronGroup = { count : ?Nat64; previous_total_stake_e8s : ?Nat64; current_total_stake_e8s : ?Nat64; group_type : Int32 }; - public type RestoreAgingSummary = { groups : [T.RestoreAgingNeuronGroup]; timestamp_seconds : ?Nat64 }; - public type Result = { #Ok; #Err : T.GovernanceError }; - public type Result1 = { #Error : T.GovernanceError; #NeuronId : T.NeuronId }; - public type Result10 = { #Ok : T.Ok1; #Err : T.GovernanceError }; - public type Result2 = { #Ok : T.Neuron; #Err : T.GovernanceError }; - public type Result3 = { #Ok : T.GovernanceCachedMetrics; #Err : T.GovernanceError }; - public type Result4 = { #Ok : T.RewardNodeProviders; #Err : T.GovernanceError }; - public type Result5 = { #Ok : T.NeuronInfo; #Err : T.GovernanceError }; - public type Result6 = { #Ok : T.Ok; #Err : T.GovernanceError }; - public type Result7 = { #Ok : T.NodeProvider; #Err : T.GovernanceError }; - public type Result8 = { #Committed : T.Committed; #Aborted : { } }; - public type Result9 = { #Committed : T.Committed1; #Aborted : { } }; - public type RewardEvent = { rounds_since_last_distribution : ?Nat64; day_after_genesis : Nat64; actual_timestamp_seconds : Nat64; total_available_e8s_equivalent : Nat64; latest_round_available_e8s_equivalent : ?Nat64; distributed_e8s_equivalent : Nat64; settled_proposals : [T.NeuronId] }; - public type RewardMode = { #RewardToNeuron : T.RewardToNeuron; #RewardToAccount : T.RewardToAccount }; - public type RewardNodeProvider = { node_provider : ?T.NodeProvider; reward_mode : ?T.RewardMode; amount_e8s : Nat64 }; - public type RewardNodeProviders = { use_registry_derived_rewards : ?Bool; rewards : [T.RewardNodeProvider] }; - public type RewardToAccount = { to_account : ?T.AccountIdentifier }; - public type RewardToNeuron = { dissolve_delay_seconds : Nat64 }; - public type SetDefaultFollowees = { default_followees : [(Int32, T.Followees)] }; - public type SetDissolveTimestamp = { dissolve_timestamp_seconds : Nat64 }; - public type SetOpenTimeWindowRequest = { open_time_window : ?T.TimeWindow }; - public type SetSnsTokenSwapOpenTimeWindow = { request : ?T.SetOpenTimeWindowRequest; swap_canister_id : ?Principal }; - public type SettleCommunityFundParticipation = { result : ?T.Result8; open_sns_token_swap_proposal_id : ?Nat64 }; - public type SettleNeuronsFundParticipationRequest = { result : ?T.Result9; nns_proposal_id : ?Nat64 }; - public type SettleNeuronsFundParticipationResponse = { result : ?T.Result10 }; - public type Spawn = { percentage_to_spawn : ?Nat32; new_controller : ?Principal; nonce : ?Nat64 }; - public type SpawnResponse = { created_neuron_id : ?T.NeuronId }; - public type Split = { amount_e8s : Nat64 }; - public type StakeMaturity = { percentage_to_stake : ?Nat32 }; - public type StakeMaturityResponse = { maturity_e8s : Nat64; staked_maturity_e8s : Nat64 }; - public type SwapBackgroundInformation = { ledger_index_canister_summary : ?T.CanisterSummary; fallback_controller_principal_ids : [Principal]; ledger_archive_canister_summaries : [T.CanisterSummary]; ledger_canister_summary : ?T.CanisterSummary; swap_canister_summary : ?T.CanisterSummary; governance_canister_summary : ?T.CanisterSummary; root_canister_summary : ?T.CanisterSummary; dapp_canister_summaries : [T.CanisterSummary] }; - public type SwapDistribution = { total : ?T.Tokens }; - public type SwapParameters = { minimum_participants : ?Nat64; neurons_fund_participation : ?Bool; duration : ?T.Duration; neuron_basket_construction_parameters : ?T.NeuronBasketConstructionParameters; confirmation_text : ?Text; maximum_participant_icp : ?T.Tokens; minimum_icp : ?T.Tokens; minimum_direct_participation_icp : ?T.Tokens; minimum_participant_icp : ?T.Tokens; start_time : ?T.GlobalTimeOfDay; maximum_direct_participation_icp : ?T.Tokens; maximum_icp : ?T.Tokens; neurons_fund_investment_icp : ?T.Tokens; restricted_countries : ?T.Countries }; - public type SwapParticipationLimits = { min_participant_icp_e8s : ?Nat64; max_participant_icp_e8s : ?Nat64; min_direct_participation_icp_e8s : ?Nat64; max_direct_participation_icp_e8s : ?Nat64 }; - public type Tally = { no : Nat64; yes : Nat64; total : Nat64; timestamp_seconds : Nat64 }; - public type TimeWindow = { start_timestamp_seconds : Nat64; end_timestamp_seconds : Nat64 }; - public type Tokens = { e8s : ?Nat64 }; - public type UpdateNodeProvider = { reward_account : ?T.AccountIdentifier }; - public type VotingRewardParameters = { reward_rate_transition_duration : ?T.Duration; initial_reward_rate : ?T.Percentage; final_reward_rate : ?T.Percentage }; - public type WaitForQuietState = { current_deadline_timestamp_seconds : Nat64 }; - public type XdrConversionRate = { xdr_permyriad_per_icp : ?Nat64; timestamp_seconds : ?Nat64 }; -}; diff --git a/ic/ic/actor.mo b/ic/ic/actor.mo deleted file mode 100755 index ef6400f..0000000 --- a/ic/ic/actor.mo +++ /dev/null @@ -1,88 +0,0 @@ -// Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go. -import T "types"; - -import { principalOfBlob } = "mo:⛔"; - -actor class _ic() : async actor {} { - public shared func create_canister(_arg0 : T.CreateCanisterArgs) : async (T.CreateCanisterResult) { - ({ canister_id = principalOfBlob("x869AF7A6140D470862C22E5F4C779F515D2190E37D31EEC1BDFD5BBCE1B03FA0") }) - }; - public shared func update_settings(_arg0 : T.UpdateSettingsArgs) : async () { - () - }; - public shared func upload_chunk(_arg0 : T.UploadChunkArgs) : async (T.UploadChunkResult) { - ({ hash = "x869AF7A6140D470862C22E5F4C779F515D2190E37D31EEC1BDFD5BBCE1B03FA0" }) - }; - public shared func clear_chunk_store(_arg0 : T.ClearChunkStoreArgs) : async () { - () - }; - public shared func stored_chunks(_arg0 : T.StoredChunksArgs) : async (T.StoredChunksResult) { - ([ { hash = "x0862C22E5F4C779F515D2190E37D31EEC1BDFD5BBCE1B03FA00DA2FE1A254CA2" }, { hash = "x3D005FB6E22DF7BA41EBE7B21A1C13F932DE5C88E3F7CBBA21D83DB973446660" }, { hash = "x1A2AA3EF195DD53147822C629DF98B40FE3A93E721D185BD47D7EEE55135BB08" }, { hash = "x88544768FAFB19D706D81F6BD23CB10726A014187038BCE35CB2F3ECCB7DD75F" } ]) - }; - public shared func install_code(_arg0 : T.InstallCodeArgs) : async () { - () - }; - public shared func install_chunked_code(_arg0 : T.InstallChunkedCodeArgs) : async () { - () - }; - public shared func uninstall_code(_arg0 : T.UninstallCodeArgs) : async () { - () - }; - public shared func start_canister(_arg0 : T.StartCanisterArgs) : async () { - () - }; - public shared func stop_canister(_arg0 : T.StopCanisterArgs) : async () { - () - }; - public shared func canister_status(_arg0 : T.CanisterStatusArgs) : async (T.CanisterStatusResult) { - ({ status = #running; settings = { controllers = [ principalOfBlob("x9F515D2190E37D31EEC1BDFD5BBCE1B03FA00DA2FE1A254CA23FD9613D005FB6"), principalOfBlob("xBA41EBE7B21A1C13F932DE5C88E3F7CBBA21D83DB97344666081C6741A2AA3EF"), principalOfBlob("x3147822C629DF98B40FE3A93E721D185BD47D7EEE55135BB0860874988544768"), principalOfBlob("xD706D81F6BD23CB10726A014187038BCE35CB2F3ECCB7DD75F4647487E926B57"), principalOfBlob("x1AB600EF4AE294D7E2D2267FA77832A886DE6E4B72F4197FF183421A910092C0"), principalOfBlob("x472B7A3158CE1700CC21E6E714AF1108697FFC6D45094AEDFBE2A29AD1939D09"), principalOfBlob("x30190C629CD14D0FC80915A4320DA282A98A18083753F3DE7592A2198D6B99C8"), principalOfBlob("xEC8A4F529F93BB58C59A87D62A7717691617B8B442AFB32C31DF22DF57966FEA") ]; compute_allocation = 7181374305377412901; memory_allocation = 8483647216729911020; freezing_threshold = 14994143942249040469; reserved_cycles_limit = 14039119793643782529 }; module_hash = ?"xB34811D335EB789A5543731482481F165AAA1560662B8E9D514E23991BA4248F"; memory_size = 16803621580220603980; cycles = 9736605414087480391; reserved_cycles = 14670472641987634058; idle_cycles_burned_per_day = 2674853784875525116; query_stats = { num_calls_total = 18114770955777861025; num_instructions_total = 8602988058490748629; request_payload_bytes_total = 5355458808652817339; response_payload_bytes_total = 8260513367546828360 } }) - }; - public shared func canister_info(_arg0 : T.CanisterInfoArgs) : async (T.CanisterInfoResult) { - ({ total_num_changes = 15656497011928570502; recent_changes = [ { timestamp_nanos = 14519010981886906783; canister_version = 3800013330962312753; origin = #from_canister({ canister_id = principalOfBlob("x1A254CA23FD9613D005FB6E22DF7BA41EBE7B21A1C13F932DE5C88E3F7CBBA21"); canister_version = ?13363524253285500019 }); details = #code_deployment({ mode = #install; module_hash = "x8B40FE3A93E721D185BD47D7EEE55135BB0860874988544768FAFB19D706D81F" }) }, { timestamp_nanos = 18045950183738836913; canister_version = 5831303564926106680; origin = #from_canister({ canister_id = principalOfBlob("x7E926B574D40DD1AB600EF4AE294D7E2D2267FA77832A886DE6E4B72F4197FF1"); canister_version = ?15832102157618905233 }); details = #controllers_change({ controllers = [ principalOfBlob("x1108697FFC6D45094AEDFBE2A29AD1939D09B4D94630190C629CD14D0FC80915"), principalOfBlob("xA282A98A18083753F3DE7592A2198D6B99C8F949A2EC8A4F529F93BB58C59A87"), principalOfBlob("x17691617B8B442AFB32C31DF22DF57966FEA580488256723D7E15DA9ECEEEA00"), principalOfBlob("x554AD41C79E61581014BE311F9D4B34811D335EB789A5543731482481F165AAA"), principalOfBlob("x2B8E9D514E23991BA4248FFA389E4C1E233DCC74324754D490095F1F8A63C2F0"), principalOfBlob("xFC639D6958FD1EA1E5B346359864D5BE44010FF463BBE3FC7A6969524896FE46"), principalOfBlob("xC23A172820B58468A0172ED6160AAAD5CD022CD31A758DAED770BD742E48D130"), principalOfBlob("xF8C698FD6E1D95443E119353DE510A61BC14E1216A7498623DB922273C26F534") ] }) }, { timestamp_nanos = 10541212000563527943; canister_version = 2689134793603183504; origin = #from_canister({ canister_id = principalOfBlob("xFD0E74B0990E0078D2B236027D6B7FC5C5F87878D58678F82484F4E75D2F951C"); canister_version = ?14834280829257491391 }); details = #creation({ controllers = [ principalOfBlob("xD92065148671911683101A133588AE791A21EC626F4BF9C04EFC0618773EAA16"), principalOfBlob("xE6C4C477AF447EC1D59F4DE45FA855620A308ACE5E7985E23EEC83B6DE9E7A45"), principalOfBlob("x5C4698C942208D3A6C38A387F9DD652E440339C1E0698E3FF7D098E5ADF0DE50"), principalOfBlob("xEC36CC81E040F2487088112A24F71279CFCEF6E28B80B686F9CB5EF661C10795"), principalOfBlob("xDA90DE1A63AF6E2336D10DD0AA6B73AD0792645EEBDDE279F464613D0D3FEEFD"), principalOfBlob("xD7273B138C7BA77B24762E9719827530A112A44E62E38FBB862EA149FDD66F9A") ] }) }, { timestamp_nanos = 14116231344195082928; canister_version = 4523606734605955336; origin = #from_user({ user_id = principalOfBlob("x9A1B4EEAF85713EE92E855F1BEE87F3FE35C84FDD06850DAC8F040ACD17D576A") }); details = #code_deployment({ mode = #reinstall; module_hash = "x25B00214F7C6B8BA3F69EC1FBD8BC9CC09D1B95EB57A8B1D022B04E7DCDFA58E" }) }, { timestamp_nanos = 3481921817742942786; canister_version = 9192667871694660610; origin = #from_canister({ canister_id = principalOfBlob("x3A16C322D334F8042ED922291CB854D60A33E746222A023EA5020B7D41655642"); canister_version = ?10449616418252478675 }); details = #controllers_change({ controllers = [ principalOfBlob("xC4ED20EBB0444E73617ECA0ABBC443EDF0163E4F4B23AF8CCCD2A3190579A59D") ] }) }, { timestamp_nanos = 14686404346102099380; canister_version = 2250618464655299498; origin = #from_user({ user_id = principalOfBlob("x374DA7D7B5F718177360AE769AE8F5B227269DA9D837857A4238F0C809FCF065") }); details = #code_uninstall }, { timestamp_nanos = 9568659421456693105; canister_version = 848519729038390968; origin = #from_user({ user_id = principalOfBlob("xEC395D74A4E4E610A0DCE6AD5E24D0FC4A81F68D8B9F8E9A874E3492BAC55757") }); details = #controllers_change({ controllers = [ principalOfBlob("xC1B42179ADA7FAB19B81214F32C5CB41BA44AEB1B0A285FCA96DC7529E31667A"), principalOfBlob("x6F4A3BF6B1C5F5B4DA96F373CE56A20DF3491E602A349325524A8D03331CE083") ] }) }, { timestamp_nanos = 5550019485348043196; canister_version = 12412919251015282992; origin = #from_user({ user_id = principalOfBlob("xCDE635272898479BC9935BEF0A6C51CEB1EED82A478AFE75A02F087067D12A9F") }); details = #code_deployment({ mode = #upgrade; module_hash = "x75A4DDAF64344788F0A5E08AEF31457D2629F301DF60AB8177C3FFAC498B9074" }) } ]; module_hash = ?"x17E7C82BF52CA609FA741633E6A4BF64B753791583EE9B0C78A073DE0E38B9BD"; controllers = [ principalOfBlob("xEB51862AB2B4A466C1D3F906E8986CF0284AD909DE18D8F5933BFAE314FFEABD"), principalOfBlob("xDE3ACE7BC63AABA7506A20E9C93555300ABC7CD8ED3EB286AEDCB24CAB0812C6"), principalOfBlob("x9A18B820BE6164576BBE8F88910CBF148176C3B86DDA0B3E165458750059B587"), principalOfBlob("xD6BFE31BFBCAF99A799D55B2CA3E017C90144C96C3DE646E93B8D6136B7D83E0") ] }) - }; - public shared func delete_canister(_arg0 : T.DeleteCanisterArgs) : async () { - () - }; - public shared func deposit_cycles(_arg0 : T.DepositCyclesArgs) : async () { - () - }; - public shared func raw_rand() : async (T.RawRandResult) { - ("x869AF7A6140D470862C22E5F4C779F515D2190E37D31EEC1BDFD5BBCE1B03FA0") - }; - public shared func http_request(_arg0 : T.HttpRequestArgs) : async (T.HttpRequestResult) { - ({ status = 15656497011928570502; headers = [ { name = "14519010981886906783"; value = "3800013330962312753" }, { name = "6412741098828968161"; value = "11484699392100541722" }, { name = "17507512528171630653"; value = "17445848412223914426" }, { name = "2946348513676687635"; value = "628601621483015159" }, { name = "13363524253285500019"; value = "17786224669345655322" }, { name = "11671532954286442289"; value = "18312172179401097355" }, { name = "11810108206237976017"; value = "8739665398422254929" }, { name = "6996900549006677128"; value = "11041931743943198423" } ]; body = "xB10726A014187038BCE35CB2F3ECCB7DD75F4647487E926B574D40DD1AB600EF" }) - }; - public shared func ecdsa_public_key(_arg0 : T.EcdsaPublicKeyArgs) : async (T.EcdsaPublicKeyResult) { - ({ public_key = "x869AF7A6140D470862C22E5F4C779F515D2190E37D31EEC1BDFD5BBCE1B03FA0"; chain_code = "x1A254CA23FD9613D005FB6E22DF7BA41EBE7B21A1C13F932DE5C88E3F7CBBA21" }) - }; - public shared func sign_with_ecdsa(_arg0 : T.SignWithEcdsaArgs) : async (T.SignWithEcdsaResult) { - ({ signature = "x869AF7A6140D470862C22E5F4C779F515D2190E37D31EEC1BDFD5BBCE1B03FA0" }) - }; - public shared func bitcoin_get_balance(_arg0 : T.BitcoinGetBalanceArgs) : async (T.BitcoinGetBalanceResult) { - (15656497011928570502) - }; - public query func bitcoin_get_balance_query(_arg0 : T.BitcoinGetBalanceQueryArgs) : async (T.BitcoinGetBalanceQueryResult) { - (15656497011928570502) - }; - public shared func bitcoin_get_utxos(_arg0 : T.BitcoinGetUtxosArgs) : async (T.BitcoinGetUtxosResult) { - ({ utxos = [ { outpoint = { txid = "x0862C22E5F4C779F515D2190E37D31EEC1BDFD5BBCE1B03FA00DA2FE1A254CA2"; vout = 2840997408 }; value = 17445848412223914426; height = 118915440 }, { outpoint = { txid = "xF7CBBA21D83DB97344666081C6741A2AA3EF195DD53147822C629DF98B40FE3A"; vout = 3953357992 }; value = 8739665398422254929; height = 3378598018 }, { outpoint = { txid = "xD706D81F6BD23CB10726A014187038BCE35CB2F3ECCB7DD75F4647487E926B57"; vout = 2056624229 }; value = 1763343418669589207; height = 3388535713 }, { outpoint = { txid = "xF4197FF183421A910092C007EDB6472B7A3158CE1700CC21E6E714AF1108697F"; vout = 92794092 }; value = 4919859010227508177; height = 2337925836 } ]; tip_block_hash = "x0FC80915A4320DA282A98A18083753F3DE7592A2198D6B99C8F949A2EC8A4F52"; tip_height = 2903633966; next_page = ?"x17691617B8B442AFB32C31DF22DF57966FEA580488256723D7E15DA9ECEEEA00" }) - }; - public query func bitcoin_get_utxos_query(_arg0 : T.BitcoinGetUtxosQueryArgs) : async (T.BitcoinGetUtxosQueryResult) { - ({ utxos = [ { outpoint = { txid = "x0862C22E5F4C779F515D2190E37D31EEC1BDFD5BBCE1B03FA00DA2FE1A254CA2"; vout = 2840997408 }; value = 17445848412223914426; height = 118915440 }, { outpoint = { txid = "xF7CBBA21D83DB97344666081C6741A2AA3EF195DD53147822C629DF98B40FE3A"; vout = 3953357992 }; value = 8739665398422254929; height = 3378598018 }, { outpoint = { txid = "xD706D81F6BD23CB10726A014187038BCE35CB2F3ECCB7DD75F4647487E926B57"; vout = 2056624229 }; value = 1763343418669589207; height = 3388535713 }, { outpoint = { txid = "xF4197FF183421A910092C007EDB6472B7A3158CE1700CC21E6E714AF1108697F"; vout = 92794092 }; value = 4919859010227508177; height = 2337925836 } ]; tip_block_hash = "x0FC80915A4320DA282A98A18083753F3DE7592A2198D6B99C8F949A2EC8A4F52"; tip_height = 2903633966; next_page = ?"x17691617B8B442AFB32C31DF22DF57966FEA580488256723D7E15DA9ECEEEA00" }) - }; - public shared func bitcoin_send_transaction(_arg0 : T.BitcoinSendTransactionArgs) : async () { - () - }; - public shared func bitcoin_get_current_fee_percentiles(_arg0 : T.BitcoinGetCurrentFeePercentilesArgs) : async (T.BitcoinGetCurrentFeePercentilesResult) { - ([ 14445098301504250376, 14519010981886906783, 3800013330962312753, 6412741098828968161 ]) - }; - public shared func node_metrics_history(_arg0 : T.NodeMetricsHistoryArgs) : async (T.NodeMetricsHistoryResult) { - ([ { timestamp_nanos = 14445098301504250376; node_metrics = [ { node_id = principalOfBlob("x31EEC1BDFD5BBCE1B03FA00DA2FE1A254CA23FD9613D005FB6E22DF7BA41EBE7"); num_blocks_total = 2946348513676687635; num_block_failures_total = 628601621483015159 }, { node_id = principalOfBlob("x7344666081C6741A2AA3EF195DD53147822C629DF98B40FE3A93E721D185BD47"); num_blocks_total = 8739665398422254929; num_block_failures_total = 6996900549006677128 }, { node_id = principalOfBlob("xD706D81F6BD23CB10726A014187038BCE35CB2F3ECCB7DD75F4647487E926B57"); num_blocks_total = 10057912679290418714; num_block_failures_total = 1763343418669589207 }, { node_id = principalOfBlob("x32A886DE6E4B72F4197FF183421A910092C007EDB6472B7A3158CE1700CC21E6"); num_blocks_total = 16736904521429092369; num_block_failures_total = 692044588527733257 }, { node_id = principalOfBlob("xD1939D09B4D94630190C629CD14D0FC80915A4320DA282A98A18083753F3DE75"); num_blocks_total = 5377942242194975629; num_block_failures_total = 14536374534758435564 } ] }, { timestamp_nanos = 2699673602518336856; node_metrics = [ { node_id = principalOfBlob("xAFB32C31DF22DF57966FEA580488256723D7E15DA9ECEEEA0032F8BB554AD41C"); num_blocks_total = 14039119793643782529; num_block_failures_total = 3420742533394811059 }, { node_id = principalOfBlob("x9A5543731482481F165AAA1560662B8E9D514E23991BA4248FFA389E4C1E233D"); num_blocks_total = 9736605414087480391; num_block_failures_total = 14670472641987634058 }, { node_id = principalOfBlob("xFC639D6958FD1EA1E5B346359864D5BE44010FF463BBE3FC7A6969524896FE46"); num_blocks_total = 5874018963714161346; num_block_failures_total = 12468803627480752232 } ] }, { timestamp_nanos = 6060388434559489450; node_metrics = [ { node_id = principalOfBlob("x2E48D130F2D796F8C698FD6E1D95443E119353DE510A61BC14E1216A7498623D"); num_blocks_total = 14370068839309583932; num_block_failures_total = 10541212000563527943 }, { node_id = principalOfBlob("x9073DCDDD8B951CDB2FC3A3922F1FD0E74B0990E0078D2B236027D6B7FC5C5F8"); num_blocks_total = 4965205962592385158; num_block_failures_total = 11603411761932611421 }, { node_id = principalOfBlob("xBFA3479ED1F3DDB8E186099D10294826ED8361D159D92065148671911683101A"); num_blocks_total = 14947274454573152686; num_block_failures_total = 7716925642222139723 }, { node_id = principalOfBlob("x773EAA160280F8E6C4C477AF447EC1D59F4DE45FA855620A308ACE5E7985E23E"); num_blocks_total = 8782559658733379294; num_block_failures_total = 4291121491176080988 }, { node_id = principalOfBlob("x3A6C38A387F9DD652E440339C1E0698E3FF7D098E5ADF0DE507011E9EC36CC81"); num_blocks_total = 11022318376113958984; num_block_failures_total = 17477312328600877330 } ] }, { timestamp_nanos = 16930824079303685760; node_metrics = [ { node_id = principalOfBlob("xDA90DE1A63AF6E2336D10DD0AA6B73AD0792645EEBDDE279F464613D0D3FEEFD"); num_blocks_total = 13738085029865269207; num_block_failures_total = 17402500047223268475 }, { node_id = principalOfBlob("x7530A112A44E62E38FBB862EA149FDD66F9AA60B04B09AFBD59DEDE608B1C0A7"); num_blocks_total = 8262129053821897548; num_block_failures_total = 7283261748982717338 }, { node_id = principalOfBlob("xEE92E855F1BEE87F3FE35C84FDD06850DAC8F040ACD17D576AEF2F3A2A75B35E"); num_blocks_total = 8934560208994098493; num_block_failures_total = 11869455582429884453 } ] } ]) - }; - public shared func provisional_create_canister_with_cycles(_arg0 : T.ProvisionalCreateCanisterWithCyclesArgs) : async (T.ProvisionalCreateCanisterWithCyclesResult) { - ({ canister_id = principalOfBlob("x869AF7A6140D470862C22E5F4C779F515D2190E37D31EEC1BDFD5BBCE1B03FA0") }) - }; - public shared func provisional_top_up_canister(_arg0 : T.ProvisionalTopUpCanisterArgs) : async () { - () - }; -} diff --git a/ic/ic/agent.go b/ic/ic/agent.go index db1e4c4..563ed56 100755 --- a/ic/ic/agent.go +++ b/ic/ic/agent.go @@ -321,6 +321,29 @@ func (a Agent) EcdsaPublicKeyCall(arg0 EcdsaPublicKeyArgs) (*agent.Call, error) ) } +// FetchCanisterLogs calls the "fetch_canister_logs" method on the "ic" canister. +func (a Agent) FetchCanisterLogs(arg0 FetchCanisterLogsArgs) (*FetchCanisterLogsResult, error) { + var r0 FetchCanisterLogsResult + if err := a.Agent.Query( + a.CanisterId, + "fetch_canister_logs", + []any{arg0}, + []any{&r0}, + ); err != nil { + return nil, err + } + return &r0, nil +} + +// FetchCanisterLogsQuery creates an indirect representation of the "fetch_canister_logs" method on the "ic" canister. +func (a Agent) FetchCanisterLogsQuery(arg0 FetchCanisterLogsArgs) (*agent.Query, error) { + return a.Agent.CreateQuery( + a.CanisterId, + "fetch_canister_logs", + arg0, + ) +} + // HttpRequest calls the "http_request" method on the "ic" canister. func (a Agent) HttpRequest(arg0 HttpRequestArgs) (*HttpRequestResult, error) { var r0 HttpRequestResult @@ -729,12 +752,19 @@ type CanisterInstallMode struct { } `ic:"upgrade,variant"` } +type CanisterLogRecord struct { + Idx uint64 `ic:"idx" json:"idx"` + TimestampNanos uint64 `ic:"timestamp_nanos" json:"timestamp_nanos"` + Content []byte `ic:"content" json:"content"` +} + type CanisterSettings struct { Controllers *[]principal.Principal `ic:"controllers,omitempty" json:"controllers,omitempty"` ComputeAllocation *idl.Nat `ic:"compute_allocation,omitempty" json:"compute_allocation,omitempty"` MemoryAllocation *idl.Nat `ic:"memory_allocation,omitempty" json:"memory_allocation,omitempty"` FreezingThreshold *idl.Nat `ic:"freezing_threshold,omitempty" json:"freezing_threshold,omitempty"` ReservedCyclesLimit *idl.Nat `ic:"reserved_cycles_limit,omitempty" json:"reserved_cycles_limit,omitempty"` + LogVisibility *LogVisibility `ic:"log_visibility,omitempty" json:"log_visibility,omitempty"` } type CanisterStatusArgs struct { @@ -819,6 +849,7 @@ type DefiniteCanisterSettings struct { MemoryAllocation idl.Nat `ic:"memory_allocation" json:"memory_allocation"` FreezingThreshold idl.Nat `ic:"freezing_threshold" json:"freezing_threshold"` ReservedCyclesLimit idl.Nat `ic:"reserved_cycles_limit" json:"reserved_cycles_limit"` + LogVisibility LogVisibility `ic:"log_visibility" json:"log_visibility"` } type DeleteCanisterArgs struct { @@ -847,6 +878,14 @@ type EcdsaPublicKeyResult struct { ChainCode []byte `ic:"chain_code" json:"chain_code"` } +type FetchCanisterLogsArgs struct { + CanisterId CanisterId `ic:"canister_id" json:"canister_id"` +} + +type FetchCanisterLogsResult struct { + CanisterLogRecords []CanisterLogRecord `ic:"canister_log_records" json:"canister_log_records"` +} + type HttpHeader struct { Name string `ic:"name" json:"name"` Value string `ic:"value" json:"value"` @@ -893,12 +932,17 @@ type InstallCodeArgs struct { SenderCanisterVersion *uint64 `ic:"sender_canister_version,omitempty" json:"sender_canister_version,omitempty"` } +type LogVisibility struct { + Controllers *idl.Null `ic:"controllers,variant"` + Public *idl.Null `ic:"public,variant"` +} + type MillisatoshiPerByte = uint64 type NodeMetrics struct { - NodeId principal.Principal `ic:"node_id" json:"node_id"` - NumBlocksTotal uint64 `ic:"num_blocks_total" json:"num_blocks_total"` - NumBlockFailuresTotal uint64 `ic:"num_block_failures_total" json:"num_block_failures_total"` + NodeId principal.Principal `ic:"node_id" json:"node_id"` + NumBlocksProposedTotal uint64 `ic:"num_blocks_proposed_total" json:"num_blocks_proposed_total"` + NumBlockFailuresTotal uint64 `ic:"num_block_failures_total" json:"num_block_failures_total"` } type NodeMetricsHistoryArgs struct { diff --git a/ic/ic/types.mo b/ic/ic/types.mo deleted file mode 100755 index d0d651d..0000000 --- a/ic/ic/types.mo +++ /dev/null @@ -1,64 +0,0 @@ -// Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go. -module T { - public type CanisterId = Principal; - public type WasmModule = Blob; - public type CanisterSettings = { controllers : ?[Principal]; compute_allocation : ?Nat; memory_allocation : ?Nat; freezing_threshold : ?Nat; reserved_cycles_limit : ?Nat }; - public type DefiniteCanisterSettings = { controllers : [Principal]; compute_allocation : Nat; memory_allocation : Nat; freezing_threshold : Nat; reserved_cycles_limit : Nat }; - public type ChangeOrigin = { #from_user : { user_id : Principal }; #from_canister : { canister_id : Principal; canister_version : ?Nat64 } }; - public type ChangeDetails = { #creation : { controllers : [Principal] }; #code_uninstall; #code_deployment : { mode : { #install; #reinstall; #upgrade }; module_hash : Blob }; #controllers_change : { controllers : [Principal] } }; - public type Change = { timestamp_nanos : Nat64; canister_version : Nat64; origin : T.ChangeOrigin; details : T.ChangeDetails }; - public type ChunkHash = { hash : Blob }; - public type HttpHeader = { name : Text; value : Text }; - public type HttpRequestResult = { status : Nat; headers : [T.HttpHeader]; body : Blob }; - public type EcdsaCurve = { #secp256k1 }; - public type Satoshi = Nat64; - public type BitcoinNetwork = { #mainnet; #testnet }; - public type BitcoinAddress = Text; - public type BlockHash = Blob; - public type Outpoint = { txid : Blob; vout : Nat32 }; - public type Utxo = { outpoint : T.Outpoint; value : T.Satoshi; height : Nat32 }; - public type BitcoinGetUtxosArgs = { address : T.BitcoinAddress; network : T.BitcoinNetwork; filter : ?{ #min_confirmations : Nat32; #page : Blob } }; - public type BitcoinGetUtxosQueryArgs = { address : T.BitcoinAddress; network : T.BitcoinNetwork; filter : ?{ #min_confirmations : Nat32; #page : Blob } }; - public type BitcoinGetCurrentFeePercentilesArgs = { network : T.BitcoinNetwork }; - public type BitcoinGetUtxosResult = { utxos : [T.Utxo]; tip_block_hash : T.BlockHash; tip_height : Nat32; next_page : ?Blob }; - public type BitcoinGetUtxosQueryResult = { utxos : [T.Utxo]; tip_block_hash : T.BlockHash; tip_height : Nat32; next_page : ?Blob }; - public type BitcoinGetBalanceArgs = { address : T.BitcoinAddress; network : T.BitcoinNetwork; min_confirmations : ?Nat32 }; - public type BitcoinGetBalanceQueryArgs = { address : T.BitcoinAddress; network : T.BitcoinNetwork; min_confirmations : ?Nat32 }; - public type BitcoinSendTransactionArgs = { transaction : Blob; network : T.BitcoinNetwork }; - public type MillisatoshiPerByte = Nat64; - public type NodeMetrics = { node_id : Principal; num_blocks_total : Nat64; num_block_failures_total : Nat64 }; - public type CreateCanisterArgs = { settings : ?T.CanisterSettings; sender_canister_version : ?Nat64 }; - public type CreateCanisterResult = { canister_id : T.CanisterId }; - public type UpdateSettingsArgs = { canister_id : Principal; settings : T.CanisterSettings; sender_canister_version : ?Nat64 }; - public type UploadChunkArgs = { canister_id : Principal; chunk : Blob }; - public type ClearChunkStoreArgs = { canister_id : T.CanisterId }; - public type StoredChunksArgs = { canister_id : T.CanisterId }; - public type CanisterInstallMode = { #install; #reinstall; #upgrade : ?{ skip_pre_upgrade : ?Bool; wasm_memory_persistence : ?{ #keep; #replace } } }; - public type InstallCodeArgs = { mode : T.CanisterInstallMode; canister_id : T.CanisterId; wasm_module : T.WasmModule; arg : Blob; sender_canister_version : ?Nat64 }; - public type InstallChunkedCodeArgs = { mode : T.CanisterInstallMode; target_canister : T.CanisterId; store_canister : ?T.CanisterId; chunk_hashes_list : [T.ChunkHash]; wasm_module_hash : Blob; arg : Blob; sender_canister_version : ?Nat64 }; - public type UninstallCodeArgs = { canister_id : T.CanisterId; sender_canister_version : ?Nat64 }; - public type StartCanisterArgs = { canister_id : T.CanisterId }; - public type StopCanisterArgs = { canister_id : T.CanisterId }; - public type CanisterStatusArgs = { canister_id : T.CanisterId }; - public type CanisterStatusResult = { status : { #running; #stopping; #stopped }; settings : T.DefiniteCanisterSettings; module_hash : ?Blob; memory_size : Nat; cycles : Nat; reserved_cycles : Nat; idle_cycles_burned_per_day : Nat; query_stats : { num_calls_total : Nat; num_instructions_total : Nat; request_payload_bytes_total : Nat; response_payload_bytes_total : Nat } }; - public type CanisterInfoArgs = { canister_id : T.CanisterId; num_requested_changes : ?Nat64 }; - public type CanisterInfoResult = { total_num_changes : Nat64; recent_changes : [T.Change]; module_hash : ?Blob; controllers : [Principal] }; - public type DeleteCanisterArgs = { canister_id : T.CanisterId }; - public type DepositCyclesArgs = { canister_id : T.CanisterId }; - public type HttpRequestArgs = { url : Text; max_response_bytes : ?Nat64; method : { #get; #head; #post }; headers : [T.HttpHeader]; body : ?Blob; transform : ?{ function : { /* func */ }; context : Blob } }; - public type EcdsaPublicKeyArgs = { canister_id : ?T.CanisterId; derivation_path : [Blob]; key_id : { curve : T.EcdsaCurve; name : Text } }; - public type EcdsaPublicKeyResult = { public_key : Blob; chain_code : Blob }; - public type SignWithEcdsaArgs = { message_hash : Blob; derivation_path : [Blob]; key_id : { curve : T.EcdsaCurve; name : Text } }; - public type SignWithEcdsaResult = { signature : Blob }; - public type NodeMetricsHistoryArgs = { subnet_id : Principal; start_at_timestamp_nanos : Nat64 }; - public type NodeMetricsHistoryResult = [{ timestamp_nanos : Nat64; node_metrics : [T.NodeMetrics] }]; - public type ProvisionalCreateCanisterWithCyclesArgs = { amount : ?Nat; settings : ?T.CanisterSettings; specified_id : ?T.CanisterId; sender_canister_version : ?Nat64 }; - public type ProvisionalCreateCanisterWithCyclesResult = { canister_id : T.CanisterId }; - public type ProvisionalTopUpCanisterArgs = { canister_id : T.CanisterId; amount : Nat }; - public type RawRandResult = Blob; - public type StoredChunksResult = [T.ChunkHash]; - public type UploadChunkResult = T.ChunkHash; - public type BitcoinGetBalanceResult = T.Satoshi; - public type BitcoinGetBalanceQueryResult = T.Satoshi; - public type BitcoinGetCurrentFeePercentilesResult = [T.MillisatoshiPerByte]; -}; diff --git a/ic/ic_test.go b/ic/ic_test.go index e0879dd..2b354e6 100644 --- a/ic/ic_test.go +++ b/ic/ic_test.go @@ -39,13 +39,14 @@ func TestModules(t *testing.T) { DisableSignedQueryVerification: true, } + wasmModule := compileMotoko(t) + t.Run("assetstorage", func(t *testing.T) { canisterID, err := pic.CreateCanister() if err != nil { t.Fatal(err) } - wasmModule := compileMotoko(t, "assetstorage/actor.mo", "assetstorage/actor.wasm") if err := pic.InstallCode(*canisterID, wasmModule, nil, nil); err != nil { t.Fatal(err) } @@ -83,7 +84,6 @@ func TestModules(t *testing.T) { t.Fatal(err) } - wasmModule := compileMotoko(t, "ic/actor.mo", "ic/actor.wasm") if err := pic.InstallCode(*canisterID, wasmModule, nil, nil); err != nil { t.Fatal(err) } @@ -150,7 +150,11 @@ func TestModules(t *testing.T) { }) } -func compileMotoko(t *testing.T, in, out string) []byte { +func compileMotoko(t *testing.T) []byte { + var ( + in = "testdata/actor.mo" + out = "testdata/actor.wasm" + ) dfxPath, err := exec.LookPath("dfx") if err != nil { t.Skipf("dfx not found: %v", err) diff --git a/ic/icparchive/actor.mo b/ic/icparchive/actor.mo deleted file mode 100755 index 776c7c5..0000000 --- a/ic/icparchive/actor.mo +++ /dev/null @@ -1,13 +0,0 @@ -// Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go. -import T "types"; - -import { principalOfBlob } = "mo:⛔"; - -actor class _icparchive() : async actor {} { - public query func get_blocks(_arg0 : T.GetBlocksArgs) : async (T.GetBlocksResult) { - (#Err(#BadFirstBlockIndex({ requested_index = 6197789885467376506; first_valid_index = 11539667703195591131 }))) - }; - public query func get_encoded_blocks(_arg0 : T.GetBlocksArgs) : async (T.GetEncodedBlocksResult) { - (#Err(#BadFirstBlockIndex({ requested_index = 6197789885467376506; first_valid_index = 11539667703195591131 }))) - }; -} diff --git a/ic/icparchive/types.mo b/ic/icparchive/types.mo deleted file mode 100755 index 3628cb1..0000000 --- a/ic/icparchive/types.mo +++ /dev/null @@ -1,16 +0,0 @@ -// Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go. -module T { - public type BlockIndex = Nat64; - public type Memo = Nat64; - public type AccountIdentifier = Blob; - public type Tokens = { e8s : Nat64 }; - public type Timestamp = { timestamp_nanos : Nat64 }; - public type Operation = { #Mint : { to : T.AccountIdentifier; amount : T.Tokens }; #Burn : { from : T.AccountIdentifier; spender : ?T.AccountIdentifier; amount : T.Tokens }; #Transfer : { from : T.AccountIdentifier; to : T.AccountIdentifier; amount : T.Tokens; fee : T.Tokens; spender : ?[Nat8] }; #Approve : { from : T.AccountIdentifier; spender : T.AccountIdentifier; allowance_e8s : Int; allowance : T.Tokens; fee : T.Tokens; expires_at : ?T.Timestamp; expected_allowance : ?T.Tokens } }; - public type Transaction = { memo : T.Memo; icrc1_memo : ?Blob; operation : ?T.Operation; created_at_time : T.Timestamp }; - public type Block = { parent_hash : ?Blob; transaction : T.Transaction; timestamp : T.Timestamp }; - public type GetBlocksArgs = { start : T.BlockIndex; length : Nat64 }; - public type BlockRange = { blocks : [T.Block] }; - public type GetBlocksError = { #BadFirstBlockIndex : { requested_index : T.BlockIndex; first_valid_index : T.BlockIndex }; #Other : { error_code : Nat64; error_message : Text } }; - public type GetBlocksResult = { #Ok : T.BlockRange; #Err : T.GetBlocksError }; - public type GetEncodedBlocksResult = { #Ok : [Blob]; #Err : T.GetBlocksError }; -}; diff --git a/ic/icpledger/actor.mo b/ic/icpledger/actor.mo deleted file mode 100755 index 283e3ac..0000000 --- a/ic/icpledger/actor.mo +++ /dev/null @@ -1,82 +0,0 @@ -// Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go. -import T "types"; - -import { principalOfBlob } = "mo:⛔"; - -actor class _icpledger() : async actor {} { - public shared func transfer(_arg0 : T.TransferArgs) : async (T.TransferResult) { - (#Err(#TxCreatedInFuture(()))) - }; - public query func account_balance(_arg0 : T.AccountBalanceArgs) : async (T.Tokens) { - ({ e8s = 6844078342166154913 }) - }; - public query func account_identifier(_arg0 : T.Account) : async (T.AccountIdentifier) { - ("xA10EC29FFD0CFB84891BC5734DC8A7DBD3D42B2C9D0A8FBBF49C31A6ECCAD503") - }; - public query func transfer_fee(_arg0 : T.TransferFeeArg) : async (T.TransferFee) { - ({ transfer_fee = { e8s = 6844078342166154913 } }) - }; - public query func query_blocks(_arg0 : T.GetBlocksArgs) : async (T.QueryBlocksResponse) { - ({ chain_length = 6844078342166154913; certificate = ?"x84891BC5734DC8A7DBD3D42B2C9D0A8FBBF49C31A6ECCAD50322C04AE239219A"; blocks = [ { parent_hash = ?"x267840FA60A5160796052355DC613B3B6DD17D37E39432DAB2AB61070029151D"; transaction = { memo = 11508387437776522631; icrc1_memo = ?"x15D9B71F910AE4978C6001D6EBE96441FB2F2AC1E3F491B5AD85106B4D49CAAB"; operation = ?#Transfer({ from = "xF8E011AAEE68D2270B08A64D94AE3AF0629EF547A02033FD611622DAB7C219DE"; to = "x2D3DE89B2839CB658D80BD5111D619F48335D415EC0F380883A19D18A66069A4"; amount = { e8s = 4200380692304161028 }; fee = { e8s = 6059561021905423752 }; spender = ?[ 107, 120, 9 ] }); created_at_time = { timestamp_nanos = 8771396759540683536 } }; timestamp = { timestamp_nanos = 15217832916911669816 } }, { parent_hash = ?"x0C037EAEA22E01616AEEF852F0E82F856182D3B2EEDA50CC652B61D03D35374C"; transaction = { memo = 4070101824003267176; icrc1_memo = ?"x14E747B5FE200DBFD21F5B02A9AE32607D4F702056FB42F474E2D79096BB978C"; operation = ?#Burn({ from = "x4EE9D39F28086FAF61953AD2EAAFA97F8227500E0A743504E89788067F98C824"; spender = ?"xDA1333D8621433A7F294C20BD614EBE11CC8CA2E8861E55E80E9665D2087F8E6"; amount = { e8s = 1466851927785850594 } }); created_at_time = { timestamp_nanos = 14865559480316213187 } }; timestamp = { timestamp_nanos = 9017235565990438738 } }, { parent_hash = ?"xCB9511450F3D57D9502E93C887111564A06B691F5CA277B665A7186D600DB1BE"; transaction = { memo = 8895396859945867834; icrc1_memo = ?"xBE69A0039ED288EA3253592132AAF5B5D7134FDACCD530F24AE03966A1902DE0"; operation = ?#Approve({ from = "xAFC7FE45CD3970680303163CA5A42FDACA085C8E78A2FFA861D8B6112A3AD604"; spender = "x230A93C460FB00CCC6B01E5111A9B76E53F34D15799445CE3858295E0D6151A4"; allowance_e8s = 1137136953581248725; allowance = { e8s = 97406067914984320 }; fee = { e8s = 1968901117472609631 }; expires_at = ?{ timestamp_nanos = 16933899834649614941 }; expected_allowance = ?{ e8s = 9483663234984890706 } }); created_at_time = { timestamp_nanos = 10696245065444303678 } }; timestamp = { timestamp_nanos = 11131148948638734196 } } ]; first_block_index = 1770011220686955968; archived_blocks = [ { start = 2737438243966959150; length = 13531591559510253363; callback = { /* func */ } }, { start = 656934166386055698; length = 17781636316119954112; callback = { /* func */ } }, { start = 787507188863736678; length = 3342374177704650595; callback = { /* func */ } }, { start = 7357984375683813692; length = 9850727841105441469; callback = { /* func */ } }, { start = 18048247332320202900; length = 3626821402128685393; callback = { /* func */ } } ] }) - }; - public query func query_encoded_blocks(_arg0 : T.GetBlocksArgs) : async (T.QueryEncodedBlocksResponse) { - ({ certificate = ?"xA10EC29FFD0CFB84891BC5734DC8A7DBD3D42B2C9D0A8FBBF49C31A6ECCAD503"; blocks = [ "x8131F8664185C2267840FA60A5160796052355DC613B3B6DD17D37E39432DAB2", "x0029151DF0511187CD3C8E6601B615D9B71F910AE4978C6001D6EBE96441FB2F", "xF491B5AD85106B4D49CAAB5568811A2E80764917A3F8E011AAEE68D2270B08A6", "x3AF0629EF547A02033FD611622DAB7C219DE5142FB2D3DE89B2839CB658D80BD" ]; chain_length = 17936735417084933145; first_block_index = 15571369028647139343; archived_blocks = [ ] }) - }; - public query func symbol() : async ({ symbol : Text }) { - ({ symbol = "6844078342166154913" }) - }; - public query func name() : async ({ name : Text }) { - ({ name = "6844078342166154913" }) - }; - public query func decimals() : async ({ decimals : Nat32 }) { - ({ decimals = 4273806238 }) - }; - public query func archives() : async (T.Archives) { - ({ archives = [ { canister_id = principalOfBlob("x84891BC5734DC8A7DBD3D42B2C9D0A8FBBF49C31A6ECCAD50322C04AE239219A") }, { canister_id = principalOfBlob("x8131F8664185C2267840FA60A5160796052355DC613B3B6DD17D37E39432DAB2") }, { canister_id = principalOfBlob("x0029151DF0511187CD3C8E6601B615D9B71F910AE4978C6001D6EBE96441FB2F") } ] }) - }; - public shared func send_dfx(_arg0 : T.SendArgs) : async (T.BlockIndex) { - (6844078342166154913) - }; - public query func account_balance_dfx(_arg0 : T.AccountBalanceArgsDfx) : async (T.Tokens) { - ({ e8s = 6844078342166154913 }) - }; - public query func icrc1_name() : async (Text) { - ("6844078342166154913") - }; - public query func icrc1_symbol() : async (Text) { - ("6844078342166154913") - }; - public query func icrc1_decimals() : async (Nat8) { - (118) - }; - public query func icrc1_metadata() : async ([(Text, T.Value)]) { - ([ ( "7478312340872202628", #Blob("x0A8FBBF49C31A6ECCAD50322C04AE239219AAEF2E58131F8664185C2267840FA") ), ( "27545330958833159", #Blob("x9432DAB2AB61070029151DF0511187CD3C8E6601B615D9B71F910AE4978C6001") ), ( "14043280450009121124", #Nat(6521608452572858701) ) ]) - }; - public query func icrc1_total_supply() : async (T.Icrc1Tokens) { - (6844078342166154913) - }; - public query func icrc1_fee() : async (T.Icrc1Tokens) { - (6844078342166154913) - }; - public query func icrc1_minting_account() : async (?T.Account) { - (?{ owner = principalOfBlob("xA10EC29FFD0CFB84891BC5734DC8A7DBD3D42B2C9D0A8FBBF49C31A6ECCAD503"); subaccount = ?"xE239219AAEF2E58131F8664185C2267840FA60A5160796052355DC613B3B6DD1" }) - }; - public query func icrc1_balance_of(_arg0 : T.Account) : async (T.Icrc1Tokens) { - (6844078342166154913) - }; - public shared func icrc1_transfer(_arg0 : T.TransferArg) : async (T.Icrc1TransferResult) { - (#Err(#CreatedInFuture({ ledger_time = 3070659087702416295 }))) - }; - public query func icrc1_supported_standards() : async ([{ name : Text; url : Text }]) { - ([ { name = "7478312340872202628"; url = "3070659087702416295" }, { name = "16475910836972130058"; url = "14216386426074155756" }, { name = "8999866262093904354"; url = "270925443542561153" } ]) - }; - public shared func icrc2_approve(_arg0 : T.ApproveArgs) : async (T.ApproveResult) { - (#Err(#TooOld)) - }; - public query func icrc2_allowance(_arg0 : T.AllowanceArgs) : async (T.Allowance) { - ({ allowance = 6844078342166154913; expires_at = ?7478312340872202628 }) - }; - public shared func icrc2_transfer_from(_arg0 : T.TransferFromArgs) : async (T.TransferFromResult) { - (#Err(#TooOld)) - }; -} diff --git a/ic/icpledger/agent.go b/ic/icpledger/agent.go index 2258176..b84ccf8 100755 --- a/ic/icpledger/agent.go +++ b/ic/icpledger/agent.go @@ -115,6 +115,26 @@ func (a Agent) Decimals() (*struct { return &r0, nil } +// Icrc10SupportedStandards calls the "icrc10_supported_standards" method on the "icpledger" canister. +func (a Agent) Icrc10SupportedStandards() (*[]struct { + Name string `ic:"name" json:"name"` + Url string `ic:"url" json:"url"` +}, error) { + var r0 []struct { + Name string `ic:"name" json:"name"` + Url string `ic:"url" json:"url"` + } + if err := a.Agent.Query( + a.CanisterId, + "icrc10_supported_standards", + []any{}, + []any{&r0}, + ); err != nil { + return nil, err + } + return &r0, nil +} + // Icrc1BalanceOf calls the "icrc1_balance_of" method on the "icpledger" canister. func (a Agent) Icrc1BalanceOf(arg0 Account) (*Icrc1Tokens, error) { var r0 Icrc1Tokens @@ -267,6 +287,20 @@ func (a Agent) Icrc1Transfer(arg0 TransferArg) (*Icrc1TransferResult, error) { return &r0, nil } +// Icrc21CanisterCallConsentMessage calls the "icrc21_canister_call_consent_message" method on the "icpledger" canister. +func (a Agent) Icrc21CanisterCallConsentMessage(arg0 Icrc21ConsentMessageRequest) (*Icrc21ConsentMessageResponse, error) { + var r0 Icrc21ConsentMessageResponse + if err := a.Agent.Call( + a.CanisterId, + "icrc21_canister_call_consent_message", + []any{arg0}, + []any{&r0}, + ); err != nil { + return nil, err + } + return &r0, nil +} + // Icrc2Allowance calls the "icrc2_allowance" method on the "icpledger" canister. func (a Agent) Icrc2Allowance(arg0 AllowanceArgs) (*Allowance, error) { var r0 Allowance @@ -561,6 +595,60 @@ type Icrc1TransferResult struct { Err *Icrc1TransferError `ic:"Err,variant"` } +type Icrc21ConsentInfo struct { + ConsentMessage Icrc21ConsentMessage `ic:"consent_message" json:"consent_message"` + Metadata Icrc21ConsentMessageMetadata `ic:"metadata" json:"metadata"` +} + +type Icrc21ConsentMessage struct { + GenericDisplayMessage *string `ic:"GenericDisplayMessage,variant"` + LineDisplayMessage *struct { + Pages []struct { + Lines []string `ic:"lines" json:"lines"` + } `ic:"pages" json:"pages"` + } `ic:"LineDisplayMessage,variant"` +} + +type Icrc21ConsentMessageMetadata struct { + Language string `ic:"language" json:"language"` +} + +type Icrc21ConsentMessageRequest struct { + Method string `ic:"method" json:"method"` + Arg []byte `ic:"arg" json:"arg"` + UserPreferences Icrc21ConsentMessageSpec `ic:"user_preferences" json:"user_preferences"` +} + +type Icrc21ConsentMessageResponse struct { + Ok *Icrc21ConsentInfo `ic:"Ok,variant"` + Err *Icrc21Error `ic:"Err,variant"` +} + +type Icrc21ConsentMessageSpec struct { + Metadata Icrc21ConsentMessageMetadata `ic:"metadata" json:"metadata"` + DeviceSpec *struct { + GenericDisplay *idl.Null `ic:"GenericDisplay,variant"` + LineDisplay *struct { + CharactersPerLine uint16 `ic:"characters_per_line" json:"characters_per_line"` + LinesPerPage uint16 `ic:"lines_per_page" json:"lines_per_page"` + } `ic:"LineDisplay,variant"` + } `ic:"device_spec,omitempty" json:"device_spec,omitempty"` +} + +type Icrc21Error struct { + UnsupportedCanisterCall *Icrc21ErrorInfo `ic:"UnsupportedCanisterCall,variant"` + ConsentMessageUnavailable *Icrc21ErrorInfo `ic:"ConsentMessageUnavailable,variant"` + InsufficientPayment *Icrc21ErrorInfo `ic:"InsufficientPayment,variant"` + GenericError *struct { + ErrorCode idl.Nat `ic:"error_code" json:"error_code"` + Description string `ic:"description" json:"description"` + } `ic:"GenericError,variant"` +} + +type Icrc21ErrorInfo struct { + Description string `ic:"description" json:"description"` +} + type InitArgs struct { MintingAccount TextAccountIdentifier `ic:"minting_account" json:"minting_account"` Icrc1MintingAccount *Account `ic:"icrc1_minting_account,omitempty" json:"icrc1_minting_account,omitempty"` diff --git a/ic/icpledger/types.mo b/ic/icpledger/types.mo deleted file mode 100755 index 11ea210..0000000 --- a/ic/icpledger/types.mo +++ /dev/null @@ -1,54 +0,0 @@ -// Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go. -module T { - public type Tokens = { e8s : Nat64 }; - public type TimeStamp = { timestamp_nanos : Nat64 }; - public type AccountIdentifier = Blob; - public type SubAccount = Blob; - public type BlockIndex = Nat64; - public type Transaction = { memo : T.Memo; icrc1_memo : ?Blob; operation : ?T.Operation; created_at_time : T.TimeStamp }; - public type Memo = Nat64; - public type TransferArgs = { memo : T.Memo; amount : T.Tokens; fee : T.Tokens; from_subaccount : ?T.SubAccount; to : T.AccountIdentifier; created_at_time : ?T.TimeStamp }; - public type TransferError = { #BadFee : { expected_fee : T.Tokens }; #InsufficientFunds : { balance : T.Tokens }; #TxTooOld : { allowed_window_nanos : Nat64 }; #TxCreatedInFuture : (); #TxDuplicate : { duplicate_of : T.BlockIndex } }; - public type TransferResult = { #Ok : T.BlockIndex; #Err : T.TransferError }; - public type AccountBalanceArgs = { account : T.AccountIdentifier }; - public type TransferFeeArg = { }; - public type TransferFee = { transfer_fee : T.Tokens }; - public type GetBlocksArgs = { start : T.BlockIndex; length : Nat64 }; - public type Operation = { #Mint : { to : T.AccountIdentifier; amount : T.Tokens }; #Burn : { from : T.AccountIdentifier; spender : ?T.AccountIdentifier; amount : T.Tokens }; #Transfer : { from : T.AccountIdentifier; to : T.AccountIdentifier; amount : T.Tokens; fee : T.Tokens; spender : ?[Nat8] }; #Approve : { from : T.AccountIdentifier; spender : T.AccountIdentifier; allowance_e8s : Int; allowance : T.Tokens; fee : T.Tokens; expires_at : ?T.TimeStamp; expected_allowance : ?T.Tokens } }; - public type Block = { parent_hash : ?Blob; transaction : T.Transaction; timestamp : T.TimeStamp }; - public type BlockRange = { blocks : [T.Block] }; - public type QueryArchiveError = { #BadFirstBlockIndex : { requested_index : T.BlockIndex; first_valid_index : T.BlockIndex }; #Other : { error_code : Nat64; error_message : Text } }; - public type QueryArchiveResult = { #Ok : T.BlockRange; #Err : T.QueryArchiveError }; - public type QueryArchiveFn = { /* func */ }; - public type QueryBlocksResponse = { chain_length : Nat64; certificate : ?Blob; blocks : [T.Block]; first_block_index : T.BlockIndex; archived_blocks : [T.ArchivedBlocksRange] }; - public type ArchivedBlocksRange = { start : T.BlockIndex; length : Nat64; callback : T.QueryArchiveFn }; - public type ArchivedEncodedBlocksRange = { callback : { /* func */ }; start : Nat64; length : Nat64 }; - public type QueryEncodedBlocksResponse = { certificate : ?Blob; blocks : [Blob]; chain_length : Nat64; first_block_index : Nat64; archived_blocks : [T.ArchivedEncodedBlocksRange] }; - public type Archive = { canister_id : Principal }; - public type Archives = { archives : [T.Archive] }; - public type Duration = { secs : Nat64; nanos : Nat32 }; - public type ArchiveOptions = { trigger_threshold : Nat64; num_blocks_to_archive : Nat64; node_max_memory_size_bytes : ?Nat64; max_message_size_bytes : ?Nat64; controller_id : Principal; more_controller_ids : ?[Principal]; cycles_for_archive_creation : ?Nat64; max_transactions_per_response : ?Nat64 }; - public type TextAccountIdentifier = Text; - public type SendArgs = { memo : T.Memo; amount : T.Tokens; fee : T.Tokens; from_subaccount : ?T.SubAccount; to : T.TextAccountIdentifier; created_at_time : ?T.TimeStamp }; - public type AccountBalanceArgsDfx = { account : T.TextAccountIdentifier }; - public type FeatureFlags = { icrc2 : Bool }; - public type InitArgs = { minting_account : T.TextAccountIdentifier; icrc1_minting_account : ?T.Account; initial_values : [(T.TextAccountIdentifier, T.Tokens)]; max_message_size_bytes : ?Nat64; transaction_window : ?T.Duration; archive_options : ?T.ArchiveOptions; send_whitelist : [Principal]; transfer_fee : ?T.Tokens; token_symbol : ?Text; token_name : ?Text; feature_flags : ?T.FeatureFlags; maximum_number_of_accounts : ?Nat64; accounts_overflow_trim_quantity : ?Nat64 }; - public type Icrc1BlockIndex = Nat; - public type Icrc1Timestamp = Nat64; - public type Icrc1Tokens = Nat; - public type Account = { owner : Principal; subaccount : ?T.SubAccount }; - public type TransferArg = { from_subaccount : ?T.SubAccount; to : T.Account; amount : T.Icrc1Tokens; fee : ?T.Icrc1Tokens; memo : ?Blob; created_at_time : ?T.Icrc1Timestamp }; - public type Icrc1TransferError = { #BadFee : { expected_fee : T.Icrc1Tokens }; #BadBurn : { min_burn_amount : T.Icrc1Tokens }; #InsufficientFunds : { balance : T.Icrc1Tokens }; #TooOld; #CreatedInFuture : { ledger_time : Nat64 }; #TemporarilyUnavailable; #Duplicate : { duplicate_of : T.Icrc1BlockIndex }; #GenericError : { error_code : Nat; message : Text } }; - public type Icrc1TransferResult = { #Ok : T.Icrc1BlockIndex; #Err : T.Icrc1TransferError }; - public type Value = { #Nat : Nat; #Int : Int; #Text : Text; #Blob : Blob }; - public type UpgradeArgs = { maximum_number_of_accounts : ?Nat64; icrc1_minting_account : ?T.Account; feature_flags : ?T.FeatureFlags }; - public type LedgerCanisterPayload = { #Init : T.InitArgs; #Upgrade : ?T.UpgradeArgs }; - public type ApproveArgs = { from_subaccount : ?T.SubAccount; spender : T.Account; amount : T.Icrc1Tokens; expected_allowance : ?T.Icrc1Tokens; expires_at : ?T.Icrc1Timestamp; fee : ?T.Icrc1Tokens; memo : ?Blob; created_at_time : ?T.Icrc1Timestamp }; - public type ApproveError = { #BadFee : { expected_fee : T.Icrc1Tokens }; #InsufficientFunds : { balance : T.Icrc1Tokens }; #AllowanceChanged : { current_allowance : T.Icrc1Tokens }; #Expired : { ledger_time : Nat64 }; #TooOld; #CreatedInFuture : { ledger_time : Nat64 }; #Duplicate : { duplicate_of : T.Icrc1BlockIndex }; #TemporarilyUnavailable; #GenericError : { error_code : Nat; message : Text } }; - public type ApproveResult = { #Ok : T.Icrc1BlockIndex; #Err : T.ApproveError }; - public type AllowanceArgs = { account : T.Account; spender : T.Account }; - public type Allowance = { allowance : T.Icrc1Tokens; expires_at : ?T.Icrc1Timestamp }; - public type TransferFromArgs = { spender_subaccount : ?T.SubAccount; from : T.Account; to : T.Account; amount : T.Icrc1Tokens; fee : ?T.Icrc1Tokens; memo : ?Blob; created_at_time : ?T.Icrc1Timestamp }; - public type TransferFromResult = { #Ok : T.Icrc1BlockIndex; #Err : T.TransferFromError }; - public type TransferFromError = { #BadFee : { expected_fee : T.Icrc1Tokens }; #BadBurn : { min_burn_amount : T.Icrc1Tokens }; #InsufficientFunds : { balance : T.Icrc1Tokens }; #InsufficientAllowance : { allowance : T.Icrc1Tokens }; #TooOld; #CreatedInFuture : { ledger_time : T.Icrc1Timestamp }; #Duplicate : { duplicate_of : T.Icrc1BlockIndex }; #TemporarilyUnavailable; #GenericError : { error_code : Nat; message : Text } }; -}; diff --git a/ic/icrc1/actor.mo b/ic/icrc1/actor.mo deleted file mode 100755 index 2cff35d..0000000 --- a/ic/icrc1/actor.mo +++ /dev/null @@ -1,37 +0,0 @@ -// Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go. -import T "types"; - -import { principalOfBlob } = "mo:⛔"; - -actor class _icrc1() : async actor {} { - public query func icrc1_metadata() : async ([(Text, T.Value)]) { - ([ ( "8461085577816129895", #Int(5878529396228072694) ), ( "17086874607426100806", #Text("10709273831789307773") ), ( "16878655614376436083", #Int(6759167820548538355) ), ( "18292591075080601467", #Nat(17811010120847317546) ), ( "18177279855461275382", #Int(5653783580888133841) ), ( "7999443096767709278", #Int(18374081214496534973) ) ]) - }; - public query func icrc1_name() : async (Text) { - ("15860260956177527794") - }; - public query func icrc1_symbol() : async (Text) { - ("15860260956177527794") - }; - public query func icrc1_decimals() : async (Nat8) { - (139) - }; - public query func icrc1_fee() : async (Nat) { - (15860260956177527794) - }; - public query func icrc1_total_supply() : async (Nat) { - (15860260956177527794) - }; - public query func icrc1_minting_account() : async (?T.Account) { - (?{ owner = principalOfBlob("xF273F5F14EF71A6741E91781D06B5D360F3EE11F56F6A4DD0F57BB94465E46E1"); subaccount = ?"xBE56FB9FA308657D273052CFFB9E73610FB5DA073D79779DC770CD9DF3FF0B39" }) - }; - public query func icrc1_balance_of(_arg0 : T.Account) : async (Nat) { - (15860260956177527794) - }; - public shared func icrc1_transfer(_arg0 : T.TransferArgs) : async ({ #Ok : Nat; #Err : T.TransferError }) { - (#Ok(8461085577816129895)) - }; - public query func icrc1_supported_standards() : async ([{ name : Text; url : Text }]) { - ([ { name = "8461085577816129895"; url = "17606294845520819805" }, { name = "5878529396228072694"; url = "17086874607426100806" }, { name = "12350287051990193854"; url = "10709273831789307773" }, { name = "16878655614376436083"; url = "332647831764301689" }, { name = "6759167820548538355"; url = "18292591075080601467" }, { name = "7929299208935178212"; url = "17811010120847317546" } ]) - }; -} diff --git a/ic/icrc1/types.mo b/ic/icrc1/types.mo deleted file mode 100755 index ec9f702..0000000 --- a/ic/icrc1/types.mo +++ /dev/null @@ -1,10 +0,0 @@ -// Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go. -module T { - public type Timestamp = Nat64; - public type Duration = Nat64; - public type Subaccount = Blob; - public type Account = { owner : Principal; subaccount : ?T.Subaccount }; - public type TransferArgs = { from_subaccount : ?T.Subaccount; to : T.Account; amount : Nat; fee : ?Nat; memo : ?Blob; created_at_time : ?T.Timestamp }; - public type TransferError = { #BadFee : { expected_fee : Nat }; #BadBurn : { min_burn_amount : Nat }; #InsufficientFunds : { balance : Nat }; #TooOld; #CreatedInFuture : { ledger_time : T.Timestamp }; #Duplicate : { duplicate_of : Nat }; #TemporarilyUnavailable; #GenericError : { error_code : Nat; message : Text } }; - public type Value = { #Nat : Nat; #Int : Int; #Text : Text; #Blob : Blob }; -}; diff --git a/ic/registry/actor.mo b/ic/registry/actor.mo deleted file mode 100755 index 0e464fa..0000000 --- a/ic/registry/actor.mo +++ /dev/null @@ -1,142 +0,0 @@ -// Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go. -import T "types"; - -import { principalOfBlob } = "mo:⛔"; - -actor class _registry() : async actor {} { - public shared func add_api_boundary_nodes(_arg0 : T.AddApiBoundaryNodesPayload) : async () { - () - }; - public shared func add_firewall_rules(_arg0 : T.AddFirewallRulesPayload) : async () { - () - }; - public shared func add_node(_arg0 : T.AddNodePayload) : async (T.Result) { - (#Ok(principalOfBlob("x65889F698C07D7C894DA1BD5CA17F31F64C27784AB34E28F07F327E15569DFC5"))) - }; - public shared func add_node_operator(_arg0 : T.AddNodeOperatorPayload) : async () { - () - }; - public shared func add_nodes_to_subnet(_arg0 : T.AddNodesToSubnetPayload) : async () { - () - }; - public shared func add_or_remove_data_centers(_arg0 : T.AddOrRemoveDataCentersProposalPayload) : async () { - () - }; - public shared func bless_replica_version(_arg0 : T.BlessReplicaVersionPayload) : async () { - () - }; - public shared func change_subnet_membership(_arg0 : T.ChangeSubnetMembershipPayload) : async () { - () - }; - public shared func clear_provisional_whitelist() : async () { - () - }; - public shared func complete_canister_migration(_arg0 : T.CompleteCanisterMigrationPayload) : async (T.Result1) { - (#Ok) - }; - public shared func create_subnet(_arg0 : T.CreateSubnetPayload) : async () { - () - }; - public shared func delete_subnet(_arg0 : T.DeleteSubnetPayload) : async () { - () - }; - public shared func deploy_guestos_to_all_subnet_nodes(_arg0 : T.DeployGuestosToAllSubnetNodesPayload) : async () { - () - }; - public shared func deploy_guestos_to_all_unassigned_nodes(_arg0 : T.DeployGuestosToAllUnassignedNodesPayload) : async () { - () - }; - public query func get_build_metadata() : async (Text) { - ("16954823083438725750") - }; - public query func get_node_operators_and_dcs_of_node_provider(_arg0 : Principal) : async (T.Result2) { - (#Ok([ ( { id = "14850561312921654472"; gps = ?{ latitude = "UNKNOWN" # "float32"; longitude = "UNKNOWN" # "float32" }; region = "8551073967390334963"; owner = "16852795205354512948" }, { ipv6 = ?"11125315087921801557"; node_operator_principal_id = "x755D216CD371311FA94A0A14937936080790ECF3CA9E2E2088B3BEFB840C4C1A"; node_allowance = 2423141441329273866; rewardable_nodes = [ ( "6079560768047329034", 3562109596 ) ]; node_provider_principal_id = "x8EF2EC9B2498F34A2B149A8CF696F708866F3142755366C43EDAECCECEA5BF83"; dc_id = "1505710812436736874" } ) ])) - }; - public query func get_node_providers_monthly_xdr_rewards() : async (T.Result3) { - (#Ok({ rewards = [ ( "14850561312921654472", 8551073967390334963 ) ] })) - }; - public query func get_subnet_for_canister(_arg0 : T.GetSubnetForCanisterRequest) : async (T.Result4) { - (#Ok({ subnet_id = ?principalOfBlob("x65889F698C07D7C894DA1BD5CA17F31F64C27784AB34E28F07F327E15569DFC5") })) - }; - public shared func prepare_canister_migration(_arg0 : T.PrepareCanisterMigrationPayload) : async (T.Result1) { - (#Ok) - }; - public shared func recover_subnet(_arg0 : T.RecoverSubnetPayload) : async () { - () - }; - public shared func remove_api_boundary_nodes(_arg0 : T.RemoveApiBoundaryNodesPayload) : async () { - () - }; - public shared func remove_firewall_rules(_arg0 : T.RemoveFirewallRulesPayload) : async () { - () - }; - public shared func remove_node_directly(_arg0 : T.RemoveNodeDirectlyPayload) : async () { - () - }; - public shared func remove_node_operators(_arg0 : T.RemoveNodeOperatorsPayload) : async () { - () - }; - public shared func remove_nodes(_arg0 : T.RemoveNodesPayload) : async () { - () - }; - public shared func remove_nodes_from_subnet(_arg0 : T.RemoveNodesPayload) : async () { - () - }; - public shared func reroute_canister_ranges(_arg0 : T.RerouteCanisterRangesPayload) : async (T.Result1) { - (#Ok) - }; - public shared func retire_replica_version(_arg0 : T.RetireReplicaVersionPayload) : async () { - () - }; - public shared func revise_elected_replica_versions(_arg0 : T.ReviseElectedGuestosVersionsPayload) : async () { - () - }; - public shared func set_firewall_config(_arg0 : T.SetFirewallConfigPayload) : async () { - () - }; - public shared func update_api_boundary_nodes_version(_arg0 : T.AddApiBoundaryNodesPayload) : async () { - () - }; - public shared func update_elected_hostos_versions(_arg0 : T.UpdateElectedHostosVersionsPayload) : async () { - () - }; - public shared func update_elected_replica_versions(_arg0 : T.ReviseElectedGuestosVersionsPayload) : async () { - () - }; - public shared func update_firewall_rules(_arg0 : T.AddFirewallRulesPayload) : async () { - () - }; - public shared func update_node_directly(_arg0 : T.UpdateNodeDirectlyPayload) : async (T.Result1) { - (#Ok) - }; - public shared func update_node_domain_directly(_arg0 : T.UpdateNodeDomainDirectlyPayload) : async (T.Result1) { - (#Ok) - }; - public shared func update_node_ipv4_config_directly(_arg0 : T.UpdateNodeIPv4ConfigDirectlyPayload) : async (T.Result1) { - (#Ok) - }; - public shared func update_node_operator_config(_arg0 : T.UpdateNodeOperatorConfigPayload) : async () { - () - }; - public shared func update_node_operator_config_directly(_arg0 : T.UpdateNodeOperatorConfigDirectlyPayload) : async () { - () - }; - public shared func update_node_rewards_table(_arg0 : T.UpdateNodeRewardsTableProposalPayload) : async () { - () - }; - public shared func update_nodes_hostos_version(_arg0 : T.UpdateNodesHostosVersionPayload) : async () { - () - }; - public shared func update_ssh_readonly_access_for_all_unassigned_nodes(_arg0 : T.UpdateSshReadOnlyAccessForAllUnassignedNodesPayload) : async () { - () - }; - public shared func update_subnet(_arg0 : T.UpdateSubnetPayload) : async () { - () - }; - public shared func update_subnet_replica_version(_arg0 : T.DeployGuestosToAllSubnetNodesPayload) : async () { - () - }; - public shared func update_unassigned_nodes_config(_arg0 : T.UpdateUnassignedNodesConfigPayload) : async () { - () - }; -} diff --git a/ic/registry/agent.go b/ic/registry/agent.go index d677049..8319f60 100755 --- a/ic/registry/agent.go +++ b/ic/registry/agent.go @@ -102,8 +102,8 @@ func (a Agent) AddFirewallRules(arg0 AddFirewallRulesPayload) error { } // AddNode calls the "add_node" method on the "registry" canister. -func (a Agent) AddNode(arg0 AddNodePayload) (*Result, error) { - var r0 Result +func (a Agent) AddNode(arg0 AddNodePayload) (*principal.Principal, error) { + var r0 principal.Principal if err := a.Agent.Call( a.CanisterId, "add_node", @@ -194,17 +194,16 @@ func (a Agent) ClearProvisionalWhitelist() error { } // CompleteCanisterMigration calls the "complete_canister_migration" method on the "registry" canister. -func (a Agent) CompleteCanisterMigration(arg0 CompleteCanisterMigrationPayload) (*Result1, error) { - var r0 Result1 +func (a Agent) CompleteCanisterMigration(arg0 CompleteCanisterMigrationPayload) error { if err := a.Agent.Call( a.CanisterId, "complete_canister_migration", []any{arg0}, - []any{&r0}, + []any{}, ); err != nil { - return nil, err + return err } - return &r0, nil + return nil } // CreateSubnet calls the "create_subnet" method on the "registry" canister. @@ -274,8 +273,8 @@ func (a Agent) GetBuildMetadata() (*string, error) { } // GetNodeOperatorsAndDcsOfNodeProvider calls the "get_node_operators_and_dcs_of_node_provider" method on the "registry" canister. -func (a Agent) GetNodeOperatorsAndDcsOfNodeProvider(arg0 principal.Principal) (*Result2, error) { - var r0 Result2 +func (a Agent) GetNodeOperatorsAndDcsOfNodeProvider(arg0 principal.Principal) (*GetNodeOperatorsAndDcsOfNodeProviderResponse, error) { + var r0 GetNodeOperatorsAndDcsOfNodeProviderResponse if err := a.Agent.Query( a.CanisterId, "get_node_operators_and_dcs_of_node_provider", @@ -288,8 +287,8 @@ func (a Agent) GetNodeOperatorsAndDcsOfNodeProvider(arg0 principal.Principal) (* } // GetNodeProvidersMonthlyXdrRewards calls the "get_node_providers_monthly_xdr_rewards" method on the "registry" canister. -func (a Agent) GetNodeProvidersMonthlyXdrRewards() (*Result3, error) { - var r0 Result3 +func (a Agent) GetNodeProvidersMonthlyXdrRewards() (*GetNodeProvidersMonthlyXdrRewardsResponse, error) { + var r0 GetNodeProvidersMonthlyXdrRewardsResponse if err := a.Agent.Query( a.CanisterId, "get_node_providers_monthly_xdr_rewards", @@ -302,8 +301,8 @@ func (a Agent) GetNodeProvidersMonthlyXdrRewards() (*Result3, error) { } // GetSubnetForCanister calls the "get_subnet_for_canister" method on the "registry" canister. -func (a Agent) GetSubnetForCanister(arg0 GetSubnetForCanisterRequest) (*Result4, error) { - var r0 Result4 +func (a Agent) GetSubnetForCanister(arg0 GetSubnetForCanisterRequest) (*GetSubnetForCanisterResponse, error) { + var r0 GetSubnetForCanisterResponse if err := a.Agent.Query( a.CanisterId, "get_subnet_for_canister", @@ -316,17 +315,16 @@ func (a Agent) GetSubnetForCanister(arg0 GetSubnetForCanisterRequest) (*Result4, } // PrepareCanisterMigration calls the "prepare_canister_migration" method on the "registry" canister. -func (a Agent) PrepareCanisterMigration(arg0 PrepareCanisterMigrationPayload) (*Result1, error) { - var r0 Result1 +func (a Agent) PrepareCanisterMigration(arg0 PrepareCanisterMigrationPayload) error { if err := a.Agent.Call( a.CanisterId, "prepare_canister_migration", []any{arg0}, - []any{&r0}, + []any{}, ); err != nil { - return nil, err + return err } - return &r0, nil + return nil } // RecoverSubnet calls the "recover_subnet" method on the "registry" canister. @@ -421,17 +419,16 @@ func (a Agent) RemoveNodesFromSubnet(arg0 RemoveNodesPayload) error { } // RerouteCanisterRanges calls the "reroute_canister_ranges" method on the "registry" canister. -func (a Agent) RerouteCanisterRanges(arg0 RerouteCanisterRangesPayload) (*Result1, error) { - var r0 Result1 +func (a Agent) RerouteCanisterRanges(arg0 RerouteCanisterRangesPayload) error { if err := a.Agent.Call( a.CanisterId, "reroute_canister_ranges", []any{arg0}, - []any{&r0}, + []any{}, ); err != nil { - return nil, err + return err } - return &r0, nil + return nil } // RetireReplicaVersion calls the "retire_replica_version" method on the "registry" canister. @@ -474,7 +471,7 @@ func (a Agent) SetFirewallConfig(arg0 SetFirewallConfigPayload) error { } // UpdateApiBoundaryNodesVersion calls the "update_api_boundary_nodes_version" method on the "registry" canister. -func (a Agent) UpdateApiBoundaryNodesVersion(arg0 AddApiBoundaryNodesPayload) error { +func (a Agent) UpdateApiBoundaryNodesVersion(arg0 UpdateApiBoundaryNodesVersionPayload) error { if err := a.Agent.Call( a.CanisterId, "update_api_boundary_nodes_version", @@ -513,7 +510,7 @@ func (a Agent) UpdateElectedReplicaVersions(arg0 ReviseElectedGuestosVersionsPay } // UpdateFirewallRules calls the "update_firewall_rules" method on the "registry" canister. -func (a Agent) UpdateFirewallRules(arg0 AddFirewallRulesPayload) error { +func (a Agent) UpdateFirewallRules(arg0 UpdateFirewallRulesPayload) error { if err := a.Agent.Call( a.CanisterId, "update_firewall_rules", @@ -526,22 +523,21 @@ func (a Agent) UpdateFirewallRules(arg0 AddFirewallRulesPayload) error { } // UpdateNodeDirectly calls the "update_node_directly" method on the "registry" canister. -func (a Agent) UpdateNodeDirectly(arg0 UpdateNodeDirectlyPayload) (*Result1, error) { - var r0 Result1 +func (a Agent) UpdateNodeDirectly(arg0 UpdateNodeDirectlyPayload) error { if err := a.Agent.Call( a.CanisterId, "update_node_directly", []any{arg0}, - []any{&r0}, + []any{}, ); err != nil { - return nil, err + return err } - return &r0, nil + return nil } // UpdateNodeDomainDirectly calls the "update_node_domain_directly" method on the "registry" canister. -func (a Agent) UpdateNodeDomainDirectly(arg0 UpdateNodeDomainDirectlyPayload) (*Result1, error) { - var r0 Result1 +func (a Agent) UpdateNodeDomainDirectly(arg0 UpdateNodeDomainDirectlyPayload) (*UpdateNodeDomainDirectlyResponse, error) { + var r0 UpdateNodeDomainDirectlyResponse if err := a.Agent.Call( a.CanisterId, "update_node_domain_directly", @@ -554,8 +550,8 @@ func (a Agent) UpdateNodeDomainDirectly(arg0 UpdateNodeDomainDirectlyPayload) (* } // UpdateNodeIpv4ConfigDirectly calls the "update_node_ipv4_config_directly" method on the "registry" canister. -func (a Agent) UpdateNodeIpv4ConfigDirectly(arg0 UpdateNodeIPv4ConfigDirectlyPayload) (*Result1, error) { - var r0 Result1 +func (a Agent) UpdateNodeIpv4ConfigDirectly(arg0 UpdateNodeIPv4ConfigDirectlyPayload) (*UpdateNodeIpv4ConfigDirectlyResponse, error) { + var r0 UpdateNodeIpv4ConfigDirectlyResponse if err := a.Agent.Call( a.CanisterId, "update_node_ipv4_config_directly", @@ -800,12 +796,28 @@ type FirewallRulesScope struct { Global *idl.Null `ic:"Global,variant"` } +type GetNodeOperatorsAndDcsOfNodeProviderResponse struct { + Ok *[]struct { + Field0 DataCenterRecord `ic:"0" json:"0"` + Field1 NodeOperatorRecord `ic:"1" json:"1"` + } `ic:"Ok,variant"` + Err *string `ic:"Err,variant"` +} + +type GetNodeProvidersMonthlyXdrRewardsResponse struct { + Ok *NodeProvidersMonthlyXdrRewards `ic:"Ok,variant"` + Err *string `ic:"Err,variant"` +} + type GetSubnetForCanisterRequest struct { Principal *principal.Principal `ic:""principal",omitempty" json:""principal",omitempty"` } type GetSubnetForCanisterResponse struct { - SubnetId *principal.Principal `ic:"subnet_id,omitempty" json:"subnet_id,omitempty"` + Ok *struct { + SubnetId *principal.Principal `ic:"subnet_id,omitempty" json:"subnet_id,omitempty"` + } `ic:"Ok,variant"` + Err *string `ic:"Err,variant"` } type Gps struct { @@ -888,6 +900,10 @@ type RemoveNodeOperatorsPayload struct { NodeOperatorsToRemove [][]byte `ic:"node_operators_to_remove" json:"node_operators_to_remove"` } +type RemoveNodesFromSubnetPayload struct { + NodeIds []principal.Principal `ic:"node_ids" json:"node_ids"` +} + type RemoveNodesPayload struct { NodeIds []principal.Principal `ic:"node_ids" json:"node_ids"` } @@ -898,34 +914,6 @@ type RerouteCanisterRangesPayload struct { DestinationSubnet principal.Principal `ic:"destination_subnet" json:"destination_subnet"` } -type Result struct { - Ok *principal.Principal `ic:"Ok,variant"` - Err *string `ic:"Err,variant"` -} - -type Result1 struct { - Ok *idl.Null `ic:"Ok,variant"` - Err *string `ic:"Err,variant"` -} - -type Result2 struct { - Ok *[]struct { - Field0 DataCenterRecord `ic:"0" json:"0"` - Field1 NodeOperatorRecord `ic:"1" json:"1"` - } `ic:"Ok,variant"` - Err *string `ic:"Err,variant"` -} - -type Result3 struct { - Ok *NodeProvidersMonthlyXdrRewards `ic:"Ok,variant"` - Err *string `ic:"Err,variant"` -} - -type Result4 struct { - Ok *GetSubnetForCanisterResponse `ic:"Ok,variant"` - Err *string `ic:"Err,variant"` -} - type RetireReplicaVersionPayload struct { ReplicaVersionIds []string `ic:"replica_version_ids" json:"replica_version_ids"` } @@ -956,6 +944,11 @@ type SubnetType struct { System *idl.Null `ic:"system,variant"` } +type UpdateApiBoundaryNodesVersionPayload struct { + Version string `ic:"version" json:"version"` + NodeIds []principal.Principal `ic:"node_ids" json:"node_ids"` +} + type UpdateElectedHostosVersionsPayload struct { ReleasePackageUrls []string `ic:"release_package_urls" json:"release_package_urls"` HostosVersionToElect *string `ic:"hostos_version_to_elect,omitempty" json:"hostos_version_to_elect,omitempty"` @@ -963,6 +956,13 @@ type UpdateElectedHostosVersionsPayload struct { ReleasePackageSha256Hex *string `ic:"release_package_sha256_hex,omitempty" json:"release_package_sha256_hex,omitempty"` } +type UpdateFirewallRulesPayload struct { + ExpectedHash string `ic:"expected_hash" json:"expected_hash"` + Scope FirewallRulesScope `ic:"scope" json:"scope"` + Positions []int32 `ic:"positions" json:"positions"` + Rules []FirewallRule `ic:"rules" json:"rules"` +} + type UpdateNodeDirectlyPayload struct { IdkgDealingEncryptionPk *[]byte `ic:"idkg_dealing_encryption_pk,omitempty" json:"idkg_dealing_encryption_pk,omitempty"` } @@ -972,11 +972,21 @@ type UpdateNodeDomainDirectlyPayload struct { Domain *string `ic:"domain,omitempty" json:"domain,omitempty"` } +type UpdateNodeDomainDirectlyResponse struct { + Ok *idl.Null `ic:"Ok,variant"` + Err *string `ic:"Err,variant"` +} + type UpdateNodeIPv4ConfigDirectlyPayload struct { Ipv4Config *IPv4Config `ic:"ipv4_config,omitempty" json:"ipv4_config,omitempty"` NodeId principal.Principal `ic:"node_id" json:"node_id"` } +type UpdateNodeIpv4ConfigDirectlyResponse struct { + Ok *idl.Null `ic:"Ok,variant"` + Err *string `ic:"Err,variant"` +} + type UpdateNodeOperatorConfigDirectlyPayload struct { NodeOperatorId *principal.Principal `ic:"node_operator_id,omitempty" json:"node_operator_id,omitempty"` NodeProviderId *principal.Principal `ic:"node_provider_id,omitempty" json:"node_provider_id,omitempty"` diff --git a/ic/registry/types.mo b/ic/registry/types.mo deleted file mode 100755 index 5d3d204..0000000 --- a/ic/registry/types.mo +++ /dev/null @@ -1,62 +0,0 @@ -// Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go. -module T { - public type AddApiBoundaryNodesPayload = { version : Text; node_ids : [Principal] }; - public type AddFirewallRulesPayload = { expected_hash : Text; scope : T.FirewallRulesScope; positions : [Int32]; rules : [T.FirewallRule] }; - public type AddNodeOperatorPayload = { ipv6 : ?Text; node_operator_principal_id : ?Principal; node_allowance : Nat64; rewardable_nodes : [(Text, Nat32)]; node_provider_principal_id : ?Principal; dc_id : Text }; - public type AddNodePayload = { prometheus_metrics_endpoint : Text; http_endpoint : Text; idkg_dealing_encryption_pk : ?Blob; domain : ?Text; public_ipv4_config : ?T.IPv4Config; xnet_endpoint : Text; chip_id : ?Blob; committee_signing_pk : Blob; node_signing_pk : Blob; transport_tls_cert : Blob; ni_dkg_dealing_encryption_pk : Blob; p2p_flow_endpoints : [Text] }; - public type AddNodesToSubnetPayload = { subnet_id : Principal; node_ids : [Principal] }; - public type AddOrRemoveDataCentersProposalPayload = { data_centers_to_add : [T.DataCenterRecord]; data_centers_to_remove : [Text] }; - public type BlessReplicaVersionPayload = { release_package_urls : ?[Text]; node_manager_sha256_hex : Text; release_package_url : Text; sha256_hex : Text; guest_launch_measurement_sha256_hex : ?Text; replica_version_id : Text; release_package_sha256_hex : Text; node_manager_binary_url : Text; binary_url : Text }; - public type CanisterIdRange = { end : Principal; start : Principal }; - public type ChangeSubnetMembershipPayload = { node_ids_add : [Principal]; subnet_id : Principal; node_ids_remove : [Principal] }; - public type CompleteCanisterMigrationPayload = { canister_id_ranges : [T.CanisterIdRange]; migration_trace : [Principal] }; - public type CreateSubnetPayload = { unit_delay_millis : Nat64; max_instructions_per_round : Nat64; features : T.SubnetFeatures; max_instructions_per_message : Nat64; gossip_registry_poll_period_ms : Nat32; max_ingress_bytes_per_message : Nat64; dkg_dealings_per_block : Nat64; max_block_payload_size : Nat64; max_instructions_per_install_code : Nat64; start_as_nns : Bool; is_halted : Bool; gossip_pfn_evaluation_period_ms : Nat32; max_ingress_messages_per_block : Nat64; max_number_of_canisters : Nat64; ecdsa_config : ?T.EcdsaInitialConfig; gossip_max_artifact_streams_per_peer : Nat32; replica_version_id : Text; gossip_max_duplicity : Nat32; gossip_max_chunk_wait_ms : Nat32; dkg_interval_length : Nat64; subnet_id_override : ?Principal; ssh_backup_access : [Text]; ingress_bytes_per_block_soft_cap : Nat64; initial_notary_delay_millis : Nat64; gossip_max_chunk_size : Nat32; subnet_type : T.SubnetType; ssh_readonly_access : [Text]; gossip_retransmission_request_ms : Nat32; gossip_receive_check_cache_size : Nat32; node_ids : [Principal] }; - public type DataCenterRecord = { id : Text; gps : ?T.Gps; region : Text; owner : Text }; - public type DeleteSubnetPayload = { subnet_id : ?Principal }; - public type DeployGuestosToAllSubnetNodesPayload = { subnet_id : Principal; replica_version_id : Text }; - public type DeployGuestosToAllUnassignedNodesPayload = { elected_replica_version : Text }; - public type EcdsaConfig = { quadruples_to_create_in_advance : Nat32; max_queue_size : ?Nat32; key_ids : [T.EcdsaKeyId]; signature_request_timeout_ns : ?Nat64; idkg_key_rotation_period_ms : ?Nat64 }; - public type EcdsaCurve = { #secp256k1 }; - public type EcdsaInitialConfig = { quadruples_to_create_in_advance : Nat32; max_queue_size : ?Nat32; keys : [T.EcdsaKeyRequest]; signature_request_timeout_ns : ?Nat64; idkg_key_rotation_period_ms : ?Nat64 }; - public type EcdsaKeyId = { name : Text; curve : T.EcdsaCurve }; - public type EcdsaKeyRequest = { key_id : T.EcdsaKeyId; subnet_id : ?Principal }; - public type FirewallRule = { ipv4_prefixes : [Text]; direction : ?Int32; action : Int32; user : ?Text; comment : Text; ipv6_prefixes : [Text]; ports : [Nat32] }; - public type FirewallRulesScope = { #Node : Principal; #ReplicaNodes; #ApiBoundaryNodes; #Subnet : Principal; #Global }; - public type GetSubnetForCanisterRequest = { "principal" : ?Principal }; - public type GetSubnetForCanisterResponse = { subnet_id : ?Principal }; - public type Gps = { latitude : float32; longitude : float32 }; - public type IPv4Config = { prefix_length : Nat32; gateway_ip_addr : Text; ip_addr : Text }; - public type NodeOperatorRecord = { ipv6 : ?Text; node_operator_principal_id : Blob; node_allowance : Nat64; rewardable_nodes : [(Text, Nat32)]; node_provider_principal_id : Blob; dc_id : Text }; - public type NodeProvidersMonthlyXdrRewards = { rewards : [(Text, Nat64)] }; - public type NodeRewardRate = { xdr_permyriad_per_node_per_month : Nat64; reward_coefficient_percent : ?Int32 }; - public type NodeRewardRates = { rates : [(Text, T.NodeRewardRate)] }; - public type PrepareCanisterMigrationPayload = { canister_id_ranges : [T.CanisterIdRange]; source_subnet : Principal; destination_subnet : Principal }; - public type RecoverSubnetPayload = { height : Nat64; replacement_nodes : ?[Principal]; subnet_id : Principal; registry_store_uri : ?(Text, Text, Nat64); ecdsa_config : ?T.EcdsaInitialConfig; state_hash : Blob; time_ns : Nat64 }; - public type RemoveApiBoundaryNodesPayload = { node_ids : [Principal] }; - public type RemoveFirewallRulesPayload = { expected_hash : Text; scope : T.FirewallRulesScope; positions : [Int32] }; - public type RemoveNodeDirectlyPayload = { node_id : Principal }; - public type RemoveNodeOperatorsPayload = { node_operators_to_remove : [Blob] }; - public type RemoveNodesPayload = { node_ids : [Principal] }; - public type RerouteCanisterRangesPayload = { source_subnet : Principal; reassigned_canister_ranges : [T.CanisterIdRange]; destination_subnet : Principal }; - public type Result = { #Ok : Principal; #Err : Text }; - public type Result1 = { #Ok; #Err : Text }; - public type Result2 = { #Ok : [(T.DataCenterRecord, T.NodeOperatorRecord)]; #Err : Text }; - public type Result3 = { #Ok : T.NodeProvidersMonthlyXdrRewards; #Err : Text }; - public type Result4 = { #Ok : T.GetSubnetForCanisterResponse; #Err : Text }; - public type RetireReplicaVersionPayload = { replica_version_ids : [Text] }; - public type ReviseElectedGuestosVersionsPayload = { release_package_urls : [Text]; replica_versions_to_unelect : [Text]; replica_version_to_elect : ?Text; guest_launch_measurement_sha256_hex : ?Text; release_package_sha256_hex : ?Text }; - public type SetFirewallConfigPayload = { ipv4_prefixes : [Text]; firewall_config : Text; ipv6_prefixes : [Text] }; - public type SubnetFeatures = { canister_sandboxing : Bool; http_requests : Bool; sev_enabled : ?Bool }; - public type SubnetType = { #application; #verified_application; #system }; - public type UpdateElectedHostosVersionsPayload = { release_package_urls : [Text]; hostos_version_to_elect : ?Text; hostos_versions_to_unelect : [Text]; release_package_sha256_hex : ?Text }; - public type UpdateNodeDirectlyPayload = { idkg_dealing_encryption_pk : ?Blob }; - public type UpdateNodeDomainDirectlyPayload = { node_id : Principal; domain : ?Text }; - public type UpdateNodeIPv4ConfigDirectlyPayload = { ipv4_config : ?T.IPv4Config; node_id : Principal }; - public type UpdateNodeOperatorConfigDirectlyPayload = { node_operator_id : ?Principal; node_provider_id : ?Principal }; - public type UpdateNodeOperatorConfigPayload = { node_operator_id : ?Principal; set_ipv6_to_none : ?Bool; ipv6 : ?Text; node_provider_id : ?Principal; node_allowance : ?Nat64; rewardable_nodes : [(Text, Nat32)]; dc_id : ?Text }; - public type UpdateNodeRewardsTableProposalPayload = { new_entries : [(Text, T.NodeRewardRates)] }; - public type UpdateNodesHostosVersionPayload = { hostos_version_id : ?Text; node_ids : [Principal] }; - public type UpdateSshReadOnlyAccessForAllUnassignedNodesPayload = { ssh_readonly_keys : [Text] }; - public type UpdateSubnetPayload = { unit_delay_millis : ?Nat64; max_duplicity : ?Nat32; max_instructions_per_round : ?Nat64; features : ?T.SubnetFeatures; set_gossip_config_to_default : Bool; max_instructions_per_message : ?Nat64; halt_at_cup_height : ?Bool; pfn_evaluation_period_ms : ?Nat32; subnet_id : Principal; max_ingress_bytes_per_message : ?Nat64; dkg_dealings_per_block : ?Nat64; ecdsa_key_signing_disable : ?[T.EcdsaKeyId]; max_block_payload_size : ?Nat64; max_instructions_per_install_code : ?Nat64; start_as_nns : ?Bool; is_halted : ?Bool; max_ingress_messages_per_block : ?Nat64; max_number_of_canisters : ?Nat64; ecdsa_config : ?T.EcdsaConfig; retransmission_request_ms : ?Nat32; dkg_interval_length : ?Nat64; registry_poll_period_ms : ?Nat32; max_chunk_wait_ms : ?Nat32; receive_check_cache_size : ?Nat32; ecdsa_key_signing_enable : ?[T.EcdsaKeyId]; ssh_backup_access : ?[Text]; max_chunk_size : ?Nat32; initial_notary_delay_millis : ?Nat64; max_artifact_streams_per_peer : ?Nat32; subnet_type : ?T.SubnetType; ssh_readonly_access : ?[Text] }; - public type UpdateUnassignedNodesConfigPayload = { replica_version : ?Text; ssh_readonly_access : ?[Text] }; -}; diff --git a/ic/sns/agent.go b/ic/sns/agent.go index 2dbc405..999ae49 100755 --- a/ic/sns/agent.go +++ b/ic/sns/agent.go @@ -126,6 +126,20 @@ func (a Agent) GetNextSnsVersion(arg0 GetNextSnsVersionRequest) (*GetNextSnsVers return &r0, nil } +// GetProposalIdThatAddedWasm calls the "get_proposal_id_that_added_wasm" method on the "sns" canister. +func (a Agent) GetProposalIdThatAddedWasm(arg0 GetProposalIdThatAddedWasmRequest) (*GetProposalIdThatAddedWasmResponse, error) { + var r0 GetProposalIdThatAddedWasmResponse + if err := a.Agent.Query( + a.CanisterId, + "get_proposal_id_that_added_wasm", + []any{arg0}, + []any{&r0}, + ); err != nil { + return nil, err + } + return &r0, nil +} + // GetSnsSubnetIds calls the "get_sns_subnet_ids" method on the "sns" canister. func (a Agent) GetSnsSubnetIds(arg0 struct { }) (*GetSnsSubnetIdsResponse, error) { @@ -329,6 +343,14 @@ type GetNextSnsVersionResponse struct { NextVersion *SnsVersion `ic:"next_version,omitempty" json:"next_version,omitempty"` } +type GetProposalIdThatAddedWasmRequest struct { + Hash []byte `ic:"hash" json:"hash"` +} + +type GetProposalIdThatAddedWasmResponse struct { + ProposalId *uint64 `ic:"proposal_id,omitempty" json:"proposal_id,omitempty"` +} + type GetSnsSubnetIdsResponse struct { SnsSubnetIds []principal.Principal `ic:"sns_subnet_ids" json:"sns_subnet_ids"` } diff --git a/ic/sns/ledger/agent.go b/ic/sns/ledger/agent.go index 9f0704a..c543c35 100755 --- a/ic/sns/ledger/agent.go +++ b/ic/sns/ledger/agent.go @@ -485,7 +485,7 @@ type GetBlocksResult struct { } `ic:"blocks" json:"blocks"` ArchivedBlocks []struct { Args []GetBlocksArgs `ic:"args" json:"args"` - Callback struct { /* NOT SUPPORTED */ + Callback struct { /* NOT SUPPORTED */ } `ic:"callback" json:"callback"` } `ic:"archived_blocks" json:"archived_blocks"` } diff --git a/ic/sns/testdata/did/sns.did b/ic/sns/testdata/did/sns.did index 611bcfd..88dfd79 100644 --- a/ic/sns/testdata/did/sns.did +++ b/ic/sns/testdata/did/sns.did @@ -57,6 +57,8 @@ type GetNextSnsVersionRequest = record { current_version : opt SnsVersion; }; type GetNextSnsVersionResponse = record { next_version : opt SnsVersion }; +type GetProposalIdThatAddedWasmRequest = record { hash : blob }; +type GetProposalIdThatAddedWasmResponse = record { proposal_id : opt nat64 }; type GetSnsSubnetIdsResponse = record { sns_subnet_ids : vec principal }; type GetWasmMetadataRequest = record { hash : opt blob }; type GetWasmMetadataResponse = record { result : opt Result_1 }; @@ -228,6 +230,9 @@ service : (SnsWasmCanisterInitPayload) -> { get_next_sns_version : (GetNextSnsVersionRequest) -> ( GetNextSnsVersionResponse, ) query; + get_proposal_id_that_added_wasm : (GetProposalIdThatAddedWasmRequest) -> ( + GetProposalIdThatAddedWasmResponse, + ) query; get_sns_subnet_ids : (record {}) -> (GetSnsSubnetIdsResponse) query; get_wasm : (GetWasmRequest) -> (GetWasmResponse) query; get_wasm_metadata : (GetWasmMetadataRequest) -> ( diff --git a/ic/testdata/actor.mo b/ic/testdata/actor.mo new file mode 100644 index 0000000..6d677bf --- /dev/null +++ b/ic/testdata/actor.mo @@ -0,0 +1,4 @@ +actor { + public query func api_version() : async (Nat16) { 0 }; + public shared func authorize(p : Principal) {}; +} diff --git a/ic/testdata/did/ic.did b/ic/testdata/did/ic.did index 7930575..3b634a6 100644 --- a/ic/testdata/did/ic.did +++ b/ic/testdata/did/ic.did @@ -1,12 +1,18 @@ type canister_id = principal; type wasm_module = blob; +type log_visibility = variant { + controllers; + public; +}; + type canister_settings = record { controllers : opt vec principal; compute_allocation : opt nat; memory_allocation : opt nat; freezing_threshold : opt nat; reserved_cycles_limit : opt nat; + log_visibility : opt log_visibility; }; type definite_canister_settings = record { @@ -15,6 +21,7 @@ type definite_canister_settings = record { memory_allocation : nat; freezing_threshold : nat; reserved_cycles_limit : nat; + log_visibility : log_visibility; }; type change_origin = variant { @@ -332,6 +339,20 @@ type bitcoin_get_balance_query_result = satoshi; type bitcoin_get_current_fee_percentiles_result = vec millisatoshi_per_byte; +type fetch_canister_logs_args = record { + canister_id : canister_id; +}; + +type canister_log_record = record { + idx: nat64; + timestamp_nanos: nat64; + content: blob; +}; + +type fetch_canister_logs_result = record { + canister_log_records: vec canister_log_record; +}; + service ic : { create_canister : (create_canister_args) -> (create_canister_result); update_settings : (update_settings_args) -> (); @@ -368,4 +389,7 @@ service ic : { // provisional interfaces for the pre-ledger world provisional_create_canister_with_cycles : (provisional_create_canister_with_cycles_args) -> (provisional_create_canister_with_cycles_result); provisional_top_up_canister : (provisional_top_up_canister_args) -> (); + + // canister logging + fetch_canister_logs : (fetch_canister_logs_args) -> (fetch_canister_logs_result) query; }; diff --git a/ic/testdata/did/registry.did b/ic/testdata/did/registry.did index c6b4726..7cc0e87 100644 --- a/ic/testdata/did/registry.did +++ b/ic/testdata/did/registry.did @@ -173,9 +173,22 @@ type FirewallRulesScope = variant { Global; }; +type GetNodeOperatorsAndDcsOfNodeProviderResponse = variant { + Ok : vec record { DataCenterRecord; NodeOperatorRecord }; + Err : text; +}; + +type GetNodeProvidersMonthlyXdrRewardsResponse = variant { + Ok : NodeProvidersMonthlyXdrRewards; + Err : text; +}; + type GetSubnetForCanisterRequest = record { "principal" : opt principal }; -type GetSubnetForCanisterResponse = record { subnet_id : opt principal }; +type GetSubnetForCanisterResponse = variant { + Ok : record { subnet_id : opt principal }; + Err : text; +}; type Gps = record { latitude : float32; longitude : float32 }; @@ -237,25 +250,14 @@ type RemoveNodeOperatorsPayload = record { type RemoveNodesPayload = record { node_ids : vec principal }; +type RemoveNodesFromSubnetPayload = record { node_ids : vec principal }; + type RerouteCanisterRangesPayload = record { source_subnet : principal; reassigned_canister_ranges : vec CanisterIdRange; destination_subnet : principal; }; -type Result = variant { Ok : principal; Err : text }; - -type Result_1 = variant { Ok; Err : text }; - -type Result_2 = variant { - Ok : vec record { DataCenterRecord; NodeOperatorRecord }; - Err : text; -}; - -type Result_3 = variant { Ok : NodeProvidersMonthlyXdrRewards; Err : text }; - -type Result_4 = variant { Ok : GetSubnetForCanisterResponse; Err : text }; - type RetireReplicaVersionPayload = record { replica_version_ids : vec text }; type ReviseElectedGuestosVersionsPayload = record { @@ -280,6 +282,11 @@ type SubnetFeatures = record { type SubnetType = variant { application; verified_application; system }; +type UpdateApiBoundaryNodesVersionPayload = record { + version : text; + node_ids : vec principal; +}; + type UpdateElectedHostosVersionsPayload = record { release_package_urls : vec text; hostos_version_to_elect : opt text; @@ -287,6 +294,13 @@ type UpdateElectedHostosVersionsPayload = record { release_package_sha256_hex : opt text; }; +type UpdateFirewallRulesPayload = record { + expected_hash : text; + scope : FirewallRulesScope; + positions : vec int32; + rules : vec FirewallRule; +}; + type UpdateNodeDirectlyPayload = record { idkg_dealing_encryption_pk : opt blob; }; @@ -296,11 +310,15 @@ type UpdateNodeDomainDirectlyPayload = record { domain : opt text; }; +type UpdateNodeDomainDirectlyResponse = variant { Ok; Err : text }; + type UpdateNodeIPv4ConfigDirectlyPayload = record { ipv4_config : opt IPv4Config; node_id : principal; }; +type UpdateNodeIpv4ConfigDirectlyResponse = variant { Ok; Err : text }; + type UpdateNodeOperatorConfigDirectlyPayload = record { node_operator_id : opt principal; node_provider_id : opt principal; @@ -371,16 +389,14 @@ type UpdateUnassignedNodesConfigPayload = record { service : { add_api_boundary_nodes : (AddApiBoundaryNodesPayload) -> (); add_firewall_rules : (AddFirewallRulesPayload) -> (); - add_node : (AddNodePayload) -> (Result); + add_node : (AddNodePayload) -> (principal); add_node_operator : (AddNodeOperatorPayload) -> (); add_nodes_to_subnet : (AddNodesToSubnetPayload) -> (); add_or_remove_data_centers : (AddOrRemoveDataCentersProposalPayload) -> (); bless_replica_version : (BlessReplicaVersionPayload) -> (); change_subnet_membership : (ChangeSubnetMembershipPayload) -> (); clear_provisional_whitelist : () -> (); - complete_canister_migration : (CompleteCanisterMigrationPayload) -> ( - Result_1, - ); + complete_canister_migration : (CompleteCanisterMigrationPayload) -> (); create_subnet : (CreateSubnetPayload) -> (); delete_subnet : (DeleteSubnetPayload) -> (); deploy_guestos_to_all_subnet_nodes : ( @@ -390,10 +406,10 @@ service : { DeployGuestosToAllUnassignedNodesPayload, ) -> (); get_build_metadata : () -> (text) query; - get_node_operators_and_dcs_of_node_provider : (principal) -> (Result_2) query; - get_node_providers_monthly_xdr_rewards : () -> (Result_3) query; - get_subnet_for_canister : (GetSubnetForCanisterRequest) -> (Result_4) query; - prepare_canister_migration : (PrepareCanisterMigrationPayload) -> (Result_1); + get_node_operators_and_dcs_of_node_provider : (principal) -> (GetNodeOperatorsAndDcsOfNodeProviderResponse) query; + get_node_providers_monthly_xdr_rewards : () -> (GetNodeProvidersMonthlyXdrRewardsResponse) query; + get_subnet_for_canister : (GetSubnetForCanisterRequest) -> (GetSubnetForCanisterResponse) query; + prepare_canister_migration : (PrepareCanisterMigrationPayload) -> (); recover_subnet : (RecoverSubnetPayload) -> (); remove_api_boundary_nodes : (RemoveApiBoundaryNodesPayload) -> (); remove_firewall_rules : (RemoveFirewallRulesPayload) -> (); @@ -401,18 +417,18 @@ service : { remove_node_operators : (RemoveNodeOperatorsPayload) -> (); remove_nodes : (RemoveNodesPayload) -> (); remove_nodes_from_subnet : (RemoveNodesPayload) -> (); - reroute_canister_ranges : (RerouteCanisterRangesPayload) -> (Result_1); + reroute_canister_ranges : (RerouteCanisterRangesPayload) -> (); retire_replica_version : (RetireReplicaVersionPayload) -> (); revise_elected_replica_versions : (ReviseElectedGuestosVersionsPayload) -> (); set_firewall_config : (SetFirewallConfigPayload) -> (); - update_api_boundary_nodes_version : (AddApiBoundaryNodesPayload) -> (); + update_api_boundary_nodes_version : (UpdateApiBoundaryNodesVersionPayload) -> (); update_elected_hostos_versions : (UpdateElectedHostosVersionsPayload) -> (); update_elected_replica_versions : (ReviseElectedGuestosVersionsPayload) -> (); - update_firewall_rules : (AddFirewallRulesPayload) -> (); - update_node_directly : (UpdateNodeDirectlyPayload) -> (Result_1); - update_node_domain_directly : (UpdateNodeDomainDirectlyPayload) -> (Result_1); + update_firewall_rules : (UpdateFirewallRulesPayload) -> (); + update_node_directly : (UpdateNodeDirectlyPayload) -> (); + update_node_domain_directly : (UpdateNodeDomainDirectlyPayload) -> (UpdateNodeDomainDirectlyResponse); update_node_ipv4_config_directly : (UpdateNodeIPv4ConfigDirectlyPayload) -> ( - Result_1, + UpdateNodeIpv4ConfigDirectlyResponse, ); update_node_operator_config : (UpdateNodeOperatorConfigPayload) -> (); update_node_operator_config_directly : ( diff --git a/ic/testdata/gen.go b/ic/testdata/gen.go index 47b9e56..fa91f3b 100644 --- a/ic/testdata/gen.go +++ b/ic/testdata/gen.go @@ -123,23 +123,6 @@ func main() { } _ = os.WriteFile(fmt.Sprintf("%s/agent.go", dir), raw, os.ModePerm) } - { - g, err := gen.NewGenerator("", name, name, did) - g.ModulePath = "github.com/aviate-labs/agent-go/ic" - if err != nil { - log.Panic(err) - } - rawTypes, err := g.GenerateActorTypes() - if err != nil { - log.Panic(err) - } - _ = os.WriteFile(fmt.Sprintf("%s/types.mo", dir), rawTypes, os.ModePerm) - rawActor, err := g.GenerateActor() - if err != nil { - log.Panic(err) - } - _ = os.WriteFile(fmt.Sprintf("%s/actor.mo", dir), rawActor, os.ModePerm) - } } } } diff --git a/ic/wallet/actor.mo b/ic/wallet/actor.mo deleted file mode 100755 index 071882b..0000000 --- a/ic/wallet/actor.mo +++ /dev/null @@ -1,106 +0,0 @@ -// Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go. -import T "types"; - -import { principalOfBlob } = "mo:⛔"; - -actor class _wallet() : async actor {} { - public query func wallet_api_version() : async (Text) { - ("12501942321308663592") - }; - public query func name() : async (?Text) { - (?"12501942321308663592") - }; - public shared func set_name(_arg0 : Text) : async () { - () - }; - public query func get_controllers() : async ([Principal]) { - ([ principalOfBlob("xAABD0E49110AC27F321B5538A4BD8E1D253F8AFFD1A9C81C5B6EBD2C7EE44EF3"), principalOfBlob("x8A251E9C55DCC87B1BCA3A098396CB5C620BF809689EE32C89B845322F01379C"), principalOfBlob("x4C41BFC610298858C4967345654F9614DC1B2711874D3E6FE25E3A8F72C632E3"), principalOfBlob("x5E92AF8BF9CEF5969C068EE637EBB34E1E18DC1513DD22FC38BCA3DEA73A02A6") ]) - }; - public shared func add_controller(_arg0 : Principal) : async () { - () - }; - public shared func remove_controller(_arg0 : Principal) : async (T.WalletResult) { - (#Ok(())) - }; - public query func get_custodians() : async ([Principal]) { - ([ principalOfBlob("xAABD0E49110AC27F321B5538A4BD8E1D253F8AFFD1A9C81C5B6EBD2C7EE44EF3"), principalOfBlob("x8A251E9C55DCC87B1BCA3A098396CB5C620BF809689EE32C89B845322F01379C"), principalOfBlob("x4C41BFC610298858C4967345654F9614DC1B2711874D3E6FE25E3A8F72C632E3"), principalOfBlob("x5E92AF8BF9CEF5969C068EE637EBB34E1E18DC1513DD22FC38BCA3DEA73A02A6") ]) - }; - public shared func authorize(_arg0 : Principal) : async () { - () - }; - public shared func deauthorize(_arg0 : Principal) : async (T.WalletResult) { - (#Ok(())) - }; - public query func wallet_balance() : async ({ amount : Nat64 }) { - ({ amount = 12501942321308663592 }) - }; - public query func wallet_balance128() : async ({ amount : Nat }) { - ({ amount = 12501942321308663592 }) - }; - public shared func wallet_send(_arg0 : { canister : Principal; amount : Nat64 }) : async (T.WalletResult) { - (#Ok(())) - }; - public shared func wallet_send128(_arg0 : { canister : Principal; amount : Nat }) : async (T.WalletResult) { - (#Ok(())) - }; - public shared func wallet_receive(_arg0 : ?T.ReceiveOptions) : async () { - () - }; - public shared func wallet_create_canister(_arg0 : T.CreateCanisterArgs) : async (T.WalletResultCreate) { - (#Ok({ canister_id = principalOfBlob("xAABD0E49110AC27F321B5538A4BD8E1D253F8AFFD1A9C81C5B6EBD2C7EE44EF3") })) - }; - public shared func wallet_create_canister128(_arg0 : T.CreateCanisterArgs128) : async (T.WalletResultCreate) { - (#Ok({ canister_id = principalOfBlob("xAABD0E49110AC27F321B5538A4BD8E1D253F8AFFD1A9C81C5B6EBD2C7EE44EF3") })) - }; - public shared func wallet_create_wallet(_arg0 : T.CreateCanisterArgs) : async (T.WalletResultCreate) { - (#Ok({ canister_id = principalOfBlob("xAABD0E49110AC27F321B5538A4BD8E1D253F8AFFD1A9C81C5B6EBD2C7EE44EF3") })) - }; - public shared func wallet_create_wallet128(_arg0 : T.CreateCanisterArgs128) : async (T.WalletResultCreate) { - (#Ok({ canister_id = principalOfBlob("xAABD0E49110AC27F321B5538A4BD8E1D253F8AFFD1A9C81C5B6EBD2C7EE44EF3") })) - }; - public shared func wallet_store_wallet_wasm(_arg0 : { wasm_module : Blob }) : async () { - () - }; - public shared func wallet_call(_arg0 : { canister : Principal; method_name : Text; args : Blob; cycles : Nat64 }) : async (T.WalletResultCall) { - (#Ok({ return = "xAABD0E49110AC27F321B5538A4BD8E1D253F8AFFD1A9C81C5B6EBD2C7EE44EF3" })) - }; - public shared func wallet_call128(_arg0 : { canister : Principal; method_name : Text; args : Blob; cycles : Nat }) : async (T.WalletResultCall) { - (#Ok({ return = "xAABD0E49110AC27F321B5538A4BD8E1D253F8AFFD1A9C81C5B6EBD2C7EE44EF3" })) - }; - public shared func wallet_call_with_max_cycles(_arg0 : { canister : Principal; method_name : Text; args : Blob }) : async (T.WalletResultCallWithMaxCycles) { - (#Ok({ return = "xAABD0E49110AC27F321B5538A4BD8E1D253F8AFFD1A9C81C5B6EBD2C7EE44EF3"; attached_cycles = 9207851698408531338 })) - }; - public shared func add_address(_arg0 : T.AddressEntry) : async () { - () - }; - public query func list_addresses() : async ([T.AddressEntry]) { - ([ { id = principalOfBlob("xAABD0E49110AC27F321B5538A4BD8E1D253F8AFFD1A9C81C5B6EBD2C7EE44EF3"); name = ?"9207851698408531338"; kind = #Canister; role = #Contact }, { id = principalOfBlob("x9EE32C89B845322F01379CB07CF44C41BFC610298858C4967345654F9614DC1B"); name = ?"18342943986503597645"; kind = #User; role = #Custodian }, { id = principalOfBlob("x969C068EE637EBB34E1E18DC1513DD22FC38BCA3DEA73A02A6B18EB21D8C751B"); name = ?"15380023008932546055"; kind = #User; role = #Controller }, { id = principalOfBlob("x39BC49BC882A10B6BBF3F350B6D2D41664A1B826BBE574D8BA20F61084C26198"); name = ?"11315935127771919894"; kind = #Unknown; role = #Controller } ]) - }; - public shared func remove_address(_arg0 : Principal) : async (T.WalletResult) { - (#Ok(())) - }; - public query func get_events(_arg0 : ?{ from : ?Nat32; to : ?Nat32 }) : async ([T.Event]) { - ([ { id = 2949695419; timestamp = 10285557685837050495; kind = #CyclesSent({ to = principalOfBlob("xA9C81C5B6EBD2C7EE44EF3CD9E1B8A251E9C55DCC87B1BCA3A098396CB5C620B"); amount = 12408056582236857246; refund = 8643670682807763247 }) }, { id = 1447520861; timestamp = 15226500214129345624; kind = #CanisterCalled({ canister = principalOfBlob("x4D3E6FE25E3A8F72C632E3513A5F5E92AF8BF9CEF5969C068EE637EBB34E1E18"); method_name = "5539044620517515997"; cycles = 1923756884486142631 }) }, { id = 2805007336; timestamp = 15380023008932546055; kind = #CyclesReceived({ from = principalOfBlob("x70087656C06A2339BC49BC882A10B6BBF3F350B6D2D41664A1B826BBE574D8BA"); amount = 7929607626476864132; memo = ?"11315935127771919894" }) }, { id = 1415628053; timestamp = 13683296349367290469; kind = #WalletDeployed({ canister = principalOfBlob("xF6FDE26C9239614A5D20BE64DB35184AFC8405CAAA7A74B6930B2F2C16BB7A5A") }) } ]) - }; - public query func get_events128(_arg0 : ?{ from : ?Nat32; to : ?Nat32 }) : async ([T.Event128]) { - ([ { id = 2949695419; timestamp = 10285557685837050495; kind = #CyclesSent({ to = principalOfBlob("xA9C81C5B6EBD2C7EE44EF3CD9E1B8A251E9C55DCC87B1BCA3A098396CB5C620B"); amount = 12408056582236857246; refund = 8643670682807763247 }) }, { id = 1447520861; timestamp = 15226500214129345624; kind = #CanisterCalled({ canister = principalOfBlob("x4D3E6FE25E3A8F72C632E3513A5F5E92AF8BF9CEF5969C068EE637EBB34E1E18"); method_name = "5539044620517515997"; cycles = 1923756884486142631 }) }, { id = 2805007336; timestamp = 15380023008932546055; kind = #CyclesReceived({ from = principalOfBlob("x70087656C06A2339BC49BC882A10B6BBF3F350B6D2D41664A1B826BBE574D8BA"); amount = 7929607626476864132; memo = ?"11315935127771919894" }) }, { id = 1415628053; timestamp = 13683296349367290469; kind = #WalletDeployed({ canister = principalOfBlob("xF6FDE26C9239614A5D20BE64DB35184AFC8405CAAA7A74B6930B2F2C16BB7A5A") }) } ]) - }; - public query func get_chart(_arg0 : ?{ count : ?Nat32; precision : ?Nat64 }) : async ([(Nat64, Nat64)]) { - ([ ( 7404491806706941354, 10285557685837050495 ), ( 16344125491934207374, 6353661455985592489 ), ( 13842832487040869502, 9207851698408531338 ), ( 7031951943849876347, 10982038652290489547 ) ]) - }; - public query func list_managed_canisters(_arg0 : { from : ?Nat32; to : ?Nat32 }) : async ([T.ManagedCanisterInfo], Nat32) { - ([ { id = principalOfBlob("xAABD0E49110AC27F321B5538A4BD8E1D253F8AFFD1A9C81C5B6EBD2C7EE44EF3"); name = ?"9207851698408531338"; created_at = 7031951943849876347 }, { id = principalOfBlob("xCB5C620BF809689EE32C89B845322F01379CB07CF44C41BFC610298858C49673"); name = ?"8829044454151951510"; created_at = 18342943986503597645 }, { id = principalOfBlob("x72C632E3513A5F5E92AF8BF9CEF5969C068EE637EBB34E1E18DC1513DD22FC38"); name = ?"1923756884486142631"; created_at = 10068773106139630621 }, { id = principalOfBlob("x0746C29470D17024B544336AECB870087656C06A2339BC49BC882A10B6BBF3F3"); name = ?"10428971936530044628"; created_at = 7786994376157721829 } ], 107831972) - }; - public query func get_managed_canister_events(_arg0 : { canister : Principal; from : ?Nat32; to : ?Nat32 }) : async (?[T.ManagedCanisterEvent]) { - (?[ { id = 2949695419; timestamp = 10285557685837050495; kind = #Created({ cycles = 6353661455985592489 }) }, { id = 3010102092; timestamp = 9207851698408531338; kind = #Created({ cycles = 10982038652290489547 }) }, { id = 895428951; timestamp = 8643670682807763247; kind = #CyclesSent({ amount = 15226500214129345624; refund = 8829044454151951510 }) }, { id = 3774773420; timestamp = 2188532067303868018; kind = #Called({ method_name = "4389663725167484054"; cycles = 9589032066643545779 }) } ]) - }; - public query func get_managed_canister_events128(_arg0 : { canister : Principal; from : ?Nat32; to : ?Nat32 }) : async (?[T.ManagedCanisterEvent128]) { - (?[ { id = 2949695419; timestamp = 10285557685837050495; kind = #Created({ cycles = 6353661455985592489 }) }, { id = 3010102092; timestamp = 9207851698408531338; kind = #Created({ cycles = 10982038652290489547 }) }, { id = 895428951; timestamp = 8643670682807763247; kind = #CyclesSent({ amount = 15226500214129345624; refund = 8829044454151951510 }) }, { id = 3774773420; timestamp = 2188532067303868018; kind = #Called({ method_name = "4389663725167484054"; cycles = 9589032066643545779 }) } ]) - }; - public shared func set_short_name(_arg0 : Principal, _arg1 : ?Text) : async (?T.ManagedCanisterInfo) { - (?{ id = principalOfBlob("x287F06984DD27FAABD0E49110AC27F321B5538A4BD8E1D253F8AFFD1A9C81C5B"); name = ?"13842832487040869502"; created_at = 9207851698408531338 }) - }; - public query func http_request(_arg0 : T.HttpRequest) : async (T.HttpResponse) { - ({ status_code = 38652; headers = [ ( "10285557685837050495", "16344125491934207374" ), ( "6353661455985592489", "13842832487040869502" ), ( "9207851698408531338", "7031951943849876347" ), ( "10982038652290489547", "12408056582236857246" ) ]; body = "x2F01379CB07CF44C41BFC610298858C4967345654F9614DC1B2711874D3E6FE2"; streaming_strategy = ?#Callback({ callback = { /* func */ }; token = { } }) }) - }; -} diff --git a/ic/wallet/types.mo b/ic/wallet/types.mo deleted file mode 100755 index 5dc71d9..0000000 --- a/ic/wallet/types.mo +++ /dev/null @@ -1,29 +0,0 @@ -// Do NOT edit this file. It was automatically generated by https://github.com/aviate-labs/agent-go. -module T { - public type EventKind = { #CyclesSent : { to : Principal; amount : Nat64; refund : Nat64 }; #CyclesReceived : { from : Principal; amount : Nat64; memo : ?Text }; #AddressAdded : { id : Principal; name : ?Text; role : T.Role }; #AddressRemoved : { id : Principal }; #CanisterCreated : { canister : Principal; cycles : Nat64 }; #CanisterCalled : { canister : Principal; method_name : Text; cycles : Nat64 }; #WalletDeployed : { canister : Principal } }; - public type EventKind128 = { #CyclesSent : { to : Principal; amount : Nat; refund : Nat }; #CyclesReceived : { from : Principal; amount : Nat; memo : ?Text }; #AddressAdded : { id : Principal; name : ?Text; role : T.Role }; #AddressRemoved : { id : Principal }; #CanisterCreated : { canister : Principal; cycles : Nat }; #CanisterCalled : { canister : Principal; method_name : Text; cycles : Nat }; #WalletDeployed : { canister : Principal } }; - public type Event = { id : Nat32; timestamp : Nat64; kind : T.EventKind }; - public type Event128 = { id : Nat32; timestamp : Nat64; kind : T.EventKind128 }; - public type Role = { #Contact; #Custodian; #Controller }; - public type Kind = { #Unknown; #User; #Canister }; - public type AddressEntry = { id : Principal; name : ?Text; kind : T.Kind; role : T.Role }; - public type ManagedCanisterInfo = { id : Principal; name : ?Text; created_at : Nat64 }; - public type ManagedCanisterEventKind = { #CyclesSent : { amount : Nat64; refund : Nat64 }; #Called : { method_name : Text; cycles : Nat64 }; #Created : { cycles : Nat64 } }; - public type ManagedCanisterEventKind128 = { #CyclesSent : { amount : Nat; refund : Nat }; #Called : { method_name : Text; cycles : Nat }; #Created : { cycles : Nat } }; - public type ManagedCanisterEvent = { id : Nat32; timestamp : Nat64; kind : T.ManagedCanisterEventKind }; - public type ManagedCanisterEvent128 = { id : Nat32; timestamp : Nat64; kind : T.ManagedCanisterEventKind128 }; - public type ReceiveOptions = { memo : ?Text }; - public type WalletResultCreate = { #Ok : { canister_id : Principal }; #Err : Text }; - public type WalletResult = { #Ok : (); #Err : Text }; - public type WalletResultCall = { #Ok : { return : Blob }; #Err : Text }; - public type WalletResultCallWithMaxCycles = { #Ok : { return : Blob; attached_cycles : Nat }; #Err : Text }; - public type CanisterSettings = { controller : ?Principal; controllers : ?[Principal]; compute_allocation : ?Nat; memory_allocation : ?Nat; freezing_threshold : ?Nat }; - public type CreateCanisterArgs = { cycles : Nat64; settings : T.CanisterSettings }; - public type CreateCanisterArgs128 = { cycles : Nat; settings : T.CanisterSettings }; - public type HeaderField = (Text, Text); - public type HttpRequest = { method : Text; url : Text; headers : [T.HeaderField]; body : Blob }; - public type HttpResponse = { status_code : Nat16; headers : [T.HeaderField]; body : Blob; streaming_strategy : ?T.StreamingStrategy }; - public type StreamingCallbackHttpResponse = { body : Blob; token : ?T.Token }; - public type Token = { }; - public type StreamingStrategy = { #Callback : { callback : { /* func */ }; token : T.Token } }; -}; diff --git a/registry/proto/v1/local.pb.go b/registry/proto/v1/local.pb.go index 359b857..5de8427 100644 --- a/registry/proto/v1/local.pb.go +++ b/registry/proto/v1/local.pb.go @@ -105,81 +105,6 @@ var file_local_proto_rawDesc = []byte{ 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func file_local_proto_init() { - if File_local_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_local_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangelogEntry); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_local_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KeyMutation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_local_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CertifiedTime); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_local_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Delta); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_local_proto_rawDesc, - NumEnums: 1, - NumMessages: 4, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_local_proto_goTypes, - DependencyIndexes: file_local_proto_depIdxs, - EnumInfos: file_local_proto_enumTypes, - MessageInfos: file_local_proto_msgTypes, - }.Build() - File_local_proto = out.File - file_local_proto_rawDesc = nil - file_local_proto_goTypes = nil - file_local_proto_depIdxs = nil -} - func file_local_proto_rawDescGZIP() []byte { file_local_proto_rawDescOnce.Do(func() { file_local_proto_rawDescData = protoimpl.X.CompressGZIP(file_local_proto_rawDescData) @@ -187,8 +112,6 @@ func file_local_proto_rawDescGZIP() []byte { return file_local_proto_rawDescData } -func init() { file_local_proto_init() } - // The time when the last certified update was successfully received. type CertifiedTime struct { state protoimpl.MessageState @@ -425,6 +348,7 @@ const ( func (MutationType) Descriptor() protoreflect.EnumDescriptor { return file_local_proto_enumTypes[0].Descriptor() } + func (x MutationType) Enum() *MutationType { p := new(MutationType) *p = x @@ -438,10 +362,85 @@ func (MutationType) EnumDescriptor() ([]byte, []int) { func (x MutationType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } - func (x MutationType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (MutationType) Type() protoreflect.EnumType { return &file_local_proto_enumTypes[0] } + +func init() { file_local_proto_init() } +func file_local_proto_init() { + if File_local_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_local_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ChangelogEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_local_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*KeyMutation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_local_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CertifiedTime); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_local_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Delta); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_local_proto_rawDesc, + NumEnums: 1, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_local_proto_goTypes, + DependencyIndexes: file_local_proto_depIdxs, + EnumInfos: file_local_proto_enumTypes, + MessageInfos: file_local_proto_msgTypes, + }.Build() + File_local_proto = out.File + file_local_proto_rawDesc = nil + file_local_proto_goTypes = nil + file_local_proto_depIdxs = nil +} diff --git a/registry/proto/v1/node.pb.go b/registry/proto/v1/node.pb.go index 0d9fc22..ad69ec2 100644 --- a/registry/proto/v1/node.pb.go +++ b/registry/proto/v1/node.pb.go @@ -180,8 +180,6 @@ func file_node_proto_rawDescGZIP() []byte { return file_node_proto_rawDescData } -func init() { file_node_proto_init() } - // A connection endpoint. type ConnectionEndpoint struct { state protoimpl.MessageState @@ -384,6 +382,7 @@ func (x *NodeRecord) GetXnet() *ConnectionEndpoint { } return nil } + func (*NodeRecord) ProtoMessage() {} func (x *NodeRecord) ProtoReflect() protoreflect.Message { mi := &file_node_proto_msgTypes[2] @@ -396,7 +395,6 @@ func (x *NodeRecord) ProtoReflect() protoreflect.Message { } return mi.MessageOf(x) } - func (x *NodeRecord) Reset() { *x = NodeRecord{} if protoimpl.UnsafeEnabled { @@ -405,6 +403,8 @@ func (x *NodeRecord) Reset() { ms.StoreMessageInfo(mi) } } + func (x *NodeRecord) String() string { return protoimpl.X.MessageStringOf(x) } +func init() { file_node_proto_init() } diff --git a/registry/proto/v1/operator.pb.go b/registry/proto/v1/operator.pb.go index 2daeb27..13a63a9 100644 --- a/registry/proto/v1/operator.pb.go +++ b/registry/proto/v1/operator.pb.go @@ -83,57 +83,6 @@ var file_operator_proto_rawDesc = []byte{ 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func file_operator_proto_init() { - if File_operator_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_operator_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeOperatorRecord); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_operator_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveNodeOperatorsPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_operator_proto_msgTypes[0].OneofWrappers = []interface{}{} - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_operator_proto_rawDesc, - NumEnums: 0, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_operator_proto_goTypes, - DependencyIndexes: file_operator_proto_depIdxs, - MessageInfos: file_operator_proto_msgTypes, - }.Build() - File_operator_proto = out.File - file_operator_proto_rawDesc = nil - file_operator_proto_goTypes = nil - file_operator_proto_depIdxs = nil -} - func file_operator_proto_rawDescGZIP() []byte { file_operator_proto_rawDescOnce.Do(func() { file_operator_proto_rawDescData = protoimpl.X.CompressGZIP(file_operator_proto_rawDescData) @@ -141,8 +90,6 @@ func file_operator_proto_rawDescGZIP() []byte { return file_operator_proto_rawDescData } -func init() { file_operator_proto_init() } - // A record for a node operator. Each node operator is associated with a // unique principal id, a.k.a. NOID. // @@ -265,7 +212,9 @@ func (x *RemoveNodeOperatorsPayload) GetNodeOperatorsToRemove() [][]byte { } return nil } + func (*RemoveNodeOperatorsPayload) ProtoMessage() {} + func (x *RemoveNodeOperatorsPayload) ProtoReflect() protoreflect.Message { mi := &file_operator_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { @@ -277,7 +226,6 @@ func (x *RemoveNodeOperatorsPayload) ProtoReflect() protoreflect.Message { } return mi.MessageOf(x) } - func (x *RemoveNodeOperatorsPayload) Reset() { *x = RemoveNodeOperatorsPayload{} if protoimpl.UnsafeEnabled { @@ -289,3 +237,55 @@ func (x *RemoveNodeOperatorsPayload) Reset() { func (x *RemoveNodeOperatorsPayload) String() string { return protoimpl.X.MessageStringOf(x) } + +func init() { file_operator_proto_init() } +func file_operator_proto_init() { + if File_operator_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_operator_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeOperatorRecord); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operator_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveNodeOperatorsPayload); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_operator_proto_msgTypes[0].OneofWrappers = []interface{}{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_operator_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_operator_proto_goTypes, + DependencyIndexes: file_operator_proto_depIdxs, + MessageInfos: file_operator_proto_msgTypes, + }.Build() + File_operator_proto = out.File + file_operator_proto_rawDesc = nil + file_operator_proto_goTypes = nil + file_operator_proto_depIdxs = nil +} diff --git a/registry/proto/v1/registry.pb.go b/registry/proto/v1/registry.pb.go index 08380d2..99341d5 100644 --- a/registry/proto/v1/registry.pb.go +++ b/registry/proto/v1/registry.pb.go @@ -70,56 +70,6 @@ var file_registry_proto_rawDesc = []byte{ 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func file_registry_proto_init() { - if File_registry_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_registry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProtoRegistry); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProtoRegistryRecord); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_registry_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_registry_proto_goTypes, - DependencyIndexes: file_registry_proto_depIdxs, - MessageInfos: file_registry_proto_msgTypes, - }.Build() - File_registry_proto = out.File - file_registry_proto_rawDesc = nil - file_registry_proto_goTypes = nil - file_registry_proto_depIdxs = nil -} - func file_registry_proto_rawDescGZIP() []byte { file_registry_proto_rawDescOnce.Do(func() { file_registry_proto_rawDescData = protoimpl.X.CompressGZIP(file_registry_proto_rawDescData) @@ -127,8 +77,6 @@ func file_registry_proto_rawDescGZIP() []byte { return file_registry_proto_rawDescData } -func init() { file_registry_proto_init() } - type ProtoRegistry struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -211,7 +159,9 @@ func (x *ProtoRegistryRecord) GetVersion() uint64 { } return 0 } + func (*ProtoRegistryRecord) ProtoMessage() {} + func (x *ProtoRegistryRecord) ProtoReflect() protoreflect.Message { mi := &file_registry_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { @@ -223,7 +173,6 @@ func (x *ProtoRegistryRecord) ProtoReflect() protoreflect.Message { } return mi.MessageOf(x) } - func (x *ProtoRegistryRecord) Reset() { *x = ProtoRegistryRecord{} if protoimpl.UnsafeEnabled { @@ -235,3 +184,54 @@ func (x *ProtoRegistryRecord) Reset() { func (x *ProtoRegistryRecord) String() string { return protoimpl.X.MessageStringOf(x) } + +func init() { file_registry_proto_init() } +func file_registry_proto_init() { + if File_registry_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_registry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProtoRegistry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_registry_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProtoRegistryRecord); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_registry_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_registry_proto_goTypes, + DependencyIndexes: file_registry_proto_depIdxs, + MessageInfos: file_registry_proto_msgTypes, + }.Build() + File_registry_proto = out.File + file_registry_proto_rawDesc = nil + file_registry_proto_goTypes = nil + file_registry_proto_depIdxs = nil +} diff --git a/registry/proto/v1/subnet.pb.go b/registry/proto/v1/subnet.pb.go index af97edf..4c2039e 100644 --- a/registry/proto/v1/subnet.pb.go +++ b/registry/proto/v1/subnet.pb.go @@ -852,558 +852,449 @@ var file_subnet_proto_rawDesc = []byte{ 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func file_subnet_proto_init() { - if File_subnet_proto != nil { - return +func file_subnet_proto_rawDescGZIP() []byte { + file_subnet_proto_rawDescOnce.Do(func() { + file_subnet_proto_rawDescData = protoimpl.X.CompressGZIP(file_subnet_proto_rawDescData) + }) + return file_subnet_proto_rawDescData +} + +// An algorithm ID. This is used to specify the signature algorithm associated with a public key. +type AlgorithmId int32 + +const ( + AlgorithmId_ALGORITHM_ID_UNSPECIFIED AlgorithmId = 0 + AlgorithmId_ALGORITHM_ID_MULTI_BLS12_381 AlgorithmId = 1 + AlgorithmId_ALGORITHM_ID_THRES_BLS12_381 AlgorithmId = 2 + AlgorithmId_ALGORITHM_ID_SCHNORR_SECP256K1 AlgorithmId = 3 + AlgorithmId_ALGORITHM_ID_STATIC_DH_SECP256K1 AlgorithmId = 4 + AlgorithmId_ALGORITHM_ID_HASH_SHA256 AlgorithmId = 5 + AlgorithmId_ALGORITHM_ID_TLS AlgorithmId = 6 + AlgorithmId_ALGORITHM_ID_ED25519 AlgorithmId = 7 + AlgorithmId_ALGORITHM_ID_SECP256K1 AlgorithmId = 8 + AlgorithmId_ALGORITHM_ID_GROTH20_BLS12_381 AlgorithmId = 9 + AlgorithmId_ALGORITHM_ID_NIDKG_GROTH20_BLS12_381 AlgorithmId = 10 + AlgorithmId_ALGORITHM_ID_ECDSA_P256 AlgorithmId = 11 + AlgorithmId_ALGORITHM_ID_ECDSA_SECP_256K1 AlgorithmId = 12 + AlgorithmId_ALGORITHM_ID_IC_CANISTER_SIGNATURE AlgorithmId = 13 + AlgorithmId_ALGORITHM_ID_RSA_SHA256 AlgorithmId = 14 + AlgorithmId_ALGORITHM_ID_THRESHOLD_ECDSA_SECP_256K1 AlgorithmId = 15 + AlgorithmId_ALGORITHM_ID_MEGA_SECP_256K1 AlgorithmId = 16 + AlgorithmId_ALGORITHM_ID_THRESHOLD_ECDSA_SECP_256R1 AlgorithmId = 17 + AlgorithmId_ALGORITHM_ID_THRESHOLD_SCHNORR_BIP340 AlgorithmId = 18 + AlgorithmId_ALGORITHM_ID_THRESHOLD_ED25519 AlgorithmId = 19 +) + +func (AlgorithmId) Descriptor() protoreflect.EnumDescriptor { + return file_subnet_proto_enumTypes[2].Descriptor() +} + +func (x AlgorithmId) Enum() *AlgorithmId { + p := new(AlgorithmId) + *p = x + return p +} + +// Deprecated: Use AlgorithmId.Descriptor instead. +func (AlgorithmId) EnumDescriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{2} +} + +func (x AlgorithmId) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +func (x AlgorithmId) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AlgorithmId) Type() protoreflect.EnumType { + return &file_subnet_proto_enumTypes[2] +} + +// Contains the initial DKG transcripts for the subnet and materials to construct a base CUP (i.e. +// a CUP with no dependencies on previous CUPs or blocks). Such CUP materials can be used to +// construct the genesis CUP or a recovery CUP in the event of a subnet stall. +type CatchUpPackageContents struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Initial non-interactive low-threshold DKG transcript + InitialNiDkgTranscriptLowThreshold *InitialNiDkgTranscriptRecord `protobuf:"bytes,1,opt,name=initial_ni_dkg_transcript_low_threshold,json=initialNiDkgTranscriptLowThreshold,proto3" json:"initial_ni_dkg_transcript_low_threshold,omitempty"` + // Initial non-interactive high-threshold DKG transcript + InitialNiDkgTranscriptHighThreshold *InitialNiDkgTranscriptRecord `protobuf:"bytes,2,opt,name=initial_ni_dkg_transcript_high_threshold,json=initialNiDkgTranscriptHighThreshold,proto3" json:"initial_ni_dkg_transcript_high_threshold,omitempty"` + // The blockchain height that the CUP should have + Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` + // Block time for the CUP's block + Time uint64 `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty"` + // The hash of the state that the subnet should use + StateHash []byte `protobuf:"bytes,5,opt,name=state_hash,json=stateHash,proto3" json:"state_hash,omitempty"` + // A uri from which data to replace the registry local store should be downloaded + RegistryStoreUri *RegistryStoreUri `protobuf:"bytes,6,opt,name=registry_store_uri,json=registryStoreUri,proto3" json:"registry_store_uri,omitempty"` + // / The initial ECDSA dealings for boot strapping target subnets. + EcdsaInitializations []*EcdsaInitialization `protobuf:"bytes,7,rep,name=ecdsa_initializations,json=ecdsaInitializations,proto3" json:"ecdsa_initializations,omitempty"` +} + +// Deprecated: Use CatchUpPackageContents.ProtoReflect.Descriptor instead. +func (*CatchUpPackageContents) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{3} +} + +func (x *CatchUpPackageContents) GetEcdsaInitializations() []*EcdsaInitialization { + if x != nil { + return x.EcdsaInitializations } - if !protoimpl.UnsafeEnabled { - file_subnet_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubnetRecord); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EcdsaKeyId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + return nil +} + +func (x *CatchUpPackageContents) GetHeight() uint64 { + if x != nil { + return x.Height + } + return 0 +} + +func (x *CatchUpPackageContents) GetInitialNiDkgTranscriptHighThreshold() *InitialNiDkgTranscriptRecord { + if x != nil { + return x.InitialNiDkgTranscriptHighThreshold + } + return nil +} + +func (x *CatchUpPackageContents) GetInitialNiDkgTranscriptLowThreshold() *InitialNiDkgTranscriptRecord { + if x != nil { + return x.InitialNiDkgTranscriptLowThreshold + } + return nil +} + +func (x *CatchUpPackageContents) GetRegistryStoreUri() *RegistryStoreUri { + if x != nil { + return x.RegistryStoreUri + } + return nil +} + +func (x *CatchUpPackageContents) GetStateHash() []byte { + if x != nil { + return x.StateHash + } + return nil +} + +func (x *CatchUpPackageContents) GetTime() uint64 { + if x != nil { + return x.Time + } + return 0 +} + +func (*CatchUpPackageContents) ProtoMessage() {} + +func (x *CatchUpPackageContents) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - file_subnet_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EcdsaInitialization); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + return ms + } + return mi.MessageOf(x) +} + +func (x *CatchUpPackageContents) Reset() { + *x = CatchUpPackageContents{} + if protoimpl.UnsafeEnabled { + mi := &file_subnet_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CatchUpPackageContents) String() string { + return protoimpl.X.MessageStringOf(x) +} + +// Per-subnet chain key configuration +type ChainKeyConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Configurations for keys held by the subnet. + KeyConfigs []*KeyConfig `protobuf:"bytes,1,rep,name=key_configs,json=keyConfigs,proto3" json:"key_configs,omitempty"` + // Signature requests will timeout after the given number of nano seconds. + SignatureRequestTimeoutNs *uint64 `protobuf:"varint,2,opt,name=signature_request_timeout_ns,json=signatureRequestTimeoutNs,proto3,oneof" json:"signature_request_timeout_ns,omitempty"` + // Key rotation period of a single node in milliseconds. + // If none is specified key rotation is disabled. + IdkgKeyRotationPeriodMs *uint64 `protobuf:"varint,3,opt,name=idkg_key_rotation_period_ms,json=idkgKeyRotationPeriodMs,proto3,oneof" json:"idkg_key_rotation_period_ms,omitempty"` +} + +// Deprecated: Use ChainKeyConfig.ProtoReflect.Descriptor instead. +func (*ChainKeyConfig) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{30} +} + +func (x *ChainKeyConfig) GetIdkgKeyRotationPeriodMs() uint64 { + if x != nil && x.IdkgKeyRotationPeriodMs != nil { + return *x.IdkgKeyRotationPeriodMs + } + return 0 +} + +func (x *ChainKeyConfig) GetKeyConfigs() []*KeyConfig { + if x != nil { + return x.KeyConfigs + } + return nil +} + +func (x *ChainKeyConfig) GetSignatureRequestTimeoutNs() uint64 { + if x != nil && x.SignatureRequestTimeoutNs != nil { + return *x.SignatureRequestTimeoutNs + } + return 0 +} + +func (*ChainKeyConfig) ProtoMessage() {} + +func (x *ChainKeyConfig) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - file_subnet_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CatchUpPackageContents); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RegistryStoreUri); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubnetListRecord); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NiDkgId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitialNiDkgTranscriptRecord); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrincipalId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubnetId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDkgTranscriptId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifiedIDkgDealing); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + return ms + } + return mi.MessageOf(x) +} + +func (x *ChainKeyConfig) Reset() { + *x = ChainKeyConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_subnet_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChainKeyConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +type DealerTuple struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DealerId *NodeId `protobuf:"bytes,1,opt,name=dealer_id,json=dealerId,proto3" json:"dealer_id,omitempty"` + DealerIndex uint32 `protobuf:"varint,2,opt,name=dealer_index,json=dealerIndex,proto3" json:"dealer_index,omitempty"` +} + +// Deprecated: Use DealerTuple.ProtoReflect.Descriptor instead. +func (*DealerTuple) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{15} +} + +func (x *DealerTuple) GetDealerId() *NodeId { + if x != nil { + return x.DealerId + } + return nil +} + +func (x *DealerTuple) GetDealerIndex() uint32 { + if x != nil { + return x.DealerIndex + } + return 0 +} + +func (*DealerTuple) ProtoMessage() {} + +func (x *DealerTuple) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - file_subnet_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + return ms + } + return mi.MessageOf(x) +} + +func (x *DealerTuple) Reset() { + *x = DealerTuple{} + if protoimpl.UnsafeEnabled { + mi := &file_subnet_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DealerTuple) String() string { + return protoimpl.X.MessageStringOf(x) +} + +// Per subnet ECDSA configuration +// +// Deprecated; please use ChainKeyConfig instead. +type EcdsaConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Number of quadruples to create in advance. + QuadruplesToCreateInAdvance uint32 `protobuf:"varint,1,opt,name=quadruples_to_create_in_advance,json=quadruplesToCreateInAdvance,proto3" json:"quadruples_to_create_in_advance,omitempty"` + // Identifiers for threshold ECDSA keys held by the subnet. + KeyIds []*EcdsaKeyId `protobuf:"bytes,3,rep,name=key_ids,json=keyIds,proto3" json:"key_ids,omitempty"` + // The maximum number of signature requests that can be enqueued at once. + MaxQueueSize uint32 `protobuf:"varint,4,opt,name=max_queue_size,json=maxQueueSize,proto3" json:"max_queue_size,omitempty"` + // Signature requests will timeout after the given number of nano seconds. + SignatureRequestTimeoutNs *uint64 `protobuf:"varint,5,opt,name=signature_request_timeout_ns,json=signatureRequestTimeoutNs,proto3,oneof" json:"signature_request_timeout_ns,omitempty"` + // Key rotation period of a single node in milliseconds. + // If none is specified key rotation is disabled. + IdkgKeyRotationPeriodMs *uint64 `protobuf:"varint,6,opt,name=idkg_key_rotation_period_ms,json=idkgKeyRotationPeriodMs,proto3,oneof" json:"idkg_key_rotation_period_ms,omitempty"` +} + +// Deprecated: Use EcdsaConfig.ProtoReflect.Descriptor instead. +func (*EcdsaConfig) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{26} +} + +func (x *EcdsaConfig) GetIdkgKeyRotationPeriodMs() uint64 { + if x != nil && x.IdkgKeyRotationPeriodMs != nil { + return *x.IdkgKeyRotationPeriodMs + } + return 0 +} + +func (x *EcdsaConfig) GetKeyIds() []*EcdsaKeyId { + if x != nil { + return x.KeyIds + } + return nil +} + +func (x *EcdsaConfig) GetMaxQueueSize() uint32 { + if x != nil { + return x.MaxQueueSize + } + return 0 +} + +func (x *EcdsaConfig) GetQuadruplesToCreateInAdvance() uint32 { + if x != nil { + return x.QuadruplesToCreateInAdvance + } + return 0 +} + +func (x *EcdsaConfig) GetSignatureRequestTimeoutNs() uint64 { + if x != nil && x.SignatureRequestTimeoutNs != nil { + return *x.SignatureRequestTimeoutNs + } + return 0 +} + +func (*EcdsaConfig) ProtoMessage() {} + +func (x *EcdsaConfig) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - file_subnet_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PublicKey); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDkgTranscript); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DealerTuple); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignatureTuple); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDkgTranscriptParams); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDkgDealing); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDkgSignedDealingTuple); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitialIDkgDealings); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDkgComplaint); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IDkgOpening); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExtendedDerivationPath); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GossipConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubnetFeatures); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EcdsaConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SchnorrKeyId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MasterPublicKeyId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KeyConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChainKeyConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_subnet_proto_msgTypes[0].OneofWrappers = []interface{}{} - file_subnet_proto_msgTypes[25].OneofWrappers = []interface{}{} - file_subnet_proto_msgTypes[26].OneofWrappers = []interface{}{} - file_subnet_proto_msgTypes[28].OneofWrappers = []interface{}{ - (*MasterPublicKeyId_Ecdsa)(nil), - (*MasterPublicKeyId_Schnorr)(nil), + return ms } - file_subnet_proto_msgTypes[29].OneofWrappers = []interface{}{} - file_subnet_proto_msgTypes[30].OneofWrappers = []interface{}{} - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_subnet_proto_rawDesc, - NumEnums: 6, - NumMessages: 31, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_subnet_proto_goTypes, - DependencyIndexes: file_subnet_proto_depIdxs, - EnumInfos: file_subnet_proto_enumTypes, - MessageInfos: file_subnet_proto_msgTypes, - }.Build() - File_subnet_proto = out.File - file_subnet_proto_rawDesc = nil - file_subnet_proto_goTypes = nil - file_subnet_proto_depIdxs = nil + return mi.MessageOf(x) } -func file_subnet_proto_rawDescGZIP() []byte { - file_subnet_proto_rawDescOnce.Do(func() { - file_subnet_proto_rawDescData = protoimpl.X.CompressGZIP(file_subnet_proto_rawDescData) - }) - return file_subnet_proto_rawDescData +func (x *EcdsaConfig) Reset() { + *x = EcdsaConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_subnet_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func init() { file_subnet_proto_init() } +func (x *EcdsaConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} -// An algorithm ID. This is used to specify the signature algorithm associated with a public key. -type AlgorithmId int32 +// Types of curves that can be used for ECDSA signatures. +type EcdsaCurve int32 const ( - AlgorithmId_ALGORITHM_ID_UNSPECIFIED AlgorithmId = 0 - AlgorithmId_ALGORITHM_ID_MULTI_BLS12_381 AlgorithmId = 1 - AlgorithmId_ALGORITHM_ID_THRES_BLS12_381 AlgorithmId = 2 - AlgorithmId_ALGORITHM_ID_SCHNORR_SECP256K1 AlgorithmId = 3 - AlgorithmId_ALGORITHM_ID_STATIC_DH_SECP256K1 AlgorithmId = 4 - AlgorithmId_ALGORITHM_ID_HASH_SHA256 AlgorithmId = 5 - AlgorithmId_ALGORITHM_ID_TLS AlgorithmId = 6 - AlgorithmId_ALGORITHM_ID_ED25519 AlgorithmId = 7 - AlgorithmId_ALGORITHM_ID_SECP256K1 AlgorithmId = 8 - AlgorithmId_ALGORITHM_ID_GROTH20_BLS12_381 AlgorithmId = 9 - AlgorithmId_ALGORITHM_ID_NIDKG_GROTH20_BLS12_381 AlgorithmId = 10 - AlgorithmId_ALGORITHM_ID_ECDSA_P256 AlgorithmId = 11 - AlgorithmId_ALGORITHM_ID_ECDSA_SECP_256K1 AlgorithmId = 12 - AlgorithmId_ALGORITHM_ID_IC_CANISTER_SIGNATURE AlgorithmId = 13 - AlgorithmId_ALGORITHM_ID_RSA_SHA256 AlgorithmId = 14 - AlgorithmId_ALGORITHM_ID_THRESHOLD_ECDSA_SECP_256K1 AlgorithmId = 15 - AlgorithmId_ALGORITHM_ID_MEGA_SECP_256K1 AlgorithmId = 16 - AlgorithmId_ALGORITHM_ID_THRESHOLD_ECDSA_SECP_256R1 AlgorithmId = 17 - AlgorithmId_ALGORITHM_ID_THRESHOLD_SCHNORR_BIP340 AlgorithmId = 18 - AlgorithmId_ALGORITHM_ID_THRESHOLD_ED25519 AlgorithmId = 19 + EcdsaCurve_ECDSA_CURVE_UNSPECIFIED EcdsaCurve = 0 + EcdsaCurve_ECDSA_CURVE_SECP256K1 EcdsaCurve = 1 ) -func (AlgorithmId) Descriptor() protoreflect.EnumDescriptor { - return file_subnet_proto_enumTypes[2].Descriptor() +func (EcdsaCurve) Descriptor() protoreflect.EnumDescriptor { + return file_subnet_proto_enumTypes[0].Descriptor() } -func (x AlgorithmId) Enum() *AlgorithmId { - p := new(AlgorithmId) +func (x EcdsaCurve) Enum() *EcdsaCurve { + p := new(EcdsaCurve) *p = x return p } -// Deprecated: Use AlgorithmId.Descriptor instead. -func (AlgorithmId) EnumDescriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{2} +// Deprecated: Use EcdsaCurve.Descriptor instead. +func (EcdsaCurve) EnumDescriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{0} } -func (x AlgorithmId) Number() protoreflect.EnumNumber { +func (x EcdsaCurve) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -func (x AlgorithmId) String() string { +func (x EcdsaCurve) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (AlgorithmId) Type() protoreflect.EnumType { - return &file_subnet_proto_enumTypes[2] +func (EcdsaCurve) Type() protoreflect.EnumType { + return &file_subnet_proto_enumTypes[0] } -// Contains the initial DKG transcripts for the subnet and materials to construct a base CUP (i.e. -// a CUP with no dependencies on previous CUPs or blocks). Such CUP materials can be used to -// construct the genesis CUP or a recovery CUP in the event of a subnet stall. -type CatchUpPackageContents struct { +type EcdsaInitialization struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Initial non-interactive low-threshold DKG transcript - InitialNiDkgTranscriptLowThreshold *InitialNiDkgTranscriptRecord `protobuf:"bytes,1,opt,name=initial_ni_dkg_transcript_low_threshold,json=initialNiDkgTranscriptLowThreshold,proto3" json:"initial_ni_dkg_transcript_low_threshold,omitempty"` - // Initial non-interactive high-threshold DKG transcript - InitialNiDkgTranscriptHighThreshold *InitialNiDkgTranscriptRecord `protobuf:"bytes,2,opt,name=initial_ni_dkg_transcript_high_threshold,json=initialNiDkgTranscriptHighThreshold,proto3" json:"initial_ni_dkg_transcript_high_threshold,omitempty"` - // The blockchain height that the CUP should have - Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` - // Block time for the CUP's block - Time uint64 `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty"` - // The hash of the state that the subnet should use - StateHash []byte `protobuf:"bytes,5,opt,name=state_hash,json=stateHash,proto3" json:"state_hash,omitempty"` - // A uri from which data to replace the registry local store should be downloaded - RegistryStoreUri *RegistryStoreUri `protobuf:"bytes,6,opt,name=registry_store_uri,json=registryStoreUri,proto3" json:"registry_store_uri,omitempty"` - // / The initial ECDSA dealings for boot strapping target subnets. - EcdsaInitializations []*EcdsaInitialization `protobuf:"bytes,7,rep,name=ecdsa_initializations,json=ecdsaInitializations,proto3" json:"ecdsa_initializations,omitempty"` -} - -// Deprecated: Use CatchUpPackageContents.ProtoReflect.Descriptor instead. -func (*CatchUpPackageContents) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{3} -} - -func (x *CatchUpPackageContents) GetEcdsaInitializations() []*EcdsaInitialization { - if x != nil { - return x.EcdsaInitializations - } - return nil -} - -func (x *CatchUpPackageContents) GetHeight() uint64 { - if x != nil { - return x.Height - } - return 0 -} - -func (x *CatchUpPackageContents) GetInitialNiDkgTranscriptHighThreshold() *InitialNiDkgTranscriptRecord { - if x != nil { - return x.InitialNiDkgTranscriptHighThreshold - } - return nil + KeyId *EcdsaKeyId `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + Dealings *InitialIDkgDealings `protobuf:"bytes,2,opt,name=dealings,proto3" json:"dealings,omitempty"` } -func (x *CatchUpPackageContents) GetInitialNiDkgTranscriptLowThreshold() *InitialNiDkgTranscriptRecord { - if x != nil { - return x.InitialNiDkgTranscriptLowThreshold - } - return nil +// Deprecated: Use EcdsaInitialization.ProtoReflect.Descriptor instead. +func (*EcdsaInitialization) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{2} } -func (x *CatchUpPackageContents) GetRegistryStoreUri() *RegistryStoreUri { +func (x *EcdsaInitialization) GetDealings() *InitialIDkgDealings { if x != nil { - return x.RegistryStoreUri + return x.Dealings } return nil } -func (x *CatchUpPackageContents) GetStateHash() []byte { +func (x *EcdsaInitialization) GetKeyId() *EcdsaKeyId { if x != nil { - return x.StateHash + return x.KeyId } return nil } -func (x *CatchUpPackageContents) GetTime() uint64 { - if x != nil { - return x.Time - } - return 0 -} - -func (*CatchUpPackageContents) ProtoMessage() {} +func (*EcdsaInitialization) ProtoMessage() {} -func (x *CatchUpPackageContents) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[3] +func (x *EcdsaInitialization) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1414,64 +1305,51 @@ func (x *CatchUpPackageContents) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -func (x *CatchUpPackageContents) Reset() { - *x = CatchUpPackageContents{} +func (x *EcdsaInitialization) Reset() { + *x = EcdsaInitialization{} if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[3] + mi := &file_subnet_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *CatchUpPackageContents) String() string { +func (x *EcdsaInitialization) String() string { return protoimpl.X.MessageStringOf(x) } -// Per-subnet chain key configuration -type ChainKeyConfig struct { +type EcdsaKeyId struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Configurations for keys held by the subnet. - KeyConfigs []*KeyConfig `protobuf:"bytes,1,rep,name=key_configs,json=keyConfigs,proto3" json:"key_configs,omitempty"` - // Signature requests will timeout after the given number of nano seconds. - SignatureRequestTimeoutNs *uint64 `protobuf:"varint,2,opt,name=signature_request_timeout_ns,json=signatureRequestTimeoutNs,proto3,oneof" json:"signature_request_timeout_ns,omitempty"` - // Key rotation period of a single node in milliseconds. - // If none is specified key rotation is disabled. - IdkgKeyRotationPeriodMs *uint64 `protobuf:"varint,3,opt,name=idkg_key_rotation_period_ms,json=idkgKeyRotationPeriodMs,proto3,oneof" json:"idkg_key_rotation_period_ms,omitempty"` -} - -// Deprecated: Use ChainKeyConfig.ProtoReflect.Descriptor instead. -func (*ChainKeyConfig) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{30} + Curve EcdsaCurve `protobuf:"varint,1,opt,name=curve,proto3,enum=registry.subnet.v1.EcdsaCurve" json:"curve,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } -func (x *ChainKeyConfig) GetIdkgKeyRotationPeriodMs() uint64 { - if x != nil && x.IdkgKeyRotationPeriodMs != nil { - return *x.IdkgKeyRotationPeriodMs - } - return 0 +// Deprecated: Use EcdsaKeyId.ProtoReflect.Descriptor instead. +func (*EcdsaKeyId) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{1} } -func (x *ChainKeyConfig) GetKeyConfigs() []*KeyConfig { +func (x *EcdsaKeyId) GetCurve() EcdsaCurve { if x != nil { - return x.KeyConfigs + return x.Curve } - return nil + return EcdsaCurve_ECDSA_CURVE_UNSPECIFIED } -func (x *ChainKeyConfig) GetSignatureRequestTimeoutNs() uint64 { - if x != nil && x.SignatureRequestTimeoutNs != nil { - return *x.SignatureRequestTimeoutNs +func (x *EcdsaKeyId) GetName() string { + if x != nil { + return x.Name } - return 0 + return "" } -func (*ChainKeyConfig) ProtoMessage() {} +func (*EcdsaKeyId) ProtoMessage() {} -func (x *ChainKeyConfig) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[30] +func (x *EcdsaKeyId) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1482,51 +1360,51 @@ func (x *ChainKeyConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -func (x *ChainKeyConfig) Reset() { - *x = ChainKeyConfig{} +func (x *EcdsaKeyId) Reset() { + *x = EcdsaKeyId{} if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[30] + mi := &file_subnet_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ChainKeyConfig) String() string { +func (x *EcdsaKeyId) String() string { return protoimpl.X.MessageStringOf(x) } -type DealerTuple struct { +type ExtendedDerivationPath struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DealerId *NodeId `protobuf:"bytes,1,opt,name=dealer_id,json=dealerId,proto3" json:"dealer_id,omitempty"` - DealerIndex uint32 `protobuf:"varint,2,opt,name=dealer_index,json=dealerIndex,proto3" json:"dealer_index,omitempty"` + Caller *PrincipalId `protobuf:"bytes,1,opt,name=caller,proto3" json:"caller,omitempty"` + DerivationPath [][]byte `protobuf:"bytes,2,rep,name=derivation_path,json=derivationPath,proto3" json:"derivation_path,omitempty"` } -// Deprecated: Use DealerTuple.ProtoReflect.Descriptor instead. -func (*DealerTuple) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{15} +// Deprecated: Use ExtendedDerivationPath.ProtoReflect.Descriptor instead. +func (*ExtendedDerivationPath) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{23} } -func (x *DealerTuple) GetDealerId() *NodeId { +func (x *ExtendedDerivationPath) GetCaller() *PrincipalId { if x != nil { - return x.DealerId + return x.Caller } return nil } -func (x *DealerTuple) GetDealerIndex() uint32 { +func (x *ExtendedDerivationPath) GetDerivationPath() [][]byte { if x != nil { - return x.DealerIndex + return x.DerivationPath } - return 0 + return nil } -func (*DealerTuple) ProtoMessage() {} +func (*ExtendedDerivationPath) ProtoMessage() {} -func (x *DealerTuple) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[15] +func (x *ExtendedDerivationPath) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1537,84 +1415,109 @@ func (x *DealerTuple) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -func (x *DealerTuple) Reset() { - *x = DealerTuple{} +func (x *ExtendedDerivationPath) Reset() { + *x = ExtendedDerivationPath{} if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[15] + mi := &file_subnet_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *DealerTuple) String() string { +func (x *ExtendedDerivationPath) String() string { return protoimpl.X.MessageStringOf(x) } -// Per subnet ECDSA configuration -// -// Deprecated; please use ChainKeyConfig instead. -type EcdsaConfig struct { +// Per subnet P2P configuration +// Note: protoc is mangling the name P2PConfig to P2pConfig +type GossipConfig struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Number of quadruples to create in advance. - QuadruplesToCreateInAdvance uint32 `protobuf:"varint,1,opt,name=quadruples_to_create_in_advance,json=quadruplesToCreateInAdvance,proto3" json:"quadruples_to_create_in_advance,omitempty"` - // Identifiers for threshold ECDSA keys held by the subnet. - KeyIds []*EcdsaKeyId `protobuf:"bytes,3,rep,name=key_ids,json=keyIds,proto3" json:"key_ids,omitempty"` - // The maximum number of signature requests that can be enqueued at once. - MaxQueueSize uint32 `protobuf:"varint,4,opt,name=max_queue_size,json=maxQueueSize,proto3" json:"max_queue_size,omitempty"` - // Signature requests will timeout after the given number of nano seconds. - SignatureRequestTimeoutNs *uint64 `protobuf:"varint,5,opt,name=signature_request_timeout_ns,json=signatureRequestTimeoutNs,proto3,oneof" json:"signature_request_timeout_ns,omitempty"` - // Key rotation period of a single node in milliseconds. - // If none is specified key rotation is disabled. - IdkgKeyRotationPeriodMs *uint64 `protobuf:"varint,6,opt,name=idkg_key_rotation_period_ms,json=idkgKeyRotationPeriodMs,proto3,oneof" json:"idkg_key_rotation_period_ms,omitempty"` -} - -// Deprecated: Use EcdsaConfig.ProtoReflect.Descriptor instead. -func (*EcdsaConfig) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{26} -} - -func (x *EcdsaConfig) GetIdkgKeyRotationPeriodMs() uint64 { - if x != nil && x.IdkgKeyRotationPeriodMs != nil { - return *x.IdkgKeyRotationPeriodMs - } - return 0 -} - -func (x *EcdsaConfig) GetKeyIds() []*EcdsaKeyId { + // max outstanding request per peer MIN/DEFAULT/MAX 1/20/200 + MaxArtifactStreamsPerPeer uint32 `protobuf:"varint,1,opt,name=max_artifact_streams_per_peer,json=maxArtifactStreamsPerPeer,proto3" json:"max_artifact_streams_per_peer,omitempty"` + // timeout for a outstanding request 3_000/15_000/180_000 + MaxChunkWaitMs uint32 `protobuf:"varint,2,opt,name=max_chunk_wait_ms,json=maxChunkWaitMs,proto3" json:"max_chunk_wait_ms,omitempty"` + // max duplicate requests in underutilized networks 1/28/6000 + MaxDuplicity uint32 `protobuf:"varint,3,opt,name=max_duplicity,json=maxDuplicity,proto3" json:"max_duplicity,omitempty"` + // maximum chunk size supported on this subnet 1024/4096/131_072 + MaxChunkSize uint32 `protobuf:"varint,4,opt,name=max_chunk_size,json=maxChunkSize,proto3" json:"max_chunk_size,omitempty"` + // history size for receive check 1_000/5_000/30_000 + ReceiveCheckCacheSize uint32 `protobuf:"varint,5,opt,name=receive_check_cache_size,json=receiveCheckCacheSize,proto3" json:"receive_check_cache_size,omitempty"` + // period for re evaluating the priority function. 1_000/3_000/30_000 + PfnEvaluationPeriodMs uint32 `protobuf:"varint,6,opt,name=pfn_evaluation_period_ms,json=pfnEvaluationPeriodMs,proto3" json:"pfn_evaluation_period_ms,omitempty"` + // period for polling the registry for updates 1_000/3_000/30_000 + RegistryPollPeriodMs uint32 `protobuf:"varint,7,opt,name=registry_poll_period_ms,json=registryPollPeriodMs,proto3" json:"registry_poll_period_ms,omitempty"` + // period for sending a retransmission request + RetransmissionRequestMs uint32 `protobuf:"varint,8,opt,name=retransmission_request_ms,json=retransmissionRequestMs,proto3" json:"retransmission_request_ms,omitempty"` // config for advert distribution. +} + +// Deprecated: Use GossipConfig.ProtoReflect.Descriptor instead. +func (*GossipConfig) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{24} +} + +func (x *GossipConfig) GetMaxArtifactStreamsPerPeer() uint32 { if x != nil { - return x.KeyIds + return x.MaxArtifactStreamsPerPeer } - return nil + return 0 } -func (x *EcdsaConfig) GetMaxQueueSize() uint32 { +func (x *GossipConfig) GetMaxChunkSize() uint32 { if x != nil { - return x.MaxQueueSize + return x.MaxChunkSize } return 0 } -func (x *EcdsaConfig) GetQuadruplesToCreateInAdvance() uint32 { +func (x *GossipConfig) GetMaxChunkWaitMs() uint32 { if x != nil { - return x.QuadruplesToCreateInAdvance + return x.MaxChunkWaitMs } return 0 } -func (x *EcdsaConfig) GetSignatureRequestTimeoutNs() uint64 { - if x != nil && x.SignatureRequestTimeoutNs != nil { - return *x.SignatureRequestTimeoutNs +func (x *GossipConfig) GetMaxDuplicity() uint32 { + if x != nil { + return x.MaxDuplicity } return 0 } -func (*EcdsaConfig) ProtoMessage() {} +func (x *GossipConfig) GetPfnEvaluationPeriodMs() uint32 { + if x != nil { + return x.PfnEvaluationPeriodMs + } + return 0 +} -func (x *EcdsaConfig) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[26] +func (x *GossipConfig) GetReceiveCheckCacheSize() uint32 { + if x != nil { + return x.ReceiveCheckCacheSize + } + return 0 +} + +func (x *GossipConfig) GetRegistryPollPeriodMs() uint32 { + if x != nil { + return x.RegistryPollPeriodMs + } + return 0 +} + +func (x *GossipConfig) GetRetransmissionRequestMs() uint32 { + if x != nil { + return x.RetransmissionRequestMs + } + return 0 +} + +func (*GossipConfig) ProtoMessage() {} + +func (x *GossipConfig) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1625,86 +1528,59 @@ func (x *EcdsaConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -func (x *EcdsaConfig) Reset() { - *x = EcdsaConfig{} +func (x *GossipConfig) Reset() { + *x = GossipConfig{} if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[26] + mi := &file_subnet_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EcdsaConfig) String() string { +func (x *GossipConfig) String() string { return protoimpl.X.MessageStringOf(x) } -// Types of curves that can be used for ECDSA signatures. -type EcdsaCurve int32 - -const ( - EcdsaCurve_ECDSA_CURVE_UNSPECIFIED EcdsaCurve = 0 - EcdsaCurve_ECDSA_CURVE_SECP256K1 EcdsaCurve = 1 -) - -func (EcdsaCurve) Descriptor() protoreflect.EnumDescriptor { - return file_subnet_proto_enumTypes[0].Descriptor() -} - -func (x EcdsaCurve) Enum() *EcdsaCurve { - p := new(EcdsaCurve) - *p = x - return p -} - -// Deprecated: Use EcdsaCurve.Descriptor instead. -func (EcdsaCurve) EnumDescriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{0} -} - -func (x EcdsaCurve) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -func (x EcdsaCurve) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (EcdsaCurve) Type() protoreflect.EnumType { - return &file_subnet_proto_enumTypes[0] -} - -type EcdsaInitialization struct { +type IDkgComplaint struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - KeyId *EcdsaKeyId `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` - Dealings *InitialIDkgDealings `protobuf:"bytes,2,opt,name=dealings,proto3" json:"dealings,omitempty"` + TranscriptId *IDkgTranscriptId `protobuf:"bytes,1,opt,name=transcript_id,json=transcriptId,proto3" json:"transcript_id,omitempty"` + Dealer *NodeId `protobuf:"bytes,2,opt,name=dealer,proto3" json:"dealer,omitempty"` + RawComplaint []byte `protobuf:"bytes,3,opt,name=raw_complaint,json=rawComplaint,proto3" json:"raw_complaint,omitempty"` } -// Deprecated: Use EcdsaInitialization.ProtoReflect.Descriptor instead. -func (*EcdsaInitialization) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{2} +// Deprecated: Use IDkgComplaint.ProtoReflect.Descriptor instead. +func (*IDkgComplaint) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{21} } -func (x *EcdsaInitialization) GetDealings() *InitialIDkgDealings { +func (x *IDkgComplaint) GetDealer() *NodeId { if x != nil { - return x.Dealings + return x.Dealer } return nil } -func (x *EcdsaInitialization) GetKeyId() *EcdsaKeyId { +func (x *IDkgComplaint) GetRawComplaint() []byte { if x != nil { - return x.KeyId + return x.RawComplaint } return nil } -func (*EcdsaInitialization) ProtoMessage() {} +func (x *IDkgComplaint) GetTranscriptId() *IDkgTranscriptId { + if x != nil { + return x.TranscriptId + } + return nil +} -func (x *EcdsaInitialization) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[2] +func (*IDkgComplaint) ProtoMessage() {} + +func (x *IDkgComplaint) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1715,51 +1591,51 @@ func (x *EcdsaInitialization) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -func (x *EcdsaInitialization) Reset() { - *x = EcdsaInitialization{} +func (x *IDkgComplaint) Reset() { + *x = IDkgComplaint{} if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[2] + mi := &file_subnet_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EcdsaInitialization) String() string { +func (x *IDkgComplaint) String() string { return protoimpl.X.MessageStringOf(x) } -type EcdsaKeyId struct { +type IDkgDealing struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Curve EcdsaCurve `protobuf:"varint,1,opt,name=curve,proto3,enum=registry.subnet.v1.EcdsaCurve" json:"curve,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + TranscriptId *IDkgTranscriptId `protobuf:"bytes,1,opt,name=transcript_id,json=transcriptId,proto3" json:"transcript_id,omitempty"` + RawDealing []byte `protobuf:"bytes,2,opt,name=raw_dealing,json=rawDealing,proto3" json:"raw_dealing,omitempty"` // serialised InternalRawDealing } -// Deprecated: Use EcdsaKeyId.ProtoReflect.Descriptor instead. -func (*EcdsaKeyId) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{1} +// Deprecated: Use IDkgDealing.ProtoReflect.Descriptor instead. +func (*IDkgDealing) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{18} } -func (x *EcdsaKeyId) GetCurve() EcdsaCurve { +func (x *IDkgDealing) GetRawDealing() []byte { if x != nil { - return x.Curve + return x.RawDealing } - return EcdsaCurve_ECDSA_CURVE_UNSPECIFIED + return nil } -func (x *EcdsaKeyId) GetName() string { +func (x *IDkgDealing) GetTranscriptId() *IDkgTranscriptId { if x != nil { - return x.Name + return x.TranscriptId } - return "" + return nil } -func (*EcdsaKeyId) ProtoMessage() {} +func (*IDkgDealing) ProtoMessage() {} -func (x *EcdsaKeyId) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[1] +func (x *IDkgDealing) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1770,51 +1646,59 @@ func (x *EcdsaKeyId) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -func (x *EcdsaKeyId) Reset() { - *x = EcdsaKeyId{} +func (x *IDkgDealing) Reset() { + *x = IDkgDealing{} if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[1] + mi := &file_subnet_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EcdsaKeyId) String() string { +func (x *IDkgDealing) String() string { return protoimpl.X.MessageStringOf(x) } -type ExtendedDerivationPath struct { +type IDkgOpening struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Caller *PrincipalId `protobuf:"bytes,1,opt,name=caller,proto3" json:"caller,omitempty"` - DerivationPath [][]byte `protobuf:"bytes,2,rep,name=derivation_path,json=derivationPath,proto3" json:"derivation_path,omitempty"` + TranscriptId *IDkgTranscriptId `protobuf:"bytes,1,opt,name=transcript_id,json=transcriptId,proto3" json:"transcript_id,omitempty"` + Dealer *NodeId `protobuf:"bytes,2,opt,name=dealer,proto3" json:"dealer,omitempty"` + RawOpening []byte `protobuf:"bytes,3,opt,name=raw_opening,json=rawOpening,proto3" json:"raw_opening,omitempty"` } -// Deprecated: Use ExtendedDerivationPath.ProtoReflect.Descriptor instead. -func (*ExtendedDerivationPath) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{23} +// Deprecated: Use IDkgOpening.ProtoReflect.Descriptor instead. +func (*IDkgOpening) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{22} } -func (x *ExtendedDerivationPath) GetCaller() *PrincipalId { +func (x *IDkgOpening) GetDealer() *NodeId { if x != nil { - return x.Caller + return x.Dealer } return nil } -func (x *ExtendedDerivationPath) GetDerivationPath() [][]byte { +func (x *IDkgOpening) GetRawOpening() []byte { if x != nil { - return x.DerivationPath + return x.RawOpening } return nil } -func (*ExtendedDerivationPath) ProtoMessage() {} +func (x *IDkgOpening) GetTranscriptId() *IDkgTranscriptId { + if x != nil { + return x.TranscriptId + } + return nil +} -func (x *ExtendedDerivationPath) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[23] +func (*IDkgOpening) ProtoMessage() {} + +func (x *IDkgOpening) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1825,109 +1709,59 @@ func (x *ExtendedDerivationPath) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -func (x *ExtendedDerivationPath) Reset() { - *x = ExtendedDerivationPath{} +func (x *IDkgOpening) Reset() { + *x = IDkgOpening{} if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[23] + mi := &file_subnet_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ExtendedDerivationPath) String() string { +func (x *IDkgOpening) String() string { return protoimpl.X.MessageStringOf(x) } -// Per subnet P2P configuration -// Note: protoc is mangling the name P2PConfig to P2pConfig -type GossipConfig struct { +type IDkgSignedDealingTuple struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // max outstanding request per peer MIN/DEFAULT/MAX 1/20/200 - MaxArtifactStreamsPerPeer uint32 `protobuf:"varint,1,opt,name=max_artifact_streams_per_peer,json=maxArtifactStreamsPerPeer,proto3" json:"max_artifact_streams_per_peer,omitempty"` - // timeout for a outstanding request 3_000/15_000/180_000 - MaxChunkWaitMs uint32 `protobuf:"varint,2,opt,name=max_chunk_wait_ms,json=maxChunkWaitMs,proto3" json:"max_chunk_wait_ms,omitempty"` - // max duplicate requests in underutilized networks 1/28/6000 - MaxDuplicity uint32 `protobuf:"varint,3,opt,name=max_duplicity,json=maxDuplicity,proto3" json:"max_duplicity,omitempty"` - // maximum chunk size supported on this subnet 1024/4096/131_072 - MaxChunkSize uint32 `protobuf:"varint,4,opt,name=max_chunk_size,json=maxChunkSize,proto3" json:"max_chunk_size,omitempty"` - // history size for receive check 1_000/5_000/30_000 - ReceiveCheckCacheSize uint32 `protobuf:"varint,5,opt,name=receive_check_cache_size,json=receiveCheckCacheSize,proto3" json:"receive_check_cache_size,omitempty"` - // period for re evaluating the priority function. 1_000/3_000/30_000 - PfnEvaluationPeriodMs uint32 `protobuf:"varint,6,opt,name=pfn_evaluation_period_ms,json=pfnEvaluationPeriodMs,proto3" json:"pfn_evaluation_period_ms,omitempty"` - // period for polling the registry for updates 1_000/3_000/30_000 - RegistryPollPeriodMs uint32 `protobuf:"varint,7,opt,name=registry_poll_period_ms,json=registryPollPeriodMs,proto3" json:"registry_poll_period_ms,omitempty"` - // period for sending a retransmission request - RetransmissionRequestMs uint32 `protobuf:"varint,8,opt,name=retransmission_request_ms,json=retransmissionRequestMs,proto3" json:"retransmission_request_ms,omitempty"` // config for advert distribution. -} - -// Deprecated: Use GossipConfig.ProtoReflect.Descriptor instead. -func (*GossipConfig) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{24} -} - -func (x *GossipConfig) GetMaxArtifactStreamsPerPeer() uint32 { - if x != nil { - return x.MaxArtifactStreamsPerPeer - } - return 0 -} - -func (x *GossipConfig) GetMaxChunkSize() uint32 { - if x != nil { - return x.MaxChunkSize - } - return 0 -} - -func (x *GossipConfig) GetMaxChunkWaitMs() uint32 { - if x != nil { - return x.MaxChunkWaitMs - } - return 0 -} - -func (x *GossipConfig) GetMaxDuplicity() uint32 { - if x != nil { - return x.MaxDuplicity - } - return 0 + Dealer *NodeId `protobuf:"bytes,1,opt,name=dealer,proto3" json:"dealer,omitempty"` + Dealing *IDkgDealing `protobuf:"bytes,2,opt,name=dealing,proto3" json:"dealing,omitempty"` + Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` } -func (x *GossipConfig) GetPfnEvaluationPeriodMs() uint32 { - if x != nil { - return x.PfnEvaluationPeriodMs - } - return 0 +// Deprecated: Use IDkgSignedDealingTuple.ProtoReflect.Descriptor instead. +func (*IDkgSignedDealingTuple) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{19} } -func (x *GossipConfig) GetReceiveCheckCacheSize() uint32 { +func (x *IDkgSignedDealingTuple) GetDealer() *NodeId { if x != nil { - return x.ReceiveCheckCacheSize + return x.Dealer } - return 0 + return nil } -func (x *GossipConfig) GetRegistryPollPeriodMs() uint32 { +func (x *IDkgSignedDealingTuple) GetDealing() *IDkgDealing { if x != nil { - return x.RegistryPollPeriodMs + return x.Dealing } - return 0 + return nil } -func (x *GossipConfig) GetRetransmissionRequestMs() uint32 { +func (x *IDkgSignedDealingTuple) GetSignature() []byte { if x != nil { - return x.RetransmissionRequestMs + return x.Signature } - return 0 + return nil } -func (*GossipConfig) ProtoMessage() {} +func (*IDkgSignedDealingTuple) ProtoMessage() {} -func (x *GossipConfig) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[24] +func (x *IDkgSignedDealingTuple) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1938,114 +1772,99 @@ func (x *GossipConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -func (x *GossipConfig) Reset() { - *x = GossipConfig{} +func (x *IDkgSignedDealingTuple) Reset() { + *x = IDkgSignedDealingTuple{} if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[24] + mi := &file_subnet_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *GossipConfig) String() string { +func (x *IDkgSignedDealingTuple) String() string { return protoimpl.X.MessageStringOf(x) } -type IDkgComplaint struct { +type IDkgTranscript struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - TranscriptId *IDkgTranscriptId `protobuf:"bytes,1,opt,name=transcript_id,json=transcriptId,proto3" json:"transcript_id,omitempty"` - Dealer *NodeId `protobuf:"bytes,2,opt,name=dealer,proto3" json:"dealer,omitempty"` - RawComplaint []byte `protobuf:"bytes,3,opt,name=raw_complaint,json=rawComplaint,proto3" json:"raw_complaint,omitempty"` + TranscriptId *IDkgTranscriptId `protobuf:"bytes,1,opt,name=transcript_id,json=transcriptId,proto3" json:"transcript_id,omitempty"` + Dealers []*NodeId `protobuf:"bytes,2,rep,name=dealers,proto3" json:"dealers,omitempty"` + Receivers []*NodeId `protobuf:"bytes,3,rep,name=receivers,proto3" json:"receivers,omitempty"` + RegistryVersion uint64 `protobuf:"varint,4,opt,name=registry_version,json=registryVersion,proto3" json:"registry_version,omitempty"` + VerifiedDealings []*VerifiedIDkgDealing `protobuf:"bytes,5,rep,name=verified_dealings,json=verifiedDealings,proto3" json:"verified_dealings,omitempty"` + TranscriptType []byte `protobuf:"bytes,6,opt,name=transcript_type,json=transcriptType,proto3" json:"transcript_type,omitempty"` // CBOR serialized IDkgTranscriptType + AlgorithmId AlgorithmId `protobuf:"varint,7,opt,name=algorithm_id,json=algorithmId,proto3,enum=registry.subnet.v1.AlgorithmId" json:"algorithm_id,omitempty"` + RawTranscript []byte `protobuf:"bytes,8,opt,name=raw_transcript,json=rawTranscript,proto3" json:"raw_transcript,omitempty"` // serialised InternalRawTranscript } -// Deprecated: Use IDkgComplaint.ProtoReflect.Descriptor instead. -func (*IDkgComplaint) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{21} +// Deprecated: Use IDkgTranscript.ProtoReflect.Descriptor instead. +func (*IDkgTranscript) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{14} } -func (x *IDkgComplaint) GetDealer() *NodeId { +func (x *IDkgTranscript) GetAlgorithmId() AlgorithmId { if x != nil { - return x.Dealer + return x.AlgorithmId } - return nil + return AlgorithmId_ALGORITHM_ID_UNSPECIFIED } -func (x *IDkgComplaint) GetRawComplaint() []byte { +func (x *IDkgTranscript) GetDealers() []*NodeId { if x != nil { - return x.RawComplaint + return x.Dealers } return nil } -func (x *IDkgComplaint) GetTranscriptId() *IDkgTranscriptId { +func (x *IDkgTranscript) GetRawTranscript() []byte { if x != nil { - return x.TranscriptId + return x.RawTranscript } return nil } -func (*IDkgComplaint) ProtoMessage() {} - -func (x *IDkgComplaint) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *IDkgTranscript) GetReceivers() []*NodeId { + if x != nil { + return x.Receivers } - return mi.MessageOf(x) + return nil } -func (x *IDkgComplaint) Reset() { - *x = IDkgComplaint{} - if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *IDkgTranscript) GetRegistryVersion() uint64 { + if x != nil { + return x.RegistryVersion } + return 0 } -func (x *IDkgComplaint) String() string { - return protoimpl.X.MessageStringOf(x) -} - -type IDkgDealing struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TranscriptId *IDkgTranscriptId `protobuf:"bytes,1,opt,name=transcript_id,json=transcriptId,proto3" json:"transcript_id,omitempty"` - RawDealing []byte `protobuf:"bytes,2,opt,name=raw_dealing,json=rawDealing,proto3" json:"raw_dealing,omitempty"` // serialised InternalRawDealing -} - -// Deprecated: Use IDkgDealing.ProtoReflect.Descriptor instead. -func (*IDkgDealing) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{18} +func (x *IDkgTranscript) GetTranscriptId() *IDkgTranscriptId { + if x != nil { + return x.TranscriptId + } + return nil } -func (x *IDkgDealing) GetRawDealing() []byte { +func (x *IDkgTranscript) GetTranscriptType() []byte { if x != nil { - return x.RawDealing + return x.TranscriptType } return nil } -func (x *IDkgDealing) GetTranscriptId() *IDkgTranscriptId { +func (x *IDkgTranscript) GetVerifiedDealings() []*VerifiedIDkgDealing { if x != nil { - return x.TranscriptId + return x.VerifiedDealings } return nil } -func (*IDkgDealing) ProtoMessage() {} +func (*IDkgTranscript) ProtoMessage() {} -func (x *IDkgDealing) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[18] +func (x *IDkgTranscript) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2056,59 +1875,59 @@ func (x *IDkgDealing) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -func (x *IDkgDealing) Reset() { - *x = IDkgDealing{} +func (x *IDkgTranscript) Reset() { + *x = IDkgTranscript{} if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[18] + mi := &file_subnet_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *IDkgDealing) String() string { +func (x *IDkgTranscript) String() string { return protoimpl.X.MessageStringOf(x) } -type IDkgOpening struct { +type IDkgTranscriptId struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - TranscriptId *IDkgTranscriptId `protobuf:"bytes,1,opt,name=transcript_id,json=transcriptId,proto3" json:"transcript_id,omitempty"` - Dealer *NodeId `protobuf:"bytes,2,opt,name=dealer,proto3" json:"dealer,omitempty"` - RawOpening []byte `protobuf:"bytes,3,opt,name=raw_opening,json=rawOpening,proto3" json:"raw_opening,omitempty"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + SubnetId *SubnetId `protobuf:"bytes,2,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"` + SourceHeight uint64 `protobuf:"varint,3,opt,name=source_height,json=sourceHeight,proto3" json:"source_height,omitempty"` } -// Deprecated: Use IDkgOpening.ProtoReflect.Descriptor instead. -func (*IDkgOpening) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{22} +// Deprecated: Use IDkgTranscriptId.ProtoReflect.Descriptor instead. +func (*IDkgTranscriptId) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{10} } -func (x *IDkgOpening) GetDealer() *NodeId { +func (x *IDkgTranscriptId) GetId() uint64 { if x != nil { - return x.Dealer + return x.Id } - return nil + return 0 } -func (x *IDkgOpening) GetRawOpening() []byte { +func (x *IDkgTranscriptId) GetSourceHeight() uint64 { if x != nil { - return x.RawOpening + return x.SourceHeight } - return nil + return 0 } -func (x *IDkgOpening) GetTranscriptId() *IDkgTranscriptId { +func (x *IDkgTranscriptId) GetSubnetId() *SubnetId { if x != nil { - return x.TranscriptId + return x.SubnetId } return nil } -func (*IDkgOpening) ProtoMessage() {} +func (*IDkgTranscriptId) ProtoMessage() {} -func (x *IDkgOpening) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[22] +func (x *IDkgTranscriptId) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2119,267 +1938,38 @@ func (x *IDkgOpening) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -func (x *IDkgOpening) Reset() { - *x = IDkgOpening{} +func (x *IDkgTranscriptId) Reset() { + *x = IDkgTranscriptId{} if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[22] + mi := &file_subnet_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *IDkgOpening) String() string { +func (x *IDkgTranscriptId) String() string { return protoimpl.X.MessageStringOf(x) } -type IDkgSignedDealingTuple struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +type IDkgTranscriptOperation int32 - Dealer *NodeId `protobuf:"bytes,1,opt,name=dealer,proto3" json:"dealer,omitempty"` - Dealing *IDkgDealing `protobuf:"bytes,2,opt,name=dealing,proto3" json:"dealing,omitempty"` - Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` +const ( + IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_UNSPECIFIED IDkgTranscriptOperation = 0 + IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_RANDOM IDkgTranscriptOperation = 1 + IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_RESHARE_OF_MASKED IDkgTranscriptOperation = 2 + IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_RESHARE_OF_UNMASKED IDkgTranscriptOperation = 3 + IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_UNMASKED_TIMES_MASKED IDkgTranscriptOperation = 4 + IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_RANDOM_UNMASKED IDkgTranscriptOperation = 5 +) + +func (IDkgTranscriptOperation) Descriptor() protoreflect.EnumDescriptor { + return file_subnet_proto_enumTypes[3].Descriptor() } -// Deprecated: Use IDkgSignedDealingTuple.ProtoReflect.Descriptor instead. -func (*IDkgSignedDealingTuple) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{19} -} - -func (x *IDkgSignedDealingTuple) GetDealer() *NodeId { - if x != nil { - return x.Dealer - } - return nil -} - -func (x *IDkgSignedDealingTuple) GetDealing() *IDkgDealing { - if x != nil { - return x.Dealing - } - return nil -} - -func (x *IDkgSignedDealingTuple) GetSignature() []byte { - if x != nil { - return x.Signature - } - return nil -} - -func (*IDkgSignedDealingTuple) ProtoMessage() {} - -func (x *IDkgSignedDealingTuple) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -func (x *IDkgSignedDealingTuple) Reset() { - *x = IDkgSignedDealingTuple{} - if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IDkgSignedDealingTuple) String() string { - return protoimpl.X.MessageStringOf(x) -} - -type IDkgTranscript struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TranscriptId *IDkgTranscriptId `protobuf:"bytes,1,opt,name=transcript_id,json=transcriptId,proto3" json:"transcript_id,omitempty"` - Dealers []*NodeId `protobuf:"bytes,2,rep,name=dealers,proto3" json:"dealers,omitempty"` - Receivers []*NodeId `protobuf:"bytes,3,rep,name=receivers,proto3" json:"receivers,omitempty"` - RegistryVersion uint64 `protobuf:"varint,4,opt,name=registry_version,json=registryVersion,proto3" json:"registry_version,omitempty"` - VerifiedDealings []*VerifiedIDkgDealing `protobuf:"bytes,5,rep,name=verified_dealings,json=verifiedDealings,proto3" json:"verified_dealings,omitempty"` - TranscriptType []byte `protobuf:"bytes,6,opt,name=transcript_type,json=transcriptType,proto3" json:"transcript_type,omitempty"` // CBOR serialized IDkgTranscriptType - AlgorithmId AlgorithmId `protobuf:"varint,7,opt,name=algorithm_id,json=algorithmId,proto3,enum=registry.subnet.v1.AlgorithmId" json:"algorithm_id,omitempty"` - RawTranscript []byte `protobuf:"bytes,8,opt,name=raw_transcript,json=rawTranscript,proto3" json:"raw_transcript,omitempty"` // serialised InternalRawTranscript -} - -// Deprecated: Use IDkgTranscript.ProtoReflect.Descriptor instead. -func (*IDkgTranscript) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{14} -} - -func (x *IDkgTranscript) GetAlgorithmId() AlgorithmId { - if x != nil { - return x.AlgorithmId - } - return AlgorithmId_ALGORITHM_ID_UNSPECIFIED -} - -func (x *IDkgTranscript) GetDealers() []*NodeId { - if x != nil { - return x.Dealers - } - return nil -} - -func (x *IDkgTranscript) GetRawTranscript() []byte { - if x != nil { - return x.RawTranscript - } - return nil -} - -func (x *IDkgTranscript) GetReceivers() []*NodeId { - if x != nil { - return x.Receivers - } - return nil -} - -func (x *IDkgTranscript) GetRegistryVersion() uint64 { - if x != nil { - return x.RegistryVersion - } - return 0 -} - -func (x *IDkgTranscript) GetTranscriptId() *IDkgTranscriptId { - if x != nil { - return x.TranscriptId - } - return nil -} - -func (x *IDkgTranscript) GetTranscriptType() []byte { - if x != nil { - return x.TranscriptType - } - return nil -} - -func (x *IDkgTranscript) GetVerifiedDealings() []*VerifiedIDkgDealing { - if x != nil { - return x.VerifiedDealings - } - return nil -} - -func (*IDkgTranscript) ProtoMessage() {} - -func (x *IDkgTranscript) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -func (x *IDkgTranscript) Reset() { - *x = IDkgTranscript{} - if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IDkgTranscript) String() string { - return protoimpl.X.MessageStringOf(x) -} - -type IDkgTranscriptId struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - SubnetId *SubnetId `protobuf:"bytes,2,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"` - SourceHeight uint64 `protobuf:"varint,3,opt,name=source_height,json=sourceHeight,proto3" json:"source_height,omitempty"` -} - -// Deprecated: Use IDkgTranscriptId.ProtoReflect.Descriptor instead. -func (*IDkgTranscriptId) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{10} -} - -func (x *IDkgTranscriptId) GetId() uint64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *IDkgTranscriptId) GetSourceHeight() uint64 { - if x != nil { - return x.SourceHeight - } - return 0 -} - -func (x *IDkgTranscriptId) GetSubnetId() *SubnetId { - if x != nil { - return x.SubnetId - } - return nil -} - -func (*IDkgTranscriptId) ProtoMessage() {} - -func (x *IDkgTranscriptId) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -func (x *IDkgTranscriptId) Reset() { - *x = IDkgTranscriptId{} - if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IDkgTranscriptId) String() string { - return protoimpl.X.MessageStringOf(x) -} - -type IDkgTranscriptOperation int32 - -const ( - IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_UNSPECIFIED IDkgTranscriptOperation = 0 - IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_RANDOM IDkgTranscriptOperation = 1 - IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_RESHARE_OF_MASKED IDkgTranscriptOperation = 2 - IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_RESHARE_OF_UNMASKED IDkgTranscriptOperation = 3 - IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_UNMASKED_TIMES_MASKED IDkgTranscriptOperation = 4 - IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_RANDOM_UNMASKED IDkgTranscriptOperation = 5 -) - -func (IDkgTranscriptOperation) Descriptor() protoreflect.EnumDescriptor { - return file_subnet_proto_enumTypes[3].Descriptor() -} - -func (x IDkgTranscriptOperation) Enum() *IDkgTranscriptOperation { - p := new(IDkgTranscriptOperation) - *p = x - return p +func (x IDkgTranscriptOperation) Enum() *IDkgTranscriptOperation { + p := new(IDkgTranscriptOperation) + *p = x + return p } // Deprecated: Use IDkgTranscriptOperation.Descriptor instead. @@ -3690,130 +3280,538 @@ func (x *SubnetRecord) ProtoReflect() protoreflect.Message { if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } - return ms - } - return mi.MessageOf(x) -} - -func (x *SubnetRecord) Reset() { - *x = SubnetRecord{} - if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SubnetRecord) String() string { - return protoimpl.X.MessageStringOf(x) -} - -// Represents the type of subnet. Subnets of different type might exhibit different -// behavior, e.g. being more restrictive in what operations are allowed or privileged -// compared to other subnet types. -type SubnetType int32 - -const ( - SubnetType_SUBNET_TYPE_UNSPECIFIED SubnetType = 0 - // A normal subnet where no restrictions are applied. - SubnetType_SUBNET_TYPE_APPLICATION SubnetType = 1 - // A more privileged subnet where certain restrictions are applied, - // like not charging for cycles or restricting who can create and - // install canisters on it. - SubnetType_SUBNET_TYPE_SYSTEM SubnetType = 2 - // A subnet type that is like application subnets but can have some - // additional features. - SubnetType_SUBNET_TYPE_VERIFIED_APPLICATION SubnetType = 4 -) - -func (SubnetType) Descriptor() protoreflect.EnumDescriptor { - return file_subnet_proto_enumTypes[4].Descriptor() -} - -func (x SubnetType) Enum() *SubnetType { - p := new(SubnetType) - *p = x - return p -} - -// Deprecated: Use SubnetType.Descriptor instead. -func (SubnetType) EnumDescriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{4} -} - -func (x SubnetType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -func (x SubnetType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (SubnetType) Type() protoreflect.EnumType { - return &file_subnet_proto_enumTypes[4] -} - -type VerifiedIDkgDealing struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DealerIndex uint32 `protobuf:"varint,1,opt,name=dealer_index,json=dealerIndex,proto3" json:"dealer_index,omitempty"` - SignedDealingTuple *IDkgSignedDealingTuple `protobuf:"bytes,6,opt,name=signed_dealing_tuple,json=signedDealingTuple,proto3" json:"signed_dealing_tuple,omitempty"` - SupportTuples []*SignatureTuple `protobuf:"bytes,7,rep,name=support_tuples,json=supportTuples,proto3" json:"support_tuples,omitempty"` -} - -// Deprecated: Use VerifiedIDkgDealing.ProtoReflect.Descriptor instead. -func (*VerifiedIDkgDealing) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{11} -} - -func (x *VerifiedIDkgDealing) GetDealerIndex() uint32 { - if x != nil { - return x.DealerIndex - } - return 0 -} - -func (x *VerifiedIDkgDealing) GetSignedDealingTuple() *IDkgSignedDealingTuple { - if x != nil { - return x.SignedDealingTuple - } - return nil -} - -func (x *VerifiedIDkgDealing) GetSupportTuples() []*SignatureTuple { - if x != nil { - return x.SupportTuples - } - return nil -} -func (*VerifiedIDkgDealing) ProtoMessage() {} -func (x *VerifiedIDkgDealing) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) + return ms + } + return mi.MessageOf(x) +} + +func (x *SubnetRecord) Reset() { + *x = SubnetRecord{} + if protoimpl.UnsafeEnabled { + mi := &file_subnet_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SubnetRecord) String() string { + return protoimpl.X.MessageStringOf(x) +} + +// Represents the type of subnet. Subnets of different type might exhibit different +// behavior, e.g. being more restrictive in what operations are allowed or privileged +// compared to other subnet types. +type SubnetType int32 + +const ( + SubnetType_SUBNET_TYPE_UNSPECIFIED SubnetType = 0 + // A normal subnet where no restrictions are applied. + SubnetType_SUBNET_TYPE_APPLICATION SubnetType = 1 + // A more privileged subnet where certain restrictions are applied, + // like not charging for cycles or restricting who can create and + // install canisters on it. + SubnetType_SUBNET_TYPE_SYSTEM SubnetType = 2 + // A subnet type that is like application subnets but can have some + // additional features. + SubnetType_SUBNET_TYPE_VERIFIED_APPLICATION SubnetType = 4 +) + +func (SubnetType) Descriptor() protoreflect.EnumDescriptor { + return file_subnet_proto_enumTypes[4].Descriptor() +} + +func (x SubnetType) Enum() *SubnetType { + p := new(SubnetType) + *p = x + return p +} + +// Deprecated: Use SubnetType.Descriptor instead. +func (SubnetType) EnumDescriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{4} +} + +func (x SubnetType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +func (x SubnetType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SubnetType) Type() protoreflect.EnumType { + return &file_subnet_proto_enumTypes[4] +} + +type VerifiedIDkgDealing struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DealerIndex uint32 `protobuf:"varint,1,opt,name=dealer_index,json=dealerIndex,proto3" json:"dealer_index,omitempty"` + SignedDealingTuple *IDkgSignedDealingTuple `protobuf:"bytes,6,opt,name=signed_dealing_tuple,json=signedDealingTuple,proto3" json:"signed_dealing_tuple,omitempty"` + SupportTuples []*SignatureTuple `protobuf:"bytes,7,rep,name=support_tuples,json=supportTuples,proto3" json:"support_tuples,omitempty"` +} + +// Deprecated: Use VerifiedIDkgDealing.ProtoReflect.Descriptor instead. +func (*VerifiedIDkgDealing) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{11} +} + +func (x *VerifiedIDkgDealing) GetDealerIndex() uint32 { + if x != nil { + return x.DealerIndex + } + return 0 +} + +func (x *VerifiedIDkgDealing) GetSignedDealingTuple() *IDkgSignedDealingTuple { + if x != nil { + return x.SignedDealingTuple + } + return nil +} + +func (x *VerifiedIDkgDealing) GetSupportTuples() []*SignatureTuple { + if x != nil { + return x.SupportTuples + } + return nil +} + +func (*VerifiedIDkgDealing) ProtoMessage() {} + +func (x *VerifiedIDkgDealing) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} +func (x *VerifiedIDkgDealing) Reset() { + *x = VerifiedIDkgDealing{} + if protoimpl.UnsafeEnabled { + mi := &file_subnet_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} +func (x *VerifiedIDkgDealing) String() string { + return protoimpl.X.MessageStringOf(x) +} +type isMasterPublicKeyId_KeyId interface { + isMasterPublicKeyId_KeyId() +} + +func init() { file_subnet_proto_init() } +func file_subnet_proto_init() { + if File_subnet_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_subnet_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubnetRecord); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EcdsaKeyId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EcdsaInitialization); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CatchUpPackageContents); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RegistryStoreUri); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubnetListRecord); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NiDkgId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InitialNiDkgTranscriptRecord); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PrincipalId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubnetId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IDkgTranscriptId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerifiedIDkgDealing); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PublicKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IDkgTranscript); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DealerTuple); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignatureTuple); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IDkgTranscriptParams); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IDkgDealing); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IDkgSignedDealingTuple); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InitialIDkgDealings); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IDkgComplaint); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IDkgOpening); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExtendedDerivationPath); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GossipConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SubnetFeatures); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EcdsaConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchnorrKeyId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MasterPublicKeyId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*KeyConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ChainKeyConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } } - return ms } - return mi.MessageOf(x) -} - -func (x *VerifiedIDkgDealing) Reset() { - *x = VerifiedIDkgDealing{} - if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + file_subnet_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_subnet_proto_msgTypes[25].OneofWrappers = []interface{}{} + file_subnet_proto_msgTypes[26].OneofWrappers = []interface{}{} + file_subnet_proto_msgTypes[28].OneofWrappers = []interface{}{ + (*MasterPublicKeyId_Ecdsa)(nil), + (*MasterPublicKeyId_Schnorr)(nil), } -} - -func (x *VerifiedIDkgDealing) String() string { - return protoimpl.X.MessageStringOf(x) -} - -type isMasterPublicKeyId_KeyId interface { - isMasterPublicKeyId_KeyId() + file_subnet_proto_msgTypes[29].OneofWrappers = []interface{}{} + file_subnet_proto_msgTypes[30].OneofWrappers = []interface{}{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_subnet_proto_rawDesc, + NumEnums: 6, + NumMessages: 31, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_subnet_proto_goTypes, + DependencyIndexes: file_subnet_proto_depIdxs, + EnumInfos: file_subnet_proto_enumTypes, + MessageInfos: file_subnet_proto_msgTypes, + }.Build() + File_subnet_proto = out.File + file_subnet_proto_rawDesc = nil + file_subnet_proto_goTypes = nil + file_subnet_proto_depIdxs = nil } diff --git a/registry/proto/v1/transport.pb.go b/registry/proto/v1/transport.pb.go index 26c43d9..2eecea8 100644 --- a/registry/proto/v1/transport.pb.go +++ b/registry/proto/v1/transport.pb.go @@ -1670,7 +1670,6 @@ func (x *RegistryValue) Reset() { func (x *RegistryValue) String() string { return protoimpl.X.MessageStringOf(x) } - type isMixedHashTree_TreeEnum interface { isMixedHashTree_TreeEnum() }