@dfns/sdk 0.7.8-rc.2 → 0.7.8-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,13 +4,25 @@ export type CreateCantonValidatorBody = {
4
4
  } | {
5
5
  name?: string | undefined;
6
6
  kind: "Custom";
7
- url: string;
8
- oauth2: {
9
- domain: string;
10
- clientId: string;
11
- clientSecret: string;
12
- audience: string;
13
- tokenPath?: string | undefined;
7
+ validator: {
8
+ url: string;
9
+ oauth2: {
10
+ domain: string;
11
+ clientId: string;
12
+ clientSecret: string;
13
+ audience: string;
14
+ tokenPath?: string | undefined;
15
+ };
16
+ };
17
+ ledger: {
18
+ url: string;
19
+ oauth2: {
20
+ domain: string;
21
+ clientId: string;
22
+ clientSecret: string;
23
+ audience: string;
24
+ tokenPath?: string | undefined;
25
+ };
14
26
  };
15
27
  };
16
28
  export type CreateCantonValidatorParams = {
@@ -41,7 +53,7 @@ export type DeleteCantonValidatorResponse = {
41
53
  };
42
54
  export type DeleteCantonValidatorRequest = DeleteCantonValidatorParams;
43
55
  export type GetFeesQuery = {
44
- network: "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia";
56
+ network: "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "Adi" | "AdiTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia";
45
57
  };
46
58
  export type GetFeesResponse = {
47
59
  kind: "Bitcoin";
@@ -61,7 +73,7 @@ export type GetFeesResponse = {
61
73
  };
62
74
  } | {
63
75
  kind: "Eip1559";
64
- network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia";
76
+ network: "Adi" | "AdiTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia";
65
77
  blockNumber: number;
66
78
  slow: {
67
79
  maxPriorityFeePerGas: string;
@@ -103,7 +115,7 @@ export type ListCantonValidatorsRequest = ListCantonValidatorsParams & {
103
115
  };
104
116
  export type ReadContractBody = {
105
117
  kind: "Evm";
106
- network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia";
118
+ network: "Adi" | "AdiTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia";
107
119
  contract: string;
108
120
  data: string;
109
121
  };
@@ -116,13 +128,25 @@ export type ReadContractRequest = {
116
128
  };
117
129
  export type UpdateCantonValidatorBody = {
118
130
  name?: string | undefined;
119
- url?: string | undefined;
120
- oauth2?: {
121
- domain: string;
122
- clientId: string;
123
- clientSecret: string;
124
- audience: string;
125
- tokenPath?: string | undefined;
131
+ validator?: {
132
+ url: string;
133
+ oauth2: {
134
+ domain: string;
135
+ clientId: string;
136
+ clientSecret: string;
137
+ audience: string;
138
+ tokenPath?: string | undefined;
139
+ };
140
+ } | undefined;
141
+ ledger?: {
142
+ url: string;
143
+ oauth2: {
144
+ domain: string;
145
+ clientId: string;
146
+ clientSecret: string;
147
+ audience: string;
148
+ tokenPath?: string | undefined;
149
+ };
126
150
  } | undefined;
127
151
  };
128
152
  export type UpdateCantonValidatorParams = {