@agoric/fast-usdc 0.1.1-dev-8f9f075.0 → 0.1.1-dev-bdf5c17.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/fast-usdc",
3
- "version": "0.1.1-dev-8f9f075.0+8f9f075",
3
+ "version": "0.1.1-dev-bdf5c17.0+bdf5c17",
4
4
  "description": "CLI and library for Fast USDC product",
5
5
  "type": "module",
6
6
  "files": [
@@ -22,9 +22,9 @@
22
22
  "lint:eslint": "eslint ."
23
23
  },
24
24
  "devDependencies": {
25
- "@agoric/swingset-liveslots": "0.10.3-dev-8f9f075.0+8f9f075",
26
- "@agoric/vats": "0.15.2-dev-8f9f075.0+8f9f075",
27
- "@agoric/zone": "0.2.3-dev-8f9f075.0+8f9f075",
25
+ "@agoric/swingset-liveslots": "0.10.3-dev-bdf5c17.0+bdf5c17",
26
+ "@agoric/vats": "0.15.2-dev-bdf5c17.0+bdf5c17",
27
+ "@agoric/zone": "0.2.3-dev-bdf5c17.0+bdf5c17",
28
28
  "@fast-check/ava": "^2.0.1",
29
29
  "ava": "^5.3.0",
30
30
  "c8": "^10.1.2",
@@ -32,15 +32,15 @@
32
32
  "ts-blank-space": "^0.4.4"
33
33
  },
34
34
  "dependencies": {
35
- "@agoric/client-utils": "0.1.1-dev-8f9f075.0+8f9f075",
36
- "@agoric/ertp": "0.16.3-dev-8f9f075.0+8f9f075",
37
- "@agoric/internal": "0.3.3-dev-8f9f075.0+8f9f075",
38
- "@agoric/notifier": "0.6.3-dev-8f9f075.0+8f9f075",
39
- "@agoric/orchestration": "0.1.1-dev-8f9f075.0+8f9f075",
40
- "@agoric/store": "0.9.3-dev-8f9f075.0+8f9f075",
41
- "@agoric/vat-data": "0.5.3-dev-8f9f075.0+8f9f075",
42
- "@agoric/vow": "0.1.1-dev-8f9f075.0+8f9f075",
43
- "@agoric/zoe": "0.26.3-dev-8f9f075.0+8f9f075",
35
+ "@agoric/client-utils": "0.1.1-dev-bdf5c17.0+bdf5c17",
36
+ "@agoric/ertp": "0.16.3-dev-bdf5c17.0+bdf5c17",
37
+ "@agoric/internal": "0.3.3-dev-bdf5c17.0+bdf5c17",
38
+ "@agoric/notifier": "0.6.3-dev-bdf5c17.0+bdf5c17",
39
+ "@agoric/orchestration": "0.1.1-dev-bdf5c17.0+bdf5c17",
40
+ "@agoric/store": "0.9.3-dev-bdf5c17.0+bdf5c17",
41
+ "@agoric/vat-data": "0.5.3-dev-bdf5c17.0+bdf5c17",
42
+ "@agoric/vow": "0.1.1-dev-bdf5c17.0+bdf5c17",
43
+ "@agoric/zoe": "0.26.3-dev-bdf5c17.0+bdf5c17",
44
44
  "@cosmjs/proto-signing": "^0.32.4",
45
45
  "@cosmjs/stargate": "^0.32.4",
46
46
  "@endo/base64": "^1.0.9",
@@ -80,5 +80,5 @@
80
80
  "publishConfig": {
81
81
  "access": "public"
82
82
  },
83
- "gitHead": "8f9f07501c1e5f25103d0a015f2f2817275391f2"
83
+ "gitHead": "bdf5c1715492b9e65b205db0b8128e38876c853f"
84
84
  }
