File tree 3 files changed +20
-7
lines changed
3 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -2356,9 +2356,13 @@ NetworkId:
2356
2356
value : 1
2357
2357
- name : testnet
2358
2358
value : 0
2359
- methods :
2360
- new_mainnet : mainnet
2361
- new_testnet : testnet
2359
+ extra_methods : |
2360
+ static mainnet() {
2361
+ return NetworkId.new_mainnet();
2362
+ }
2363
+ static testnet() {
2364
+ return NetworkId.new_testnet();
2365
+ }
2362
2366
2363
2367
# epoch = uint
2364
2368
Original file line number Diff line number Diff line change @@ -1763,8 +1763,8 @@ export declare enum NetworkIdKind {
1763
1763
export declare class NetworkId {
1764
1764
private kind_ ;
1765
1765
constructor ( kind : NetworkIdKind ) ;
1766
- static mainnet ( ) : NetworkId ;
1767
- static testnet ( ) : NetworkId ;
1766
+ static new_mainnet ( ) : NetworkId ;
1767
+ static new_testnet ( ) : NetworkId ;
1768
1768
kind ( ) : NetworkIdKind ;
1769
1769
static deserialize ( reader : CBORReader , path : string [ ] ) : NetworkId ;
1770
1770
serialize ( writer : CBORWriter ) : void ;
@@ -1774,6 +1774,8 @@ export declare class NetworkId {
1774
1774
to_bytes ( ) : Uint8Array ;
1775
1775
to_hex ( ) : string ;
1776
1776
clone ( path : string [ ] ) : NetworkId ;
1777
+ static mainnet ( ) : NetworkId ;
1778
+ static testnet ( ) : NetworkId ;
1777
1779
}
1778
1780
export declare class NewConstitutionAction {
1779
1781
private _gov_action_id ;
Original file line number Diff line number Diff line change @@ -9309,11 +9309,11 @@ export class NetworkId {
9309
9309
this.kind_ = kind;
9310
9310
}
9311
9311
9312
- static mainnet (): NetworkId {
9312
+ static new_mainnet (): NetworkId {
9313
9313
return new NetworkId(1);
9314
9314
}
9315
9315
9316
- static testnet (): NetworkId {
9316
+ static new_testnet (): NetworkId {
9317
9317
return new NetworkId(0);
9318
9318
}
9319
9319
kind(): NetworkIdKind {
@@ -9367,6 +9367,13 @@ export class NetworkId {
9367
9367
clone(path: string[]): NetworkId {
9368
9368
return NetworkId.from_bytes(this.to_bytes(), path);
9369
9369
}
9370
+
9371
+ static mainnet() {
9372
+ return NetworkId.new_mainnet();
9373
+ }
9374
+ static testnet() {
9375
+ return NetworkId.new_testnet();
9376
+ }
9370
9377
}
9371
9378
9372
9379
export class NewConstitutionAction {
You can’t perform that action at this time.
0 commit comments