Skip to content

Commit

Permalink
added neutron code trackers
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Nov 5, 2024
1 parent f59d636 commit 05ae189
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wasmCodeTrackers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ import * as trackers from './trackers'
* Track contracts and save their code IDs to a specified wasm code key in the
* DB when they are migrated so that other contracts are automatically detected.
*/
export const wasmCodeTrackers: WasmCodeTracker[] = [...Object.values(trackers)]
export const wasmCodeTrackers: WasmCodeTracker[] = [
...Object.values(trackers).flat(),
]
1 change: 1 addition & 0 deletions src/wasmCodeTrackers/trackers/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './neutron'
export * from './valence'
26 changes: 26 additions & 0 deletions src/wasmCodeTrackers/trackers/neutron.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { WasmCodeTracker } from '@/types'

export const neutronDaoDaoCore: WasmCodeTracker = {
chainId: 'neutron-1',
codeKey: 'dao-core',
contractAddresses: new Set([
'neutron1suhgf5svhu4usrurvxzlgn54ksxmn8gljarjtxqnapv8kjnp4nrstdxvff',
]),
}

export const neutronDaoProposalSingle: WasmCodeTracker = {
chainId: 'neutron-1',
codeKey: 'dao-proposal-single',
contractAddresses: new Set([
'neutron1436kxs0w2es6xlqpp9rd35e3d0cjnw4sv8j3a7483sgks29jqwgshlt6zh',
'neutron12pwnhtv7yat2s30xuf4gdk9qm85v4j3e6p44let47pdffpklcxlq56v0te',
]),
}

export const neutronDaoProposalMultiple: WasmCodeTracker = {
chainId: 'neutron-1',
codeKey: 'dao-proposal-multiple',
contractAddresses: new Set([
'neutron1pvrwmjuusn9wh34j7y520g8gumuy9xtl3gvprlljfdpwju3x7ucsj3fj40',
]),
}

0 comments on commit 05ae189

Please sign in to comment.