@snapshot-labs/snapshot.js 0.12.16 → 0.12.18

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.
@@ -868,6 +868,46 @@ var definitions = {
868
868
  additionalProperties: false
869
869
  }
870
870
  },
871
+ labels: {
872
+ type: "array",
873
+ maxItems: 10,
874
+ uniqueItems: true,
875
+ items: {
876
+ type: "object",
877
+ properties: {
878
+ id: {
879
+ type: "string",
880
+ title: "Id",
881
+ minLength: 1,
882
+ maxLength: 8
883
+ },
884
+ name: {
885
+ type: "string",
886
+ title: "Name",
887
+ minLength: 1,
888
+ maxLength: 32
889
+ },
890
+ description: {
891
+ type: "string",
892
+ title: "Description",
893
+ minLength: 1,
894
+ maxLength: 100
895
+ },
896
+ color: {
897
+ type: "string",
898
+ title: "Color",
899
+ format: "color"
900
+ }
901
+ },
902
+ required: [
903
+ "id",
904
+ "name",
905
+ "description",
906
+ "color"
907
+ ],
908
+ additionalProperties: false
909
+ }
910
+ },
871
911
  parent: {
872
912
  type: "string",
873
913
  title: "parent"
@@ -2909,7 +2949,7 @@ var networks = {
2909
2949
  name: "Curtis",
2910
2950
  shortName: "apechain",
2911
2951
  chainId: 33111,
2912
- network: "mainnet",
2952
+ network: "testnet",
2913
2953
  multicall: "0xc454132B017b55b427f45078E335549A7124f5f7",
2914
2954
  rpc: [
2915
2955
  ],
@@ -2917,7 +2957,8 @@ var networks = {
2917
2957
  url: "https://explorer.curtis.apechain.com"
2918
2958
  },
2919
2959
  start: 6661339,
2920
- logo: "ipfs://bafkreicljxttjq2xkgfwwpii5xegirgq2ctrnsjnzelxudjj33qzq65apu"
2960
+ logo: "ipfs://bafkreicljxttjq2xkgfwwpii5xegirgq2ctrnsjnzelxudjj33qzq65apu",
2961
+ testnet: true
2921
2962
  },
2922
2963
  "33139": {
2923
2964
  key: "33139",
@@ -3868,6 +3909,13 @@ ajv.addFormat('long', {
3868
3909
  ajv.addFormat('lowercase', {
3869
3910
  validate: (value) => value === value.toLowerCase()
3870
3911
  });
3912
+ ajv.addFormat('color', {
3913
+ validate: (value) => {
3914
+ if (!value)
3915
+ return false;
3916
+ return !!value.match(/^#[0-9A-F]{6}$/);
3917
+ }
3918
+ });
3871
3919
  ajv.addFormat('ethValue', {
3872
3920
  validate: (value) => {
3873
3921
  if (!value.match(/^([0-9]|[1-9][0-9]+)(\.[0-9]+)?$/))
@@ -858,6 +858,46 @@ var definitions = {
858
858
  additionalProperties: false
859
859
  }
860
860
  },
861
+ labels: {
862
+ type: "array",
863
+ maxItems: 10,
864
+ uniqueItems: true,
865
+ items: {
866
+ type: "object",
867
+ properties: {
868
+ id: {
869
+ type: "string",
870
+ title: "Id",
871
+ minLength: 1,
872
+ maxLength: 8
873
+ },
874
+ name: {
875
+ type: "string",
876
+ title: "Name",
877
+ minLength: 1,
878
+ maxLength: 32
879
+ },
880
+ description: {
881
+ type: "string",
882
+ title: "Description",
883
+ minLength: 1,
884
+ maxLength: 100
885
+ },
886
+ color: {
887
+ type: "string",
888
+ title: "Color",
889
+ format: "color"
890
+ }
891
+ },
892
+ required: [
893
+ "id",
894
+ "name",
895
+ "description",
896
+ "color"
897
+ ],
898
+ additionalProperties: false
899
+ }
900
+ },
861
901
  parent: {
862
902
  type: "string",
863
903
  title: "parent"
@@ -2899,7 +2939,7 @@ var networks = {
2899
2939
  name: "Curtis",
2900
2940
  shortName: "apechain",
2901
2941
  chainId: 33111,
2902
- network: "mainnet",
2942
+ network: "testnet",
2903
2943
  multicall: "0xc454132B017b55b427f45078E335549A7124f5f7",
2904
2944
  rpc: [
2905
2945
  ],
@@ -2907,7 +2947,8 @@ var networks = {
2907
2947
  url: "https://explorer.curtis.apechain.com"
2908
2948
  },
2909
2949
  start: 6661339,
2910
- logo: "ipfs://bafkreicljxttjq2xkgfwwpii5xegirgq2ctrnsjnzelxudjj33qzq65apu"
2950
+ logo: "ipfs://bafkreicljxttjq2xkgfwwpii5xegirgq2ctrnsjnzelxudjj33qzq65apu",
2951
+ testnet: true
2911
2952
  },
2912
2953
  "33139": {
2913
2954
  key: "33139",
@@ -3858,6 +3899,13 @@ ajv.addFormat('long', {
3858
3899
  ajv.addFormat('lowercase', {
3859
3900
  validate: (value) => value === value.toLowerCase()
3860
3901
  });
3902
+ ajv.addFormat('color', {
3903
+ validate: (value) => {
3904
+ if (!value)
3905
+ return false;
3906
+ return !!value.match(/^#[0-9A-F]{6}$/);
3907
+ }
3908
+ });
3861
3909
  ajv.addFormat('ethValue', {
3862
3910
  validate: (value) => {
3863
3911
  if (!value.match(/^([0-9]|[1-9][0-9]+)(\.[0-9]+)?$/))