feat: implement the defineNetwork API
#2650
+1,958
−1,497
Draft