@agoric/fast-usdc 0.1.1-dev-eb8538b.0 → 0.1.1-dev-0303d15.0
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.
- package/package.json +15 -15
- package/src/utils/deploy-config.js +23 -39
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/fast-usdc",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-0303d15.0+0303d15",
|
|
4
4
|
"description": "CLI and library for Fast USDC product",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"lint:eslint": "eslint ."
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
27
|
-
"@agoric/vats": "0.15.2-dev-
|
|
28
|
-
"@agoric/zone": "0.2.3-dev-
|
|
26
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-0303d15.0+0303d15",
|
|
27
|
+
"@agoric/vats": "0.15.2-dev-0303d15.0+0303d15",
|
|
28
|
+
"@agoric/zone": "0.2.3-dev-0303d15.0+0303d15",
|
|
29
29
|
"@fast-check/ava": "^2.0.1",
|
|
30
30
|
"ava": "^5.3.0",
|
|
31
31
|
"c8": "^10.1.2",
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
"ts-blank-space": "^0.4.4"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@agoric/client-utils": "0.1.1-dev-
|
|
37
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
38
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
39
|
-
"@agoric/internal": "0.3.3-dev-
|
|
40
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
41
|
-
"@agoric/orchestration": "0.1.1-dev-
|
|
42
|
-
"@agoric/store": "0.9.3-dev-
|
|
43
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
44
|
-
"@agoric/vow": "0.1.1-dev-
|
|
45
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
36
|
+
"@agoric/client-utils": "0.1.1-dev-0303d15.0+0303d15",
|
|
37
|
+
"@agoric/cosmic-proto": "0.4.1-dev-0303d15.0+0303d15",
|
|
38
|
+
"@agoric/ertp": "0.16.3-dev-0303d15.0+0303d15",
|
|
39
|
+
"@agoric/internal": "0.3.3-dev-0303d15.0+0303d15",
|
|
40
|
+
"@agoric/notifier": "0.6.3-dev-0303d15.0+0303d15",
|
|
41
|
+
"@agoric/orchestration": "0.1.1-dev-0303d15.0+0303d15",
|
|
42
|
+
"@agoric/store": "0.9.3-dev-0303d15.0+0303d15",
|
|
43
|
+
"@agoric/vat-data": "0.5.3-dev-0303d15.0+0303d15",
|
|
44
|
+
"@agoric/vow": "0.1.1-dev-0303d15.0+0303d15",
|
|
45
|
+
"@agoric/zoe": "0.26.3-dev-0303d15.0+0303d15",
|
|
46
46
|
"@cosmjs/proto-signing": "^0.32.4",
|
|
47
47
|
"@cosmjs/stargate": "^0.32.4",
|
|
48
48
|
"@endo/base64": "^1.0.9",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "0303d15e3238f29fa106e103e54103c2beabc895"
|
|
86
86
|
}
|
|
@@ -8,39 +8,23 @@ import { ChainPolicies } from './chain-policies.js';
|
|
|
8
8
|
* @import {CosmosChainInfo, Denom, DenomDetail} from '@agoric/orchestration';
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
/** @type {[Denom, DenomDetail & { brandKey?: string}]
|
|
12
|
-
|
|
13
|
-
[
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
],
|
|
21
|
-
[
|
|
22
|
-
`ibc/${denomHash({ denom: 'uusdc', channelId: fetchedChainInfo.agoric.connections['noble-1'].transferChannel.channelId })}`,
|
|
23
|
-
{
|
|
24
|
-
baseName: 'noble',
|
|
25
|
-
chainName: 'agoric',
|
|
26
|
-
baseDenom: 'uusdc',
|
|
27
|
-
brandKey: 'USDC',
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
[
|
|
31
|
-
`ibc/${denomHash({ denom: 'uusdc', channelId: fetchedChainInfo.osmosis.connections['noble-1'].transferChannel.channelId })}`,
|
|
32
|
-
{
|
|
33
|
-
baseName: 'noble',
|
|
34
|
-
chainName: 'osmosis',
|
|
35
|
-
baseDenom: 'uusdc',
|
|
36
|
-
},
|
|
37
|
-
],
|
|
11
|
+
/** @type {[Denom, DenomDetail & { brandKey?: string}]} */
|
|
12
|
+
const usdcOnAgoric = [
|
|
13
|
+
`ibc/${denomHash({ denom: 'uusdc', channelId: fetchedChainInfo.agoric.connections['noble-1'].transferChannel.channelId })}`,
|
|
14
|
+
{
|
|
15
|
+
baseName: 'noble',
|
|
16
|
+
chainName: 'agoric',
|
|
17
|
+
baseDenom: 'uusdc',
|
|
18
|
+
brandKey: 'USDC',
|
|
19
|
+
},
|
|
38
20
|
];
|
|
39
|
-
harden(defaultAssetInfo);
|
|
40
21
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
22
|
+
/** @type {[Denom, DenomDetail & { brandKey?: string}][]} */
|
|
23
|
+
export const transferAssetInfo = [
|
|
24
|
+
['uusdc', { baseName: 'noble', chainName: 'noble', baseDenom: 'uusdc' }],
|
|
25
|
+
usdcOnAgoric,
|
|
26
|
+
];
|
|
27
|
+
harden(transferAssetInfo);
|
|
44
28
|
|
|
45
29
|
/** ABI for DepositForBurn event in TokenMessenger contract */
|
|
46
30
|
const DepositForBurnEvent =
|
|
@@ -49,7 +33,6 @@ const DepositForBurnEvent =
|
|
|
49
33
|
/**
|
|
50
34
|
* @type {Record<string, Pick<FastUSDCConfig, 'oracles' | 'feedPolicy' | 'chainInfo' | 'assetInfo' >>}
|
|
51
35
|
*
|
|
52
|
-
* TODO: determine OCW operator addresses
|
|
53
36
|
* meanwhile, use price oracle addresses (from updatePriceFeeds.js).
|
|
54
37
|
*/
|
|
55
38
|
export const configurations = {
|
|
@@ -77,13 +60,14 @@ export const configurations = {
|
|
|
77
60
|
noble: fetchedChainInfo.noble,
|
|
78
61
|
})
|
|
79
62
|
),
|
|
80
|
-
assetInfo:
|
|
63
|
+
assetInfo: [usdcOnAgoric],
|
|
81
64
|
},
|
|
82
65
|
MAINNET: {
|
|
66
|
+
// per JVC 12 Feb 2025
|
|
83
67
|
oracles: {
|
|
84
|
-
'01node': '
|
|
85
|
-
|
|
86
|
-
|
|
68
|
+
'01node': 'agoric1ym488t6j24x3ys3va3452ftx44lhs64rz8pu7h',
|
|
69
|
+
SimplyStaking: 'agoric1s5yawjgj6xcw4ea5r2x4cjrnkprmd0fcun2tyk',
|
|
70
|
+
DSRV: 'agoric17crpkfxarq658e9ddru2petrfr0fhjzvjfccq9',
|
|
87
71
|
},
|
|
88
72
|
feedPolicy: {
|
|
89
73
|
nobleAgoricChannelId: 'channel-21',
|
|
@@ -94,7 +78,7 @@ export const configurations = {
|
|
|
94
78
|
chainInfo: /** @type {Record<string, CosmosChainInfo & Passable>} */ (
|
|
95
79
|
withChainCapabilities(fetchedChainInfo)
|
|
96
80
|
),
|
|
97
|
-
assetInfo:
|
|
81
|
+
assetInfo: transferAssetInfo,
|
|
98
82
|
},
|
|
99
83
|
DEVNET: {
|
|
100
84
|
oracles: {
|
|
@@ -113,7 +97,7 @@ export const configurations = {
|
|
|
113
97
|
chainInfo: /** @type {Record<string, CosmosChainInfo & Passable>} */ (
|
|
114
98
|
withChainCapabilities(fetchedChainInfo) // TODO: use devnet values
|
|
115
99
|
),
|
|
116
|
-
assetInfo:
|
|
100
|
+
assetInfo: transferAssetInfo,
|
|
117
101
|
},
|
|
118
102
|
EMERYNET: {
|
|
119
103
|
oracles: {
|
|
@@ -129,7 +113,7 @@ export const configurations = {
|
|
|
129
113
|
chainInfo: /** @type {Record<string, CosmosChainInfo & Passable>} */ (
|
|
130
114
|
withChainCapabilities(fetchedChainInfo) // TODO: use emerynet values
|
|
131
115
|
),
|
|
132
|
-
assetInfo:
|
|
116
|
+
assetInfo: transferAssetInfo,
|
|
133
117
|
},
|
|
134
118
|
};
|
|
135
119
|
harden(configurations);
|