@@ -94,16 +94,13 @@ export const PoolMetricsShape = {
94
94
  harden(PoolMetricsShape);
95
95
 
96
96
  /** @type {TypedPattern<ChainPolicy>} */
97
- export const ChainPoliciesShape = M.splitRecord(
98
- {
99
- nobleContractAddress: EvmHashShape,
100
- cctpTokenMessengerAddress: EvmHashShape,
101
- confirmations: M.number(),
102
- chainId: M.number(),
103
- },
104
- { chainType: M.number() },
105
- );
106
- harden(ChainPoliciesShape);
97
+ export const ChainPolicyShape = {
98
+ attenuatedCttpBridgeAddress: EvmHashShape,
99
+ cctpTokenMessengerAddress: EvmHashShape,
100
+ confirmations: M.number(),
101
+ chainId: M.number(),
102
+ };
103
+ harden(ChainPolicyShape);
107
104
 
108
105
  /**
109
106
  * @type {TypedPattern<FeedPolicy>}
@@ -115,7 +112,7 @@ export const FeedPolicyShape = M.splitRecord(
115
112
  {
116
113
  nobleDomainId: M.number(),
117
114
  nobleAgoricChannelId: M.string(),
118
- chainPolicies: M.recordOf(M.string(), ChainPoliciesShape),
115
+ chainPolicies: M.recordOf(M.string(), ChainPolicyShape),
119
116
  },
120
117
  { eventFilter: M.string() },
121
118
  );
package/src/types.ts CHANGED
@@ -58,11 +58,14 @@ export interface PoolMetrics extends PoolStats {
58
58
  }
59
59
 
60
60
  export interface ChainPolicy {
61
- nobleContractAddress: EvmHash;
61
+ /** `msg.sender` of DepositAndBurn to TokenMessenger must be an attenuated wrapper contract that does not contain `replaceDepositForBurn` */
62
+ attenuatedCttpBridgeAddress: EvmHash;
63
+ /** @see {@link https://developers.circle.com/stablecoins/evm-smart-contracts} */
62
64
  cctpTokenMessengerAddress: EvmHash;
63
- confirmations: number;
65
+ /** e.g., `1` for ETH mainnet 42161 for Arbitrum One. @see {@link https://chainlist.org/} */
64
66
  chainId: EvmChainID;
65
- chainType?: number;
67
+ /** the number of block confirmations to observe before reporting */
68
+ confirmations: number;
66
69
  }
67
70
 
68
71
  export interface FeedPolicy {
@@ -64,11 +64,12 @@ export const configurations = {
64
64
  nobleDomainId: 4,
65
65
  chainPolicies: {
66
66
  Arbitrum: {
67
+ attenuatedCttpBridgeAddress:
68
+ '0xe298b93ffB5eA1FB628e0C0D55A43aeaC268e347',
67
69
  cctpTokenMessengerAddress:
68
70
  '0x19330d10D9Cc8751218eaf51E8885D058642E08A',
69
71
  chainId: 42161,
70
72
  confirmations: 2,
71
- nobleContractAddress: '0x19330d10D9Cc8751218eaf51E8885D058642E08A',
72
73
  },
73
74
  },
74
75
  },
@@ -92,11 +93,12 @@ export const configurations = {
92
93
  nobleDomainId: 4,
93
94
  chainPolicies: {
94
95
  Arbitrum: {
96
+ attenuatedCttpBridgeAddress:
97
+ '0xe298b93ffB5eA1FB628e0C0D55A43aeaC268e347',
95
98
  cctpTokenMessengerAddress:
96
99
  '0x19330d10D9Cc8751218eaf51E8885D058642E08A',
97
100
  chainId: 42161,
98
101
  confirmations: 2,
99
- nobleContractAddress: '0x19330d10D9Cc8751218eaf51E8885D058642E08A',
100
102
  },
101
103
  },
102
104
  },
@@ -118,10 +120,10 @@ export const configurations = {
118
120
  nobleDomainId: 4,
119
121
  chainPolicies: {
120
122
  Arbitrum: {
123
+ attenuatedCttpBridgeAddress: '0xTODO',
121
124
  cctpTokenMessengerAddress: '0xTODO',
122
125
  chainId: 421614,
123
126
  confirmations: 2,
124
- nobleContractAddress: '0xTODO',
125
127
  },
126
128
  },
127
129
  },
@@ -140,10 +142,10 @@ export const configurations = {
140
142
  nobleDomainId: 4,
141
143
  chainPolicies: {
142
144
  Arbitrum: {
145
+ attenuatedCttpBridgeAddress: '0xTODO',
143
146
  cctpTokenMessengerAddress: '0xTODO',
144
147
  chainId: 421614,
145
148
  confirmations: 2,
146
- nobleContractAddress: '0xTODO',
147
149
  },
148
150
  },
149
151
  },