@tenderly/actions-test 0.0.11 → 0.0.13

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.
@@ -0,0 +1,7 @@
1
+ import { Gateways, Network } from "@tenderly/actions";
2
+ export declare class TestGateways implements Gateways {
3
+ private gatewayConfig;
4
+ constructor();
5
+ getGateway(network: Network, name?: string | undefined): string;
6
+ }
7
+ //# sourceMappingURL=gateways.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gateways.d.ts","sourceRoot":"","sources":["../src/gateways.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAEpD,qBAAa,YAAa,YAAW,QAAQ;IACzC,OAAO,CAAC,aAAa,CAAmB;;IAMxC,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM;CAIlE"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TestGateways = void 0;
4
+ class TestGateways {
5
+ constructor() {
6
+ this.gatewayConfig = new Map();
7
+ }
8
+ getGateway(network, name) {
9
+ const gatewayConfig = this.gatewayConfig.get(name ?? "");
10
+ return `https://${network}.gateway.tenderly-test.co/${gatewayConfig.accessKey}`;
11
+ }
12
+ }
13
+ exports.TestGateways = TestGateways;
14
+ //# sourceMappingURL=gateways.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gateways.js","sourceRoot":"","sources":["../src/gateways.ts"],"names":[],"mappings":";;;AAEA,MAAa,YAAY;IAGrB;QACI,IAAI,CAAC,aAAa,GAAG,IAAI,GAAG,EAAe,CAAC;IAChD,CAAC;IAED,UAAU,CAAC,OAAgB,EAAE,IAAyB;QAClD,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,CAAA;QACxD,OAAO,WAAW,OAAO,6BAA6B,aAAa,CAAC,SAAS,EAAE,CAAA;IACnF,CAAC;CACJ;AAXD,oCAWC"}
package/lib/runtime.d.ts CHANGED
@@ -1,9 +1,10 @@
1
- import { ActionFn, Context, Event } from "@tenderly/actions";
1
+ import { ActionFn, Context, Event, Gateways } from "@tenderly/actions";
2
2
  import { TestSecrets } from "./secrets";
3
3
  import { TestStorage } from "./storage";
4
4
  export declare class TestContext implements Context {
5
5
  secrets: TestSecrets;
6
6
  storage: TestStorage;
7
+ gateways: Gateways;
7
8
  constructor();
8
9
  }
9
10
  export declare class TestRuntime {
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AACtC,OAAO,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AAEtC,qBAAa,WAAY,YAAW,OAAO;IACvC,OAAO,EAAE,WAAW,CAAC;IACrB,OAAO,EAAE,WAAW,CAAC;;CAMxB;AAED,qBAAa,WAAW;IACpB,OAAO,EAAE,WAAW,CAAC;;IAMf,OAAO,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;CAG/D"}
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AACtC,OAAO,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AAGtC,qBAAa,WAAY,YAAW,OAAO;IACvC,OAAO,EAAE,WAAW,CAAC;IACrB,OAAO,EAAE,WAAW,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;;CAOtB;AAED,qBAAa,WAAW;IACpB,OAAO,EAAE,WAAW,CAAC;;IAMf,OAAO,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;CAG/D"}
package/lib/runtime.js CHANGED
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TestRuntime = exports.TestContext = void 0;
4
4
  const secrets_1 = require("./secrets");
5
5
  const storage_1 = require("./storage");
6
+ const gateways_1 = require("./gateways");
6
7
  class TestContext {
7
8
  constructor() {
8
9
  this.secrets = new secrets_1.TestSecrets();
9
10
  this.storage = new storage_1.TestStorage();
11
+ this.gateways = new gateways_1.TestGateways();
10
12
  }
11
13
  }
12
14
  exports.TestContext = TestContext;
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":";;;AACA,uCAAsC;AACtC,uCAAsC;AAEtC,MAAa,WAAW;IAIpB;QACI,IAAI,CAAC,OAAO,GAAG,IAAI,qBAAW,EAAE,CAAC;QACjC,IAAI,CAAC,OAAO,GAAG,IAAI,qBAAW,EAAE,CAAC;IACrC,CAAC;CACJ;AARD,kCAQC;AAED,MAAa,WAAW;IAGpB;QACI,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,EAAE,CAAA;IACpC,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,MAAgB,EAAE,KAAY;QACxC,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;IACrC,CAAC;CACJ;AAVD,kCAUC"}
1
+ {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":";;;AACA,uCAAsC;AACtC,uCAAsC;AACtC,yCAA0C;AAE1C,MAAa,WAAW;IAKpB;QACI,IAAI,CAAC,OAAO,GAAG,IAAI,qBAAW,EAAE,CAAC;QACjC,IAAI,CAAC,OAAO,GAAG,IAAI,qBAAW,EAAE,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,IAAI,uBAAY,EAAE,CAAC;IACvC,CAAC;CACJ;AAVD,kCAUC;AAED,MAAa,WAAW;IAGpB;QACI,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,EAAE,CAAA;IACpC,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,MAAgB,EAAE,KAAY;QACxC,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;IACrC,CAAC;CACJ;AAVD,kCAUC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tenderly/actions-test",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "Helper library for testing Web3 Actions.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -28,6 +28,6 @@
28
28
  "typescript": "^4.4.3"
29
29
  },
30
30
  "dependencies": {
31
- "@tenderly/actions": "^0.0.10"
31
+ "@tenderly/actions": "^0.0.12"
32
32
  }
33
33
  }