| { | |
| "ast": { | |
| "items": [ | |
| { | |
| "use": { | |
| "tree": { | |
| "path": { | |
| "ident": "dioxus", | |
| "tree": { | |
| "path": { | |
| "ident": "prelude", | |
| "tree": "*" | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "use": { | |
| "tree": { | |
| "path": { | |
| "ident": "wallet_adapter", | |
| "tree": { | |
| "group": [ | |
| { | |
| "path": { | |
| "ident": "wasm_bindgen_futures", | |
| "tree": { | |
| "ident": "JsFuture" | |
| } | |
| } | |
| }, | |
| { | |
| "path": { | |
| "ident": "web_sys", | |
| "tree": { | |
| "group": [ | |
| { | |
| "path": { | |
| "ident": "wasm_bindgen", | |
| "tree": { | |
| "ident": "JsCast" | |
| } | |
| } | |
| }, | |
| { | |
| "ident": "Headers" | |
| }, | |
| { | |
| "ident": "Request" | |
| }, | |
| { | |
| "ident": "RequestInit" | |
| }, | |
| { | |
| "ident": "Response" | |
| } | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "ident": "WalletError" | |
| }, | |
| { | |
| "ident": "WalletResult" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "use": { | |
| "tree": { | |
| "path": { | |
| "ident": "crate", | |
| "tree": { | |
| "path": { | |
| "ident": "model", | |
| "tree": { | |
| "group": [ | |
| { | |
| "path": { | |
| "ident": "storage", | |
| "tree": { | |
| "group": [ | |
| { | |
| "ident": "CLUSTER_NET_STATE" | |
| }, | |
| { | |
| "ident": "GLOBAL_MESSAGE" | |
| }, | |
| { | |
| "ident": "WALLET_ADAPTER" | |
| } | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "ident": "use_connections" | |
| }, | |
| { | |
| "ident": "ClusterNetState" | |
| }, | |
| { | |
| "ident": "NotificationInfo" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "struct": { | |
| "attrs": [ | |
| { | |
| "meta": { | |
| "list": { | |
| "delimiter": "paren", | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "derive" | |
| } | |
| ] | |
| }, | |
| "tokens": [ | |
| { | |
| "ident": "Debug" | |
| } | |
| ] | |
| } | |
| }, | |
| "style": "outer" | |
| } | |
| ], | |
| "fields": { | |
| "named": [ | |
| { | |
| "colon_token": true, | |
| "ident": "headers", | |
| "ty": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "Headers" | |
| } | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "colon_token": true, | |
| "ident": "options", | |
| "ty": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "RequestInit" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| ] | |
| }, | |
| "ident": "FetchReq", | |
| "vis": "pub" | |
| } | |
| }, | |
| { | |
| "impl": { | |
| "items": [ | |
| { | |
| "fn": { | |
| "ident": "new", | |
| "inputs": [ | |
| { | |
| "typed": { | |
| "pat": { | |
| "ident": { | |
| "ident": "method" | |
| } | |
| }, | |
| "ty": { | |
| "reference": { | |
| "elem": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "str" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| ], | |
| "output": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "arguments": { | |
| "angle_bracketed": { | |
| "args": [ | |
| { | |
| "type": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "Self" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| "ident": "WalletResult" | |
| } | |
| ] | |
| } | |
| }, | |
| "stmts": [ | |
| { | |
| "let": { | |
| "init": { | |
| "expr": { | |
| "call": { | |
| "args": [], | |
| "func": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "RequestInit" | |
| }, | |
| { | |
| "ident": "new" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "pat": { | |
| "ident": { | |
| "ident": "options" | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "expr": [ | |
| { | |
| "method_call": { | |
| "args": [ | |
| { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "method" | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "method": "set_method", | |
| "receiver": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "options" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| true | |
| ] | |
| }, | |
| { | |
| "expr": [ | |
| { | |
| "call": { | |
| "args": [ | |
| { | |
| "struct": { | |
| "fields": [ | |
| { | |
| "colon_token": true, | |
| "expr": { | |
| "try": { | |
| "expr": { | |
| "call": { | |
| "args": [], | |
| "func": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "Headers" | |
| }, | |
| { | |
| "ident": "new" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "ident": "headers" | |
| }, | |
| { | |
| "expr": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "options" | |
| } | |
| ] | |
| } | |
| }, | |
| "ident": "options" | |
| } | |
| ], | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "Self" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| ], | |
| "func": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "Ok" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| false | |
| ] | |
| } | |
| ], | |
| "vis": "pub" | |
| } | |
| }, | |
| { | |
| "fn": { | |
| "ident": "new_for_rpc", | |
| "inputs": [], | |
| "output": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "arguments": { | |
| "angle_bracketed": { | |
| "args": [ | |
| { | |
| "type": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "Self" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| "ident": "WalletResult" | |
| } | |
| ] | |
| } | |
| }, | |
| "stmts": [ | |
| { | |
| "expr": [ | |
| { | |
| "method_call": { | |
| "args": [ | |
| { | |
| "lit": { | |
| "str": "\"Accept\"" | |
| } | |
| }, | |
| { | |
| "lit": { | |
| "str": "\"application/json\"" | |
| } | |
| } | |
| ], | |
| "method": "add_header", | |
| "receiver": { | |
| "try": { | |
| "expr": { | |
| "method_call": { | |
| "args": [ | |
| { | |
| "lit": { | |
| "str": "\"content-type\"" | |
| } | |
| }, | |
| { | |
| "lit": { | |
| "str": "\"application/json\"" | |
| } | |
| } | |
| ], | |
| "method": "add_header", | |
| "receiver": { | |
| "try": { | |
| "expr": { | |
| "call": { | |
| "args": [ | |
| { | |
| "lit": { | |
| "str": "\"POST\"" | |
| } | |
| } | |
| ], | |
| "func": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "Self" | |
| }, | |
| { | |
| "ident": "new" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| false | |
| ] | |
| } | |
| ], | |
| "vis": "pub" | |
| } | |
| }, | |
| { | |
| "fn": { | |
| "async": true, | |
| "ident": "ping", | |
| "inputs": [], | |
| "output": null, | |
| "stmts": [ | |
| { | |
| "expr": [ | |
| { | |
| "assign": { | |
| "left": { | |
| "unary": { | |
| "expr": { | |
| "method_call": { | |
| "args": [], | |
| "method": "write", | |
| "receiver": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "CLUSTER_NET_STATE" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| "op": "*" | |
| } | |
| }, | |
| "right": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "ClusterNetState" | |
| }, | |
| { | |
| "ident": "Waiting" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| true | |
| ] | |
| }, | |
| { | |
| "let": { | |
| "init": { | |
| "expr": { | |
| "method_call": { | |
| "args": [], | |
| "method": "to_string", | |
| "receiver": { | |
| "macro": { | |
| "delimiter": "brace", | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "jzon" | |
| }, | |
| { | |
| "ident": "object" | |
| } | |
| ] | |
| }, | |
| "tokens": [ | |
| { | |
| "ident": "jsonrpc" | |
| }, | |
| { | |
| "punct": { | |
| "op": ":", | |
| "spacing": "alone" | |
| } | |
| }, | |
| { | |
| "lit": "\"2.0\"" | |
| }, | |
| { | |
| "punct": { | |
| "op": ",", | |
| "spacing": "alone" | |
| } | |
| }, | |
| { | |
| "ident": "id" | |
| }, | |
| { | |
| "punct": { | |
| "op": ":", | |
| "spacing": "alone" | |
| } | |
| }, | |
| { | |
| "lit": "1" | |
| }, | |
| { | |
| "punct": { | |
| "op": ",", | |
| "spacing": "alone" | |
| } | |
| }, | |
| { | |
| "ident": "method" | |
| }, | |
| { | |
| "punct": { | |
| "op": ":", | |
| "spacing": "alone" | |
| } | |
| }, | |
| { | |
| "lit": "\"getVersion\"" | |
| }, | |
| { | |
| "punct": { | |
| "op": ",", | |
| "spacing": "alone" | |
| } | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "pat": { | |
| "ident": { | |
| "ident": "body" | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "expr": [ | |
| { | |
| "match": { | |
| "arms": [ | |
| { | |
| "body": { | |
| "block": { | |
| "stmts": [ | |
| { | |
| "expr": [ | |
| { | |
| "if": { | |
| "cond": { | |
| "method_call": { | |
| "args": [], | |
| "method": "is_err", | |
| "receiver": { | |
| "await": { | |
| "base": { | |
| "method_call": { | |
| "args": [], | |
| "method": "build", | |
| "receiver": { | |
| "method_call": { | |
| "args": [ | |
| { | |
| "reference": { | |
| "expr": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "body" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| ], | |
| "method": "set_body", | |
| "receiver": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "req" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "then_branch": [ | |
| { | |
| "expr": [ | |
| { | |
| "assign": { | |
| "left": { | |
| "unary": { | |
| "expr": { | |
| "method_call": { | |
| "args": [], | |
| "method": "write", | |
| "receiver": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "CLUSTER_NET_STATE" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| "op": "*" | |
| } | |
| }, | |
| "right": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "ClusterNetState" | |
| }, | |
| { | |
| "ident": "Failure" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| true | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| false | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| "pat": { | |
| "tuple_struct": { | |
| "elems": [ | |
| { | |
| "ident": { | |
| "ident": "req" | |
| } | |
| } | |
| ], | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "Ok" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "body": { | |
| "block": { | |
| "stmts": [ | |
| { | |
| "expr": [ | |
| { | |
| "method_call": { | |
| "args": [ | |
| { | |
| "call": { | |
| "args": [ | |
| { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "error" | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "func": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "NotificationInfo" | |
| }, | |
| { | |
| "ident": "error" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| ], | |
| "method": "push_back", | |
| "receiver": { | |
| "method_call": { | |
| "args": [], | |
| "method": "write", | |
| "receiver": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "GLOBAL_MESSAGE" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| true | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| "pat": { | |
| "tuple_struct": { | |
| "elems": [ | |
| { | |
| "ident": { | |
| "ident": "error" | |
| } | |
| } | |
| ], | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "Err" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| ], | |
| "expr": { | |
| "call": { | |
| "args": [], | |
| "func": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "Self" | |
| }, | |
| { | |
| "ident": "new_for_rpc" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| false | |
| ] | |
| } | |
| ], | |
| "vis": "pub" | |
| } | |
| }, | |
| { | |
| "fn": { | |
| "ident": "add_header", | |
| "inputs": [ | |
| { | |
| "receiver": { | |
| "ty": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "Self" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "typed": { | |
| "pat": { | |
| "ident": { | |
| "ident": "key" | |
| } | |
| }, | |
| "ty": { | |
| "reference": { | |
| "elem": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "str" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "typed": { | |
| "pat": { | |
| "ident": { | |
| "ident": "value" | |
| } | |
| }, | |
| "ty": { | |
| "reference": { | |
| "elem": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "str" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| ], | |
| "output": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "arguments": { | |
| "angle_bracketed": { | |
| "args": [ | |
| { | |
| "type": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "Self" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| "ident": "WalletResult" | |
| } | |
| ] | |
| } | |
| }, | |
| "stmts": [ | |
| { | |
| "expr": [ | |
| { | |
| "try": { | |
| "expr": { | |
| "method_call": { | |
| "args": [ | |
| { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "key" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "value" | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "method": "append", | |
| "receiver": { | |
| "field": { | |
| "base": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "self" | |
| } | |
| ] | |
| } | |
| }, | |
| "ident": "headers" | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| true | |
| ] | |
| }, | |
| { | |
| "expr": [ | |
| { | |
| "call": { | |
| "args": [ | |
| { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "self" | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "func": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "Ok" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| false | |
| ] | |
| } | |
| ], | |
| "vis": "pub" | |
| } | |
| }, | |
| { | |
| "fn": { | |
| "ident": "set_body", | |
| "inputs": [ | |
| { | |
| "receiver": { | |
| "ty": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "Self" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "typed": { | |
| "pat": { | |
| "ident": { | |
| "ident": "json_body" | |
| } | |
| }, | |
| "ty": { | |
| "reference": { | |
| "elem": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "str" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| ], | |
| "output": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "Self" | |
| } | |
| ] | |
| } | |
| }, | |
| "stmts": [ | |
| { | |
| "expr": [ | |
| { | |
| "method_call": { | |
| "args": [ | |
| { | |
| "reference": { | |
| "expr": { | |
| "method_call": { | |
| "args": [], | |
| "method": "into", | |
| "receiver": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "json_body" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| ], | |
| "method": "set_body", | |
| "receiver": { | |
| "field": { | |
| "base": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "self" | |
| } | |
| ] | |
| } | |
| }, | |
| "ident": "options" | |
| } | |
| } | |
| } | |
| }, | |
| true | |
| ] | |
| }, | |
| { | |
| "expr": [ | |
| { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "self" | |
| } | |
| ] | |
| } | |
| }, | |
| false | |
| ] | |
| } | |
| ], | |
| "vis": "pub" | |
| } | |
| }, | |
| { | |
| "fn": { | |
| "async": true, | |
| "ident": "send", | |
| "inputs": [ | |
| { | |
| "receiver": { | |
| "ty": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "Self" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| ], | |
| "output": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "arguments": { | |
| "angle_bracketed": { | |
| "args": [ | |
| { | |
| "type": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "String" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| "ident": "WalletResult" | |
| } | |
| ] | |
| } | |
| }, | |
| "stmts": [ | |
| { | |
| "let": { | |
| "init": { | |
| "expr": { | |
| "try": { | |
| "expr": { | |
| "await": { | |
| "base": { | |
| "method_call": { | |
| "args": [], | |
| "method": "build", | |
| "receiver": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "self" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "pat": { | |
| "ident": { | |
| "ident": "resp" | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "expr": [ | |
| { | |
| "method_call": { | |
| "args": [ | |
| { | |
| "call": { | |
| "args": [ | |
| { | |
| "method_call": { | |
| "args": [], | |
| "method": "to_string", | |
| "receiver": { | |
| "lit": { | |
| "str": "\"The response body is not a JsString\"" | |
| } | |
| } | |
| } | |
| } | |
| ], | |
| "func": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "WalletError" | |
| }, | |
| { | |
| "ident": "Op" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| ], | |
| "method": "ok_or", | |
| "receiver": { | |
| "method_call": { | |
| "args": [], | |
| "method": "as_string", | |
| "receiver": { | |
| "try": { | |
| "expr": { | |
| "await": { | |
| "base": { | |
| "call": { | |
| "args": [ | |
| { | |
| "try": { | |
| "expr": { | |
| "method_call": { | |
| "args": [], | |
| "method": "text", | |
| "receiver": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "resp" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| ], | |
| "func": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "JsFuture" | |
| }, | |
| { | |
| "ident": "from" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| false | |
| ] | |
| } | |
| ], | |
| "vis": "pub" | |
| } | |
| }, | |
| { | |
| "fn": { | |
| "async": true, | |
| "ident": "build", | |
| "inputs": [ | |
| { | |
| "receiver": { | |
| "ref": true, | |
| "ty": { | |
| "reference": { | |
| "elem": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "Self" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| ], | |
| "output": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "arguments": { | |
| "angle_bracketed": { | |
| "args": [ | |
| { | |
| "type": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "Response" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| ] | |
| } | |
| }, | |
| "ident": "WalletResult" | |
| } | |
| ] | |
| } | |
| }, | |
| "stmts": [ | |
| { | |
| "expr": [ | |
| { | |
| "method_call": { | |
| "args": [ | |
| { | |
| "reference": { | |
| "expr": { | |
| "field": { | |
| "base": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "self" | |
| } | |
| ] | |
| } | |
| }, | |
| "ident": "headers" | |
| } | |
| } | |
| } | |
| } | |
| ], | |
| "method": "set_headers", | |
| "receiver": { | |
| "field": { | |
| "base": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "self" | |
| } | |
| ] | |
| } | |
| }, | |
| "ident": "options" | |
| } | |
| } | |
| } | |
| }, | |
| true | |
| ] | |
| }, | |
| { | |
| "let": { | |
| "init": { | |
| "expr": { | |
| "call": { | |
| "args": [ | |
| { | |
| "lit": { | |
| "str": "\"solana_wallet\"" | |
| } | |
| } | |
| ], | |
| "func": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "use_connections" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "pat": { | |
| "ident": { | |
| "ident": "connections" | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "let": { | |
| "init": { | |
| "expr": { | |
| "method_call": { | |
| "args": [], | |
| "method": "active_entry_object", | |
| "receiver": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "connections" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "pat": { | |
| "ident": { | |
| "ident": "cluster" | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "let": { | |
| "init": { | |
| "expr": { | |
| "method_call": { | |
| "args": [], | |
| "method": "endpoint", | |
| "receiver": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "cluster" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "pat": { | |
| "ident": { | |
| "ident": "url" | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "let": { | |
| "init": { | |
| "expr": { | |
| "try": { | |
| "expr": { | |
| "call": { | |
| "args": [ | |
| { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "url" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "reference": { | |
| "expr": { | |
| "field": { | |
| "base": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "self" | |
| } | |
| ] | |
| } | |
| }, | |
| "ident": "options" | |
| } | |
| } | |
| } | |
| } | |
| ], | |
| "func": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "Request" | |
| }, | |
| { | |
| "ident": "new_with_str_and_init" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "pat": { | |
| "ident": { | |
| "ident": "request" | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "let": { | |
| "init": { | |
| "expr": { | |
| "method_call": { | |
| "args": [ | |
| { | |
| "reference": { | |
| "expr": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "request" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| ], | |
| "method": "fetch_with_request", | |
| "receiver": { | |
| "method_call": { | |
| "args": [], | |
| "method": "window", | |
| "receiver": { | |
| "method_call": { | |
| "args": [], | |
| "method": "read", | |
| "receiver": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "WALLET_ADAPTER" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "pat": { | |
| "ident": { | |
| "ident": "fetch_promise" | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "let": { | |
| "init": { | |
| "expr": { | |
| "try": { | |
| "expr": { | |
| "method_call": { | |
| "args": [ | |
| { | |
| "closure": { | |
| "body": { | |
| "block": { | |
| "stmts": [ | |
| { | |
| "expr": [ | |
| { | |
| "assign": { | |
| "left": { | |
| "unary": { | |
| "expr": { | |
| "method_call": { | |
| "args": [], | |
| "method": "write", | |
| "receiver": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "CLUSTER_NET_STATE" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| "op": "*" | |
| } | |
| }, | |
| "right": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "ClusterNetState" | |
| }, | |
| { | |
| "ident": "Failure" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| true | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| "inputs": [ | |
| { | |
| "_": {} | |
| } | |
| ], | |
| "output": null | |
| } | |
| } | |
| ], | |
| "method": "inspect_err", | |
| "receiver": { | |
| "method_call": { | |
| "args": [ | |
| { | |
| "closure": { | |
| "body": { | |
| "block": { | |
| "stmts": [ | |
| { | |
| "expr": [ | |
| { | |
| "assign": { | |
| "left": { | |
| "unary": { | |
| "expr": { | |
| "method_call": { | |
| "args": [], | |
| "method": "write", | |
| "receiver": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "CLUSTER_NET_STATE" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| "op": "*" | |
| } | |
| }, | |
| "right": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "ClusterNetState" | |
| }, | |
| { | |
| "ident": "Success" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| true | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| "inputs": [ | |
| { | |
| "_": {} | |
| } | |
| ], | |
| "output": null | |
| } | |
| } | |
| ], | |
| "method": "inspect", | |
| "receiver": { | |
| "await": { | |
| "base": { | |
| "call": { | |
| "args": [ | |
| { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "fetch_promise" | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "func": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "JsFuture" | |
| }, | |
| { | |
| "ident": "from" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "pat": { | |
| "ident": { | |
| "ident": "resp_value" | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "expr": [ | |
| { | |
| "call": { | |
| "args": [ | |
| { | |
| "try": { | |
| "expr": { | |
| "method_call": { | |
| "args": [], | |
| "method": "dyn_into", | |
| "receiver": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "resp_value" | |
| } | |
| ] | |
| } | |
| }, | |
| "turbofish": { | |
| "args": [ | |
| { | |
| "type": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "Response" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| ], | |
| "colon2_token": true | |
| } | |
| } | |
| } | |
| } | |
| } | |
| ], | |
| "func": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "Ok" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| false | |
| ] | |
| } | |
| ], | |
| "vis": "pub" | |
| } | |
| } | |
| ], | |
| "self_ty": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "FetchReq" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| ] | |
| }, | |
| "file_path": "src\\fetch_util.rs", | |
| "summary": { | |
| "emoji_counts_in_strings": {}, | |
| "string_literals": [ | |
| "\"Accept\"", | |
| "\"application/json\"", | |
| "\"content-type\"", | |
| "\"application/json\"", | |
| "\"POST\"", | |
| "\"2.0\"", | |
| "1", | |
| "\"getVersion\"", | |
| "\"The response body is not a JsString\"", | |
| "\"solana_wallet\"" | |
| ], | |
| "top_level_nodes": 1, | |
| "total_nodes": 633, | |
| "type_counts": { | |
| "_": 2, | |
| "angle_bracketed": 5, | |
| "args": 49, | |
| "arguments": 5, | |
| "arms": 1, | |
| "assign": 4, | |
| "async": 3, | |
| "attrs": 1, | |
| "await": 4, | |
| "base": 9, | |
| "block": 4, | |
| "body": 4, | |
| "call": 13, | |
| "closure": 2, | |
| "colon2_token": 1, | |
| "colon_token": 3, | |
| "cond": 1, | |
| "delimiter": 2, | |
| "elem": 5, | |
| "elems": 2, | |
| "expr": 48, | |
| "field": 5, | |
| "fields": 2, | |
| "fn": 7, | |
| "func": 13, | |
| "group": 4, | |
| "ident": 163, | |
| "if": 1, | |
| "impl": 1, | |
| "init": 9, | |
| "inputs": 9, | |
| "items": 2, | |
| "left": 4, | |
| "let": 9, | |
| "list": 1, | |
| "lit": 10, | |
| "macro": 1, | |
| "match": 1, | |
| "meta": 1, | |
| "method": 30, | |
| "method_call": 30, | |
| "named": 1, | |
| "op": 10, | |
| "output": 9, | |
| "pat": 15, | |
| "path": 84, | |
| "punct": 6, | |
| "receiver": 34, | |
| "ref": 1, | |
| "reference": 10, | |
| "right": 4, | |
| "segments": 75, | |
| "self_ty": 1, | |
| "spacing": 6, | |
| "stmts": 11, | |
| "str": 7, | |
| "struct": 2, | |
| "style": 1, | |
| "then_branch": 1, | |
| "tokens": 2, | |
| "tree": 12, | |
| "try": 10, | |
| "tuple_struct": 2, | |
| "turbofish": 1, | |
| "ty": 10, | |
| "type": 6, | |
| "typed": 4, | |
| "unary": 4, | |
| "use": 3, | |
| "vis": 8 | |
| }, | |
| "word_counts": { | |
| "0": 1, | |
| "1": 1, | |
| "2": 1, | |
| "a": 1, | |
| "accept": 1, | |
| "application": 2, | |
| "body": 1, | |
| "content": 1, | |
| "get": 1, | |
| "is": 1, | |
| "js": 1, | |
| "json": 2, | |
| "not": 1, | |
| "post": 1, | |
| "response": 1, | |
| "solana_wallet": 1, | |
| "string": 1, | |
| "the": 1, | |
| "type": 1, | |
| "version": 1 | |
| }, | |
| "word_emoji_counts": { | |
| "0️⃣": 1, | |
| "1️⃣": 1, | |
| "2️⃣": 1, | |
| "🏃": 1, | |
| "🏷️": 1, | |
| "📦": 1 | |
| } | |
| }, | |
| "timestamp": 1751588212 | |
| } |