refactor(far): Rename from Agoric SDK
MODIFY
package.json
package.json
"packages/eslint-config",
"packages/eslint-plugin",
"packages/eventual-send",
+ "packages/far",
"packages/init",
"packages/lockdown",
"packages/lp32",

MODIFY
packages/far/README.md
packages/far/README.md
-# Agoric Far Object helpers
+# Endo Far Object helpers
-The `@agoric/far` package provides a convenient way to use the Agoric
+The `@endo/far` package provides a convenient way to use the Endo
[distributed objects system](https://agoric.com/documentation/js-programming/far.html) without relying on the underlying messaging
implementation.
@@ -8,10 +8,10 @@ It exists to reduce the boilerplate in Hardened JavaScript vats that are running
in Agoric's SwingSet kernel,
[`@agoric/swingset-vat`](https://github.com/Agoric/agoric-sdk/tree/master/packages/SwingSet),
or arbitrary JS programs using Hardened JavaScript and communicating via
-[`@agoric/captp`](https://github.com/Agoric/agoric-sdk/tree/master/packages/captp).
+[`@endo/captp`](https://github.com/endojs/endo/tree/master/packages/captp).
-You can import any of the following from `@agoric/far`:
+You can import any of the following from `@endo/far`:
```js
-import { E, Far, getInterfaceOf, passStyleOf } from '@agoric/far';
+import { E, Far, getInterfaceOf, passStyleOf } from '@endo/far';
```

MODIFY
packages/far/package.json
packages/far/package.json
{
- "name": "@agoric/far",
+ "name": "@endo/far",
"version": "0.1.1",
- "description": "Helpers for Agoric distributed objects.",
+ "description": "Helpers for distributed objects.",
"type": "module",
"main": "src/index.js",
"scripts": {
},
"repository": {
"type": "git",
- "url": "git+https://github.com/Agoric/agoric-sdk.git"
+ "url": "git+https://github.com/endojs/endo.git"
},
- "author": "Agoric",
+ "author": "Endo contributors",
"license": "Apache-2.0",
"bugs": {
- "url": "https://github.com/Agoric/agoric-sdk/issues"
+ "url": "https://github.com/endojs/endo/issues"
},
- "homepage": "https://github.com/Agoric/agoric-sdk#readme",
+ "homepage": "https://github.com/endojs/endo#readme",
"dependencies": {
- "@agoric/eventual-send": "^0.14.0",
- "@agoric/marshal": "^0.5.0"
+ "@endo/eventual-send": "^0.14.0",
+ "@endo/marshal": "^0.5.0"
},
"devDependencies": {
- "@agoric/install-ses": "^0.5.29",
+ "@endo/init": "^0.5.29",
"@endo/ses-ava": "^0.2.13",
"ava": "^3.12.1",
- "c8": "^7.7.2"
+ "c8": "^7.7.3"
},
"keywords": [
"eventual send",
],
"eslintConfig": {
"extends": [
- "@agoric"
+ "@endo"
]
},
"prettier": {

MODIFY
packages/far/src/index.js
packages/far/src/index.js
-export { E } from '@agoric/eventual-send';
-export { Far, getInterfaceOf, passStyleOf } from '@agoric/marshal';
+export { E } from '@endo/eventual-send';
+export { Far, getInterfaceOf, passStyleOf } from '@endo/marshal';
/**
* @template T
- * @typedef {import('@agoric/eventual-send').ERef<T>} ERef
+ * @typedef {import('@endo/eventual-send').ERef<T>} ERef
* Declare that `T` can be either a near or far reference. This should be used
* only for arguments and declarations; return values should specifically be
* `Promise<T>` or `T` itself.
@@ -11,7 +11,7 @@ export { Far, getInterfaceOf, passStyleOf } from '@agoric/marshal';
/**
* @template T
- * @typedef {import('@agoric/eventual-send').EOnly<T>} EOnly
+ * @typedef {import('@endo/eventual-send').EOnly<T>} EOnly
* A type that must only be invoked with E. It supports the `T` interface
* interface but additionally permits functions to return `PromiseLike`s even if
* `T` declares them as only synchronous.

MODIFY
packages/far/test/prepare-test-env-ava.js
packages/far/test/prepare-test-env-ava.js
-import '@agoric/install-ses/debug.js';
+import '@endo/init/debug.js';
import { wrapTest } from '@endo/ses-ava';
import rawTest from 'ava';

refactor(far): Rename from Agoric SDK